From f186269dfc21cb34d3005bf13c398a3633460108 Mon Sep 17 00:00:00 2001 From: Hajar RAHMOUNI Date: Wed, 3 Jan 2024 19:00:16 +0100 Subject: [PATCH 1/2] tsconfig --- pwa/tsconfig.json | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pwa/tsconfig.json diff --git a/pwa/tsconfig.json b/pwa/tsconfig.json new file mode 100644 index 0000000..fc46f3d --- /dev/null +++ b/pwa/tsconfig.json @@ -0,0 +1,35 @@ +{ + "compilerOptions": { + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], + "allowJs": true, + "skipLibCheck": true, + "strict": false, + "noEmit": true, + "incremental": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "node", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "preserve", + "plugins": [ + { + "name": "next" + } + ], + "strictNullChecks": true + }, + "include": [ + "next-env.d.ts", + ".next/types/**/*.ts", + "**/*.ts", + "**/*.tsx" + ], + "exclude": [ + "node_modules" + ] +} -- GitLab From f86eda80adab247519d6537cd44c5249e8197c12 Mon Sep 17 00:00:00 2001 From: Hajar RAHMOUNI Date: Fri, 5 Jan 2024 19:10:27 +0100 Subject: [PATCH 2/2] control of inputs dates --- api/README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/api/README.md b/api/README.md index 084f886..f7a5db9 100755 --- a/api/README.md +++ b/api/README.md @@ -28,9 +28,9 @@ To manage migrations and update the database, follow these steps: 3. Apply the migration: - ```bash - docker compose exec php bin/console doctrine:migrations:migrate - ``` +```bash +docker compose exec php bin/console doctrine:migrations:migrate +``` (Optimisation) Indexation de la Colonne de Date, car toutes les routes font des opérations de filtrage basées sur cette colonne. @@ -40,6 +40,13 @@ create index date_index on sale (date); ## Clear cache +```Shell +sudo docker exec -it php sh +```` +```sh +composer require --dev doctrine/doctrine-fixtures-bundle +``` + ```Shell sudo docker compose exec php bin/console cache:clear ``` -- GitLab