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 { Routes, Route } from "react-router-dom";
import AppShell from "./components/shared/AppShell"; 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"; import EditorView from "./routes/EditorView";
export default function App() { export default function App() {
return ( return (
<AppShell> <AppShell>
<Routes> <Routes>
<Route path="/" element={<DashboardView />} /> <Route path="/" element={<ComposeView />} />
<Route path="/browse" element={<BrowseView />} />
<Route path="/editor/new" element={<EditorView />} /> <Route path="/editor/new" element={<EditorView />} />
<Route path="/editor/:name" element={<EditorView />} /> <Route path="/editor/:name" element={<EditorView />} />
</Routes> </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, AlertDialogTitle,
} from "@/components/ui/alert-dialog"; } from "@/components/ui/alert-dialog";
export default function DashboardView() { export default function ComposeView() {
const { pages, isLoading, fetchPages, deletePage, publishPage, unpublishPage } = const { pages, isLoading, fetchPages, deletePage, publishPage, unpublishPage } =
usePagesStore(); usePagesStore();
const navigate = useNavigate(); const navigate = useNavigate();
@@ -90,7 +90,7 @@ export default function DashboardView() {
<div> <div>
{/* Header row */} {/* Header row */}
<div className="flex items-center px-4 py-2 border-b-2 border-border"> <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"> <div className="flex gap-2">
<Button variant="outline" onClick={handleRestart} disabled={restarting}> <Button variant="outline" onClick={handleRestart} disabled={restarting}>
<RotateCcw className="w-4 h-4 mr-2" /> <RotateCcw className="w-4 h-4 mr-2" />

View File

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