Partner-Dashboard: Zähler selbsterklärend — 'X von Y Codes erfolgreich' statt 'verbraucht', '+N unbest.' ausgeschrieben, Einzel-Code-Badge zeigt Registrierungszahl (ein Code kann mehrere Accounts bringen)
This commit is contained in:
parent
fe783ef01b
commit
0cca716c3d
6 changed files with 20 additions and 19 deletions
|
|
@ -86,14 +86,14 @@
|
|||
<title>Ban Yaro</title>
|
||||
|
||||
<!-- Theme + theme-color Statusleiste vor CSS setzen -->
|
||||
<script src="/js/boot-early.js?v=1262"></script>
|
||||
<script src="/js/boot-early.js?v=1263"></script>
|
||||
|
||||
<!-- CSS: Reihenfolge ist wichtig — ?v= zwingt Browser zur Neuladung -->
|
||||
<link rel="stylesheet" href="/css/design-system.css?v=1262">
|
||||
<link rel="stylesheet" href="/css/layout.css?v=1262">
|
||||
<link rel="stylesheet" href="/css/components.css?v=1262">
|
||||
<link rel="stylesheet" href="/css/utilities.css?v=1262">
|
||||
<link rel="stylesheet" href="/css/lists.css?v=1262">
|
||||
<link rel="stylesheet" href="/css/design-system.css?v=1263">
|
||||
<link rel="stylesheet" href="/css/layout.css?v=1263">
|
||||
<link rel="stylesheet" href="/css/components.css?v=1263">
|
||||
<link rel="stylesheet" href="/css/utilities.css?v=1263">
|
||||
<link rel="stylesheet" href="/css/lists.css?v=1263">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
|
@ -616,11 +616,11 @@
|
|||
<div id="modal-container"></div>
|
||||
|
||||
<!-- JS: Reihenfolge ist wichtig — erst Basis, dann Features -->
|
||||
<script src="/js/api.js?v=1262"></script>
|
||||
<script src="/js/ui.js?v=1262"></script>
|
||||
<script src="/js/app.js?v=1262"></script>
|
||||
<script src="/js/worlds.js?v=1262"></script>
|
||||
<script src="/js/offline-indicator.js?v=1262"></script>
|
||||
<script src="/js/api.js?v=1263"></script>
|
||||
<script src="/js/ui.js?v=1263"></script>
|
||||
<script src="/js/app.js?v=1263"></script>
|
||||
<script src="/js/worlds.js?v=1263"></script>
|
||||
<script src="/js/offline-indicator.js?v=1263"></script>
|
||||
|
||||
<!-- Feature-Seiten werden lazy geladen -->
|
||||
|
||||
|
|
@ -630,7 +630,7 @@
|
|||
|
||||
|
||||
<!-- Boot: Offline-Banner + SW-Registration (extrahiert für CSP) -->
|
||||
<script src="/js/boot.js?v=1262"></script>
|
||||
<script src="/js/boot.js?v=1263"></script>
|
||||
|
||||
|
||||
</body>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
Router, State-Management, Navigation, Initialisierung.
|
||||
============================================================ */
|
||||
|
||||
const APP_VER = '1262'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VER = '1263'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VERSION = '1.6.0'; // ← semantische Version, wird bei make release gesetzt
|
||||
window.APP_VER = APP_VER; // global verfügbar für andere Module (z.B. offline-indicator)
|
||||
window.APP_VERSION = APP_VERSION;
|
||||
|
|
|
|||
|
|
@ -113,7 +113,8 @@ window.Page_partner_dashboard = (() => {
|
|||
<div style="font-weight:600;font-size:var(--text-sm)">${UI.escape(b.label)}</div>
|
||||
<div class="text-xs-muted">
|
||||
${b.quantity} Codes · ${(b.created_at || '').slice(0, 10)} ·
|
||||
<span style="color:${b.codes_used > 0 ? 'var(--c-success,#16a34a)' : 'inherit'}">${b.codes_used}/${b.quantity} verbraucht</span>
|
||||
<span style="color:${b.codes_used > 0 ? 'var(--c-success,#16a34a)' : 'inherit'}"
|
||||
title="Codes mit mindestens einer bestätigten Registrierung — ein Code kann mehrere Accounts bringen">${b.codes_used} von ${b.quantity} Codes erfolgreich</span>
|
||||
</div>
|
||||
</div>
|
||||
<div style="text-align:center;min-width:48px">
|
||||
|
|
@ -122,7 +123,7 @@ window.Page_partner_dashboard = (() => {
|
|||
</div>
|
||||
<div style="text-align:center;min-width:48px"
|
||||
title="Registriert und E-Mail bestätigt${b.attempts ? ` — dazu ${b.attempts} unbestätigte` : ''}">
|
||||
<div style="font-weight:700;color:${b.registrations > 0 ? 'var(--c-success,#16a34a)' : 'inherit'}">${b.registrations}${b.attempts ? `<span class="text-xs-muted" style="font-weight:400"> +${b.attempts}</span>` : ''}</div>
|
||||
<div style="font-weight:700;color:${b.registrations > 0 ? 'var(--c-success,#16a34a)' : 'inherit'}">${b.registrations}${b.attempts ? `<span class="text-xs-muted" style="font-weight:400"> +${b.attempts} unbest.</span>` : ''}</div>
|
||||
<div class="text-xs-muted">Registr.</div>
|
||||
</div>
|
||||
<button class="btn btn-sm btn-ghost pd-qr-codes-btn" data-id="${b.id}" title="Einzel-Codes anzeigen">
|
||||
|
|
@ -194,7 +195,7 @@ window.Page_partner_dashboard = (() => {
|
|||
<code class="flex-1-min" style="color:var(--c-text-muted)">banyaro.app/q/${UI.escape(c.token)}</code>
|
||||
<span class="text-xs-muted" style="min-width:60px;text-align:right">${c.scans} Scan${c.scans === 1 ? '' : 's'}</span>
|
||||
${used
|
||||
? `<span class="badge" style="background:#dcfce7;color:#16a34a" title="Registrierung am ${(c.first_registration_at || '').slice(0, 10)}">● verbraucht</span>`
|
||||
? `<span class="badge" style="background:#dcfce7;color:#16a34a" title="Erste Registrierung am ${(c.first_registration_at || '').slice(0, 10)}">● ${c.registrations} Registrierung${c.registrations === 1 ? '' : 'en'}</span>`
|
||||
: scanned
|
||||
? `<span class="badge" style="background:#fef9c3;color:#a16207" title="Gescannt${c.last_scan_at ? ' am ' + c.last_scan_at.slice(0, 10) : ''}, noch keine bestätigte Registrierung">◐ gescannt</span>`
|
||||
: `<span class="badge" style="background:var(--c-surface-2);color:var(--c-text-muted)">○ frei</span>`}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="color-scheme" content="light dark">
|
||||
<script src="/js/landing-init.js?v=1262"></script>
|
||||
<script src="/js/landing-init.js?v=1263"></script>
|
||||
<title>Ban Yaro — Die Hunde-App für Deutschland, Österreich & Schweiz</title>
|
||||
<meta name="description" content="Ban Yaro: Die kostenlose All-in-One Hunde-App für DACH. Tagebuch, Giftköder-Alarm, Training mit KI, Forum, Wurfbörse, Stammbaum, Inzucht-Check — DSGVO-konform, offline-fähig, direkt im Browser.">
|
||||
<meta name="keywords" content="Hunde App, Hunde Community, Wurfbörse, Züchter, Welpen kaufen, Stammbaum Hund, Inzuchtkoeffizient, Hundezucht, Impfpass Hund, Giftköder Alarm, Gassi Community, Hundetraining App, Hunde Forum, Hunde KI, Hundefilm Datenbank, Welpen Marktplatz">
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
============================================================ */
|
||||
|
||||
// ← EINZIGE Stelle für die Version — STATIC_ASSETS und CACHE_VERSION leiten sich ab
|
||||
const VER = '1262';
|
||||
const VER = '1263';
|
||||
const CACHE_VERSION = `by-v${VER}`;
|
||||
const CACHE_STATIC = `${CACHE_VERSION}-static`;
|
||||
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue