- 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
36 lines
1.0 KiB
JavaScript
36 lines
1.0 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
/**
|
|
* DOMStringMap utility.
|
|
*
|
|
* Reference:
|
|
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset
|
|
*/
|
|
class DOMStringMapUtility {
|
|
/**
|
|
* Transforms a kebab cased string to camel case.
|
|
*
|
|
* @param text Text string.
|
|
* @returns Camel cased string.
|
|
*/
|
|
static kebabToCamelCase(text) {
|
|
const parts = text.split('-');
|
|
for (let i = 0, max = parts.length; i < max; i++) {
|
|
parts[i] = i > 0 ? parts[i].charAt(0).toUpperCase() + parts[i].slice(1) : parts[i];
|
|
}
|
|
return parts.join('');
|
|
}
|
|
/**
|
|
* Transforms a camel cased string to kebab case.
|
|
*
|
|
* @param text Text string.
|
|
* @returns Kebab cased string.
|
|
*/
|
|
static camelCaseToKebab(text) {
|
|
return text
|
|
.toString()
|
|
.replace(/[A-Z]+(?![a-z])|[A-Z]/g, ($, ofs) => (ofs ? '-' : '') + $.toLowerCase());
|
|
}
|
|
}
|
|
exports.default = DOMStringMapUtility;
|
|
//# sourceMappingURL=DOMStringMapUtility.cjs.map
|