Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 8m15s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 8m16s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 8m10s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 8m15s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 10m23s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 10m41s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 8m59s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 9m1s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 49s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m11s
Das Portal legt den Rahmen selbst um jede Plugin-Seite; AppLayout aus @inhaus/ui setzt dort nur noch den Titel. Detailseiten nutzen PageHeader. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 line
No EOL
2.2 KiB
JavaScript
1 line
No EOL
2.2 KiB
JavaScript
import{P as e}from"./ui-DTELwomD.js";import{C as t,Et as n,O as r,S as i,T as a,Y as o,_t as s,i as c,k as l,kt as u,ot as d,q as f,v as p,w as m,wt as h,x as g}from"./framework-CFqPLBV8.js";import{t as _}from"./plus-DBUMooLa.js";import{l as v}from"./app-DIZuUM-n.js";import{t as y}from"./EventDateBlock-BVEfGuRA.js";var b={key:0,class:`-mx-5 divide-y border-t`},x={class:`min-w-0 flex-1`},S={class:`truncate text-xs text-muted-foreground`},C={key:0,class:`shrink-0 rounded bg-muted px-1.5 py-0.5 text-[11px] font-medium text-muted-foreground`},w={key:1,class:`text-sm text-muted-foreground`},T={__name:`EditorialEvents`,props:{events:{type:Array,required:!0}},setup(T){let E=T,D=s(!1),O=g(()=>E.events.filter(e=>D.value||!e.is_past)),k=g(()=>E.events.filter(e=>e.is_past).length),A=new Intl.DateTimeFormat(`de-DE`,{weekday:`short`,day:`2-digit`,month:`2-digit`,hour:`2-digit`,minute:`2-digit`}),j=new Intl.DateTimeFormat(`de-DE`,{weekday:`short`,day:`2-digit`,month:`2-digit`,year:`numeric`});return(s,g)=>(f(),t(v,{title:`Termine`},{actions:d(()=>[l(h(e),{size:`sm`,variant:`outline`,"as-child":``},{default:d(()=>[l(h(c),{href:`/redaktion/termine/neu`},{default:d(()=>[l(h(_)),g[1]||=r(` Neuer Termin`,-1)]),_:1})]),_:1})]),default:d(()=>[O.value.length?(f(),a(`ul`,b,[(f(!0),a(p,null,o(O.value,e=>(f(),a(`li`,{key:e.id,class:n([`flex items-center gap-3 px-5 py-2.5`,{"opacity-60":e.is_past}])},[l(y,{date:e.starts_at,class:`w-11 shrink-0 py-1 text-xs`},null,8,[`date`]),i(`div`,x,[l(h(c),{href:e.edit_url,class:`block truncate text-sm font-medium hover:underline`},{default:d(()=>[r(u(e.title),1)]),_:2},1032,[`href`]),i(`p`,S,[r(u(e.all_day?`${h(j).format(new Date(e.starts_at))} · ganztägig`:`${h(A).format(new Date(e.starts_at))} Uhr`),1),e.location?(f(),a(p,{key:0},[r(` · `+u(e.location),1)],64)):m(``,!0)])]),e.is_published?m(``,!0):(f(),a(`span`,C,`Entwurf`))],2))),128))])):(f(),a(`p`,w,`Keine anstehenden Termine.`)),k.value?(f(),a(`button`,{key:2,type:`button`,class:`mt-3 text-[13px] text-muted-foreground hover:text-foreground hover:underline`,onClick:g[0]||=e=>D.value=!D.value},u(D.value?`Vergangene ausblenden`:`Vergangene der letzten 30 Tage zeigen (${k.value})`),1)):m(``,!0)]),_:1}))}};export{T as default}; |