merge: sync main → dev (v1.0.0 + version display)

This commit is contained in:
syoul
2026-03-24 00:08:32 +01:00
4 changed files with 12 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "g1flux", "name": "g1flux",
"private": true, "private": true,
"version": "0.0.0", "version": "1.0.0",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
+4 -1
View File
@@ -64,7 +64,10 @@ export function StatsPanel({ stats, loading, periodDays, source, currentUD, anim
Ğ Ğ
</div> </div>
<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> <p className="text-[#4b5563] text-xs">Monnaie libre · Flux géo</p>
</div> </div>
</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 { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react' import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite' 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({ export default defineConfig({
define: {
__APP_VERSION__: JSON.stringify(version),
},
plugins: [ plugins: [
react(), react(),
tailwindcss(), tailwindcss(),