← Về thư mục
frontend/src/features/chrome/palette.ts
- PaletteItem · type · L20-L26 — type PaletteItem = { group: string; label: string; sub?: string; icon?: string; run: () => void; };
- PaletteState · type · L28-L35 — type PaletteState = { open: boolean; items: PaletteItem[]; idx: number; el: HTMLElement | null; listEl: HTMLElement | null; gen: number; };
- isPaletteOpen · function · L47-L49 — function isPaletteOpen(): boolean
- SkillRow · type · L51-L51 — type SkillRow = { name?: string; displayName?: string; description?: string };
- SessionHit · type · L52-L52 — type SessionHit = { id: string; name?: string; task_summary?: string; project_id?: string | null };
- ArtifactHit · type · L53-L62 — type ArtifactHit = { id?: string; artifact_id?: string; filename?: string; content_type?: string; root_frame_id?: string | null; project_id?: string | null; version_id?: string | null; latest_version_id?: string | null; };
- DataproHit · type · L63-L71 — type DataproHit = { artifact_id?: string; root_frame_id?: string | null; project_id?: string | null; dataset_type?: string; json_pointer?: string; content?: unknown; query?: string; };
- parseArtifactQuery · function · L76-L87 — function parseArtifactQuery( search: string, ): { artifactId: string; versionId: string | null } | null
- openPaletteArtifact · function · L96-L129 — function openPaletteArtifact(hit: ArtifactHit): void
- go · function · L110-L121 — go = (): void
- dataproPaletteSummary · function · L132-L148 — function dataproPaletteSummary(hit: DataproHit | null | undefined): string
- openDataproSearchHit · function · L151-L183 — function openDataproSearchHit(hit: DataproHit): void
- loadSkillsCatalog · function · L185-L194 — async function loadSkillsCatalog(): Promise
- palActions · function · L197-L246 — function palActions(): PaletteItem[]
- openPalette · function · L249-L290 — function openPalette(): void
- closePalette · function · L293-L300 — function closePalette(): void
- resetPalette · function · L302-L305 — function resetPalette(): void
- palSearch · function · L308-L386 — async function palSearch(query: string): Promise
- palRender · function · L389-L421 — function palRender(): void
- palPick · function · L424-L427 — function palPick(i: number): void
- handlePaletteHotkey · function · L430-L441 — function handlePaletteHotkey(e: KeyboardEvent): boolean
- bindPaletteButton · function · L443-L446 — function bindPaletteButton(): void