PageSourceSearch

https://jewishvirtuallibrary.org/_nuxt/XShgbBzQ.js

js jewishvirtuallibrary.org collected 2026-09-24 08:29:42 UTC 2,643 bytes, 1 lines download raw bytes

1import{_ as C}from"./BC0bmsmX.js";import{_ as B}from"./CJlzNQ1F.js";import{_ as k}from"./D4H9sm2l.js";import{_ as M}from"./BKkv2N_l.js";import{_ as S}from"./v6eW2DxJ.js";import{r as p,d as D,o as V,c as L,a as N,w as d,b as s,i as r,h as f,s as P,x as R,g as x,n as U}from"./t8OAlijK.js";import{u as $}from"./BeXUoeBR.js";import"./DSNWTBrn.js";import"./BbAC7yzK.js";import"./BK-tONi_.js";const A=[{name:"ID",sortable:!0,sortBy:"id",field:t=>t.id},{name:"Text",sortable:!0,sortBy:"text",field:t=>t.text?t.text.substring(0,50)+(t.text.length>50?"...":""):""},{name:"URL",sortable:!0,sortBy:"url",field:t=>t.url,format:t=>t?`<a href="${t}" target="_blank" class="text-blue-500 hover:underline">View Link</a>`:"",html:!0},{name:"Content ID",sortable:!0,sortBy:"content_id",field:t=>t.content_id},{name:"Created At",sortable:!0,sortBy:"created_at",field:t=>t.created_at},{name:"Updated At",sortable:!0,sortBy:"updated_at",field:t=>t.updated_at}],I={class:"mt-4"},q={class:"col s12 m6 l4 mb-2"},H={class:"col s12 m6 l4"},j={class:"left",style:{"margin-right":"1%"}},Y={__name:"index",setup(t){const n=$(),o=p(10),l=p(""),u=p(!1),g=D(()=>A.filter(a=>!a.hidden)),i=async(a={})=>{const e=l.value.trim()!=="",c={...a};e&&(c.search=l.value),await n.fetchMatchedTexts(c)},h=a=>{U(`/admin/matched-texts/${a}`)},v=async a=>{const{success:e}=await n.deleteMatchedText(a);e&&await i({page:n.pagination.current_page,per_page:o.value})},b=async()=>{u.value=!0,l.value="",o.value=10,await i({page:1,per_page:o.value}),u.value=!1};return V(()=>{i({per_page:o.value})}),(a,e)=>{const c=C,m=B,T=k,y=M,w=S;return N(),L(w,{class:"rounded-3"},{default:d(()=>[e[6]||(e[6]=s("title",null,"Matched Texts",-1)),r(c,{title:"Matched Texts"}),r(T,{to:"/admin/matched-texts/create"},{default:d(()=>[r(m,{class:"bg-new-blue mb-4"},{default:d(()=>e[2]||(e[2]=[f(" Add Matched Text ")])),_:1,__:[2]})]),_:1}),s("div",I,[s("div",q,[e[3]||(e[3]=s("label",{for:"search",class:"active"},"Search Title",-1)),P(s("input",{id:"search","onUpdate:modelValue":e[0]||(e[0]=_=>l.value=_),type:"text"},null,512),[[R,l.value]])])]),s("div",H,[s("div",j,[r(m,{class:"bg-new-green mb-4",onClick:i},{default:d(()=>e[4]||(e[4]=[f(" Search ")])),_:1,__:[4]})])]),s("div",null,[r(m,{class:"bg-black mb-4",onClick:b,disabled:u.value},{default:d(()=>e[5]||(e[5]=[f(" Clear ")])),_:1,__:[5]},8,["disabled"])]),r(y,{columns:g.value,rows:x(n).matchedTexts,pagination:x(n).pagination,loading:x(n).isLoading,perPage:o.value,"onUpdate:perPage":e[1]||(e[1]=_=>o.value=_),onRequest:i,onDelete:v,onRedirect:h},null,8,["columns","rows","pagination","loading","perPage"])]),_:1,__:[6]})}}};export{Y as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.