feat: affiche la version du build dans le header (v1.0.0)
ci/woodpecker/push/woodpecker Pipeline was successful

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
syoul
2026-03-24 00:03:48 +01:00
parent 7ee3b09f0f
commit 57c1888346
4 changed files with 12 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "g1flux",
"private": true,
"version": "0.0.0",
"version": "1.0.0",
"type": "module",
"scripts": {
"dev": "vite",
+4 -1
View File
@@ -64,7 +64,10 @@ export function StatsPanel({ stats, loading, periodDays, source, currentUD, anim
Ğ
</div>
<div>
<h1 className="text-white font-bold text-lg leading-none">Ğ1Flux</h1>
<h1 className="text-white font-bold text-lg leading-none">
Ğ1Flux
<span className="text-[#4b5563] text-xs font-normal ml-1.5">v{__APP_VERSION__}</span>
</h1>
<p className="text-[#4b5563] text-xs">Monnaie libre · Flux géo</p>
</div>
</div>
+1
View File
@@ -0,0 +1 @@
declare const __APP_VERSION__: string;
+6
View File
@@ -1,8 +1,14 @@
import { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import { readFileSync } from 'node:fs'
const { version } = JSON.parse(readFileSync('./package.json', 'utf-8')) as { version: string };
export default defineConfig({
define: {
__APP_VERSION__: JSON.stringify(version),
},
plugins: [
react(),
tailwindcss(),