Rename for clarity

Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier
2022-02-12 09:39:52 +01:00
parent c58db9d278
commit 8f467a3dbc
2 changed files with 8 additions and 8 deletions
@@ -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>