PageSourceSearch

https://grapevine-brainstorm.vercel.app/assets/index-B6mhilGd.js

js grapevine-brainstorm.vercel.app collected 2026-10-03 07:02:09 UTC 1,905 bytes, 1 lines download raw bytes

1import{x as k,r as a,l as x,o as g,y as j,j as e}from"./index-COU6hdy5.js";import{P as F}from"./index-Dyq-tcKu.js";import{a as P}from"./DefaultLayout-ChMTUsYU.js";import"./index-tSOWfPPf.js";import"./index-CiGLiOfH.js";import"./nip19-C74YZx4B.js";import"./index-BJXKs2no.js";import"./CContainer-DN2R4-R_.js";import"./index-BoQ3c90B.js";import"./PulseLoader-yc3i8UCR.js";import"./windowDimensions-C9ZoXVnh.js";import"./CFormSwitch-C4-R0pb5.js";import"./CFormLabel-JtOW3K-n.js";import"./CRow-e7ZHIZYo.js";import"./CTable-BWx40C8A.js";const $=()=>{const[n,I]=k(),[i,d]=a.useState([]),[s,m]=a.useState({}),{activeUser:l}=x(),{ndk:h}=g();let t=n.get("pubkey");const c=n.get("npub");c&&(t=j.decode(c).data),t&&(t=t.toLowerCase());const y=`https://www.graperank.tech/api/neo4j/getFollowersFollowsMutualsFansIdols/singlePubkey?pubkey=${t}`;async function w(p){const u={};u.pubkey=t;const f=await P(h,u);m(f);try{const o=await fetch(p);if(!o.ok)throw new Error("Network response was not ok");const r=await o.json();return r.success||setExists("getFollowersFollowsMutualsFansIdols endpoint failed"),r.success&&d(r.data.aIdols),r}catch(o){console.error("getFollowersFollowsMutualsFansIdols endpoint error:",o)}}a.useEffect(()=>{w(y)},[]);const b={show:"aPubkeys",aPubkeys:i,displayDosTable:"none",displayPublishButton:"none"};return l?i.length==0?e.jsx("div",{children:"fetching idols ... "}):e.jsxs(e.Fragment,{children:[e.jsxs("center",{children:[e.jsxs("h4",{children:[s==null?void 0:s.displayName," ",e.jsxs("span",{style:{color:"grey"},children:["@",s==null?void 0:s.name]}),": Idols"]}),e.jsxs("p",{children:["(profiles that are followed by but do NOT follow ",s==null?void 0:s.displayName," ",e.jsxs("span",{style:{color:"grey"},children:["@",s==null?void 0:s.name]}),")"]})]}),e.jsx(F,{pubkey:l.pubkey,tableConfig:b})]}):e.jsx("div",{children:"retrieving the active user pubkey ..."})};export{$ 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.