From 85489f198815d3352eff147919981ccd0aa9e532 Mon Sep 17 00:00:00 2001 From: scosman Date: Wed, 9 Oct 2024 21:55:25 -0400 Subject: [PATCH] Make "run" under "/run". Redirect root to run for now. Might make a homepage later. Might not. Sorry not sorry. --- app/web_ui/src/routes/(app)/+layout.svelte | 2 +- app/web_ui/src/routes/(app)/+page.svelte | 11 +++-------- app/web_ui/src/routes/(app)/+page.ts | 1 + app/web_ui/src/routes/(app)/run/+page.svelte | 10 ++++++++++ 4 files changed, 15 insertions(+), 9 deletions(-) create mode 100644 app/web_ui/src/routes/(app)/+page.ts create mode 100644 app/web_ui/src/routes/(app)/run/+page.svelte diff --git a/app/web_ui/src/routes/(app)/+layout.svelte b/app/web_ui/src/routes/(app)/+layout.svelte index 1ab9649..5551071 100644 --- a/app/web_ui/src/routes/(app)/+layout.svelte +++ b/app/web_ui/src/routes/(app)/+layout.svelte @@ -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 diff --git a/app/web_ui/src/routes/(app)/+page.svelte b/app/web_ui/src/routes/(app)/+page.svelte index 41d7bd5..61c8e7d 100644 --- a/app/web_ui/src/routes/(app)/+page.svelte +++ b/app/web_ui/src/routes/(app)/+page.svelte @@ -1,10 +1,5 @@ - - - Kiln Studio - - + import { goto } from "$app/navigation" - + goto("/run") + diff --git a/app/web_ui/src/routes/(app)/+page.ts b/app/web_ui/src/routes/(app)/+page.ts new file mode 100644 index 0000000..62ad4e4 --- /dev/null +++ b/app/web_ui/src/routes/(app)/+page.ts @@ -0,0 +1 @@ +export const ssr = false diff --git a/app/web_ui/src/routes/(app)/run/+page.svelte b/app/web_ui/src/routes/(app)/run/+page.svelte new file mode 100644 index 0000000..8e90d86 --- /dev/null +++ b/app/web_ui/src/routes/(app)/run/+page.svelte @@ -0,0 +1,10 @@ + + + + Kiln Studio + + + +