Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Failing after 1m3s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 1m7s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Failing after 1m16s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Failing after 1m20s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 1m29s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 1m33s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 1m28s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 1m33s
CI / Build-Artefakte aktuell (pull_request) Failing after 52s
- Nüchterne, professionelle Optik: neutrale Flächen, Markenfarbe nur als Akzent, Inter-Schrift (lokal) - Zweizeiliger Header mit Suche, Hauptnavigation und Avatar-Menü - Startseite mit Begrüßungskarte, Schnellzugriffen und „Neu im Team“ - Personenverzeichnis mit Suche, Abteilungsfilter und Seitenaufteilung - Markenfarbe exakt übernommen, Abstufungen serverseitig in OKLCH (ColorPalette) – gemeinsam für Portal und Admin, keine Farbberechnung im Browser - Schnellzugriffe im Admin pflegbar - Filament-Avatare lokal statt über ui-avatars.com (DSGVO) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 line
No EOL
11 KiB
JavaScript
1 line
No EOL
11 KiB
JavaScript
import{$t as e,F as t,G as n,J as r,K as i,Sn as a,Ut as o,Y as s,Yt as c,i as l,lr as u,n as d,nt as f,q as p,rr as m,tt as h}from"./app-B8oig5Tj.js";import{E as g}from"./BrandLogo-U6lK0jUc.js";import{n as _,t as v}from"./map-pin-CvpNerqq.js";import{a as y,i as ee,o as b,r as x,t as te}from"./AppLayout-w1APcrJk.js";import{n as S,t as C}from"./phone-CzGeM1mJ.js";import{t as w}from"./Panel-C_rZ9c8S.js";var ne=g({name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]}),T=g({name:`book-open`,size:24,node:[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]}),E=g({name:`briefcase`,size:24,node:[[`path`,{d:`M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16`,key:`jecpp`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,key:`i6l2r4`}]]}),D=g({name:`calendar-days`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M8 13h.01`,key:`1sbv64`}],[`path`,{d:`M12 13h.01`,key:`y0uutt`}],[`path`,{d:`M16 13h.01`,key:`wip0gl`}],[`path`,{d:`M8 17h.01`,key:`p3bg7i`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M16 17h.01`,key:`ql8jdd`}]]}),O=g({name:`car`,size:24,node:[[`path`,{d:`M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2`,key:`5owen`}],[`circle`,{cx:`7`,cy:`17`,r:`2`,key:`u2ysq9`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}],[`circle`,{cx:`17`,cy:`17`,r:`2`,key:`axvx0g`}]]}),k=g({name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]}),A=g({name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]}),j=g({name:`folder`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]}),M=g({name:`graduation-cap`,size:24,node:[[`path`,{d:`M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z`,key:`j76jl0`}],[`path`,{d:`M22 10v6`,key:`1lu8f3`}],[`path`,{d:`M6 12.5V16a6 3 0 0 0 12 0v-3.5`,key:`1r8lef`}]]}),N=g({name:`headset`,size:24,node:[[`path`,{d:`M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z`,key:`12oyoe`}],[`path`,{d:`M21 16v2a4 4 0 0 1-4 4h-5`,key:`1x7m43`}]]}),P=g({name:`heart-handshake`,size:24,node:[[`path`,{d:`M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2 0 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762`,key:`17lmqv`}]]}),F=g({name:`lightbulb`,size:24,node:[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]}),I=g({name:`link`,size:24,node:[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]}),L=g({name:`megaphone`,size:24,node:[[`path`,{d:`M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z`,key:`q8bfy3`}],[`path`,{d:`M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14`,key:`1853fq`}],[`path`,{d:`M8 6v8`,key:`15ugcq`}]]}),R=g({name:`message-square`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]}),z=g({name:`plane`,size:24,node:[[`path`,{d:`M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z`,key:`1v9wt8`}]]}),B=g({name:`receipt`,size:24,node:[[`path`,{d:`M12 17V7`,key:`pyj7ub`}],[`path`,{d:`M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8`,key:`1elt7d`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}]]}),V=g({name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]}),H=g({name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]}),U=g({name:`utensils`,size:24,node:[[`path`,{d:`M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2`,key:`cjf0a3`}],[`path`,{d:`M7 2v20`,key:`1473qp`}],[`path`,{d:`M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7`,key:`j28e5`}]],aliases:[`fork-knife`]}),W=g({name:`wrench`,size:24,node:[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]}),re={class:`overflow-hidden rounded-lg bg-brand text-brand-foreground`},G={class:`flex items-center gap-4 p-5`},K={class:`min-w-0`},q={class:`text-[13px] opacity-80`},J={class:`truncate text-lg font-semibold`},Y={key:0,class:`truncate text-[13px] opacity-85`},X={class:`flex flex-wrap gap-x-5 gap-y-1 px-5 pb-4 text-[13px] opacity-85`},ie={key:0,class:`inline-flex items-center gap-1.5`},ae={key:1,class:`inline-flex items-center gap-1.5`},oe={class:`grid grid-cols-2 border-t border-white/15 text-[13px] font-medium`},Z={__name:`GreetingCard`,props:{user:{type:Object,required:!0},profile:{type:Object,required:!0},greeting:{type:String,required:!0}},setup(e){return(t,n)=>(o(),s(`section`,re,[i(`div`,G,[f(x,{person:e.user,class:`size-[72px] ring-2 ring-white/40`},null,8,[`person`]),i(`div`,K,[i(`div`,q,u(e.greeting)+`,`,1),i(`div`,J,u(e.user.name),1),e.profile.job_title?(o(),s(`div`,Y,u(e.profile.job_title),1)):r(``,!0)])]),i(`div`,X,[e.profile.department?(o(),s(`span`,ie,[f(m(_),{class:`size-3.5`}),h(u(e.profile.department),1)])):r(``,!0),e.profile.location?(o(),s(`span`,ae,[f(m(v),{class:`size-3.5`}),h(u(e.profile.location),1)])):r(``,!0)]),i(`div`,oe,[f(m(d),{href:`/personen/${e.user.id}`,class:`px-5 py-3 hover:bg-white/10`},{default:a(()=>[...n[0]||=[h(`Mein Profil`,-1)]]),_:1},8,[`href`]),f(m(d),{href:`/profil/bearbeiten`,class:`border-l border-white/15 px-5 py-3 hover:bg-white/10`},{default:a(()=>[...n[1]||=[h(`Profil bearbeiten`,-1)]]),_:1})])]))}},Q={link:I,clock:k,"calendar-days":D,plane:z,receipt:B,"graduation-cap":M,headset:N,utensils:U,car:O,"file-text":A,"book-open":T,users:H,mail:S,"message-square":R,lightbulb:F,"shield-check":V,"heart-handshake":P,"building-2":_,wrench:W,monitor:b,folder:j,phone:C,megaphone:L,briefcase:E},$={class:`grid gap-6 lg:grid-cols-12`},se={class:`grid content-start gap-6 lg:col-span-8`},ce={class:`grid grid-cols-2 gap-3 sm:grid-cols-3 md:grid-cols-4 xl:grid-cols-6`},le={class:`text-[13px] leading-tight font-medium`},ue={class:`grid gap-3 sm:grid-cols-2 xl:grid-cols-3`},de={class:`min-w-0`},fe={class:`truncate text-sm font-semibold`},pe={class:`truncate text-[13px] text-muted-foreground`},me={class:`grid content-start gap-6 lg:col-span-4`},he={action:`/personen`,method:`get`,class:`relative`,role:`search`},ge={__name:`Dashboard`,props:{profile:{type:Object,required:!0},quickLinks:{type:Array,required:!0},newColleagues:{type:Object,required:!0},peopleCount:{type:Number,required:!0}},setup(g){let _=g,v=l(),b=n(()=>v.props.auth.user),S=n(()=>({...b.value,avatar_url:_.profile.avatar_url})),C=n(()=>{let e=new Date().getHours();return e<11?`Guten Morgen`:e<18?`Guten Tag`:`Guten Abend`}),T=n(()=>!_.profile.avatar_url||!_.profile.job_title);return(n,l)=>(o(),p(te,{title:`Startseite`},{default:a(()=>[i(`div`,$,[i(`div`,se,[f(Z,{user:S.value,profile:g.profile,greeting:C.value,class:`lg:hidden`},null,8,[`user`,`profile`,`greeting`]),f(w,{title:`Schnellzugriffe`},{default:a(()=>[i(`div`,ce,[(o(!0),s(t,null,c(g.quickLinks,t=>(o(),p(e(t.url.startsWith(`/`)&&!t.new_tab?m(d):`a`),{key:t.label+t.url,href:t.url,target:t.new_tab?`_blank`:void 0,rel:t.new_tab?`noopener`:void 0,class:`group flex flex-col items-center gap-2.5 rounded-lg border bg-card px-3 py-4 text-center transition-colors hover:border-brand-200 hover:bg-brand-soft`},{default:a(()=>[(o(),p(e(m(Q)[t.icon]??m(Q).link),{class:`size-6 text-brand-text`,"stroke-width":1.75})),i(`span`,le,u(t.label),1)]),_:2},1032,[`href`,`target`,`rel`]))),128))])]),_:1}),g.newColleagues.data.length?(o(),p(w,{key:0,title:`Neu im Team`,"action-label":`Alle Personen`,"action-href":`/personen`},{default:a(()=>[i(`ul`,ue,[(o(!0),s(t,null,c(g.newColleagues.data,e=>(o(),s(`li`,{key:e.id},[f(m(d),{href:`/personen/${e.id}`,class:`flex items-center gap-3 rounded-lg border p-3 transition-colors hover:bg-accent`},{default:a(()=>[f(x,{person:e,class:`size-11`},null,8,[`person`]),i(`div`,de,[i(`div`,fe,u(e.name),1),i(`div`,pe,u(e.job_title||e.department),1)])]),_:2},1032,[`href`])]))),128))])]),_:1})):r(``,!0)]),i(`aside`,me,[f(Z,{user:S.value,profile:g.profile,greeting:C.value,class:`hidden lg:block`},null,8,[`user`,`profile`,`greeting`]),T.value?(o(),p(m(d),{key:0,href:`/profil/bearbeiten`,class:`flex items-start gap-3 rounded-lg border border-dashed border-brand-300 bg-card p-4 transition-colors hover:bg-brand-soft`},{default:a(()=>[f(m(ee),{class:`mt-0.5 size-5 shrink-0 text-brand-text`}),l[0]||=i(`div`,null,[i(`div`,{class:`text-sm font-semibold`},`Profil vervollständigen`),i(`p`,{class:`mt-0.5 text-[13px] text-muted-foreground`},`Mit Foto und Funktion finden Kolleginnen und Kollegen Sie schneller.`)],-1)]),_:1})):r(``,!0),f(w,{title:`Personen finden`},{default:a(()=>[i(`form`,he,[f(m(y),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),l[1]||=i(`input`,{name:`q`,type:`search`,placeholder:`Name, Funktion, Abteilung …`,class:`h-10 w-full rounded-md border border-input bg-background 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,-1)]),f(m(d),{href:`/personen`,class:`mt-4 flex items-center justify-between text-[13px] text-muted-foreground hover:text-foreground`},{default:a(()=>[h(u(g.peopleCount.toLocaleString(`de-DE`))+` Kolleginnen und Kollegen im Verzeichnis `,1),f(m(ne),{class:`size-4`})]),_:1})]),_:1})])])]),_:1}))}};export{ge as default}; |