Add CMS dropdown in Intern submenu with termine editor
This commit is contained in:
@@ -1,4 +1,15 @@
|
||||
const client_manifest = {
|
||||
"_6EY4_GXp.js": {
|
||||
"resourceType": "script",
|
||||
"module": true,
|
||||
"prefetch": true,
|
||||
"preload": true,
|
||||
"file": "6EY4_GXp.js",
|
||||
"name": "square-pen",
|
||||
"imports": [
|
||||
"node_modules/nuxt/dist/app/entry.js"
|
||||
]
|
||||
},
|
||||
"_B4mSF5Ac.js": {
|
||||
"resourceType": "script",
|
||||
"module": true,
|
||||
@@ -54,17 +65,6 @@ const client_manifest = {
|
||||
"node_modules/nuxt/dist/app/entry.js"
|
||||
]
|
||||
},
|
||||
"_CGpRzXRB.js": {
|
||||
"resourceType": "script",
|
||||
"module": true,
|
||||
"prefetch": true,
|
||||
"preload": true,
|
||||
"file": "CGpRzXRB.js",
|
||||
"name": "trash-2",
|
||||
"imports": [
|
||||
"node_modules/nuxt/dist/app/entry.js"
|
||||
]
|
||||
},
|
||||
"_CUq_0rkE.js": {
|
||||
"resourceType": "script",
|
||||
"module": true,
|
||||
@@ -194,6 +194,17 @@ const client_manifest = {
|
||||
"file": "DlAUqK2U.js",
|
||||
"name": "_plugin-vue_export-helper"
|
||||
},
|
||||
"_FF_cyd6S.js": {
|
||||
"resourceType": "script",
|
||||
"module": true,
|
||||
"prefetch": true,
|
||||
"preload": true,
|
||||
"file": "FF_cyd6S.js",
|
||||
"name": "trash-2",
|
||||
"imports": [
|
||||
"node_modules/nuxt/dist/app/entry.js"
|
||||
]
|
||||
},
|
||||
"_KxVBmS-6.js": {
|
||||
"resourceType": "script",
|
||||
"module": true,
|
||||
@@ -205,6 +216,17 @@ const client_manifest = {
|
||||
"node_modules/nuxt/dist/app/entry.js"
|
||||
]
|
||||
},
|
||||
"_R6Iy1jPP.js": {
|
||||
"resourceType": "script",
|
||||
"module": true,
|
||||
"prefetch": true,
|
||||
"preload": true,
|
||||
"file": "R6Iy1jPP.js",
|
||||
"name": "plus",
|
||||
"imports": [
|
||||
"node_modules/nuxt/dist/app/entry.js"
|
||||
]
|
||||
},
|
||||
"_XZ6RV9KH.js": {
|
||||
"resourceType": "script",
|
||||
"module": true,
|
||||
@@ -318,7 +340,7 @@ const client_manifest = {
|
||||
"module": true,
|
||||
"prefetch": true,
|
||||
"preload": true,
|
||||
"file": "D43Z0o-f.js",
|
||||
"file": "BCCaC8ND.js",
|
||||
"name": "entry",
|
||||
"src": "node_modules/nuxt/dist/app/entry.js",
|
||||
"isEntry": true,
|
||||
@@ -328,14 +350,14 @@ const client_manifest = {
|
||||
"node_modules/nuxt/dist/app/components/error-500.vue"
|
||||
],
|
||||
"css": [
|
||||
"entry.BbGskshJ.css"
|
||||
"entry.BiMUV0e6.css"
|
||||
],
|
||||
"assets": [
|
||||
"Harheimer TC.CKfYAfp1.svg"
|
||||
]
|
||||
},
|
||||
"entry.BbGskshJ.css": {
|
||||
"file": "entry.BbGskshJ.css",
|
||||
"entry.BiMUV0e6.css": {
|
||||
"file": "entry.BiMUV0e6.css",
|
||||
"resourceType": "style",
|
||||
"prefetch": true,
|
||||
"preload": true
|
||||
@@ -381,19 +403,36 @@ const client_manifest = {
|
||||
"module": true,
|
||||
"prefetch": true,
|
||||
"preload": true,
|
||||
"file": "Bdk8d7qx.js",
|
||||
"file": "DO_5fT64.js",
|
||||
"name": "index",
|
||||
"src": "pages/cms/index.vue",
|
||||
"isDynamicEntry": true,
|
||||
"imports": [
|
||||
"node_modules/nuxt/dist/app/entry.js",
|
||||
"_C_U-NUAd.js",
|
||||
"_YJHbYJtA.js",
|
||||
"_DAACT36i.js",
|
||||
"_BteKZQ9T.js",
|
||||
"_YJHbYJtA.js",
|
||||
"_DkeYb0_S.js"
|
||||
]
|
||||
},
|
||||
"pages/cms/termine.vue": {
|
||||
"resourceType": "script",
|
||||
"module": true,
|
||||
"prefetch": true,
|
||||
"preload": true,
|
||||
"file": "C_WhudVk.js",
|
||||
"name": "termine",
|
||||
"src": "pages/cms/termine.vue",
|
||||
"isDynamicEntry": true,
|
||||
"imports": [
|
||||
"node_modules/nuxt/dist/app/entry.js",
|
||||
"_C_U-NUAd.js",
|
||||
"_R6Iy1jPP.js",
|
||||
"_CUq_0rkE.js",
|
||||
"_FF_cyd6S.js",
|
||||
"_C8kQt0fa.js"
|
||||
]
|
||||
},
|
||||
"pages/galerie.vue": {
|
||||
"resourceType": "script",
|
||||
"module": true,
|
||||
@@ -610,7 +649,7 @@ const client_manifest = {
|
||||
"module": true,
|
||||
"prefetch": true,
|
||||
"preload": true,
|
||||
"file": "nrzLFm_7.js",
|
||||
"file": "DHyEjCGa.js",
|
||||
"name": "mitglieder",
|
||||
"src": "pages/mitgliederbereich/mitglieder.vue",
|
||||
"isDynamicEntry": true,
|
||||
@@ -619,7 +658,8 @@ const client_manifest = {
|
||||
"_C_U-NUAd.js",
|
||||
"_oN0_bS6A.js",
|
||||
"_CUq_0rkE.js",
|
||||
"_CGpRzXRB.js",
|
||||
"_6EY4_GXp.js",
|
||||
"_FF_cyd6S.js",
|
||||
"_BC4PNGtJ.js",
|
||||
"_DdHhmCne.js",
|
||||
"_C5SyyWEb.js",
|
||||
@@ -632,17 +672,19 @@ const client_manifest = {
|
||||
"module": true,
|
||||
"prefetch": true,
|
||||
"preload": true,
|
||||
"file": "Dx1KRsmK.js",
|
||||
"file": "B6D6IUyr.js",
|
||||
"name": "news",
|
||||
"src": "pages/mitgliederbereich/news.vue",
|
||||
"isDynamicEntry": true,
|
||||
"imports": [
|
||||
"node_modules/nuxt/dist/app/entry.js",
|
||||
"_C_U-NUAd.js",
|
||||
"_R6Iy1jPP.js",
|
||||
"_CUq_0rkE.js",
|
||||
"_KxVBmS-6.js",
|
||||
"_YJHbYJtA.js",
|
||||
"_CGpRzXRB.js",
|
||||
"_6EY4_GXp.js",
|
||||
"_FF_cyd6S.js",
|
||||
"_DAACT36i.js",
|
||||
"_C8kQt0fa.js"
|
||||
]
|
||||
|
||||
@@ -1,96 +0,0 @@
|
||||
import { _ as __nuxt_component_0$1 } from './server.mjs';
|
||||
import { ref, mergeProps, unref, withCtx, createVNode, useSSRContext } from 'vue';
|
||||
import { ssrRenderAttrs, ssrInterpolate, ssrRenderComponent } from 'vue/server-renderer';
|
||||
import { Calendar, Newspaper, FileText, Users, Image } from 'lucide-vue-next';
|
||||
import { u as useHead } from './composables-CK-Mp9jS.mjs';
|
||||
import '../nitro/nitro.mjs';
|
||||
import 'node:http';
|
||||
import 'node:https';
|
||||
import 'node:events';
|
||||
import 'node:buffer';
|
||||
import 'node:fs';
|
||||
import 'node:path';
|
||||
import 'node:crypto';
|
||||
import 'node:url';
|
||||
import '../routes/renderer.mjs';
|
||||
import 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
import 'pinia';
|
||||
import 'vue-router';
|
||||
|
||||
const _sfc_main = {
|
||||
__name: "index",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
const user = ref(null);
|
||||
useHead({
|
||||
title: "CMS - Harheimer TC"
|
||||
});
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_NuxtLink = __nuxt_component_0$1;
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "min-h-full py-16 bg-gray-50" }, _attrs))}><div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"><h1 class="text-4xl sm:text-5xl font-display font-bold text-gray-900 mb-6"> Content Management System </h1><div class="w-24 h-1 bg-primary-600 mb-8"></div><div class="bg-white rounded-xl shadow-lg p-8 mb-8"><h2 class="text-2xl font-display font-bold text-gray-900 mb-4"> Willkommen im CMS, ${ssrInterpolate(user.value?.name)}! </h2><p class="text-gray-600"> Hier können Sie Inhalte der Website verwalten. </p></div><div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6"><div class="bg-white p-6 rounded-xl shadow-lg border border-gray-100"><div class="flex items-center mb-4"><div class="w-12 h-12 bg-primary-100 rounded-lg flex items-center justify-center mr-4">`);
|
||||
_push(ssrRenderComponent(unref(Calendar), {
|
||||
size: 24,
|
||||
class: "text-primary-600"
|
||||
}, null, _parent));
|
||||
_push(`</div><h3 class="text-lg font-semibold text-gray-900">Termine verwalten</h3></div><p class="text-gray-600 text-sm mb-4"> Termine hinzufügen, bearbeiten und löschen </p><button class="text-sm text-primary-600 hover:text-primary-700 font-medium"> Öffnen → </button></div><div class="bg-white p-6 rounded-xl shadow-lg border border-gray-100"><div class="flex items-center mb-4"><div class="w-12 h-12 bg-primary-100 rounded-lg flex items-center justify-center mr-4">`);
|
||||
_push(ssrRenderComponent(unref(Newspaper), {
|
||||
size: 24,
|
||||
class: "text-primary-600"
|
||||
}, null, _parent));
|
||||
_push(`</div><h3 class="text-lg font-semibold text-gray-900">Interne News</h3></div><p class="text-gray-600 text-sm mb-4"> News für Mitglieder erstellen und verwalten </p><button class="text-sm text-primary-600 hover:text-primary-700 font-medium"> Öffnen → </button></div><div class="bg-white p-6 rounded-xl shadow-lg border border-gray-100"><div class="flex items-center mb-4"><div class="w-12 h-12 bg-primary-100 rounded-lg flex items-center justify-center mr-4">`);
|
||||
_push(ssrRenderComponent(unref(FileText), {
|
||||
size: 24,
|
||||
class: "text-primary-600"
|
||||
}, null, _parent));
|
||||
_push(`</div><h3 class="text-lg font-semibold text-gray-900">Spielpläne</h3></div><p class="text-gray-600 text-sm mb-4"> Spielpläne hochladen und verwalten </p><button class="text-sm text-primary-600 hover:text-primary-700 font-medium"> Öffnen → </button></div>`);
|
||||
_push(ssrRenderComponent(_component_NuxtLink, {
|
||||
to: "/cms/benutzer",
|
||||
class: "bg-white p-6 rounded-xl shadow-lg border border-gray-100 hover:shadow-xl transition-shadow block"
|
||||
}, {
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
_push2(`<div class="flex items-center mb-4"${_scopeId}><div class="w-12 h-12 bg-primary-100 rounded-lg flex items-center justify-center mr-4"${_scopeId}>`);
|
||||
_push2(ssrRenderComponent(unref(Users), {
|
||||
size: 24,
|
||||
class: "text-primary-600"
|
||||
}, null, _parent2, _scopeId));
|
||||
_push2(`</div><h3 class="text-lg font-semibold text-gray-900"${_scopeId}>Benutzerverwaltung</h3></div><p class="text-gray-600 text-sm mb-4"${_scopeId}> Registrierungen freischalten und Rollen verwalten </p><span class="text-sm text-primary-600 hover:text-primary-700 font-medium"${_scopeId}> Öffnen → </span>`);
|
||||
} else {
|
||||
return [
|
||||
createVNode("div", { class: "flex items-center mb-4" }, [
|
||||
createVNode("div", { class: "w-12 h-12 bg-primary-100 rounded-lg flex items-center justify-center mr-4" }, [
|
||||
createVNode(unref(Users), {
|
||||
size: 24,
|
||||
class: "text-primary-600"
|
||||
})
|
||||
]),
|
||||
createVNode("h3", { class: "text-lg font-semibold text-gray-900" }, "Benutzerverwaltung")
|
||||
]),
|
||||
createVNode("p", { class: "text-gray-600 text-sm mb-4" }, " Registrierungen freischalten und Rollen verwalten "),
|
||||
createVNode("span", { class: "text-sm text-primary-600 hover:text-primary-700 font-medium" }, " Öffnen → ")
|
||||
];
|
||||
}
|
||||
}),
|
||||
_: 1
|
||||
}, _parent));
|
||||
_push(`<div class="bg-white p-6 rounded-xl shadow-lg border border-gray-100"><div class="flex items-center mb-4"><div class="w-12 h-12 bg-primary-100 rounded-lg flex items-center justify-center mr-4">`);
|
||||
_push(ssrRenderComponent(unref(Image), {
|
||||
size: 24,
|
||||
class: "text-primary-600"
|
||||
}, null, _parent));
|
||||
_push(`</div><h3 class="text-lg font-semibold text-gray-900">Galerie</h3></div><p class="text-gray-600 text-sm mb-4"> Bilder hochladen und verwalten </p><button class="text-sm text-primary-600 hover:text-primary-700 font-medium"> Öffnen → </button></div></div></div></div>`);
|
||||
};
|
||||
}
|
||||
};
|
||||
const _sfc_setup = _sfc_main.setup;
|
||||
_sfc_main.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/cms/index.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
//# sourceMappingURL=index-CDfPDFNK.mjs.map
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"index-CDfPDFNK.mjs","sources":["../../../../pages/cms/index.vue"],"sourcesContent":null,"names":["_ssrRenderAttrs","_mergeProps","_ssrInterpolate","_push","_parent","_createVNode","_unref"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAyGA,IAAA,MAAM,IAAA,GAAO,IAAI,IAAI,CAAA;AAiBrB,IAAA,OAAA,CAAQ;AAAA,MACN,KAAA,EAAO;AAAA,KACR,CAAA;;;mBA3HMA,cAAAA,CAAAC,UAAAA,CAAA,EAAA,KAAA,EAAM,6BAAA,EAA6B,EAAA,MAAA,CAAA,CAAA,CAAA,uVAAA,EASVC,cAAAA,CAAA,IAAA,CAAA,KAAA,EAAM,IAAI,CAAA,CAAA,iVAAA,CAAA,CAAA;;QAYjB,IAAA,EAAM,EAAA;AAAA,QAAI,KAAA,EAAM;AAAA,OAAA,EAAA,IAAA,EAAA,OAAA,CAAA,CAAA;;;QAef,IAAA,EAAM,EAAA;AAAA,QAAI,KAAA,EAAM;AAAA,OAAA,EAAA,IAAA,EAAA,OAAA,CAAA,CAAA;;;QAejB,IAAA,EAAM,EAAA;AAAA,QAAI,KAAA,EAAM;AAAA,OAAA,EAAA,IAAA,EAAA,OAAA,CAAA,CAAA;;;QAa/B,EAAA,EAAG,eAAA;AAAA,QACH,KAAA,EAAM;AAAA,OAAA,EAAA;yBAFR,CAgBW,CAAA,EAAAC,MAAAA,EAAAC,QAAAA,EAAA,QAAA,KAAA;;;;cAVG,IAAA,EAAM,EAAA;AAAA,cAAI,KAAA,EAAM;AAAA,aAAA,EAAA,IAAA,EAAA,QAAA,EAAA,QAAA,CAAA,CAAA;;;;AAF5BC,cAAAA,WAAAA,CAKM,KAAA,EAAA,EALD,KAAA,EAAM,wBAAA,EAAwB,EAAA;AAAA,gBACjCA,WAAAA,CAEM,KAAA,EAAA,EAFD,KAAA,EAAM,6EAA2E,EAAA;AAAA,kBACpFA,WAAAA,CAA6CC,KAAAA,CAAA,KAAA,CAAA,EAAA;AAAA,oBAArC,IAAA,EAAM,EAAA;AAAA,oBAAI,KAAA,EAAM;AAAA,mBAAA;;AAE1BD,gBAAAA,WAAAA,CAAuE,IAAA,EAAA,EAAnE,KAAA,EAAM,qCAAA,IAAsC,oBAAkB;AAAA,eAAA,CAAA;AAEpEA,cAAAA,WAAAA,CAEI,GAAA,EAAA,EAFD,KAAA,EAAM,4BAAA,IAA6B,qDAEtC,CAAA;AAAA,cACAA,YAEO,MAAA,EAAA,EAFD,KAAA,EAAM,6DAAA,IAA8D,YAE1E;AAAA,aAAA;;;;;;;QAMY,IAAA,EAAM,EAAA;AAAA,QAAI,KAAA,EAAM;AAAA,OAAA,EAAA,IAAA,EAAA,OAAA,CAAA,CAAA;;;;;;;;;;;;;;"}
|
||||
166
.output/server/chunks/build/index-D8nn7-Uy.mjs
Normal file
166
.output/server/chunks/build/index-D8nn7-Uy.mjs
Normal file
@@ -0,0 +1,166 @@
|
||||
import { u as useAuthStore, _ as __nuxt_component_0$1 } from './server.mjs';
|
||||
import { mergeProps, withCtx, unref, createVNode, useSSRContext } from 'vue';
|
||||
import { ssrRenderAttrs, ssrRenderComponent } from 'vue/server-renderer';
|
||||
import { Newspaper, Calendar, Users, UserCog } from 'lucide-vue-next';
|
||||
import { u as useHead } from './composables-CK-Mp9jS.mjs';
|
||||
import '../nitro/nitro.mjs';
|
||||
import 'node:http';
|
||||
import 'node:https';
|
||||
import 'node:events';
|
||||
import 'node:buffer';
|
||||
import 'node:fs';
|
||||
import 'node:path';
|
||||
import 'node:crypto';
|
||||
import 'node:url';
|
||||
import '../routes/renderer.mjs';
|
||||
import 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
import 'pinia';
|
||||
import 'vue-router';
|
||||
|
||||
const _sfc_main = {
|
||||
__name: "index",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
const authStore = useAuthStore();
|
||||
useHead({
|
||||
title: "CMS - Harheimer TC"
|
||||
});
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_NuxtLink = __nuxt_component_0$1;
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "min-h-full py-16 bg-gray-50" }, _attrs))}><div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"><h1 class="text-4xl sm:text-5xl font-display font-bold text-gray-900 mb-6"> Content Management System </h1><div class="w-24 h-1 bg-primary-600 mb-8"></div><div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6">`);
|
||||
_push(ssrRenderComponent(_component_NuxtLink, {
|
||||
to: "/mitgliederbereich/news",
|
||||
class: "bg-white p-6 rounded-xl shadow-lg border border-gray-100 hover:shadow-xl transition-all group"
|
||||
}, {
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
_push2(`<div class="flex items-center mb-4"${_scopeId}><div class="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center group-hover:bg-blue-600 transition-colors"${_scopeId}>`);
|
||||
_push2(ssrRenderComponent(unref(Newspaper), {
|
||||
size: 24,
|
||||
class: "text-blue-600 group-hover:text-white"
|
||||
}, null, _parent2, _scopeId));
|
||||
_push2(`</div><h2 class="ml-4 text-xl font-semibold text-gray-900"${_scopeId}>Interne News</h2></div><p class="text-gray-600"${_scopeId}> News für Mitglieder erstellen und verwalten </p>`);
|
||||
} else {
|
||||
return [
|
||||
createVNode("div", { class: "flex items-center mb-4" }, [
|
||||
createVNode("div", { class: "w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center group-hover:bg-blue-600 transition-colors" }, [
|
||||
createVNode(unref(Newspaper), {
|
||||
size: 24,
|
||||
class: "text-blue-600 group-hover:text-white"
|
||||
})
|
||||
]),
|
||||
createVNode("h2", { class: "ml-4 text-xl font-semibold text-gray-900" }, "Interne News")
|
||||
]),
|
||||
createVNode("p", { class: "text-gray-600" }, " News für Mitglieder erstellen und verwalten ")
|
||||
];
|
||||
}
|
||||
}),
|
||||
_: 1
|
||||
}, _parent));
|
||||
_push(ssrRenderComponent(_component_NuxtLink, {
|
||||
to: "/cms/termine",
|
||||
class: "bg-white p-6 rounded-xl shadow-lg border border-gray-100 hover:shadow-xl transition-all group"
|
||||
}, {
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
_push2(`<div class="flex items-center mb-4"${_scopeId}><div class="w-12 h-12 bg-green-100 rounded-lg flex items-center justify-center group-hover:bg-green-600 transition-colors"${_scopeId}>`);
|
||||
_push2(ssrRenderComponent(unref(Calendar), {
|
||||
size: 24,
|
||||
class: "text-green-600 group-hover:text-white"
|
||||
}, null, _parent2, _scopeId));
|
||||
_push2(`</div><h2 class="ml-4 text-xl font-semibold text-gray-900"${_scopeId}>Termine</h2></div><p class="text-gray-600"${_scopeId}> Vereinstermine erstellen und verwalten </p>`);
|
||||
} else {
|
||||
return [
|
||||
createVNode("div", { class: "flex items-center mb-4" }, [
|
||||
createVNode("div", { class: "w-12 h-12 bg-green-100 rounded-lg flex items-center justify-center group-hover:bg-green-600 transition-colors" }, [
|
||||
createVNode(unref(Calendar), {
|
||||
size: 24,
|
||||
class: "text-green-600 group-hover:text-white"
|
||||
})
|
||||
]),
|
||||
createVNode("h2", { class: "ml-4 text-xl font-semibold text-gray-900" }, "Termine")
|
||||
]),
|
||||
createVNode("p", { class: "text-gray-600" }, " Vereinstermine erstellen und verwalten ")
|
||||
];
|
||||
}
|
||||
}),
|
||||
_: 1
|
||||
}, _parent));
|
||||
_push(ssrRenderComponent(_component_NuxtLink, {
|
||||
to: "/mitgliederbereich/mitglieder",
|
||||
class: "bg-white p-6 rounded-xl shadow-lg border border-gray-100 hover:shadow-xl transition-all group"
|
||||
}, {
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
_push2(`<div class="flex items-center mb-4"${_scopeId}><div class="w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center group-hover:bg-purple-600 transition-colors"${_scopeId}>`);
|
||||
_push2(ssrRenderComponent(unref(Users), {
|
||||
size: 24,
|
||||
class: "text-purple-600 group-hover:text-white"
|
||||
}, null, _parent2, _scopeId));
|
||||
_push2(`</div><h2 class="ml-4 text-xl font-semibold text-gray-900"${_scopeId}>Mitglieder</h2></div><p class="text-gray-600"${_scopeId}> Mitgliederliste bearbeiten </p>`);
|
||||
} else {
|
||||
return [
|
||||
createVNode("div", { class: "flex items-center mb-4" }, [
|
||||
createVNode("div", { class: "w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center group-hover:bg-purple-600 transition-colors" }, [
|
||||
createVNode(unref(Users), {
|
||||
size: 24,
|
||||
class: "text-purple-600 group-hover:text-white"
|
||||
})
|
||||
]),
|
||||
createVNode("h2", { class: "ml-4 text-xl font-semibold text-gray-900" }, "Mitglieder")
|
||||
]),
|
||||
createVNode("p", { class: "text-gray-600" }, " Mitgliederliste bearbeiten ")
|
||||
];
|
||||
}
|
||||
}),
|
||||
_: 1
|
||||
}, _parent));
|
||||
if (unref(authStore).role === "admin") {
|
||||
_push(ssrRenderComponent(_component_NuxtLink, {
|
||||
to: "/cms/benutzer",
|
||||
class: "bg-white p-6 rounded-xl shadow-lg border border-gray-100 hover:shadow-xl transition-all group"
|
||||
}, {
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
_push2(`<div class="flex items-center mb-4"${_scopeId}><div class="w-12 h-12 bg-yellow-100 rounded-lg flex items-center justify-center group-hover:bg-yellow-600 transition-colors"${_scopeId}>`);
|
||||
_push2(ssrRenderComponent(unref(UserCog), {
|
||||
size: 24,
|
||||
class: "text-yellow-600 group-hover:text-white"
|
||||
}, null, _parent2, _scopeId));
|
||||
_push2(`</div><h2 class="ml-4 text-xl font-semibold text-gray-900"${_scopeId}>Benutzerverwaltung</h2></div><p class="text-gray-600"${_scopeId}> Benutzer freischalten und verwalten </p>`);
|
||||
} else {
|
||||
return [
|
||||
createVNode("div", { class: "flex items-center mb-4" }, [
|
||||
createVNode("div", { class: "w-12 h-12 bg-yellow-100 rounded-lg flex items-center justify-center group-hover:bg-yellow-600 transition-colors" }, [
|
||||
createVNode(unref(UserCog), {
|
||||
size: 24,
|
||||
class: "text-yellow-600 group-hover:text-white"
|
||||
})
|
||||
]),
|
||||
createVNode("h2", { class: "ml-4 text-xl font-semibold text-gray-900" }, "Benutzerverwaltung")
|
||||
]),
|
||||
createVNode("p", { class: "text-gray-600" }, " Benutzer freischalten und verwalten ")
|
||||
];
|
||||
}
|
||||
}),
|
||||
_: 1
|
||||
}, _parent));
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div></div></div>`);
|
||||
};
|
||||
}
|
||||
};
|
||||
const _sfc_setup = _sfc_main.setup;
|
||||
_sfc_main.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/cms/index.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
//# sourceMappingURL=index-D8nn7-Uy.mjs.map
|
||||
1
.output/server/chunks/build/index-D8nn7-Uy.mjs.map
Normal file
1
.output/server/chunks/build/index-D8nn7-Uy.mjs.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index-D8nn7-Uy.mjs","sources":["../../../../pages/cms/index.vue"],"sourcesContent":null,"names":["_ssrRenderAttrs","_mergeProps","_push","_parent","_createVNode","_unref"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAiFA,IAAA,MAAM,YAAY,YAAA,EAAY;AAO9B,IAAA,OAAA,CAAQ;AAAA,MACN,KAAA,EAAO;AAAA,KACR,CAAA;;;AAzFM,MAAA,KAAA,CAAA,CAAA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A,EAAAH,MAAAA,EAAAC,QAAAA,EAAA,QAAA,KAAA;;;;gBAPK,IAAA,EAAM,EAAA;AAAA,gBAAI,KAAA,EAAM;AAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,QAAA,CAAA,CAAA;;;;AAF9BC,gBAAAA,WAAAA,CAKM,KAAA,EAAA,EALD,KAAA,EAAM,wBAAA,EAAwB,EAAA;AAAA,kBACjCA,WAAAA,CAEM,KAAA,EAAA,EAFD,KAAA,EAAM,mHAAiH,EAAA;AAAA,oBAC1HA,WAAAA,CAAqEC,KAAAA,CAAA,OAAA,CAAA,EAAA;AAAA,sBAA3D,IAAA,EAAM,EAAA;AAAA,sBAAI,KAAA,EAAM;AAAA,qBAAA;;AAE5BD,kBAAAA,WAAAA,CAA4E,IAAA,EAAA,EAAxE,KAAA,EAAM,0CAAA,IAA2C,oBAAkB;AAAA,iBAAA,CAAA;AAEzEA,gBAAAA,WAAAA,CAEI,GAAA,EAAA,EAFD,KAAA,EAAM,eAAA,IAAgB,uCAEzB;AAAA,eAAA;;;;;;;;;;;;;;;;;;;;;"}
|
||||
@@ -397,6 +397,12 @@ const unhead_k2P3m_ZDyjlr2mMYnoDPwavjsDN8hBlk9cFai0bbopU = /* @__PURE__ */ defin
|
||||
function toArray(value) {
|
||||
return Array.isArray(value) ? value : [value];
|
||||
}
|
||||
const __nuxt_page_meta$6 = {
|
||||
layout: "default"
|
||||
};
|
||||
const __nuxt_page_meta$5 = {
|
||||
layout: "default"
|
||||
};
|
||||
const __nuxt_page_meta$4 = {
|
||||
layout: "default"
|
||||
};
|
||||
@@ -421,7 +427,7 @@ const _routes = [
|
||||
{
|
||||
name: "login",
|
||||
path: "/login",
|
||||
meta: __nuxt_page_meta$4 || {},
|
||||
meta: __nuxt_page_meta$6 || {},
|
||||
component: () => import('./login-BdWGyHdA.mjs')
|
||||
},
|
||||
{
|
||||
@@ -457,8 +463,8 @@ const _routes = [
|
||||
{
|
||||
name: "cms",
|
||||
path: "/cms",
|
||||
meta: { "middleware": "auth" },
|
||||
component: () => import('./index-CDfPDFNK.mjs')
|
||||
meta: { ...__nuxt_page_meta$5 || {}, ...{ "middleware": "auth" } },
|
||||
component: () => import('./index-D8nn7-Uy.mjs')
|
||||
},
|
||||
{
|
||||
name: "impressum",
|
||||
@@ -480,6 +486,12 @@ const _routes = [
|
||||
path: "/geschichte",
|
||||
component: () => import('./geschichte-DSCikZtf.mjs')
|
||||
},
|
||||
{
|
||||
name: "cms-termine",
|
||||
path: "/cms/termine",
|
||||
meta: { ...__nuxt_page_meta$4 || {}, ...{ "middleware": "auth" } },
|
||||
component: () => import('./termine-TZyY9Wk0.mjs')
|
||||
},
|
||||
{
|
||||
name: "cms-benutzer",
|
||||
path: "/cms/benutzer",
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"server.mjs","sources":["../../../../virtual:nuxt:%2Fmnt%2Fshare%2Ftorsten%2FPrograms%2Fharheimertc%2Fnode_modules%2F.cache%2Fnuxt%2F.nuxt%2Ffetch.mjs","../../../../virtual:nuxt:%2Fmnt%2Fshare%2Ftorsten%2FPrograms%2Fharheimertc%2Fnode_modules%2F.cache%2Fnuxt%2F.nuxt%2Fglobal-polyfills.mjs","../../../../virtual:nuxt:%2Fmnt%2Fshare%2Ftorsten%2FPrograms%2Fharheimertc%2Fnode_modules%2F.cache%2Fnuxt%2F.nuxt%2Fnuxt.config.mjs","../../../../node_modules/nuxt/dist/app/nuxt.js","../../../../node_modules/nuxt/dist/app/components/injections.js","../../../../node_modules/nuxt/dist/app/utils.js","../../../../node_modules/nuxt/dist/app/composables/router.js","../../../../node_modules/nuxt/dist/app/composables/error.js","../../../../node_modules/nuxt/dist/app/composables/manifest.js","../../../../node_modules/nuxt/dist/app/composables/payload.js","../../../../node_modules/@pinia/nuxt/dist/runtime/payload-plugin.js","../../../../node_modules/nuxt/dist/head/runtime/plugins/unhead.js","../../../../node_modules/nuxt/dist/pages/runtime/utils.js","../../../../virtual:nuxt:%2Fmnt%2Fshare%2Ftorsten%2FPrograms%2Fharheimertc%2Fnode_modules%2F.cache%2Fnuxt%2F.nuxt%2Froutes.mjs","../../../../node_modules/nuxt/dist/app/components/utils.js","../../../../node_modules/nuxt/dist/pages/runtime/router.options.js","../../../../virtual:nuxt:%2Fmnt%2Fshare%2Ftorsten%2FPrograms%2Fharheimertc%2Fnode_modules%2F.cache%2Fnuxt%2F.nuxt%2Frouter.options.mjs","../../../../node_modules/nuxt/dist/pages/runtime/validate.js","../../../../stores/auth.js","../../../../middleware/auth.global.js","../../../../node_modules/nuxt/dist/app/middleware/manifest-route-rule.js","../../../../virtual:nuxt:%2Fmnt%2Fshare%2Ftorsten%2FPrograms%2Fharheimertc%2Fnode_modules%2F.cache%2Fnuxt%2F.nuxt%2Fmiddleware.mjs","../../../../node_modules/nuxt/dist/pages/runtime/plugins/router.js","../../../../node_modules/nuxt/dist/app/plugins/revive-payload.server.js","../../../../node_modules/nuxt/dist/app/components/server-placeholder.js","../../../../node_modules/nuxt/dist/app/components/client-only.js","../../../../node_modules/nuxt/dist/app/components/nuxt-link.js","../../../../node_modules/@pinia/nuxt/dist/runtime/plugin.vue3.js","../../../../virtual:nuxt:%2Fmnt%2Fshare%2Ftorsten%2FPrograms%2Fharheimertc%2Fnode_modules%2F.cache%2Fnuxt%2F.nuxt%2Fcomponents.plugin.mjs","../../../../virtual:nuxt:%2Fmnt%2Fshare%2Ftorsten%2FPrograms%2Fharheimertc%2Fnode_modules%2F.cache%2Fnuxt%2F.nuxt%2Fplugins.server.mjs","../../../../node_modules/nuxt/dist/app/components/route-provider.js","../../../../node_modules/nuxt/dist/pages/runtime/page.js","../../../../assets/images/logos/Harheimer TC.svg","../../../../components/Navigation.vue","../../../../components/Footer.vue","../../../../app.vue","../../../../node_modules/nuxt/dist/app/components/nuxt-error-page.vue","../../../../node_modules/nuxt/dist/app/components/nuxt-root.vue","../../../../node_modules/nuxt/dist/app/entry.js"],"sourcesContent":null,"names":["$fetch","plugin","provide","plugins","createH3Error","createRadixRouter","login1RYyYL8mxx17qR_nmdKvywxx7lKOLXMFu8pTLfvTLYwMeta","newsPHTXuxdDl4fgPHQQbukE_XsTEemyPOWVSYs64f8qjC4Meta","indexqVbusfljIJ04j42RIA_KP4bSP7XytQIXdqcVfR3kPUAMeta","profilyVBy_UvZ8KvchY44_0SJbB0NHOad6MC_S9C8wfDdUWEMeta","mitglieder9TWncRC_sSS_zPWzxBDlRiNjjFojXSJny_uernMe_tAMeta","__executeAsync","createRouter","entry","payload_plugin_1_bEQpMjikuQhbV8UJ0PxUqmSvPdmV1jDa5DURnKW4M","router_GNCWhvtYfLTYRZZ135CdFAEjxdMexN0ixiUYCAN_tpw","plugin_vue3_CQ_pO3THrTGIeYc0dvC91V75hY8qpo9B_8yZzOW5SFs","useRoute","_ssrRenderAttrs","_mergeProps","_push","_parent","_ssrRenderAttr","_imports_0","_createVNode","_ssrRenderClass","_unref","_ssrRenderList","_ssrInterpolate","_createTextVNode","_toDisplayString","useRouter","_ssrRenderComponent","ErrorComponent","RootComponent"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,20,21,22,23,24,25,26,27,28,29,30,31,36,37,38]}
|
||||
{"version":3,"file":"server.mjs","sources":["../../../../virtual:nuxt:%2Fmnt%2Fshare%2Ftorsten%2FPrograms%2Fharheimertc%2Fnode_modules%2F.cache%2Fnuxt%2F.nuxt%2Ffetch.mjs","../../../../virtual:nuxt:%2Fmnt%2Fshare%2Ftorsten%2FPrograms%2Fharheimertc%2Fnode_modules%2F.cache%2Fnuxt%2F.nuxt%2Fglobal-polyfills.mjs","../../../../virtual:nuxt:%2Fmnt%2Fshare%2Ftorsten%2FPrograms%2Fharheimertc%2Fnode_modules%2F.cache%2Fnuxt%2F.nuxt%2Fnuxt.config.mjs","../../../../node_modules/nuxt/dist/app/nuxt.js","../../../../node_modules/nuxt/dist/app/components/injections.js","../../../../node_modules/nuxt/dist/app/utils.js","../../../../node_modules/nuxt/dist/app/composables/router.js","../../../../node_modules/nuxt/dist/app/composables/error.js","../../../../node_modules/nuxt/dist/app/composables/manifest.js","../../../../node_modules/nuxt/dist/app/composables/payload.js","../../../../node_modules/@pinia/nuxt/dist/runtime/payload-plugin.js","../../../../node_modules/nuxt/dist/head/runtime/plugins/unhead.js","../../../../node_modules/nuxt/dist/pages/runtime/utils.js","../../../../virtual:nuxt:%2Fmnt%2Fshare%2Ftorsten%2FPrograms%2Fharheimertc%2Fnode_modules%2F.cache%2Fnuxt%2F.nuxt%2Froutes.mjs","../../../../node_modules/nuxt/dist/app/components/utils.js","../../../../node_modules/nuxt/dist/pages/runtime/router.options.js","../../../../virtual:nuxt:%2Fmnt%2Fshare%2Ftorsten%2FPrograms%2Fharheimertc%2Fnode_modules%2F.cache%2Fnuxt%2F.nuxt%2Frouter.options.mjs","../../../../node_modules/nuxt/dist/pages/runtime/validate.js","../../../../stores/auth.js","../../../../middleware/auth.global.js","../../../../node_modules/nuxt/dist/app/middleware/manifest-route-rule.js","../../../../virtual:nuxt:%2Fmnt%2Fshare%2Ftorsten%2FPrograms%2Fharheimertc%2Fnode_modules%2F.cache%2Fnuxt%2F.nuxt%2Fmiddleware.mjs","../../../../node_modules/nuxt/dist/pages/runtime/plugins/router.js","../../../../node_modules/nuxt/dist/app/plugins/revive-payload.server.js","../../../../node_modules/nuxt/dist/app/components/server-placeholder.js","../../../../node_modules/nuxt/dist/app/components/client-only.js","../../../../node_modules/nuxt/dist/app/components/nuxt-link.js","../../../../node_modules/@pinia/nuxt/dist/runtime/plugin.vue3.js","../../../../virtual:nuxt:%2Fmnt%2Fshare%2Ftorsten%2FPrograms%2Fharheimertc%2Fnode_modules%2F.cache%2Fnuxt%2F.nuxt%2Fcomponents.plugin.mjs","../../../../virtual:nuxt:%2Fmnt%2Fshare%2Ftorsten%2FPrograms%2Fharheimertc%2Fnode_modules%2F.cache%2Fnuxt%2F.nuxt%2Fplugins.server.mjs","../../../../node_modules/nuxt/dist/app/components/route-provider.js","../../../../node_modules/nuxt/dist/pages/runtime/page.js","../../../../assets/images/logos/Harheimer TC.svg","../../../../components/Navigation.vue","../../../../components/Footer.vue","../../../../app.vue","../../../../node_modules/nuxt/dist/app/components/nuxt-error-page.vue","../../../../node_modules/nuxt/dist/app/components/nuxt-root.vue","../../../../node_modules/nuxt/dist/app/entry.js"],"sourcesContent":null,"names":["$fetch","plugin","provide","plugins","createH3Error","createRadixRouter","login1RYyYL8mxx17qR_nmdKvywxx7lKOLXMFu8pTLfvTLYwMeta","indexBAhz9QmEiLA6QGDd6cSKraFX9E0RhZLvBUZorkJgAVkMeta","termineaIqWCm431cOVikspmAA3_6UhrHiffuFLM_t95ydtEd4Meta","newsPHTXuxdDl4fgPHQQbukE_XsTEemyPOWVSYs64f8qjC4Meta","indexqVbusfljIJ04j42RIA_KP4bSP7XytQIXdqcVfR3kPUAMeta","profilyVBy_UvZ8KvchY44_0SJbB0NHOad6MC_S9C8wfDdUWEMeta","mitglieder9TWncRC_sSS_zPWzxBDlRiNjjFojXSJny_uernMe_tAMeta","__executeAsync","createRouter","entry","payload_plugin_1_bEQpMjikuQhbV8UJ0PxUqmSvPdmV1jDa5DURnKW4M","router_GNCWhvtYfLTYRZZ135CdFAEjxdMexN0ixiUYCAN_tpw","plugin_vue3_CQ_pO3THrTGIeYc0dvC91V75hY8qpo9B_8yZzOW5SFs","useRoute","_ssrRenderAttrs","_mergeProps","_push","_parent","_ssrRenderAttr","_imports_0","_createVNode","_ssrRenderClass","_unref","_ssrRenderList","_ssrInterpolate","_createTextVNode","_toDisplayString","useRouter","_ssrRenderComponent","ErrorComponent","RootComponent"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,20,21,22,23,24,25,26,27,28,29,30,31,36,37,38]}
|
||||
@@ -2,12 +2,12 @@ const interopDefault = r => r.default || r || [];
|
||||
const styles = {
|
||||
"node_modules/nuxt/dist/app/components/error-404.vue": () => import('./error-404-styles.BsF5Lbhq.mjs').then(interopDefault),
|
||||
"node_modules/nuxt/dist/app/components/error-500.vue": () => import('./error-500-styles.Dccc6iq5.mjs').then(interopDefault),
|
||||
"node_modules/nuxt/dist/app/components/error-404.vue?vue&type=style&index=0&scoped=b728498f&lang.css": () => import('./error-404-styles.BsF5Lbhq.mjs').then(interopDefault),
|
||||
"node_modules/nuxt/dist/app/components/error-500.vue?vue&type=style&index=0&scoped=70d84538&lang.css": () => import('./error-500-styles.Dccc6iq5.mjs').then(interopDefault),
|
||||
"components/Hero.vue": () => import('./Hero-styles.03iOjY05.mjs').then(interopDefault),
|
||||
"components/PublicNews.vue": () => import('./PublicNews-styles.nhqk16g5.mjs').then(interopDefault),
|
||||
"components/Hero.vue?vue&type=style&index=0&scoped=779d39d7&lang.css": () => import('./Hero-styles.03iOjY05.mjs').then(interopDefault),
|
||||
"components/PublicNews.vue?vue&type=style&index=0&scoped=f894f108&lang.css": () => import('./PublicNews-styles.nhqk16g5.mjs').then(interopDefault)
|
||||
"components/PublicNews.vue?vue&type=style&index=0&scoped=f894f108&lang.css": () => import('./PublicNews-styles.nhqk16g5.mjs').then(interopDefault),
|
||||
"node_modules/nuxt/dist/app/components/error-404.vue?vue&type=style&index=0&scoped=b728498f&lang.css": () => import('./error-404-styles.BsF5Lbhq.mjs').then(interopDefault),
|
||||
"node_modules/nuxt/dist/app/components/error-500.vue?vue&type=style&index=0&scoped=70d84538&lang.css": () => import('./error-500-styles.Dccc6iq5.mjs').then(interopDefault)
|
||||
};
|
||||
|
||||
export { styles as default };
|
||||
|
||||
123
.output/server/chunks/build/termine-TZyY9Wk0.mjs
Normal file
123
.output/server/chunks/build/termine-TZyY9Wk0.mjs
Normal file
@@ -0,0 +1,123 @@
|
||||
import { ref, mergeProps, unref, useSSRContext } from 'vue';
|
||||
import { ssrRenderAttrs, ssrRenderComponent, ssrRenderList, ssrInterpolate, ssrRenderClass, ssrRenderAttr, ssrIncludeBooleanAttr, ssrLooseContain, ssrLooseEqual } from 'vue/server-renderer';
|
||||
import { Plus, Loader2, Trash2, AlertCircle } from 'lucide-vue-next';
|
||||
import { u as useAuthStore } from './server.mjs';
|
||||
import { u as useHead } from './composables-CK-Mp9jS.mjs';
|
||||
import '../nitro/nitro.mjs';
|
||||
import 'node:http';
|
||||
import 'node:https';
|
||||
import 'node:events';
|
||||
import 'node:buffer';
|
||||
import 'node:fs';
|
||||
import 'node:path';
|
||||
import 'node:crypto';
|
||||
import 'node:url';
|
||||
import '../routes/renderer.mjs';
|
||||
import 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
import 'pinia';
|
||||
import 'vue-router';
|
||||
|
||||
const _sfc_main = {
|
||||
__name: "termine",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
useAuthStore();
|
||||
const isLoading = ref(true);
|
||||
const isSaving = ref(false);
|
||||
const termine = ref([]);
|
||||
const showModal = ref(false);
|
||||
const errorMessage = ref("");
|
||||
const formData = ref({
|
||||
datum: "",
|
||||
titel: "",
|
||||
beschreibung: "",
|
||||
kategorie: "Sonstiges"
|
||||
});
|
||||
const formatDate = (dateString) => {
|
||||
if (!dateString) return "";
|
||||
const date = new Date(dateString);
|
||||
return date.toLocaleDateString("de-DE", {
|
||||
year: "numeric",
|
||||
month: "2-digit",
|
||||
day: "2-digit"
|
||||
});
|
||||
};
|
||||
useHead({
|
||||
title: "Termine verwalten - Harheimer TC"
|
||||
});
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "min-h-full py-16 bg-gray-50" }, _attrs))}><div class="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8"><div class="flex justify-between items-center mb-6"><div><h1 class="text-4xl sm:text-5xl font-display font-bold text-gray-900 mb-2"> Termine verwalten </h1><div class="w-24 h-1 bg-primary-600 mb-4"></div></div><button class="flex items-center px-4 py-2 bg-primary-600 hover:bg-primary-700 text-white font-semibold rounded-lg transition-colors">`);
|
||||
_push(ssrRenderComponent(unref(Plus), {
|
||||
size: 20,
|
||||
class: "mr-2"
|
||||
}, null, _parent));
|
||||
_push(` Termin hinzufügen </button></div>`);
|
||||
if (isLoading.value) {
|
||||
_push(`<div class="flex items-center justify-center py-12">`);
|
||||
_push(ssrRenderComponent(unref(Loader2), {
|
||||
size: 40,
|
||||
class: "animate-spin text-primary-600"
|
||||
}, null, _parent));
|
||||
_push(`</div>`);
|
||||
} else {
|
||||
_push(`<div class="bg-white rounded-xl shadow-lg overflow-hidden"><div class="overflow-x-auto"><table class="min-w-full divide-y divide-gray-200"><thead class="bg-gray-50"><tr><th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Datum</th><th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Titel</th><th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Beschreibung</th><th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Kategorie</th><th class="px-4 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">Aktionen</th></tr></thead><tbody class="bg-white divide-y divide-gray-200"><!--[-->`);
|
||||
ssrRenderList(termine.value, (termin) => {
|
||||
_push(`<tr class="hover:bg-gray-50"><td class="px-4 py-3 whitespace-nowrap text-sm text-gray-900">${ssrInterpolate(formatDate(termin.datum))}</td><td class="px-4 py-3 text-sm font-medium text-gray-900">${ssrInterpolate(termin.titel)}</td><td class="px-4 py-3 text-sm text-gray-600">${ssrInterpolate(termin.beschreibung || "-")}</td><td class="px-4 py-3 whitespace-nowrap"><span class="${ssrRenderClass([{
|
||||
"bg-blue-100 text-blue-800": termin.kategorie === "Training",
|
||||
"bg-green-100 text-green-800": termin.kategorie === "Punktspiel",
|
||||
"bg-purple-100 text-purple-800": termin.kategorie === "Turnier",
|
||||
"bg-yellow-100 text-yellow-800": termin.kategorie === "Veranstaltung",
|
||||
"bg-gray-100 text-gray-800": termin.kategorie === "Sonstiges"
|
||||
}, "px-2 py-1 text-xs font-medium rounded-full"])}">${ssrInterpolate(termin.kategorie)}</span></td><td class="px-4 py-3 whitespace-nowrap text-right text-sm font-medium"><button class="text-red-600 hover:text-red-900" title="Löschen">`);
|
||||
_push(ssrRenderComponent(unref(Trash2), { size: 18 }, null, _parent));
|
||||
_push(`</button></td></tr>`);
|
||||
});
|
||||
_push(`<!--]--></tbody></table></div>`);
|
||||
if (termine.value.length === 0) {
|
||||
_push(`<div class="text-center py-12 text-gray-500"> Keine Termine vorhanden. </div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div>`);
|
||||
}
|
||||
if (showModal.value) {
|
||||
_push(`<div class="fixed inset-0 z-50 bg-black/50 flex items-center justify-center p-4"><div class="bg-white rounded-xl shadow-2xl max-w-2xl w-full p-8"><h2 class="text-2xl font-display font-bold text-gray-900 mb-6"> Termin hinzufügen </h2><form class="space-y-4"><div class="grid grid-cols-2 gap-4"><div><label class="block text-sm font-medium text-gray-700 mb-2">Datum *</label><input${ssrRenderAttr("value", formData.value.datum)} type="date" required class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500"${ssrIncludeBooleanAttr(isSaving.value) ? " disabled" : ""}></div><div><label class="block text-sm font-medium text-gray-700 mb-2">Kategorie *</label><select required class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500"${ssrIncludeBooleanAttr(isSaving.value) ? " disabled" : ""}><option value="Training"${ssrIncludeBooleanAttr(Array.isArray(formData.value.kategorie) ? ssrLooseContain(formData.value.kategorie, "Training") : ssrLooseEqual(formData.value.kategorie, "Training")) ? " selected" : ""}>Training</option><option value="Punktspiel"${ssrIncludeBooleanAttr(Array.isArray(formData.value.kategorie) ? ssrLooseContain(formData.value.kategorie, "Punktspiel") : ssrLooseEqual(formData.value.kategorie, "Punktspiel")) ? " selected" : ""}>Punktspiel</option><option value="Turnier"${ssrIncludeBooleanAttr(Array.isArray(formData.value.kategorie) ? ssrLooseContain(formData.value.kategorie, "Turnier") : ssrLooseEqual(formData.value.kategorie, "Turnier")) ? " selected" : ""}>Turnier</option><option value="Veranstaltung"${ssrIncludeBooleanAttr(Array.isArray(formData.value.kategorie) ? ssrLooseContain(formData.value.kategorie, "Veranstaltung") : ssrLooseEqual(formData.value.kategorie, "Veranstaltung")) ? " selected" : ""}>Veranstaltung</option><option value="Sonstiges"${ssrIncludeBooleanAttr(Array.isArray(formData.value.kategorie) ? ssrLooseContain(formData.value.kategorie, "Sonstiges") : ssrLooseEqual(formData.value.kategorie, "Sonstiges")) ? " selected" : ""}>Sonstiges</option></select></div></div><div><label class="block text-sm font-medium text-gray-700 mb-2">Titel *</label><input${ssrRenderAttr("value", formData.value.titel)} type="text" required class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500"${ssrIncludeBooleanAttr(isSaving.value) ? " disabled" : ""}></div><div><label class="block text-sm font-medium text-gray-700 mb-2">Beschreibung</label><textarea rows="3" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500"${ssrIncludeBooleanAttr(isSaving.value) ? " disabled" : ""}>${ssrInterpolate(formData.value.beschreibung)}</textarea></div>`);
|
||||
if (errorMessage.value) {
|
||||
_push(`<div class="flex items-center p-3 rounded-md bg-red-50 text-red-700 text-sm">`);
|
||||
_push(ssrRenderComponent(unref(AlertCircle), {
|
||||
size: 20,
|
||||
class: "mr-2"
|
||||
}, null, _parent));
|
||||
_push(` ${ssrInterpolate(errorMessage.value)}</div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<div class="flex justify-end space-x-4 pt-4"><button type="button" class="px-6 py-2 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors"${ssrIncludeBooleanAttr(isSaving.value) ? " disabled" : ""}> Abbrechen </button><button type="submit" class="px-6 py-2 bg-primary-600 hover:bg-primary-700 text-white font-semibold rounded-lg transition-colors flex items-center"${ssrIncludeBooleanAttr(isSaving.value) ? " disabled" : ""}>`);
|
||||
if (isSaving.value) {
|
||||
_push(ssrRenderComponent(unref(Loader2), {
|
||||
size: 20,
|
||||
class: "animate-spin mr-2"
|
||||
}, null, _parent));
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<span>${ssrInterpolate(isSaving.value ? "Speichert..." : "Speichern")}</span></button></div></form></div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div></div>`);
|
||||
};
|
||||
}
|
||||
};
|
||||
const _sfc_setup = _sfc_main.setup;
|
||||
_sfc_main.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/cms/termine.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
//# sourceMappingURL=termine-TZyY9Wk0.mjs.map
|
||||
1
.output/server/chunks/build/termine-TZyY9Wk0.mjs.map
Normal file
1
.output/server/chunks/build/termine-TZyY9Wk0.mjs.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"termine-TZyY9Wk0.mjs","sources":["../../../../pages/cms/termine.vue"],"sourcesContent":null,"names":["_ssrRenderAttrs","_mergeProps","_ssrRenderList","_ssrInterpolate","_ssrRenderComponent","_unref","_ssrRenderAttr","_ssrIncludeBooleanAttr","_ssrLooseContain","_ssrLooseEqual"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAiLkB,IAAA,YAAA,EAAY;AAE9B,IAAA,MAAM,SAAA,GAAY,IAAI,IAAI,CAAA;AAC1B,IAAA,MAAM,QAAA,GAAW,IAAI,KAAK,CAAA;AAC1B,IAAA,MAAM,OAAA,GAAU,GAAA,CAAI,EAAE,CAAA;AACtB,IAAA,MAAM,SAAA,GAAY,IAAI,KAAK,CAAA;AA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