1/* @refresh reload */
2import { Route, Router } from "@solidjs/router";
3import { render } from "solid-js/web";
4import { Layout } from "./layout.tsx";
5import "./styles/index.css";
6import { CollectionView } from "./views/collection.tsx";
7import { Home } from "./views/home.tsx";
8import { LabelView } from "./views/labels.tsx";
9import { PdsView } from "./views/pds.tsx";
10import { RecordView } from "./views/record.tsx";
11import { RepoView } from "./views/repo.tsx";
12import { Settings } from "./views/settings.tsx";
13import { StreamView } from "./views/stream.tsx";
14
15render(
16 () => (
17 <Router root={Layout}>
18 <Route path="/" component={Home} />
19 <Route path={["/jetstream", "/firehose"]} component={StreamView} />
20 <Route path="/labels" component={LabelView} />
21 <Route path="/settings" component={Settings} />
22 <Route path="/:pds" component={PdsView} />
23 <Route path="/:pds/:repo" component={RepoView} />
24 <Route path="/:pds/:repo/:collection" component={CollectionView} />
25 <Route path="/:pds/:repo/:collection/:rkey" component={RecordView} />
26 </Router>
27 ),
28 document.getElementById("root") as HTMLElement,
29);