PageSourceSearch

https://production.assets.hyperpad.com/assets/Popular-MXBLJOMM.js

js hyperpad.com collected 2026-10-02 06:07:02 UTC 4,038 bytes, 2 lines download raw bytes

1import{a as x}from"/assets/chunk-4I2NODGB.js";import"/assets/chunk-EFHTHIC7.js";import{a as v}from"/assets/chunk-R6HMTJAQ.js";import"/assets/chunk-AOURNC2H.js";import"/assets/chunk-OXFJUOJE.js";import{b as p}from"/assets/chunk-2Q3AOBNI.js";import"/assets/chunk-SI6UPAX7.js";import{e as g}from"/assets/chunk-STUETNYO.js";import"/assets/chunk-QZEGL5W7.js";import{b as u}from"/assets/chunk-OAZ6AVAI.js";import"/assets/chunk-DZLEZB65.js";import"/assets/chunk-G3HLGEGV.js";import{a as y}from"/assets/chunk-K7GVSPCM.js";import"/assets/chunk-4Z4DMVOV.js";import{a as m}from"/assets/chunk-J3IT7JTE.js";import{c as l}from"/assets/chunk-3P2IUJ3S.js";var h=l(y());var e=l(m()),w=({auth:f,projects:o=[],pagination:a})=>{let{isAuthenticated:j,user:_}=p(f),[n,b]=(0,h.useState)(a?.current_page??1),{data:r,isLoading:d,error:s}=g({queryKey:["popular",n],queryFn:async()=>(await u.get(`/react/popular/data?page=${n}`)).data,initialData:o.length>0&&n===a?.current_page?{success:!0,data:{projects:o,pagination:a}}:void 0}),i=r?.success?r.data.projects:o,c=r?.success?r.data.pagination:a,N=t=>{b(t)};return(0,e.jsxs)("div",{className:"min-h-screen bg-gray-50",children:[(0,e.jsx)("div",{className:"bg-gradient-to-r from-red-600 to-orange-600 text-white shadow",children:(0,e.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:(0,e.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,e.jsx)("svg",{className:"h-10 w-10",fill:"currentColor",viewBox:"0 0 20 20",children:(0,e.jsx)("path",{fillRule:"evenodd",d:"M12.395 2.553a1 1 0 00-1.45-.385c-.345.23-.614.558-.822.88-.214.33-.403.713-.57 1.116-.334.804-.614 1.768-.84 2.734a31.365 31.365 0 00-.613 3.58 2.64 2.64 0 01-.945-1.06
17c-.328-.68-.398-1.534-.398-2.654A1 1 0 005.05 6.05 6.981 6.981 0 003 11a7 7 0 1011.95-4.95c-.592-.591-.98-.985-1.348-1.467-.363-.476-.724-1.063-1.207-2.03zM12.12 15.12A3 3 0 017 13s.879.5 2.5.5c0-1 .5-4 1.25-4.5.5 1 .786 1.293 1.371 1.879A2.99 2.99 0 0113 13a2.99 2.99 0 01-.879 2.121z",clipRule:"evenodd"})}),(0,e.jsxs)("div",{children:[(0,e.jsx)("h1",{className:"text-3xl font-bold",children:"\u{1F525} Hot Projects"}),(0,e.jsx)("p",{className:"text-red-100",children:"The most popular and trending projects right now"})]})]})})}),(0,e.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:[d&&(0,e.jsxs)("div",{className:"flex justify-center items-center py-12",children:[(0,e.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-red-600"}),(0,e.jsx)("span",{className:"ml-3 text-gray-600",children:"Loading hot projects..."})]}),s&&(0,e.jsx)("div",{className:"bg-red-50 border border-red-200 rounded-md p-4 mb-6",children:(0,e.jsxs)("div",{className:"flex",children:[(0,e.jsx)("svg",{className:"h-5 w-5 text-red-400",fill:"currentColor",viewBox:"0 0 20 20",children:(0,e.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})}),(0,e.jsxs)("div",{className:"ml-3",children:[(0,e.jsx)("h3",{className:"text-sm font-medium text-red-800",children:"Error loading projects"}),(0,e.jsx)("p",{className:"text-sm text-red-700 mt-1",children:s instanceof Error?s.message:"Unknown error"})]})]})}),i.length>0&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6 mb-8",children:i.map(t=>(0,e.jsx)(v,{project:t},t.id))}),c&&c.total_pages>1&&(0,e.jsx)(x,{pagination:c,onPageChange:N,loading:d,itemName:"hot projects"})]}),!d&&!s&&i.length===0&&(0,e.jsxs)("div",{className:"text-center py-12",children:[(0,e.jsx)("div",{className:"text-6xl mb-4",children:"\u{1F525}"}),(0,e.jsx)("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No hot projects right now"}),(0,e.jsx)("p",{className:"text-gray-600",children:"Check back later to see what's trending!"})]})]})]})},z=w;export{z as default};
2

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.