This commit is contained in:
trmazi
2024-07-01 19:12:05 +00:00
parent 38cae8f59d
commit 7314bd1ea0
149 changed files with 115 additions and 155 deletions

View File

@@ -0,0 +1,5 @@
import{r as y,a,i as t,b as o,w as k,g as s,t as l,e as c,c as x,R as h,a6 as w,k as u,a7 as v,Y as n,F as d,j as _,f,a8 as S,a2 as $,a9 as p,aa as B,ab as j,ac as C}from"./index.ef6c145a.js";const N={class:"space-y-3 text-center w-full"},V={class:"text-2xl lg:text-3xl font-bold"},A={class:"flex gap-2 justify-center items-center"},E={class:"text-xl md:text-2xl font-bold"},H={class:"flex flex-wrap gap-4 place-content-center"},L=s("hr",{class:"border-t border-1 w-full"},null,-1),M={key:0,class:"text-lg"},T=s("span",{class:"font-normal"}," and",-1),q=s("span",{class:"font-normal"}," and",-1),z={key:1,class:"md:w-full grid grid-cols-1 md:grid-cols-3 gap-3"},D={key:2,class:"w-full flex justify-center"},R={__name:"ArcadeCard",props:{useSmall:{type:Boolean,required:!1,default:!1},arcade:{type:Object,required:!0}},setup(e){var g=y(e.arcade.data);function b(m){if(m!==null)return`
background-image: url('${m}');
background-size: cover;
background-repeat: no-repeat;
`}return(m,O)=>(a(),t("div",{style:C(b("/assets/card/carpet.png")),class:"rounded-2xl mb-6 w-full"},[o(j,{type:"justify-center",class:"bg-white dark:bg-slate-900/90 rounded-2xl p-6 w-full"},{default:k(()=>[s("div",N,[s("h1",V,l(e.arcade.name),1),s("div",A,[s("h2",E,l(e.arcade.description),1)]),s("div",H,[c(g).is_beta?(a(),x(h,{key:0,label:"Beta Enabled",color:"warning",icon:c(w)},null,8,["icon"])):u("",!0),o(h,{label:"Private Arcade",color:"info",icon:c(v)},null,8,["icon"])]),L,e.arcade.owners&&e.arcade.owners.length?(a(),t("p",M,[n(" Managed by "),(a(!0),t(d,null,_(e.arcade.owners,(r,i)=>(a(),t("span",{key:r.username,class:"font-bold"},[e.arcade.owners.length===2&&i===0?(a(),t(d,{key:0},[n(l(r.username),1)],64)):e.arcade.owners.length===2&&i===1?(a(),t(d,{key:1},[T,n(" "+l(r.username)+".",1)],64)):i===0?(a(),t(d,{key:2},[n(l(r.username),1)],64)):i===e.arcade.owners.length-1?(a(),t(d,{key:3},[n(", "),q,n(" "+l(r.username)+".",1)],64)):(a(),t(d,{key:4},[n(", "+l(r.username),1)],64))]))),128))])):u("",!0),e.useSmall?u("",!0):(a(),t("div",z,[o(f,{href:`/#/arcade/${e.arcade.id}/events`,icon:c(S),color:"info",label:"Event Settings"},null,8,["href","icon"]),o(f,{href:`/#/arcade/${e.arcade.id}/machines`,icon:c($),color:"info",label:"Machine List"},null,8,["href","icon"]),o(f,{href:`/#/arcade/${e.arcade.id}/paseli`,icon:c(p),color:"info",label:"PASELI"},null,8,["href","icon"])])),e.useSmall?(a(),t("div",D,[o(f,{href:`/#/arcade/${e.arcade.id}`,icon:c(B),color:"info",label:"Arcade Home",class:"w-full md:w-[150px]"},null,8,["href","icon"])])):u("",!0)])]),_:1})],4))}};export{R as _};

View File

@@ -1,5 +0,0 @@
import{o as e,d as l,w as _,a as g,ai as x,b as a,t as s,g as c,X as i,c as n,F as y,r as k,R as u,aj as p,h as m,ak as D,al as w,n as B,_ as v}from"./index.493ac4c5.js";import{g as S}from"./area.7873ab93.js";const j={class:"space-y-3 text-center"},A={class:"text-2xl lg:text-3xl font-bold"},C={class:"flex gap-2 justify-center items-center"},N={class:"text-2xl md:text-3xl font-bold lg:hidden"},V={class:"text-xl md:text-2xl font-bold"},$=a("hr",{class:"border-t border-1 w-full"},null,-1),O={class:"text-lg"},T={key:0},q={key:1},z=a("span",{class:"font-normal"},"and",-1),E={key:2},F={class:"flex flex-wrap gap-4 place-content-center"},M={__name:"ArcadeCard",props:{useSmall:{type:Boolean,required:!1,default:!0},arcadeData:{type:Object,required:!0}},setup(t){const b=t;function h(o){if(o!==null)return`
background-image: url('${o}');
background-size: cover;
background-repeat: no-repeat;
`}const f=S(b.arcadeData.area);return(o,P)=>(e(),l(v,{style:B(h(t.arcadeData.image))},{default:_(()=>[g(x,{type:"justify-center",class:"bg-white dark:bg-slate-900/90 rounded-2xl p-3"},{default:_(()=>[a("div",j,[a("h1",A,s(t.arcadeData.name),1),a("div",C,[a("h2",N,s(c(f).flag),1),a("h2",V,s(c(f).name),1)]),$,a("p",O,[i(" Managed by "),(e(!0),n(y,null,k(t.arcadeData.admins,(r,d)=>(e(),n("span",{key:d,class:"font-bold"},[d===0?(e(),n("span",T,s(r),1)):d>=t.arcadeData.admins.length-1?(e(),n("span",q,[i(", "),z,i(" "+s(r)+".",1)])):(e(),n("span",E,", "+s(r),1))]))),128))]),a("div",F,[t.arcadeData.beta?(e(),l(u,{key:0,label:"Beta Enabled",color:"warning",icon:c(p)},null,8,["icon"])):m("",!0),t.arcadeData.public?(e(),l(u,{key:1,label:"Public Arcade",color:"success",icon:c(D)},null,8,["icon"])):m("",!0),t.arcadeData.public?m("",!0):(e(),l(u,{key:2,label:"Private Arcade",color:"info",icon:c(w)},null,8,["icon"]))])])]),_:1})]),_:1},8,["style"]))}};export{M as _};

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{u as f,r as u,o as v,a as c,c as g,w as l,b as e,i as b,P as x,e as h,a5 as y,_ as d,Q as w,R as $,g as s,f as r,F as S,k,l as V,n as A,p as I}from"./index.ef6c145a.js";import{_ as M}from"./ArcadeCard.687fa394.js";import{_ as n}from"./FormCheckRadio.9bd4e29f.js";const N={class:"grid gap-4 grid-cols-2 md:grid-cols-4 mb-4"},P={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 mb-6"},B=s("h1",{class:"text-lg md:text-xl"},"OpenVPN Configuration",-1),E=s("p",{class:"pb-1 dark:text-white/50"}," Use this to export your VPN config. ",-1),R={__name:"ArcadeView",setup(C){const m=f(),a=u({}),i=u(!0),_=I(),p=parseInt(_.params.id);return v(async()=>{try{const t=await m.getArcade(p);a.value=t,i.value=!1}catch(t){console.log("Failed to fetch arcade data:",t)}}),(t,o)=>(c(),g(A,null,{default:l(()=>[e(V,null,{default:l(()=>[i.value?k("",!0):(c(),b(S,{key:0},[e(M,{class:"mb-6",arcade:a.value},null,8,["arcade"]),e(x,{icon:h(y),title:"Admin Overview",main:""},null,8,["icon"]),e(d,{"is-form":"",class:"mb-6",onSubmit:o[0]||(o[0]=w(()=>{},["prevent"]))},{default:l(()=>[e($,{color:"info",label:"General Settings",class:"mb-4"}),s("div",N,[e(n,{"model-value":a.value.data.paseli_enabled,"input-value":a.value.data.paseli_enabled,name:"paseli_enabled",type:"switch",label:"PASELI",class:"outline outline-gray-400 rounded-xl outline-1 text-sm md:text-md p-2"},null,8,["model-value","input-value"]),e(n,{"model-value":a.value.data.paseli_infinite,"input-value":a.value.data.paseli_infinite,name:"paseli_infinite",type:"switch",label:"Infinite PASELI",class:"outline outline-gray-400 rounded-xl outline-1 text-sm md:text-md p-2"},null,8,["model-value","input-value"]),e(n,{"model-value":a.value.data.maint,"input-value":a.value.data.maint,name:"maint",type:"switch",label:"Maintenance Mode",class:"outline outline-gray-400 rounded-xl outline-1 text-sm md:text-md p-2"},null,8,["model-value","input-value"])]),e(r,{color:"success",type:"submit",label:"Save",small:!1})]),_:1}),s("div",P,[e(d,null,{default:l(()=>[B,E,e(r,{small:!1,color:"success",class:"my-2",label:"Export"})]),_:1})])],64))]),_:1})]),_:1}))}};export{R as default};

View File

@@ -1,6 +0,0 @@
import{u as x,o as a,c as t,a as c,w as u,b as r,t as l,g as s,X as i,h as g,F as b,r as k,n as v,_ as C,s as $,d as f,e as A,ac as V,f as D,i as B,ad as S}from"./index.493ac4c5.js";import{C as L}from"./CardBoxComponentEmpty.df76b494.js";import{g as N}from"./area.7873ab93.js";import{_ as F}from"./FormField.1774c999.js";import{_ as j}from"./FormControl.9a383f73.js";const z={class:"outline outline-slate-800/75 hover:scale-[1.01] hover:shadow-xl hover:outline hover:outline-blue-500/50 hover:bg-slate-500 hover:dark:bg-slate-950/90 bg-white dark:bg-slate-900/90 rounded-xl p-4 h-full w-full transition-all duration-10"},E={class:"text-xl font-bold"},O={class:"text-lg"},q={class:"lg:hidden text-xl"},M={key:0,class:"text-lg"},P=r("hr",{class:"pb-1 my-1"},null,-1),R={class:"text-lg"},T={key:0},U={key:1},X=r("span",{class:"font-normal"},"and",-1),G={key:2},H={__name:"CardBoxArcade",props:{arcadeData:{type:Object,required:!0}},setup(n){const e=n.arcadeData,o=x();function y(){return`
background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .6)),
url('${e.image}');
background-size: cover;
background-repeat: no-repeat;
`}function w(){o.push(`/arcade/${e.id}`)}const h=N(e.area);return(K,Q)=>(a(),t("button",{class:"text-left h-full",onClick:w},[c(C,{class:"mb-2 h-full",style:v(y()),"has-table":""},{default:u(()=>[r("div",z,[r("h1",E,l(s(e).name),1),r("p",O,[r("span",q,l(s(h).flag),1),i(" "+l(s(h).name),1)]),s(e).show_address?(a(),t("p",M,l(s(e).address),1)):g("",!0),P,r("p",R,[i(" Managed by "),(a(!0),t(b,null,k(s(e).admins,(_,m)=>(a(),t("span",{key:m,class:"font-bold"},[m===0?(a(),t("span",T,l(_),1)):m>=s(e).admins.length-1?(a(),t("span",U,[i(", "),X,i(" "+l(_)+".",1)])):(a(),t("span",G,", "+l(_),1))]))),128))])])]),_:1},8,["style"])]))}},I={class:"grid gap-4 grid-cols-1 lg:grid-cols-2 w-full"},p=$({filter:""}),J={data(){return{arcadeData:V}},methods:{filterArcade(){return this.arcadeData.filter(n=>n.name.toLowerCase().includes(p.filter.toLowerCase())&&n.public)}}},te=Object.assign(J,{__name:"ArcadesView",setup(n){return(d,e)=>(a(),f(A,null,{default:u(()=>[c(B,null,{default:u(()=>[c(D,{icon:s(S),title:"Public Arcades",main:""},null,8,["icon"]),c(F,{label:"Search",class:"md:w-1/2 lg:w-1/3"},{default:u(()=>[c(j,{modelValue:p.filter,"onUpdate:modelValue":e[0]||(e[0]=o=>p.filter=o),name:"search"},null,8,["modelValue"])]),_:1}),r("div",I,[(a(!0),t(b,null,k(d.filterArcade(),o=>(a(),f(H,{key:o.id,"arcade-data":o,class:"w-full h-full"},null,8,["arcade-data"]))),128))]),!d.filterArcade()||!d.filterArcade().length?(a(),f(L,{key:0})):g("",!0)]),_:1})]),_:1}))}});export{te as default};

View File

@@ -1 +0,0 @@
import{j as e,o as t,c as o,b as s}from"./index.493ac4c5.js";const c={},n={class:"text-center py-14 text-gray-500 dark:text-slate-400"},r=s("p",null,"Nothing's here\u2026",-1),a=[r];function _(d,i){return t(),o("div",n,a)}const l=e(c,[["render",_]]);export{l as C};

View File

@@ -1 +0,0 @@
import{d as i,w as l,e as r,o,a as e,P as d,f as _,g as n,b as s,c as m,r as u,F as p,i as g,a1 as f,t as C,p as t}from"./index.493ac4c5.js";import{d as b}from"./userData.bcc92478.js";const h="/assets/passes/generic.png",x=s("div",{class:"text-xl mb-4"},[s("h4",null,"AC = Web Access Code"),s("h4",null,"NFC-ID = Internal ID for card0.txt")],-1),y={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},F={class:"flex justify-between md:grid md:gap-2 mb-4 items-center"},v=s("img",{src:h,class:"w-24 md:w-auto"},null,-1),w={class:"text-xl text-center font-mono"},A={class:"grid grid-cols-3 md:grid-cols-2 gap-2"},R={__name:"CardsView",setup(B){const c=["YRZ2FGHW24JJTU2E","Z1Y0WWAMXGRMZY26","1RJKZLBFKSK2AB2F","R1Y4H1J7GSUZSR2P","7JNC815MHXU33222"];return(D,k)=>(o(),i(r,null,{default:l(()=>[e(g,null,{default:l(()=>[e(d,{class:"mb-6","use-small":"","even-smaller":""}),e(_,{icon:n(f),title:"Login Cards",main:""},null,8,["icon"]),x,s("div",y,[(o(),m(p,null,u(c,a=>s("div",{key:a,class:"grid dark:bg-slate-900/70 rounded-2xl p-5"},[s("div",F,[v,s("h1",w,C(n(b)(a)),1)]),s("div",A,[e(t,{type:"submit",color:"info",label:"Copy AC"}),e(t,{type:"submit",color:"info",label:"Copy NFC-ID"}),e(t,{type:"submit",color:"danger",label:"Delete"})])])),64))])]),_:1})]),_:1}))}};export{R as default};

View File

@@ -0,0 +1 @@
import{u,r as p,o as g,a as o,c as f,w as i,b as s,O as C,P as h,e as l,$ as b,g as e,i as d,j as x,t as v,f as n,F as k,l as y,n as w}from"./index.ef6c145a.js";import{d as $}from"./userData.bcc92478.js";const D="/assets/passes/generic.png",F=e("div",{class:"text-xl mb-4"},[e("h4",null,"AC = Web Access Code"),e("h4",null,"NFC-ID = Internal ID for card0.txt")],-1),A={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},B={class:"flex justify-between md:grid md:gap-2 mb-4 items-center"},I=e("img",{src:D,class:"w-24 md:w-auto"},null,-1),N={class:"text-xl text-center font-mono"},S={class:"grid grid-cols-3 md:grid-cols-2 gap-2"},O={__name:"CardsView",setup(V){const _=u();var c=p([]);g(async()=>{try{const a=await _.getCards();c.value=a}catch(a){console.error("Failed to fetch card data:",a)}});const r=a=>{navigator.clipboard.writeText(a).then(()=>{alert("Copied to clipboard!")}).catch(()=>{alert("Failed to copy to clipboard!")})};return(a,j)=>(o(),f(w,null,{default:i(()=>[s(y,null,{default:i(()=>[s(C,{class:"mb-6","use-small":"","even-smaller":""}),s(h,{icon:l(b),title:"Login Cards",main:""},null,8,["icon"]),F,e("div",A,[(o(!0),d(k,null,x(l(c),t=>(o(),d("div",{key:t.id,class:"grid dark:bg-slate-900/70 rounded-2xl p-5"},[e("div",B,[I,e("h1",N,v(l($)(t.encoded)),1)]),e("div",S,[s(n,{color:"info",label:"Copy AC",onClick:m=>r(t.encoded)},null,8,["onClick"]),s(n,{color:"info",label:"Copy NFC-ID",onClick:m=>r(t.id)},null,8,["onClick"]),s(n,{color:"danger",label:"Delete"})])]))),128))])]),_:1})]),_:1}))}};export{O as default};

View File

@@ -1 +0,0 @@
import{d as t,w as e,e as i,o as r,a,P as n,f as c,g as _,b as s,_ as d,p as o,i as m,W as u}from"./index.493ac4c5.js";import{_ as l}from"./FormControl.9a383f73.js";const f={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},g=s("h2",{class:"text-lg mb-2"},"Avatar Source",-1),v=s("h2",{class:"text-lg mb-2"},"Avatar Border",-1),p=s("h2",{class:"text-lg mb-2"},"Profile Background",-1),b={class:"space-x-2"},P={__name:"CustomizeView",setup(h){return(x,$)=>(r(),t(i,null,{default:e(()=>[a(m,null,{default:e(()=>[a(n,{class:"mb-6","use-small":"","even-smaller":""}),a(c,{icon:_(u),title:"Profile Customizations",main:""},null,8,["icon"]),s("div",null,[a(d,null,{footer:e(()=>[s("div",b,[a(o,{type:"submit",color:"success",label:"Save"}),a(o,{type:"submit",color:"danger",label:"Revert"})])]),default:e(()=>[s("div",f,[s("div",null,[g,a(l,{options:["Discord","Gravatar","Kamaitachi"],"model-value":"Gravatar",name:"border"})]),s("div",null,[v,a(l,{options:["Trans Flag","Pride Flag"],"model-value":"Trans Flag",name:"border"})]),s("div",null,[p,a(l,{options:["Trans Flag","Pride Flag"],"model-value":"Trans Flag",name:"border"})])])]),_:1})])]),_:1})]),_:1}))}};export{P as default};

View File

@@ -1,5 +0,0 @@
import{s as v,am as V,d as n,w as d,e as $,k as x,u as P,o,a as l,b as i,p as _,g as m,c,h as s,f as B,n as C,_ as A,F as N,r as E,i as F,q as G,W as z}from"./index.493ac4c5.js";import{_ as D}from"./ProfileCard.ca85f322.js";import{_ as R}from"./FormField.1774c999.js";import{_ as I}from"./FormCheckRadio.c7e54cea.js";import{_ as p}from"./FormControl.9a383f73.js";import"./userData.bcc92478.js";const T={class:"md:flex pb-6 md:justify-between md:items-center"},L={key:0,class:"mt-2 md:mt-0 md:w-1/3 md:text-right"},U=i("h2",{class:"text-md sm:text-lg md:text-xl font-bold p-2"}," Select Version ",-1),W={class:"bg-white dark:bg-slate-900/90 rounded-2xl pt-6 p-3"},j={class:"w-full"},q={key:2},H={class:"space-x-2"},X={__name:"EditView",setup(M){const b=x(),h=P();var f=null,t=null;const r=v({currentVersion:null}),k=[{id:"username",name:"Username",help:"Set your username for this profile",type:String},{id:"fastSlow",name:"Fast/Slow Display",help:"Enable or disable displaying of Fast/Slow",type:Boolean},{id:"comboPosition",name:"Combo Position",help:"Change order of the combo and notes",type:Boolean},{id:"weight",name:"Weight (kg)",help:"Set your weight for in-game workout mode",type:Number},{id:"dancer",name:"Character",help:"Set your background dancer",type:Array,options:[{id:0,label:"Afro"},{id:1,label:"Emi"}]},{id:"arrow",name:"Arrow Skin",help:"Set your arrow skin",type:Array,options:[{id:0,label:"Normal"},{id:1,label:"Classic"}]}],g={id:1,name:"Trmazi",extid:12345678,avatar:"https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/",last:{arcade:"GhettoCade",date:"7/16/2023"},stats:{firstPlay:"1/14/2021",singlePlays:165,singleDan:1900,singlePoint:1877,doublePlays:15,doubleDan:0,doublePoint:187,skillPoints:95e4}},a=v({username:"TRMAZI",fastSlow:!0,comboPosition:!1,weight:100,dancer:0,arrow:1,guideLines:0,filter:3});f=b.params.game,t=V(f),t||h.push({name:"ErrorPage",params:{catchAll:"404"}}),t.versions||(r.currentVersion=1);function w(){var u=null;return r.currentVersion?u=`/assets/games/${t.id}/card/${r.currentVersion}.png`:u=t.cardBG,u}function S(){return`
background-image: url('${w()}');
background-size: cover;
background-repeat: no-repeat;
`}return(u,y)=>(o(),n($,null,{default:d(()=>[l(F,null,{default:d(()=>[i("div",T,[l(_,{icon:m(G),href:`/#/games/${m(f)}`,class:"w-full md:w-auto",color:"info",label:"Go Back"},null,8,["icon","href"]),m(t).versions?(o(),c("div",L,[U,l(p,{modelValue:r.currentVersion,"onUpdate:modelValue":y[0]||(y[0]=e=>r.currentVersion=e),options:m(t).versions},null,8,["modelValue","options"])])):s("",!0)]),r.currentVersion?(o(),n(B,{key:0,icon:m(z),title:"Profile Customizations",main:""},null,8,["icon"])):s("",!0),r.currentVersion?(o(),c("div",{key:1,style:C(S()),class:"rounded-2xl mb-6"},[i("div",W,[i("div",j,[l(D,{"use-small":"",profile:g})])])],4)):s("",!0),r.currentVersion?(o(),c("div",q,[l(A,null,{footer:d(()=>[i("div",H,[l(_,{type:"submit",color:"success",label:"Save"}),l(_,{type:"submit",color:"danger",label:"Revert"})])]),default:d(()=>[i("div",null,[(o(),c(N,null,E(k,e=>l(R,{key:e.id,label:e.name,help:e.help},{default:d(()=>[e.type==String?(o(),n(p,{key:0,"v-model":a[e.id],"model-value":a[e.id]},null,8,["v-model","model-value"])):s("",!0),e.type==Number?(o(),n(p,{key:1,"v-model":a[e.id],"model-value":a[e.id],type:"number"},null,8,["v-model","model-value"])):s("",!0),e.type==Array?(o(),n(p,{key:2,options:e.options,"v-model":a[e.id],"model-value":a[e.id],selected:a[e.id]},null,8,["options","v-model","model-value","selected"])):s("",!0),e.type==Boolean?(o(),n(I,{key:3,"v-model":a[e.id],"model-value":a[e.id],type:"switch"},null,8,["v-model","model-value"])):s("",!0)]),_:2},1032,["label","help"])),64))])]),_:1})])):s("",!0)]),_:1})]),_:1}))}};export{X as default};

View File

@@ -0,0 +1,5 @@
import{r as y,s as P,N as S,ar as R,a,c as t,w as f,g as d,b as u,f as k,R as U,i as x,F as j,j as N,_ as Q,u as q,ad as G,o as z,e as h,m as F,k as p,P as A,as as I,ac as K,l as M,n as O,p as D,q as H}from"./index.ef6c145a.js";import{b as L,U as T,_ as J}from"./ProfileCard.206878f8.js";import{_ as C}from"./FormField.e32df112.js";import{_ as W}from"./FormCheckRadio.9bd4e29f.js";import{_ as w}from"./FormControl.3fead597.js";import"./userData.bcc92478.js";const X={class:"grid md:grid-cols-2 space-y-6 align-center"},Y={class:"place-self-center"},Z={class:"space-x-2"},ee={__name:"EmblemCardBox",props:{profile:{type:Object,default:null},version:{type:Number,default:14}},setup(E){var m,B;const i=E,_=y(i.profile),b=y(i.version),c=y(0),r=P(g((B=(m=_.value)==null?void 0:m.last)==null?void 0:B.emblem)),s=y([]);S(()=>i.version,()=>{var e;_.value=i.profile,b.value=i.version,l(),r.value=g((e=_.value.last)==null?void 0:e.emblem)}),S(r,()=>{c.value++},{deep:!0}),l();function l(){R.get(`https://web3.phaseii.network/gameassets/emblems/${b.value}.json`).then(e=>{e.data&&(s.value=e.data)}).catch(e=>{console.log(e.message)})}function g(e){return e?{background:e[0],main:e[1],ornament:e[2],effect:e[3],speech_bubble:e[4]}:{background:0,main:0,ornament:0,effect:0,speech_bubble:0}}function $(e){return e?[e.background,e.main,e.ornament,e.effect,e.speech_bubble]:[0,0,0,0,0]}return(e,n)=>(a(),t(Q,{class:"mt-6"},{footer:f(()=>[d("div",Z,[u(k,{type:"submit",color:"success",label:"Save"}),u(k,{type:"submit",color:"danger",label:"Revert"})])]),default:f(()=>[u(U,{color:"info",label:"Emblem",class:"mb-2"}),d("div",X,[d("div",null,[(a(!0),x(j,null,N(s.value,v=>(a(),t(C,{key:v.id,label:v.name,help:v.help},{default:f(()=>[u(w,{modelValue:r[v.id],"onUpdate:modelValue":V=>r[v.id]=V,options:v.options},null,8,["modelValue","onUpdate:modelValue","options"])]),_:2},1032,["label","help"]))),128))]),d("div",Y,[(a(),t(L,{key:c.value,version:b.value,profile:{last:{emblem:$(r)}},size:300},null,8,["version","profile"]))])])]),_:1}))}},le={class:"grid md:grid-cols-2 space-y-6 align-center"},se={class:"place-self-center"},ae={class:"space-x-2"},re={__name:"QproCardBox",props:{profile:{type:Object,default:null},version:{type:Number,default:14}},setup(E){var g,$;const i=E,_=y(i.profile),b=y(i.version),c=y(0),r=P(($=(g=_.value)==null?void 0:g.qpro)!=null?$:{head:0,hair:0,face:0,body:0,hand:0}),s=y([]);S(()=>i.version,()=>{var m;_.value=i.profile,l(),r.value=(m=_.value)==null?void 0:m.qpro}),S(()=>i.version,()=>{b.value=i.version}),S(r,()=>{c.value++},{deep:!0}),l();function l(){R.get(`https://web3.phaseii.network/gameassets/qpro/${b.value}.json`).then(m=>{m.data&&(s.value=m.data)}).catch(m=>{console.log(m.message)})}return(m,B)=>(a(),t(Q,{class:"mt-6"},{footer:f(()=>[d("div",ae,[u(k,{type:"submit",color:"success",label:"Save"}),u(k,{type:"submit",color:"danger",label:"Revert"})])]),default:f(()=>[u(U,{color:"info",label:"QPro",class:"mb-2"}),d("div",le,[d("div",null,[(a(!0),x(j,null,N(s.value,e=>(a(),t(C,{key:e.id,label:e.name,help:e.help},{default:f(()=>[u(w,{modelValue:r[e.id],"onUpdate:modelValue":n=>r[e.id]=n,options:e.options},null,8,["modelValue","onUpdate:modelValue","options"])]),_:2},1032,["label","help"]))),128))]),d("div",se,[(a(),t(T,{key:c.value,version:b.value,profile:{qpro:r},style:{scale:"1.9"},class:"my-16 mb-10"},null,8,["version","profile"]))])])]),_:1}))}},oe={class:"md:flex pb-6 md:justify-between md:items-center"},ne={key:0,class:"mt-2 md:mt-0 md:w-1/3 md:text-right"},te=d("h2",{class:"text-md sm:text-lg md:text-xl font-bold p-2"}," Select Version ",-1),ue={class:"bg-white dark:bg-slate-900/90 rounded-2xl pt-6 p-3"},ie={class:"w-full"},ce={key:2},de={class:"space-x-2"},he={__name:"EditView",setup(E){const i=D(),_=H(),b=q();var c=null,r=null;const s=P({currentVersion:null});S(()=>s.currentVersion,()=>{e()}),c=i.params.game,r=G(c),r||_.push({name:"ErrorPage",params:{catchAll:"404"}}),r.versions||(s.currentVersion=1);const l=y(null);z(()=>{e()});var g=[{id:"name",name:"Username",help:"Set your username for this profile",type:String}];function $(){var n=null;return s.currentVersion?n=`/assets/games/${r.id}/card/${s.currentVersion}.png`:n=r.cardBG,n}function m(){return`
background-image: url('${$()}');
background-size: cover;
background-repeat: no-repeat;
`}function B(n){var v=[];for(const V of r.versions)n.includes(V.id)&&v.push(V);return v}async function e(){try{l.value=null;const n=await b.getUserProfile(c,s.currentVersion);l.value=n,n&&!s.currentVersion&&(s.currentVersion=n.versions[n.versions.length-1])}catch(n){console.error("Failed to fetch user profile data:",n)}}return(n,v)=>(a(),t(O,null,{default:f(()=>[u(M,null,{default:f(()=>{var V;return[d("div",oe,[u(k,{icon:h(F),href:`/#/games/${h(c)}`,class:"w-full md:w-auto",color:"info",label:"Go Back"},null,8,["icon","href"]),h(r).versions&&l.value?(a(),x("div",ne,[te,u(w,{modelValue:s.currentVersion,"onUpdate:modelValue":v[0]||(v[0]=o=>s.currentVersion=o),options:B(l.value.versions)},null,8,["modelValue","options"])])):p("",!0)]),s.currentVersion?(a(),t(A,{key:0,icon:h(I),title:"Profile Customizations",main:""},null,8,["icon"])):p("",!0),s.currentVersion?(a(),x("div",{key:1,style:K(m()),class:"rounded-2xl mb-6"},[d("div",ue,[d("div",ie,[l.value?(a(),t(J,{key:0,"use-small":"",game:h(c),profile:l.value,version:s.currentVersion},null,8,["game","profile","version"])):p("",!0)])])],4)):p("",!0),s.currentVersion&&l.value?(a(),x("div",ce,[u(Q,null,{footer:f(()=>[d("div",de,[u(k,{type:"submit",color:"success",label:"Save"}),u(k,{type:"submit",color:"danger",label:"Revert"})])]),default:f(()=>[d("div",null,[u(U,{color:"info",label:"General",class:"mb-2"}),(a(!0),x(j,null,N(h(g),o=>(a(),t(C,{key:o.id,label:o.name,help:o.help},{default:f(()=>[o.type==String?(a(),t(w,{key:0,"v-model":l.value[o.id],"model-value":l.value[o.id]},null,8,["v-model","model-value"])):p("",!0),o.type==Number?(a(),t(w,{key:1,"v-model":l.value[o.id],"model-value":l.value[o.id],type:"number"},null,8,["v-model","model-value"])):p("",!0),o.type==Array?(a(),t(w,{key:2,options:o.options,"v-model":l.value[o.id],"model-value":l.value[o.id],selected:l.value[o.id]},null,8,["options","v-model","model-value","selected"])):p("",!0),o.type==Boolean?(a(),t(W,{key:3,"v-model":l.value[o.id],"model-value":l.value[o.id],type:"switch"},null,8,["v-model","model-value"])):p("",!0)]),_:2},1032,["label","help"]))),128))])]),_:1}),h(c)=="jubeat"&&s.currentVersion>=10&&((V=l.value.last)==null?void 0:V.emblem)?(a(),t(ee,{key:0,profile:l.value,version:s.currentVersion},null,8,["profile","version"])):p("",!0),(h(c)=="iidx"||h(c)=="iidxclass")&&s.currentVersion>=19?(a(),t(re,{key:1,profile:l.value,version:s.currentVersion},null,8,["profile","version"])):p("",!0)])):p("",!0)]}),_:1})]),_:1}))}};export{he as default};

View File

@@ -1 +0,0 @@
import{d as a,w as s,o as l,b as e,a as t,p as o,_ as r,x as c}from"./index.493ac4c5.js";import{_ as n}from"./LayoutGuest.38de82d0.js";const d={class:"flex md:min-h-screen md:items-center md:justify-center"},i={class:"p-4 flex flex-col w-full space-y-2"},_=e("div",{class:"flex flex-col items-center text-wrap h-full"},[e("img",{src:c,class:"rounded-full shadow-lg mb-2"}),e("h1",{class:"text-xl"},[e("samp",null,"PhaseII")]),e("p",{class:"text-sm text-gray-700 dark:text-white/75"}," Broken since 2021 "),e("hr",{class:"border-t border-1 my-1 w-full"}),e("p",{class:"text-lg relative bottom-0"},"404 - File not found")],-1),m=e("h2",{class:"mb-2"}," The server was unable to locate the page you're trying to go to. ",-1),w={__name:"ErrorView",setup(f){return(u,h)=>(l(),a(n,null,{default:s(()=>[e("div",d,[t(r,{class:"w-full md:w-auto rounded-none md:rounded-xl","has-table":"","is-auth":""},{default:s(()=>[e("div",i,[_,e("div",null,[m,t(o,{label:"Home",color:"info",href:"/"})])])]),_:1})])]),_:1}))}};export{w as default};

View File

@@ -0,0 +1 @@
import{a,c as l,w as s,g as e,b as t,f as o,_ as r,z as c}from"./index.ef6c145a.js";import{_ as n}from"./LayoutGuest.935550c8.js";const d={class:"flex md:min-h-screen md:items-center md:justify-center"},i={class:"p-4 flex flex-col w-full space-y-2"},_=e("div",{class:"flex flex-col items-center text-wrap h-full"},[e("img",{src:c,class:"rounded-full shadow-lg mb-2"}),e("h1",{class:"text-xl"},[e("samp",null,"PhaseII")]),e("p",{class:"text-sm text-gray-700 dark:text-white/75"}," Broken since 2021 "),e("hr",{class:"border-t border-1 my-1 w-full"}),e("p",{class:"text-lg relative bottom-0"},"404 - File not found")],-1),m=e("h2",{class:"mb-2"}," The server was unable to locate the page you're trying to go to. ",-1),w={__name:"ErrorView",setup(f){return(u,h)=>(a(),l(n,null,{default:s(()=>[e("div",d,[t(r,{class:"w-full md:w-auto rounded-none md:rounded-xl","has-table":"","is-auth":""},{default:s(()=>[e("div",i,[_,e("div",null,[m,t(o,{label:"Home",color:"info",href:"/"})])])]),_:1})])]),_:1}))}};export{w as default};

View File

@@ -0,0 +1 @@
import{u as G,r as g,o as N,s as U,N as w,a as l,c as r,w as d,b as s,i as u,P as E,e as O,a8 as A,_ as F,g as i,k as m,Y as M,t as P,F as h,j,f as D,l as T,n as W,p as L,ad as v,ae as Q}from"./index.ef6c145a.js";import{_ as R}from"./ArcadeCard.687fa394.js";import{_ as y}from"./FormField.e32df112.js";import{_ as c}from"./FormControl.3fead597.js";import{_ as X}from"./FormCheckRadio.9bd4e29f.js";const Y={class:"mb-4"},q={class:"grid md:grid-cols-2 gap-4"},z=i("p",{class:"pb-2 text-lg"},"Game",-1),H={key:0},J=i("p",{class:"pb-2 text-lg"},"Version",-1),K={key:0},Z={class:"text-xl"},ee=i("hr",{class:"pb-1 my-2"},null,-1),ie={__name:"EventView",setup(ae){const b=G(),f=g({}),_=g(!0),V=L(),S=parseInt(V.params.id);N(async()=>{try{const t=await b.getArcade(S);f.value=t,_.value=!1}catch(t){console.log("Failed to fetch arcade data:",t)}});const p=[{id:"iidx",versions:[{id:22,settings:[{id:0,keyId:"coke",type:Boolean,name:"Enable Coke-X-BEMANI",tooltip:"Enables the long forgotten Coca-Cola event.",value:!0},{id:1,keyId:"phase",type:Array,name:"Current BOSS Phase",tooltip:"Set the main game event.",options:[{id:0,label:"No Event"},{id:1,label:"Chrono Seeker"},{id:2,label:"QPronicle Chord"}],value:1}]}]},{id:"dm",versions:[{id:18,settings:[{id:0,keyId:"banner",type:String,name:"Title Screen Banner",tooltip:"Set the text for the banner.",value:""}]},{id:17,settings:[{id:0,keyId:"banner",type:String,name:"Title Screen Banner",tooltip:"Set the text for the banner.",value:""}]}]}],o=U({game:null,version:null});function k(){var t=[];for(const a of Q)p.find(n=>n.id==a.id)&&t.push(a.id);return t}function I(){var t=[];const a=k();for(const e of a)t.push({id:e,label:v(e).name});return t}function $(){const t=p.find(e=>e.id==o.game);var a=[];for(const e of t.versions){const n=v(o.game).versions.find(C=>C.id==e.id);a.push({id:e.id,label:n.label})}return a}function x(){return p.find(a=>a.id==o.game).versions.find(a=>a.id==o.version)}function B(){const t=v(o.game),a=t.versions.find(e=>e.id==o.version);return`${t.name} ${a.label}`}return w(()=>o.game,()=>{o.version=null}),(t,a)=>(l(),r(W,null,{default:d(()=>[s(T,null,{default:d(()=>[_.value?m("",!0):(l(),u(h,{key:0},[s(R,{class:"mb-6",arcade:f.value,"use-small":!0},null,8,["arcade"]),s(E,{icon:O(A),title:"Game Event Settings",main:""},null,8,["icon"]),s(F,{class:"mb-6"},{default:d(()=>[i("div",Y,[s(y,{label:"Select Game",help:"Pick a game and version to get started."},{default:d(()=>[i("div",q,[i("div",null,[z,s(c,{modelValue:o.game,"onUpdate:modelValue":a[0]||(a[0]=e=>o.game=e),name:"game",options:I()},null,8,["modelValue","options"])]),o.game?(l(),u("div",H,[J,s(c,{modelValue:o.version,"onUpdate:modelValue":a[1]||(a[1]=e=>o.version=e),name:"version",options:$()},null,8,["modelValue","options"])])):m("",!0)])]),_:1})]),o.game&&o.version?(l(),u("div",K,[i("h2",Z,[M(" Settings for "),i("b",null,P(B()),1)]),ee,(l(!0),u(h,null,j(x().settings,e=>(l(),r(y,{key:e.id,label:e.name,help:e.tooltip},{default:d(()=>[e.type==String?(l(),r(c,{key:0,modelValue:e.value,"onUpdate:modelValue":n=>e.value=n,"model-value":e.value,name:e.keyId,placeholder:"Not Set"},null,8,["modelValue","onUpdate:modelValue","model-value","name"])):e.type==Boolean?(l(),r(X,{key:1,modelValue:e.value,"onUpdate:modelValue":n=>e.value=n,"input-value":e.value,type:"switch",name:e.keyId},null,8,["modelValue","onUpdate:modelValue","input-value","name"])):m("",!0),e.type==Array?(l(),r(c,{key:2,modelValue:e.options[e.value],"onUpdate:modelValue":n=>e.options[e.value]=n,name:e.keyId,options:e.options,placeholder:"Select..."},null,8,["modelValue","onUpdate:modelValue","name","options"])):m("",!0)]),_:2},1032,["label","help"]))),128)),s(D,{color:"success",type:"submit",label:"Save",small:!1})])):m("",!0)]),_:1})],64))]),_:1})]),_:1}))}};export{ie as default};

View File

@@ -1 +0,0 @@
import{ac as x,s as B,af as C,d as r,w as d,e as G,k as N,o as l,a as s,g as v,f as U,_ as E,b as i,c as p,h as m,X as w,t as O,F as A,r as D,p as F,i as P,am as f,an as T,ao as W}from"./index.493ac4c5.js";import{_ as j}from"./ArcadeCard.a97027e1.js";import{_}from"./FormField.1774c999.js";import{_ as u}from"./FormControl.9a383f73.js";import{_ as L}from"./FormCheckRadio.c7e54cea.js";import"./area.7873ab93.js";const M={class:"mb-4"},X={class:"grid md:grid-cols-2 gap-4"},Q=i("p",{class:"pb-2 text-lg"},"Game",-1),R={key:0},q=i("p",{class:"pb-2 text-lg"},"Version",-1),z={key:0},H={class:"text-xl"},J=i("hr",{class:"pb-1 my-2"},null,-1),ne={__name:"EventView",setup(K){const g=N(),h=parseInt(g.params.id),b=x.find(o=>o.id===h),c=[{id:"iidx",versions:[{id:22,settings:[{id:0,keyId:"coke",type:Boolean,name:"Enable Coke-X-BEMANI",tooltip:"Enables the long forgotten Coca-Cola event.",value:!0},{id:1,keyId:"phase",type:Array,name:"Current BOSS Phase",tooltip:"Set the main game event.",options:[{id:0,label:"No Event"},{id:1,label:"Chrono Seeker"},{id:2,label:"QPronicle Chord"}],value:1}]}]},{id:"dm",versions:[{id:18,settings:[{id:0,keyId:"banner",type:String,name:"Title Screen Banner",tooltip:"Set the text for the banner.",value:""}]},{id:17,settings:[{id:0,keyId:"banner",type:String,name:"Title Screen Banner",tooltip:"Set the text for the banner.",value:""}]}]}],t=B({game:null,version:null});function V(){var o=[];for(const a of W)c.find(n=>n.id==a.id)&&o.push(a.id);return o}function y(){var o=[];const a=V();for(const e of a)o.push({id:e,label:f(e).name});return o}function S(){const o=c.find(e=>e.id==t.game);var a=[];for(const e of o.versions){const n=f(t.game).versions.find($=>$.id==e.id);a.push({id:e.id,label:n.label})}return a}function k(){return c.find(a=>a.id==t.game).versions.find(a=>a.id==t.version)}function I(){const o=f(t.game),a=o.versions.find(e=>e.id==t.version);return`${o.name} ${a.label}`}return C(()=>t.game,()=>{t.version=null}),(o,a)=>(l(),r(G,null,{default:d(()=>[s(P,null,{default:d(()=>[s(j,{class:"mb-6","arcade-data":v(b)},null,8,["arcade-data"]),s(U,{icon:v(T),title:"Game Event Settings",main:""},null,8,["icon"]),s(E,{class:"mb-6"},{default:d(()=>[i("div",M,[s(_,{label:"Select Game",help:"Pick a game and version to get started."},{default:d(()=>[i("div",X,[i("div",null,[Q,s(u,{modelValue:t.game,"onUpdate:modelValue":a[0]||(a[0]=e=>t.game=e),name:"game",options:y()},null,8,["modelValue","options"])]),t.game?(l(),p("div",R,[q,s(u,{modelValue:t.version,"onUpdate:modelValue":a[1]||(a[1]=e=>t.version=e),name:"version",options:S()},null,8,["modelValue","options"])])):m("",!0)])]),_:1})]),t.game&&t.version?(l(),p("div",z,[i("h2",H,[w(" Settings for "),i("b",null,O(I()),1)]),J,(l(!0),p(A,null,D(k().settings,e=>(l(),r(_,{key:e.id,label:e.name,help:e.tooltip},{default:d(()=>[e.type==String?(l(),r(u,{key:0,modelValue:e.value,"onUpdate:modelValue":n=>e.value=n,"model-value":e.value,name:e.keyId,placeholder:"Not Set"},null,8,["modelValue","onUpdate:modelValue","model-value","name"])):e.type==Boolean?(l(),r(L,{key:1,modelValue:e.value,"onUpdate:modelValue":n=>e.value=n,"input-value":e.value,type:"switch",name:e.keyId},null,8,["modelValue","onUpdate:modelValue","input-value","name"])):m("",!0),e.type==Array?(l(),r(u,{key:2,modelValue:e.options[e.value],"onUpdate:modelValue":n=>e.options[e.value]=n,name:e.keyId,options:e.options,placeholder:"Select..."},null,8,["modelValue","onUpdate:modelValue","name","options"])):m("",!0)]),_:2},1032,["label","help"]))),128)),s(F,{color:"success",type:"submit",label:"Save",small:!1})])):m("",!0)]),_:1})]),_:1})]),_:1}))}};export{ne as default};

View File

@@ -1 +1 @@
import{A as s,o as d,c as p,B as m,C as y,g as u,b as a,D as b,t as h,v as V}from"./index.493ac4c5.js";const g=["type","name","value"],f=a("span",{class:"check"},null,-1),k={class:"pl-2"},B={__name:"FormCheckRadio",props:{name:{type:String,required:!0},type:{type:String,default:"checkbox",validator:e=>["checkbox","radio","switch"].includes(e)},label:{type:String,default:null},modelValue:{type:[Array,String,Number,Boolean],default:null},inputValue:{type:[String,Number,Boolean],required:!0}},emits:["update:modelValue"],setup(e,{emit:i}){const l=e,t=s({get:()=>l.modelValue,set:n=>{i("update:modelValue",n)}}),r=s(()=>l.type==="radio"?"radio":"checkbox");return(n,o)=>(d(),p("label",{class:V(e.type)},[m(a("input",{"onUpdate:modelValue":o[0]||(o[0]=c=>b(t)?t.value=c:null),type:u(r),name:e.name,value:e.inputValue},null,8,g),[[y,u(t)]]),f,a("span",k,h(e.label),1)],2))}};export{B as _};
import{A as s,a as d,i as p,B as m,C as y,e as u,g as t,D as h,t as V,y as b}from"./index.ef6c145a.js";const g=["type","name","value"],f=t("span",{class:"check"},null,-1),k={class:"pl-2"},B={__name:"FormCheckRadio",props:{name:{type:String,required:!0},type:{type:String,default:"checkbox",validator:e=>["checkbox","radio","switch"].includes(e)},label:{type:String,default:null},modelValue:{type:[Array,String,Number,Boolean],default:null},inputValue:{type:[String,Number,Boolean],required:!0}},emits:["update:modelValue"],setup(e,{emit:i}){const l=e,a=s({get:()=>l.modelValue,set:n=>{i("update:modelValue",n)}}),r=s(()=>l.type==="radio"?"radio":"checkbox");return(n,o)=>(d(),p("label",{class:b(e.type)},[m(t("input",{"onUpdate:modelValue":o[0]||(o[0]=c=>h(a)?a.value=c:null),type:u(r),name:e.name,value:e.inputValue},null,8,g),[[y,u(a)]]),f,t("span",k,V(e.label),1)],2))}};export{B as _};

View File

@@ -0,0 +1 @@
import{a as r,c as B,H as V,A as m,u as R,r as p,o as w,I as q,i as s,e as a,B as h,J as C,D as g,y as v,F as D,j as M,t as K,K as U,C as A,k as H}from"./index.ef6c145a.js";const I={__name:"FormControlIcon",props:{icon:{type:String,default:null},h:{type:String,default:null}},setup(e){return(d,n)=>(r(),B(V,{path:e.icon,w:"w-10",h:e.h,class:"absolute top-0 left-0 z-10 pointer-events-none text-gray-500 dark:text-slate-400"},null,8,["path","h"]))}},L={class:"relative"},j=["id","name"],z=["value"],N=["id","name","maxlength","placeholder","required"],T=["id","name","maxlength","inputmode","autocomplete","required","placeholder","type"],J={__name:"FormControl",props:{name:{type:String,default:null},id:{type:String,default:null},autocomplete:{type:String,default:null},maxlength:{type:String,default:null},placeholder:{type:String,default:null},inputmode:{type:String,default:null},icon:{type:String,default:null},options:{type:Array,default:null},type:{type:String,default:"text"},modelValue:{type:[String,Number,Boolean,Array,Object],default:""},required:Boolean,borderless:Boolean,transparent:Boolean,ctrlKFocus:Boolean},emits:["update:modelValue","setRef"],setup(e,{emit:d}){const n=e,o=m({get:()=>n.modelValue,set:u=>{d("update:modelValue",u)}}),f=m(()=>{const u=["px-3 py-2 max-w-full focus:ring focus:outline-none border-blue-700 dark:border-blue-500 rounded w-full","dark:placeholder-gray-400",i.value==="textarea"?"h-24":"h-12",n.borderless?"border-0":"border",n.transparent?"bg-transparent":"bg-white dark:bg-slate-800"];return n.icon&&u.push("pl-10"),u}),i=m(()=>n.options?"select":n.type),E=m(()=>n.type==="textarea"?"h-full":"h-12"),y=R(),x=p(null),k=p(null),c=p(null);if(w(()=>{x.value?d("setRef",x.value):k.value?d("setRef",k.value):d("setRef",c.value)}),n.ctrlKFocus){const u=l=>{l.ctrlKey&&l.key==="k"?(l.preventDefault(),c.value.focus()):l.key==="Escape"&&c.value.blur()};w(()=>{y.isFieldFocusRegistered||(window.addEventListener("keydown",u),y.isFieldFocusRegistered=!0)}),q(()=>{window.removeEventListener("keydown",u),y.isFieldFocusRegistered=!1})}return(u,l)=>(r(),s("div",L,[a(i)==="select"?h((r(),s("select",{key:0,id:e.id,"onUpdate:modelValue":l[0]||(l[0]=t=>g(o)?o.value=t:null),name:e.name,class:v(a(f))},[(r(!0),s(D,null,M(e.options,t=>{var b,S,F;return r(),s("option",{key:(b=t.id)!=null?b:t,value:(S=t.id)!=null?S:t},K((F=t.label)!=null?F:t),9,z)}),128))],10,j)),[[C,a(o)]]):a(i)==="textarea"?h((r(),s("textarea",{key:1,id:e.id,"onUpdate:modelValue":l[1]||(l[1]=t=>g(o)?o.value=t:null),class:v(a(f)),name:e.name,maxlength:e.maxlength,placeholder:e.placeholder,required:e.required},null,10,N)),[[U,a(o)]]):h((r(),s("input",{key:2,id:e.id,ref_key:"inputEl",ref:c,"onUpdate:modelValue":l[2]||(l[2]=t=>g(o)?o.value=t:null),name:e.name,maxlength:e.maxlength,inputmode:e.inputmode,autocomplete:e.autocomplete,required:e.required,placeholder:e.placeholder,type:a(i),class:v(a(f))},null,10,T)),[[A,a(o)]]),e.icon?(r(),B(I,{key:3,icon:e.icon,h:a(E)},null,8,["icon","h"])):H("",!0)]))}};export{J as _};

View File

@@ -1 +0,0 @@
import{o as r,d as B,H as V,A as m,I as R,J as p,K as w,L as q,c as s,g as a,B as h,M as C,D as g,v,F as M,r as D,t as K,N as L,C as U,h as A}from"./index.493ac4c5.js";const H={__name:"FormControlIcon",props:{icon:{type:String,default:null},h:{type:String,default:null}},setup(e){return(d,n)=>(r(),B(V,{path:e.icon,w:"w-10",h:e.h,class:"absolute top-0 left-0 z-10 pointer-events-none text-gray-500 dark:text-slate-400"},null,8,["path","h"]))}},I={class:"relative"},N=["id","name"],z=["value"],T=["id","name","maxlength","placeholder","required"],$=["id","name","maxlength","inputmode","autocomplete","required","placeholder","type"],J={__name:"FormControl",props:{name:{type:String,default:null},id:{type:String,default:null},autocomplete:{type:String,default:null},maxlength:{type:String,default:null},placeholder:{type:String,default:null},inputmode:{type:String,default:null},icon:{type:String,default:null},options:{type:Array,default:null},type:{type:String,default:"text"},modelValue:{type:[String,Number,Boolean,Array,Object],default:""},required:Boolean,borderless:Boolean,transparent:Boolean,ctrlKFocus:Boolean},emits:["update:modelValue","setRef"],setup(e,{emit:d}){const n=e,o=m({get:()=>n.modelValue,set:u=>{d("update:modelValue",u)}}),f=m(()=>{const u=["px-3 py-2 max-w-full focus:ring focus:outline-none border-blue-700 dark:border-blue-500 rounded w-full","dark:placeholder-gray-400",i.value==="textarea"?"h-24":"h-12",n.borderless?"border-0":"border",n.transparent?"bg-transparent":"bg-white dark:bg-slate-800"];return n.icon&&u.push("pl-10"),u}),i=m(()=>n.options?"select":n.type),E=m(()=>n.type==="textarea"?"h-full":"h-12"),y=R(),x=p(null),k=p(null),c=p(null);if(w(()=>{x.value?d("setRef",x.value):k.value?d("setRef",k.value):d("setRef",c.value)}),n.ctrlKFocus){const u=l=>{l.ctrlKey&&l.key==="k"?(l.preventDefault(),c.value.focus()):l.key==="Escape"&&c.value.blur()};w(()=>{y.isFieldFocusRegistered||(window.addEventListener("keydown",u),y.isFieldFocusRegistered=!0)}),q(()=>{window.removeEventListener("keydown",u),y.isFieldFocusRegistered=!1})}return(u,l)=>(r(),s("div",I,[a(i)==="select"?h((r(),s("select",{key:0,id:e.id,"onUpdate:modelValue":l[0]||(l[0]=t=>g(o)?o.value=t:null),name:e.name,class:v(a(f))},[(r(!0),s(M,null,D(e.options,t=>{var b,S,F;return r(),s("option",{key:(b=t.id)!=null?b:t,value:(S=t.id)!=null?S:t},K((F=t.label)!=null?F:t),9,z)}),128))],10,N)),[[C,a(o)]]):a(i)==="textarea"?h((r(),s("textarea",{key:1,id:e.id,"onUpdate:modelValue":l[1]||(l[1]=t=>g(o)?o.value=t:null),class:v(a(f)),name:e.name,maxlength:e.maxlength,placeholder:e.placeholder,required:e.required},null,10,T)),[[L,a(o)]]):h((r(),s("input",{key:2,id:e.id,ref_key:"inputEl",ref:c,"onUpdate:modelValue":l[2]||(l[2]=t=>g(o)?o.value=t:null),name:e.name,maxlength:e.maxlength,inputmode:e.inputmode,autocomplete:e.autocomplete,required:e.required,placeholder:e.placeholder,type:a(i),class:v(a(f))},null,10,$)),[[U,a(o)]]),e.icon?(r(),B(H,{key:3,icon:e.icon,h:a(E)},null,8,["icon","h"])):A("",!0)]))}};export{J as _};

View File

@@ -1 +1 @@
import{E as d,A as i,o as l,c as a,t as o,h as r,b as u,G as m,v as b,g as f}from"./index.493ac4c5.js";const g={class:"mb-6 last:mb-0"},h=["for"],p={key:1,class:"text-xs text-gray-500 dark:text-slate-400 mt-1"},k={__name:"FormField",props:{label:{type:String,default:null},labelFor:{type:String,default:null},help:{type:String,default:null}},setup(e){const n=d(),c=i(()=>{const t=[],s=n.default().length;return s>1&&t.push("grid grid-cols-1 gap-3"),s===2&&t.push("md:grid-cols-2"),t});return(t,s)=>(l(),a("div",g,[e.label?(l(),a("label",{key:0,for:e.labelFor,class:"block font-bold mb-2"},o(e.label),9,h)):r("",!0),u("div",{class:b(f(c))},[m(t.$slots,"default")],2),e.help?(l(),a("div",p,o(e.help),1)):r("",!0)]))}};export{k as _};
import{E as d,A as i,a as l,i as a,t as o,k as r,g as u,G as m,y as f,e as b}from"./index.ef6c145a.js";const g={class:"mb-6 last:mb-0"},h=["for"],p={key:1,class:"text-xs text-gray-500 dark:text-slate-400 mt-1"},k={__name:"FormField",props:{label:{type:String,default:null},labelFor:{type:String,default:null},help:{type:String,default:null}},setup(e){const n=d(),c=i(()=>{const t=[],s=n.default().length;return s>1&&t.push("grid grid-cols-1 gap-3"),s===2&&t.push("md:grid-cols-2"),t});return(t,s)=>(l(),a("div",g,[e.label?(l(),a("label",{key:0,for:e.labelFor,class:"block font-bold mb-2"},o(e.label),9,h)):r("",!0),u("div",{class:f(b(c))},[m(t.$slots,"default")],2),e.help?(l(),a("div",p,o(e.help),1)):r("",!0)]))}};export{k as _};

View File

@@ -0,0 +1,5 @@
import{A as N,E as j,a as c,i as m,g as n,b as u,ai as C,t as L,e as a,G as M,k as d,u as E,s as T,N as q,ad as z,r as k,o as H,c as h,w as g,aj as V,F as U,f as P,ak as O,al as X,ac as J,P as K,am as Q,_ as W,l as Y,n as Z,p as ee,q as se}from"./index.ef6c145a.js";import{_ as te}from"./FormControl.3fead597.js";import{_ as ae}from"./ProfileCard.206878f8.js";import{_ as re}from"./GeneralTable.eb99a8fe.js";import{d as le}from"./userData.bcc92478.js";import{g as S}from"./danClass.233b0381.js";const oe={class:"pt-6 mb-6 flex items-center justify-between"},ne={class:"flex items-center justify-start space-x-2"},ie={class:"text-2xl md:text-3xl leading-tight"},ce={__name:"GameTitleLine",props:{path:{type:String,default:null},title:{type:String,required:!0}},setup(v){const y=N(()=>j().default);return(_,x)=>(c(),m("section",oe,[n("div",ne,[u(C,{path:v.path,class:"w-12 h-12 p-1 drop-shadow-md"},null,8,["path"]),n("h1",ie,L(v.title),1)]),a(y)?M(_.$slots,"default",{key:0}):d("",!0)]))}},ue={class:"bg-white dark:bg-slate-900/90 rounded-2xl p-3"},de={class:"w-full"},fe={class:"md:flex md:px-5 md:space-x-10 md:justify-between md:items-center"},me={key:0,class:"md:w-1/3 md:text-right"},_e=n("h2",{class:"text-md sm:text-lg md:text-xl font-bold p-2"}," Select Version ",-1),pe={key:0,class:"w-full pt-6"},he={class:"grid grid-cols-2 gap-6 pt-6"},ge={key:1,class:"md:w-1/2 grid grid-cols-1 md:grid-cols-2 gap-3"},ve={class:"bg-white dark:bg-slate-900/95 rounded-2xl lg:flex lg:justify-between"},ye={class:"w-full"},Se={__name:"GameView",setup(v){const y=ee(),_=se(),x=E();var i=null,t=null;const l=T({currentVersion:null});q(()=>l.currentVersion,()=>{b()}),i=y.params.id,t=z(i),t==null&&_.push({name:"ErrorPage",params:{catchAll:"404"}});const o=k(null),w=k([]);H(async()=>{try{const e=await x.getGameProfiles(i);w.value=G(e)}catch(e){console.error("Failed to fetch profile data:",e)}b()}),t.versions||(l.currentVersion=1);async function b(){try{o.value=null;const e=await x.getUserProfile(i,l.currentVersion);o.value=e,e&&!l.currentVersion&&(l.currentVersion=e.versions[e.versions.length-1])}catch(e){console.error("Failed to fetch user profile data:",e)}}function I(){var e=null;return l.currentVersion?e=`/assets/games/${t.id}/card/${l.currentVersion}.png`:e=t.cardBG,e}function B(){return`
background-image: url('${I()}');
background-size: cover;
background-repeat: no-repeat;
`}const f=[];if(f.push({text:"Player",value:"username",sortable:!0,width:120}),t.noRivals||f.push({text:"Rival ID",value:"extid",width:100}),f.push({text:"Last Play",value:"stats.last_play_timestamp",width:150},{text:"Last Arcade",value:"stats.last_play_arcade",width:150},{text:"Plays",value:"stats.total_plays",sortable:!0,width:50}),t.playerHeaders)for(var D of t.playerHeaders)f.push(D);function G(e){var r=[];for(var s of e){if(s.extid&&(s.extid=le(s.extid)),s.stats){if(s.stats.last_play_timestamp){const p=new Date(s.stats.last_play_timestamp*1e3);s.stats.last_play_timestamp=p.toLocaleString()}s.sgrade&&(s.sgrade=S(s.sgrade).short),s.dgrade&&(s.dgrade=S(s.dgrade).short)}r.push(s)}return r.sort((p,$)=>{const F=p.stats&&p.stats.total_plays||0;return($.stats&&$.stats.total_plays||0)-F}),r}function R(e){var r=[];for(const s of t.versions)e.includes(s.id)&&r.push(s);return r}const A=e=>{const r=e.userId;_.push(`/games/${i}/profiles/${r}`)};return(e,r)=>(c(),h(Z,null,{default:g(()=>[u(Y,null,{default:g(()=>[n("div",{style:J(B()),class:"rounded-2xl mb-6"},[n("div",ue,[n("div",de,[n("div",fe,[u(ce,{path:a(t).icon,title:a(t).name},null,8,["path","title"]),a(t).versions&&o.value?(c(),m("div",me,[_e,u(te,{modelValue:l.currentVersion,"onUpdate:modelValue":r[0]||(r[0]=s=>l.currentVersion=s),options:R(o.value.versions)},null,8,["modelValue","options"])])):d("",!0)])]),o.value?(c(),m("div",pe,[u(ae,{game:a(i),version:l.currentVersion,profile:o.value},{default:g(()=>[n("div",he,[u(V,{number:o.value.stats.total_plays,label:"Plays"},null,8,["number"]),o.value.records?(c(),m(U,{key:0},[o.value.records.skill?(c(),h(V,{key:0,number:o.value.records.skill/100,label:"Skill Points"},null,8,["number"])):d("",!0)],64)):d("",!0)])]),_:1},8,["game","version","profile"])])):(c(),m("div",ge,[a(t).noScores?d("",!0):(c(),h(P,{key:0,href:`/#/games/${a(i)}/scores`,icon:a(O),outline:!1,color:"info",label:"Network Scores"},null,8,["href","icon"])),a(t).noRecords?d("",!0):(c(),h(P,{key:1,href:`/#/games/${a(i)}/records`,icon:a(X),outline:!1,color:"info",label:"Network Records"},null,8,["href","icon"]))]))])],4),u(K,{icon:a(Q),title:"All Players",main:""},null,8,["icon"]),u(W,{"has-table":""},{default:g(()=>[n("div",ve,[n("div",ye,[u(re,{headers:f,items:w.value,path:`/#/${a(i)}/profiles/`,onRowClicked:A},null,8,["items","path"])])])]),_:1})]),_:1})]),_:1}))}};export{Se as default};

View File

@@ -1,5 +0,0 @@
import{A as d,o as r,c as _,b as e,a as s,ar as V,t as x,g as a,G as S,h as P,E as A,I as C,J as y,F as $,r as k,w as m,l as D,d as w,p as L,ai as G,s as R,am as I,e as j,k as B,u as M,a2 as g,n as T,f as z,_ as E,i as F,as as H}from"./index.493ac4c5.js";import{_ as N}from"./FormControl.9a383f73.js";import{_ as U}from"./ProfileCard.ca85f322.js";import"./userData.bcc92478.js";const q={class:"pt-6 mb-6 flex items-center justify-between"},J={class:"flex items-center justify-start space-x-2"},Y={class:"text-2xl md:text-3xl leading-tight"},Z={__name:"GameTitleLine",props:{path:{type:String,default:null},title:{type:String,required:!0}},setup(h){const f=d(()=>A().default);return(u,n)=>(r(),_("section",q,[e("div",J,[s(V,{path:h.path,class:"w-12 h-12 p-1 drop-shadow-md"},null,8,["path"]),e("h1",Y,x(h.title),1)]),a(f)?S(u.$slots,"default",{key:0}):P("",!0)]))}},K=e("thead",null,[e("tr",null,[e("th",null,"Username"),e("th",null,"Rival ID"),e("th",null,"Creation Date"),e("th",null,"Last Played"),e("th",null,"Last Arcade"),e("th",null,"Play Count")])],-1),O=e("td",{"data-label":"Username"},"TRMAZI",-1),Q=e("td",{"data-label":"Rival ID"},"1234-5678",-1),W=e("td",{"data-label":"Creation Date"},"10/22/2022",-1),X=e("td",{"data-label":"Last Played"},"10/22/2022",-1),ee=e("td",{"data-label":"Last Arcade"},"Ho-House",-1),te=e("td",{"data-label":"Play Count",class:"lg:w-32"},"466",-1),se=[O,Q,W,X,ee,te],ae={class:"p-3 lg:px-6 border-t border-gray-100 dark:border-slate-800"},le={__name:"TablePlayers",setup(h){const f=C(),u=d(()=>f.clients),n=y(5),t=y(0),i=d(()=>u.value.slice(n.value*t.value,n.value*(t.value+1))),p=d(()=>Math.ceil(u.value.length/n.value)),b=d(()=>t.value+1),v=d(()=>{const o=[];for(let c=0;c<p.value;c++)o.push(c);return o});return(o,c)=>(r(),_($,null,[e("table",null,[K,e("tbody",null,[(r(!0),_($,null,k(a(i),l=>(r(),_("tr",{key:l.id,class:"border-b-[12px] lg:border-b-0"},se))),128))])]),e("div",ae,[s(G,null,{default:m(()=>[s(D,null,{default:m(()=>[(r(!0),_($,null,k(a(v),l=>(r(),w(L,{key:l,active:l===t.value,label:l+1,color:l===t.value?"lightDark":"whiteDark",small:"",onClick:fe=>t.value=l},null,8,["active","label","color","onClick"]))),128))]),_:1}),e("small",null,"Page "+x(a(b))+" of "+x(a(p)),1)]),_:1})])],64))}},ne={class:"bg-white dark:bg-slate-900/90 rounded-2xl p-3"},oe={class:"w-full"},re={class:"md:flex pb-6 md:px-5 md:space-x-10 md:justify-between md:items-center"},ie={key:0,class:"md:w-1/3 md:text-right"},ce=e("h2",{class:"text-md sm:text-lg md:text-xl font-bold p-2"}," Select Version ",-1),ue={class:"w-full"},de={class:"grid grid-cols-1 gap-6 lg:grid-cols-4 pt-6"},_e={class:"bg-white dark:bg-slate-900/95 rounded-2xl lg:flex lg:justify-between"},me={class:"w-full"},ve={__name:"GameView",setup(h){const f=B(),u=M();var n=null,t=null;const i=R({currentVersion:null}),p={id:1,name:"Trmazi",extid:12345678,avatar:"https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/",last:{arcade:"GhettoCade",date:"7/16/2023"},stats:{firstPlay:"1/14/2021",singlePlays:165,singleDan:1900,singlePoint:1877,doublePlays:15,doubleDan:0,doublePoint:187,skillPoints:3723,jubility:7690}};n=f.params.id,t=I(n),t.versions||(i.currentVersion=1),t||u.push({name:"ErrorPage",params:{catchAll:"404"}});function b(){var o=null;return i.currentVersion?o=`/assets/games/${t.id}/card/${i.currentVersion}.png`:o=t.cardBG,o}function v(){return`
background-image: url('${b()}');
background-size: cover;
background-repeat: no-repeat;
`}return(o,c)=>(r(),w(j,null,{default:m(()=>[s(F,null,{default:m(()=>[e("div",{style:T(v()),class:"rounded-2xl mb-6"},[e("div",ne,[e("div",oe,[e("div",re,[s(Z,{path:a(t).icon,title:a(t).name},null,8,["path","title"]),a(t).versions?(r(),_("div",ie,[ce,s(N,{modelValue:i.currentVersion,"onUpdate:modelValue":c[0]||(c[0]=l=>i.currentVersion=l),options:a(t).versions},null,8,["modelValue","options"])])):P("",!0)])]),e("div",ue,[s(U,{game:a(n),profile:p},{default:m(()=>[e("div",de,[s(g,{number:3733,label:"Scores (All Versions)"}),s(g,{number:1244,label:"Plays (All Versions)"}),s(g,{prefix:"#",number:43,suffix:" / 300",label:"Ranking (All Versions)"}),s(g,{number:2,label:"Rivals"})])]),_:1},8,["game"])])])],4),s(z,{icon:a(H),title:"All Players",main:""},null,8,["icon"]),s(E,{"has-table":""},{default:m(()=>[e("div",_e,[e("div",me,[s(le)])])]),_:1})]),_:1})]),_:1}))}};export{ve as default};

View File

@@ -0,0 +1 @@
import{af as r,a as i,c as n,w as s,g as e,ag as d}from"./index.ef6c145a.js";const m=e("div",{class:"text-center align-center grid"},[e("img",{class:"rounded-full place-self-center",src:d,width:"60"}),e("h1",{class:"text-lg text-gray-100"},"Loading")],-1),h=e("h1",{class:"text-xl text-gray-100"},"No data to show... \u{1F614}",-1),x={__name:"GeneralTable",props:["headers","items"],emits:["row-clicked"],setup(t,{emit:c}){const o=a=>{c("row-clicked",a)};return(a,_)=>{const l=r("EasyDataTable");return i(),n(l,{headers:t.headers,items:t.items,"theme-color":"#c0c7d2","table-class-name":"customize-table","header-text-direction":"left","body-text-direction":"left",onClickRow:o},{loading:s(()=>[m]),"empty-message":s(()=>[h]),_:1},8,["headers","items"])}}};export{x as _};

View File

@@ -1 +0,0 @@
import{s as b,d as V,w as i,e as k,o as n,a as l,f as p,g as a,b as t,a2 as _,_ as g,a3 as y,c as d,p as G,h as u,t as C,i as D,a4 as $,a5 as w,a6 as A}from"./index.493ac4c5.js";import{_ as c}from"./FormControl.9a383f73.js";const F={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 mb-6"},R={class:"mb-6"},B={class:"mb-12"},P=t("h1",{class:"text-xl md:text-2xl font-bold"},"Goal Creator",-1),U=t("p",{class:"pb-4 dark:text-white/50"}," Follow these steps and set some goals! ",-1),T={class:"grid md:grid-cols-3 gap-6"},W=t("h2",{class:"text-lg mb-2"},"Game",-1),N={key:0},S=t("h2",{class:"text-lg mb-2"},"Goal Type",-1),E={key:1},I=t("h2",{class:"text-lg mb-2"},"Goals",-1),L={key:2},O=t("h2",{class:"text-lg mb-2"},"Value",-1),H={key:3},M=t("h2",{class:"text-lg mb-2"},"Deadline",-1),Y={key:0},j=t("h1",{class:"pt-4 text-xl md:text-2xl font-bold"},"Compiled Goal",-1),q={class:"text-lg dark:text-white/75"},z={key:0,class:"space-x-2"},X={__name:"GoalsView",setup(J){const h=[{game:"DanceDance Revolution",types:[{id:"Combo",needValue:!0},{id:"Grade",needValue:!0},{id:"Ranking",needValue:!1},{id:"Score",needValue:!1}],combo:["# of LIFE 4 FCs","# of PFCs","# of MFCs"],grade:["# of AAA","# of AA","# of A","# of B","# of C"],ranking:["1st place","top 10","top 100"],score:["1 million points","2 million points","3 million points"]}],v=["DanceDance Revolution"];var e=b({id:0,game:"...",type:"...",goal:"...",value:null,deadline:"..."});function r(){const m=h.find(o=>o.game==e.game);var s=[];for(const o of m.types)s.push(o.id);return m.listTypes=s,m}function x(){return e.goal=="..."||e.game=="..."||e.deadline=="..."?!1:`I want ${e.goal} on ${e.game} in ${e.deadline}`}const f=[{game:"DanceDance Revolution",type:"Rank",goal:"Top 10 Ranking",status:"#10 of 132",deadline:"3 Weeks"},{game:"pop'n music",type:"Plays",goal:"100 Plays",status:"2 Plays Since Creation",deadline:"1 Week"}];return(m,s)=>(n(),V(k,null,{default:i(()=>[l(D,null,{default:i(()=>[l(p,{icon:a($),title:"Your Goals",main:""},null,8,["icon"]),t("div",F,[l(_,{number:1,label:"Active Goals",color:"text-yellow-500 dark:text-yellow-400"}),l(_,{number:3,label:"Completed Goals",color:"text-green-500 dark:text-green-400"}),l(_,{number:2,label:"Abandoned Goals",color:"text-red-500 dark:text-red-400"})]),l(p,{icon:a(w),title:"Active Goals"},null,8,["icon"]),t("div",R,[l(g,{"has-table":""},{default:i(()=>[l(y,{goals:f})]),_:1})]),l(p,{icon:a(A),title:"Past Goals"},null,8,["icon"]),t("div",B,[l(g,{"has-table":""},{default:i(()=>[l(y,{goals:f,"is-past":""})]),_:1})]),t("div",null,[l(g,null,{footer:i(()=>[a(e).deadline!=="..."?(n(),d("div",z,[l(G,{type:"submit",color:"success",label:"Create",small:!1})])):u("",!0)]),default:i(()=>[P,U,t("div",T,[t("div",null,[W,l(c,{modelValue:a(e).game,"onUpdate:modelValue":s[0]||(s[0]=o=>a(e).game=o),options:v,"input-value":"",name:"game"},null,8,["modelValue"])]),a(e).game!=="..."?(n(),d("div",N,[S,l(c,{modelValue:a(e).type,"onUpdate:modelValue":s[1]||(s[1]=o=>a(e).type=o),options:r().listTypes,"input-value":"",name:"type"},null,8,["modelValue","options"])])):u("",!0),a(e).type!=="..."?(n(),d("div",E,[I,l(c,{modelValue:a(e).goal,"onUpdate:modelValue":s[2]||(s[2]=o=>a(e).goal=o),options:r()[a(e).type.toLowerCase()],"input-value":"",name:"goal"},null,8,["modelValue","options"])])):u("",!0),a(e).goal!=="..."&&r().types.find(o=>o.id==a(e).type).needValue?(n(),d("div",L,[O,l(c,{modelValue:a(e).value,"onUpdate:modelValue":s[3]||(s[3]=o=>a(e).value=o),placeholder:a(e).goal,name:"goal"},null,8,["modelValue","placeholder"])])):u("",!0),a(e).goal!=="..."||a(e).value?(n(),d("div",H,[M,l(c,{modelValue:a(e).deadline,"onUpdate:modelValue":s[4]||(s[4]=o=>a(e).deadline=o),options:["24Hrs","5 Days","15 Days","1 Week","2 Weeks"],"input-value":"",name:"deadline"},null,8,["modelValue"])])):u("",!0)]),a(e).deadline!=="..."?(n(),d("div",Y,[j,t("p",q,C(x()),1)])):u("",!0)]),_:1})])]),_:1})]),_:1}))}};export{X as default};

View File

@@ -0,0 +1 @@
import{u as h,r as f,N as b,a,c as l,w as t,b as i,O as y,P as p,e as r,W as g,g as o,_,f as c,k as s,R as m,X as x,i as n,Y as k,t as v,Z as N,l as w,n as D}from"./index.ef6c145a.js";const $={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},S={key:0,class:"text-lg"},V={key:1,class:"text-lg"},B={class:"space-x-2"},K={key:0,class:"text-lg"},R={key:1,class:"text-lg"},C={class:"space-x-2"},U={__name:"IntegrationView",setup(I){const d=h(),e=f(d.userData);return b(()=>d.userData,u=>{e.value=u}),(u,L)=>(a(),l(D,null,{default:t(()=>[i(w,null,{default:t(()=>[i(y,{class:"mb-6","use-small":"","even-smaller":""}),i(p,{icon:r(g),title:"Server Integrations",main:""},null,8,["icon"]),o("div",$,[i(_,null,{footer:t(()=>[o("div",B,[!e.value.discord||!e.value.discord.linked?(a(),l(c,{key:0,type:"submit",color:"success",label:"Link Now"})):s("",!0),e.value.discord&&e.value.discord.linked?(a(),l(c,{key:1,type:"submit",color:"info",label:"Relink"})):s("",!0),e.value.discord&&e.value.discord.linked?(a(),l(c,{key:2,type:"submit",color:"danger",label:"Unlink"})):s("",!0)])]),default:t(()=>[i(m,{color:"info",icon:r(x),label:"Discord",class:"mb-2"},null,8,["icon"]),e.value.discord&&e.value.discord.linked?(a(),n("h1",S,[k(" Discord is linked to "),o("b",null,v(e.value.discord.username),1)])):s("",!0),!e.value.discord||!e.value.discord.linked?(a(),n("h1",V," Discord isn't linked! ")):s("",!0)]),_:1}),i(_,null,{footer:t(()=>[o("div",C,[!e.value.tachi||!e.value.tachi.linked?(a(),l(c,{key:0,type:"submit",color:"success",label:"Link Now"})):s("",!0),e.value.tachi&&e.value.tachi.linked?(a(),l(c,{key:1,type:"submit",color:"info",label:"Relink"})):s("",!0),e.value.tachi&&e.value.tachi.linked?(a(),l(c,{key:2,type:"submit",color:"danger",label:"Unlink"})):s("",!0)])]),default:t(()=>[i(m,{icon:r(N),color:"info",label:"Kamaitachi",class:"mb-2"},null,8,["icon"]),e.value.tachi&&e.value.tachi.linked?(a(),n("h1",K,[k(" Kamaitachi is linked to "),o("b",null,v(e.value.tachi.username),1)])):s("",!0),!e.value.tachi||!e.value.tachi.linked?(a(),n("h1",R," Kamaitachi isn't linked! ")):s("",!0)]),_:1})])]),_:1})]),_:1}))}};export{U as default};

View File

@@ -1 +0,0 @@
import{d as c,w as t,e as r,o as _,a as s,P as d,f as m,g as a,b as l,_ as i,p as e,R as o,i as u,X as n,Y as b,Z as f,$ as h,a0 as p}from"./index.493ac4c5.js";const k={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},g=l("h1",{class:"text-lg"},[n("Discord is linked to "),l("b",null,"@trmazi")],-1),x=l("h1",{class:"text-lg"},"Discord isn't linked!",-1),y={class:"space-x-2"},$=l("h1",{class:"text-lg"},[n("Kamaitachi is linked to "),l("b",null,"@trmazi")],-1),v=l("h1",{class:"text-lg"},"Kamaitachi isn't linked!",-1),w={class:"space-x-2"},N=l("h1",{class:"text-lg"},[n("Start.GG is linked to "),l("b",null,"@trmazi")],-1),G=l("h1",{class:"text-lg"},"Start.GG isn't linked!",-1),S={class:"space-x-2"},D={__name:"IntegrationView",setup(R){return(V,z)=>(_(),c(r,null,{default:t(()=>[s(u,null,{default:t(()=>[s(d,{class:"mb-6","use-small":"","even-smaller":""}),s(m,{icon:a(b),title:"Server Integrations",main:""},null,8,["icon"]),l("div",k,[s(i,null,{footer:t(()=>[l("div",y,[s(e,{type:"submit",color:"success",label:"Link Now"}),s(e,{type:"submit",color:"info",label:"Relink"}),s(e,{type:"submit",color:"danger",label:"Unlink"})])]),default:t(()=>[s(o,{color:"info",icon:a(f),label:"Discord",class:"mb-2"},null,8,["icon"]),g,x]),_:1}),s(i,null,{footer:t(()=>[l("div",w,[s(e,{type:"submit",color:"success",label:"Link Now"}),s(e,{type:"submit",color:"info",label:"Relink"}),s(e,{type:"submit",color:"danger",label:"Unlink"})])]),default:t(()=>[s(o,{icon:a(h),color:"info",label:"Kamaitachi",class:"mb-2"},null,8,["icon"]),$,v]),_:1}),s(i,null,{footer:t(()=>[l("div",S,[s(e,{type:"submit",color:"success",label:"Link Now"}),s(e,{type:"submit",color:"info",label:"Relink"}),s(e,{type:"submit",color:"danger",label:"Unlink"})])]),default:t(()=>[s(o,{icon:a(p),color:"info",label:"Start.GG",class:"mb-2"},null,8,["icon"]),N,G]),_:1})])]),_:1})]),_:1}))}};export{D as default};

View File

@@ -1 +1 @@
@keyframes fadeInUp{0%{transform:translate3d(0,10px,0)}to{transform:translateZ(0);opacity:1}}.animated{animation-duration:.7s;animation-fill-mode:both;-webkit-animation-duration:.7s;-webkit-animation-fill-mode:both}.animatedFadeInUp{opacity:0}.fadeInUp{opacity:0;animation-name:fadeInUp;-webkit-animation-name:fadeInUp}
@keyframes fadeInUp{0%{transform:translate3d(0,10px,0)}to{transform:translateZ(0);opacity:1}}.animated{animation-duration:.7s;animation-fill-mode:both;-webkit-animation-duration:.7s;-webkit-animation-fill-mode:both}.animatedFadeInUp{opacity:0}.fadeInUp{opacity:0;animation-name:fadeInUp;-webkit-animation-name:fadeInUp}@media screen and (max-width: 768px){.animatedFadeInUp,.fadeInUp{opacity:1;animation-name:none!important;-webkit-animation-name:none!important}}

View File

@@ -1 +0,0 @@
import{O as t,o,c as n,b as e,G as r,v as _,g as d}from"./index.493ac4c5.js";const c={class:"bg-gray-950 dark:text-slate-100"},l={class:"animated animatedFadeInUp fadeInUp"},m={__name:"LayoutGuest",setup(u){const s=t();return(a,i)=>(o(),n("div",{class:_({dark:d(s).darkMode})},[e("div",c,[e("div",l,[r(a.$slots,"default")])])],2))}};export{m as _};

View File

@@ -0,0 +1 @@
import{L as t,a as o,i as n,g as e,G as r,y as _,e as d}from"./index.ef6c145a.js";const l={class:"bg-gray-950 dark:text-slate-100"},c={class:"animated animatedFadeInUp fadeInUp"},m={__name:"LayoutGuest",setup(i){const a=t();return(s,u)=>(o(),n("div",{class:_({dark:d(a).darkMode})},[e("div",l,[e("div",c,[r(s.$slots,"default")])])],2))}};export{m as _};

View File

@@ -1 +0,0 @@
import{s as c,d as _,w as a,o as p,b as e,a as o,g as r,p as n,v as f,_ as h,x,u as w,y as b,z as g}from"./index.493ac4c5.js";import{_ as v}from"./FormCheckRadio.c7e54cea.js";import{_ as i}from"./FormField.1774c999.js";import{_ as m}from"./FormControl.9a383f73.js";import{_ as V}from"./LayoutGuest.38de82d0.js";const y={class:"flex md:min-h-screen md:items-center md:justify-center"},$={class:"p-4 flex flex-col md:flex-row w-full space-y-2 md:space-y-0 md:space-x-4"},k={class:"flex flex-col items-center text-wrap h-full md:mt-5"},P=e("img",{src:x,class:"rounded-full shadow-lg mb-2"},null,-1),R=e("h1",{class:"text-xl"},[e("samp",null,"PhaseII")],-1),U=e("hr",{class:"border-r-1 my-1 w-full"},null,-1),C=e("p",{class:"text-lg relative bottom-0"},"Please log in.",-1),j=e("div",{class:"md:border-r"},null,-1),B={class:"flex flex-col gap-2 mt-4"},I=e("hr",{class:"border-t my-4 w-full"},null,-1),N={class:"flex flex-col gap-2 my-4"},z=e("h2",null,"Not Registered?",-1),A=e("h2",null,"Forgot Password?",-1),E={__name:"LoginView",setup(L){const l=c({login:"john.doe",pass:"highly-secure-password-fYjUw-",remember:!0,spinin:!1}),d=w(),u=()=>{d.push("/")};return(F,s)=>(p(),_(V,null,{default:a(()=>[e("div",y,[o(h,{class:f(["w-full md:w-auto rounded-none md:rounded-xl md:drop-shadow-xl",l.spinin?"animate-spin":"animate-none"]),"has-table":"","is-auth":""},{default:a(()=>[e("div",$,[e("div",k,[P,R,e("button",{class:"text-sm text-gray-700 dark:text-white/75",onClick:s[0]||(s[0]=t=>l.spinin=!l.spinin)}," Spinnin' since 2021 "),U,C]),j,e("div",null,[o(i,{label:"Username"},{default:a(()=>[o(m,{modelValue:l.login,"onUpdate:modelValue":s[1]||(s[1]=t=>l.login=t),icon:r(b),name:"login",autocomplete:"username"},null,8,["modelValue","icon"])]),_:1}),o(i,{label:"Password"},{default:a(()=>[o(m,{modelValue:l.pass,"onUpdate:modelValue":s[2]||(s[2]=t=>l.pass=t),icon:r(g),type:"password",name:"password",autocomplete:"current-password"},null,8,["modelValue","icon"])]),_:1}),o(v,{modelValue:l.remember,"onUpdate:modelValue":s[3]||(s[3]=t=>l.remember=t),name:"remember",label:"Remember Me","input-value":!0},null,8,["modelValue"]),e("div",B,[o(n,{label:"Log In",color:"success",onClick:s[4]||(s[4]=t=>u())})]),I,e("div",N,[z,o(n,{label:"Register",color:"info",href:"/#/auth/register"}),A,o(n,{label:"Password Reset",color:"warning",href:"/#/auth/reset"})])])])]),_:1},8,["class"])])]),_:1}))}};export{E as default};

View File

@@ -0,0 +1 @@
import{u as _,s as f,a as x,c as b,w as a,g as e,b as o,e as n,v as g,x as h,f as r,y as w,_ as v,z as V,q as y}from"./index.ef6c145a.js";import{_ as $}from"./FormCheckRadio.9bd4e29f.js";import{_ as i}from"./FormField.e32df112.js";import{_ as m}from"./FormControl.3fead597.js";import{_ as k}from"./LayoutGuest.935550c8.js";const U={class:"flex md:min-h-screen md:items-center md:justify-center"},C={class:"p-4 flex flex-col md:flex-row w-full space-y-2 md:space-y-0 md:space-x-4"},P={class:"flex flex-col items-center text-wrap h-full md:mt-5"},R=e("img",{src:V,class:"rounded-full shadow-lg mb-2"},null,-1),S=e("h1",{class:"text-xl"},[e("samp",null,"PhaseII")],-1),q=e("hr",{class:"border-r-1 my-1 w-full"},null,-1),B=e("p",{class:"text-lg relative bottom-0"},"Please log in.",-1),I=e("div",{class:"md:border-r"},null,-1),N={class:"flex flex-col gap-2 mt-4"},z=e("hr",{class:"border-t my-4 w-full"},null,-1),A={class:"flex flex-col gap-2 my-4"},L=e("h2",null,"Not Registered?",-1),H={__name:"LoginView",setup(M){const d=y(),u=_(),s=f({login:"",pass:"",remember:!0,spinin:!1}),c=async()=>{if(!s.login||!s.pass){alert("Please fill in all fields.");return}await u.createUserSession(s.login,s.pass,s.remember)&&d.push("/")};return(p,l)=>(x(),b(k,null,{default:a(()=>[e("div",U,[o(v,{class:w(["w-full md:w-auto rounded-none md:rounded-xl md:drop-shadow-xl",s.spinin?"animate-spin":"animate-none"]),"has-table":"","is-auth":""},{default:a(()=>[e("div",C,[e("div",P,[R,S,e("button",{class:"text-sm text-gray-700 dark:text-white/75",onClick:l[0]||(l[0]=t=>s.spinin=!s.spinin)}," Spinnin' since 2021 "),q,B]),I,e("div",null,[o(i,{label:"Username"},{default:a(()=>[o(m,{modelValue:s.login,"onUpdate:modelValue":l[1]||(l[1]=t=>s.login=t),icon:n(g),name:"login",autocomplete:"username",required:""},null,8,["modelValue","icon"])]),_:1}),o(i,{label:"Password"},{default:a(()=>[o(m,{modelValue:s.pass,"onUpdate:modelValue":l[2]||(l[2]=t=>s.pass=t),icon:n(h),type:"password",name:"password",autocomplete:"current-password",required:""},null,8,["modelValue","icon"])]),_:1}),o($,{modelValue:s.remember,"onUpdate:modelValue":l[3]||(l[3]=t=>s.remember=t),name:"remember",label:"Remember Me","input-value":!0},null,8,["modelValue"]),e("div",N,[o(r,{label:"Log In",color:"success",onClick:l[4]||(l[4]=t=>c())})]),z,e("div",A,[L,o(r,{label:"Register",color:"info",href:"/#/auth/register"})])])])]),_:1},8,["class"])])]),_:1}))}};export{H as default};

View File

@@ -0,0 +1 @@
import{u as _,r as o,o as m,a as r,c as f,w as s,b as a,i as h,P as p,e as v,a2 as w,_ as b,g as l,F as g,k as x,l as $,n as k,p as B}from"./index.ef6c145a.js";import{_ as y}from"./ArcadeCard.687fa394.js";import{_ as I}from"./GeneralTable.eb99a8fe.js";const M={class:"bg-white dark:bg-slate-900/95 rounded-2xl lg:flex lg:justify-between"},N={class:"w-full"},D={__name:"MachinesView",setup(V){const n=_(),t=o({}),c=o(!0),i=B(),d=parseInt(i.params.id);m(async()=>{try{const e=await n.getArcade(d);t.value=e,c.value=!1}catch(e){console.log("Failed to fetch arcade data:",e)}});const u=[{text:"PCBID",value:"pcbId",width:200},{text:"Name",value:"description",width:200},{text:"Port",value:"port",sortable:!0,width:120},{text:"OTA",value:"ota",sortable:!0,width:120}];return(e,C)=>(r(),f(k,null,{default:s(()=>[a($,null,{default:s(()=>[c.value?x("",!0):(r(),h(g,{key:0},[a(y,{class:"mb-6",arcade:t.value,"use-small":!0},null,8,["arcade"]),a(p,{icon:v(w),title:"Machines",main:""},null,8,["icon"]),a(b,{"has-table":""},{default:s(()=>[l("div",M,[l("div",N,[a(I,{headers:u,items:t.value.machines},null,8,["items"])])])]),_:1})],64))]),_:1})]),_:1}))}};export{D as default};

View File

@@ -1 +0,0 @@
import{J as C,A as m,o as s,c as p,b as a,F as f,r as k,t as l,g as n,a as r,w as u,l as P,d as b,p as y,ai as D,ac as x,e as N,k as I,f as L,_ as w,h as $,i as M,aa as V}from"./index.493ac4c5.js";import{_ as A}from"./ArcadeCard.a97027e1.js";import{C as E}from"./CardBoxComponentEmpty.df76b494.js";import"./area.7873ab93.js";const F=a("thead",null,[a("tr",null,[a("th",null,"Name"),a("th",null,"PCBID"),a("th",null,"Cabinet?"),a("th",null,"Updates?")])],-1),J={"data-label":"Name"},G={"data-label":"PCBID"},O={"data-label":"Cabinet?"},R={"data-label":"Updates?"},T={class:"p-3 lg:px-6 border-t border-gray-100 dark:border-slate-800"},U={__name:"TableMachine",props:{machines:{type:Object,required:!0}},setup(g){const d=g,c=C(8),t=C(0),o=m(()=>d.machines.slice(c.value*t.value,c.value*(t.value+1))),i=m(()=>Math.ceil(d.machines.length/c.value)),v=m(()=>t.value+1),B=m(()=>{const h=[];for(let _=0;_<i.value;_++)h.push(_);return h});return(h,_)=>(s(),p(f,null,[a("table",null,[F,a("tbody",null,[(s(!0),p(f,null,k(n(o),e=>(s(),p("tr",{key:e.id,class:"border-b-[12px] lg:border-b-0"},[a("td",J,l(e.name),1),a("td",G,l(e.pcbid),1),a("td",O,l(e.cabinet?"Yes":"No"),1),a("td",R,l(e.ota?"Yes":"No"),1)]))),128))])]),a("div",T,[r(D,null,{default:u(()=>[r(P,null,{default:u(()=>[(s(!0),p(f,null,k(n(B),e=>(s(),b(y,{key:e,active:e===t.value,label:e+1,color:e===t.value?"lightDark":"whiteDark",small:"",onClick:Y=>t.value=e},null,8,["active","label","color","onClick"]))),128))]),_:1}),a("small",null,"Page "+l(n(v))+" of "+l(n(i)),1)]),_:1})])],64))}},z={__name:"MachinesView",setup(g){const d=I(),c=parseInt(d.params.id),t=x.find(i=>i.id===c),o=[{id:0,pcbid:"1A2B3C4D0000",name:"Test PCBID",ota:!1,cabinet:!1},{id:1,pcbid:"1E2R3G3F4JJ0",name:"Other PCBID",ota:!0,cabinet:!0}];return(i,v)=>(s(),b(N,null,{default:u(()=>[r(M,null,{default:u(()=>[r(A,{class:"mb-6","arcade-data":n(t)},null,8,["arcade-data"]),r(L,{icon:n(V),title:"Machines",main:""},null,8,["icon"]),r(w,{class:"mb-6","has-table":""},{default:u(()=>[o.length?(s(),b(U,{key:0,machines:o})):$("",!0),o.length?$("",!0):(s(),b(E,{key:1}))]),_:1})]),_:1})]),_:1}))}};export{z as default};

View File

@@ -1 +0,0 @@
import{am as c,d as l,w as s,e as m,k as u,u as f,o as d,a as t,p,g as a,f as _,_ as g,i as h,q as y,aA as b}from"./index.493ac4c5.js";import{_ as H}from"./TableScores.c02d60d9.js";import"./CardBoxComponentEmpty.df76b494.js";const P={__name:"NetworkScores",setup(S){const r=u(),i=f();var o=null,e=null;o=r.params.game,e=c(o),e||i.push({name:"ErrorPage",params:{catchAll:"404"}});const n=[{id:1,player:"TRMAZI",playerId:1,timestamp:"2023.05.30 12:00:39 AM",isHighScore:!1,song:{id:10741,name:"100 Sec. Kitchen Battle!!",artist:"Orange Lounge",chart:"SP EXPERT",difficulty:"12"},grade:"B+",points:787690,combo:42,location:{arcade:"Ho-House",type:"Cab"}},{id:1,player:"BARRU",playerId:2,timestamp:"2023.05.30 12:00:39 AM",isHighScore:!1,song:{id:10741,name:"100 Sec. Kitchen Battle!!",artist:"Orange Lounge",chart:"SP EXPERT",difficulty:"12"},grade:"B+",points:787690,combo:42,location:{arcade:"Ho-House",type:"Cab"}},{id:1,player:"HO",playerId:3,timestamp:"2023.05.30 12:00:39 AM",isHighScore:!1,song:{id:10741,name:"100 Sec. Kitchen Battle!!",artist:"Orange Lounge",chart:"SP EXPERT",difficulty:"12"},grade:"B+",points:787690,combo:42,location:{arcade:"Ho-House",type:"Cab"}}];return($,B)=>(d(),l(m,null,{default:s(()=>[t(h,null,{default:s(()=>[t(p,{icon:a(y),href:`/#/games/${a(o)}`,class:"w-full md:w-auto mb-6",color:"info",label:`${a(e).shortName?a(e).shortName:a(e).name} Home`},null,8,["icon","href","label"]),t(_,{icon:a(b),title:`All ${a(e).shortName?a(e).shortName:a(e).name} Scores`,main:""},null,8,["icon","title"]),t(g,{"has-table":""},{default:s(()=>[t(H,{game:a(o),entries:n},null,8,["game"])]),_:1})]),_:1})]),_:1}))}};export{P as default};

View File

@@ -1,6 +0,0 @@
import{u as m,o as a,c as p,a as n,w as l,b as r,t as _,n as f,_ as h,d as o,e as g,f as b,g as s,r as v,F as w,h as x,i as y,m as k}from"./index.493ac4c5.js";import{C as N}from"./CardBoxComponentEmpty.df76b494.js";import{t as C}from"./news.b9c16f1f.js";const $={class:"outline outline-green-900/50 hover:scale-[1.01] hover:shadow-xl hover:outline hover:outline-blue-500/50 hover:bg-slate-500 hover:dark:bg-slate-950/90 bg-white dark:bg-slate-900/90 rounded-xl p-4 h-full w-full transition-all duration-10"},S=r("p",{class:"text-sm font-bold"},"Unread",-1),B={class:"text-sm"},V=r("hr",{class:"pb-1"},null,-1),q={class:"text-xl pb-2"},z={__name:"CardBoxNews",props:{title:{type:String,required:!0},content:{type:String,required:!0},cover:{type:String,default:null},date:{type:String,required:!0},id:{type:Number,required:!0}},setup(i){const e=i,c=m();function u(d){if(d!==null)return`
background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .6)),
url('${e.cover}');
background-size: cover;
background-repeat: no-repeat;
`}function t(){c.push(`/news/${e.id}`)}return(d,E)=>(a(),p("button",{class:"text-left",onClick:t},[n(h,{class:"mb-2",style:f(u(e.cover)),"has-table":""},{default:l(()=>[r("div",$,[S,r("p",B,_(e.date),1),V,r("h2",q,_(e.title),1)])]),_:1},8,["style"])]))}},D={class:"grid gap-4 grid-cols-1 w-full"},U={__name:"NewsView",setup(i){const e=C;return(c,u)=>(a(),o(g,null,{default:l(()=>[n(y,null,{default:l(()=>[n(b,{icon:s(k),title:"Network News",main:""},null,8,["icon"]),r("div",D,[(a(!0),p(w,null,v(s(e),t=>(a(),o(z,{id:t.id,key:t.id,title:t.title,content:t.content,date:t.timestamp,cover:t.cover,class:"w-full h-full"},null,8,["id","title","content","date","cover"]))),128))]),!s(e)||!s(e).length?(a(),o(N,{key:0})):x("",!0)]),_:1})]),_:1}))}};export{U as default};

View File

@@ -0,0 +1 @@
import{u as y,r as c,o as P,a as m,c as k,w as n,b as a,i as B,P as _,e as f,ah as S,_ as h,g as i,a9 as $,F as A,k as D,l as N,n as C,p as I}from"./index.ef6c145a.js";import{_ as v}from"./GeneralTable.eb99a8fe.js";import{_ as R}from"./ArcadeCard.687fa394.js";const T={class:"bg-white dark:bg-slate-900/95 rounded-2xl lg:flex lg:justify-between"},V={class:"w-full"},E={class:"bg-white dark:bg-slate-900/95 rounded-2xl lg:flex lg:justify-between"},F={class:"w-full"},M={__name:"PaseliView",setup(H){const o=y(),r=c({}),t=c({}),d=c(!0),p=I(),u=parseInt(p.params.id);P(async()=>{try{const e=await o.getArcade(u),s=await o.getPaseliData(u);r.value=e,t.value=s,d.value=!1}catch(e){console.log("Failed to fetch arcade data:",e)}});const g=[{text:"Timestamp",value:"timestamp",width:200},{text:"Amount",value:"data.delta",width:200},{text:"Remaining Balance",value:"data.balance",width:200},{text:"Reason",value:"data.reason",width:200}],w=[{text:"Player",value:"username"},{text:"Balance",value:"balance"}];function b(e){var s=[];for(var l of JSON.parse(JSON.stringify(e))){if(l.timestamp){const x=new Date(l.timestamp*1e3);l.timestamp=x.toLocaleString()}s.push(l)}return s}return(e,s)=>(m(),k(C,null,{default:n(()=>[a(N,null,{default:n(()=>[!d.value&&t.value.balances&&t.value.transactions?(m(),B(A,{key:0},[a(R,{class:"mb-6",arcade:r.value,"use-small":!0},null,8,["arcade"]),a(_,{icon:f(S),title:"Player PASELI Balances",main:""},null,8,["icon"]),a(h,{"has-table":""},{default:n(()=>[i("div",T,[i("div",V,[a(v,{headers:w,items:t.value.balances},null,8,["items"])])])]),_:1}),a(_,{icon:f($),title:"PASELI Transaction History",main:"",class:"pt-6"},null,8,["icon"]),a(h,{"has-table":""},{default:n(()=>[i("div",E,[i("div",F,[a(v,{headers:g,items:b(t.value.transactions)},null,8,["items"])])])]),_:1})],64)):D("",!0)]),_:1})]),_:1}))}};export{M as default};

View File

@@ -1 +0,0 @@
import{J as y,A as h,o as s,c as p,b as a,F as g,r as P,t as c,g as e,a as r,w as i,l as L,d as o,p as A,ai as D,ac as T,e as w,k as E,f as $,_ as C,h as f,i as I,ap as M,aq as R}from"./index.493ac4c5.js";import{_ as S}from"./ArcadeCard.a97027e1.js";import{C as x}from"./CardBoxComponentEmpty.df76b494.js";import"./area.7873ab93.js";const N=a("thead",null,[a("tr",null,[a("th",null,"User"),a("th",null,"Value"),a("th",null,"Machine"),a("th",null,"Reason"),a("th",null,"Timestamp")])],-1),q={"data-label":"User"},F={"data-label":"Value"},H={"data-label":"Machine"},U={"data-label":"Reason"},j={"data-label":"Timestamp"},z={class:"p-3 lg:px-6 border-t border-gray-100 dark:border-slate-800"},V={__name:"TablePaseli",props:{transactions:{type:Object,required:!0}},setup(v){const _=v,u=y(8),l=y(0),n=h(()=>_.transactions.slice(u.value*l.value,u.value*(l.value+1))),d=h(()=>Math.ceil(_.transactions.length/u.value)),k=h(()=>l.value+1),B=h(()=>{const b=[];for(let m=0;m<d.value;m++)b.push(m);return b});return(b,m)=>(s(),p(g,null,[a("table",null,[N,a("tbody",null,[(s(!0),p(g,null,P(e(n),t=>(s(),p("tr",{key:t.id,class:"border-b-[12px] lg:border-b-0"},[a("td",q,c(t.user),1),a("td",F,c(t.value),1),a("td",H,c(t.machine),1),a("td",U,c(t.reason),1),a("td",j,c(t.timestamp),1)]))),128))])]),a("div",z,[r(D,null,{default:i(()=>[r(L,null,{default:i(()=>[(s(!0),p(g,null,P(e(B),t=>(s(),o(A,{key:t,active:t===l.value,label:t+1,color:t===l.value?"lightDark":"whiteDark",small:"",onClick:J=>l.value=t},null,8,["active","label","color","onClick"]))),128))]),_:1}),a("small",null,"Page "+c(e(k))+" of "+c(e(d)),1)]),_:1})])],64))}},Q={__name:"PaseliView",setup(v){const _=E(),u=parseInt(_.params.id),l=T.find(d=>d.id===u);var n=[{id:0,value:-300,timestamp:"7/13/2023 1:27 PM",machine:"SDVX",reason:"/eacoin/nstart",user:"Trmazi"}];return(d,k)=>(s(),o(w,null,{default:i(()=>[r(I,null,{default:i(()=>[r(S,{class:"mb-6","arcade-data":e(l)},null,8,["arcade-data"]),r($,{icon:e(M),title:"Player PASELI Balances",main:""},null,8,["icon"]),r(C,{class:"mb-6","has-table":""},{default:i(()=>[e(n).length?(s(),o(V,{key:0,transactions:e(n)},null,8,["transactions"])):f("",!0),e(n).length?f("",!0):(s(),o(x,{key:1}))]),_:1}),r($,{icon:e(R),title:"PASELI Transaction History",main:""},null,8,["icon"]),r(C,{class:"mb-6","has-table":""},{default:i(()=>[e(n).length?(s(),o(V,{key:0,transactions:e(n)},null,8,["transactions"])):f("",!0),e(n).length?f("",!0):(s(),o(x,{key:1}))]),_:1})]),_:1})]),_:1}))}};export{Q as default};

View File

@@ -1 +0,0 @@
import{am as c,d as m,w as t,e as u,k as f,u as _,o as p,a as s,p as d,g as a,f as g,_ as h,i as $,q as b,aA as B}from"./index.493ac4c5.js";import{_ as k}from"./TableScores.c02d60d9.js";import"./CardBoxComponentEmpty.df76b494.js";const x={__name:"PersonalScores",setup(A){const n=f(),i=_();var o=null,e=null;o=n.params.game,e=c(o),e||i.push({name:"ErrorPage",params:{catchAll:"404"}});const r={id:1,name:"TRMAZI"},l=[{id:1,player:"TRMAZI",timestamp:"2023.05.30 12:00:39 AM",isHighScore:!1,song:{id:10741,name:"100 Sec. Kitchen Battle!!",artist:"Orange Lounge",chart:"SP EXPERT",difficulty:"12"},grade:"B+",points:787690,combo:42,location:{arcade:"Ho-House",type:"Cab"}}];return(P,R)=>(p(),m(u,null,{default:t(()=>[s($,null,{default:t(()=>[s(d,{icon:a(b),href:`/#/games/${a(o)}/profiles/${r.id}`,class:"w-full md:w-auto mb-6",color:"info",label:"Back to Profile"},null,8,["icon","href"]),s(g,{icon:a(B),title:`${r.name}'s ${a(e).shortName?a(e).shortName:a(e).name} Scores`,main:""},null,8,["icon","title"]),s(h,{"has-table":""},{default:t(()=>[s(k,{"is-personal":"",game:a(o),entries:l},null,8,["game"])]),_:1})]),_:1})]),_:1}))}};export{x as default};

View File

@@ -0,0 +1,5 @@
import{u as C,ad as F,s as T,N as J,r as G,o as O,a as t,c as u,w as m,l as R,g as f,b as d,e as s,m as z,f as p,i as _,k as o,aq as E,P as M,ak as U,al as q,ac as X,j as H,F as P,aj as y,y as Y,Y as b,t as g,n as K,p as Q,q as W}from"./index.ef6c145a.js";import{_ as Z,g as S,a as ee}from"./ProfileCard.206878f8.js";import{_ as ae}from"./FormControl.3fead597.js";import{g as v}from"./danClass.233b0381.js";import"./userData.bcc92478.js";const le={class:"md:flex pb-6 md:justify-between md:items-center"},se={key:0,class:"mt-2 md:mt-0 md:w-1/3 md:text-right"},re=f("h2",{class:"text-md sm:text-lg md:text-xl font-bold p-2"}," Select Version ",-1),te={class:"bg-white dark:bg-slate-900/90 rounded-2xl pt-6 p-3"},ne={class:"w-full"},ie={class:"md:w-1/3 grid grid-cols-1 md:grid-cols-2 gap-3"},oe={class:"my-6 grid grid-cols-1 md:grid-cols-4 gap-6"},_e={__name:"PlayerView",setup(ue){const k=Q(),w=W(),N=C();var c=null,i=null,h=null;c=k.params.game,h=k.params.userId,i=F(c),i||w.push({name:"ErrorPage",params:{catchAll:"404"}});const n=T({currentVersion:null});J(()=>n.currentVersion,()=>{V()});const a=G(null);O(async()=>{V()}),i.versions||(n.currentVersion=1);async function V(){try{a.value=null;const e=await N.getUserProfile(c,n.currentVersion,h);a.value=B(e),e&&!n.currentVersion&&(n.currentVersion=e.versions[e.versions.length-1])}catch(e){console.error("Failed to fetch user profile data:",e)}}var $=[{label:"Register Date",type:String,span:"md:col-span-2",key:"first_play_timestamp"},{label:"Last Play",type:String,span:"md:col-span-2",key:"last_play_timestamp"},{label:"First Arcade",type:String,span:"md:col-span-2",key:"first_play_arcade"},{label:"Last Arcade",type:String,span:"md:col-span-2",key:"last_play_arcade"},{label:"Total Plays",type:Number,key:"total_plays"},{label:"EXP",type:Number,key:"exp"},{label:"SP Plays",type:Number,key:"single_plays"},{label:"DP Plays",type:Number,key:"double_plays"},{label:"SP DJPOINT",type:Number,key:"single_dj_points"},{label:"DP DJPOINT",type:Number,key:"double_dj_points"}];function x(){var e=null;return n.currentVersion?e=`/assets/games/${i.id}/card/${n.currentVersion}.png`:e=i.cardBG,e}function D(){return`
background-image: url('${x()}');
background-size: cover;
background-repeat: no-repeat;
`}function I(e,l){if(l){if(e.isSkill&&l.jubility)return S(l.jubility);if(e.isJubility&&l.records.skill)return ee(l.records.skill)}return""}function j(e){var l=[];for(const r of i.versions)e.includes(r.id)&&l.push(r);return l}function L(e,l){return e.isSkill?l.stats[e.key]/100:e.isJubility?l.stats[e.key]/10:l.stats[e.key]}function A(e,l){return l?e/10:e/100}function B(e){if(e.stats){if(e.stats.first_play_timestamp){const l=new Date(e.stats.first_play_timestamp*1e3);e.stats.first_play_timestamp=l.toLocaleString()}if(e.stats.last_play_timestamp){const l=new Date(e.stats.last_play_timestamp*1e3);e.stats.last_play_timestamp=l.toLocaleString()}e.dp&&e.dp.dan!==void 0&&(e.dp.dan=v(e.dp.dan).short)}return e}return(e,l)=>(t(),u(K,null,{default:m(()=>[a.value?(t(),u(R,{key:0},{default:m(()=>[f("div",le,[d(p,{icon:s(z),href:`/#/games/${s(c)}`,class:"w-full md:w-auto",color:"info",label:`${s(i).shortName?s(i).shortName:s(i).name} Home`},null,8,["icon","href","label"]),s(i).versions&&a.value?(t(),_("div",se,[re,d(ae,{modelValue:n.currentVersion,"onUpdate:modelValue":l[0]||(l[0]=r=>n.currentVersion=r),options:j(a.value.versions)},null,8,["modelValue","options"])])):o("",!0)]),d(M,{icon:s(E),title:"View Profile",main:""},null,8,["icon"]),n.currentVersion&&a.value?(t(),_("div",{key:0,style:X(D()),class:"rounded-2xl mb-6"},[f("div",te,[f("div",ne,[d(Z,{"use-small":"",game:s(c),version:n.currentVersion,profile:a.value},{default:m(()=>[f("div",ie,[d(p,{href:`/#/games/${s(c)}/scores/${a.value.userId}`,icon:s(U),class:"w-full md:w-auto",color:"info",label:"View Scores"},null,8,["href","icon"]),d(p,{href:`/#/games/${s(c)}/records/${a.value.userId}`,icon:s(q),class:"w-full md:w-auto",color:"info",label:"View Records"},null,8,["href","icon"])])]),_:1},8,["game","version","profile"])])])],4)):o("",!0),f("div",oe,[(t(!0),_(P,null,H(s($),r=>(t(),_(P,{key:r},[a.value.stats[r.key]?(t(),u(y,{key:0,class:Y(r.span),label:r.label,number:r.type==Number?L(r,a.value):null,"num-color":I(r)},{default:m(()=>[b(g(r.type==String?a.value.stats[r.key]:null)+" ",1)]),_:2},1032,["class","label","number","num-color"])):o("",!0)],64))),128)),a.value.skill?(t(),u(y,{key:0,label:"Skill Points",number:A(a.value.skill,!1),"num-color":s(S)(a.value.skill)},null,8,["number","num-color"])):o("",!0),a.value.profile_skill?(t(),u(y,{key:1,label:"Skill Level",number:a.value.profile_skill},null,8,["number"])):o("",!0),a.value.deller?(t(),u(y,{key:2,label:"Deller",number:a.value.deller},null,8,["number"])):o("",!0),a.value.sgrade?(t(),u(y,{key:3,label:"SP DAN"},{default:m(()=>[b(g(s(v)(a.value.sgrade).label),1)]),_:1})):o("",!0),a.value.dgrade?(t(),u(y,{key:4,label:"DP DAN"},{default:m(()=>[b(g(s(v)(a.value.dgrade).label),1)]),_:1})):o("",!0)])]),_:1})):o("",!0)]),_:1}))}};export{_e as default};

View File

@@ -1,5 +0,0 @@
var V=Object.defineProperty;var N=(t,s,r)=>s in t?V(t,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[s]=r;var g=(t,s,r)=>(N(t,typeof s!="symbol"?s+"":s,r),r);import{s as $,am as I,d as x,w as m,e as K,k as C,u as B,o as b,a as n,b as d,p as y,g as i,c as f,h as p,f as J,F as G,r as L,n as T,i as X,q as j,ax as z,av as F,aw as O,a2 as R,v as A,X as E,t as _}from"./index.493ac4c5.js";import{_ as q,g as M,a as U}from"./ProfileCard.ca85f322.js";import{_ as Y}from"./FormControl.9a383f73.js";import"./userData.bcc92478.js";class k{}g(k,"danList",[{id:100,label:"7th Kyu (\u4E03\u7D1A)",short:"\u4E03\u7D1A"},{id:200,label:"6th Kyu (\u516D\u7D1A)",short:"\u516D\u7D1A"},{id:300,label:"5th Kyu (\u4E94\u7D1A)",short:"\u4E94\u7D1A"},{id:400,label:"4th Kyu (\u56DB\u7D1A)",short:"\u56DB\u7D1A"},{id:500,label:"3rd Kyu (\u4E09\u7D1A)",short:"\u4E09\u7D1A"},{id:600,label:"2nd Kyu (\u4E8C\u7D1A)",short:"\u4E8C\u7D1A"},{id:700,label:"1st Kyu (\u4E00\u7D1A)",short:"\u4E00\u7D1A"},{id:800,label:"1st Dan (\u521D\u6BB5)",short:"\u521D\u6BB5"},{id:900,label:"2nd Dan (\u4E8C\u6BB5)",short:"\u4E8C\u6BB5"},{id:1e3,label:"3rd Dan (\u4E09\u6BB5)",short:"\u4E09\u6BB5"},{id:1100,label:"4th Dan (\u56DB\u6BB5)",short:"\u56DB\u6BB5"},{id:1200,label:"5th Dan (\u4E94\u6BB5)",short:"\u4E94\u6BB5"},{id:1300,label:"6th Dan (\u516D\u6BB5)",short:"\u516D\u6BB5"},{id:1400,label:"7th Dan (\u4E03\u6BB5)",short:"\u4E03\u6BB5"},{id:1500,label:"8th Dan (\u516B\u6BB5)",short:"\u516B\u6BB5"},{id:1600,label:"9th Dan (\u4E5D\u6BB5)",short:"\u4E5D\u6BB5"},{id:1700,label:"10th Dan (\u5341\u6BB5)",short:"\u5341\u6BB5"},{id:1800,label:"Chuuden (\u4E2D\u4F1D)",short:"\u4E2D\u4F1D"},{id:1900,label:"Kaiden (\u7686\u4F1D)",short:"\u7686\u4F1D"}]);function H(t){var s=k.danList.find(r=>r.id==t);return s||(s={id:0,label:"--",short:"--"}),s}const Q={class:"md:flex pb-6 md:justify-between md:items-center"},W={key:0,class:"mt-2 md:mt-0 md:w-1/3 md:text-right"},Z=d("h2",{class:"text-md sm:text-lg md:text-xl font-bold p-2"}," Select Version ",-1),ee={class:"bg-white dark:bg-slate-900/90 rounded-2xl pt-6 p-3"},le={class:"w-full"},se={class:"my-4 w-full flex gap-2 justify-center"},ae={class:"my-6 grid grid-cols-1 md:grid-cols-4 gap-6"},ue={__name:"PlayerView",setup(t){const s=C(),r=B();var c=null,o=null;const u=$({currentVersion:null}),a={id:1,name:"Trmazi",extid:12345678,avatar:"https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/",last:{arcade:"GhettoCade",date:"7/16/2023"},stats:{firstPlay:"1/14/2021",singlePlays:165,singleDan:1900,singlePoint:1877,doublePlays:15,doubleDan:0,doublePoint:187,skillPoints:193090,jubility:7600}},D=[{id:0,label:"Register Date",type:String,span:"md:col-span-2",key:"firstPlay"},{id:1,label:"Single Plays",type:Number,key:"singlePlays"},{id:2,label:"Single Dan",type:String,key:"singleDan",isIIDXDan:!0},{id:3,label:"Single DJ POINT",type:Number,key:"singlePoint"},{id:4,label:"Double Plays",type:Number,key:"doublePlays"},{id:5,label:"Double Dan",type:String,key:"doubleDan",isIIDXDan:!0},{id:6,label:"Double DJ POINT",type:Number,key:"doublePoint"},{id:7,label:"SKILL Points",type:Number,key:"skillPoints",isSkill:!0},{id:8,label:"Jubility",type:Number,key:"jubility",isJubility:!0}];c=s.params.game,o=I(c),o||r.push({name:"ErrorPage",params:{catchAll:"404"}}),o.versions||(u.currentVersion=1);function v(){var e=null;return u.currentVersion?e=`/assets/games/${o.id}/card/${u.currentVersion}.png`:e=o.cardBG,e}function P(){return`
background-image: url('${v()}');
background-size: cover;
background-repeat: no-repeat;
`}function S(e){return e.isSkill?a.stats[e.key]/100:e.isJubility?a.stats[e.key]/10:a.stats[e.key]}function w(e){return e.isSkill?M(a.stats[e.key]):e.isJubility?U(a.stats[e.key]):""}return(e,h)=>(b(),x(K,null,{default:m(()=>[n(X,null,{default:m(()=>[d("div",Q,[n(y,{icon:i(j),href:`/#/games/${i(c)}`,class:"w-full md:w-auto",color:"info",label:"Go Back"},null,8,["icon","href"]),i(o).versions?(b(),f("div",W,[Z,n(Y,{modelValue:u.currentVersion,"onUpdate:modelValue":h[0]||(h[0]=l=>u.currentVersion=l),options:i(o).versions},null,8,["modelValue","options"])])):p("",!0)]),n(J,{icon:i(z),title:"View Profile",main:""},null,8,["icon"]),u.currentVersion?(b(),f("div",{key:0,style:T(P()),class:"rounded-2xl mb-6"},[d("div",ee,[d("div",le,[n(q,{"use-small":"",profile:a},{default:m(()=>[d("div",se,[n(y,{href:`/#/games/${i(c)}/scores/${a.id}`,icon:i(F),class:"w-full md:w-auto",color:"info",label:"View Scores"},null,8,["href","icon"]),n(y,{href:`/#/games/${i(c)}/records/${a.id}`,icon:i(O),class:"w-full md:w-auto",color:"info",label:"View Records"},null,8,["href","icon"])]),d("div",ae,[(b(),f(G,null,L(D,l=>n(R,{key:l.id,class:A(l.span),label:l.label,number:l.type==Number?S(l):e.None,"num-color":w(l)},{default:m(()=>[E(_(l.type==String&&!l.isIIDXDan&&!l.isSkill?a.stats[l.key]:e.None)+" "+_(l.type==String&&l.isIIDXDan?i(H)(a.stats[l.key]).label:e.None),1)]),_:2},1032,["class","label","number","num-color"])),64))])]),_:1})])])],4)):p("",!0)]),_:1})]),_:1}))}};export{ue as default};

View File

@@ -0,0 +1,2 @@
import{d as b,h as c,u as k,r as m,o as g,a as n,c as p,w as o,b as i,T as v,e,_ as B,f as $,m as S,g as t,i as d,t as x,F as N,j as C,k as V,l as j,n as A,p as F,q as D}from"./index.ef6c145a.js";const I=b({name:"BaseButtons",props:{noWrap:Boolean,type:{type:String,default:"justify-start"},classAddon:{type:String,default:"mr-3 last:mr-0 mb-3"},mb:{type:String,default:"-mb-3"}},render(){const _=this.$slots&&this.$slots.default,r=["flex","items-center",this.type,this.noWrap?"flex-nowrap":"flex-wrap"];return this.mb&&r.push(this.mb),c("div",{class:r},_?this.$slots.default().map(s=>s&&s.children&&typeof s.children=="object"?c(s,{},s.children.map(u=>c(u,{class:[this.classAddon]}))):c(s,{class:[this.classAddon]})):null)}}),M={class:"flex flex-col items-center"},R=["src"],T={class:"text-left md:text-center"},W={class:"text-2xl"},q=t("hr",{class:"pb-1 my-2"},null,-1),z=t("br",null,null,-1),E={key:1},H=t("h1",{class:"text-2xl"},"News not found...",-1),L=[H],J={__name:"PostView",setup(_){const r=F(),s=D(),u=parseInt(r.params.id),y=k();var a=m({data:{}}),f=m("");g(async()=>{try{const l=await y.fetchNews(u);a.value=l.news,f.value=l.news.body.split(`
`)}catch(l){console.error("Failed to fetch news data:",l)}});function w(){s.push("/")}return(l,P)=>(n(),p(A,null,{default:o(()=>[i(j,null,{default:o(()=>[i(v,null,{default:o(()=>[e(a)!={}?(n(),p(B,{key:0,"has-table":""},{footer:o(()=>[i(I,null,{default:o(()=>[i($,{label:"Home",color:"info",icon:e(S),"icon-size":"20",onClick:w},null,8,["icon"])]),_:1})]),default:o(()=>[t("div",M,[t("img",{src:e(a).data.img,class:"rounded-t-2xl md:rounded-2xl md:w-1/2 md:m-4"},null,8,R)]),e(a)?(n(),d("div",{key:e(a).id,class:"flex flex-col items-center p-4"},[t("div",T,[t("h1",W,x(e(a).title),1),q,(n(!0),d(N,null,C(e(f),h=>(n(),d("div",{key:h},[t("p",null,x(h),1),z]))),128))])])):(n(),d("div",E,L))]),_:1})):V("",!0)]),_:1})]),_:1})]),_:1}))}};export{J as default};

View File

@@ -1,2 +0,0 @@
import{d as h,w as e,e as p,k as x,o,a,T as w,_ as k,l as N,p as B,g as t,b as s,c as l,t as r,F as $,r as g,i as v,u as b,q as y}from"./index.493ac4c5.js";import{t as D}from"./news.b9c16f1f.js";const V={class:"flex flex-col items-center"},C=["src"],F={class:"text-left md:text-center"},I={class:"text-2xl"},R=s("hr",{class:"pb-1 my-2"},null,-1),T=s("br",null,null,-1),q={key:1},z=s("h1",{class:"text-2xl"},"News not found...",-1),E=[z],G={__name:"PostView",setup(L){const _=x(),d=b(),u=parseInt(_.params.id),n=D.find(c=>c.id===u),f=n.content.split(`
`);function m(){d.push("/news")}return(c,S)=>(o(),h(p,null,{default:e(()=>[a(v,null,{default:e(()=>[a(w,null,{default:e(()=>[a(k,{"has-table":""},{footer:e(()=>[a(N,null,{default:e(()=>[a(B,{label:"News",color:"info",icon:t(y),"icon-size":"20",onClick:m},null,8,["icon"])]),_:1})]),default:e(()=>[s("div",V,[s("img",{src:t(n).cover,class:"rounded-t-2xl md:rounded-2xl md:w-1/2 md:m-4"},null,8,C)]),t(n)?(o(),l("div",{key:t(n).id,class:"flex flex-col items-center p-4"},[s("div",F,[s("h1",I,r(t(n).title),1),R,(o(!0),l($,null,g(t(f),i=>(o(),l("div",{key:i},[s("p",null,r(i),1),T]))),128))])])):(o(),l("div",q,E))]),_:1})]),_:1})]),_:1})]),_:1}))}};export{G as default};

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
.qpro-character img[data-v-6e2945b9]{width:auto;height:auto}

View File

@@ -1 +0,0 @@
var y=Object.defineProperty;var h=(e,t,l)=>t in e?y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l;var x=(e,t,l)=>(h(e,typeof t!="symbol"?t+"":t,l),l);import{am as b,o as r,c as u,b as i,h as n,v as k,t as m,g as o,X as g,d as c,at as v,p as s,au as S,av as $,aw as w,G as p,F as C}from"./index.493ac4c5.js";import{d as j}from"./userData.bcc92478.js";class d{}x(d,"gitadoraSkill",[{id:1,min:0,max:99999,color:"text-white"},{id:2,min:1e5,max:149999,color:"text-orange-500"},{id:3,min:15e4,max:199999,color:"text-orange-600"},{id:4,min:2e5,max:249999,color:"text-yellow-400"},{id:5,min:25e4,max:299999,color:"text-yellow-500"},{id:6,min:3e5,max:349999,color:"text-green-500"},{id:7,min:35e4,max:399999,color:"text-lime-500"},{id:8,min:4e5,max:449999,color:"text-blue-500"},{id:9,min:45e4,max:499999,color:"text-cyan-500"},{id:10,min:5e5,max:549999,color:"text-purple-600"},{id:11,min:55e4,max:599999,color:"text-purple-500"},{id:12,min:6e5,max:649999,color:"text-red-500"},{id:13,min:65e4,max:699999,color:"text-red-700"},{id:14,min:7e5,max:749999,color:"text-amber-600"},{id:15,min:75e4,max:799999,color:"text-stone-400"},{id:16,min:8e5,max:849999,color:"text-yellow-500"},{id:17,min:85e4,max:999999,color:"text-transparent bg-clip-text bg-gradient-to-bl from-green-300 via-blue-500 to-purple-600"}]),x(d,"jubilitySkill",[{id:1,min:0,max:2499,color:"text-white"},{id:2,min:2500,max:7499,color:"text-emerald-500"},{id:3,min:7500,max:14999,color:"text-green-500"},{id:4,min:15e3,max:24999,color:"text-sky-500"},{id:5,min:25e3,max:39999,color:"text-blue-500"},{id:6,min:4e4,max:54999,color:"text-violet-600"},{id:7,min:55e3,max:69999,color:"text-purple-600"},{id:8,min:7e4,max:84999,color:"text-pink-300"},{id:9,min:85e3,max:94999,color:"text-orange-600"},{id:10,min:95e3,max:999999,color:"text-yellow-500"}]);function B(e){var t=d.gitadoraSkill.find(l=>e>=l.min&&l.max>=e);return t.color}function P(e){var t=d.jubilitySkill.find(l=>e>=l.min&&l.max>=e);return t.color}const G={class:"flex content-center justify-center items-center"},V=["src"],F={class:"space-y-2 text-center md:text-left lg:mx-12 p-2"},M={class:"text-xl font-mono"},N={class:"text-md md:text-lg"},T={class:"grid grid-cols-1 md:grid-cols-2 gap-3"},R={__name:"ProfileCard",props:{game:{type:String,default:null},profile:{type:Object,required:!0},useSmall:{type:Boolean,default:!1}},setup(e){const t=e;function l(){if(t.profile.stats){const a=t.profile.stats;if(a.jubility)return P(a.jubility);if(a.skillPoints)return B(a.skillPoints)}}const f=b(t.game);return(a,D)=>(r(),u(C,null,[i("div",G,[e.profile.avatar?(r(),u("img",{key:0,class:"h-40",src:e.profile.avatar},null,8,V)):n("",!0),i("div",F,[i("h1",{class:k([l(),"text-3xl md:text-4xl font-bold"])},m(e.profile.name),3),i("p",M,m(o(j)(e.profile.extid)),1),i("p",N,[g(" Last played at "),i("b",null,m(e.profile.last.arcade),1),g(" on "),i("b",null,m(e.profile.last.date),1)]),i("div",T,[!e.useSmall&&e.game?(r(),c(s,{key:0,icon:o(v),href:`/#/games/${e.game}/profiles/${e.profile.id}`,color:"info",label:"View Profile"},null,8,["icon","href"])):n("",!0),!e.useSmall&&e.game?(r(),c(s,{key:1,icon:o(S),href:`/#/games/${e.game}/profiles/${e.profile.id}/edit`,color:"info",label:"Edit Profile"},null,8,["icon","href"])):n("",!0),!e.useSmall&&!o(f).noScores?(r(),c(s,{key:2,href:`/#/games/${e.game}/scores/${e.profile.id}`,icon:o($),color:"info",label:"My Scores"},null,8,["href","icon"])):n("",!0),!e.useSmall&&!o(f).noRecords?(r(),c(s,{key:3,href:`/#/games/${e.game}/records/${e.profile.id}`,icon:o(w),color:"info",label:"My Records"},null,8,["href","icon"])):n("",!0)])])]),p(a.$slots,"default")],64))}};export{R as _,P as a,B as g};

View File

@@ -0,0 +1 @@
import{u as y,r as c,N as f,s as w,a as P,c as S,w as s,b as e,O as x,P as C,e as l,v as _,g as E,_ as b,Q as V,f as v,R as U,S as R,x as g,U as k,V as N,l as B,n as F}from"./index.ef6c145a.js";import{_ as n}from"./FormField.e32df112.js";import{_ as t}from"./FormControl.3fead597.js";const M={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},Q={__name:"ProfileView",setup(A){const i=y(),u=c(i.userName),d=c(i.userEmail);f(()=>i.userName,m=>{u.value=m}),f(()=>i.userEmail,m=>{d.value=m});const p=w({name:"",email:"",pin:"****"}),r=w({password_current:"",password:"",password_confirmation:""}),$=()=>{i.setUser(p)},q=()=>{};return(m,a)=>(P(),S(F,null,{default:s(()=>[e(B,null,{default:s(()=>[e(x,{class:"mb-6","use-small":"","even-smaller":""}),e(C,{icon:l(_),title:"Profile Settings",main:""},null,8,["icon"]),E("div",M,[e(b,{"is-form":"",class:"row-span-1",onSubmit:V($,["prevent"])},{footer:s(()=>[e(v,{color:"success",type:"submit",label:"Update"})]),default:s(()=>[e(U,{color:"info",label:"General",class:"mb-2"}),e(n,{label:"Username"},{default:s(()=>[e(t,{modelValue:u.value,"onUpdate:modelValue":a[0]||(a[0]=o=>u.value=o),icon:l(_),name:"username",required:"",autocomplete:"username"},null,8,["modelValue","icon"])]),_:1}),e(n,{label:"E-mail",help:"Not currently used, but will be soon\u2122\uFE0F"},{default:s(()=>[e(t,{modelValue:d.value,"onUpdate:modelValue":a[1]||(a[1]=o=>d.value=o),icon:l(R),type:"email",name:"email",required:"",autocomplete:"email"},null,8,["modelValue","icon"])]),_:1}),e(n,{label:"PIN",help:"Used when logging into a game"},{default:s(()=>[e(t,{modelValue:p.pin,"onUpdate:modelValue":a[2]||(a[2]=o=>p.pin=o),icon:l(g),type:"password",name:"pin",required:"",autocomplete:"pin"},null,8,["modelValue","icon"])]),_:1})]),_:1},8,["onSubmit"]),e(b,{"is-form":"",class:"row-span-2",onSubmit:V(q,["prevent"])},{footer:s(()=>[e(v,{type:"submit",color:"success",label:"Update"})]),default:s(()=>[e(U,{color:"info",label:"Change Password",class:"mb-2"}),e(n,{label:"Current password",help:"Required. Your current password"},{default:s(()=>[e(t,{modelValue:r.password_current,"onUpdate:modelValue":a[3]||(a[3]=o=>r.password_current=o),icon:l(g),name:"password_current",type:"password",required:"",autocomplete:"current-password"},null,8,["modelValue","icon"])]),_:1}),e(k),e(n,{label:"New password",help:"Required. New password"},{default:s(()=>[e(t,{modelValue:r.password,"onUpdate:modelValue":a[4]||(a[4]=o=>r.password=o),icon:l(N),name:"password",type:"password",required:"",autocomplete:"new-password"},null,8,["modelValue","icon"])]),_:1}),e(n,{label:"Confirm password",help:"Required. New password one more time"},{default:s(()=>[e(t,{modelValue:r.password_confirmation,"onUpdate:modelValue":a[5]||(a[5]=o=>r.password_confirmation=o),icon:l(N),name:"password_confirmation",type:"password",required:"",autocomplete:"new-password"},null,8,["modelValue","icon"])]),_:1})]),_:1},8,["onSubmit"])])]),_:1})]),_:1}))}};export{Q as default};

View File

@@ -1 +0,0 @@
import{I as v,s as f,d as U,w as s,e as P,o as S,a as e,P as $,f as q,g as t,_ as u,Q as p,R as c,b as w,p as _,S as N,i as A,y as b,U as R,z as y,V}from"./index.493ac4c5.js";import{_ as r}from"./FormField.1774c999.js";import{_ as m}from"./FormCheckRadio.c7e54cea.js";import{_ as i}from"./FormControl.9a383f73.js";const h={class:"grid gap-4 grid-cols-2 md:grid-cols-4"},C={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},M={__name:"ProfileView",setup(k){const d=v(),l=f({name:d.userName,email:d.userEmail,pin:"****"}),n=f({password_current:"",password:"",password_confirmation:""}),g=()=>{d.setUser(l)},x=()=>{};return(B,a)=>(S(),U(P,null,{default:s(()=>[e(A,null,{default:s(()=>[e($,{class:"mb-6","use-small":"","even-smaller":""}),e(q,{icon:t(b),title:"Profile Settings",main:""},null,8,["icon"]),e(u,{"is-form":"",class:"mb-6",onSubmit:a[0]||(a[0]=p(()=>{},["prevent"]))},{default:s(()=>[e(c,{color:"info",label:"Discord Notifications",class:"mb-4"}),w("div",h,[e(m,{name:"goals","model-value":!0,type:"switch",label:"Goal Alerts",class:"outline outline-gray-400 rounded-xl outline-1 text-sm md:text-md p-2"}),e(m,{name:"tournaments","model-value":!0,type:"switch",label:"Tournament Status",class:"outline outline-gray-400 rounded-xl outline-1 text-sm md:text-md p-2"}),e(m,{name:"paseli","model-value":!0,type:"switch",label:"PASELI Transactions",class:"outline outline-gray-400 rounded-xl outline-1 text-sm md:text-md p-2"}),e(m,{name:"system","model-value":!0,type:"switch",label:"System Alerts",class:"outline outline-gray-400 rounded-xl outline-1 text-sm md:text-md p-2"})])]),_:1}),w("div",C,[e(u,{"is-form":"",class:"row-span-1",onSubmit:p(g,["prevent"])},{footer:s(()=>[e(_,{color:"success",type:"submit",label:"Update"})]),default:s(()=>[e(c,{color:"info",label:"General",class:"mb-2"}),e(r,{label:"Username"},{default:s(()=>[e(i,{modelValue:l.name,"onUpdate:modelValue":a[1]||(a[1]=o=>l.name=o),icon:t(b),name:"username",required:"",autocomplete:"username"},null,8,["modelValue","icon"])]),_:1}),e(r,{label:"E-mail",help:"Used for Gravatar and Password Resetting"},{default:s(()=>[e(i,{modelValue:l.email,"onUpdate:modelValue":a[2]||(a[2]=o=>l.email=o),icon:t(R),type:"email",name:"email",required:"",autocomplete:"email"},null,8,["modelValue","icon"])]),_:1}),e(r,{label:"PIN",help:"Used when logging into a game"},{default:s(()=>[e(i,{modelValue:l.pin,"onUpdate:modelValue":a[3]||(a[3]=o=>l.pin=o),icon:t(y),type:"password",name:"pin",required:"",autocomplete:"pin"},null,8,["modelValue","icon"])]),_:1}),e(r,{label:"Public Profile",help:"Allow your profile to be seen publicly"},{default:s(()=>[e(m,{name:"system","model-value":!0,type:"switch"})]),_:1})]),_:1},8,["onSubmit"]),e(u,{"is-form":"",class:"row-span-2",onSubmit:p(x,["prevent"])},{footer:s(()=>[e(_,{type:"submit",color:"success",label:"Update"})]),default:s(()=>[e(c,{color:"info",label:"Change Password",class:"mb-2"}),e(r,{label:"Current password",help:"Required. Your current password"},{default:s(()=>[e(i,{modelValue:n.password_current,"onUpdate:modelValue":a[4]||(a[4]=o=>n.password_current=o),icon:t(y),name:"password_current",type:"password",required:"",autocomplete:"current-password"},null,8,["modelValue","icon"])]),_:1}),e(N),e(r,{label:"New password",help:"Required. New password"},{default:s(()=>[e(i,{modelValue:n.password,"onUpdate:modelValue":a[5]||(a[5]=o=>n.password=o),icon:t(V),name:"password",type:"password",required:"",autocomplete:"new-password"},null,8,["modelValue","icon"])]),_:1}),e(r,{label:"Confirm password",help:"Required. New password one more time"},{default:s(()=>[e(i,{modelValue:n.password_confirmation,"onUpdate:modelValue":a[6]||(a[6]=o=>n.password_confirmation=o),icon:t(V),name:"password_confirmation",type:"password",required:"",autocomplete:"new-password"},null,8,["modelValue","icon"])]),_:1})]),_:1},8,["onSubmit"])])]),_:1})]),_:1}))}};export{M as default};

View File

@@ -1 +1 @@
import{d as t,w as n,e as m,o as u,a,f as i,g as e,P as r,_,b as o,p as c,a7 as s,i as d,y as f,a8 as p,a9 as g,aa as A,ab as l}from"./index.493ac4c5.js";const b={class:"flex gap-4"},v={class:"grid grid-flow-row auto-rows-auto grid-cols-1 md:grid-cols-2 gap-5 mb-5"},P={__name:"PublicView",setup($){return(w,y)=>(u(),t(m,null,{default:n(()=>[a(d,null,{default:n(()=>[a(i,{icon:e(f),title:"Trmazi's Profile",main:""},null,8,["icon"]),a(r,{class:"mb-6","use-small":""}),a(_,{"is-form":"",class:"mb-6"},{default:n(()=>[o("div",b,[a(c,{color:"success",label:"Add Friend",icon:e(p)},null,8,["icon"]),a(c,{color:"danger",label:"Remove Friend",icon:e(g)},null,8,["icon"])])]),_:1}),a(i,{icon:e(A),title:"Game Stats",main:""},null,8,["icon"]),o("div",v,[a(s,{game:e(l).DDR,value:"#10 out of 132","profile-name":"DJ. TRMAZI",type:"ranking"},null,8,["game"]),a(s,{game:e(l).POPN_MUSIC,value:300,"profile-name":"TRMAZI",type:"plays"},null,8,["game"]),a(s,{game:e(l).JUBEAT,value:392,"profile-name":"TRMAZI",type:"scores"},null,8,["game"]),a(s,{game:e(l).SDVX,value:"#15 out of 200","profile-name":"TRMAZI",type:"ranking"},null,8,["game"])])]),_:1})]),_:1}))}};export{P as default};
import{a as t,c as m,w as n,b as a,P as i,e,v as u,O as r,_,g as o,f as c,a0 as d,a1 as f,a2 as g,a3 as s,a4 as l,l as p,n as A}from"./index.ef6c145a.js";const v={class:"flex gap-4"},b={class:"grid grid-flow-row auto-rows-auto grid-cols-1 md:grid-cols-2 gap-5 mb-5"},R={__name:"PublicView",setup($){return(w,M)=>(t(),m(A,null,{default:n(()=>[a(p,null,{default:n(()=>[a(i,{icon:e(u),title:"Trmazi's Profile",main:""},null,8,["icon"]),a(r,{class:"mb-6","use-small":""}),a(_,{"is-form":"",class:"mb-6"},{default:n(()=>[o("div",v,[a(c,{color:"success",label:"Add Friend",icon:e(d)},null,8,["icon"]),a(c,{color:"danger",label:"Remove Friend",icon:e(f)},null,8,["icon"])])]),_:1}),a(i,{icon:e(g),title:"Game Stats",main:""},null,8,["icon"]),o("div",b,[a(s,{game:e(l).DDR,value:"#10 out of 132","profile-name":"DJ. TRMAZI",type:"ranking"},null,8,["game"]),a(s,{game:e(l).POPN_MUSIC,value:300,"profile-name":"TRMAZI",type:"plays"},null,8,["game"]),a(s,{game:e(l).JUBEAT,value:392,"profile-name":"TRMAZI",type:"scores"},null,8,["game"]),a(s,{game:e(l).SDVX,value:"#15 out of 200","profile-name":"TRMAZI",type:"ranking"},null,8,["game"])])]),_:1})]),_:1}))}};export{R as default};

View File

@@ -1 +0,0 @@
import{s as f,d as _,w as t,o as b,b as s,a as l,g as m,p as i,_ as x,x as w,u as V,y as n,z as u}from"./index.493ac4c5.js";import{_ as g}from"./FormCheckRadio.c7e54cea.js";import{_ as d}from"./FormField.1774c999.js";import{_ as r}from"./FormControl.9a383f73.js";import{_ as v}from"./LayoutGuest.38de82d0.js";const h={class:"flex md:min-h-screen md:items-center md:justify-center"},y={class:"p-4 flex flex-col md:flex-row w-full space-y-2 md:space-y-0 md:space-x-4"},U=s("div",{class:"flex flex-col items-center text-wrap h-full md:mt-5"},[s("img",{src:w,class:"rounded-full shadow-lg mb-2"}),s("h1",{class:"text-xl"},[s("samp",null,"PhaseII")]),s("p",{class:"text-sm text-gray-700 dark:text-white/75"}," Spinnin' since 2021 "),s("hr",{class:"border-t border-1 my-1 w-full"}),s("p",{class:"text-lg relative bottom-0"},"Account Registration")],-1),$=s("div",{class:"md:border-r md:border-1"},null,-1),A={class:"grid grid-cols-2 gap-x-2"},k={class:"col-span-2"},C={class:"flex flex-col gap-2 mt-4"},I=s("hr",{class:"border-t border-1 my-4 w-full"},null,-1),P={class:"flex flex-col gap-2 my-4"},R=s("h2",null,"Have an Account?",-1),H={__name:"RegisterView",setup(B){const a=f({username:"",email:"",pass:"",remember:!0}),c=V(),p=()=>{c.push("/")};return(N,e)=>(b(),_(v,null,{default:t(()=>[s("div",h,[l(x,{class:"w-full md:w-auto rounded-none md:rounded-xl md:drop-shadow-xl","has-table":"","is-auth":""},{default:t(()=>[s("div",y,[U,$,s("div",A,[l(d,{label:"Desired Username"},{default:t(()=>[l(r,{modelValue:a.username,"onUpdate:modelValue":e[0]||(e[0]=o=>a.username=o),icon:m(n),name:"username",autocomplete:"username"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Email Address"},{default:t(()=>[l(r,{modelValue:a.email,"onUpdate:modelValue":e[1]||(e[1]=o=>a.email=o),icon:m(n),name:"email",autocomplete:"email"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Password"},{default:t(()=>[l(r,{modelValue:a.pass,"onUpdate:modelValue":e[2]||(e[2]=o=>a.pass=o),icon:m(u),type:"password",name:"password",autocomplete:"current-password"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Password Confirmation"},{default:t(()=>[l(r,{modelValue:a.pass,"onUpdate:modelValue":e[3]||(e[3]=o=>a.pass=o),icon:m(u),type:"password",name:"password",autocomplete:"current-password"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Card ID"},{default:t(()=>[l(r,{modelValue:a.email,"onUpdate:modelValue":e[4]||(e[4]=o=>a.email=o),icon:m(n),name:"card",autocomplete:"card"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Game PIN"},{default:t(()=>[l(r,{modelValue:a.pass,"onUpdate:modelValue":e[5]||(e[5]=o=>a.pass=o),icon:m(u),type:"password",name:"password",autocomplete:"current-password"},null,8,["modelValue","icon"])]),_:1}),l(g,{modelValue:a.remember,"onUpdate:modelValue":e[6]||(e[6]=o=>a.remember=o),class:"col-span-2",name:"remember",label:"Remember Me","input-value":!0},null,8,["modelValue"]),s("div",k,[s("div",C,[l(i,{label:"Create Account",color:"success",onClick:e[7]||(e[7]=o=>p())})]),I,s("div",P,[R,l(i,{label:"Log In",color:"info",href:"/#/auth/login"})])])])])]),_:1})])]),_:1}))}};export{H as default};

View File

@@ -0,0 +1 @@
import{s as b,a as x,c as V,w as t,g as o,b as l,e as n,v as i,x as u,f as c,_ as g,z as v,q as y,M as h}from"./index.ef6c145a.js";import{_ as I}from"./FormCheckRadio.9bd4e29f.js";import{_ as d}from"./FormField.e32df112.js";import{_ as m}from"./FormControl.3fead597.js";import{_ as P}from"./LayoutGuest.935550c8.js";const A={class:"flex md:min-h-screen md:items-center md:justify-center"},U={class:"p-4 flex flex-col md:flex-row w-full space-y-2 md:space-y-0 md:space-x-4"},$=o("div",{class:"flex flex-col items-center text-wrap h-full md:mt-5"},[o("img",{src:v,class:"rounded-full shadow-lg mb-2"}),o("h1",{class:"text-xl"},[o("samp",null,"PhaseII")]),o("p",{class:"text-sm text-gray-700 dark:text-white/75"}," Spinnin' since 2021 "),o("hr",{class:"border-t border-1 my-1 w-full"}),o("p",{class:"text-lg relative bottom-0"},"Account Registration")],-1),k=o("div",{class:"md:border-r md:border-1"},null,-1),C={class:"grid grid-cols-2 gap-x-2"},K={class:"col-span-2"},R={class:"flex flex-col gap-2 mt-4"},S=o("hr",{class:"border-t border-1 my-4 w-full"},null,-1),B={class:"flex flex-col gap-2 my-4"},N=o("h2",null,"Have an Account?",-1),z={__name:"RegisterView",setup(D){const p=y();function f(r){var s=/\S+@\S+\.\S+/;return s.test(r)}const _=async()=>{if(!e.username||!e.email||!e.pass||!e.pass_conf||!e.pin||!e.cardId){alert("Please fill in all fields.");return}if(!f(e.email)){alert("Please use a valid email.");return}if(e.pass!==e.pass_conf){alert("Passwords do not match!");return}const r=await w(e.username,e.pass);r.success?(console.log(r),h.set("userAuthKey",r.authKey,{expires:e.remember?30:0}),p.push("/")):alert("Create failed. Please try again.")},w=async(r,s)=>(await new Promise(a=>setTimeout(a,1e3)),{success:!0,authKey:"generatedAuthKey123"}),e=b({username:"",email:"",pass:"",pass_conf:"",pin:"",cardId:"",remember:!0});return(r,s)=>(x(),V(P,null,{default:t(()=>[o("div",A,[l(g,{class:"w-full md:w-auto rounded-none md:rounded-xl md:drop-shadow-xl","has-table":"","is-auth":""},{default:t(()=>[o("div",U,[$,k,o("div",C,[l(d,{label:"Desired Username"},{default:t(()=>[l(m,{modelValue:e.username,"onUpdate:modelValue":s[0]||(s[0]=a=>e.username=a),icon:n(i),name:"username",autocomplete:"username"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Email Address"},{default:t(()=>[l(m,{modelValue:e.email,"onUpdate:modelValue":s[1]||(s[1]=a=>e.email=a),icon:n(i),name:"email",autocomplete:"email"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Password"},{default:t(()=>[l(m,{modelValue:e.pass,"onUpdate:modelValue":s[2]||(s[2]=a=>e.pass=a),icon:n(u),type:"password",name:"password",autocomplete:"current-password"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Password Confirmation"},{default:t(()=>[l(m,{modelValue:e.pass_conf,"onUpdate:modelValue":s[3]||(s[3]=a=>e.pass_conf=a),icon:n(u),type:"password",name:"password",autocomplete:"current-password"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Card ID"},{default:t(()=>[l(m,{modelValue:e.cardId,"onUpdate:modelValue":s[4]||(s[4]=a=>e.cardId=a),icon:n(i),name:"card",autocomplete:"card"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Game PIN"},{default:t(()=>[l(m,{modelValue:e.pin,"onUpdate:modelValue":s[5]||(s[5]=a=>e.pin=a),icon:n(u),type:"password",name:"password",autocomplete:"current-password"},null,8,["modelValue","icon"])]),_:1}),l(I,{modelValue:e.remember,"onUpdate:modelValue":s[6]||(s[6]=a=>e.remember=a),class:"col-span-2",name:"remember",label:"Remember Me","input-value":!0},null,8,["modelValue"]),o("div",K,[o("div",R,[l(c,{label:"Create Account",color:"success",onClick:s[7]||(s[7]=a=>_())})]),S,o("div",B,[N,l(c,{label:"Log In",color:"info",href:"/#/auth/login"})])])])])]),_:1})])]),_:1}))}};export{z as default};

View File

@@ -1 +0,0 @@
import{s as i,d as c,w as t,o as m,b as e,a as s,g as u,p as r,_,x as f,u as p,y as x}from"./index.493ac4c5.js";import{_ as h}from"./FormField.1774c999.js";import{_ as b}from"./FormControl.9a383f73.js";import{_ as w}from"./LayoutGuest.38de82d0.js";const g={class:"flex md:min-h-screen md:items-center md:justify-center"},v={class:"p-4 flex flex-col md:flex-row w-full space-y-2 md:space-y-0 md:space-x-4"},y=e("div",{class:"flex flex-col items-center text-wrap h-full md:mt-5"},[e("img",{src:f,class:"rounded-full shadow-lg mb-2"}),e("h1",{class:"text-xl"},[e("samp",null,"PhaseII")]),e("p",{class:"text-sm text-gray-700 dark:text-white/75"}," Spinnin' since 2021 "),e("hr",{class:"border-t border-1 my-1 w-full"}),e("p",{class:"text-lg relative bottom-0"},"Password Reset")],-1),V=e("div",{class:"md:border-r md:border-1"},null,-1),$={class:"flex flex-col gap-2 mt-4"},k=e("hr",{class:"border-t border-1 my-4 w-full"},null,-1),R={class:"flex flex-col gap-2 my-4"},B=e("h2",null,"Remember it?",-1),j={__name:"ResetView",setup(I){const o=i({login:"test@website.com"}),d=p(),n=()=>{d.push("/auth/login")};return(A,l)=>(m(),c(w,null,{default:t(()=>[e("div",g,[s(_,{class:"w-full md:w-auto rounded-none md:rounded-xl md:drop-shadow-xl","has-table":"","is-auth":""},{default:t(()=>[e("div",v,[y,V,e("div",null,[s(h,{label:"Email Address"},{default:t(()=>[s(b,{modelValue:o.login,"onUpdate:modelValue":l[0]||(l[0]=a=>o.login=a),icon:u(x),name:"email",autocomplete:"email"},null,8,["modelValue","icon"])]),_:1}),e("div",$,[s(r,{label:"Submit",color:"info",onClick:l[1]||(l[1]=a=>n())})]),k,e("div",R,[B,s(r,{label:"Log In",color:"success",href:"/#/auth/login"})])])])]),_:1})])]),_:1}))}};export{j as default};

View File

@@ -1,5 +0,0 @@
import{s as p,am as S,d as c,w as r,e as B,k as L,u as A,o as i,a as t,b as e,g as m,c as u,h as _,n as z,f as b,_ as f,r as k,F as w,i as F,ay as G,t as g,p as x,az as j}from"./index.493ac4c5.js";import{_ as E}from"./ProfileCard.ca85f322.js";import{_ as N}from"./FormField.1774c999.js";import{_ as V}from"./FormControl.9a383f73.js";import"./userData.bcc92478.js";const U={class:"md:flex md:justify-end pb-6 items-center"},Y={key:0,class:"mt-2 md:mt-0 md:w-1/3 md:text-right"},P=e("h2",{class:"text-md sm:text-lg md:text-xl font-bold p-2"}," Select Version ",-1),T={class:"bg-white dark:bg-slate-900/90 rounded-2xl pt-6 p-3"},H={class:"w-full"},M={class:"grid gap-3"},O={class:"flex justify-between items-center"},Z={class:"flex"},q=e("img",{class:"w-10 mr-3",src:"https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/"},null,-1),J={class:"grid"},K={class:"text-lg"},Q={class:"text-md font-mono"},W={class:"grid gap-3"},X={class:"flex justify-between items-center"},ee={class:"flex"},se=e("img",{class:"w-10 mr-3",src:"https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/"},null,-1),te={class:"grid"},ae={class:"text-lg"},ie={class:"text-md font-mono"},me={__name:"RivalsView",setup(oe){const y=L(),$=A();var v=null,o=null;const D={id:1,name:"Trmazi",extid:12345678,avatar:"https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/",last:{arcade:"GhettoCade",date:"7/16/2023"}},h=[{id:1,name:"TRMAZI",rivalID:"1234-5678"},{id:2,name:"BLADE",rivalID:"1454-5687"},{id:3,name:"HO!",rivalID:"5364-5568"}],a=p({currentVersion:null}),l=p({filter:null});v=y.params.game,o=S(v),o.versions||(a.currentVersion=1),o||$.push({name:"ErrorPage",params:{catchAll:"404"}});function I(){if(l.filter)return h.filter(n=>n.name.toLowerCase().includes(l.filter.toLowerCase())||n.rivalID.toLowerCase().includes(l.filter.toLowerCase()))}function R(){var n=null;return a.currentVersion?n=`/assets/games/${o.id}/card/${a.currentVersion}.png`:n=o.cardBG,n}function C(){return`
background-image: url('${R()}');
background-size: cover;
background-repeat: no-repeat;
`}return(n,d)=>(i(),c(B,null,{default:r(()=>[t(F,null,{default:r(()=>[e("div",U,[m(o).versions?(i(),u("div",Y,[P,t(V,{modelValue:a.currentVersion,"onUpdate:modelValue":d[0]||(d[0]=s=>a.currentVersion=s),options:m(o).versions},null,8,["modelValue","options"])])):_("",!0)]),a.currentVersion?(i(),u("div",{key:0,style:z(C()),class:"rounded-2xl mb-6"},[e("div",T,[e("div",H,[t(E,{"use-small":"",profile:D})])])],4)):_("",!0),t(b,{icon:m(G),title:"Add a Rival",main:""},null,8,["icon"]),a.currentVersion?(i(),c(f,{key:1,class:"mb-6"},{default:r(()=>[t(N,{label:"Search",help:"Search by username or Rival ID to add a rival.",class:"w-full md:w-1/3"},{default:r(()=>[t(V,{modelValue:l.filter,"onUpdate:modelValue":d[1]||(d[1]=s=>l.filter=s),"model-value":l.filter,placeholder:"1234-5678"},null,8,["modelValue","model-value"])]),_:1}),e("div",M,[(i(!0),u(w,null,k(I(),s=>(i(),c(f,{key:s.id},{default:r(()=>[e("div",O,[e("div",Z,[q,e("div",J,[e("h1",K,g(s.name),1),e("h2",Q,g(s.rivalID),1)])]),t(x,{label:"Add Rival",color:"success"})])]),_:2},1024))),128))])]),_:1})):_("",!0),t(b,{icon:m(j),title:"Rivals",main:""},null,8,["icon"]),a.currentVersion?(i(),c(f,{key:2,class:"mb-6"},{default:r(()=>[e("div",W,[(i(),u(w,null,k(h,s=>t(f,{key:s.id},{default:r(()=>[e("div",X,[e("div",ee,[se,e("div",te,[e("h1",ae,g(s.name),1),e("h2",ie,g(s.rivalID),1)])]),t(x,{label:"Remove Rival",color:"danger"})])]),_:2},1024)),64))])]),_:1})):_("",!0)]),_:1})]),_:1}))}};export{me as default};

View File

@@ -0,0 +1,5 @@
import{s as p,ad as S,a as i,c as d,w as r,b as t,g as e,e as u,i as m,k as _,ac as B,P as b,at as L,_ as f,j as k,t as g,f as w,F as x,au as A,l as j,n as F,p as G,q as z}from"./index.ef6c145a.js";import{_ as E}from"./ProfileCard.206878f8.js";import{_ as N}from"./FormField.e32df112.js";import{_ as V}from"./FormControl.3fead597.js";import"./userData.bcc92478.js";const P={class:"md:flex md:justify-end pb-6 items-center"},U={key:0,class:"mt-2 md:mt-0 md:w-1/3 md:text-right"},Y=e("h2",{class:"text-md sm:text-lg md:text-xl font-bold p-2"}," Select Version ",-1),T={class:"bg-white dark:bg-slate-900/90 rounded-2xl pt-6 p-3"},q={class:"w-full"},H={class:"grid gap-3"},M={class:"flex justify-between items-center"},O={class:"flex"},Z=e("img",{class:"w-10 mr-3",src:"https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/"},null,-1),J={class:"grid"},K={class:"text-lg"},Q={class:"text-md font-mono"},W={class:"grid gap-3"},X={class:"flex justify-between items-center"},ee={class:"flex"},se=e("img",{class:"w-10 mr-3",src:"https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/"},null,-1),te={class:"grid"},ae={class:"text-lg"},ie={class:"text-md font-mono"},ue={__name:"RivalsView",setup(oe){const y=G(),$=z();var v=null,o=null;const D={id:1,name:"Trmazi",extid:12345678,avatar:"https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/",last:{arcade:"GhettoCade",date:"7/16/2023"}},h=[{id:1,name:"TRMAZI",rivalID:"1234-5678"},{id:2,name:"BLADE",rivalID:"1454-5687"},{id:3,name:"HO!",rivalID:"5364-5568"}],a=p({currentVersion:null}),l=p({filter:null});v=y.params.game,o=S(v),o.versions||(a.currentVersion=1),o||$.push({name:"ErrorPage",params:{catchAll:"404"}});function I(){if(l.filter)return h.filter(n=>n.name.toLowerCase().includes(l.filter.toLowerCase())||n.rivalID.toLowerCase().includes(l.filter.toLowerCase()))}function R(){var n=null;return a.currentVersion?n=`/assets/games/${o.id}/card/${a.currentVersion}.png`:n=o.cardBG,n}function C(){return`
background-image: url('${R()}');
background-size: cover;
background-repeat: no-repeat;
`}return(n,c)=>(i(),d(F,null,{default:r(()=>[t(j,null,{default:r(()=>[e("div",P,[u(o).versions?(i(),m("div",U,[Y,t(V,{modelValue:a.currentVersion,"onUpdate:modelValue":c[0]||(c[0]=s=>a.currentVersion=s),options:u(o).versions},null,8,["modelValue","options"])])):_("",!0)]),a.currentVersion?(i(),m("div",{key:0,style:B(C()),class:"rounded-2xl mb-6"},[e("div",T,[e("div",q,[t(E,{"use-small":"",profile:D})])])],4)):_("",!0),t(b,{icon:u(L),title:"Add a Rival",main:""},null,8,["icon"]),a.currentVersion?(i(),d(f,{key:1,class:"mb-6"},{default:r(()=>[t(N,{label:"Search",help:"Search by username or Rival ID to add a rival.",class:"w-full md:w-1/3"},{default:r(()=>[t(V,{modelValue:l.filter,"onUpdate:modelValue":c[1]||(c[1]=s=>l.filter=s),"model-value":l.filter,placeholder:"1234-5678"},null,8,["modelValue","model-value"])]),_:1}),e("div",H,[(i(!0),m(x,null,k(I(),s=>(i(),d(f,{key:s.id},{default:r(()=>[e("div",M,[e("div",O,[Z,e("div",J,[e("h1",K,g(s.name),1),e("h2",Q,g(s.rivalID),1)])]),t(w,{label:"Add Rival",color:"success"})])]),_:2},1024))),128))])]),_:1})):_("",!0),t(b,{icon:u(A),title:"Rivals",main:""},null,8,["icon"]),a.currentVersion?(i(),d(f,{key:2,class:"mb-6"},{default:r(()=>[e("div",W,[(i(),m(x,null,k(h,s=>t(f,{key:s.id},{default:r(()=>[e("div",X,[e("div",ee,[se,e("div",te,[e("h1",ae,g(s.name),1),e("h2",ie,g(s.rivalID),1)])]),t(w,{label:"Remove Rival",color:"danger"})])]),_:2},1024)),64))])]),_:1})):_("",!0)]),_:1})]),_:1}))}};export{ue as default};

View File

@@ -1 +0,0 @@
import{s as _,o as a,c as n,b as e,h as o,F as r,r as h,t as l,a as d,w as u,l as g,p as m,ai as y,d as b}from"./index.493ac4c5.js";import{C as f}from"./CardBoxComponentEmpty.df76b494.js";const k={key:0},P={key:0},v=e("th",null,"Timestamp",-1),C=e("th",null,"Song",-1),$=e("th",null,"Chart",-1),S=e("th",null,"Score",-1),p=e("th",null,"Arcade",-1),B={class:"space-y"},x={key:0,"data-label":"Player"},D=["href"],w={"data-label":"Timestamp"},A={key:1,"data-label":"Song"},N=["href"],T={class:"italic"},V={key:2,"data-label":"Chart"},q={class:"grid grid-cols-1"},E={"data-label":"Score"},F={class:"grid grid-cols-1"},G={key:3,"data-label":"Arcade"},H={class:"grid grid-cols-1"},I={key:1,class:"p-3 lg:px-6 border-t border-gray-100 dark:border-slate-800"},J={__name:"TableScores",props:{game:{type:String,required:!0},isPersonal:{type:Boolean,default:!1},entries:{type:Array,required:!0}},setup(s){const i=_(0);return(c,L)=>(a(),n(r,null,[s.entries&&s.entries.length?(a(),n("table",k,[e("thead",null,[e("tr",null,[s.isPersonal?o("",!0):(a(),n("th",P,"Player")),v,C,$,S,p])]),e("tbody",B,[(a(!0),n(r,null,h(s.entries,t=>(a(),n("tr",{key:t.id,class:"border-b-[12px] lg:border-b-0"},[s.isPersonal?o("",!0):(a(),n("td",x,[e("a",{class:"grid grid-cols-1 hover:underline decoration-blue-700",href:`/#/games/${s.game}/profiles/${t.playerId}`},l(t.player),9,D)])),e("td",w,l(t.timestamp),1),t.song?(a(),n("td",A,[e("a",{class:"grid grid-cols-1 hover:underline decoration-blue-700",href:`/#/songs/${s.game}/${t.song.id}`},[e("h2",T,l(t.song.name),1),e("h2",null,l(t.song.artist),1)],8,N)])):o("",!0),t.song?(a(),n("td",V,[e("div",q,[e("h2",null,l(t.song.chart),1),e("h2",null,"Difficulty: "+l(t.song.difficulty),1)])])):o("",!0),e("td",E,[e("div",F,[e("h2",null,"Grade: "+l(t.grade),1),e("h2",null,"Points: "+l(t.points),1),e("h2",null,"Max Combo: "+l(t.combo),1)])]),t.location?(a(),n("td",G,[e("div",H,[e("h2",null,l(t.location.arcade),1),e("h2",null,"Played on: "+l(t.location.type),1)])])):o("",!0)]))),128))])])):o("",!0),s.entries&&s.entries.length?(a(),n("div",I,[d(y,null,{default:u(()=>[d(g,null,{default:u(()=>[(a(),n(r,null,h(0,t=>d(m,{key:t,active:t===i,label:t+1,color:t===i?"lightDark":"whiteDark",small:"",onClick:M=>i=t},null,8,["active","label","color","onClick"])),64))]),_:1}),e("small",null,"Page "+l(c.currentPageHuman)+" of "+l(c.numPages),1)]),_:1})])):(a(),b(f,{key:2}))],64))}};export{J as _};

View File

@@ -1 +0,0 @@
var d=Object.defineProperty;var g=(a,i,n)=>i in a?d(a,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[i]=n;var l=(a,i,n)=>(g(a,typeof i!="symbol"?i+"":i,n),n);class e{}l(e,"areaData",[{id:"US-AL",name:"Alabama",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-AK",name:"Alaska",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-AZ",name:"Arizona",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-AR",name:"Arkansas",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-CA",name:"California",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-CO",name:"Colorado",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-CT",name:"Connecticut",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-DE",name:"Delaware",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-FL",name:"Florida",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-GA",name:"Georgia",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-HI",name:"Hawaii",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-ID",name:"Idaho",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-IL",name:"Illinois",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-IN",name:"Indiana",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-IA",name:"Iowa",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-KS",name:"Kansas",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-KY",name:"Kentucky",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-LA",name:"Louisiana",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-ME",name:"Maine",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-MD",name:"Maryland",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-MA",name:"Massachusetts",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-MI",name:"Michigan",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-MN",name:"Minnesota",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-MS",name:"Mississippi",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-MO",name:"Missouri",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-MT",name:"Montana",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-NE",name:"Nebraska",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-NV",name:"Nevada",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-NH",name:"New Hampshire",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-NJ",name:"New Jersey",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-NM",name:"New Mexico",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-NY",name:"New York",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-NC",name:"North Carolina",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-ND",name:"North Dakota",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-OH",name:"Ohio",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-OK",name:"Oklahoma",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-OR",name:"Oregon",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-PA",name:"Pennsylvania",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-RI",name:"Rhode Island",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-SC",name:"South Carolina",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-SD",name:"South Dakota",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-TN",name:"Tennessee",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-TX",name:"Texas",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-UT",name:"Utah",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-VT",name:"Vermont",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-VA",name:"Virginia",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-WA",name:"Washington",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-WV",name:"West Virginia",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-WI",name:"Wisconsin",flag:"\u{1F1FA}\u{1F1F8}"},{id:"US-WY",name:"Wyoming",flag:"\u{1F1FA}\u{1F1F8}"},{id:"CA",name:"Canada",flag:"\u{1F1E8}\u{1F1E6}"},{id:"MX",name:"Mexico",flag:"\u{1F1F2}\u{1F1FD}"},{id:"GB",name:"United Kingdom",flag:"\u{1F1EC}\u{1F1E7}"},{id:"FR",name:"France",flag:"\u{1F1EB}\u{1F1F7}"},{id:"DE",name:"Germany",flag:"\u{1F1E9}\u{1F1EA}"},{id:"IT",name:"Italy",flag:"\u{1F1EE}\u{1F1F9}"},{id:"JP",name:"Japan",flag:"\u{1F1EF}\u{1F1F5}"},{id:"CN",name:"China",flag:"\u{1F1E8}\u{1F1F3}"},{id:"IN",name:"India",flag:"\u{1F1EE}\u{1F1F3}"},{id:"BR",name:"Brazil",flag:"\u{1F1E7}\u{1F1F7}"},{id:"AU",name:"Australia",flag:"\u{1F1E6}\u{1F1FA}"}]);function f(){var a=[];for(const i of e.areaData)a.push(i.id);return a}function S(a){return e.areaData.find(i=>i.id==a)}export{S as g,f as l};

BIN
assets/card/bst.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 532 KiB

BIN
assets/card/carpet.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 415 KiB

BIN
assets/card/dancerush.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

BIN
assets/card/danevo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 KiB

BIN
assets/card/loveplus.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

BIN
assets/card/museca.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 MiB

BIN
assets/card/newbishi.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 KiB

BIN
assets/card/nost.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 KiB

BIN
assets/card/reflec.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 513 KiB

BIN
assets/card/time.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

BIN
assets/card/tsum.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 MiB

View File

@@ -0,0 +1 @@
var i=Object.defineProperty;var s=(t,l,a)=>l in t?i(t,l,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[l]=a;var h=(t,l,a)=>(s(t,typeof l!="symbol"?l+"":l,a),a);class d{}h(d,"danList",[{id:0,label:"--",short:"--"},{id:100,label:"7th Kyu (\u4E03\u7D1A)",short:"\u4E03\u7D1A"},{id:200,label:"6th Kyu (\u516D\u7D1A)",short:"\u516D\u7D1A"},{id:300,label:"5th Kyu (\u4E94\u7D1A)",short:"\u4E94\u7D1A"},{id:400,label:"4th Kyu (\u56DB\u7D1A)",short:"\u56DB\u7D1A"},{id:500,label:"3rd Kyu (\u4E09\u7D1A)",short:"\u4E09\u7D1A"},{id:600,label:"2nd Kyu (\u4E8C\u7D1A)",short:"\u4E8C\u7D1A"},{id:700,label:"1st Kyu (\u4E00\u7D1A)",short:"\u4E00\u7D1A"},{id:800,label:"1st Dan (\u521D\u6BB5)",short:"\u521D\u6BB5"},{id:900,label:"2nd Dan (\u4E8C\u6BB5)",short:"\u4E8C\u6BB5"},{id:1e3,label:"3rd Dan (\u4E09\u6BB5)",short:"\u4E09\u6BB5"},{id:1100,label:"4th Dan (\u56DB\u6BB5)",short:"\u56DB\u6BB5"},{id:1200,label:"5th Dan (\u4E94\u6BB5)",short:"\u4E94\u6BB5"},{id:1300,label:"6th Dan (\u516D\u6BB5)",short:"\u516D\u6BB5"},{id:1400,label:"7th Dan (\u4E03\u6BB5)",short:"\u4E03\u6BB5"},{id:1500,label:"8th Dan (\u516B\u6BB5)",short:"\u516B\u6BB5"},{id:1600,label:"9th Dan (\u4E5D\u6BB5)",short:"\u4E5D\u6BB5"},{id:1700,label:"10th Dan (\u5341\u6BB5)",short:"\u5341\u6BB5"},{id:1800,label:"Chuuden (\u4E2D\u4F1D)",short:"\u4E2D\u4F1D"},{id:1900,label:"Kaiden (\u7686\u4F1D)",short:"\u7686\u4F1D"}]);function e(t){return t==0?{id:0,label:"--",short:"--"}:d.danList.find(l=>l.id==t)}export{e as g};

BIN
assets/games/bst/card/1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 732 KiB

BIN
assets/games/bst/card/2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 388 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 370 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 484 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 616 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 670 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 629 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 950 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 958 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 669 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 670 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 629 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 968 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 958 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 669 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 475 KiB

Some files were not shown because too many files have changed in this diff Show More