-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from Inist-CNRS/admin-panel
Admin panel
- Loading branch information
Showing
57 changed files
with
10,935 additions
and
504 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": "tsconfig.eslint.json", | ||
"sourceType": "module" | ||
}, | ||
"settings": { | ||
"react": { | ||
"version": "detect" | ||
}, | ||
"import/resolver": { | ||
"typescript": { | ||
"project": "tsconfig.eslint.json" | ||
} | ||
} | ||
}, | ||
"root": true, | ||
"env": { | ||
"node": true, | ||
"jest": true, | ||
"browser": true | ||
}, | ||
"plugins": [ | ||
"@tanstack/query" | ||
], | ||
"extends": [ | ||
"@draconides/eslint-config-ts", | ||
"@draconides/eslint-config-react", | ||
"plugin:@tanstack/eslint-plugin-query/recommended" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
.yarn/install-state.gz | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env*.local | ||
|
||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
.stylelintcache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"extends": [ | ||
"stylelint-config-standard-scss", | ||
"stylelint-config-twbs-bootstrap" | ||
], | ||
"rules": { | ||
"declaration-no-important": null, | ||
"scss/dollar-variable-default": [ | ||
true, | ||
{ | ||
"ignore": "local" | ||
} | ||
], | ||
"selector-max-class": null, | ||
"selector-max-type": null, | ||
"selector-no-qualifying-type": null, | ||
"selector-max-id": 3 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# TDM Backoffice React.js Application | ||
|
||
This project is a React.js application built to provide TDM backoffice. | ||
|
||
## Getting Started | ||
|
||
To get started with this project, follow these steps: | ||
|
||
### Prerequisites | ||
|
||
Make sure you have the following installed on your machine: | ||
|
||
- Node.js (v18 or higher) | ||
- npm (Node Package Manager) | ||
|
||
### Installation | ||
|
||
1. Clone the repository: | ||
|
||
```bash | ||
git clone https://github.com/Inist-CNRS/tdm-factory.git | ||
``` | ||
|
||
2. Navigate to the project directory: | ||
|
||
```bash | ||
cd tdm-factory/tdm-admin | ||
``` | ||
|
||
3. Install dependencies: | ||
|
||
```bash | ||
npm install | ||
``` | ||
|
||
### Running the Application | ||
|
||
To start the development server: | ||
|
||
```bash | ||
npm run dev | ||
``` | ||
|
||
The application will run on `http://localhost:3000` by default. Open this URL in your browser to view it. | ||
|
||
## Folder Structure | ||
|
||
The project structure is organized as follows: | ||
|
||
- `src/`: Contains the source code of the React application. | ||
- `index.tsx`: entry point | ||
- `app/`: | ||
- `components/`: Reusable UI components. | ||
- `page/`: Individual application page | ||
- `services/`: Application network tools | ||
- `util/`: Tools, types and utils | ||
- `App.scss`: Global CSS of the application. | ||
- `App.tsx`: Main elements where application is assembled. | ||
|
||
## Available Scripts | ||
|
||
In the project directory, you can run the following scripts: | ||
|
||
- `npm run dev`: Runs the app in development mode. | ||
- `npm run build`: Builds the app for production to the `.next` folder. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | ||
<title>IA Factory - Administration</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/index.tsx"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.