- 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
60 lines
1.7 KiB
TypeScript
60 lines
1.7 KiB
TypeScript
import IBrowserSettings from './types/IBrowserSettings.cjs';
|
|
import BrowserContext from './BrowserContext.cjs';
|
|
import IOptionalBrowserSettings from './types/IOptionalBrowserSettings.cjs';
|
|
import BrowserPage from './BrowserPage.cjs';
|
|
import IBrowser from './types/IBrowser.cjs';
|
|
import BrowserExceptionObserver from './utilities/BrowserExceptionObserver.cjs';
|
|
import * as PropertySymbol from '../PropertySymbol.cjs';
|
|
/**
|
|
* Browser.
|
|
*/
|
|
export default class Browser implements IBrowser {
|
|
readonly contexts: BrowserContext[];
|
|
readonly settings: IBrowserSettings;
|
|
readonly console: Console | null;
|
|
[PropertySymbol.exceptionObserver]: BrowserExceptionObserver | null;
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param [options] Options.
|
|
* @param [options.settings] Browser settings.
|
|
* @param [options.console] Console.
|
|
*/
|
|
constructor(options?: {
|
|
settings?: IOptionalBrowserSettings;
|
|
console?: Console;
|
|
});
|
|
/**
|
|
* Returns the default context.
|
|
*
|
|
* @returns Default context.
|
|
*/
|
|
get defaultContext(): BrowserContext;
|
|
/**
|
|
* Aborts all ongoing operations and destroys the browser.
|
|
*/
|
|
close(): Promise<void>;
|
|
/**
|
|
* Returns a promise that is resolved when all resources has been loaded, fetch has completed, and all async tasks such as timers are complete.
|
|
*
|
|
* @returns Promise.
|
|
*/
|
|
waitUntilComplete(): Promise<void>;
|
|
/**
|
|
* Aborts all ongoing operations.
|
|
*/
|
|
abort(): Promise<void>;
|
|
/**
|
|
* Creates a new incognito context.
|
|
*
|
|
* @returns Context.
|
|
*/
|
|
newIncognitoContext(): BrowserContext;
|
|
/**
|
|
* Creates a new page.
|
|
*
|
|
* @returns Page.
|
|
*/
|
|
newPage(): BrowserPage;
|
|
}
|
|
//# sourceMappingURL=Browser.d.ts.map
|