- 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>
1 line
No EOL
1.2 KiB
JavaScript
1 line
No EOL
1.2 KiB
JavaScript
import{Wt as e,X as t,Y as n,ir as r,rt as i,ur as a}from"./app-DJnl8SxL.js";import{M as o}from"./BrandLogo-B9oA1DG4.js";var s=o({name:`newspaper`,size:24,node:[[`path`,{d:`M15 18h-5`,key:`95g1m2`}],[`path`,{d:`M18 14h-8`,key:`sponae`}],[`path`,{d:`M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2`,key:`39pd36`}],[`rect`,{width:`8`,height:`4`,x:`10`,y:`6`,rx:`1`,key:`aywv1n`}]]}),c={key:0,class:`text-[11px] font-semibold tracking-wide text-brand-text uppercase`},l={__name:`CategoryLabel`,props:{category:{type:Object,default:null}},setup(r){return(i,o)=>r.category?(e(),t(`span`,c,a(r.category.name),1)):n(``,!0)}},u={class:`relative aspect-video overflow-hidden bg-muted`},d=[`src`,`alt`],f={key:1,class:`grid size-full place-items-center bg-brand-soft`},p={__name:`NewsImage`,props:{src:{type:String,default:null},alt:{type:String,default:``}},setup(n){return(a,o)=>(e(),t(`div`,u,[n.src?(e(),t(`img`,{key:0,src:n.src,alt:n.alt,loading:`lazy`,class:`size-full object-cover`},null,8,d)):(e(),t(`div`,f,[i(r(s),{class:`size-1/4 max-h-10 max-w-10 text-brand-text opacity-60`,"stroke-width":1.5})]))]))}};export{l as n,s as r,p as t}; |