From da0d79f0db873c08fab3bc85023167e174d18b0e Mon Sep 17 00:00:00 2001 From: 苏向夜 Date: Mon, 19 Jan 2026 14:17:32 +0800 Subject: chore(ui): refactor workspace to monorepo --- ui/src/stores/ui.svelte.ts | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 ui/src/stores/ui.svelte.ts (limited to 'ui/src/stores/ui.svelte.ts') diff --git a/ui/src/stores/ui.svelte.ts b/ui/src/stores/ui.svelte.ts deleted file mode 100644 index e88f6b4..0000000 --- a/ui/src/stores/ui.svelte.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { type ViewType } from "../types"; - -export class UIState { - currentView: ViewType = $state("home"); - status = $state("Ready"); - showConsole = $state(false); - appVersion = $state("..."); - - private statusTimeout: ReturnType | null = null; - - setStatus(msg: string) { - if (this.statusTimeout) clearTimeout(this.statusTimeout); - - this.status = msg; - - if (msg !== "Ready") { - this.statusTimeout = setTimeout(() => { - this.status = "Ready"; - }, 5000); - } - } - - toggleConsole() { - this.showConsole = !this.showConsole; - } - - setView(view: ViewType) { - this.currentView = view; - } -} - -export const uiState = new UIState(); -- cgit v1.2.3-70-g09d2