mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
@@ -3,7 +3,7 @@
|
||||
import type * as proj from "@app/project";
|
||||
import type { Config } from "@app/config";
|
||||
import { ProjectContent } from "@app/project";
|
||||
import RouteContext from "./RouteContext.svelte";
|
||||
import ProjectRoute from "./ProjectRoute.svelte";
|
||||
|
||||
export let config: Config;
|
||||
export let source: proj.Source;
|
||||
@@ -13,26 +13,26 @@
|
||||
<Router>
|
||||
<!-- The default action is to render Browser with the default branch head -->
|
||||
<Route path="/">
|
||||
<RouteContext content={ProjectContent.Tree} {peer} {source} {config} />
|
||||
<ProjectRoute content={ProjectContent.Tree} {peer} {source} {config} />
|
||||
</Route>
|
||||
<Route path="/tree">
|
||||
<RouteContext content={ProjectContent.Tree} {peer} {source} {config} />
|
||||
<ProjectRoute content={ProjectContent.Tree} {peer} {source} {config} />
|
||||
</Route>
|
||||
<Route path="/tree/*" let:params>
|
||||
<RouteContext route={params["*"]} content={ProjectContent.Tree} {peer} {source} {config} />
|
||||
<ProjectRoute route={params["*"]} content={ProjectContent.Tree} {peer} {source} {config} />
|
||||
</Route>
|
||||
|
||||
<Route path="/history">
|
||||
<RouteContext content={ProjectContent.History} {peer} {source} {config} />
|
||||
<ProjectRoute content={ProjectContent.History} {peer} {source} {config} />
|
||||
</Route>
|
||||
<Route path="/history/*" let:params>
|
||||
<RouteContext route={params["*"]} content={ProjectContent.History} {peer} {source} {config} />
|
||||
<ProjectRoute route={params["*"]} content={ProjectContent.History} {peer} {source} {config} />
|
||||
</Route>
|
||||
|
||||
<Route path="/commits/:commit" let:params>
|
||||
<RouteContext revision={params.commit} content={ProjectContent.Commit} {peer} {source} {config} />
|
||||
<ProjectRoute revision={params.commit} content={ProjectContent.Commit} {peer} {source} {config} />
|
||||
</Route>
|
||||
<Route path="/commits/*" let:params>
|
||||
<RouteContext route={params["*"]} content={ProjectContent.Commit} {peer} {source} {config} />
|
||||
<ProjectRoute route={params["*"]} content={ProjectContent.Commit} {peer} {source} {config} />
|
||||
</Route>
|
||||
</Router>
|
||||
|
||||
Reference in New Issue
Block a user