PageSourceSearch

https://lovingwords.ai/build/routes/admin+/cache-77ZGSMKH.js

js lovingwords.ai collected 2026-10-05 15:39:04 UTC 3,552 bytes, 2 lines download raw bytes

1import{a as k}from"/build/_shared/chunk-JMT7JLJF.js";import{a as l}from"/build/_shared/chunk-I4AZ3NBU.js";import"/build/_shared/chunk-5OG3ZX2X.js";import{h as p}from"/build/_shared/chunk-H6MBQT2S.js";import"/build/_shared/chunk-ZDFOMIVU.js";import{a as S}from"/build/_shared/chunk-MODGU5FQ.js";import{g as N}from"/build/_shared/chunk-JW5LPF43.js";import{h as b,i as I}from"/build/_shared/chunk-GZSR4SAG.js";import{i as h,j as f,k as y,n as g,s as x,v}from"/build/_shared/chunk-ED73GRZ2.js";import{a as w}from"/build/_shared/chunk-VGLT25BX.js";import"/build/_shared/chunk-IH6XXRAE.js";import{b as A,d as s}from"/build/_shared/chunk-MOBXQPLJ.js";var K=A((R,C)=>{C.exports={}});var D=s(S(),1);var m=s(K(),1),d=s(k(),1);var e=s(w(),1),E={getSitemapEntries:()=>null};function F(){let t=x(),[n]=f(),c=y(),i=n.get("query")??"",o=n.get("limit")??"100",r=n.get("instance")??t.instance,u=I(a=>{c(a)},400);return(0,e.jsxs)("div",{className:"container",children:[(0,e.jsx)("h1",{className:"text-h1",children:"Cache Admin"}),(0,e.jsx)(l,{size:"2xs"}),(0,e.jsxs)(h,{method:"get",className:"flex flex-col gap-4",onChange:a=>u(a.currentTarget),children:[(0,e.jsx)("div",{className:"flex-1",children:(0,e.jsxs)("div",{className:"flex flex-1 gap-4",children:[(0,e.jsx)("button",{type:"submit",className:"flex h-16 items-center justify-center",children:"\u{1F50E}"}),(0,e.jsx)(p,{className:"flex-1",labelProps:{children:"Search"},inputProps:{type:"search",name:"query",defaultValue:i}}),(0,e.jsx)("div",{className:"flex h-16 w-14 items-center text-lg font-medium text-muted-foreground",children:(0,e.jsx)("span",{title:"Total results shown",children:t.cacheKeys.sqlite.length+t.cacheKeys.lru.length})})]})}),(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-4",children:[(0,e.jsx)(p,{labelProps:{children:"Limit"},inputProps:{name:"limit",defaultValue:o,type:"number",step:"1",min:"1",max:"10000",placeholder:"results limit"}}),(0,e.jsx)("select",{name:"instance",defaultValue:r,children:Object.entries(t.instances).map(([a,P])=>(0,e.jsx)("option",{value:a,children:[a,`(${P})`,a===t.currentInstanceInfo.currentInstance?"(current)":"",a===t.currentInstanceInfo.primaryInstance?" (primary)":""].filter(Boolean).join(" ")},a))})]})]}),(0,e.jsx)(l,{size:"2xs"}),(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsx)("h2",{className:"text-h2",children:"LRU Cache:"}),t.cacheKeys.lru.map(a=>(0,e.jsx)(q,{cacheKey:a,instance:r,type:"lru"},a))]}),(0,e.jsx)(l,{size:"3xs"}),(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsx)("h2",{className:"text-h2",children:"SQLite Cache:"}),t.cacheKeys.sqlite.map(a=>(0,e.jsx)(q,{cacheKey:a,instance:r,type:"sqlite"},a))]})]})}function q({cacheKey:t,instance:n,type:c}){let i=v(),o=b(),r=encodeURIComponent(t),u=`/admin/cache/${c}/${r}?instance=${n}`;return(0,e.jsxs)("div",{className:"flex items-center gap-2 font-mono",children:[(0,e.jsxs)(i.Form,{method:"POST",children:[(0,e.jsx)("input",{type:"hidden",name:"cacheKey",value:t}),(0,e.jsx)("input",{type:"hidden",name:"instance",value:n}),(0,e.jsx)("input",{type:"hidden",name:"type",value:c}),(0,e.jsx)(N,{size:"sm",variant:"secondary",...o.getButtonProps({type:"submit"}),children:i.state==="idle"?o.doubleCheck?"You sure?":"Delete":"Deleting..."})]}),(0,e.jsx)(g,{reloadDocument:!0,to:u,children:t})]})}function L({error:t}){return console.error(t),(0,e.jsxs)("div",{children:["An unexpected error occurred: ",t.message]})}export{L as ErrorBoundary,F as default,E as handle};
2//# sourceMappingURL=/build/routes/admin+/cache-77ZGSMKH.js.map

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.