atmosphere explorer pdsls.dev
atproto tool typescript
at main 1.5 kB view raw
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 { ExploreToolView } from "./views/car/explore.tsx"; 7import { CarView } from "./views/car/index.tsx"; 8import { UnpackToolView } from "./views/car/unpack.tsx"; 9import { CollectionView } from "./views/collection.tsx"; 10import { Home } from "./views/home.tsx"; 11import { LabelView } from "./views/labels.tsx"; 12import { PdsView } from "./views/pds.tsx"; 13import { RecordView } from "./views/record.tsx"; 14import { RepoView } from "./views/repo.tsx"; 15import { Settings } from "./views/settings.tsx"; 16import { StreamView } from "./views/stream.tsx"; 17 18render( 19 () => ( 20 <Router root={Layout}> 21 <Route path="/" component={Home} /> 22 <Route path={["/jetstream", "/firehose"]} component={StreamView} /> 23 <Route path="/labels" component={LabelView} /> 24 <Route path="/car" component={CarView} /> 25 <Route path="/car/explore" component={ExploreToolView} /> 26 <Route path="/car/unpack" component={UnpackToolView} /> 27 <Route path="/settings" component={Settings} /> 28 <Route path="/:pds" component={PdsView} /> 29 <Route path="/:pds/:repo" component={RepoView} /> 30 <Route path="/:pds/:repo/:collection" component={CollectionView} /> 31 <Route path="/:pds/:repo/:collection/:rkey" component={RecordView} /> 32 </Router> 33 ), 34 document.getElementById("root") as HTMLElement, 35);