Skip to content

Commit

Permalink
Make "run" under "/run".
Browse files Browse the repository at this point in the history
Redirect root to run for now. Might make a homepage later. Might not. Sorry not sorry.
  • Loading branch information
scosman committed Oct 10, 2024
1 parent d598160 commit 85489f1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/web_ui/src/routes/(app)/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
section = Section.Examples
} else if (path_start("/settings", $page.url.pathname)) {
section = Section.Settings
} else if (path_start("/", $page.url.pathname)) {
} else if (path_start("/run", $page.url.pathname)) {
section = Section.Run
} else {
section = Section.None
Expand Down
11 changes: 3 additions & 8 deletions app/web_ui/src/routes/(app)/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<script lang="ts">
import AppPage from "./app_page.svelte"
</script>

<svelte:head>
<title>Kiln Studio</title>
<meta name="description" content="The open source ML product platform" />
</svelte:head>
import { goto } from "$app/navigation"
<AppPage title="Run Task" />
goto("/run")
</script>
1 change: 1 addition & 0 deletions app/web_ui/src/routes/(app)/+page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const ssr = false
10 changes: 10 additions & 0 deletions app/web_ui/src/routes/(app)/run/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<script lang="ts">
import AppPage from "../app_page.svelte"
</script>

<svelte:head>
<title>Kiln Studio</title>
<meta name="description" content="The open source ML product platform" />
</svelte:head>

<AppPage title="Run Task" />

0 comments on commit 85489f1

Please sign in to comment.