This commit is contained in:
Ilia Denisov
2026-05-07 07:18:55 +02:00
parent 7af57933eb
commit 7cc18159e9
20 changed files with 2090 additions and 12 deletions
+10
View File
@@ -0,0 +1,10 @@
declare global {
// Build-time constant injected by Vite from package.json version.
const __APP_VERSION__: string;
namespace App {
// future-phase types added later
}
}
export {};
+13
View File
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Galaxy</title>
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>
+3
View File
@@ -0,0 +1,3 @@
// APP_VERSION is the package.json "version" field, inlined at build time
// by the Vite `define` plugin (see vite.config.ts).
export const APP_VERSION: string = __APP_VERSION__;
+5
View File
@@ -0,0 +1,5 @@
<script lang="ts">
let { children } = $props();
</script>
{@render children()}
+22
View File
@@ -0,0 +1,22 @@
<script lang="ts">
import { APP_VERSION } from "$lib/version";
</script>
<main>
<h1>Galaxy</h1>
<p>Cross-platform UI client — workspace skeleton.</p>
</main>
<footer data-testid="app-version">version {APP_VERSION}</footer>
<style>
main {
padding: 2rem;
font-family: system-ui, sans-serif;
}
footer {
padding: 1rem 2rem;
opacity: 0.6;
font-size: 0.875rem;
}
</style>