Add CMS dropdown in Intern submenu with termine editor

This commit is contained in:
Torsten Schulz (local)
2025-10-21 16:00:53 +02:00
parent 1cbfbaf754
commit 4af0b2a448
36 changed files with 948 additions and 325 deletions

View File

@@ -0,0 +1,6 @@
import{e as a}from"#entry";/**
* @license lucide-vue-next v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const o=a("SquarePenIcon",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]]);export{o as S};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +0,0 @@
import{e as l,r as a,h as d,c as m,a as t,t as x,b as s,u as n,w as g,_ as p,o as u}from"#entry";import{u as f}from"./C_U-NUAd.js";import{C as y}from"./YJHbYJtA.js";import{N as b}from"./DAACT36i.js";import{F as c}from"./BteKZQ9T.js";import{U as h}from"./DkeYb0_S.js";/**
* @license lucide-vue-next v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const w=l("ImageIcon",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),v={class:"min-h-full py-16 bg-gray-50"},_={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},k={class:"bg-white rounded-xl shadow-lg p-8 mb-8"},z={class:"text-2xl font-display font-bold text-gray-900 mb-4"},C={class:"grid md:grid-cols-2 lg:grid-cols-3 gap-6"},I={class:"bg-white p-6 rounded-xl shadow-lg border border-gray-100"},N={class:"flex items-center mb-4"},S={class:"w-12 h-12 bg-primary-100 rounded-lg flex items-center justify-center mr-4"},B={class:"bg-white p-6 rounded-xl shadow-lg border border-gray-100"},j={class:"flex items-center mb-4"},L={class:"w-12 h-12 bg-primary-100 rounded-lg flex items-center justify-center mr-4"},M={class:"bg-white p-6 rounded-xl shadow-lg border border-gray-100"},T={class:"flex items-center mb-4"},F={class:"w-12 h-12 bg-primary-100 rounded-lg flex items-center justify-center mr-4"},H={class:"flex items-center mb-4"},R={class:"w-12 h-12 bg-primary-100 rounded-lg flex items-center justify-center mr-4"},U={class:"bg-white p-6 rounded-xl shadow-lg border border-gray-100"},V={class:"flex items-center mb-4"},W={class:"w-12 h-12 bg-primary-100 rounded-lg flex items-center justify-center mr-4"},K={__name:"index",setup(D){const o=a(null);return d(async()=>{try{const r=await $fetch("/api/auth/status");r.isLoggedIn&&(o.value=r.user)}catch(r){console.error("Fehler beim Laden der Benutzerdaten:",r)}}),f({title:"CMS - Harheimer TC"}),(r,e)=>{const i=p;return u(),m("div",v,[t("div",_,[e[16]||(e[16]=t("h1",{class:"text-4xl sm:text-5xl font-display font-bold text-gray-900 mb-6"}," Content Management System ",-1)),e[17]||(e[17]=t("div",{class:"w-24 h-1 bg-primary-600 mb-8"},null,-1)),t("div",k,[t("h2",z," Willkommen im CMS, "+x(o.value?.name)+"! ",1),e[0]||(e[0]=t("p",{class:"text-gray-600"}," Hier können Sie Inhalte der Website verwalten. ",-1))]),t("div",C,[t("div",I,[t("div",N,[t("div",S,[s(n(y),{size:24,class:"text-primary-600"})]),e[1]||(e[1]=t("h3",{class:"text-lg font-semibold text-gray-900"},"Termine verwalten",-1))]),e[2]||(e[2]=t("p",{class:"text-gray-600 text-sm mb-4"}," Termine hinzufügen, bearbeiten und löschen ",-1)),e[3]||(e[3]=t("button",{class:"text-sm text-primary-600 hover:text-primary-700 font-medium"}," Öffnen → ",-1))]),t("div",B,[t("div",j,[t("div",L,[s(n(b),{size:24,class:"text-primary-600"})]),e[4]||(e[4]=t("h3",{class:"text-lg font-semibold text-gray-900"},"Interne News",-1))]),e[5]||(e[5]=t("p",{class:"text-gray-600 text-sm mb-4"}," News für Mitglieder erstellen und verwalten ",-1)),e[6]||(e[6]=t("button",{class:"text-sm text-primary-600 hover:text-primary-700 font-medium"}," Öffnen → ",-1))]),t("div",M,[t("div",T,[t("div",F,[s(n(c),{size:24,class:"text-primary-600"})]),e[7]||(e[7]=t("h3",{class:"text-lg font-semibold text-gray-900"},"Spielpläne",-1))]),e[8]||(e[8]=t("p",{class:"text-gray-600 text-sm mb-4"}," Spielpläne hochladen und verwalten ",-1)),e[9]||(e[9]=t("button",{class:"text-sm text-primary-600 hover:text-primary-700 font-medium"}," Öffnen → ",-1))]),s(i,{to:"/cms/benutzer",class:"bg-white p-6 rounded-xl shadow-lg border border-gray-100 hover:shadow-xl transition-shadow block"},{default:g(()=>[t("div",H,[t("div",R,[s(n(h),{size:24,class:"text-primary-600"})]),e[10]||(e[10]=t("h3",{class:"text-lg font-semibold text-gray-900"},"Benutzerverwaltung",-1))]),e[11]||(e[11]=t("p",{class:"text-gray-600 text-sm mb-4"}," Registrierungen freischalten und Rollen verwalten ",-1)),e[12]||(e[12]=t("span",{class:"text-sm text-primary-600 hover:text-primary-700 font-medium"}," Öffnen → ",-1))]),_:1}),t("div",U,[t("div",V,[t("div",W,[s(n(w),{size:24,class:"text-primary-600"})]),e[13]||(e[13]=t("h3",{class:"text-lg font-semibold text-gray-900"},"Galerie",-1))]),e[14]||(e[14]=t("p",{class:"text-gray-600 text-sm mb-4"}," Bilder hochladen und verwalten ",-1)),e[15]||(e[15]=t("button",{class:"text-sm text-primary-600 hover:text-primary-700 font-medium"}," Öffnen → ",-1))])])])])}}};export{K as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,6 @@
import{e as a,k as d,c as g,a as t,b as s,p as m,i as u,w as l,u as r,_ as x,o as i}from"#entry";import{u as p}from"./C_U-NUAd.js";import{N as c}from"./DAACT36i.js";import{C as h}from"./YJHbYJtA.js";import{U as b}from"./DkeYb0_S.js";/**
* @license lucide-vue-next v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const y=a("UserCogIcon",[["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m21.7 16.4-.9-.3",key:"12j9ji"}],["path",{d:"m15.2 13.9-.9-.3",key:"1fdjdi"}],["path",{d:"m16.6 18.7.3-.9",key:"heedtr"}],["path",{d:"m19.1 12.2.3-.9",key:"1af3ki"}],["path",{d:"m19.6 18.7-.4-1",key:"1x9vze"}],["path",{d:"m16.8 12.3-.4-1",key:"vqeiwj"}],["path",{d:"m14.3 16.6 1-.4",key:"1qlj63"}],["path",{d:"m20.7 13.8 1-.4",key:"1v5t8k"}]]),f={class:"min-h-full py-16 bg-gray-50"},w={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},v={class:"grid md:grid-cols-2 lg:grid-cols-3 gap-6"},_={class:"flex items-center mb-4"},k={class:"w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center group-hover:bg-blue-600 transition-colors"},j={class:"flex items-center mb-4"},C={class:"w-12 h-12 bg-green-100 rounded-lg flex items-center justify-center group-hover:bg-green-600 transition-colors"},z={class:"flex items-center mb-4"},N={class:"w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center group-hover:bg-purple-600 transition-colors"},B={class:"flex items-center mb-4"},M={class:"w-12 h-12 bg-yellow-100 rounded-lg flex items-center justify-center group-hover:bg-yellow-600 transition-colors"},T={__name:"index",setup(S){const n=d();return p({title:"CMS - Harheimer TC"}),(U,e)=>{const o=x;return i(),g("div",f,[t("div",w,[e[8]||(e[8]=t("h1",{class:"text-4xl sm:text-5xl font-display font-bold text-gray-900 mb-6"}," Content Management System ",-1)),e[9]||(e[9]=t("div",{class:"w-24 h-1 bg-primary-600 mb-8"},null,-1)),t("div",v,[s(o,{to:"/mitgliederbereich/news",class:"bg-white p-6 rounded-xl shadow-lg border border-gray-100 hover:shadow-xl transition-all group"},{default:l(()=>[t("div",_,[t("div",k,[s(r(c),{size:24,class:"text-blue-600 group-hover:text-white"})]),e[0]||(e[0]=t("h2",{class:"ml-4 text-xl font-semibold text-gray-900"},"Interne News",-1))]),e[1]||(e[1]=t("p",{class:"text-gray-600"}," News für Mitglieder erstellen und verwalten ",-1))]),_:1}),s(o,{to:"/cms/termine",class:"bg-white p-6 rounded-xl shadow-lg border border-gray-100 hover:shadow-xl transition-all group"},{default:l(()=>[t("div",j,[t("div",C,[s(r(h),{size:24,class:"text-green-600 group-hover:text-white"})]),e[2]||(e[2]=t("h2",{class:"ml-4 text-xl font-semibold text-gray-900"},"Termine",-1))]),e[3]||(e[3]=t("p",{class:"text-gray-600"}," Vereinstermine erstellen und verwalten ",-1))]),_:1}),s(o,{to:"/mitgliederbereich/mitglieder",class:"bg-white p-6 rounded-xl shadow-lg border border-gray-100 hover:shadow-xl transition-all group"},{default:l(()=>[t("div",z,[t("div",N,[s(r(b),{size:24,class:"text-purple-600 group-hover:text-white"})]),e[4]||(e[4]=t("h2",{class:"ml-4 text-xl font-semibold text-gray-900"},"Mitglieder",-1))]),e[5]||(e[5]=t("p",{class:"text-gray-600"}," Mitgliederliste bearbeiten ",-1))]),_:1}),r(n).role==="admin"?(i(),m(o,{key:0,to:"/cms/benutzer",class:"bg-white p-6 rounded-xl shadow-lg border border-gray-100 hover:shadow-xl transition-all group"},{default:l(()=>[t("div",B,[t("div",M,[s(r(y),{size:24,class:"text-yellow-600 group-hover:text-white"})]),e[6]||(e[6]=t("h2",{class:"ml-4 text-xl font-semibold text-gray-900"},"Benutzerverwaltung",-1))]),e[7]||(e[7]=t("p",{class:"text-gray-600"}," Benutzer freischalten und verwalten ",-1))]),_:1})):u("",!0)])])])}}};export{T as default};

File diff suppressed because one or more lines are too long

View File

@@ -3,9 +3,4 @@ import{e}from"#entry";/**
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const t=e("SquarePenIcon",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]]);/**
* @license lucide-vue-next v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const c=e("Trash2Icon",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);export{t as S,c as T};
*/const c=e("Trash2Icon",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);export{c as T};

View File

@@ -0,0 +1,6 @@
import{e}from"#entry";/**
* @license lucide-vue-next v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const a=e("PlusIcon",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);export{a as P};

View File

@@ -1 +1 @@
{"id":"3a0403e7-f742-4a46-8731-aef781f88d6b","timestamp":1761054854878}
{"id":"e3471523-9d80-4085-b77f-94b960db296e","timestamp":1761055077384}

View File

@@ -1 +0,0 @@
{"id":"3a0403e7-f742-4a46-8731-aef781f88d6b","timestamp":1761054854878,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

View File

@@ -0,0 +1 @@
{"id":"e3471523-9d80-4085-b77f-94b960db296e","timestamp":1761055077384,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

File diff suppressed because one or more lines are too long