settings page, reveal in explorer

This commit is contained in:
2026-05-11 23:59:29 +03:00
parent 2c041be5a9
commit 03af276a1d
5 changed files with 283 additions and 11 deletions
+5 -2
View File
@@ -5,8 +5,9 @@
import Bootstrap from "./lib/Bootstrap.svelte"
import FirstRun from "./lib/FirstRun.svelte"
import Main from "./lib/Main.svelte"
import Settings from "./lib/Settings.svelte"
type View = "loading" | "bootstrap" | "first-run" | "main"
type View = "loading" | "bootstrap" | "first-run" | "main" | "settings"
let view: View = $state("loading")
@@ -34,6 +35,8 @@
<Bootstrap onReady={refresh} />
{:else if view === "first-run"}
<FirstRun onDone={refresh} />
{:else if view === "settings"}
<Settings onClose={() => view = "main"} />
{:else}
<Main />
<Main onSettings={() => view = "settings"} />
{/if}