- 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
42 lines
1.2 KiB
JavaScript
42 lines
1.2 KiB
JavaScript
import EventTarget from '../../event/EventTarget.js';
|
|
import * as PropertySymbol from '../../PropertySymbol.js';
|
|
/**
|
|
* RemotePlayback.
|
|
*
|
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/RemotePlayback
|
|
*/
|
|
export default class RemotePlayback extends EventTarget {
|
|
// Internal properties
|
|
[PropertySymbol.state] = 'disconnected';
|
|
// Events
|
|
onconnecting = null;
|
|
onconnect = null;
|
|
ondisconnect = null;
|
|
/**
|
|
* Returns the state of the remote playback.
|
|
*/
|
|
get state() {
|
|
return this[PropertySymbol.state];
|
|
}
|
|
/**
|
|
* Watches the list of available remote playback devices and returns a Promise that resolves with a callbackId of an available remote playback device.
|
|
*
|
|
* @returns Promise.
|
|
*/
|
|
async watchAvailability() {
|
|
// TODO: Implement
|
|
}
|
|
/**
|
|
* Cancels the request to monitor the availability of remote playback devices.
|
|
*/
|
|
cancelWatchAvailability() {
|
|
// TODO: Implement
|
|
}
|
|
/**
|
|
* Prompts the user to select and give permission to connect to a remote playback device.
|
|
*/
|
|
prompt() {
|
|
// TODO: Implement
|
|
}
|
|
}
|
|
//# sourceMappingURL=RemotePlayback.js.map
|