← Về thư mục
frontend/src/features/sessions/chrome.ts
- errorPrefix · function · L19-L21 — function errorPrefix(lang: string = LANG): string
- hint · function · L23-L38 — function hint(text?: string | null, err?: boolean, spin?: boolean): void
- MenuItem · type · L40-L42 — type MenuItem = | { sep: true; label?: undefined; icon?: undefined; danger?: undefined; onClick?: undefined } | { sep?: false; label: string; icon?: string; danger?: boolean; onClick?: () => void };
- menuOutside · function · L44-L47 — function menuOutside(e: MouseEvent): void
- menuKeydown · function · L49-L54 — function menuKeydown(e: KeyboardEvent): void
- closeMenu · function · L56-L64 — function closeMenu(): void
- openMenu · function · L66-L106 — function openMenu(anchor: Element, items: MenuItem[]): void
- bindActivate · function · L109-L119 — function bindActivate(node: HTMLElement, activate: () => void): void
- ensureActivateKeys · function · L126-L139 — function ensureActivateKeys(node: HTMLElement): void
- bindArtifactTile · function · L141-L143 — function bindArtifactTile(node: HTMLElement, activate: () => void): void
- bindCloseTab · function · L145-L147 — function bindCloseTab(node: HTMLElement, activate: () => void): void
- watchActivateKeys · function · L151-L167 — function watchActivateKeys(root: ParentNode = document): void
- disconnectCopy · function · L169-L171 — function disconnectCopy(): string
- bannerEl · function · L177-L179 — function bannerEl(): HTMLElement | null
- showDisconnectBanner · function · L181-L190 — function showDisconnectBanner(): void
- hideDisconnectBanner · function · L192-L203 — function hideDisconnectBanner(): void
- SocketLike · type · L205-L208 — type SocketLike = { onopen: ((ev?: unknown) => void) | null; onclose: ((ev?: unknown) => void) | null; };
- wrapSocket · function · L210-L221 — function wrapSocket(socket: SocketLike): void
- watchDisconnect · function · L224-L233 — function watchDisconnect(): void