- 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
62 lines
2.4 KiB
JavaScript
62 lines
2.4 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
/**
|
|
* Child node utility.
|
|
*/
|
|
class CharacterDataUtility {
|
|
/**
|
|
* Appends the given DOMString to the CharacterData.data string; when this method returns, data contains the concatenated DOMString.
|
|
*
|
|
* @param characterData Character data.
|
|
* @param data Data.
|
|
*/
|
|
static appendData(characterData, data) {
|
|
characterData.data += data;
|
|
}
|
|
/**
|
|
* Removes the specified amount of characters, starting at the specified offset, from the CharacterData.data string; when this method returns, data contains the shortened DOMString.
|
|
*
|
|
* @param characterData Character data.
|
|
* @param offset Offset.
|
|
* @param count Count.
|
|
*/
|
|
static deleteData(characterData, offset, count) {
|
|
characterData.data =
|
|
characterData.data.substring(0, offset) + characterData.data.substring(offset + count);
|
|
}
|
|
/**
|
|
* Inserts the specified characters, at the specified offset, in the CharacterData.data string; when this method returns, data contains the modified DOMString.
|
|
*
|
|
* @param characterData Character data.
|
|
* @param offset Offset.
|
|
* @param data Data.
|
|
*/
|
|
static insertData(characterData, offset, data) {
|
|
characterData.data =
|
|
characterData.data.substring(0, offset) + data + characterData.data.substring(offset);
|
|
}
|
|
/**
|
|
* Replaces the specified amount of characters, starting at the specified offset, with the specified DOMString; when this method returns, data contains the modified DOMString.
|
|
*
|
|
* @param characterData Character data.
|
|
* @param offset Offset.
|
|
* @param count Count.
|
|
* @param data Data.
|
|
*/
|
|
static replaceData(characterData, offset, count, data) {
|
|
characterData.data =
|
|
characterData.data.substring(0, offset) + data + characterData.data.substring(offset + count);
|
|
}
|
|
/**
|
|
* Returns a DOMString containing the part of CharacterData.data of the specified length and starting at the specified offset.
|
|
*
|
|
* @param characterData Character data.
|
|
* @param offset Offset.
|
|
* @param count Count.
|
|
*/
|
|
static substringData(characterData, offset, count) {
|
|
return characterData.data.substring(offset, offset + count);
|
|
}
|
|
}
|
|
exports.default = CharacterDataUtility;
|
|
//# sourceMappingURL=CharacterDataUtility.cjs.map
|