Add CMS editors to desktop dropdown menu with proper grouping

This commit is contained in:
Torsten Schulz (local)
2025-10-22 12:13:01 +02:00
parent c0c8e4abc9
commit 71f4dea756
8 changed files with 203 additions and 180 deletions

View File

@@ -1472,7 +1472,7 @@ const _sfc_main$4 = {
const isAdmin = computed(() => authStore.isAdmin);
const currentSubmenu = computed(() => {
const path = route.path;
if (path.startsWith("/ueber-uns") || path.startsWith("/vorstand") || path.startsWith("/geschichte") || path.startsWith("/satzung") || path.startsWith("/vereinsmeisterschaften")) {
if (path.startsWith("/verein/") || path.startsWith("/vorstand") || path.startsWith("/vereinsmeisterschaften")) {
return "verein";
}
if (path.startsWith("/mannschaften") || path.startsWith("/spielsysteme")) {
@@ -1532,7 +1532,7 @@ const _sfc_main$4 = {
}),
_: 1
}, _parent));
_push(`<button class="${ssrRenderClass([unref(route).path.startsWith("/ueber-uns") || unref(route).path.startsWith("/vorstand") || unref(route).path.startsWith("/geschichte") || unref(route).path.startsWith("/satzung") || unref(route).path.startsWith("/vereinsmeisterschaften") || currentSubmenu.value === "verein" ? "text-white bg-primary-600" : "", "px-4 py-2 text-gray-300 hover:text-white font-medium transition-all rounded-lg hover:bg-primary-700/50"])}"> Verein </button><button class="${ssrRenderClass([unref(route).path.startsWith("/mannschaften") || unref(route).path.startsWith("/spielsysteme") || currentSubmenu.value === "mannschaften" ? "text-white bg-primary-600" : "", "px-4 py-2 text-gray-300 hover:text-white font-medium transition-all rounded-lg hover:bg-primary-700/50"])}"> Mannschaften </button><button class="${ssrRenderClass([unref(route).path.startsWith("/training") || unref(route).path.startsWith("/tt-regeln") || currentSubmenu.value === "training" ? "text-white bg-primary-600" : "", "px-4 py-2 text-gray-300 hover:text-white font-medium transition-all rounded-lg hover:bg-primary-700/50"])}"> Training </button>`);
_push(`<button class="${ssrRenderClass([unref(route).path.startsWith("/verein/") || unref(route).path.startsWith("/vorstand") || unref(route).path.startsWith("/vereinsmeisterschaften") || currentSubmenu.value === "verein" ? "text-white bg-primary-600" : "", "px-4 py-2 text-gray-300 hover:text-white font-medium transition-all rounded-lg hover:bg-primary-700/50"])}"> Verein </button><button class="${ssrRenderClass([unref(route).path.startsWith("/mannschaften") || unref(route).path.startsWith("/spielsysteme") || currentSubmenu.value === "mannschaften" ? "text-white bg-primary-600" : "", "px-4 py-2 text-gray-300 hover:text-white font-medium transition-all rounded-lg hover:bg-primary-700/50"])}"> Mannschaften </button><button class="${ssrRenderClass([unref(route).path.startsWith("/training") || unref(route).path.startsWith("/tt-regeln") || currentSubmenu.value === "training" ? "text-white bg-primary-600" : "", "px-4 py-2 text-gray-300 hover:text-white font-medium transition-all rounded-lg hover:bg-primary-700/50"])}"> Training </button>`);
_push(ssrRenderComponent(_component_NuxtLink, {
to: "/mitgliedschaft",
class: "px-4 py-2 text-gray-300 hover:text-white font-medium transition-all rounded-lg hover:bg-primary-700/50",
@@ -1614,7 +1614,7 @@ const _sfc_main$4 = {
if (currentSubmenu.value === "verein") {
_push(`<!--[-->`);
_push(ssrRenderComponent(_component_NuxtLink, {
to: "/ueber-uns",
to: "/verein/ueber-uns",
class: "px-2.5 py-1 text-xs text-gray-300 hover:text-white hover:bg-primary-700/50 rounded transition-all",
"active-class": "text-white bg-primary-600"
}, {
@@ -1646,7 +1646,7 @@ const _sfc_main$4 = {
_: 1
}, _parent));
_push(ssrRenderComponent(_component_NuxtLink, {
to: "/geschichte",
to: "/verein/geschichte",
class: "px-2.5 py-1 text-xs text-gray-300 hover:text-white hover:bg-primary-700/50 rounded transition-all",
"active-class": "text-white bg-primary-600"
}, {
@@ -1662,7 +1662,7 @@ const _sfc_main$4 = {
_: 1
}, _parent));
_push(ssrRenderComponent(_component_NuxtLink, {
to: "/satzung",
to: "/verein/satzung",
class: "px-2.5 py-1 text-xs text-gray-300 hover:text-white hover:bg-primary-700/50 rounded transition-all",
"active-class": "text-white bg-primary-600"
}, {
@@ -2069,7 +2069,7 @@ const _sfc_main$4 = {
if (mobileSubmenu.value === "verein") {
_push(`<div class="pl-4 space-y-1 mt-1 bg-primary-900/30 rounded-lg p-2">`);
_push(ssrRenderComponent(_component_NuxtLink, {
to: "/ueber-uns",
to: "/verein/ueber-uns",
onClick: ($event) => isMobileMenuOpen.value = false,
class: "block px-4 py-2 text-sm text-gray-400 hover:text-white hover:bg-primary-700/50 rounded-lg transition-colors"
}, {
@@ -2101,7 +2101,7 @@ const _sfc_main$4 = {
_: 1
}, _parent));
_push(ssrRenderComponent(_component_NuxtLink, {
to: "/geschichte",
to: "/verein/geschichte",
onClick: ($event) => isMobileMenuOpen.value = false,
class: "block px-4 py-2 text-sm text-gray-400 hover:text-white hover:bg-primary-700/50 rounded-lg transition-colors"
}, {
@@ -2117,7 +2117,7 @@ const _sfc_main$4 = {
_: 1
}, _parent));
_push(ssrRenderComponent(_component_NuxtLink, {
to: "/satzung",
to: "/verein/satzung",
onClick: ($event) => isMobileMenuOpen.value = false,
class: "block px-4 py-2 text-sm text-gray-400 hover:text-white hover:bg-primary-700/50 rounded-lg transition-colors"
}, {