PageSourceSearch

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

js jewishvirtuallibrary.org collected 2026-09-24 08:28:47 UTC 3,924 bytes, 1 lines download raw bytes

1import{_ as L}from"./BC0bmsmX.js";import{_ as S}from"./CJlzNQ1F.js";import{_ as P}from"./v6eW2DxJ.js";import{J as N,r as a,K as A,d as b,c as h,a as n,w as R,b as r,i as C,e as d,f,h as y,g as o,s as U,x as E,t as g,L as T}from"./t8OAlijK.js";import{u as B}from"./Co6mxnGB.js";import"./DSNWTBrn.js";import"./D4H9sm2l.js";const $=N("seoLinkStore",()=>{const p=a(!1),v=a(0),t=a(0),l=a(0),u=a(!1),m=a(!1),i=a(!1),_=a(1),c=A();let e=null;const x=async()=>{if(!m.value){p.value=!0,u.value=!0,i.value=!1,e&&e.abort(),e=new AbortController;try{const s=await c.post(`/reports/run-seo-updater/${_.value}`,{},{signal:e.signal});if(i.value){console.log("Process stopped, skipping updates.");return}if((s==null?void 0:s.success)===!1)return;if(s.data){if(v.value+=s.data.checkedRecords,t.value+=s.data.updatedRecords,l.value===0&&(l.value=s.data.totalCount),s.data.isLast){m.value=!0,p.value=!1;return}_.value+=1,await x()}}catch(s){s.name==="AbortError"?(console.log("API request aborted."),i.value=!0):console.error("Error fetching report:",s)}finally{p.value=!1}}};return{isLoading:p,fetchNextPage:x,stopReport:()=>{e&&e.abort(),i.value=!0,p.value=!1,u.value=!1},processedRecords:v,updatedRecords:t,totalCount:l,showProgress:u,isCompleted:m,isAborted:i,offset:_}}),O={key:0,style:{display:"flex","align-items":"center",gap:"10px","justify-content":"center"}},V=["disabled"],z={key:1,style:{"text-align":"center",color:"#757575"}},D={key:2,class:"progress cyan lighten-4",style:{margin:"20px auto","max-width":"800px","text-align":"center"}},F={key:3,style:{"text-align":"center","margin-top":"20px"}},H={key:4,style:{"text-align":"center","margin-top":"20px",color:"green"}},I={key:5,style:{"text-align":"center","margin-top":"20px",color:"red"}},j={key:0},W={__name:"index",setup(p){const{isAdmin:v}=B(),t=$(),l=a(null),u=b(()=>{const c=t.processedRecords||0,e=t.totalCount||1;return Math.round(c/e*100)}),m=b(()=>{const c=t.processedRecords||0,e=t.totalCount||0;return`${c} / ${e} records checked`}),i=b(()=>`${t.updatedRecords||0} records updated`),_=()=>{l.value=t.offset,t.stopReport()};return(c,e)=>{const x=L,k=S,s=P;return n(),h(s,{class:"rounded-3"},{default:R(()=>[e[5]||(e[5]=r("title",null,"SEO Friendly Links Updater",-1)),C(x,{title:"SEO Friendly Links Updater"}),e[6]||(e[6]=r("p",null,[y(" This report will scan all articles on the server and attempt to find any old internal links such as "),r("b",null,"/jsource/pageTitle.html"),y(" and convert them to "),r("b",null,"/page-title"),y(" instead. It may take a couple of hours to run. ")],-1)),e[7]||(e[7]=r("p",{style:{color:"red","font-size":"20px","text-align":"center"}}," THIS SHOULD ONLY BE RUN ONCE! ",-1)),o(v)?(n(),d("div",O,[e[2]||(e[2]=r("label",null,"Start at Page #:",-1)),U(r("input",{"onUpdate:modelValue":e[0]||(e[0]=w=>o(t).offset=w),type:"number",style:{"text-align":"center",width:"10%"},disabled:o(t).isLoading},null,8,V),[[E,o(t).offset]]),C(k,{class:"bg-new-green",disabled:o(t).isLoading,onClick:o(t).fetchNextPage},{default:R(()=>[y(g(o(t).isLoading?`Running... (Page ${o(t).offset})`:"Run Report"),1)]),_:1},8,["disabled","onClick"]),o(t).isLoading?(n(),h(k,{key:0,class:"bg-red-500 text-white",onClick:_},{default:R(()=>e[1]||(e[1]=[y(" Stop Report ")])),_:1,__:[1]})):f("",!0)])):(n(),d("p",z," You are not authorized to run this report. ")),o(t).showProgress?(n(),d("div",D,[r("div",{class:"active striped cyan",style:T({width:o(u)+"%"})},g(o(u))+"% ",5)])):f("",!0),o(t).isLoading?(n(),d("div",F,[r("p",null,"Updating data for page "+g(o(t).offset)+"... Please wait.",1),r("p",null,g(o(m)),1),r("p",null,g(o(i)),1)])):f("",!0),o(t).isCompleted?(n(),d("div",H,e[3]||(e[3]=[r("p",null,"✅ Report Completed!",-1)]))):f("",!0),o(t).isAborted?(n(),d("div",I,[e[4]||(e[4]=r("p",null,"❌ Report Stopped by User.",-1)),o(l)?(n(),d("p",j," Report Stopped at Page #: "+g(o(l)),1)):f("",!0)])):f("",!0)]),_:1,__:[5,6,7]})}}};export{W 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.