- 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
94 lines
2.7 KiB
TypeScript
94 lines
2.7 KiB
TypeScript
import Blob from '../file/Blob.js';
|
|
import * as PropertySymbol from '../PropertySymbol.js';
|
|
import File from '../file/File.js';
|
|
import HTMLFormElement from '../nodes/html-form-element/HTMLFormElement.js';
|
|
import BrowserWindow from '../window/BrowserWindow.js';
|
|
/**
|
|
* FormData.
|
|
*
|
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/FormData
|
|
*/
|
|
export default class FormData implements Iterable<[string, string | File]> {
|
|
#private;
|
|
protected [PropertySymbol.window]: BrowserWindow;
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param [form] Form.
|
|
*/
|
|
constructor(form?: HTMLFormElement);
|
|
/**
|
|
* For each.
|
|
*
|
|
* @param callback Callback.
|
|
*/
|
|
forEach(callback: (value: string | File, key: string, thisArg: FormData) => void): void;
|
|
/**
|
|
* Appends a new value onto an existing key.
|
|
*
|
|
* @param name Name.
|
|
* @param value Value.
|
|
* @param [filename] Filename.
|
|
*/
|
|
append(name: string, value: string | Blob | File, filename?: string): void;
|
|
/**
|
|
* Removes a value.
|
|
*
|
|
* @param name Name.
|
|
*/
|
|
delete(name: string): void;
|
|
/**
|
|
* Returns value.
|
|
*
|
|
* @param name Name.
|
|
* @returns Value.
|
|
*/
|
|
get(name: string): string | File | null;
|
|
/**
|
|
* Returns all values associated with the given name.
|
|
*
|
|
* @param name Name.
|
|
* @returns Values.
|
|
*/
|
|
getAll(name: string): Array<string | File>;
|
|
/**
|
|
* Returns whether a FormData object contains a certain key.
|
|
*
|
|
* @param name Name.
|
|
* @returns "true" if the FormData object contains the key.
|
|
*/
|
|
has(name: string): boolean;
|
|
/**
|
|
* Sets a new value for an existing key inside a FormData object, or adds the key/value if it does not already exist.
|
|
*
|
|
* @param name Name.
|
|
* @param value Value.
|
|
* @param [filename] Filename.
|
|
*/
|
|
set(name: string, value: string | Blob | File, filename?: string): void;
|
|
/**
|
|
* Returns an iterator, allowing you to go through all keys of the key/value pairs contained in this object.
|
|
*
|
|
* @returns Iterator.
|
|
*/
|
|
keys(): IterableIterator<string>;
|
|
/**
|
|
* Returns an iterator, allowing you to go through all values of the key/value pairs contained in this object.
|
|
*
|
|
* @returns Iterator.
|
|
*/
|
|
values(): IterableIterator<string | File>;
|
|
/**
|
|
* Returns an iterator, allowing you to go through all key/value pairs contained in this object.
|
|
*
|
|
* @returns Iterator.
|
|
*/
|
|
entries(): IterableIterator<[string, string | File]>;
|
|
/**
|
|
* Iterator.
|
|
*
|
|
* @returns Iterator.
|
|
*/
|
|
[Symbol.iterator](): IterableIterator<[string, string | File]>;
|
|
}
|
|
//# sourceMappingURL=FormData.d.ts.map
|