diff --git a/cms/admin/src/App.jsx b/cms/admin/src/App.jsx index 027fcf2..82a06c8 100644 --- a/cms/admin/src/App.jsx +++ b/cms/admin/src/App.jsx @@ -22,13 +22,13 @@ const hexOf = (name) => (COLORS.find((c) => c[0] === name) || [])[2] || 'transpa const LAYOUTS = ['', 'text', 'image', 'icon']; const SECTIONS = ['buerofuehrung', 'software', 'theorie']; -const KIND_LABEL = { beitrag: 'Beiträge', seite: 'Seiten', rubrik: 'Rubriken' }; +const KIND_LABEL = { beitrag: 'Beiträge', wiki: 'Wiki', seite: 'Seiten', rubrik: 'Rubriken' }; const EMPTY = { isNew: true, path: '', type: 'beitrag', section: 'software', slug: '', title: '', date: new Date().toISOString().slice(0, 10), weight: '', color: '', layout: 'text', tags: '', summary: '', description: '', - cover_image: '', external: '', authors: '', toc: false, draft: true, body: '', + cover_image: '', external: '', authors: '', group: '', toc: false, draft: true, body: '', }; export default function App() { @@ -89,7 +89,7 @@ function Dashboard({ email }) { const q = query.trim().toLowerCase(); const filtered = q ? entries.filter((e) => e.title.toLowerCase().includes(q) || (e.section || '').includes(q)) : entries; - const groups = { beitrag: [], seite: [], rubrik: [] }; + const groups = { beitrag: [], wiki: [], seite: [], rubrik: [] }; for (const e of filtered) (groups[e.kind] || groups.seite).push(e); return ( @@ -98,6 +98,7 @@ function Dashboard({ email }) { OPENBUREAU Redaktion