mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-06 00:47:09 +00:00
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:
@@ -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()}
|
||||
|
||||
Reference in New Issue
Block a user