Fix muxing

This commit is contained in:
2026-05-15 04:10:06 +02:00
parent 05faf1ce3b
commit 6deb883472
26 changed files with 662 additions and 169 deletions

View File

@@ -48,7 +48,6 @@ declare let authToken: string | null;
declare let selectedFilePath: string | null;
declare const sseMap: Map<string, EventSource>;
declare let pollTimer: number | null;
declare const $: (sel: string) => HTMLElement;
declare const $$: (sel: string) => NodeListOf<HTMLElement>;
declare const el: (id: string) => HTMLElement;
declare function apiHeaders(): Record<string, string>;
@@ -56,12 +55,15 @@ declare function api(method: string, url: string, body?: unknown): Promise<Respo
declare function apiJson<T>(method: string, url: string, body?: unknown): Promise<T>;
declare function showLoginScreen(): void;
declare function showMainScreen(): void;
declare function switchTab(name: string): void;
declare function activateTab(tablistId: string, tabId: string): void;
declare function onTabActivated(tablistId: string, panelId: string): void;
declare function wireTablist(tablistId: string): void;
declare function escapeHtml(str: string | null | undefined): string;
declare function formatSize(bytes: number): string;
declare function loadBrowseFiles(): Promise<void>;
declare const videoUpload: HTMLInputElement;
declare const uploadName: HTMLElement;
declare let youtubeStream: EventSource | null;
declare function loadJobs(): Promise<void>;
declare function renderJobs(jobs: Job[]): void;
declare function handleJobAction(id: string, action: string): Promise<void>;