From 5d868bc1fd3156a1268a882536c5f17b747047ec Mon Sep 17 00:00:00 2001
From: 2mal3 <56305732+2mal3@users.noreply.github.com>
Date: Sat, 10 Jan 2026 00:51:44 +0100
Subject: [PATCH] refactor(control): move splash screen to layout
---
control/frontend/src/routes/+layout.svelte | 6 ++++++
control/frontend/src/routes/+page.svelte | 6 ------
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/control/frontend/src/routes/+layout.svelte b/control/frontend/src/routes/+layout.svelte
index 352af3a..efc07c4 100644
--- a/control/frontend/src/routes/+layout.svelte
+++ b/control/frontend/src/routes/+layout.svelte
@@ -1,6 +1,8 @@
@@ -9,6 +11,10 @@
PLG MuDiCS Control
+{#if !dev}
+ {@html SplashScreen}
+{/if}
+
{@render children()}
diff --git a/control/frontend/src/routes/+page.svelte b/control/frontend/src/routes/+page.svelte
index 2bfad07..a9a61f0 100644
--- a/control/frontend/src/routes/+page.svelte
+++ b/control/frontend/src/routes/+page.svelte
@@ -20,8 +20,6 @@
import { on_start } from '$lib/ts/main';
import { display_status_to_info } from '$lib/ts/utils';
import HighlightedText from '$lib/components/HighlightedText.svelte';
- import { dev } from '$app/environment';
- import SplashScreen from './../../../../shared/splash_screen.html?raw';
const ip_regex =
/^(?:(?:10|127)\.(?:25[0-5]|2[0-4]\d|1?\d?\d)\.(?:25[0-5]|2[0-4]\d|1?\d?\d)\.(?:25[0-5]|2[0-4]\d|1?\d?\d)|192\.168\.(?:25[0-5]|2[0-4]\d|1?\d?\d)\.(?:25[0-5]|2[0-4]\d|1?\d?\d)|172\.(?:1[6-9]|2\d|3[0-1])\.(?:25[0-5]|2[0-4]\d|1?\d?\d)\.(?:25[0-5]|2[0-4]\d|1?\d?\d))$/;
@@ -223,10 +221,6 @@
{/snippet}
- {#if !dev}
- {@html SplashScreen}
- {/if}
-
PLG MuDiCS