From 11f8e338188452d0d9e4530b0826376428aa2844 Mon Sep 17 00:00:00 2001 From: Daniel S Date: Sun, 9 Aug 2026 22:37:53 +0200 Subject: [PATCH] refactor(admin): remove legacy hero section and section ordering form from general dashboard --- src/pages/admin/index.astro | 52 +++---------------------------------- 1 file changed, 3 insertions(+), 49 deletions(-) diff --git a/src/pages/admin/index.astro b/src/pages/admin/index.astro index e363268..5cbc153 100644 --- a/src/pages/admin/index.astro +++ b/src/pages/admin/index.astro @@ -76,49 +76,11 @@ const presets = Object.values(THEME_PRESETS);
- +
- -
-

- Hero Sektion -

-
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
-
- - -
-

- Sektionen Reihenfolge (Layout) -

-

Kommagetrennte Liste der aktiv gerenderten Sektionen:

- -
- @@ -195,7 +157,6 @@ const presets = Object.values(THEME_PRESETS); saveBtn.textContent = 'Wird gespeichert...'; const selectedPreset = document.querySelector('input[name="activePreset"]:checked')?.value || 'corporateDark'; - const sections = document.getElementById('sectionsOrder').value.split(',').map(s => s.trim()).filter(Boolean); const getVal = (id) => (document.getElementById(id))?.value || ''; const getNum = (id) => parseInt(document.getElementById(id)?.value || '0') || 587; @@ -204,15 +165,7 @@ const presets = Object.values(THEME_PRESETS); const payload = { siteConfig: { siteName: getVal('siteName'), - metaDescription: getVal('metaDescription'), - hero: { - badge: getVal('heroBadge'), - title: getVal('heroTitle'), - subtitle: getVal('heroSubtitle'), - ctaPrimaryText: getVal('ctaPrimaryText'), - ctaPrimaryLink: getVal('ctaPrimaryLink') - }, - sectionsOrder: sections + metaDescription: getVal('metaDescription') }, themeConfig: { activePreset: selectedPreset @@ -227,6 +180,7 @@ const presets = Object.values(THEME_PRESETS); }; try { + const res = await fetch('/api/config', { method: 'POST', headers: { 'Content-Type': 'application/json' },