- 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
51 lines
1.1 KiB
JavaScript
51 lines
1.1 KiB
JavaScript
import HTMLElement from '../html-element/HTMLElement.js';
|
|
import * as PropertySymbol from '../../PropertySymbol.js';
|
|
/**
|
|
* HTMLModElement
|
|
*
|
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLModElement
|
|
*/
|
|
export default class HTMLModElement extends HTMLElement {
|
|
/**
|
|
* Returns source.
|
|
*
|
|
* @returns Source.
|
|
*/
|
|
get cite() {
|
|
if (!this.hasAttribute('cite')) {
|
|
return '';
|
|
}
|
|
try {
|
|
return new URL(this.getAttribute('cite'), this[PropertySymbol.ownerDocument].location.href)
|
|
.href;
|
|
}
|
|
catch (e) {
|
|
return this.getAttribute('cite');
|
|
}
|
|
}
|
|
/**
|
|
* Sets source.
|
|
*
|
|
* @param cite Source.
|
|
*/
|
|
set cite(cite) {
|
|
this.setAttribute('cite', cite);
|
|
}
|
|
/**
|
|
* Returns date time.
|
|
*
|
|
* @returns Date time.
|
|
*/
|
|
get dateTime() {
|
|
return this.getAttribute('datetime') || '';
|
|
}
|
|
/**
|
|
* Sets date time.
|
|
*
|
|
* @param dateTime Date time.
|
|
*/
|
|
set dateTime(dateTime) {
|
|
this.setAttribute('datetime', dateTime);
|
|
}
|
|
}
|
|
//# sourceMappingURL=HTMLModElement.js.map
|