Skip to content

Commit

Permalink
feat(client): test new ui
Browse files Browse the repository at this point in the history
  • Loading branch information
ahonestla committed Jul 19, 2024
1 parent e763adf commit b1d7632
Show file tree
Hide file tree
Showing 149 changed files with 17,843 additions and 6 deletions.
5 changes: 5 additions & 0 deletions project/front/.env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
VITE_MINISTER_NAME="Ministère|de l'enseignement|supérieur|et de la recherche"
VITE_APP_NAME="AFFILIATION MATCHER"
VITE_HEADER_TAG="local-dev"
VITE_API_URL="http://localhost:5004"
VITE_ELASTIC_URL="http://localhost:9200"
4 changes: 4 additions & 0 deletions project/front/.env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
VITE_MINISTER_NAME="Ministère|de l'enseignement|supérieur|et de la recherche"
VITE_APP_NAME="AFFILIATION MATCHER"
VITE_HEADER_TAG=
VITE_API_URL=""
4 changes: 4 additions & 0 deletions project/front/.env.staging
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
VITE_MINISTER_NAME="Ministère|de l'enseignement|supérieur|et de la recherche"
VITE_APP_NAME="AFFILIATION MATCHER"
VITE_HEADER_TAG="staging"
VITE_API_URL=""
40 changes: 40 additions & 0 deletions project/front/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"parserOptions": {
"ecmaVersion": 13
},
"env": {
"browser": true
},
"rules": {
"jsx-a11y/anchor-is-valid": "off",
"react/jsx-filename-extension": 0,
"react/react-in-jsx-scope": 0,
"react/forbid-prop-types": 0,
"react/no-unescaped-entities": 0,
"no-unused-vars": "warn",
"template-curly-spacing": "off",
"object-curly-newline": "off",
"react/jsx-props-no-spreading": "off",
"react-hooks/exhaustive-deps": "warn",
"max-len": ["warn", 200],
"react/prop-types": "warn",
"import/prefer-default-export": 0,
"no-underscore-dangle": 0,
"no-console": "warn",
"indent": [
"warn",
2,
{
"ignoredNodes": ["TemplateLiteral"]
}
]
},
"extends": ["airbnb", "airbnb/hooks"],
"sort-imports": [
"error",
{
"ignoreCase": true,
"ignoreDeclarationSort": true
}
]
}
24 changes: 24 additions & 0 deletions project/front/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
13 changes: 13 additions & 0 deletions project/front/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:18-alpine

WORKDIR /client

COPY ./package.json ./

RUN npm install

COPY . .

EXPOSE 3000

CMD ["npm", "start"]
21 changes: 21 additions & 0 deletions project/front/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 #dataESR

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2 changes: 2 additions & 0 deletions project/front/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# affiliation-matcher-ui
Frontend application of the affiliation-matcher
16 changes: 16 additions & 0 deletions project/front/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="fr">

<head>
<meta charset="UTF-8" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/remixicon@2.5.0/fonts/remixicon.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Affiliation Matcher</title>
</head>

<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>

</html>
Loading

0 comments on commit b1d7632

Please sign in to comment.