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