From 0b0ca60af7ab9305271435cdf6cd68a642755c7b Mon Sep 17 00:00:00 2001 From: tristan Date: Tue, 10 Feb 2026 16:49:03 +0100 Subject: [PATCH] =?UTF-8?q?feat=20:=20ajout=20d'un=20ordre=20d'affichage?= =?UTF-8?q?=20pour=20les=20employ=C3=A9s=20+=20ajout=20du=20drag=20and=20d?= =?UTF-8?q?rop=20pour=20changer=20l'ordre=20des=20employ=C3=A9s=20dans=20l?= =?UTF-8?q?e=20calendrier=20et=20l'impression?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 + config/packages/lexik_jwt_authentication.yaml | 3 +- frontend/components/CalendarGrid.vue | 24 +++++++- frontend/pages/calendar.vue | 58 +++++++++++++++++-- frontend/services/dto/employee.ts | 1 + frontend/services/employees.ts | 16 ++++- migrations/Version20260210121500.php | 26 +++++++++ migrations/Version20260210123000.php | 39 +++++++++++++ src/Entity/Employee.php | 16 +++++ src/State/AbsencePrintProvider.php | 1 + 10 files changed, 177 insertions(+), 9 deletions(-) create mode 100644 migrations/Version20260210121500.php create mode 100644 migrations/Version20260210123000.php diff --git a/.env b/.env index a18d79d..211ce90 100644 --- a/.env +++ b/.env @@ -46,4 +46,6 @@ JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem JWT_PASSPHRASE=9efb9a2ec48439c723621d0c6393d04da5516c8fa00ecdba1660717b4f996867 JWT_COOKIE_SECURE=0 JWT_COOKIE_SAMESITE=lax +JWT_TOKEN_TTL=86400 +JWT_COOKIE_TTL=86400 ###< lexik/jwt-authentication-bundle ### diff --git a/config/packages/lexik_jwt_authentication.yaml b/config/packages/lexik_jwt_authentication.yaml index 4fbf9be..ade6ecd 100644 --- a/config/packages/lexik_jwt_authentication.yaml +++ b/config/packages/lexik_jwt_authentication.yaml @@ -2,6 +2,7 @@ lexik_jwt_authentication: secret_key: '%env(resolve:JWT_SECRET_KEY)%' public_key: '%env(resolve:JWT_PUBLIC_KEY)%' pass_phrase: '%env(JWT_PASSPHRASE)%' + token_ttl: '%env(int:JWT_TOKEN_TTL)%' remove_token_from_body_when_cookies_used: true token_extractors: authorization_header: @@ -13,7 +14,7 @@ lexik_jwt_authentication: enabled: false set_cookies: BEARER: - lifetime: 86400 + lifetime: '%env(int:JWT_COOKIE_TTL)%' samesite: lax path: / secure: '%env(bool:JWT_COOKIE_SECURE)%' diff --git a/frontend/components/CalendarGrid.vue b/frontend/components/CalendarGrid.vue index 64b6064..3a82993 100644 --- a/frontend/components/CalendarGrid.vue +++ b/frontend/components/CalendarGrid.vue @@ -18,8 +18,12 @@