- 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
57 lines
1.5 KiB
TypeScript
57 lines
1.5 KiB
TypeScript
import ProgressEvent from '../event/events/ProgressEvent.js';
|
|
import Blob from './Blob.js';
|
|
import EventTarget from '../event/EventTarget.js';
|
|
import { Buffer } from 'buffer';
|
|
/**
|
|
* Reference:
|
|
* https://developer.mozilla.org/sv-SE/docs/Web/API/FileReader.
|
|
*
|
|
* Based on:
|
|
* https://github.com/jsdom/jsdom/blob/master/lib/jsdom/living/file-api/FileReader-impl.js (MIT licensed).
|
|
*/
|
|
export default class FileReader extends EventTarget {
|
|
#private;
|
|
readonly error: Error;
|
|
readonly result: Buffer | ArrayBuffer | string;
|
|
readonly readyState: number;
|
|
readonly onabort: (event: ProgressEvent) => void;
|
|
readonly onerror: (event: ProgressEvent) => void;
|
|
readonly onload: (event: ProgressEvent) => void;
|
|
readonly onloadstart: (event: ProgressEvent) => void;
|
|
readonly onloadend: (event: ProgressEvent) => void;
|
|
readonly onprogress: (event: ProgressEvent) => void;
|
|
/**
|
|
* Constructor.
|
|
*/
|
|
constructor();
|
|
/**
|
|
* Reads as ArrayBuffer.
|
|
*
|
|
* @param blob Blob.
|
|
*/
|
|
readAsArrayBuffer(blob: Blob): void;
|
|
/**
|
|
* Reads as binary string.
|
|
*
|
|
* @param blob Blob.
|
|
*/
|
|
readAsBinaryString(blob: Blob): void;
|
|
/**
|
|
* Reads as data URL.
|
|
*
|
|
* @param blob Blob.
|
|
*/
|
|
readAsDataURL(blob: Blob): void;
|
|
/**
|
|
* Reads as text.
|
|
*
|
|
* @param blob Blob.
|
|
* @param [encoding] Encoding.
|
|
*/
|
|
readAsText(blob: Blob, encoding?: string | null): void;
|
|
/**
|
|
* Aborts the file reader.
|
|
*/
|
|
abort(): void;
|
|
}
|
|
//# sourceMappingURL=FileReader.d.ts.map
|