Loheide-eu-mitarbeiterplatt.../public/build/assets/Index-DeGPLaWM.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
5 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{Cn as e,D as t,E as n,I as r,J as i,Jn as a,Tn as o,Wt as s,X as c,Xt as l,Y as u,a as d,ir as f,n as p,nt as m,q as h,rt as g,ur as _,vn as v}from"./app-DJnl8SxL.js";import{M as y,f as b}from"./BrandLogo-B9oA1DG4.js";import{n as x,s as S,t as C}from"./AppLayout-1ldLchM-.js";import{t as w}from"./chevron-left-D2uxffyU.js";import{t as T}from"./chevron-right-CAXGr-zo.js";import{n as E,t as D}from"./phone-CUH1yCi5.js";import{t as O}from"./button-9_XTGiWz.js";var k=y({name:`search-x`,size:24,node:[[`path`,{d:`m13.5 8.5-5 5`,key:`1cs55j`}],[`path`,{d:`m8.5 8.5 5 5`,key:`a8mexj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]}),A={class:`mb-6 flex flex-wrap items-end justify-between gap-4`},j={class:`mt-1 text-sm text-muted-foreground`},M={class:`flex w-full flex-col gap-3 sm:w-auto sm:flex-row`},N={class:`relative block sm:w-80`},P=[`value`],F={key:0,class:`grid gap-4 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`},I={class:`min-w-0`},L={class:`truncate text-[15px] font-semibold hover:underline`},R={class:`truncate text-[13px] text-muted-foreground`},z={class:`px-4 pb-3 text-[13px] text-muted-foreground`},B={key:0,class:`font-medium text-brand-text`},V={key:1},H={key:2},U={class:`mt-auto flex border-t text-[13px]`},W=[`href`],G=[`href`],K={key:1,class:`grid place-items-center rounded-lg border border-dashed bg-card px-6 py-16 text-center`},q={key:2,class:`mt-6 flex items-center justify-between`,"aria-label":`Seiten`},J={class:`text-sm text-muted-foreground`},Y={class:`flex gap-2`},X={__name:`Index`,props:{people:{type:Object,required:!0},filters:{type:Object,required:!0},departments:{type:Array,required:!0}},setup(y){let X=y,Z=a(X.filters.q??``),Q=a(X.filters.abteilung??``);function $(){let e={};Z.value&&(e.q=Z.value),Q.value&&(e.abteilung=Q.value),d.get(`/personen`,e,{preserveState:!0,preserveScroll:!0,replace:!0})}return v(Z,b($,300)),v(Q,$),(a,v)=>(s(),i(C,{title:`Personen`},{default:e(()=>[h(`div`,A,[h(`div`,null,[v[4]||=h(`h1`,{class:`text-2xl font-semibold tracking-tight`},`Personen`,-1),h(`p`,j,_(y.people.meta.total.toLocaleString(`de-DE`))+` `+_(y.people.meta.total===1?`Person`:`Personen`)+_(y.filters.q||y.filters.abteilung?` gefunden`:` im Verzeichnis`),1)]),h(`div`,M,[h(`label`,N,[v[5]||=h(`span`,{class:`sr-only`},`Suchen`,-1),g(f(S),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),o(h(`input`,{"onUpdate:modelValue":v[0]||=e=>Z.value=e,type:`search`,placeholder:`Name, Funktion, Standort …`,class:`h-10 w-full rounded-md border border-input bg-card pr-3 pl-9 text-sm placeholder:text-muted-foreground focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`},null,512),[[t,Z.value]])]),o(h(`select`,{"onUpdate:modelValue":v[1]||=e=>Q.value=e,class:`h-10 rounded-md border border-input bg-card px-3 text-sm focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none sm:w-56`,"aria-label":`Abteilung`},[v[6]||=h(`option`,{value:``},`Alle Abteilungen`,-1),(s(!0),c(r,null,l(y.departments,e=>(s(),c(`option`,{key:e,value:e},_(e),9,P))),128))],512),[[n,Q.value]])])]),y.people.data.length?(s(),c(`ul`,F,[(s(!0),c(r,null,l(y.people.data,t=>(s(),c(`li`,{key:t.id,class:`flex flex-col rounded-lg border bg-card`},[g(f(p),{href:`/personen/${t.id}`,class:`flex items-center gap-3 p-4 pb-3`},{default:e(()=>[g(x,{person:t,class:`size-12`},null,8,[`person`]),h(`div`,I,[h(`div`,L,_(t.name),1),h(`div`,R,_(t.job_title||`–`),1)])]),_:2},1032,[`href`]),h(`div`,z,[t.department?(s(),c(`span`,B,_(t.department),1)):u(``,!0),t.department&&t.location?(s(),c(`span`,V,` · `)):u(``,!0),t.location?(s(),c(`span`,H,_(t.location),1)):u(``,!0)]),h(`div`,U,[h(`a`,{href:`mailto:${t.email}`,class:`flex flex-1 items-center justify-center gap-1.5 py-2.5 text-muted-foreground hover:bg-accent hover:text-foreground`},[g(f(E),{class:`size-4`}),v[7]||=m(` E-Mail `,-1)],8,W),t.phone?(s(),c(`a`,{key:0,href:`tel:${t.phone}`,class:`flex flex-1 items-center justify-center gap-1.5 border-l py-2.5 text-muted-foreground hover:bg-accent hover:text-foreground`},[g(f(D),{class:`size-4`}),v[8]||=m(` Anrufen `,-1)],8,G)):u(``,!0)])]))),128))])):(s(),c(`div`,K,[g(f(k),{class:`size-8 text-muted-foreground`}),v[9]||=h(`p`,{class:`mt-3 font-medium`},`Niemand gefunden`,-1),v[10]||=h(`p`,{class:`mt-1 text-sm text-muted-foreground`},`Versuchen Sie einen anderen Suchbegriff oder eine andere Abteilung.`,-1)])),y.people.meta.last_page>1?(s(),c(`nav`,q,[h(`p`,J,`Seite `+_(y.people.meta.current_page)+` von `+_(y.people.meta.last_page),1),h(`div`,Y,[g(f(O),{variant:`outline`,size:`sm`,disabled:!y.people.links.prev,onClick:v[2]||=e=>f(d).get(y.people.links.prev,{},{preserveScroll:!1})},{default:e(()=>[g(f(w)),v[11]||=m(` Zurück `,-1)]),_:1},8,[`disabled`]),g(f(O),{variant:`outline`,size:`sm`,disabled:!y.people.links.next,onClick:v[3]||=e=>f(d).get(y.people.links.next,{},{preserveScroll:!1})},{default:e(()=>[v[12]||=m(` Weiter `,-1),g(f(T))]),_:1},8,[`disabled`])])])):u(``,!0)]),_:1}))}};export{X as default};