From d5e408528b0e2bc7b6f9d857433780d416b56910 Mon Sep 17 00:00:00 2001 From: rene Date: Fri, 1 May 2026 09:37:51 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20UI.esc=20=E2=86=92=20UI.escape=20in=20jo?= =?UTF-8?q?bs.js,=20SW=20by-v581?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/static/js/app.js | 2 +- backend/static/js/pages/jobs.js | 8 +++++--- backend/static/sw.js | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/backend/static/js/app.js b/backend/static/js/app.js index a179d0e..25a949c 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 = '580'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '581'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.2.1'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; diff --git a/backend/static/js/pages/jobs.js b/backend/static/js/pages/jobs.js index 7ad5e68..c8dd539 100644 --- a/backend/static/js/pages/jobs.js +++ b/backend/static/js/pages/jobs.js @@ -7,6 +7,8 @@ window.Page_jobs = (() => { let _container = null; let _appState = null; + const _esc = s => UI.escape(s ?? ''); + async function init(container, appState) { _container = container; _appState = appState; @@ -122,7 +124,7 @@ window.Page_jobs = (() => { ${app.admin_note ? `
${UI.esc(app.admin_note)}
` : ''} + color:var(--c-text-secondary);text-align:left">${_esc(app.admin_note)}` : ''} `; } @@ -139,13 +141,13 @@ window.Page_jobs = (() => {
+ value="${u ? _esc(u.name) : ''}" placeholder="Vorname oder Nickname" required>
+ value="${u ? _esc(u.email || '') : ''}" placeholder="deine@email.de" required>
diff --git a/backend/static/sw.js b/backend/static/sw.js index f72df43..34c48e3 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-v580'; +const CACHE_VERSION = 'by-v581'; 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