diff --git a/apps/fabro-web/app/router.tsx b/apps/fabro-web/app/router.tsx index 7b8332dc8..e9382e032 100644 --- a/apps/fabro-web/app/router.tsx +++ b/apps/fabro-web/app/router.tsx @@ -28,6 +28,8 @@ import * as Insights from "./routes/insights"; import * as InsightsEditor from "./routes/insights-editor"; import * as InsightsNew from "./routes/insights-new"; import * as Settings from "./routes/settings"; +import * as SettingsOverview from "./routes/settings-overview"; +import * as SettingsLiveEvents from "./routes/settings-live-events"; import * as Profile from "./routes/profile"; import AppShellModule from "./layouts/app-shell"; @@ -113,7 +115,12 @@ export const routes: RouteObject[] = [ route("new", InsightsNew), ], }), - route("settings", Settings), + route("settings", Settings, { + children: [ + indexRoute(SettingsOverview), + route("live-events", SettingsLiveEvents), + ], + }), route("profile", Profile), ], }, diff --git a/apps/fabro-web/app/routes/settings-live-events.tsx b/apps/fabro-web/app/routes/settings-live-events.tsx new file mode 100644 index 000000000..ed77f700f --- /dev/null +++ b/apps/fabro-web/app/routes/settings-live-events.tsx @@ -0,0 +1,3 @@ +export default function SettingsLiveEvents() { + return
; +} diff --git a/apps/fabro-web/app/routes/settings-overview.tsx b/apps/fabro-web/app/routes/settings-overview.tsx new file mode 100644 index 000000000..cdab04d34 --- /dev/null +++ b/apps/fabro-web/app/routes/settings-overview.tsx @@ -0,0 +1,221 @@ +import { useState } from "react"; +import type { + ServerListenSettings, + ServerSettings, +} from "@qltysh/fabro-api-client"; +import { useServerSettings } from "../lib/queries"; +import { CollapsibleFile } from "../components/collapsible-file"; +import { + Badge, + Count, + Mono, + Muted, + NumberValue, + ObjectStoreValue, + Panel, + PanelSkeleton, + Row, + type SettingsView, + Toggle, + UrlValue, + UsernameList, + ViewToggle, + plural, +} from "../components/settings-panel"; + +export default function SettingsOverview() { + const settingsQuery = useServerSettings(); + const settings = settingsQuery.data; + const [view, setView] = useState
+ Snapshot of the server configuration. Edit via{" "}
+ settings.toml; changes take
+ effect on the next server restart.
+
- Snapshot of the server configuration. Edit via{" "}
- settings.toml; changes take
- effect on the next server restart.
-