UI: Implement dynamic versioning from VERSION.json
This commit is contained in:
@@ -37,6 +37,7 @@ import {
|
|||||||
import { clsx, type ClassValue } from 'clsx';
|
import { clsx, type ClassValue } from 'clsx';
|
||||||
import { twMerge } from 'tailwind-merge';
|
import { twMerge } from 'tailwind-merge';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
import versionData from '../../VERSION.json';
|
||||||
|
|
||||||
interface User {
|
interface User {
|
||||||
id: number;
|
id: number;
|
||||||
@@ -446,7 +447,7 @@ export default function Home() {
|
|||||||
</h1>
|
</h1>
|
||||||
<div className="flex items-center gap-2 mt-1">
|
<div className="flex items-center gap-2 mt-1">
|
||||||
<p className="text-[9px] font-bold text-slate-500 tracking-[0.2em] font-mono">
|
<p className="text-[9px] font-bold text-slate-500 tracking-[0.2em] font-mono">
|
||||||
VERSION 1.2.1
|
VERSION {versionData.version}
|
||||||
</p>
|
</p>
|
||||||
<span className="w-1 h-1 rounded-full bg-slate-800" />
|
<span className="w-1 h-1 rounded-full bg-slate-800" />
|
||||||
<button
|
<button
|
||||||
@@ -895,7 +896,7 @@ export default function Home() {
|
|||||||
<footer className="mt-20 mb-8 flex flex-col items-center gap-2 opacity-30">
|
<footer className="mt-20 mb-8 flex flex-col items-center gap-2 opacity-30">
|
||||||
<p className="text-[10px] font-bold tracking-[0.3em] uppercase">Powered by TFM Group Software</p>
|
<p className="text-[10px] font-bold tracking-[0.3em] uppercase">Powered by TFM Group Software</p>
|
||||||
<div className="h-px w-12 bg-slate-800" />
|
<div className="h-px w-12 bg-slate-800" />
|
||||||
<p className="text-[9px] font-mono">v1.2.1 • 2026-04-10 • BUILD: dev-84145</p>
|
<p className="text-[9px] font-mono">v{versionData.version} • {versionData.last_build} • BUILD: dev-{versionData.commit}</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
{/* Bottom Nav */}
|
{/* Bottom Nav */}
|
||||||
|
|||||||
Reference in New Issue
Block a user