settings page, reveal in explorer
This commit is contained in:
+5
-2
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user