- 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
88 lines
2.3 KiB
TypeScript
88 lines
2.3 KiB
TypeScript
import EventTarget from '../../event/EventTarget.js';
|
|
import Event from '../../event/Event.js';
|
|
import TextTrackCue from './TextTrackCue.js';
|
|
import TextTrackCueList from './TextTrackCueList.js';
|
|
import * as PropertySymbol from '../../PropertySymbol.js';
|
|
import TextTrackKindEnum from './TextTrackKindEnum.js';
|
|
/**
|
|
* TextTrack.
|
|
*
|
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/TextTrack
|
|
*/
|
|
export default class TextTrack extends EventTarget {
|
|
[PropertySymbol.kind]: TextTrackKindEnum;
|
|
[PropertySymbol.label]: string;
|
|
[PropertySymbol.language]: string;
|
|
[PropertySymbol.id]: string;
|
|
[PropertySymbol.mode]: 'disabled' | 'showing';
|
|
[PropertySymbol.cues]: TextTrackCueList;
|
|
[PropertySymbol.activeCues]: TextTrackCueList;
|
|
oncuechange: (event: Event) => void;
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param illegalConstructorSymbol Illegal constructor symbol.
|
|
*/
|
|
constructor(illegalConstructorSymbol: symbol);
|
|
/**
|
|
* Returns the kind of the text track.
|
|
*
|
|
* @returns Kind.
|
|
*/
|
|
get kind(): TextTrackKindEnum;
|
|
/**
|
|
* Returns the label of the text track.
|
|
*
|
|
* @returns Label.
|
|
*/
|
|
get label(): string;
|
|
/**
|
|
* Returns the language of the text track.
|
|
*
|
|
* @returns Language.
|
|
*/
|
|
get language(): string;
|
|
/**
|
|
* Returns the id of the text track.
|
|
*
|
|
* @returns Id.
|
|
*/
|
|
get id(): string;
|
|
/**
|
|
* Returns the mode of the text track.
|
|
*
|
|
* @returns Mode.
|
|
*/
|
|
get mode(): 'disabled' | 'showing';
|
|
/**
|
|
* Sets the mode of the text track.
|
|
*
|
|
* @param mode Mode.
|
|
*/
|
|
set mode(mode: 'disabled' | 'showing');
|
|
/**
|
|
* Returns the list of cues in the track list.
|
|
*
|
|
* @returns List of cues.
|
|
*/
|
|
get cues(): TextTrackCueList | null;
|
|
/**
|
|
* Returns the list of active cues in the track list.
|
|
*
|
|
* @returns List of active cues.
|
|
*/
|
|
get activeCues(): TextTrackCueList | null;
|
|
/**
|
|
* Adds a cue to the track list.
|
|
*
|
|
* @param cue Text track cue.
|
|
*/
|
|
addCue(cue: TextTrackCue): void;
|
|
/**
|
|
* Removes a cue from the track list.
|
|
*
|
|
* @param cue Text track cue.
|
|
*/
|
|
removeCue(cue: TextTrackCue): void;
|
|
}
|
|
//# sourceMappingURL=TextTrack.d.ts.map
|