phase 1
This commit is contained in:
Vendored
+10
@@ -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 {};
|
||||
@@ -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>
|
||||
@@ -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__;
|
||||
@@ -0,0 +1,5 @@
|
||||
<script lang="ts">
|
||||
let { children } = $props();
|
||||
</script>
|
||||
|
||||
{@render children()}
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user