diff --git a/404.html b/404.html index 0ccc089..6b932bf 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -404: This page could not be found.Kattis Leaderboard

404

This page could not be found.

\ No newline at end of file +404: This page could not be found.Kattis Leaderboard

404

This page could not be found.

\ No newline at end of file diff --git a/404/index.html b/404/index.html index 0ccc089..6b932bf 100644 --- a/404/index.html +++ b/404/index.html @@ -1 +1 @@ -404: This page could not be found.Kattis Leaderboard

404

This page could not be found.

\ No newline at end of file +404: This page could not be found.Kattis Leaderboard

404

This page could not be found.

\ No newline at end of file diff --git a/_next/static/chunks/app/page-6970357ef92e0bdc.js b/_next/static/chunks/app/page-6970357ef92e0bdc.js new file mode 100644 index 0000000..62e0afe --- /dev/null +++ b/_next/static/chunks/app/page-6970357ef92e0bdc.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{77739:(e,r,t)=>{Promise.resolve().then(t.bind(t,66763))},66763:(e,r,t)=>{"use strict";t.d(r,{LeaderboardTemplate:()=>_});var a=t(95155),s=t(88629);let l=()=>{let e=["Alice","Bob","Charlie","David","Eve"],r=[],t=Array.from({length:10},(e,r)=>new Date().getTime()-864e5*r);for(let a=0;a<5;a++){let s=t.map(e=>({date:e,score:Math.floor(100*Math.random())}));r.push({playerName:e[a],profilePictureUrl:"",scoreHistory:s,currentScore:s[s.length-1].score})}return{universityName:"University of Groningen",universityRank:Math.floor(100*Math.random()),universityScore:Math.floor(100*Math.random()),players:r}},n=()=>(0,s.I)({queryKey:["useUniversityDataQuery"],queryFn:async()=>l(),refetchInterval:1e4}),i=()=>{let e=n();return{universityData:e.data,isLoading:e.isLoading,isError:e.isError}};var g=t(12115),o=t(31027),d=t(43463),b=t(69795);function c(){for(var e=arguments.length,r=Array(e),t=0;tsvg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),f=g.forwardRef((e,r)=>{let{className:t,variant:s,...l}=e;return(0,a.jsx)("div",{ref:r,role:"alert",className:c(u({variant:s}),t),...l})});f.displayName="Alert",g.forwardRef((e,r)=>{let{className:t,...s}=e;return(0,a.jsx)("h5",{ref:r,className:c("mb-1 font-medium leading-none tracking-tight",t),...s})}).displayName="AlertTitle",g.forwardRef((e,r)=>{let{className:t,...s}=e;return(0,a.jsx)("div",{ref:r,className:c("text-sm [&_p]:leading-relaxed",t),...s})}).displayName="AlertDescription";let v=()=>(0,a.jsx)(f,{variant:"destructive",children:(0,a.jsx)("p",{children:"There was an error loading the leaderboard. Please try again later."})});var h=t(58627);let x=()=>(0,a.jsx)("div",{className:"w-full flex justify-center",children:(0,a.jsx)(h.A,{className:"w-10 h-10 text-blue-500 animate-spin"})}),m=["rgb(255, 87, 34)","rgb(255, 140, 0)","rgb(255, 193, 7)","rgb(255, 235, 59)","rgb(255, 152, 0)","rgb(255, 87, 34)","rgb(255, 193, 7)","rgb(255, 235, 59)","rgb(255, 152, 0)","rgb(255, 87, 34)","rgb(255, 140, 0)","rgb(255, 193, 7)","rgb(255, 235, 59)","rgb(255, 152, 0)","rgb(255, 87, 34)","rgb(255, 140, 0)","rgb(255, 193, 7)","rgb(255, 235, 59)","rgb(255, 152, 0)","rgb(255, 87, 34)","rgb(255, 140, 0)","rgb(255, 193, 7)","rgb(255, 235, 59)","rgb(255, 152, 0)","rgb(255, 87, 34)","rgb(255, 140, 0)","rgb(255, 193, 7)","rgb(255, 235, 59)","rgb(255, 152, 0)","rgb(255, 87, 34)","rgb(255, 140, 0)","rgb(255, 193, 7)","rgb(255, 235, 59)","rgb(255, 152, 0)","rgb(255, 87, 34)","rgb(255, 140, 0)","rgb(255, 193, 7)","rgb(255, 235, 59)","rgb(255, 152, 0)","rgb(255, 87, 34)","rgb(255, 152, 0)]","rgb(255, 193, 7)","rgb(255, 235, 59)","rgb(255, 152, 0)","rgb(255, 87, 34)","rgb(255, 140, 0)","rgb(255, 193, 7)","rgb(255, 235, 59)","rgb(255, 152, 0)"];var y=t(4569),p=t(12800),j=t(66963),N=t(15255),w=t(16161);let k=e=>{let r={};return e.forEach(e=>{e.scoreHistory.forEach(t=>{t.date in r||(r[t.date]={date:t.date}),r[t.date][e.playerName]=t.score})}),Object.values(r)},A=e=>(console.log(m),m[function(e,r){let t=0;for(let r=0;r{let{data:r}=e,t=r.players.slice(0,5).map(e=>e.playerName);return(0,a.jsxs)("div",{className:"flex flex-col gap-4 items-center",children:[(0,a.jsxs)("h2",{className:"w-full text-2xl font-bold",children:[r.universityName," (",r.universityRank,")"]}),(0,a.jsxs)("p",{className:"w-full text-2xl font-bold",children:["Score: ",r.universityScore]}),(0,a.jsxs)(y.b,{width:800,height:400,data:k(r.players),children:[(0,a.jsx)(p.W,{dataKey:"date"}),(0,a.jsx)(j.h,{}),(0,a.jsx)(N.d,{stroke:"#eee",strokeDasharray:"5 5"}),t.map(e=>(0,a.jsx)(w.N,{type:"monotone",dataKey:e,stroke:A(e)},e)),(0,a.jsx)(j.h,{})]})]})},_=()=>{let{universityData:e,isLoading:r,isError:t}=i();return(0,a.jsxs)("div",{className:"p-4 flex gap-4 flex-col",children:[(0,a.jsx)("h1",{className:"text-3xl font-bold",children:"Leaderboard"}),t&&(0,a.jsx)(v,{}),r&&(0,a.jsx)(x,{}),e&&(0,a.jsx)(E,{data:e})]})}}},e=>{var r=r=>e(e.s=r);e.O(0,[527,113,441,517,358],()=>r(77739)),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/page-da6f58ca721c6c35.js b/_next/static/chunks/app/page-da6f58ca721c6c35.js deleted file mode 100644 index 8e73dd6..0000000 --- a/_next/static/chunks/app/page-da6f58ca721c6c35.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{77739:(e,r,t)=>{Promise.resolve().then(t.bind(t,74455))},74455:(e,r,t)=>{"use strict";t.d(r,{LeaderboardTemplate:()=>E});var a=t(95155),s=t(88629);let l=()=>{let e=["Alice","Bob","Charlie","David","Eve"],r=[],t=Array.from({length:10},(e,r)=>new Date().getTime()-864e5*r);for(let a=0;a<5;a++){let s=t.map(e=>({date:e,score:Math.floor(100*Math.random())}));r.push({playerName:e[a],scoreHistory:s,currentScore:s[s.length-1].score})}return{universityName:"University of Groningen",universityRank:Math.floor(100*Math.random()),universityScore:Math.floor(100*Math.random()),players:r}},i=()=>(0,s.I)({queryKey:["useUniversityDataQuery"],queryFn:async()=>l(),refetchInterval:1e4}),n=()=>{let e=i();return{universityData:e.data,isLoading:e.isLoading,isError:e.isError}};var d=t(12115),o=t(31027),c=t(43463),u=t(69795);function v(){for(var e=arguments.length,r=Array(e),t=0;tsvg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),x=d.forwardRef((e,r)=>{let{className:t,variant:s,...l}=e;return(0,a.jsx)("div",{ref:r,role:"alert",className:v(f({variant:s}),t),...l})});x.displayName="Alert",d.forwardRef((e,r)=>{let{className:t,...s}=e;return(0,a.jsx)("h5",{ref:r,className:v("mb-1 font-medium leading-none tracking-tight",t),...s})}).displayName="AlertTitle",d.forwardRef((e,r)=>{let{className:t,...s}=e;return(0,a.jsx)("div",{ref:r,className:v("text-sm [&_p]:leading-relaxed",t),...s})}).displayName="AlertDescription";let h=()=>(0,a.jsx)(x,{variant:"destructive",children:(0,a.jsx)("p",{children:"There was an error loading the leaderboard. Please try again later."})});var m=t(58627);let y=()=>(0,a.jsx)("div",{className:"w-full flex justify-center",children:(0,a.jsx)(m.A,{className:"w-10 h-10 text-blue-500 animate-spin"})});var p=t(4569),g=t(12800),j=t(66963),N=t(15255),b=t(16161);let w=e=>{let r={};return e.forEach(e=>{e.scoreHistory.forEach(t=>{t.date in r||(r[t.date]={date:t.date}),r[t.date][e.playerName]=t.score})}),Object.values(r)},k=e=>{let{data:r}=e,t=r.players.slice(0,5).map(e=>e.playerName);return(0,a.jsxs)("div",{className:"flex flex-col gap-4 items-center",children:[(0,a.jsxs)("h2",{className:"w-full text-2xl font-bold",children:[r.universityName," (",r.universityRank,")"]}),(0,a.jsxs)("p",{className:"w-full text-2xl font-bold",children:["Score: ",r.universityScore]}),(0,a.jsxs)(p.b,{width:800,height:400,data:w(r.players),children:[(0,a.jsx)(g.W,{dataKey:"date"}),(0,a.jsx)(j.h,{}),(0,a.jsx)(N.d,{stroke:"#eee",strokeDasharray:"5 5"}),t.map(e=>(0,a.jsx)(b.N,{type:"monotone",dataKey:e},e)),(0,a.jsx)(j.h,{})]})]})},E=()=>{let{universityData:e,isLoading:r,isError:t}=n();return(0,a.jsxs)("div",{className:"p-4 flex gap-4 flex-col",children:[(0,a.jsx)("h1",{className:"text-3xl font-bold",children:"Leaderboard"}),t&&(0,a.jsx)(h,{}),r&&(0,a.jsx)(y,{}),e&&(0,a.jsx)(k,{data:e})]})}}},e=>{var r=r=>e(e.s=r);e.O(0,[527,113,441,517,358],()=>r(77739)),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/4QN3bI6KmXSXwPtRlNg1W/_buildManifest.js b/_next/static/gfOdXegEoNmuPIyFQJi16/_buildManifest.js similarity index 100% rename from _next/static/4QN3bI6KmXSXwPtRlNg1W/_buildManifest.js rename to _next/static/gfOdXegEoNmuPIyFQJi16/_buildManifest.js diff --git a/_next/static/4QN3bI6KmXSXwPtRlNg1W/_ssgManifest.js b/_next/static/gfOdXegEoNmuPIyFQJi16/_ssgManifest.js similarity index 100% rename from _next/static/4QN3bI6KmXSXwPtRlNg1W/_ssgManifest.js rename to _next/static/gfOdXegEoNmuPIyFQJi16/_ssgManifest.js diff --git a/index.html b/index.html index 29263b5..2e299cb 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Kattis Leaderboard

Leaderboard

\ No newline at end of file +Kattis Leaderboard

Leaderboard

\ No newline at end of file diff --git a/index.txt b/index.txt index e7c4d8a..3a68617 100644 --- a/index.txt +++ b/index.txt @@ -3,7 +3,7 @@ 3:I[15244,[],""] 4:I[43866,[],""] 5:I[57033,[],"ClientPageRoot"] -6:I[74455,["527","static/chunks/527-9c8663c076f6881f.js","113","static/chunks/113-2a463a01b8083d74.js","974","static/chunks/app/page-da6f58ca721c6c35.js"],"LeaderboardTemplate"] +6:I[66763,["527","static/chunks/527-9c8663c076f6881f.js","113","static/chunks/113-2a463a01b8083d74.js","974","static/chunks/app/page-6970357ef92e0bdc.js"],"LeaderboardTemplate"] 9:I[86213,[],"OutletBoundary"] b:I[86213,[],"MetadataBoundary"] d:I[86213,[],"ViewportBoundary"] @@ -11,7 +11,7 @@ f:I[34835,[],""] :HL["/kattis-leaderboard/_next/static/media/569ce4b8f30dc480-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/kattis-leaderboard/_next/static/media/93f479601ee12b01-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/kattis-leaderboard/_next/static/css/23105d94770bf0f8.css","style"] -0:{"P":null,"b":"4QN3bI6KmXSXwPtRlNg1W","p":"/kattis-leaderboard","c":["",""],"i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/kattis-leaderboard/_next/static/css/23105d94770bf0f8.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"__variable_f0bdd0 __variable_55bf1e antialiased","children":["$","$L2",null,{"children":["$","main",null,{"className":"max-w-3xl mx-auto px-4 py-8","children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L5",null,{"Component":"$6","searchParams":{},"params":{},"promises":["$@7","$@8"]}],null,["$","$L9",null,{"children":"$La"}]]}],{},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","n6_mnOxapSWM-Fd203ZvT",{"children":[["$","$Lb",null,{"children":"$Lc"}],["$","$Ld",null,{"children":"$Le"}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}]]}],false]],"m":"$undefined","G":["$f","$undefined"],"s":false,"S":true} +0:{"P":null,"b":"gfOdXegEoNmuPIyFQJi16","p":"/kattis-leaderboard","c":["",""],"i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/kattis-leaderboard/_next/static/css/23105d94770bf0f8.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"__variable_f0bdd0 __variable_55bf1e antialiased","children":["$","$L2",null,{"children":["$","main",null,{"className":"max-w-3xl mx-auto px-4 py-8","children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L5",null,{"Component":"$6","searchParams":{},"params":{},"promises":["$@7","$@8"]}],null,["$","$L9",null,{"children":"$La"}]]}],{},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","q5EacKJ2SpE9shO9xakE9",{"children":[["$","$Lb",null,{"children":"$Lc"}],["$","$Ld",null,{"children":"$Le"}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}]]}],false]],"m":"$undefined","G":["$f","$undefined"],"s":false,"S":true} 7:{} 8:{} e:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]