feat: add svelte web workspace shell

This commit is contained in:
2026-07-18 16:40:09 +08:00
parent 833d9f094f
commit a758996799
26 changed files with 3090 additions and 7 deletions

10
apps/web/src/app/tabs.ts Normal file
View File

@@ -0,0 +1,10 @@
export type WorkspaceTab = {
key: string;
title: string;
route: string;
};
export function openTab(existing: WorkspaceTab[], next: WorkspaceTab): WorkspaceTab[] {
if (existing.some((tab) => tab.key === next.key)) return existing;
return [...existing, next];
}