update ui and other frontend updates

This commit is contained in:
JCEEE
2026-07-29 09:41:52 +01:00
parent 04b83925e0
commit 57ef30d3a7
79 changed files with 7323 additions and 429 deletions
+16
View File
@@ -0,0 +1,16 @@
import type { Handle } from '@sveltejs/kit';
const COOKIE_NAME = 'session';
export const handle: Handle = async ({ event, resolve }) => {
const raw = event.cookies.get(COOKIE_NAME);
if (raw) {
try {
event.locals.session = JSON.parse(raw);
} catch {
event.cookies.delete(COOKIE_NAME, { path: '/' });
}
}
return resolve(event);
};