Loheide-eu-mitarbeiterplatt.../public/build/assets/Search-CQTXVXuk.js
Friederich Loheide 03e31f42b5
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 7m38s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 8m0s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 11m51s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 12m15s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 13m27s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 13m42s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 16m0s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 15m20s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 56s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m14s
Noch schneller (0.46.0)
- Erscheinungsbild: große Fotos (Anmeldung, Titelbild) beim Speichern als WebP
  ≤ 2400 px; Migration verkleinert vorhandene einmal
- Vite: Grundgerüst und UI-Bausteine als gemeinsame Dateien (Startseite 34 statt
  58 Skripte)
- Plugin-Oberflächen: Kopie nach public/ erneuert sich bei neuem Build
  (Fingerabdruck von dist/inhaus.json), auch ohne neue Version

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 17:00:29 +00:00

1 line
No EOL
3.3 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{Nt as e}from"./ui-DTELwomD.js";import{C as t,Et as n,O as r,Q as i,S as a,T as o,Y 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}from"./framework-CFqPLBV8.js";import{t as g}from"./external-link-BGhbJk8l.js";import{t as _}from"./search-x-C9Mx7n-b.js";import{c as v,d as y,h as b,u as x,yt as S}from"./app-Bi2ZjL_5.js";import{t as C}from"./colors-RDOJqd57.js";import{n as w}from"./format-20VMi8w8.js";import{t as T}from"./QmSearchBox-Cg0Ap8fE.js";var E=e({name:`text-search`,size:24,node:[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M10 12H3`,key:`1ulcyk`}],[`path`,{d:`M10 19H3`,key:`108z41`}],[`circle`,{cx:`17`,cy:`15`,r:`3`,key:`1upz2a`}],[`path`,{d:`m21 19-1.9-1.9`,key:`dwi7p8`}]]}),D={key:0,class:`divide-y overflow-hidden rounded-lg border bg-card`},O={key:1,class:`grid size-10 shrink-0 place-items-center rounded-md bg-muted text-muted-foreground`},k={class:`min-w-0 flex-1`},A={class:`flex flex-wrap items-baseline gap-x-2`},j={key:0,class:`text-xs text-muted-foreground`},M={class:`text-xs text-muted-foreground`},N=[`innerHTML`],P={key:1,class:`mt-1 inline-flex items-center gap-1 text-[11px] font-medium text-brand-text`},F={key:1,class:`rounded-lg border bg-card`},I={__name:`Search`,props:{query:{type:String,default:``},results:{type:Array,default:()=>[]}},setup(e){let I=(e,t)=>e.open_kind===`view`?`${e.open_url}?suche=${encodeURIComponent(t)}`:e.open_url;return(L,R)=>(f(),t(y,{title:`Suche: ${e.query}`},{default:d(()=>[l(x,{title:e.query?`Suche: ${e.query}`:`Suche`,breadcrumbs:[{label:`Qualitätsmanagement`,href:`/qm`}],description:e.query?`${e.results.length} ${e.results.length,`Treffer`} im Qualitätsmanagement – in Titeln und im Text der Dokumente`:``},{actions:d(()=>[(f(),t(T,{key:e.query,initial:e.query},null,8,[`initial`]))]),_:1},8,[`title`,`description`]),e.results.length?(f(),o(`ul`,D,[(f(!0),o(p,null,s(e.results,s=>(f(),o(`li`,{key:s.id,class:`flex gap-3 px-4 py-3.5 hover:bg-accent/40`},[s.type===`file`?(f(),t(b,{key:0,extension:s.extension},null,8,[`extension`])):(f(),o(`span`,O,[s.type===`form`?(f(),t(h(S),{key:0,class:`size-5`})):(f(),t(h(g),{key:1,class:`size-5`}))])),a(`div`,k,[a(`div`,A,[(f(),t(i(s.open_kind===`view`?h(c):`a`),{href:I(s,e.query),target:s.open_kind===`link`?`_blank`:void 0,class:`text-[15px] font-semibold hover:underline`},{default:d(()=>[r(u(s.title),1)]),_:2},1032,[`href`,`target`])),s.version?(f(),o(`span`,j,`Version `+u(s.version),1)):m(``,!0),a(`span`,M,`Stand `+u(h(w)(s.valid_from)),1)]),l(h(c),{href:s.folder.url,class:`mt-0.5 inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground hover:underline`},{default:d(()=>[a(`span`,{class:n([`size-2 rounded-sm`,h(C)(s.folder.color).dot])},null,2),r(u(s.folder.path),1)]),_:2},1032,[`href`]),s.snippet?(f(),o(`p`,{key:0,class:`qm-snippet mt-1.5 text-[13px] leading-relaxed text-muted-foreground`,innerHTML:s.snippet},null,8,N)):m(``,!0),s.in_content?(f(),o(`p`,P,[l(h(E),{class:`size-3`}),R[0]||=r(` im Text gefunden`,-1)])):m(``,!0)])]))),128))])):e.query?(f(),o(`div`,F,[l(v,{icon:h(_),title:`Nichts gefunden`,text:`Gesucht wird in Titeln, Beschreibungen, Dateinamen und im Text der Dokumente. Eingescannte PDFs sind nur durchsuchbar, wenn die Texterkennung eingerichtet ist.`},null,8,[`icon`])])):m(``,!0)]),_:1},8,[`title`]))}};export{I as default};