fix: update match configuration to bestOf 5 and scoringType to score_v2
This commit is contained in:
1
build/client/_app/immutable/nodes/0.9C686m9W.js
Normal file
1
build/client/_app/immutable/nodes/0.9C686m9W.js
Normal file
@@ -0,0 +1 @@
|
||||
import"../chunks/DsnmJJEf.js";import{c as n,f as m,a as p}from"../chunks/BxEwC6Zc.js";import{s as e}from"../chunks/CyUoLS3q.js";function f(a,r){var o=n(),t=m(o);e(t,()=>r.children),p(a,o)}export{f as component};
|
||||
BIN
build/client/_app/immutable/nodes/0.9C686m9W.js.br
Normal file
BIN
build/client/_app/immutable/nodes/0.9C686m9W.js.br
Normal file
Binary file not shown.
BIN
build/client/_app/immutable/nodes/0.9C686m9W.js.gz
Normal file
BIN
build/client/_app/immutable/nodes/0.9C686m9W.js.gz
Normal file
Binary file not shown.
1
build/client/_app/immutable/nodes/1.RyK1bdTz.js
Normal file
1
build/client/_app/immutable/nodes/1.RyK1bdTz.js
Normal file
@@ -0,0 +1 @@
|
||||
import"../chunks/DsnmJJEf.js";import{i as w}from"../chunks/TpZZa089.js";import{p as A,t as j,a,b as B,d as D,e as s,r,s as x,n as N,g as i}from"../chunks/BxEwC6Zc.js";import{s as f}from"../chunks/DoLu9QLy.js";import{i as P}from"../chunks/BQKoxf2Q.js";import{p as o}from"../chunks/D2SGgx9j.js";var S=D('<div class="flex min-h-dvh items-center justify-center bg-surface-900"><div class="text-center"><p class="text-6xl font-800 text-accent"> </p> <h1 class="mt-4 text-xl font-700 text-text-primary"><!></h1> <p class="mt-2 text-sm text-text-secondary"> </p> <a href="/" class="mt-6 inline-block rounded-md bg-accent px-5 py-2.5 text-sm font-600 text-surface-900 transition-colors hover:bg-accent-hover">Back to Dashboard</a></div></div>');function H(l,d){A(d,!1),w();var n=S(),m=s(n),c=s(m),u=s(c,!0);r(c);var p=x(c,2),h=s(p);{var g=t=>{var e=i("Page not found");a(t,e)},_=t=>{var e=i("Access denied");a(t,e)},b=t=>{var e=i("Not logged in");a(t,e)},y=t=>{var e=i("Something went wrong");a(t,e)};P(h,t=>{o.status===404?t(g):o.status===403?t(_,1):o.status===401?t(b,2):t(y,!1)})}r(p);var v=x(p,2),k=s(v,!0);r(v),N(2),r(m),r(n),j(()=>{f(u,o.status),f(k,o.error?.message??"An unexpected error occurred.")}),a(l,n),B()}export{H as component};
|
||||
BIN
build/client/_app/immutable/nodes/1.RyK1bdTz.js.br
Normal file
BIN
build/client/_app/immutable/nodes/1.RyK1bdTz.js.br
Normal file
Binary file not shown.
BIN
build/client/_app/immutable/nodes/1.RyK1bdTz.js.gz
Normal file
BIN
build/client/_app/immutable/nodes/1.RyK1bdTz.js.gz
Normal file
Binary file not shown.
1
build/client/_app/immutable/nodes/10.BPlEN6_G.js
Normal file
1
build/client/_app/immutable/nodes/10.BPlEN6_G.js
Normal file
File diff suppressed because one or more lines are too long
BIN
build/client/_app/immutable/nodes/10.BPlEN6_G.js.br
Normal file
BIN
build/client/_app/immutable/nodes/10.BPlEN6_G.js.br
Normal file
Binary file not shown.
BIN
build/client/_app/immutable/nodes/10.BPlEN6_G.js.gz
Normal file
BIN
build/client/_app/immutable/nodes/10.BPlEN6_G.js.gz
Normal file
Binary file not shown.
1
build/client/_app/immutable/nodes/11.DR1Vz7m0.js
Normal file
1
build/client/_app/immutable/nodes/11.DR1Vz7m0.js
Normal file
@@ -0,0 +1 @@
|
||||
import"../chunks/DsnmJJEf.js";import{i as o}from"../chunks/TpZZa089.js";import{p,t as s,a as m,b as f,d as i}from"../chunks/BxEwC6Zc.js";import{s as n}from"../chunks/BnX5ZnVA.js";import{b as u,r as b}from"../chunks/DAtZQVjv.js";const h="";function _(...t){return u+h+b(t[0],t[1])}var c=i("<a>better-auth</a>");function j(t,a){p(a,!1),o();var e=c();s(r=>n(e,"href",r),[()=>_("/demo/better-auth")]),m(t,e),f()}export{j as component};
|
||||
BIN
build/client/_app/immutable/nodes/11.DR1Vz7m0.js.br
Normal file
BIN
build/client/_app/immutable/nodes/11.DR1Vz7m0.js.br
Normal file
Binary file not shown.
BIN
build/client/_app/immutable/nodes/11.DR1Vz7m0.js.gz
Normal file
BIN
build/client/_app/immutable/nodes/11.DR1Vz7m0.js.gz
Normal file
Binary file not shown.
1
build/client/_app/immutable/nodes/12.C9UZWAjJ.js
Normal file
1
build/client/_app/immutable/nodes/12.C9UZWAjJ.js
Normal file
@@ -0,0 +1 @@
|
||||
import"../chunks/DsnmJJEf.js";import{p as h,f as c,t as b,a as l,b as v,d as g,e as o,r as s,s as i}from"../chunks/BxEwC6Zc.js";import{s as n}from"../chunks/DoLu9QLy.js";import{a as x,e as _}from"../chunks/BAocuFgQ.js";var w=g('<h1> </h1> <p> </p> <form method="post" action="?/signOut"><button class="rounded-md bg-blue-600 px-4 py-2 text-white transition hover:bg-blue-700">Sign out</button></form>',1);function O(m,t){h(t,!0);var r=w(),a=c(r),p=o(a);s(a);var e=i(a,2),u=o(e);s(e);var f=i(e,2);x(f,d=>_?.(d)),b(()=>{n(p,`Hi, ${t.data.user.name??""}!`),n(u,`Your user ID is ${t.data.user.id??""}.`)}),l(m,r),v()}export{O as component};
|
||||
BIN
build/client/_app/immutable/nodes/12.C9UZWAjJ.js.br
Normal file
BIN
build/client/_app/immutable/nodes/12.C9UZWAjJ.js.br
Normal file
Binary file not shown.
BIN
build/client/_app/immutable/nodes/12.C9UZWAjJ.js.gz
Normal file
BIN
build/client/_app/immutable/nodes/12.C9UZWAjJ.js.gz
Normal file
Binary file not shown.
1
build/client/_app/immutable/nodes/13.CyZ4e6yK.js
Normal file
1
build/client/_app/immutable/nodes/13.CyZ4e6yK.js
Normal file
@@ -0,0 +1 @@
|
||||
import"../chunks/DsnmJJEf.js";import{p as b,s as t,f as d,t as p,a as c,b as f,d as g,e as h,r as y}from"../chunks/BxEwC6Zc.js";import{s as w}from"../chunks/DoLu9QLy.js";import{a as n,e as i}from"../chunks/BAocuFgQ.js";var x=g('<h1>Login</h1> <form method="post" action="?/signInEmail"><label>Email <input type="email" name="email" class="mt-1 rounded-md border border-gray-300 bg-white px-3 py-2 shadow-sm focus:border-blue-500 focus:ring-2 focus:ring-blue-500 focus:outline-none"/></label> <label>Password <input type="password" name="password" class="mt-1 rounded-md border border-gray-300 bg-white px-3 py-2 shadow-sm focus:border-blue-500 focus:ring-2 focus:ring-blue-500 focus:outline-none"/></label> <label>Name (for registration) <input name="name" class="mt-1 rounded-md border border-gray-300 bg-white px-3 py-2 shadow-sm focus:border-blue-500 focus:ring-2 focus:ring-blue-500 focus:outline-none"/></label> <button class="rounded-md bg-blue-600 px-4 py-2 text-white transition hover:bg-blue-700">Login</button> <button formaction="?/signUpEmail" class="rounded-md bg-blue-600 px-4 py-2 text-white transition hover:bg-blue-700">Register</button></form> <p class="text-red-500"> </p> <hr class="my-4"/> <form method="post" action="?/signInSocial"><input type="hidden" name="provider" value="osu"/> <input type="hidden" name="callbackURL" value="/demo/better-auth"/> <button class="rounded-md bg-blue-600 px-4 py-2 text-white transition hover:bg-blue-700">Sign in with osu!</button></form>',1);function I(u,r){b(r,!0);var a=x(),s=t(d(a),2);n(s,o=>i?.(o));var e=t(s,2),l=h(e,!0);y(e);var m=t(e,4);n(m,o=>i?.(o)),p(()=>w(l,r.form?.message??"")),c(u,a),f()}export{I as component};
|
||||
BIN
build/client/_app/immutable/nodes/13.CyZ4e6yK.js.br
Normal file
BIN
build/client/_app/immutable/nodes/13.CyZ4e6yK.js.br
Normal file
Binary file not shown.
BIN
build/client/_app/immutable/nodes/13.CyZ4e6yK.js.gz
Normal file
BIN
build/client/_app/immutable/nodes/13.CyZ4e6yK.js.gz
Normal file
Binary file not shown.
1
build/client/_app/immutable/nodes/2.BsR2_q_w.js
Normal file
1
build/client/_app/immutable/nodes/2.BsR2_q_w.js
Normal file
File diff suppressed because one or more lines are too long
BIN
build/client/_app/immutable/nodes/2.BsR2_q_w.js.br
Normal file
BIN
build/client/_app/immutable/nodes/2.BsR2_q_w.js.br
Normal file
Binary file not shown.
BIN
build/client/_app/immutable/nodes/2.BsR2_q_w.js.gz
Normal file
BIN
build/client/_app/immutable/nodes/2.BsR2_q_w.js.gz
Normal file
Binary file not shown.
3
build/client/_app/immutable/nodes/3.CMuy9Bx3.js
Normal file
3
build/client/_app/immutable/nodes/3.CMuy9Bx3.js
Normal file
File diff suppressed because one or more lines are too long
BIN
build/client/_app/immutable/nodes/3.CMuy9Bx3.js.br
Normal file
BIN
build/client/_app/immutable/nodes/3.CMuy9Bx3.js.br
Normal file
Binary file not shown.
BIN
build/client/_app/immutable/nodes/3.CMuy9Bx3.js.gz
Normal file
BIN
build/client/_app/immutable/nodes/3.CMuy9Bx3.js.gz
Normal file
Binary file not shown.
1
build/client/_app/immutable/nodes/4.BdC-uDW-.js
Normal file
1
build/client/_app/immutable/nodes/4.BdC-uDW-.js
Normal file
@@ -0,0 +1 @@
|
||||
import"../chunks/DsnmJJEf.js";import{p as Z,t as p,a as c,b as $,d as x,e as t,s as o,r as a,k as r,j as ee,i as O,l as te}from"../chunks/BxEwC6Zc.js";import{d as ae,s as i,a as re}from"../chunks/DoLu9QLy.js";import{i as S}from"../chunks/BQKoxf2Q.js";import{e as se,i as oe}from"../chunks/BLQQas77.js";import{a as ne,e as le}from"../chunks/BAocuFgQ.js";import{r as ie,a as de,s as pe}from"../chunks/BnX5ZnVA.js";import{s as ce}from"../chunks/BqOsL1Vv.js";import{i as xe,s as ve}from"../chunks/Cy2QBcXt.js";var me=x('<p class="mt-3 text-sm text-red-400"> </p>'),_e=x('<img alt="" class="h-8 w-8 rounded-full"/>'),ue=x('<div class="flex h-8 w-8 items-center justify-center rounded-full bg-surface-600 text-xs font-700 text-text-secondary"> </div>'),fe=x('<div class="grid grid-cols-[auto_1fr_auto_auto_auto] items-center gap-4 border-b border-border/50 px-4 py-3 last:border-b-0"><!> <div class="min-w-0"><p class="truncate text-sm font-500"> </p> <p class="truncate text-xs text-text-secondary"> </p></div> <span class="text-sm font-600 tabular-nums text-text-primary"> </span> <span class="text-xs tabular-nums text-text-secondary"><span class="text-green-400"> </span> / <span class="text-red-400"> </span></span> <form method="post" action="?/setRole" class="flex items-center gap-2"><input type="hidden" name="userId"/> <select name="role"><option class="bg-surface-800 text-text-primary">Player</option><option class="bg-surface-800 text-text-primary">Referee</option><option class="bg-surface-800 text-text-primary">Admin</option></select></form></div>'),be=x('<div class="mx-auto max-w-4xl"><div><h1 class="text-2xl font-700 tracking-tight">Admin Panel</h1> <p class="mt-1 text-sm text-text-secondary"> </p></div> <!> <div class="mt-6 rounded-lg border border-border bg-surface-800"><div class="grid grid-cols-[auto_1fr_auto_auto_auto] gap-4 border-b border-border px-4 py-3"><span class="text-xs font-600 text-text-secondary">Avatar</span> <span class="text-xs font-600 text-text-secondary">User</span> <span class="text-xs font-600 text-text-secondary">ELO</span> <span class="text-xs font-600 text-text-secondary">W/L</span> <span class="text-xs font-600 text-text-secondary">Role</span></div> <!></div></div>');function je(T,v){Z(v,!0);let m=ee("");const j={player:{label:"Player",color:"bg-surface-600 text-text-secondary border-border"},referee:{label:"Referee",color:"bg-yellow-500/20 text-yellow-400 border-yellow-500/30"},admin:{label:"Admin",color:"bg-red-500/20 text-red-400 border-red-500/30"}};var _=be(),u=t(_),E=o(t(u),2),z=t(E);a(E),a(u);var U=o(u,2);{var D=d=>{var e=me(),f=t(e,!0);a(e),p(()=>i(f,r(m))),c(d,e)};S(U,d=>{r(m)&&d(D)})}var W=o(U,2),G=o(t(W),2);se(G,17,()=>v.data.users,oe,(d,e)=>{const f=te(()=>j[r(e).role]??j.player);var b=fe(),q=t(b);{var H=s=>{var l=_e();p(()=>pe(l,"src",r(e).image)),c(s,l)},J=s=>{var l=ue(),X=t(l,!0);a(l),p(Y=>i(X,Y),[()=>r(e).name.charAt(0).toUpperCase()]),c(s,l)};S(q,s=>{r(e).image?s(H):s(J,!1)})}var g=o(q,2),y=t(g),K=t(y,!0);a(y);var B=o(y,2),M=t(B,!0);a(B),a(g);var h=o(g,2),N=t(h,!0);a(h);var w=o(h,2),A=t(w),Q=t(A);a(A);var C=o(A,2),V=t(C);a(C),a(w);var R=o(w,2),k=t(R);ie(k);var n=o(k,2),L=t(n);L.value=L.__value="player";var P=o(L);P.value=P.__value="referee";var F=o(P);F.value=F.__value="admin",a(n);var I;xe(n),a(R),ne(R,(s,l)=>le?.(s,l),()=>()=>(O(m,""),async({result:s})=>{(s.type==="failure"||s.type==="success"&&s.data?.error)&&O(m,s.data?.error??"Failed to update role",!0)})),a(b),p(()=>{i(K,r(e).name),i(M,r(e).email),i(N,r(e).elo),i(Q,`${r(e).wins??""}W`),i(V,`${r(e).losses??""}L`),de(k,r(e).id),ce(n,1,`rounded-md border px-2 py-1 text-xs font-500 ${r(f).color??""} cursor-pointer bg-transparent focus:outline-none`),I!==(I=r(e).role)&&(n.value=(n.__value=r(e).role)??"",ve(n,r(e).role))}),re("change",n,s=>s.currentTarget.form?.requestSubmit()),c(d,b)}),a(W),a(_),p(()=>i(z,`${v.data.users.length??""} registered user${v.data.users.length!==1?"s":""}`)),c(T,_),$()}ae(["change"]);export{je as component};
|
||||
BIN
build/client/_app/immutable/nodes/4.BdC-uDW-.js.br
Normal file
BIN
build/client/_app/immutable/nodes/4.BdC-uDW-.js.br
Normal file
Binary file not shown.
BIN
build/client/_app/immutable/nodes/4.BdC-uDW-.js.gz
Normal file
BIN
build/client/_app/immutable/nodes/4.BdC-uDW-.js.gz
Normal file
Binary file not shown.
2
build/client/_app/immutable/nodes/5.CyqZcxti.js
Normal file
2
build/client/_app/immutable/nodes/5.CyqZcxti.js
Normal file
@@ -0,0 +1,2 @@
|
||||
import"../chunks/DsnmJJEf.js";import{p as M,t as y,a as d,b as N,k as t,d as i,e as o,s as c,r as a,n as P,i as $,j as q}from"../chunks/BxEwC6Zc.js";import{d as A,a as F,s as v}from"../chunks/DoLu9QLy.js";import{i as G}from"../chunks/BQKoxf2Q.js";import{e as L,i as S}from"../chunks/BLQQas77.js";import{a as z,e as B}from"../chunks/BAocuFgQ.js";import{s as E}from"../chunks/BnX5ZnVA.js";var H=i('<form method="post" action="?/create" class="mt-4 flex gap-3 rounded-lg border border-border bg-surface-800 p-4"><input type="text" name="name" placeholder="Pool name (e.g. Grand Finals Mappool)" required="" class="flex-1 rounded-md border border-border bg-surface-700 px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary/50 focus:border-accent focus:outline-none"/> <button type="submit" class="rounded-md bg-accent px-4 py-2 text-sm font-600 text-surface-900 transition-colors hover:bg-accent-hover">Create</button></form>'),I=i('<a class="group flex items-center justify-between rounded-lg border border-border bg-surface-800 p-4 transition-colors hover:border-accent/40 hover:bg-surface-700"><div><h2 class="text-sm font-600"> </h2> <p class="mt-1 text-xs text-text-secondary"> </p></div> <span class="text-text-secondary transition-colors group-hover:text-accent">→</span></a>'),J=i('<div class="rounded-lg border border-dashed border-border py-12 text-center"><p class="text-sm text-text-secondary">No mappools yet. Create one to get started.</p></div>'),K=i('<div class="mx-auto max-w-4xl"><div class="flex items-center justify-between"><div><h1 class="text-2xl font-700 tracking-tight">Mappools</h1> <p class="mt-1 text-sm text-text-secondary">Create and manage your beatmap pools</p></div> <button class="rounded-md bg-accent px-4 py-2 text-sm font-600 text-surface-900 transition-colors hover:bg-accent-hover"> </button></div> <!> <div class="mt-6 flex flex-col gap-3"></div></div>');function X(_,f){M(f,!0);let n=q(!1);var l=K(),p=o(l),m=c(o(p),2),k=o(m,!0);a(m),a(p);var b=c(p,2);{var w=r=>{var e=H();z(e,s=>B?.(s)),d(r,e)};G(b,r=>{t(n)&&r(w)})}var u=c(b,2);L(u,21,()=>f.data.mappools,S,(r,e)=>{var s=I(),g=o(s),x=o(g),C=o(x,!0);a(x);var h=c(x,2),j=o(h);a(h),a(g),P(2),a(s),y(D=>{E(s,"href",`/mappools/${t(e).id??""}`),v(C,t(e).name),v(j,`${t(e).slots.length??""} map${t(e).slots.length!==1?"s":""}
|
||||
· Created ${D??""}`)},[()=>new Date(t(e).createdAt).toLocaleDateString()]),d(r,s)},r=>{var e=J();d(r,e)}),a(u),a(l),y(()=>v(k,t(n)?"Cancel":"New Pool")),F("click",m,()=>$(n,!t(n))),d(_,l),N()}A(["click"]);export{X as component};
|
||||
BIN
build/client/_app/immutable/nodes/5.CyqZcxti.js.br
Normal file
BIN
build/client/_app/immutable/nodes/5.CyqZcxti.js.br
Normal file
Binary file not shown.
BIN
build/client/_app/immutable/nodes/5.CyqZcxti.js.gz
Normal file
BIN
build/client/_app/immutable/nodes/5.CyqZcxti.js.gz
Normal file
Binary file not shown.
1
build/client/_app/immutable/nodes/6.CEe0czaO.js
Normal file
1
build/client/_app/immutable/nodes/6.CEe0czaO.js
Normal file
File diff suppressed because one or more lines are too long
BIN
build/client/_app/immutable/nodes/6.CEe0czaO.js.br
Normal file
BIN
build/client/_app/immutable/nodes/6.CEe0czaO.js.br
Normal file
Binary file not shown.
BIN
build/client/_app/immutable/nodes/6.CEe0czaO.js.gz
Normal file
BIN
build/client/_app/immutable/nodes/6.CEe0czaO.js.gz
Normal file
Binary file not shown.
1
build/client/_app/immutable/nodes/7._nuD3LlN.js
Normal file
1
build/client/_app/immutable/nodes/7._nuD3LlN.js
Normal file
File diff suppressed because one or more lines are too long
BIN
build/client/_app/immutable/nodes/7._nuD3LlN.js.br
Normal file
BIN
build/client/_app/immutable/nodes/7._nuD3LlN.js.br
Normal file
Binary file not shown.
BIN
build/client/_app/immutable/nodes/7._nuD3LlN.js.gz
Normal file
BIN
build/client/_app/immutable/nodes/7._nuD3LlN.js.gz
Normal file
Binary file not shown.
1
build/client/_app/immutable/nodes/8.CkbqikZq.js
Normal file
1
build/client/_app/immutable/nodes/8.CkbqikZq.js
Normal file
File diff suppressed because one or more lines are too long
BIN
build/client/_app/immutable/nodes/8.CkbqikZq.js.br
Normal file
BIN
build/client/_app/immutable/nodes/8.CkbqikZq.js.br
Normal file
Binary file not shown.
BIN
build/client/_app/immutable/nodes/8.CkbqikZq.js.gz
Normal file
BIN
build/client/_app/immutable/nodes/8.CkbqikZq.js.gz
Normal file
Binary file not shown.
1
build/client/_app/immutable/nodes/9.BTBc_Eli.js
Normal file
1
build/client/_app/immutable/nodes/9.BTBc_Eli.js
Normal file
@@ -0,0 +1 @@
|
||||
import"../chunks/DsnmJJEf.js";import{p as lt,t as l,a as o,b as vt,d as n,s as d,e as t,r as e,n as v,k as c,l as D,g as G}from"../chunks/BxEwC6Zc.js";import{s as i}from"../chunks/DoLu9QLy.js";import{i as k}from"../chunks/BQKoxf2Q.js";import{a as ct,e as xt}from"../chunks/BAocuFgQ.js";import{s as H}from"../chunks/BnX5ZnVA.js";import{s as ft}from"../chunks/BqOsL1Vv.js";var mt=n('<img class="h-16 w-16 rounded-full"/>'),pt=n('<div class="flex h-16 w-16 items-center justify-center rounded-full bg-surface-600 text-xl font-700 text-text-secondary"> </div>'),ut=n('<span class="rounded bg-green-500/20 px-2 py-0.5 text-xs font-500 text-green-400">Linked</span>'),gt=n('<a href="/api/auth/osu/login" class="rounded bg-accent px-3 py-1 text-xs font-600 text-surface-900 hover:bg-accent-hover">Connect</a>'),_t=n('<div class="mx-auto max-w-2xl"><h1 class="text-2xl font-700 tracking-tight">Settings</h1> <p class="mt-1 text-sm text-text-secondary">Your profile and account settings</p> <div class="mt-6 rounded-lg border border-border bg-surface-800 p-6"><div class="flex items-center gap-4"><!> <div class="flex-1"><div class="flex items-center gap-2"><h2 class="text-lg font-700"> </h2> <span> </span></div> <p class="mt-0.5 text-sm text-text-secondary"> </p></div></div> <div class="mt-6 border-t border-border pt-4"><h3 class="text-xs font-600 text-text-secondary uppercase tracking-wider">Connected Accounts</h3> <div class="mt-3 flex items-center gap-3 rounded-md bg-surface-700 px-4 py-3"><span class="text-lg">🎮</span> <div class="flex-1"><p class="text-sm font-500">osu!</p> <p class="text-xs text-text-secondary"><!></p></div> <!></div></div></div> <div class="mt-4 rounded-lg border border-border bg-surface-800 p-6"><h3 class="text-xs font-600 text-text-secondary uppercase tracking-wider">Ranked Stats</h3> <div class="mt-4 grid grid-cols-4 gap-4"><div><p class="text-2xl font-800 tabular-nums text-accent"> </p> <p class="mt-1 text-xs text-text-secondary">ELO Rating</p></div> <div><p class="text-2xl font-800 tabular-nums text-green-400"> </p> <p class="mt-1 text-xs text-text-secondary">Wins</p></div> <div><p class="text-2xl font-800 tabular-nums text-red-400"> </p> <p class="mt-1 text-xs text-text-secondary">Losses</p></div> <div><p class="text-2xl font-800 tabular-nums text-text-primary"> </p> <p class="mt-1 text-xs text-text-secondary">Win Rate</p></div></div></div> <div class="mt-4 rounded-lg border border-border bg-surface-800 p-6"><h3 class="text-xs font-600 text-red-400 uppercase tracking-wider">Account</h3> <div class="mt-4"><form method="post" action="?/logout"><button type="submit" class="rounded-md border border-red-500/30 px-4 py-2 text-sm font-500 text-red-400 transition-colors hover:bg-red-500/10">Sign Out</button></form></div></div></div>');function At(I,r){lt(r,!0);const L={player:{label:"Player",color:"bg-surface-600 text-text-secondary"},referee:{label:"Referee",color:"bg-yellow-500/20 text-yellow-400"},admin:{label:"Admin",color:"bg-red-500/20 text-red-400"}},R=D(()=>L[r.data.profile.role]??L.player),A=D(()=>r.data.rating.wins+r.data.rating.losses>0?(r.data.rating.wins/(r.data.rating.wins+r.data.rating.losses)*100).toFixed(1):"—");var x=_t(),f=d(t(x),4),m=t(f),C=t(m);{var J=a=>{var s=mt();l(()=>{H(s,"src",r.data.profile.image),H(s,"alt",r.data.profile.name)}),o(a,s)},K=a=>{var s=pt(),ot=t(s,!0);e(s),l(nt=>i(ot,nt),[()=>r.data.profile.name.charAt(0).toUpperCase()]),o(a,s)};k(C,a=>{r.data.profile.image?a(J):a(K,!1)})}var O=d(C,2),p=t(O),u=t(p),M=t(u,!0);e(u);var g=d(u,2),Q=t(g,!0);e(g),e(p);var S=d(p,2),T=t(S,!0);e(S),e(O),e(m);var W=d(m,2),j=d(t(W),2),_=d(t(j),2),B=d(t(_),2),V=t(B);{var X=a=>{var s=G();l(()=>i(s,`Connected as ${r.data.profile.name??""}`)),o(a,s)},Z=a=>{var s=G("Not connected");o(a,s)};k(V,a=>{r.data.hasOsuLinked?a(X):a(Z,!1)})}e(B),e(_);var $=d(_,2);{var tt=a=>{var s=ut();o(a,s)},et=a=>{var s=gt();o(a,s)};k($,a=>{r.data.hasOsuLinked?a(tt):a(et,!1)})}e(j),e(W),e(f);var b=d(f,2),E=d(t(b),2),h=t(E),F=t(h),at=t(F,!0);e(F),v(2),e(h);var y=d(h,2),N=t(y),rt=t(N,!0);e(N),v(2),e(y);var w=d(y,2),P=t(w),st=t(P,!0);e(P),v(2),e(w);var U=d(w,2),Y=t(U),dt=t(Y);e(Y),v(2),e(U),e(E),e(b);var q=d(b,2),z=d(t(q),2),it=t(z);ct(it,a=>xt?.(a)),e(z),e(q),e(x),l(()=>{i(M,r.data.profile.name),ft(g,1,`rounded px-2 py-0.5 text-xs font-600 ${c(R).color??""}`),i(Q,c(R).label),i(T,r.data.profile.email),i(at,r.data.rating.elo),i(rt,r.data.rating.wins),i(st,r.data.rating.losses),i(dt,`${c(A)??""}${c(A)!=="—"?"%":""}`)}),o(I,x),vt()}export{At as component};
|
||||
BIN
build/client/_app/immutable/nodes/9.BTBc_Eli.js.br
Normal file
BIN
build/client/_app/immutable/nodes/9.BTBc_Eli.js.br
Normal file
Binary file not shown.
BIN
build/client/_app/immutable/nodes/9.BTBc_Eli.js.gz
Normal file
BIN
build/client/_app/immutable/nodes/9.BTBc_Eli.js.gz
Normal file
Binary file not shown.
Reference in New Issue
Block a user