Skip to content

Commit

Permalink
Demo Deployment (#17)
Browse files Browse the repository at this point in the history
* first step : component dashboardsection created needs to be highly reusable

* better layout + env.local + plotly WIP

* real charts

* feat: add map land plan

* fix: fix build

* fix: format

* npx format

* fix: add env example

* feat: Home webdesign v2 (#8)

* feat: header, intro, footer

* feat: content storytelling

* feat: home v2

* fix: env vars

* refactor: change env example

* fix: add pnpm

---------

Co-authored-by: Thomas Catinaud Taris <[email protected]>

* fix env.example

* antibiotic conso chart

* fix: use yarn for linting

* remove: scaleway deployment

* fix: lint

* style + css on titles + traduction

* changes in futur of farm land

* feat: update images

* feat: update home

* feat: update dashboard page

* feat: rwd chart

* fix: change url

* Dashboard page (#10)

* first step : component dashboardsection created needs to be highly reusable

* feat: update home styles + open graph image

* ancres and WIP components

* feat: Added graphs to home page + join block

* biodiversity - Introduction - companies OK

* src for customdashboard

* fix: dynamic load plotly

* add: apiPath variable to call ras-map

* Fix: Infinite loop (#9)

* use next_public env vars

* fix: rm array from dependencies

* use server side secret variables

---------

Co-authored-by: oumeimaelisbihani <[email protected]>
Co-authored-by: Malena Guallar <[email protected]>
Co-authored-by: Thomas Catinaud Taris <[email protected]>

* French version (#12)

* fix: translate to french

* fix: typo

* feat: update translation

* fix: prettier

* feat: remove unused test

---------

Co-authored-by: Thomas Catinaud Taris <[email protected]>

* update explode message (#13)

Co-authored-by: Thomas Catinaud Taris <[email protected]>

* Dashboard page (#14)

* feat: dashboard page

* fix: lint

---------

Co-authored-by: Malena Guallar <[email protected]>
Co-authored-by: Thomas Catinaud Taris <[email protected]>

* last translation element dashboard page

* feat: home links (#15)

Co-authored-by: Thomas Catinaud Taris <[email protected]>

---------

Co-authored-by: oumeimaelisbihani <[email protected]>
Co-authored-by: Thomas Catinaud Taris <[email protected]>
Co-authored-by: Thomas Catinaud Taris <[email protected]>
Co-authored-by: Malena Guallar <[email protected]>
Co-authored-by: Oumeima El Isbihani <[email protected]>
  • Loading branch information
6 people authored Apr 25, 2024
1 parent fb4edb5 commit ae9c6ed
Show file tree
Hide file tree
Showing 125 changed files with 46,918 additions and 1,878 deletions.
6 changes: 5 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@
# DEVELOPMENT TOOLS
# Ideally, don't add them to production deployment envs
# !STARTERCONF Change to true if you want to log data
NEXT_PUBLIC_SHOW_LOGGER="false"
NEXT_PUBLIC_SHOW_LOGGER="true"

NEXT_PUBLIC_PINKBOMBS_DATA_URL="https://pinkbombsfkynigjl-pinkbombs-data.functions.fnc.fr-par.scw.cloud/api/v1/secure/graphs"
#NEXT_PUBLIC_PINKBOMBS_DATA_URL="https://pinkbombsfkynigjl-pinkbombs-data.functions.fnc.fr-par.scw.cloud:8080/"
NEXT_PUBLIC_PINKBOMBS_DATA_API_KEY="pinkbombs"
84 changes: 42 additions & 42 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,74 +4,74 @@ module.exports = {
es2021: true,
node: true,
},
plugins: ['@typescript-eslint', 'simple-import-sort', 'unused-imports'],
plugins: ["@typescript-eslint", "simple-import-sort", "unused-imports"],
extends: [
'eslint:recommended',
'next',
'next/core-web-vitals',
'plugin:@typescript-eslint/recommended',
'prettier',
"eslint:recommended",
"next",
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
"prettier",
],
rules: {
'no-unused-vars': 'off',
'no-console': 'warn',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'react/no-unescaped-entities': 'off',
"no-unused-vars": "off",
"no-console": "warn",
"@typescript-eslint/explicit-module-boundary-types": "off",
"react/no-unescaped-entities": "off",

'react/display-name': 'off',
'react/jsx-curly-brace-presence': [
'warn',
{ props: 'never', children: 'never' },
"react/display-name": "off",
"react/jsx-curly-brace-presence": [
"warn",
{ props: "never", children: "never" },
],

//#region //*=========== Unused Import ===========
'@typescript-eslint/no-unused-vars': 'off',
'unused-imports/no-unused-imports': 'warn',
'unused-imports/no-unused-vars': [
'warn',
"@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports": "warn",
"unused-imports/no-unused-vars": [
"warn",
{
vars: 'all',
varsIgnorePattern: '^_',
args: 'after-used',
argsIgnorePattern: '^_',
vars: "all",
varsIgnorePattern: "^_",
args: "after-used",
argsIgnorePattern: "^_",
},
],
//#endregion //*======== Unused Import ===========

//#region //*=========== Import Sort ===========
'simple-import-sort/exports': 'warn',
'simple-import-sort/imports': [
'warn',
"simple-import-sort/exports": "warn",
"simple-import-sort/imports": [
"warn",
{
groups: [
// ext library & side effect imports
['^@?\\w', '^\\u0000'],
["^@?\\w", "^\\u0000"],
// {s}css files
['^.+\\.s?css$'],
["^.+\\.s?css$"],
// Lib and hooks
['^@/lib', '^@/hooks'],
["^@/lib", "^@/hooks"],
// static data
['^@/data'],
["^@/data"],
// components
['^@/components', '^@/container'],
["^@/components", "^@/container"],
// zustand store
['^@/store'],
["^@/store"],
// Other imports
['^@/'],
["^@/"],
// relative paths up until 3 level
[
'^\\./?$',
'^\\.(?!/?$)',
'^\\.\\./?$',
'^\\.\\.(?!/?$)',
'^\\.\\./\\.\\./?$',
'^\\.\\./\\.\\.(?!/?$)',
'^\\.\\./\\.\\./\\.\\./?$',
'^\\.\\./\\.\\./\\.\\.(?!/?$)',
"^\\./?$",
"^\\.(?!/?$)",
"^\\.\\./?$",
"^\\.\\.(?!/?$)",
"^\\.\\./\\.\\./?$",
"^\\.\\./\\.\\.(?!/?$)",
"^\\.\\./\\.\\./\\.\\./?$",
"^\\.\\./\\.\\./\\.\\.(?!/?$)",
],
['^@/types'],
["^@/types"],
// other that didnt fit in
['^'],
["^"],
],
},
],
Expand Down
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: ['https://saweria.co/theodorusclarence']
custom: ["https://saweria.co/theodorusclarence"]
2 changes: 1 addition & 1 deletion .github/issue-branch.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# https://github.com/robvanderleek/create-issue-branch#option-2-configure-github-action

# ex: i4-lower_camel_upper
branchName: 'i${issue.number}-${issue.title,}'
branchName: "i${issue.number}-${issue.title,}"
branches:
- label: epic
skip: true
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/issue-autolink.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Issue Autolink'
name: "Issue Autolink"
on:
pull_request:
types: [opened]
Expand All @@ -11,6 +11,6 @@ jobs:
steps:
- uses: tkt-actions/[email protected]
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
branch-prefix: 'i'
resolve: 'true'
repo-token: "${{ secrets.GITHUB_TOKEN }}"
branch-prefix: "i"
resolve: "true"
20 changes: 8 additions & 12 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,24 @@ jobs:
- name: ⬇️ Checkout repo
uses: actions/checkout@v2

- name: 🤌 Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
node-version: 18

- name: 📥 Download deps
run: pnpm install --frozen-lockfile
uses: u0reo/npm-install@fix/restore-failure
with:
useRollingCache: true

- name: 🔬 Lint
run: pnpm run lint:strict
run: yarn lint:strict

- name: 🔎 Type check
run: pnpm run typecheck
run: yarn typecheck

- name: 💅 Prettier check
run: pnpm run format:check
run: yarn format:check

- name: 🃏 Run jest
run: pnpm run test
run: yarn test
2 changes: 1 addition & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
arrowParens: 'always',
arrowParens: "always",
singleQuote: true,
jsxSingleQuote: true,
tabWidth: 2,
Expand Down
6 changes: 3 additions & 3 deletions .vscode/css.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"body": [
"/* #region /**=========== ${1} =========== */",
"$0",
"/* #endregion /**======== ${1} =========== */"
]
}
"/* #endregion /**======== ${1} =========== */",
],
},
}
Loading

0 comments on commit ae9c6ed

Please sign in to comment.