- Delete old Vite+Svelte frontend - Initialize new SvelteKit project with TypeScript - Configure Tailwind CSS v4 + DaisyUI - Implement JWT authentication with auto-refresh - Create login page with form validation (Zod) - Add protected route guards - Update Docker configuration for single-stage build - Add E2E tests with Playwright (6/11 passing) - Fix Svelte 5 reactivity with $state() runes Known issues: - 5 E2E tests failing (timing/async issues) - Token refresh implementation needs debugging - Validation error display timing
16 lines
658 B
TypeScript
16 lines
658 B
TypeScript
/**
|
|
* Cookie configuration options. The defaults are:
|
|
* Path=/; Max-Age=120; SameSite=Strict;
|
|
*/
|
|
export interface CookieSerializeOptions {
|
|
path?: string | undefined;
|
|
maxAge?: number | undefined;
|
|
sameSite?: 'Lax' | 'Strict' | 'None';
|
|
secure?: boolean | undefined;
|
|
}
|
|
export declare function actionResult<T extends Record<string, unknown> | App.Error | string, Type extends T extends string ? 'redirect' | 'error' : 'success' | 'failure' | 'error'>(type: Type, data?: T, options?: number | {
|
|
status?: number;
|
|
message?: Type extends 'redirect' ? App.PageData['flash'] : never;
|
|
cookieOptions?: CookieSerializeOptions;
|
|
}): Response;
|