Feature: Moderation-Tab — Action-Items-Karte oben, SW by-v588
This commit is contained in:
parent
df8c4cc279
commit
020153484a
3 changed files with 31 additions and 3 deletions
|
|
@ -3,7 +3,7 @@
|
|||
Router, State-Management, Navigation, Initialisierung.
|
||||
============================================================ */
|
||||
|
||||
const APP_VER = '587'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VER = '588'; // ← 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';
|
||||
|
||||
|
|
|
|||
|
|
@ -1479,7 +1479,35 @@ window.Page_admin = (() => {
|
|||
API.get('/wiki/foto-submissions').catch(() => []),
|
||||
]);
|
||||
|
||||
let html = '';
|
||||
const modItems = [
|
||||
{ label: 'Züchter-Einreichungen', count: zuchter.length, icon: 'certificate' },
|
||||
{ label: 'Foto-Einreichungen', count: fotos.length, icon: 'image' },
|
||||
].filter(i => i.count > 0);
|
||||
|
||||
let html = `
|
||||
<div style="display:flex;flex-wrap:wrap;gap:var(--space-2);align-items:center;
|
||||
background:var(--c-surface);border:1px solid var(--c-border);
|
||||
border-radius:var(--radius-lg);padding:var(--space-3) var(--space-4);
|
||||
margin-bottom:var(--space-4)">
|
||||
<span style="font-size:var(--text-xs);font-weight:700;color:var(--c-text-muted);
|
||||
text-transform:uppercase;letter-spacing:.06em;margin-right:var(--space-1)">
|
||||
${UI.icon('check-square')} Zu erledigen
|
||||
</span>
|
||||
${modItems.length === 0
|
||||
? `<span style="font-size:var(--text-sm);color:var(--c-success,#4caf50);font-weight:600">
|
||||
${UI.icon('check-circle')} Alles erledigt
|
||||
</span>`
|
||||
: modItems.map(i => `
|
||||
<span style="display:inline-flex;align-items:center;gap:4px;
|
||||
background:var(--c-warning-light,#fff3e0);color:var(--c-warning,#e65100);
|
||||
border:1px solid var(--c-warning,#e65100);border-radius:999px;
|
||||
padding:2px 10px;font-size:var(--text-xs);font-weight:700">
|
||||
${UI.icon(i.icon)} ${i.label}
|
||||
<strong style="background:var(--c-warning,#e65100);color:#fff;
|
||||
border-radius:999px;padding:0 6px;margin-left:2px">${i.count}</strong>
|
||||
</span>`).join('')
|
||||
}
|
||||
</div>`;
|
||||
|
||||
// --- Züchter-Einreichungen ---
|
||||
html += `<h3 style="font-size:var(--text-sm);font-weight:var(--weight-semibold);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue