Add web push notifications for new inbox items
This commit is contained in:
+4
-2
@@ -2,10 +2,11 @@ import { mountAdmin } from "./admin.js";
|
||||
import { mountChanges } from "./changes.js";
|
||||
import { h, replace } from "./dom.js";
|
||||
import { mountInbox } from "./inbox.js";
|
||||
import { mountSettings } from "./settings.js";
|
||||
import { mountTranscript } from "./task.js";
|
||||
import { mountTasks } from "./tasks.js";
|
||||
|
||||
export type View = "transcript" | "changes" | "tasks" | "inbox" | "admin";
|
||||
export type View = "transcript" | "changes" | "tasks" | "inbox" | "admin" | "settings";
|
||||
|
||||
const views: Record<View, { label: string; mount: (root: HTMLElement) => () => void }> = {
|
||||
transcript: { label: "Transcript", mount: mountTranscript },
|
||||
@@ -13,9 +14,10 @@ const views: Record<View, { label: string; mount: (root: HTMLElement) => () => v
|
||||
tasks: { label: "Tasks", mount: mountTasks },
|
||||
inbox: { label: "Inbox", mount: mountInbox },
|
||||
admin: { label: "Admin", mount: mountAdmin },
|
||||
settings: { label: "Settings", mount: mountSettings },
|
||||
};
|
||||
|
||||
const order: View[] = ["transcript", "changes", "tasks", "inbox", "admin"];
|
||||
const order: View[] = ["transcript", "changes", "tasks", "inbox", "admin", "settings"];
|
||||
|
||||
export class Pane {
|
||||
readonly el: HTMLElement;
|
||||
|
||||
Reference in New Issue
Block a user