chore: singe source of truth for version & show it on splash screen (#7)

Co-authored-by: 2mal3 <56305732+2mal3@users.noreply.github.com>
This commit is contained in:
E44
2026-01-10 14:06:10 -05:00
committed by GitHub
parent c64eb345fd
commit b0a57f9c67
6 changed files with 31 additions and 5 deletions
+4 -1
View File
@@ -2,9 +2,12 @@
import '../app.css';
import Notification from './Notification.svelte';
import SplashScreen from './../../../../shared/splash_screen.html?raw';
import version from './../../../../shared/version.txt?raw';
import { dev } from '$app/environment';
let { children } = $props();
let versionSplashScreen = SplashScreen.replaceAll('%%APP-VERSION%%', version.trim());
</script>
<svelte:head>
@@ -12,7 +15,7 @@
</svelte:head>
{#if !dev}
{@html SplashScreen}
{@html versionSplashScreen}
{/if}
{@render children()}