PageSourceSearch

https://inference.club/_nuxt/B4wzolBQ.js

js inference.club collected 2026-10-01 15:51:51 UTC 6,941 bytes, 1 lines download raw bytes

1import{_ as L}from"./BTR0J1Vf.js";import{_ as T}from"./tYUqxmEy.js";import{_ as j}from"./CQFkVSdy.js";import{a as A}from"./C4aaEZIL.js";import{u as D,_ as R}from"./CP_oDBMf.js";import{G as E}from"./DxeTatjr.js";import{R as O}from"./DgI_Fsgj.js";import{G as I}from"./y98Hve7D.js";import{f as q,j as H,i as J,c as i,a as t,g as v,n as _,b as u,d as g,h as e,E as b,t as r,w as d,F as x,r as w,p as h,o,l as K}from"./DdRirg_F.js";import"./DjqsqOe8.js";import"./DnwgGaPl.js";import"./Barf_tMS.js";import"./VfuRUxXd.js";import"./BoE8DsGH.js";import"./CT6oeXmt.js";import"./B5Wy7ekL.js";import"./BiXMX3Yw.js";import"./rt51KvPn.js";import"./BumK2SxH.js";import"./l8922Ki5.js";const Q={class:"mx-auto w-full max-w-6xl px-3 sm:px-6 py-6 space-y-6"},U={class:"flex items-end justify-between"},W={class:"text-2xl font-bold flex items-center gap-2"},X=["disabled"],Y={class:"grid gap-3 sm:grid-cols-4"},Z={class:"text-2xl font-semibold mt-1"},ee={class:"text-2xl font-semibold mt-1"},te={class:"text-2xl font-semibold mt-1"},se={key:0,class:"p-4 bg-destructive/10 text-destructive rounded text-sm"},ae={key:1,class:"grid gap-3"},ne={key:3,class:"space-y-4"},oe={class:"grid gap-3"},re={class:"flex flex-wrap items-start justify-between gap-3 mb-3"},le={class:"min-w-0"},ie={class:"flex items-center gap-2 flex-wrap"},ue={class:"font-semibold truncate"},ce=["href"],de={class:"text-xs text-muted-foreground mt-1 font-mono truncate"},ge={class:"text-xs text-muted-foreground shrink-0"},pe={class:"border-t pt-3"},me={class:"text-xs uppercase text-muted-foreground tracking-wide mb-1.5"},fe={key:0,class:"flex flex-wrap gap-1.5"},_e={key:1,class:"text-xs text-muted-foreground italic"},je=q({__name:"index",setup(xe){const{providers:p,pagination:k,isLoading:f,error:y,fetchAllProviders:P}=A(),n=D(h(()=>k.value.count),10),z=()=>{const l=(n.currentPage.value-1)*n.currentPageSize.value;return P(n.currentPageSize.value,l)},C=K(null);H([n.currentPage,n.currentPageSize],()=>{var l;z(),(l=C.value)==null||l.scrollIntoView({behavior:"smooth"})}),J(()=>P(n.currentPageSize.value,0));const M=h(()=>p.value.filter(l=>l.is_online).length),B=h(()=>new Set(p.value.map(l=>
1l.owner).filter(Boolean)).size),V=h(()=>p.value.reduce((l,s)=>l+s.models.filter(c=>c.is_active).length,0)),F=l=>{if(!l)return"never";const s=Math.floor((Date.now()-new Date(l).getTime())/1e3);return s<60?`${s}s ago`:s<3600?`${Math.floor(s/60)}m ago`:s<86400?`${Math.floor(s/3600)}h ago`:`${Math.floor(s/86400)}d ago`};return(l,s)=>{const c=L,S=T,G=j;return o(),i("div",Q,[t("div",{ref_key:"resultsTopRef",ref:C},null,512),t("div",U,[t("div",null,[t("h1",W,[u(e(E),{class:"h-6 w-6"}),s[0]||(s[0]=g(" All Nodes ",-1))]),s[1]||(s[1]=t("p",{class:"text-sm text-muted-foreground mt-1"}," Every active provider on the inference.club network. ",-1))]),t("button",{class:"text-sm text-muted-foreground hover:text-foreground inline-flex items-center gap-1.5 disabled:opacity-50",disabled:e(f),onClick:z},[u(e(O),{class:b(["h-3.5 w-3.5",{"animate-spin":e(f)}])},null,8,["class"]),g(" "+r(e(f)?"Refreshing…":"Refresh"),1)],8,X)]),t("div",Y,[u(c,{class:"p-4"},{default:d(()=>[s[2]||(s[2]=t("p",{class:"text-xs uppercase text-muted-foreground tracking-wide"},"Nodes",-1)),t("p",Z,r(e(k).count),1)]),_:1}),u(c,{class:"p-4"},{default:d(()=>[s[3]||(s[3]=t("p",{class:"text-xs uppercase text-muted-foreground tracking-wide"},"Online",-1)),t("p",{class:b(["text-2xl font-semibold mt-1",M.value>0?"text-green-600 dark:text-green-400":""])},r(M.value),3)]),_:1}),u(c,{class:"p-4"},{default:d(()=>[s[4]||(s[4]=t("p",{class:"text-xs uppercase text-muted-foreground tracking-wide"},"Operators",-1)),t("p",ee,r(B.value),1)]),_:1}),u(c,{class:"p-4"},{default:d(()=>[s[5]||(s[5]=t("p",{class:"text-xs uppercase text-muted-foreground tracking-wide"},"Models served",-1)),t("p",te,r(V.value),1)]),_:1})]),e(y)?(o(),i("div",se,r(e(y)),1)):v("",!0),e(f)&&e(p).length===0?(o(),i("div",ae,[(o(),i(x,null,w(3,a=>u(c,{key:a,class:"p-5 animate-pulse"},{default:d(()=>[...s[6]||(s[6]=[t("div",{class:"h-5 bg-muted rounded w-40 mb-3"},null,-1),t("div",{class:"h-4 bg-muted rounded w-64"},null,-1)])]),_:1})),64))])):e(p).length===0?(o(),_(c,{key:2,class:"p-6"},{default:d(()=>[...s[7]||(s[7]=[t("h3",{class:"font-semibold mb-2"},"No active nodes on the network yet",-1),t("p",{class:"text-sm text-muted-foreground"}," Once operators register agents, they'll appear here. ",-1)])]),_:1})):(o(),i("div",ne,[u(R,{"current-page":e(n).currentPage.value,"current-page-size":e(n).currentPageSize.value,"page-count":e(n).pageCount.value,"visible-pages":e(n).visiblePages.value,"is-first-page":e(n).isFirstPage.value,"is-last-page":e(n).isLastPage.value,prev:e(n).prev,next:e(n).next,"on-page-change":a=>{e(n).currentPage.value=a}},null,8,["current-page","current-page-size","page-count","visible-pages","is-first-page","is-last-page","prev","next","on-page-change"]),t("div",oe,[(o(!0),i(x,null,w(e(p),a=>(o(),_(c,{key:a.id,class:"p-5"},{default:d(()=>{var $,N;return[t("div",re,[t("div",le,[t("div",ie,[t("h3",ue,r(a.name),1),u(S,{variant:a.is_online?"default":"secondary"},{default:d(()=>[t("span",{class:b(["inline-block h-1.5 w-1.5 rounded-full mr-1.5",a.is_online?"bg-green-500":"bg-muted-foreground"])},null,2),g(" "+r(a.is_online?"online":"offline"),1)]),_:2},1032,["variant"]),a.github_login?(o(),i("a",{key:0,href:`https://github.com/${a.github_login}`,target:"_blank",rel:"noopener noreferrer",class:"inline-flex items-center gap-1 px-2 py-0.5 text-xs rounded-md border font-mono hover:bg-accent hover:text-accent-foreground transition-colors"},[u(e(I),{class:"h-3 w-3"}),g(" "+r(a.github_login),1)],8,ce)):(o(),_(S,{key:1,variant:"outline",class:"font-mono text-xs"},{default:d(()=>[g(" @"+r(a.owner),1)]),_:2},1024))]),t("p",de,[g(r(a.tailnet_hostname||"(awaiting registration)"),1),a.agent_port&&a.agent_port!==443?(o(),i(x,{key:0},[g(":"+r(a.agent_port),1)],64)):v("",!0)])]),t("p",ge," last seen "+r(F(a.last_seen_at)),1)]),(N=($=a.manifest)==null?void 0:$.parsed.hosts)!=null&&N.length?(o(),_(G,{key:0,hosts:a.manifest.parsed.hosts,class:"border-t pt-3 mb-3"},null,8,["hosts"])):v("",!0),t("div",pe,[t("p",me," Models ("+r(a.models.filter(m=>m.is_active).length)+") ",1),a.models.length>0?(o(),i("div",fe,[(o(!0),i(x,null,w(a.models.filter(m=>m.is_active),m=>(o(),i("span",{key:m.id,class:"px-1.5 py-0.5 text-xs rounded bg-muted font-mono"},r(m.name),1))),128))])):(o(),i("p",_e," No models reported yet. "))])]}),_:2},1024))),128))]),u(R,{"current-page":e(n).currentPage.value,"current-page-size":e(n).currentPageSize.value,"page-count":e(n).pageCount.value,"visible-pages":e(n).visiblePages.value,"is-first-page":e(n).isFirstPage.value,"is-last-page":e(n).isLastPage.value,prev:e(n).prev,next:e(n).next,"on-page-change":a=>{e(n).currentPage.value=a}},null,8,["current-page","current-page-size","page-count","visible-pages","is-first-page","is-last-page","prev","next","on-page-change"])]))])}}});
1export{je 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.