- 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
69 lines
1.9 KiB
TypeScript
69 lines
1.9 KiB
TypeScript
import CSSRule from './CSSRule.cjs';
|
|
import MediaList from './MediaList.cjs';
|
|
import BrowserWindow from '../window/BrowserWindow.cjs';
|
|
import * as PropertySymbol from '../PropertySymbol.cjs';
|
|
/**
|
|
* CSS StyleSheet.
|
|
*
|
|
* Reference:
|
|
* https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet.
|
|
*/
|
|
export default class CSSStyleSheet {
|
|
#private;
|
|
protected [PropertySymbol.window]: BrowserWindow;
|
|
value: string;
|
|
name: string;
|
|
namespaceURI: string;
|
|
readonly cssRules: CSSRule[];
|
|
media: MediaList | string;
|
|
title: string;
|
|
alternate: boolean;
|
|
disabled: boolean;
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param [options] Options.
|
|
* @param [options.media] Media.
|
|
* @param [options.title] Title.
|
|
* @param [options.alternate] Alternate.
|
|
* @param [options.disabled] Disabled.
|
|
*/
|
|
constructor(options?: {
|
|
media?: MediaList | string;
|
|
title?: string;
|
|
alternate?: boolean;
|
|
disabled?: boolean;
|
|
});
|
|
/**
|
|
* Inserts a rule.
|
|
*
|
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/insertRule
|
|
* @param rule Rule.
|
|
* @param [index] Index.
|
|
* @returns The newly inserterted rule's index.
|
|
*/
|
|
insertRule(rule: string, index?: number): number;
|
|
/**
|
|
* Removes a rule.
|
|
*
|
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/deleteRule
|
|
* @param index Index.
|
|
*/
|
|
deleteRule(index: number): void;
|
|
/**
|
|
* Replaces all CSS rules.
|
|
*
|
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/replace
|
|
* @param text CSS text.
|
|
* @returns Promise.
|
|
*/
|
|
replace(text: string): Promise<void>;
|
|
/**
|
|
* Replaces all CSS rules.
|
|
*
|
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/replaceSync
|
|
* @param text CSS text.
|
|
*/
|
|
replaceSync(text: string): void;
|
|
}
|
|
//# sourceMappingURL=CSSStyleSheet.d.ts.map
|