Loheide-eu-mitarbeiterplatt.../public/build/assets/Show-C7h-pibb.js
Friederich Loheide 28ef1e4a20 Plugin-System; Neuigkeiten und Termine als mitgelieferte Plugins
- Plugins nach WordPress-Prinzip: plugin.json-Manifest mit Versions- und
  Abhängigkeitsprüfung, eigenes PSR-4-Autoloading, register()/boot(),
  activate()/deactivate()/uninstall(), Migrationen, Routen und Views je Plugin
- plugins-core/ (mitgeliefert, aktiv bis zur Deaktivierung) und plugins/
  (Kunden-Plugins, geschützt vor Updates, inaktiv bis zur Aktivierung)
- Zustand in storage/app/plugins.json – Laden ohne Datenbankabfrage
- Wiederherstellungsmodus: Ausnahmen und Fatal Errors beim Laden
  deaktivieren das Plugin, das Portal bleibt erreichbar
- Hooks (Actions/Filter mit Prioritäten) und Registries für Navigation,
  Startseiten-Kacheln, Rechte und Admin-Seiten (Filament-Discovery)
- Admin-Seite „Plugins“: aktivieren, deaktivieren, per ZIP installieren
  (ZIP-Slip-Schutz), löschen mit oder ohne Daten; abschaltbar per
  INHAUS_DISALLOW_FILE_MODS
- Startseite komplett aus Kacheln; Plugin-Seiten als „slug::Seite“
- Version 0.3.0

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 07:06:16 +00:00

1 line
No EOL
2.5 KiB
JavaScript

import{Cn as e,I as t,J as n,Wt as r,X as i,Xt as a,Y as o,ir as s,n as c,nt as l,q as u,rt as d,ur as f}from"./app-DJnl8SxL.js";import{t as p}from"./arrow-left-CAaEosyK.js";import{n as m,t as h}from"./AppLayout-1ldLchM-.js";import{t as g}from"./clock-7Lzug1Ti.js";import{n as _}from"./NewsImage-DyRK4fmY.js";import{n as v}from"./format-Dlm0nTI_.js";import{t as y}from"./NewsCard-B-l5uZ4h.js";var b={class:`mx-auto max-w-3xl`},x={class:`mt-2 text-3xl leading-tight font-semibold tracking-tight sm:text-[34px]`},S={key:0,class:`mt-4 text-lg leading-relaxed text-muted-foreground`},C={class:`mt-6 flex flex-wrap items-center gap-x-6 gap-y-3 border-y py-4 text-sm`},w={class:`block font-medium`},T={key:0,class:`block text-xs text-muted-foreground`},E={class:`text-muted-foreground`},D={class:`inline-flex items-center gap-1.5 text-muted-foreground`},O=[`src`,`alt`],k=[`innerHTML`],A={key:0,class:`mx-auto mt-16 max-w-5xl`},j={class:`grid gap-5 sm:grid-cols-2 lg:grid-cols-3`},M={__name:`Show`,props:{post:{type:Object,required:!0},related:{type:Object,required:!0}},setup(M){return(N,P)=>(r(),n(h,{title:M.post.title},{default:e(()=>[u(`article`,b,[d(s(c),{href:`/neuigkeiten`,class:`mb-6 inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:e(()=>[d(s(p),{class:`size-4`}),P[0]||=l(` Alle Neuigkeiten `,-1)]),_:1}),u(`header`,null,[d(_,{category:M.post.category},null,8,[`category`]),u(`h1`,x,f(M.post.title),1),M.post.teaser?(r(),i(`p`,S,f(M.post.teaser),1)):o(``,!0),u(`div`,C,[M.post.author?(r(),n(s(c),{key:0,href:`/personen/${M.post.author.id}`,class:`flex items-center gap-3 hover:underline`},{default:e(()=>[d(m,{person:M.post.author,class:`size-9`},null,8,[`person`]),u(`span`,null,[u(`span`,w,f(M.post.author.name),1),M.post.author.job_title?(r(),i(`span`,T,f(M.post.author.job_title),1)):o(``,!0)])]),_:1},8,[`href`])):o(``,!0),u(`span`,E,f(s(v)(M.post.published_at)),1),u(`span`,D,[d(s(g),{class:`size-4`}),l(` `+f(M.post.reading_minutes)+` Min. Lesezeit`,1)])])]),M.post.cover_url?(r(),i(`img`,{key:0,src:M.post.cover_url,alt:M.post.title,class:`mt-8 aspect-video w-full rounded-lg object-cover`},null,8,O)):o(``,!0),u(`div`,{class:`prose prose-neutral mt-8 max-w-none prose-headings:tracking-tight prose-img:rounded-lg`,innerHTML:M.post.body_html},null,8,k)]),M.related.data.length?(r(),i(`section`,A,[P[1]||=u(`h2`,{class:`mb-4 text-lg font-semibold`},`Weitere Beiträge`,-1),u(`div`,j,[(r(!0),i(t,null,a(M.related.data,e=>(r(),n(y,{key:e.id,post:e},null,8,[`post`]))),128))])])):o(``,!0)]),_:1},8,[`title`]))}};export{M as default};