v0.2.18-beta: VERSION-bestand was sinds v0.2.10-beta niet meer bijgewerkt
All checks were successful
dev - build & deploy naar test / build-and-deploy (push) Successful in 8s

- Het versietagje toonde daardoor al zeven commits lang nog steeds "v0.2.10-beta", ook al draaide de echte, nieuwere code allang (Instellingen-herontwerp, beheerpaneel-tabs, ankerwoorden-plaatjes, enz.)
- VERSION teruggezet naar de daadwerkelijke huidige versie
- Robuustere weergave: op dev-builds staat de git-hash er nu altijd bij in de zichtbare tekst zelf (niet meer alleen als hover-tooltip), zodat een nieuwe deploy altijd zichtbaar anders is, ook als het VERSION-bestand een keer vergeten wordt

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Ramon 2026-07-13 21:26:42 +02:00
parent 1b6960b7ba
commit f5140d42c9
2 changed files with 8 additions and 4 deletions

View file

@ -1 +1 @@
0.2.10
0.2.18

View file

@ -2,7 +2,7 @@
"use strict";
/* version shown until /api/version resolves (or if the fetch fails, e.g. offline).
Kept in sync by hand with the VERSION file at the repo root on every release. */
const VERSION = "0.2.10";
const VERSION = "0.2.18";
(function(){
const tag = document.getElementById("verTag");
tag.textContent = "v"+VERSION;
@ -13,9 +13,13 @@ const VERSION = "0.2.10";
.then(r=>r.ok ? r.json() : null)
.then(v=>{
if(!v || typeof v.version!=="string") return;
const text = v.version.startsWith("v") ? v.version : "v"+v.version;
let text = v.version.startsWith("v") ? v.version : "v"+v.version;
const isBeta = text.includes("beta");
/* on dev the sha is shown inline (not just as a hover-title) so a deploy is always
visibly different, even if the VERSION file itself was forgotten in a commit */
if(isBeta && v.sha) text += " ("+v.sha+")";
tag.textContent = text;
tag.classList.toggle("beta", text.includes("beta"));
tag.classList.toggle("beta", isBeta);
if(v.sha) tag.title = v.sha;
})
.catch(()=>{});