diff --git a/client/src/App.jsx b/client/src/App.jsx
index 37cb06d..0055663 100755
--- a/client/src/App.jsx
+++ b/client/src/App.jsx
@@ -42,8 +42,13 @@ function GiteaIcon() {
);
}
-function AppFooter() {
+function AppFooter({ version }) {
const year = new Date().getFullYear();
+ const sha = version?.shortSha || null;
+ const built = version?.buildTime
+ ? new Date(version.buildTime).toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' })
+ : null;
+
return (
<>
>
);
@@ -129,6 +148,14 @@ const sf = {
export default function App() {
const [tab, setTab] = useState('dashboard');
const [showReadme, setShowReadme] = useState(false);
+ const [version, setVersion] = useState(null);
+
+ useEffect(() => {
+ fetch('/version.json')
+ .then(r => r.ok ? r.json() : null)
+ .then(v => { if (v) setVersion(v); })
+ .catch(() => {});
+ }, []);
return (
@@ -156,7 +183,7 @@ export default function App() {
-
+
{showReadme && setShowReadme(false)} />}