1import{j as e,M as a,a1 as c,a2 as o,a5 as m}from"./vendor-DSaSvFIf.js";import{C as n,a as t,b as d,c as i}from"./card-CD-6ZpEj.js";import{b as x}from"./index-Cb_2MwU8.js";function p(){const{data:r}=x({limit:100});return e.jsxs("div",{className:"space-y-8 animate-in fade-in duration-500",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold font-serif text-primary",children:"Overblik"}),e.jsx("p",{className:"text-muted-foreground mt-2",children:"Velkommen til Nuna Law Admin."})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[e.jsxs(n,{className:"border-border shadow-sm",children:[e.jsx(t,{children:e.jsx(d,{className:"font-serif",children:"Seneste nyheder"})}),e.jsx(i,{children:e.jsxs("div",{className:"space-y-4",children:[r?.posts.slice(0,5).map(s=>{const l=s.da?.title||s.en?.title||s.kl?.title||"Uden titel";return e.jsxs("div",{className:"flex justify-between items-center p-3 hover:bg-muted rounded-md transition-colors",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-foreground",children:l}),e.jsx("p",{className:"text-xs text-muted-foreground",children:new Date(s.createdAt).toLocaleDateString("da-DK")})]}),e.jsx("div",{className:"text-xs px-2 py-1 bg-secondary rounded text-secondary-foreground font-medium uppercase",children:s.published?"Publiceret":"Kladde"})]},s.id)}),(!r||r.posts.length===0)&&e.jsx("p",{className:"text-muted-foreground",children:"Ingen nyheder endnu."})]})})]}),e.jsxs(n,{className:"border-border shadow-sm",children:[e.jsx(t,{children:e.jsx(d,{className:"font-serif",children:"Genveje"})}),e.jsxs(i,{className:"grid grid-cols-2 gap-4",children:[e.jsxs(a,{href:"/admin/news",className:"flex flex-col items-center justify-center p-6 bg-secondary/50 rounded-lg hover:bg-secondary transition-colors text-center gap-3",children:[e.jsx(c,{className:"h-8 w-8 text-primary"}),e.jsx("span",{className:"font-medium",children:"Opret nyhed"})]}),e.jsxs(a,{href:"/admin/employees",className:"flex flex-col items-center justify-center p-6 bg-secondary/50 rounded-lg hover:bg-secondary transition-colors text-center gap-3",children:[e.jsx(o,{className:"h-8 w-8 text-primary"}),e.jsx("span",{className:"font-medium",children:"Tilføj medarbejder"})]}),e.jsxs(a,{href:"/admin/pages",className:"col-span-2 flex items-center justify-center p-6 bg-secondary/50 rounded-lg hover:bg-secondary transition-colors text-center gap-3",children:[e.jsx(m,{className:"h-6 w-6 text-primary"}),e.jsx("span",{className:"font-medium",children:"Rediger sidetekster"})]})]})]})]})]})}export{p as AdminDashboard};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.