PageSourceSearch

https://mark-santiago.vercel.app/_next/static/chunks/pages/stats-e9f7f4903cd8b7af.js

js mark-santiago.vercel.app collected 2026-10-03 07:17:44 UTC 5,244 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[833],{1497:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>k});var r=a(7876),s=a(4232),i=a(8230),l=a.n(i),d=a(4587),n=a.n(d),o=a(6922),c=a(2640);async function g(e){return fetch(e).then(e=>e.json())}var u=a(3026),h=a(689),m=a(4060);function x(e){let{title:t,value:a}=e;return(0,r.jsxs)(m.P.div,{className:"flex-col justify-center py-4 origin-center transform bg-white border border-transparent rounded-md shadow select-none px-7 dark:bg-darkSecondary dark:shadow-md hover:border-gray-400 dark:hover:border-neutral-600 group",variants:c.dU,children:[(0,r.jsx)("h1",{className:"my-2 text-3xl font-bold text-gray-600 dark:text-gray-200 group-hover:text-black dark:group-hover:text-white",children:null!=a?a:(0,r.jsx)("div",{className:"h-8 bg-gray-300 rounded-sm w-28 dark:bg-neutral-700 animate-pulse"})}),(0,r.jsx)("p",{className:"text-base font-medium text-gray-600 dark:text-gray-400 group-hover:text-black dark:group-hover:text-white",children:t})]})}var p=a(3524),b=a(6069);function k(){let[e,t]=(0,s.useState)(!1),[a,i]=(0,s.useState)(!1),[d,m]=(0,s.useState)(!1),[k,y]=(0,s.useState)(!0),[v,f]=(0,s.useState)(!0),{data:j}=(0,o.Ay)("/api/stats/github",g),w=[{title:"Github Repos",value:null==j?void 0:j.repos},{title:"Github Followers",value:null==j?void 0:j.followers},{title:"Github Stars",value:null==j?void 0:j.githubStars},{title:"Repositories Forked",value:null==j?void 0:j.forks}];return((0,s.useEffect)(()=>{t(!0);let e=setTimeout(()=>{k&&(i(!0),y(!1))},1e4),a=setTimeout(()=>{v&&(m(!0),f(!1))},1e4);return()=>{clearTimeout(e),clearTimeout(a)}},[k,v]),e)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.A,{title:p.A.stats.title,description:p.A.stats.description,previewImage:p.A.stats.image,keywords:p.A.stats.keywords}),(0,r.jsxs)("section",{className:"pageTop font-inter bg-darkWhitePrimary dark:bg-darkPrimary",children:[(0,r.jsx)(b.HomeHeading,{title:"Statistics"}),(0,r.jsx)("p",{children:"Here are some statistics about my personal github."}),(0,r.jsx)(u.A,{className:"my-10",variants:c.yR,children:(0,r.jsx)("div",{className:"grid xs:grid-cols-2 sm:!grid-cols-3 xl:!grid-cols-4 gap-
15",children:w.map((e,t)=>(0,r.jsx)(x,{title:e.title,value:e.value},t))})}),(0,r.jsxs)("div",{className:"flex flex-col lg:flex-row justify-center w-full my-2 gap-4",children:[(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsx)(l(),{href:"https://github.com/marksantiago290?tab=repositories",children:a?(0,r.jsx)("div",{className:"w-full p-4 bg-gray-100 dark:bg-gray-800 rounded-lg text-center",children:(0,r.jsxs)("p",{className:"text-gray-600 dark:text-gray-400",children:["GitHub stats image failed to load.",(0,r.jsx)(l(),{href:"https://github.com/marksantiago290?tab=repositories",className:"text-blue-500 hover:underline ml-1",children:"View repositories directly"})]})}):(0,r.jsxs)(r.Fragment,{children:[k&&(0,r.jsx)("div",{className:"w-full p-4 bg-gray-100 dark:bg-gray-800 rounded-lg text-center animate-pulse",children:(0,r.jsx)("p",{className:"text-gray-600 dark:text-gray-400",children:"Loading GitHub stats..."})}),(0,r.jsx)("img",{src:"https://github-readme-stats-one-bice.vercel.app/api?username=marksantiago290&theme=gotham&show_icons=true&count_private=true&hide_border=true&role=OWNER,ORGANIZATION_MEMBER,COLLABORATOR",className:"w-full p-2",alt:"@marksantiago290's github-readme-stats",width:495,height:195,onLoad:()=>y(!1),onError:()=>{i(!0),y(!1)},style:{display:k?"none":"block"}})]})})}),(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsx)(l(),{href:"https://github.com/marksantiago290?tab=stars",children:d?(0,r.jsxs)("div",{className:"w-full p-4 bg-gray-100 dark:bg-gray-800 rounded-lg text-center",children:[(0,r.jsx)("p",{className:"text-gray-600 dark:text-gray-400 mb-2",children:"GitHub streak stats failed to load"}),(0,r.jsx)("p",{className:"text-sm text-gray-500 dark:text-gray-500",children:(0,r.jsx)(l(),{href:"https://github.com/marksantiago290?tab=stars",className:"text-blue-500 hover:underline",children:"View starred repositories"})})]}):(0,r.jsxs)(r.Fragment,{children:[v&&(0,r.jsx)("div",{className:"w-full p-4 bg-gray-100 dark:bg-gray-800 rounded-lg text-center animate-pulse",children:(0,r.jsx)("p",{className:"text-gray-600 dark:text-gray-400",children:"Loading streak stats..."})}),(0,r.jsx)(n(),{src:"https://github-readme-streak-stats.herokuapp.com?user=marksantiago290&theme=gotham&hide_border=true&date_format=M%20j%5B%2C%20Y%5D",className:"w-full p-2",alt:"@marksantiago290's github-readme-streak-stats",width:495,height:195,onLoad:()=>f(!1),onError:()=>{m(!0),f(!1)},priority:!1,style:{display:v?"none":"block"}})]})})})]})]})]}):(0,r.jsx)("section",{className:"pageTop font-inter bg-darkWhitePrimary dark:bg-darkPrimary",children:(0,r.jsx)(b.HomeHeading,{title:"Statistics"})})}},3026:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var r=a(7876),s=a(4060);function i(e){let{variants:t,className:a,children:i,infinity:l}=e;return(0,r.jsx)(s.P.div,{initial:"hidden",whileInView:"visible",viewport:{once:!l},variants:t,className:a,transition:{staggerChildren:.5},children:i})}},9844:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/stats",function(){return a(1497)}])}},e=>{e.O(0,[695,162,69,636,593,792],()=>e(e.s=9844)),_N_E=e.O()}]);

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.