feat: Reinitialize frontend with SvelteKit and TypeScript

- 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
This commit is contained in:
2026-02-17 16:19:59 -05:00
parent 54df6018f5
commit de2d83092e
28274 changed files with 3816354 additions and 90 deletions

View File

@@ -0,0 +1,39 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// Groups:
// Property name => \s*([^:;]+?)\s*:
// Property value => \s*((?:[^(;]*?(?:\([^)]*\))?)*?) <- will match any non ';' char except inside (), nested parentheses are not supported
// Important ("!important") => \s*(!important)?
// End of rule => \s*(?:$|;)
const SPLIT_RULES_REGEXP = /\s*([^:;]+?)\s*:\s*((?:[^(;]*?(?:\([^)]*\))?)*?)\s*(!important)?\s*(?:$|;)/g;
/**
* CSS parser.
*/
class CSSStyleDeclarationCSSParser {
/**
* Class construtor.
*
* @param cssText CSS string.
* @param callback Callback.
*/
static parse(cssText) {
const properties = {};
const rules = [];
const regexp = new RegExp(SPLIT_RULES_REGEXP);
let match;
while ((match = regexp.exec(cssText))) {
const name = (match[1] ?? '').trim();
const value = (match[2] ?? '').trim();
const important = match[3] ? true : false;
if (name && value) {
if (name.startsWith('--')) {
properties[name] = value;
}
rules.push({ name, value, important });
}
}
return { rules, properties };
}
}
exports.default = CSSStyleDeclarationCSSParser;
//# sourceMappingURL=CSSStyleDeclarationCSSParser.cjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"CSSStyleDeclarationCSSParser.cjs","sourceRoot":"","sources":["../../../../src/css/declaration/css-parser/CSSStyleDeclarationCSSParser.ts"],"names":[],"mappings":";;AAAA,UAAU;AACV,sCAAsC;AACtC,4IAA4I;AAC5I,+CAA+C;AAC/C,6BAA6B;AAC7B,MAAM,kBAAkB,GACvB,6EAA6E,CAAC;AAE/E;;GAEG;AACH,MAAqB,4BAA4B;IAChD;;;;;OAKG;IACI,MAAM,CAAC,KAAK,CAAC,OAAe;QAIlC,MAAM,UAAU,GAA+B,EAAE,CAAC;QAClD,MAAM,KAAK,GAA+D,EAAE,CAAC;QAC7E,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,kBAAkB,CAAC,CAAC;QAC9C,IAAI,KAAK,CAAC;QAEV,OAAO,CAAC,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;YACvC,MAAM,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;YACrC,MAAM,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;YACtC,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;YAE1C,IAAI,IAAI,IAAI,KAAK,EAAE,CAAC;gBACnB,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;oBAC3B,UAAU,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;gBAC1B,CAAC;gBAED,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;YACxC,CAAC;QACF,CAAC;QAED,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC;IAC9B,CAAC;CACD;AAhCD,+CAgCC"}

View File

@@ -0,0 +1,22 @@
/**
* CSS parser.
*/
export default class CSSStyleDeclarationCSSParser {
/**
* Class construtor.
*
* @param cssText CSS string.
* @param callback Callback.
*/
static parse(cssText: string): {
rules: Array<{
name: string;
value: string;
important: boolean;
}>;
properties: {
[name: string]: string;
};
};
}
//# sourceMappingURL=CSSStyleDeclarationCSSParser.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"CSSStyleDeclarationCSSParser.d.ts","sourceRoot":"","sources":["../../../../src/css/declaration/css-parser/CSSStyleDeclarationCSSParser.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,4BAA4B;IAChD;;;;;OAKG;WACW,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG;QACrC,KAAK,EAAE,KAAK,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,OAAO,CAAA;SAAE,CAAC,CAAC;QAClE,UAAU,EAAE;YAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,CAAC;KACvC;CAsBD"}