← Về thư mục
frontend/src/features/chrome/team.ts
- TeamUser · type · L15-L21 — type TeamUser = { id?: string; username?: string; role?: string; kind?: string; disabled?: boolean; };
- AuthMe · type · L23-L26 — type AuthMe = { team_mode?: boolean; user?: TeamUser; };
- TeamFilesRoot · type · L28-L28 — type TeamFilesRoot = { path: string };
- TeamFilesEntry · type · L29-L29 — type TeamFilesEntry = { name: string; dir?: boolean; size?: number };
- TeamFilesBody · type · L30-L35 — type TeamFilesBody = { error?: string; roots?: TeamFilesRoot[]; entries?: TeamFilesEntry[]; path?: string; };
- resetTeamFilesPath · function · L39-L41 — function resetTeamFilesPath(): void
- teamFilesPath · function · L43-L45 — function teamFilesPath(): string
- pageLocation · function · L47-L50 — function pageLocation(): { pathname: string; replace: (url: string) => void }
- ensureTeamDom · function · L53-L88 — function ensureTeamDom(): void
- buildAdminModal · function · L90-L118 — function buildAdminModal(): HTMLElement
- buildFilesModal · function · L120-L156 — function buildFilesModal(): HTMLElement
- fmtSize · function · L159-L164 — function fmtSize(n: number): string
- applyIdentity · function · L166-L180 — function applyIdentity(me: AuthMe | null): void
- applyGovernance · function · L182-L195 — function applyGovernance(me: AuthMe | null): void
- probeTeamAuth · function · L198-L211 — async function probeTeamAuth(): Promise
- openTeamFilesPanel · function · L213-L216 — function openTeamFilesPanel(): void
- openAdmin · function · L218-L221 — function openAdmin(): void
- probeTeamFiles · function · L223-L237 — function probeTeamFiles(): void
- loadTeamFiles · function · L239-L246 — function loadTeamFiles(path: string): void
- renderTeamFiles · function · L248-L312 — function renderTeamFiles(res: { ok: boolean; body: TeamFilesBody }): void
- section · function · L314-L320 — function section(parent: HTMLElement, title: string): HTMLElement
- table · function · L322-L346 — function table(box: HTMLElement, headers: string[], rows: unknown[][]): void
- jget · function · L348-L350 — function jget(path: string): Promise
- loadAdmin · function · L352-L404 — async function loadAdmin(): Promise
- bindTeamChrome · function · L406-L448 — function bindTeamChrome(): void
- bootTeam · function · L450-L456 — function bootTeam(): void