PageSourceSearch

https://app.searchpilot.com/assets/vite/redis_database_key_list-CKCRwOGP.js

js searchpilot.com collected 2026-09-24 17:41:12 UTC 4,227 bytes, 39 lines download raw bytes

1import{j as p,l as c,n as f,p as h}from"./root-C9LVyve2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"distillery-frontend"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b173a94d-67c5-4122-b403-ad0235f0620d",e._sentryDebugIdIdentifier="sentry-dbid-b173a94d-67c5-4122-b403-ad0235f0620d")}catch{}})();const v=c("meta_js","data-redis-key-api"),x=document.getElementById("redisKeysForm"),y=document.getElementById("redisKeysInput"),g=document.getElementById("redisKeysTableBody"),d=document.getElementById("resultsMessage"),u=document.getElementById("spinnerTarget");function E(){let e;x.onsubmit=t=>{t.preventDefault()},y.onkeyup=function(t){m(!0),clearTimeout(e),e=setTimeout(()=>{g.innerHTML="";const o=y.value,l=`${f()}${v}?prefix=${o}`;fetch(l).then(n=>n.json()).then(n=>{if(n.keys.length){const s=Math.min(n.keys.length,15);for(let i=0;i<s;i++)$(n.keys[i]);m(!1),d&&(s>=15?d.innerHTML=`Showing ${s} of at least ${n.keys.length} results`:s===1?d.innerHTML=`Showing ${s} of ${n.keys.length} result`:d.innerHTML=`Showing ${s} of ${n.keys.length} results`)}else m(!1),d&&(d.innerHTML="No results were found. Please try again.")}).catch(n=>{console.log(n)})},1500)}}E();function $(e){const t=g.insertRow(-1);let o=c("meta_js","data-key-inspect-url");o&&(o=`${f()}${o.replace("KEYTOREPLACE",encodeURIComponent(e))}`);let l=c("meta_js","data-key-delete-url");l&&(l=`${f()}${l.replace("KEYTOREPLACE",encodeURIComponent(e))}`,t.insertCell(e)),t.innerHTML=`
2    <td class="px-6 py-4 border-b border-gray-200 text-sm leading-5 text-gray-500">
3      ${e}
4    </td>
5    <td class="px-6 py-4 border-b border-gray-200 text-sm leading-5 text-gray-500">
6      <a class="" href=${o}>
7        Inspect
8      </a>
9    </td>
10    <td class="px-6 py-4 border-b border-gray-200 text-sm leading-5 text-gray-500">
11      <a id="delete-${e}" class="" href=${l}>
12        Delete
13      </a>
14      <div class="hidden fixed w-full h-full top-0 left-0 z-10 overflow-y-auto text-left" id="modal-${e}">
15        <div class="fixed w-full h-full bg-gray-900 opacity-50"></div>
16      <div class="bg-white w-11/12 md:max-w-md mx-auto rounded-lg shadow-lg my-8 relative w-auto">
17        <div class="sp-head-foot-block-container">
18          <div class="sp-head-foot-block-header">
19            <h2 class="text-3xl">
20            Are you sure?
21            </h2>
22          </div>
23          <div class="sp-head-foot-block-content">
24            <p class="p-4">Are you sure you want to delete '${e}'. </p>
25            <p class="p-4">There is no undo.</p>
26          </div>
27          <div class="sp-head-foot-block-footer text-right">
28            <button type="button" class="bg-sp-secondary text-white text-sm leading-5 font-medium rounded-md py-1 px-4 ml-3 rounded false" id="modal-close-${e}">
29              Cancel
30            </button>
31            <button type="button" class="bg-sp-secondary text-white text-sm leading-5 font-medium rounded-md py-1 px-4 ml-3 rounded false" id="modal-confirm-${e}">
32              OK
33            </button>
34          </div>
35        </div>
36      </div>
37    </div>
38    </td>`,t.setAttribute("id",e);const n=document.getElementById(`delete-${e}`);n?.addEventListener("click",r=>{r.preventDefault(),document.getElementById(`modal-${e}`)?.classList.remove("hidden")}),document.getElementById(`modal-close-${e}`)?.addEventListener("click",r=>{r.preventDefault(),document.getElementById(`modal-${e}`)?.classList.add("hidden")}),document.getElementById(`modal-confirm-${e}`)?.addEventListener("click",r=>{r.preventDefault();const a=c(`delete-${e}`,"href");a&&h(a).then(b=>{w(n)}).catch(()=>{console.log("Failed to delete redis key"),document.getElementById(`modal-${e}`)?.classList.add("hidden")})})}function m(e){if(u)if(e){const t='<div class="animate-spin inline-block rounded-full border-2 border-t-2 border-sp-yellow border-top-sp-purple h-4 w-4 -mb-1 ml-4"></div>';u.innerHTML=t}else u.innerHTML=""}function w(e){const t=e.parentNode.parentNode;t.parentNode.removeChild(t)}const I=()=>p.jsx(p.Fragment,{});export{I as default};
39//# sourceMappingURL=redis_database_key_list-CKCRwOGP.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.