From 2f46098d0f70252fd46e2d78443246fc0457750d Mon Sep 17 00:00:00 2001 From: Dogfather Date: Wed, 4 Nov 2026 05:42:47 +0100 Subject: [PATCH] Zusammenspiel: Zockkarte misst wieder (Zaehler verdeckte leitungen()), Chatkopf am schmalen Handy - reaktion.js: Ein lokaler Zaehler 'leitungen' verdeckte die neue Funktion leitungen(); die Messung der Zockkarte warf leise, die Regie sah nie Zahlen (mess-zocken 101 -> 107). Umbenannt, neue Wache mit Gegenprobe. - mondsaal.css: Chatkopf auf 360 px war mit Faehrte + Mond-Knopf 388 px breit (pruef-dogtag-buehne); min-width 0 laesst die Faehrte nachgeben. Co-Authored-By: Claude Opus 5.5 --- server/pruef-reaktion.mjs | 18 ++++++ workspace/anleitung.html | 28 ++++---- workspace/anruf-probe.html | 10 +-- workspace/app.webmanifest | 8 +-- workspace/assets/css/mondsaal.css | 15 +++++ workspace/assets/js/reaktion.js | 20 +++--- workspace/aufgaben.html | 38 +++++------ workspace/automation.html | 32 +++++----- workspace/befinden.html | 34 +++++----- workspace/bereich.html | 48 +++++++------- workspace/bewerben.html | 38 +++++------ workspace/bewerbungen.html | 36 +++++------ workspace/buehne.html | 6 +- workspace/calls.html | 34 +++++----- workspace/chat.html | 48 +++++++------- workspace/content.html | 34 +++++----- workspace/crew-index.html | 12 ++-- workspace/crew.webmanifest | 8 +-- workspace/dateien.html | 34 +++++----- workspace/dogtags.html | 38 +++++------ workspace/entwicklung.html | 36 +++++------ workspace/hilfe.html | 30 ++++----- workspace/index.html | 10 +-- workspace/kalender.html | 34 +++++----- workspace/leistung.html | 32 +++++----- workspace/manager-ziele.html | 30 ++++----- workspace/material.html | 32 +++++----- workspace/nachbericht.html | 12 ++-- workspace/notizen.html | 28 ++++---- workspace/personen.html | 32 +++++----- workspace/probesaal.html | 12 ++-- workspace/profil.html | 36 +++++------ workspace/reaktion-foyer.html | 34 +++++----- workspace/reaktion.html | 102 +++++++++++++++--------------- workspace/rechte.html | 34 +++++----- workspace/report.html | 36 +++++------ workspace/scouting.html | 32 +++++----- workspace/start.html | 40 ++++++------ workspace/startcheck.html | 34 +++++----- workspace/steckbrief.html | 36 +++++------ workspace/support.html | 32 +++++----- workspace/tafel.html | 10 +-- workspace/talente.html | 36 +++++------ workspace/team.html | 32 +++++----- workspace/teamlage.html | 34 +++++----- workspace/teilen.html | 30 ++++----- workspace/treff-moderation.html | 32 +++++----- workspace/treff-regeln.html | 32 +++++----- workspace/uebersicht.html | 32 +++++----- workspace/unsere-seiten.html | 30 ++++----- workspace/unterstuetzen.html | 32 +++++----- workspace/werdegang.html | 32 +++++----- workspace/willkommen.html | 2 +- workspace/wissen.html | 34 +++++----- 54 files changed, 824 insertions(+), 787 deletions(-) diff --git a/server/pruef-reaktion.mjs b/server/pruef-reaktion.mjs index 1241ef1c..38ca969a 100644 --- a/server/pruef-reaktion.mjs +++ b/server/pruef-reaktion.mjs @@ -5152,6 +5152,24 @@ melde("=== Rudel-Brücke ==="); ok(k1.code !== 413, `Gegenprobe: ein kleiner Rumpf kommt durch die Grenze (${k1.code})`); } +/* ==== KEIN NAME VERDECKT leitungen() (04.11.2026) ========================== + Ein lokaler Zähler `leitungen` verdeckte die Funktion leitungen() in + reaktion.js – die Zockkarte bekam nie eine Messung, ohne Fehlermeldung. + Abgeleitet: Außer der einen Funktionszeile darf kein `let/const/var + leitungen` (auch nicht in einer Liste) im Code stehen. */ +{ + const rjs = readFileSync(join(HIER, "..", "workspace", "assets", "js", "reaktion.js"), "utf8") + .replace(/\/\*[\s\S]*?\*\//g, "").replace(/^\s*\/\/.*$/gm, ""); + /* `[^;]` statt `[^;=]`: In „let bps = 0, leitungen = 0“ steht vor dem Namen + schon ein `=` – die erste Fassung sah genau den echten Fall nicht (die + Gegenprobe hat es gezeigt). */ + const verdeckt = (t) => [...t.matchAll(/\b(?:let|const|var)\s[^;]*?\bleitungen\s*(?:=(?!\s*\(\)\s*=>)|,|;)/g)].map((m) => m[0].slice(0, 60)); + const f = verdeckt(rjs); + ok(/const leitungen = \(\) =>/.test(rjs) && f.length === 0, `reaktion.js: nichts verdeckt die Funktion leitungen() (${f.join(" | ") || "frei"})`); + ok(verdeckt("let bps = 0, leitungen = 0;").length === 1 && verdeckt("const leitungen = () => [];").length === 0, + "Gegenprobe: ein verdeckender Zähler wird erkannt, die Funktion selbst nicht"); +} + /* ==== JEDE ANTWORT WIRD GELESEN (04.11.2026) ============================== Ein Abruf, dessen Antwort die Seite nie liest, bleibt in Chrome offen – gemessen: Die Regie-Seite kam deshalb nie zur Ruhe (saal-warten.js), und diff --git a/workspace/anleitung.html b/workspace/anleitung.html index 7d927010..aadcba79 100644 --- a/workspace/anleitung.html +++ b/workspace/anleitung.html @@ -7,17 +7,17 @@ - - - - - + + + + + - - + + @@ -289,16 +289,16 @@ Und anleitung.js braucht es doppelt: Symbol, Farbe, Name und Adresse jeder Karte kommen von dort, nicht vom Server. --> - + - - - - - - + + + + + + diff --git a/workspace/anruf-probe.html b/workspace/anruf-probe.html index fd855e50..204b0e26 100644 --- a/workspace/anruf-probe.html +++ b/workspace/anruf-probe.html @@ -16,8 +16,8 @@ verdeckt. Gefunden hat es pruef-struktur. Richtig sind `gate.css` (die Farbwerte des Hauses) und `haus.css`. --> - - + + - +