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,111 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const SVGGeometryElement_js_1 = __importDefault(require("../svg-geometry-element/SVGGeometryElement.cjs"));
const PropertySymbol = __importStar(require("../../PropertySymbol.cjs"));
const SVGAnimatedLength_js_1 = __importDefault(require("../../svg/SVGAnimatedLength.cjs"));
/**
* SVG Line Element.
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/SVGLineElement
*/
class SVGLineElement extends SVGGeometryElement_js_1.default {
// Internal properties
[PropertySymbol.x1] = null;
[PropertySymbol.y1] = null;
[PropertySymbol.x2] = null;
[PropertySymbol.y2] = null;
/**
* Returns x1 position.
*
* @returns X1 position.
*/
get x1() {
if (!this[PropertySymbol.x1]) {
this[PropertySymbol.x1] = new SVGAnimatedLength_js_1.default(PropertySymbol.illegalConstructor, this[PropertySymbol.window], {
getAttribute: () => this.getAttribute('x1'),
setAttribute: (value) => this.setAttribute('x1', value)
});
}
return this[PropertySymbol.x1];
}
/**
* Returns y1 position.
*
* @returns Y1 position.
*/
get y1() {
if (!this[PropertySymbol.y1]) {
this[PropertySymbol.y1] = new SVGAnimatedLength_js_1.default(PropertySymbol.illegalConstructor, this[PropertySymbol.window], {
getAttribute: () => this.getAttribute('y1'),
setAttribute: (value) => this.setAttribute('y1', value)
});
}
return this[PropertySymbol.y1];
}
/**
* Returns x2 position.
*
* @returns X2 position.
*/
get x2() {
if (!this[PropertySymbol.x2]) {
this[PropertySymbol.x2] = new SVGAnimatedLength_js_1.default(PropertySymbol.illegalConstructor, this[PropertySymbol.window], {
getAttribute: () => this.getAttribute('x2'),
setAttribute: (value) => this.setAttribute('x2', value)
});
}
return this[PropertySymbol.x2];
}
/**
* Returns y2 position.
*
* @returns Y2 position.
*/
get y2() {
if (!this[PropertySymbol.y2]) {
this[PropertySymbol.y2] = new SVGAnimatedLength_js_1.default(PropertySymbol.illegalConstructor, this[PropertySymbol.window], {
getAttribute: () => this.getAttribute('y2'),
setAttribute: (value) => this.setAttribute('y2', value)
});
}
return this[PropertySymbol.y2];
}
}
exports.default = SVGLineElement;
//# sourceMappingURL=SVGLineElement.cjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"SVGLineElement.cj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CAkFC"}

View File

@@ -0,0 +1,39 @@
import SVGGeometryElement from '../svg-geometry-element/SVGGeometryElement.cjs';
import * as PropertySymbol from '../../PropertySymbol.cjs';
import SVGAnimatedLength from '../../svg/SVGAnimatedLength.cjs';
/**
* SVG Line Element.
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/SVGLineElement
*/
export default class SVGLineElement extends SVGGeometryElement {
[PropertySymbol.x1]: SVGAnimatedLength | null;
[PropertySymbol.y1]: SVGAnimatedLength | null;
[PropertySymbol.x2]: SVGAnimatedLength | null;
[PropertySymbol.y2]: SVGAnimatedLength | null;
/**
* Returns x1 position.
*
* @returns X1 position.
*/
get x1(): SVGAnimatedLength;
/**
* Returns y1 position.
*
* @returns Y1 position.
*/
get y1(): SVGAnimatedLength;
/**
* Returns x2 position.
*
* @returns X2 position.
*/
get x2(): SVGAnimatedLength;
/**
* Returns y2 position.
*
* @returns Y2 position.
*/
get y2(): SVGAnimatedLength;
}
//# sourceMappingURL=SVGLineElement.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"SVGLineElement.d.ts","sourceRoot":"","sources":["../../../src/nodes/svg-line-element/SVGLineElement.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,+CAA+C,CAAC;AAC/E,OAAO,KAAK,cAAc,MAAM,yBAAyB,CAAC;AAC1D,OAAO,iBAAiB,MAAM,gCAAgC,CAAC;AAE/D;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,kBAAkB;IAEtD,CAAC,cAAc,CAAC,EAAE,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAQ;IACrD,CAAC,cAAc,CAAC,EAAE,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAQ;IACrD,CAAC,cAAc,CAAC,EAAE,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAQ;IACrD,CAAC,cAAc,CAAC,EAAE,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAQ;IAE5D;;;;OAIG;IACH,IAAW,EAAE,IAAI,iBAAiB,CAYjC;IAED;;;;OAIG;IACH,IAAW,EAAE,IAAI,iBAAiB,CAYjC;IAED;;;;OAIG;IACH,IAAW,EAAE,IAAI,iBAAiB,CAYjC;IAED;;;;OAIG;IACH,IAAW,EAAE,IAAI,iBAAiB,CAYjC;CACD"}