feat: new routes

This commit is contained in:
2026-04-03 15:57:15 +02:00
parent c820f06d1c
commit e1c7ea7635
7 changed files with 14 additions and 29 deletions

View File

@@ -1,13 +1,15 @@
import { Routes, Route } from "react-router-dom";
import AppShell from "./components/shared/AppShell";
import DashboardView from "./routes/DashboardView";
import ComposeView from "./routes/ComposeView";
import BrowseView from "./routes/BrowseView";
import EditorView from "./routes/EditorView";
export default function App() {
return (
<AppShell>
<Routes>
<Route path="/" element={<DashboardView />} />
<Route path="/" element={<ComposeView />} />
<Route path="/browse" element={<BrowseView />} />
<Route path="/editor/new" element={<EditorView />} />
<Route path="/editor/:name" element={<EditorView />} />
</Routes>

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 1.5 MiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 2.8 MiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 3.4 MiB

View File

@@ -0,0 +1,7 @@
export default function BrowseView() {
return (
<div className="flex items-center justify-center h-full text-muted-foreground">
Browse
</div>
);
}

View File

@@ -30,7 +30,7 @@ import {
AlertDialogTitle,
} from "@/components/ui/alert-dialog";
export default function DashboardView() {
export default function ComposeView() {
const { pages, isLoading, fetchPages, deletePage, publishPage, unpublishPage } =
usePagesStore();
const navigate = useNavigate();
@@ -90,7 +90,7 @@ export default function DashboardView() {
<div>
{/* Header row */}
<div className="flex items-center px-4 py-2 border-b-2 border-border">
<h1 className="text-sm font-semibold flex-1">Pages</h1>
<h1 className="text-sm font-semibold flex-1">Compose</h1>
<div className="flex gap-2">
<Button variant="outline" onClick={handleRestart} disabled={restarting}>
<RotateCcw className="w-4 h-4 mr-2" />

View File

@@ -6,12 +6,6 @@
loglevel = 4
[interfaces]
# Local AutoInterface for LAN discovery
[[Default Interface]]
type = AutoInterface
enabled = Yes
# TCP Server — allows other Reticulum peers to connect
# Expose this port to reach the node from outside Docker
[[TCP Server Interface]]