Fix: UI.esc → UI.escape in jobs.js, SW by-v581

This commit is contained in:
rene 2026-05-01 09:37:51 +02:00
parent 8561cffc80
commit d5e408528b
3 changed files with 7 additions and 5 deletions

View file

@ -3,7 +3,7 @@
Router, State-Management, Navigation, Initialisierung. 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 APP_VERSION = '1.2.1'; // ← semantische Version, wird bei make release gesetzt
const IS_STAGING = location.hostname === 'staging.banyaro.app'; const IS_STAGING = location.hostname === 'staging.banyaro.app';

View file

@ -7,6 +7,8 @@ window.Page_jobs = (() => {
let _container = null; let _container = null;
let _appState = null; let _appState = null;
const _esc = s => UI.escape(s ?? '');
async function init(container, appState) { async function init(container, appState) {
_container = container; _container = container;
_appState = appState; _appState = appState;
@ -122,7 +124,7 @@ window.Page_jobs = (() => {
</div> </div>
${app.admin_note ? `<div style="margin-top:var(--space-3);background:var(--c-surface-2); ${app.admin_note ? `<div style="margin-top:var(--space-3);background:var(--c-surface-2);
border-radius:var(--radius-md);padding:var(--space-3);font-size:var(--text-sm); border-radius:var(--radius-md);padding:var(--space-3);font-size:var(--text-sm);
color:var(--c-text-secondary);text-align:left">${UI.esc(app.admin_note)}</div>` : ''} color:var(--c-text-secondary);text-align:left">${_esc(app.admin_note)}</div>` : ''}
</div>`; </div>`;
} }
@ -139,13 +141,13 @@ window.Page_jobs = (() => {
<div class="form-group"> <div class="form-group">
<label class="form-label">Dein Name *</label> <label class="form-label">Dein Name *</label>
<input class="form-control" type="text" name="name" <input class="form-control" type="text" name="name"
value="${u ? UI.esc(u.name) : ''}" placeholder="Vorname oder Nickname" required> value="${u ? _esc(u.name) : ''}" placeholder="Vorname oder Nickname" required>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="form-label">E-Mail *</label> <label class="form-label">E-Mail *</label>
<input class="form-control" type="email" name="email" <input class="form-control" type="email" name="email"
value="${u ? UI.esc(u.email || '') : ''}" placeholder="deine@email.de" required> value="${u ? _esc(u.email || '') : ''}" placeholder="deine@email.de" required>
</div> </div>
<div style="display:grid;grid-template-columns:1fr 1fr;gap:var(--space-3)"> <div style="display:grid;grid-template-columns:1fr 1fr;gap:var(--space-3)">

View file

@ -3,7 +3,7 @@
Offline-Cache + Push Notifications + Tile-Cache Offline-Cache + Push Notifications + Tile-Cache
============================================================ */ ============================================================ */
const CACHE_VERSION = 'by-v580'; const CACHE_VERSION = 'by-v581';
const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_STATIC = `${CACHE_VERSION}-static`;
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache