mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 21:21:10 +02:00
feat: show build date/time on login screen across all apps
- Add BUILD_TIME and BUILD_HASH exports to all version.ts files - Add getBuildDefines() to all vite.config.ts for compile-time injection - Add buildTime prop to shared LoginPage component - Display formatted date/time next to version number (e.g. "v1.0.0 · 21.03.2026 10:30") - Add app.d.ts type declarations for __BUILD_TIME__ and __BUILD_HASH__ Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a6a5265332
commit
fc5dfe2f0f
69 changed files with 210 additions and 34 deletions
|
|
@ -93,6 +93,8 @@
|
|||
initialPassword?: string;
|
||||
/** App version string to display */
|
||||
version?: string;
|
||||
/** Build timestamp (ISO string) to display next to version */
|
||||
buildTime?: string;
|
||||
}
|
||||
|
||||
let {
|
||||
|
|
@ -118,6 +120,7 @@
|
|||
initialEmail = '',
|
||||
initialPassword = '',
|
||||
version = '',
|
||||
buildTime = '',
|
||||
}: Props = $props();
|
||||
|
||||
const t = $derived({ ...defaultTranslations, ...translations });
|
||||
|
|
@ -547,7 +550,18 @@
|
|||
{/if}
|
||||
|
||||
{#if version}
|
||||
<p class="version-label">v{version}</p>
|
||||
<p class="version-label">
|
||||
v{version}{#if buildTime}
|
||||
· {new Date(buildTime).toLocaleDateString('de-DE', {
|
||||
day: '2-digit',
|
||||
month: '2-digit',
|
||||
year: 'numeric',
|
||||
})}
|
||||
{new Date(buildTime).toLocaleTimeString('de-DE', {
|
||||
hour: '2-digit',
|
||||
minute: '2-digit',
|
||||
})}{/if}
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue