Add NAS dashboard MVP: Docker mgmt, Gitea, Files, Terminal
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<script>
|
||||
import Sidebar from "./components/Sidebar.svelte";
|
||||
import Dashboard from "./routes/Dashboard.svelte";
|
||||
import Docker from "./routes/Docker.svelte";
|
||||
import Gitea from "./routes/Gitea.svelte";
|
||||
import Files from "./routes/Files.svelte";
|
||||
import Terminal from "./routes/Terminal.svelte";
|
||||
|
||||
let page = $state("dashboard");
|
||||
</script>
|
||||
|
||||
<div class="flex h-screen bg-white text-gray-900">
|
||||
<Sidebar bind:page />
|
||||
<main class="flex-1 overflow-auto p-6">
|
||||
{#if page === "dashboard"}
|
||||
<Dashboard />
|
||||
{:else if page === "docker"}
|
||||
<Docker />
|
||||
{:else if page === "gitea"}
|
||||
<Gitea />
|
||||
{:else if page === "files"}
|
||||
<Files />
|
||||
{:else if page === "terminal"}
|
||||
<Terminal />
|
||||
{/if}
|
||||
</main>
|
||||
</div>
|
||||
Reference in New Issue
Block a user