From 85864d8ef2683f8a8259411cbab2c2f3ffdfed0f Mon Sep 17 00:00:00 2001 From: rene Date: Wed, 13 May 2026 20:27:22 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20laeufi.js=20UI.esc=20=E2=86=92=20UI.esca?= =?UTF-8?q?pe=20(nicht=20existent=20=E2=86=92=20crash=20=E2=86=92=20?= =?UTF-8?q?=F0=9F=9A=A7)=20(SW=20by-v917)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/main.py | 2 +- backend/static/index.html | 8 ++++---- backend/static/js/app.js | 2 +- backend/static/js/pages/laeufi.js | 30 +++++++++++++++--------------- backend/static/sw.js | 2 +- 5 files changed, 22 insertions(+), 22 deletions(-) diff --git a/backend/main.py b/backend/main.py index 629dba4..164ff54 100644 --- a/backend/main.py +++ b/backend/main.py @@ -406,7 +406,7 @@ async def serve_media(path: str, request: _Request): raise _HE(404, "Nicht gefunden.") return _media_response(filepath) -APP_VER = "916" # muss mit APP_VER in app.js übereinstimmen +APP_VER = "917" # muss mit APP_VER in app.js übereinstimmen @app.get("/.well-known/assetlinks.json") async def assetlinks(): diff --git a/backend/static/index.html b/backend/static/index.html index cfba020..d411c33 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -599,10 +599,10 @@ - - - - + + + + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index ee97d7e..fc9d1de 100644 --- a/backend/static/js/app.js +++ b/backend/static/js/app.js @@ -3,7 +3,7 @@ Router, State-Management, Navigation, Initialisierung. ============================================================ */ -const APP_VER = '916'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '917'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.5.1'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; // Cache-Bust-Parameter nach Update-Reload sofort entfernen diff --git a/backend/static/js/pages/laeufi.js b/backend/static/js/pages/laeufi.js index 0a0d14b..de09370 100644 --- a/backend/static/js/pages/laeufi.js +++ b/backend/static/js/pages/laeufi.js @@ -36,7 +36,7 @@ window.Page_laeufi = (() => { const zwinger = _breederInfo?.zwingername || 'Mein Zwinger'; const logoUrl = _breederInfo?.logo_url || null; const logoHtml = logoUrl - ? `Logo` @@ -56,7 +56,7 @@ window.Page_laeufi = (() => {

${UI.esc(zwinger)}

+ text-overflow:ellipsis;line-height:1.2">${UI.escape(zwinger)}
@@ -89,7 +89,7 @@ window.Page_laeufi = (() => { _renderHundeList(); } catch (err) { document.getElementById('laeufi-list').innerHTML = - `

${UI.esc(err.message || 'Fehler')}

`; + `

${UI.escape(err.message || 'Fehler')}

`; } } @@ -131,12 +131,12 @@ window.Page_laeufi = (() => { cursor:pointer;user-select:none">
- ${UI.esc(h.name)} - ${h.rufname ? `"${UI.esc(h.rufname)}"` : ''} + ${UI.escape(h.name)} + ${h.rufname ? `"${UI.escape(h.rufname)}"` : ''} ${alter ? `${alter}` : ''}
${h.rasse_text || h.farbe ? `
- ${[h.rasse_text, h.farbe].filter(Boolean).map(s => UI.esc(s)).join(' · ')} + ${[h.rasse_text, h.farbe].filter(Boolean).map(s => UI.escape(s)).join(' · ')}
` : ''}
${UI.icon('caret-down')} @@ -177,7 +177,7 @@ window.Page_laeufi = (() => { ]); _renderHundContent(el, hundId, laeufiList, deckList); } catch (err) { - el.innerHTML = `

${UI.esc(err.message || 'Fehler')}

`; + el.innerHTML = `

${UI.escape(err.message || 'Fehler')}

`; } } @@ -276,7 +276,7 @@ window.Page_laeufi = (() => { ${l.ende ? `→ ${_fmtDate(l.ende)} ${_daysDiff(l.beginn, l.ende)} Tage` : ''}
- ${l.notiz ? `

${UI.esc(l.notiz)}

` : ''} + ${l.notiz ? `

${UI.escape(l.notiz)}

` : ''}
- ${d.ruede_name ? `${UI.icon('dog')} Rüde: ${UI.esc(d.ruede_name)}` : ''} + ${d.ruede_name ? `${UI.icon('dog')} Rüde: ${UI.escape(d.ruede_name)}` : ''} ${UI.icon('arrows-clockwise')} ${_DECKART[d.deckart] || d.deckart} ${d.ultraschall_datum ? `${UI.icon('heartbeat')} Ultraschall: ${_fmtDate(d.ultraschall_datum)}` : ''}
@@ -360,7 +360,7 @@ window.Page_laeufi = (() => { ${_fmtDate(m.datum)} - ${UI.esc(m.label)} + ${UI.escape(m.label)} `).join('')} @@ -390,7 +390,7 @@ window.Page_laeufi = (() => {
- +
`, footer: ` @@ -439,7 +439,7 @@ window.Page_laeufi = (() => {
+ value="${UI.escape(v.ruede_name || '')}">
@@ -468,7 +468,7 @@ window.Page_laeufi = (() => {
- +
`, footer: ` @@ -537,10 +537,10 @@ window.Page_laeufi = (() => { ${_fmtDate(t.datum)} - ${t.wert != null ? `${t.wert} ${UI.esc(t.einheit)}` : '—'} + ${t.wert != null ? `${t.wert} ${UI.escape(t.einheit)}` : '—'} ${t.wert != null ? `${_progEinschaetzung(t.wert, t.einheit)}` : ''} - ${t.labor ? UI.esc(t.labor) : '—'} + ${t.labor ? UI.escape(t.labor) : '—'} diff --git a/backend/static/sw.js b/backend/static/sw.js index 3fcf3a7..91b4097 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -3,7 +3,7 @@ Offline-Cache + Push Notifications + Tile-Cache ============================================================ */ -const CACHE_VERSION = 'by-v916'; +const CACHE_VERSION = 'by-v917'; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache