Reset preview port to 3100

This commit is contained in:
Torsten Schulz (local)
2025-10-21 11:42:05 +02:00
parent af6aef6d8f
commit 86f21537a8
17 changed files with 435 additions and 166 deletions

View File

@@ -1256,6 +1256,11 @@ const _sfc_main$4 = {
const mobileSubmenu = ref(null);
const mannschaften = ref([]);
const hasGalleryImages = ref(false);
const isLoggedIn = ref(false);
const userRole = ref(null);
const isAdmin = computed(() => {
return userRole.value === "admin" || userRole.value === "vorstand";
});
const currentSubmenu = computed(() => {
const path = route.path;
if (path.startsWith("/ueber-uns") || path.startsWith("/vorstand") || path.startsWith("/geschichte") || path.startsWith("/satzung") || path.startsWith("/vereinsmeisterschaften")) {
@@ -1267,6 +1272,9 @@ const _sfc_main$4 = {
if (path.startsWith("/training") || path.startsWith("/tt-regeln")) {
return "training";
}
if (path.startsWith("/mitgliederbereich") || path.startsWith("/cms")) {
return "intern";
}
return null;
});
ref(null);
@@ -1370,6 +1378,11 @@ const _sfc_main$4 = {
} else {
_push(`<!---->`);
}
if (isLoggedIn.value) {
_push(`<button class="${ssrRenderClass([unref(route).path.startsWith("/mitgliederbereich") || unref(route).path.startsWith("/cms") || currentSubmenu.value === "intern" ? "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"])}"> Intern </button>`);
} else {
_push(`<!---->`);
}
_push(ssrRenderComponent(_component_NuxtLink, {
to: "/kontakt",
onClick: ($event) => currentSubmenu.value = null,
@@ -1619,6 +1632,115 @@ const _sfc_main$4 = {
} else {
_push(`<!---->`);
}
if (currentSubmenu.value === "intern") {
_push(`<!--[-->`);
_push(ssrRenderComponent(_component_NuxtLink, {
to: "/mitgliederbereich",
class: "px-2.5 py-1 text-xs font-semibold text-white hover:bg-primary-700/50 rounded transition-all",
"active-class": "bg-primary-600"
}, {
default: withCtx((_, _push2, _parent2, _scopeId) => {
if (_push2) {
_push2(` Übersicht `);
} else {
return [
createTextVNode(" Übersicht ")
];
}
}),
_: 1
}, _parent));
_push(`<div class="h-3 w-px bg-primary-700"></div>`);
_push(ssrRenderComponent(_component_NuxtLink, {
to: "/mitgliederbereich/mitglieder",
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"
}, {
default: withCtx((_, _push2, _parent2, _scopeId) => {
if (_push2) {
_push2(` Mitgliederliste `);
} else {
return [
createTextVNode(" Mitgliederliste ")
];
}
}),
_: 1
}, _parent));
_push(ssrRenderComponent(_component_NuxtLink, {
to: "/mitgliederbereich/news",
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"
}, {
default: withCtx((_, _push2, _parent2, _scopeId) => {
if (_push2) {
_push2(` Interne News `);
} else {
return [
createTextVNode(" Interne News ")
];
}
}),
_: 1
}, _parent));
_push(ssrRenderComponent(_component_NuxtLink, {
to: "/mitgliederbereich/profil",
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"
}, {
default: withCtx((_, _push2, _parent2, _scopeId) => {
if (_push2) {
_push2(` Mein Profil `);
} else {
return [
createTextVNode(" Mein Profil ")
];
}
}),
_: 1
}, _parent));
if (isAdmin.value) {
_push(`<!--[--><div class="h-3 w-px bg-primary-700"></div>`);
_push(ssrRenderComponent(_component_NuxtLink, {
to: "/cms",
class: "px-2.5 py-1 text-xs text-yellow-300 hover:text-white hover:bg-primary-700/50 rounded transition-all",
"active-class": "text-white bg-primary-600"
}, {
default: withCtx((_, _push2, _parent2, _scopeId) => {
if (_push2) {
_push2(` CMS `);
} else {
return [
createTextVNode(" CMS ")
];
}
}),
_: 1
}, _parent));
_push(ssrRenderComponent(_component_NuxtLink, {
to: "/cms/benutzer",
class: "px-2.5 py-1 text-xs text-yellow-300 hover:text-white hover:bg-primary-700/50 rounded transition-all",
"active-class": "text-white bg-primary-600"
}, {
default: withCtx((_, _push2, _parent2, _scopeId) => {
if (_push2) {
_push2(` Benutzerverwaltung `);
} else {
return [
createTextVNode(" Benutzerverwaltung ")
];
}
}),
_: 1
}, _parent));
_push(`<!--]-->`);
} else {
_push(`<!---->`);
}
_push(`<!--]-->`);
} else {
_push(`<!---->`);
}
_push(`</div>`);
} else {
_push(`<!---->`);
@@ -1955,6 +2077,125 @@ const _sfc_main$4 = {
} else {
_push(`<!---->`);
}
if (isLoggedIn.value) {
_push(`<div><button class="w-full flex items-center justify-between px-4 py-3 text-gray-300 hover:text-white hover:bg-primary-700/50 rounded-lg font-medium transition-colors"> Intern `);
_push(ssrRenderComponent(unref(ChevronDown), {
size: 16,
class: ["transition-transform", mobileSubmenu.value === "intern" ? "rotate-180" : ""]
}, null, _parent));
_push(`</button>`);
if (mobileSubmenu.value === "intern") {
_push(`<div class="pl-4 space-y-1 mt-1 bg-primary-900/30 rounded-lg p-2">`);
_push(ssrRenderComponent(_component_NuxtLink, {
to: "/mitgliederbereich",
onClick: ($event) => isMobileMenuOpen.value = false,
class: "block px-4 py-2 text-sm font-semibold text-gray-300 hover:text-white hover:bg-primary-700/50 rounded-lg transition-colors"
}, {
default: withCtx((_, _push2, _parent2, _scopeId) => {
if (_push2) {
_push2(` Übersicht `);
} else {
return [
createTextVNode(" Übersicht ")
];
}
}),
_: 1
}, _parent));
_push(ssrRenderComponent(_component_NuxtLink, {
to: "/mitgliederbereich/mitglieder",
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"
}, {
default: withCtx((_, _push2, _parent2, _scopeId) => {
if (_push2) {
_push2(` Mitgliederliste `);
} else {
return [
createTextVNode(" Mitgliederliste ")
];
}
}),
_: 1
}, _parent));
_push(ssrRenderComponent(_component_NuxtLink, {
to: "/mitgliederbereich/news",
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"
}, {
default: withCtx((_, _push2, _parent2, _scopeId) => {
if (_push2) {
_push2(` Interne News `);
} else {
return [
createTextVNode(" Interne News ")
];
}
}),
_: 1
}, _parent));
_push(ssrRenderComponent(_component_NuxtLink, {
to: "/mitgliederbereich/profil",
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"
}, {
default: withCtx((_, _push2, _parent2, _scopeId) => {
if (_push2) {
_push2(` Mein Profil `);
} else {
return [
createTextVNode(" Mein Profil ")
];
}
}),
_: 1
}, _parent));
if (isAdmin.value) {
_push(`<!--[--><div class="border-t border-primary-700/20 my-2"></div>`);
_push(ssrRenderComponent(_component_NuxtLink, {
to: "/cms",
onClick: ($event) => isMobileMenuOpen.value = false,
class: "block px-4 py-2 text-sm text-yellow-300 hover:text-white hover:bg-primary-700/50 rounded-lg transition-colors"
}, {
default: withCtx((_, _push2, _parent2, _scopeId) => {
if (_push2) {
_push2(` CMS `);
} else {
return [
createTextVNode(" CMS ")
];
}
}),
_: 1
}, _parent));
_push(ssrRenderComponent(_component_NuxtLink, {
to: "/cms/benutzer",
onClick: ($event) => isMobileMenuOpen.value = false,
class: "block px-4 py-2 text-sm text-yellow-300 hover:text-white hover:bg-primary-700/50 rounded-lg transition-colors"
}, {
default: withCtx((_, _push2, _parent2, _scopeId) => {
if (_push2) {
_push2(` Benutzerverwaltung `);
} else {
return [
createTextVNode(" Benutzerverwaltung ")
];
}
}),
_: 1
}, _parent));
_push(`<!--]-->`);
} else {
_push(`<!---->`);
}
_push(`</div>`);
} else {
_push(`<!---->`);
}
_push(`</div>`);
} else {
_push(`<!---->`);
}
_push(ssrRenderComponent(_component_NuxtLink, {
to: "/kontakt",
onClick: ($event) => isMobileMenuOpen.value = false,