adds version to web ui
Some checks failed
Build / build (push) Has been cancelled
Build / release (push) Has been cancelled
Build / test (push) Has been cancelled

This commit is contained in:
2026-03-28 01:44:09 -04:00
parent 7b22b2abf2
commit 9576b847bd
3 changed files with 9 additions and 0 deletions

View File

@@ -70,6 +70,8 @@ nav {
.nav-sep { flex: 1; } .nav-sep { flex: 1; }
.nav-divider { color: var(--border2); }
.nav-status { .nav-status {
font-size: 11px; font-size: 11px;
color: var(--text3); color: var(--text3);

View File

@@ -18,6 +18,8 @@
<div class="nav-status"> <div class="nav-status">
<div class="pulse"></div> <div class="pulse"></div>
<span id="nav-count">— instances</span> <span id="nav-count">— instances</span>
<span class="nav-divider">·</span>
<span id="nav-version"></span>
</div> </div>
</nav> </nav>

View File

@@ -37,6 +37,11 @@ window.addEventListener('popstate', e => {
// ── Bootstrap ───────────────────────────────────────────────────────────────── // ── Bootstrap ─────────────────────────────────────────────────────────────────
fetch('/package.json')
.then(r => r.json())
.then(pkg => { document.getElementById('nav-version').textContent = `v${pkg.version}`; })
.catch(() => {});
initDB().then(() => { initDB().then(() => {
renderDashboard(); renderDashboard();
handleRoute(); handleRoute();