feat: new routes
This commit is contained in:
@@ -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 |
1
frontend/src/assets/menu.min.svg
Normal file
1
frontend/src/assets/menu.min.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 3.4 MiB |
7
frontend/src/routes/BrowseView.tsx
Normal file
7
frontend/src/routes/BrowseView.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
export default function BrowseView() {
|
||||
return (
|
||||
<div className="flex items-center justify-center h-full text-muted-foreground">
|
||||
Browse
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -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" />
|
||||
@@ -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]]
|
||||
|
||||
Reference in New Issue
Block a user