Bold questions
This commit is contained in:
+4
-2
@@ -1,17 +1,19 @@
|
||||
import { mountChanges } from "./changes.js";
|
||||
import { h, replace } from "./dom.js";
|
||||
import { mountInbox } from "./inbox.js";
|
||||
import { mountTranscript } from "./task.js";
|
||||
import { mountTasks } from "./tasks.js";
|
||||
|
||||
export type View = "transcript" | "tasks" | "inbox";
|
||||
export type View = "transcript" | "changes" | "tasks" | "inbox";
|
||||
|
||||
const views: Record<View, { label: string; mount: (root: HTMLElement) => () => void }> = {
|
||||
transcript: { label: "Transcript", mount: mountTranscript },
|
||||
changes: { label: "Changes", mount: (root) => mountChanges(root) },
|
||||
tasks: { label: "Tasks", mount: mountTasks },
|
||||
inbox: { label: "Inbox", mount: mountInbox },
|
||||
};
|
||||
|
||||
const order: View[] = ["transcript", "tasks", "inbox"];
|
||||
const order: View[] = ["transcript", "changes", "tasks", "inbox"];
|
||||
|
||||
export class Pane {
|
||||
readonly el: HTMLElement;
|
||||
|
||||
Reference in New Issue
Block a user