From 8fe3d71ddef248332cfe2af26f6b8f02844b7e65 Mon Sep 17 00:00:00 2001 From: Patryk Hegenberg Date: Fri, 16 Jan 2026 11:25:34 +0100 Subject: [PATCH] fix: fix error user dont get updated targetWorkingHours also perform code formatting and cleanup --- frontend/index.html | 22 +- frontend/jsconfig.json | 10 +- frontend/src/App.svelte | 49 +- frontend/src/components/AdminDashboard.svelte | 479 ++++++--- frontend/src/components/Login.svelte | 132 ++- frontend/src/components/ScheduleItem.svelte | 43 +- frontend/src/components/ScheduleItems.svelte | 37 +- .../src/components/ToastNotification.svelte | 74 +- frontend/src/components/UserDashboard.svelte | 984 ++++++++++++------ .../components/admin/AdminScheduleTab.svelte | 569 ++++++---- .../admin/AdminSchoolYearsTab.svelte | 107 +- .../components/admin/AdminSettingsTab.svelte | 78 +- .../admin/AdminTimeEntriesTab.svelte | 287 +++-- .../src/components/admin/AdminUsersTab.svelte | 215 ++-- frontend/src/lib/api.js | 329 +++--- frontend/src/lib/stores.js | 83 +- frontend/src/lib/utils.js | 38 +- frontend/src/main.js | 8 +- frontend/svelte.config.js | 4 +- frontend/tailwind.config.js | 10 +- frontend/vite.config.js | 25 +- 21 files changed, 2348 insertions(+), 1235 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 705ff05..55d0a6d 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1,14 +1,16 @@ - - - - - school-timetracker - - -
- - + + + + + school-timetracker + + + +
+ + + diff --git a/frontend/jsconfig.json b/frontend/jsconfig.json index c7a0b10..49869a6 100644 --- a/frontend/jsconfig.json +++ b/frontend/jsconfig.json @@ -17,7 +17,9 @@ */ "sourceMap": true, "esModuleInterop": true, - "types": ["vite/client"], + "types": [ + "vite/client" + ], "skipLibCheck": true, /** * Typecheck JS in `.svelte` and `.js` files by default. @@ -29,5 +31,9 @@ * Use global.d.ts instead of compilerOptions.types * to avoid limiting type declarations. */ - "include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.svelte"] + "include": [ + "src/**/*.d.ts", + "src/**/*.js", + "src/**/*.svelte" + ] } diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte index 38f9a5e..f7bcbde 100644 --- a/frontend/src/App.svelte +++ b/frontend/src/App.svelte @@ -1,52 +1,54 @@
- +
{#if !isAuthenticated} @@ -57,4 +59,3 @@ {/if}
- diff --git a/frontend/src/components/AdminDashboard.svelte b/frontend/src/components/AdminDashboard.svelte index 09c0e7c..ba77bf1 100644 --- a/frontend/src/components/AdminDashboard.svelte +++ b/frontend/src/components/AdminDashboard.svelte @@ -1,179 +1,342 @@
- - - -
- -