From ca9d9a05c571a457f638038e3fc35d29af9f84ec Mon Sep 17 00:00:00 2001 From: rene Date: Wed, 13 May 2026 19:54:30 +0200 Subject: [PATCH] =?UTF-8?q?UX:=20Privater-Header=20=E2=80=94=20Zwingername?= =?UTF-8?q?=20als=20H2-=C3=9Cberschrift,=20Logo=2048px,=20alle=203=20Z?= =?UTF-8?q?=C3=BCchterseiten=20(SW=20by-v911)?= 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 | 17 +++++++++-------- backend/static/js/pages/litters.js | 17 +++++++++-------- backend/static/js/pages/zuchthunde.js | 21 +++++++++++---------- backend/static/sw.js | 2 +- 7 files changed, 36 insertions(+), 33 deletions(-) diff --git a/backend/main.py b/backend/main.py index ecfa6cf..c92a3b7 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 = "910" # muss mit APP_VER in app.js übereinstimmen +APP_VER = "911" # 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 348833f..eb60b1f 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -591,10 +591,10 @@ - - - - + + + + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index e40d8e0..c6adb33 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 = '910'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '911'; // ← 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 6a734b2..0a0d14b 100644 --- a/backend/static/js/pages/laeufi.js +++ b/backend/static/js/pages/laeufi.js @@ -33,17 +33,17 @@ window.Page_laeufi = (() => { // Grundstruktur // ---------------------------------------------------------- function _privateHeader() { - const zwinger = _breederInfo?.zwingername || ''; + const zwinger = _breederInfo?.zwingername || 'Mein Zwinger'; const logoUrl = _breederInfo?.logo_url || null; const logoHtml = logoUrl ? `Logo` - : `
- +
`; @@ -54,9 +54,10 @@ window.Page_laeufi = (() => { display:flex;align-items:center;gap:var(--space-3)"> ${logoHtml}
- ${zwinger ? `
${UI.esc(zwinger)}
` : ''} -
+

${UI.esc(zwinger)}

+
diff --git a/backend/static/js/pages/litters.js b/backend/static/js/pages/litters.js index 6cf7320..801200f 100644 --- a/backend/static/js/pages/litters.js +++ b/backend/static/js/pages/litters.js @@ -98,17 +98,17 @@ window.Page_litters = (() => { // Grundstruktur rendern // ---------------------------------------------------------- function _privateHeader() { - const zwinger = _breederInfo?.zwingername || ''; + const zwinger = _breederInfo?.zwingername || 'Mein Zwinger'; const logoUrl = _breederInfo?.logo_url || null; const logoHtml = logoUrl ? `Logo` - : `
- +
`; @@ -119,9 +119,10 @@ window.Page_litters = (() => { display:flex;align-items:center;gap:var(--space-3)"> ${logoHtml}
- ${zwinger ? `
${_esc(zwinger)}
` : ''} -
+

${_esc(zwinger)}

+
diff --git a/backend/static/js/pages/zuchthunde.js b/backend/static/js/pages/zuchthunde.js index 5fcb2e9..281d66d 100644 --- a/backend/static/js/pages/zuchthunde.js +++ b/backend/static/js/pages/zuchthunde.js @@ -100,30 +100,31 @@ window.Page_zuchthunde = (() => { // Grundstruktur // ---------------------------------------------------------- function _privateHeader() { - const zwinger = _breederInfo?.zwingername || ''; - const logoUrl = _breederInfo?.logo_url || null; + const zwinger = _breederInfo?.zwingername || 'Mein Zwinger'; + const logoUrl = _breederInfo?.logo_url || null; const logoHtml = logoUrl ? `Logo` - : `
- +
`; return ` -
${logoHtml}
- ${zwinger ? `
${_esc(zwinger)}
` : ''} -
+

${_esc(zwinger)}

+
diff --git a/backend/static/sw.js b/backend/static/sw.js index c532543..9b7b53d 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-v910'; +const CACHE_VERSION = 'by-v911'; 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