Skip to content

Commit

Permalink
Merge branch 'release/v2.11.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
emile-bex committed Dec 13, 2023
2 parents abbde1e + 88c6d8a commit 617f969
Show file tree
Hide file tree
Showing 525 changed files with 10,254 additions and 8,147 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ assets/
cypress.config.js
jest.config.js
next.config.js
server-next.js
.lintstagedrc.js
11 changes: 10 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"@typescript-eslint/eslint-plugin",
"@typescript-eslint",
"typescript-sort-keys",
"import"
"import",
"@jambit/typed-redux-saga"
],
"extends": [
"airbnb",
Expand Down Expand Up @@ -200,6 +201,14 @@
"import/no-default-export": 0,
"import/prefer-default-export": 2
}
},
{
"files": ["./**/*.ts"],
"excludedFiles": ["./**/*.spec.ts"],
"rules": {
"@jambit/typed-redux-saga/use-typed-effects": "error",
"@jambit/typed-redux-saga/delegate-effects": "error"
}
}
]
}
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ env:
SERVER_URL: http://localhost:3000
API_URL: http://localhost:3002
PORT: 3000
AWSS3_URL: https://entourage-job-preprod.s3.amazonaws.com
AWSS3_CDN_URL: https://d3s4t580ymtqme.cloudfront.net
CDN_URL: https://d280vsj7wg1qqw.cloudfront.net
AWSS3_IMAGE_DIRECTORY: /images/
CYPRESS_IO_PROJECT_ID: ${{ secrets.CYPRESS_IO_PROJECT_ID }}
PUSHER_API_KEY: ${{ secrets.PUSHER_API_KEY }}
ADRESSE_LOCAUX_PARIS: "174 Rue Championnet 75018, Paris"
Expand All @@ -45,12 +49,12 @@ jobs:
command: npx cypress run --record --key ${{ secrets.CYPRESS_IO_KEY }}
wait-on: http://localhost:3000

- run: yarn lint
- run: yarn test:eslint

- name: set-up
uses: actions/setup-node@v3
with:
node-version: '16.x'

- run: yarn test
- run: yarn test:inte
- run: echo No tests
2 changes: 1 addition & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn test
yarn test:inte
6 changes: 3 additions & 3 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
'*.ts?(x)': [() => 'yarn ts-check', 'yarn lint:fix'],
'*.js?(x)': 'yarn lint:fix',
};
'*.ts?(x)': [() => 'yarn test:ts-check', 'yarn test:eslint'],
'*.js?(x)': () => 'yarn test:eslint',
};
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v16.17.0
1 change: 1 addition & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module.exports = {
core: {
builder: '@storybook/builder-webpack5',
},
staticDirs: ['../public'],
webpackFinal: async (config) => {
config.resolve.modules = [
path.resolve(__dirname, '..', './'),
Expand Down
52 changes: 43 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# LinkedOut Frontend

- [Modules principaux & versions](#modules-principaux--versions)
- [Architecture](#architecture)
- [Configuration](#configuration)
- [Déploiement](#déploiement)
- [Stack technique](#stack-technique)
- Code
- [Use cases](./docs/use-cases.md)
- [Permissions des routes](./docs/routes-permissions.md)
- [Styles](#styles)

## Modules principaux & versions

> Node 16.x.x
Expand Down Expand Up @@ -27,6 +37,7 @@
- `/lib` : librairies pure JS (analytics ...)
- `/pages` : dossier contenant les composants **_React_** de rendu de pages
- `/styles` : feuilles CSS compilés à partir de **_UIkit_** + certains styles customs
- `/use-cases` : store redux séparé en modules
- `/utils` : fonctions utilitaires communes
- `Axios.js` : configuration **_Axios_** pour communiquer facilement avec l'API
- `.editorconfig` : configuration par défaut de la syntaxe du code de l'éditeur
Expand Down Expand Up @@ -140,28 +151,45 @@ yarn cypress:io
### Fichier .env minimal

```dotenv
AIRTABLE_LINK_COMPANY_HELP=
AIRTABLE_LINK_COMPANY_SENSITIZATION=
AIRTABLE_LINK_COMPANY_SPONSOR=
AIRTABLE_LINK_JOIN_LINKEDOUT=
AIRTABLE_LINK_PROFESSIONAL_REINTEGRATION=
ADMIN_CANDIDATES_HZ=
ADMIN_CANDIDATES_LILLE=
ADMIN_CANDIDATES_LORIENT=
ADMIN_CANDIDATES_LYON=
ADMIN_CANDIDATES_PARIS=
ADMIN_CANDIDATES_RENNES=
ADMIN_COMPANIES_HZ=
ADMIN_COMPANIES_LILLE=
ADMIN_COMPANIES_LORIENT=
ADMIN_COMPANIES_LYON=
ADMIN_COMPANIES_PARIS=
ADMIN_COMPANIES_RENNES=
ADRESSE_LOCAUX_PARIS=
API_URL=
ASSOCIATION_APPOINTMENT=
AIRTABLE_LINK_BECOME_COACH=
ASSOCIATION_BROCHURE=
AWSS3_CDN_URL=
AWSS3_IMAGE_DIRECTORY=
AWSS3_URL=
CDN_URL=
CYPRESS_IO_ID=
CYPRESS_IO_KEY=
DONATION_LINK=
FB_APP_ID=
FB_DOMAIN_VERIFICATION=
FB_PIXEL_ID=
GA_TRACKING_ID=
GTM_TRACKING_ID=
HEROKU_APP_NAME=
HEROKU_RELEASE_VERSION=
IRAISER_DONATION_LINK=
LINKEDIN_PARTNER_ID=
MAILJET_CONTACT_EMAIL=
PORT=
PUSHER_API_KEY=
SENTRY_AUTH_TOKEN=
SENTRY_DSN=
SERVER_URL=
SHOW_POPUP=
TARTEAUCITRON_UUID=
TOOLBOX_URL=
TUTORIAL_CV=
TUTORIAL_INTERVIEW_TRAINING=
Expand All @@ -170,8 +198,6 @@ TUTORIAL_VIDEO_CV=
TUTORIAL_VIDEO_FIRST_STEPS=
TUTORIAL_VIDEO_OFFERS=
TUTORIAL_VIDEO_OFFERS_2=
CYPRESS_IO_KEY=
LOCAL_DIRNAME=
```

## Styles
Expand Down Expand Up @@ -216,6 +242,14 @@ Si un commit est poussé sur `master`, l'application sera déployé sur la produ

Comme il n'y a pas de tests, **_Github Actions_** n'est utilisé que pour déployer le projet sur **_Heroku_**.

##

Régulièrement, cleaner le code en supprimant les commposants qui ne sont plus utilisés:

```
npx dead-exports
```

## Stack technique

![Stack technique LinkedOut](./stack.svg)
3 changes: 3 additions & 0 deletions __mocks__/svg.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// eslint-disable-next-line import/no-default-export
export default 'SvgrURL';
export const ReactComponent = 'div';
1 change: 0 additions & 1 deletion assets/custom/icons/archive.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/custom/icons/calendar.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/custom/icons/car.svg

This file was deleted.

5 changes: 0 additions & 5 deletions assets/custom/icons/check.svg

This file was deleted.

1 change: 0 additions & 1 deletion assets/custom/icons/chevron-left.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/custom/icons/chevron-white.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/custom/icons/document.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/custom/icons/email.svg

This file was deleted.

1 change: 0 additions & 1 deletion assets/custom/icons/eye-closed.svg

This file was deleted.

1 change: 0 additions & 1 deletion assets/custom/icons/eye-opened.svg

This file was deleted.

1 change: 0 additions & 1 deletion assets/custom/icons/filter-empty.svg

This file was deleted.

1 change: 0 additions & 1 deletion assets/custom/icons/filter.svg

This file was deleted.

1 change: 0 additions & 1 deletion assets/custom/icons/gender.svg

This file was deleted.

1 change: 0 additions & 1 deletion assets/custom/icons/home.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/custom/icons/language.svg

This file was deleted.

11 changes: 0 additions & 11 deletions assets/custom/icons/linkedout-arrow-back.svg

This file was deleted.

13 changes: 0 additions & 13 deletions assets/custom/icons/linkedout-arrow-contact.svg

This file was deleted.

11 changes: 0 additions & 11 deletions assets/custom/icons/linkedout-arrow-growing.svg

This file was deleted.

15 changes: 0 additions & 15 deletions assets/custom/icons/linkedout-arrow.svg

This file was deleted.

Loading

0 comments on commit 617f969

Please sign in to comment.