Startoption -dev: lokale Test-Website (localhost:5080)

Eigene Anmeldung (settings.dev.json), bleibt bei Selbst-Installation und Update erhalten, DEV-Schild in der Oberflaeche.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-28 17:48:47 +01:00
co-authored by Claude Opus 5.5
parent b69b9638ff
commit 077e39fa8a
10 changed files with 46 additions and 9 deletions
+8
View File
@@ -287,6 +287,14 @@ async function renderSettings(root) {
(async () => {
const init = await call("init");
$("meVersion").textContent = "Launcher " + init.version;
if (init.dev) {
// -dev: gegen die lokale Test-Website - gut sichtbar, damit niemand das verwechselt
const host = init.master.replace(/^https?:\/\//, "");
$("devBadge").textContent = "DEV · " + host;
$("devBadge").classList.remove("hidden");
$("meVersion").textContent += " · DEV";
}
$("authServer").textContent = "Server: " + init.master.replace(/^https?:\/\//, "");
if (!init.loggedIn) { showAuth(); return; }
const me = await call("me");
if (me.loggedIn) showApp(me.username);