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,54 @@
import SVGGraphicsElement from '../svg-graphics-element/SVGGraphicsElement.js';
import SVGAnimatedNumber from '../../svg/SVGAnimatedNumber.js';
import * as PropertySymbol from '../../PropertySymbol.js';
import SVGPoint from '../../svg/SVGPoint.js';
/**
* SVG Geometry Element.
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement
*/
export default class SVGGeometryElement extends SVGGraphicsElement {
[PropertySymbol.pathLength]: SVGAnimatedNumber | null;
/**
* Returns path length.
*
* @returns Path length.
*/
get pathLength(): SVGAnimatedNumber;
/**
* Returns true if the point is in the fill of the element.
*
* Not implemented yet.
*
* @param point Point.
* @returns True if the point is in the fill of the element.
*/
isPointInFill(point: SVGPoint): boolean;
/**
* Returns true if the point is in the stroke of the element.
*
* Not implemented yet.
*
* @param point Point.
* @returns True if the point is in the stroke of the element.
*/
isPointInStroke(point: SVGPoint): boolean;
/**
* Returns total length.
*
* Not implemented yet.
*
* @returns Total length.
*/
getTotalLength(): number;
/**
* Returns point at length.
*
* Not implemented yet.
*
* @param _distance Distance.
* @returns Point at length.
*/
getPointAtLength(_distance: number): SVGPoint;
}
//# sourceMappingURL=SVGGeometryElement.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"SVGGeometryElement.d.ts","sourceRoot":"","sources":["../../../src/nodes/svg-geometry-element/SVGGeometryElement.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,+CAA+C,CAAC;AAC/E,OAAO,iBAAiB,MAAM,gCAAgC,CAAC;AAC/D,OAAO,KAAK,cAAc,MAAM,yBAAyB,CAAC;AAC1D,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAE7C;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,kBAAkB;IAE1D,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAQ;IAEpE;;;;OAIG;IACH,IAAW,UAAU,IAAI,iBAAiB,CAYzC;IAED;;;;;;;OAOG;IACI,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO;IAU9C;;;;;;;OAOG;IACI,eAAe,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO;IAUhD;;;;;;OAMG;IACI,cAAc,IAAI,MAAM;IAK/B;;;;;;;OAOG;IACI,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ;CAIpD"}

View File

@@ -0,0 +1,81 @@
import SVGGraphicsElement from '../svg-graphics-element/SVGGraphicsElement.js';
import SVGAnimatedNumber from '../../svg/SVGAnimatedNumber.js';
import * as PropertySymbol from '../../PropertySymbol.js';
import SVGPoint from '../../svg/SVGPoint.js';
/**
* SVG Geometry Element.
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement
*/
export default class SVGGeometryElement extends SVGGraphicsElement {
// Internal properties
[PropertySymbol.pathLength] = null;
/**
* Returns path length.
*
* @returns Path length.
*/
get pathLength() {
if (!this[PropertySymbol.pathLength]) {
this[PropertySymbol.pathLength] = new SVGAnimatedNumber(PropertySymbol.illegalConstructor, this[PropertySymbol.window], {
getAttribute: () => this.getAttribute('pathLength'),
setAttribute: (value) => this.setAttribute('pathLength', value)
});
}
return this[PropertySymbol.pathLength];
}
/**
* Returns true if the point is in the fill of the element.
*
* Not implemented yet.
*
* @param point Point.
* @returns True if the point is in the fill of the element.
*/
isPointInFill(point) {
if (!(point instanceof SVGPoint)) {
throw new TypeError(`Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.`);
}
// TODO: Implement isPointInFill()
return false;
}
/**
* Returns true if the point is in the stroke of the element.
*
* Not implemented yet.
*
* @param point Point.
* @returns True if the point is in the stroke of the element.
*/
isPointInStroke(point) {
if (!(point instanceof SVGPoint)) {
throw new TypeError(`Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.`);
}
// TODO: Implement isPointInStroke()
return false;
}
/**
* Returns total length.
*
* Not implemented yet.
*
* @returns Total length.
*/
getTotalLength() {
// TODO: Implement getTotalLength()
return 0;
}
/**
* Returns point at length.
*
* Not implemented yet.
*
* @param _distance Distance.
* @returns Point at length.
*/
getPointAtLength(_distance) {
// TODO: Implement getPointAtLength()
return new SVGPoint(PropertySymbol.illegalConstructor, this[PropertySymbol.window]);
}
}
//# sourceMappingURL=SVGGeometryElement.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"SVGGeometryElement.js","sourceRoot":"","sources":["../../../src/nodes/svg-geometry-element/SVGGeometryElement.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,+CAA+C,CAAC;AAC/E,OAAO,iBAAiB,MAAM,gCAAgC,CAAC;AAC/D,OAAO,KAAK,cAAc,MAAM,yBAAyB,CAAC;AAC1D,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAE7C;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,kBAAkB;IACjE,sBAAsB;IACf,CAAC,cAAc,CAAC,UAAU,CAAC,GAA6B,IAAI,CAAC;IAEpE;;;;OAIG;IACH,IAAW,UAAU;QACpB,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,CAAC;YACtC,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,iBAAiB,CACtD,cAAc,CAAC,kBAAkB,EACjC,IAAI,CA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