This commit is contained in:
trmazi 2024-12-16 21:40:42 +00:00
parent 81d5ebf37d
commit 3b4fc545ef
50 changed files with 52 additions and 49 deletions

View File

@ -1 +1 @@
import{a as i,c as n,w as s,b as e,X as c,e as r,aa as t,g as l,ab as a,ac as o,_,l as d,n as m}from"./index.7cb2d8c1.js";const u={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 mb-6"},h={__name:"APIView",setup(f){return(b,g)=>(i(),n(m,null,{default:s(()=>[e(d,null,{default:s(()=>[e(c,{icon:r(t),title:"Network Administration",color:"text-red-600",main:""},null,8,["icon"]),l("div",u,[e(a,{number:1,label:"User Account(s)"}),e(a,{number:2,label:"Registered Arcades"}),e(a,{number:3,label:"Published Scores"})]),e(c,{icon:r(o),title:"Recent Errors"},null,8,["icon"]),e(_)]),_:1})]),_:1}))}};export{h as default};
import{a as i,c as n,w as s,b as e,X as c,e as r,aa as t,g as l,ab as a,ac as o,_,l as d,n as m}from"./index.cd58a423.js";const u={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 mb-6"},h={__name:"APIView",setup(f){return(b,g)=>(i(),n(m,null,{default:s(()=>[e(d,null,{default:s(()=>[e(c,{icon:r(t),title:"Network Administration",color:"text-red-600",main:""},null,8,["icon"]),l("div",u,[e(a,{number:1,label:"User Account(s)"}),e(a,{number:2,label:"Registered Arcades"}),e(a,{number:3,label:"Published Scores"})]),e(c,{icon:r(o),title:"Recent Errors"},null,8,["icon"]),e(_)]),_:1})]),_:1}))}};export{h as default};

View File

@ -1,4 +1,4 @@
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,Y as h,ak as w,k as u,al as v,V as n,F as d,j as _,f,am as p,a7 as S,an as $,ao as B,ap as V,aq as j}from"./index.7cb2d8c1.js";const C={class:"space-y-3 text-center w-full"},N={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"},q={class:"flex flex-wrap gap-4 place-content-center"},H=s("hr",{class:"border-t border-1 w-full"},null,-1),L={key:0,class:"text-lg"},M=s("span",{class:"font-normal"}," and",-1),T=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"},G={__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`
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,Y as h,al as w,k as u,am as v,V as n,F as d,j as _,f,an as p,a7 as S,ao as $,ap as B,aq as V,ar as j}from"./index.cd58a423.js";const C={class:"space-y-3 text-center w-full"},N={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"},q={class:"flex flex-wrap gap-4 place-content-center"},H=s("hr",{class:"border-t border-1 w-full"},null,-1),L={key:0,class:"text-lg"},M=s("span",{class:"font-normal"}," and",-1),T=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"},G={__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;

View File

@ -1 +0,0 @@
import{u as w,r as p,o as y,a as f,c as k,w as i,b as t,i as $,X as x,e as _,aj as A,_ as v,v as E,Y as P,ai as S,g as d,f as b,F as N,k as U,l as C,n as I,p as L}from"./index.7cb2d8c1.js";import{_ as M}from"./ArcadeCard.0ff3b7a5.js";import{_ as o}from"./FormField.72e83c1a.js";import{_ as s}from"./FormCheckRadio.025d62ac.js";const B={class:"grid grid-cols-1 w-full gap-2 md:gap-6 md:flex md:place-content-stretch"},F={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 mb-6"},O=d("h1",{class:"text-lg md:text-xl"},"OpenVPN Configuration",-1),R=d("p",{class:"pb-1 dark:text-white/50"}," Use this to export your VPN config. ",-1),q={__name:"ArcadeView",setup(j){const r=w(),l=p({}),u=p(!0),g=L(),c=parseInt(g.params.id);y(async()=>{try{const n=await r.getArcade(c);l.value=n,u.value=!1}catch(n){console.log("Failed to fetch arcade data:",n)}});function h(n,a="NA_"){var e=[...n].map(m=>m.charCodeAt(0)<128?m:a).join("");return e=e.replace(/[!"#$%&'()*+,-./:;<=>?@[\\\]^_`{|}~]/g,""),e=e.replace(/\s+/g,"_"),e}async function V(){try{const n=await r.getArcadeVPN(c),a=new Blob([n],{type:"application/ovpn"}),e=document.createElement("a");e.href=URL.createObjectURL(a),e.download=`gradius-${h(l.value.name)}-phaseii-config.ovpn`,document.body.appendChild(e),e.click(),URL.revokeObjectURL(e.href),document.body.removeChild(e)}catch(n){console.log("Failed to fetch arcade data:",n)}}return(n,a)=>(f(),k(I,null,{default:i(()=>[t(C,null,{default:i(()=>[u.value?U("",!0):(f(),$(N,{key:0},[t(M,{class:"mb-6",arcade:l.value},null,8,["arcade"]),t(x,{icon:_(A),title:"Arcade Overview",main:""},null,8,["icon"]),t(v,{"is-form":"",class:"mb-6",onSubmit:a[4]||(a[4]=E(()=>{},["prevent"]))},{default:i(()=>[t(P,{color:"info",label:"Settings",icon:_(S),class:"mb-2"},null,8,["icon"]),d("div",B,[t(o,{label:"PASELI Enabled",help:"Enable or disable PASELI services."},{default:i(()=>[t(s,{modelValue:l.value.data.paseli_enabled,"onUpdate:modelValue":a[0]||(a[0]=e=>l.value.data.paseli_enabled=e),"input-value":l.value.data.paseli_enabled,name:"paseli",type:"switch"},null,8,["modelValue","input-value"])]),_:1}),t(o,{label:"Infinite PASELI",help:"Enable or disable infinite PASELI."},{default:i(()=>[t(s,{modelValue:l.value.data.paseli_infinite,"onUpdate:modelValue":a[1]||(a[1]=e=>l.value.data.paseli_infinite=e),"input-value":l.value.data.paseli_infinite,name:"infinitePaseli",type:"switch"},null,8,["modelValue","input-value"])]),_:1}),t(o,{label:"Maintenance Mode",help:"Place this arcade under Maintenance."},{default:i(()=>[t(s,{modelValue:l.value.data.maint,"onUpdate:modelValue":a[2]||(a[2]=e=>l.value.data.maint=e),"input-value":l.value.data.maint,name:"maintenance",type:"switch"},null,8,["modelValue","input-value"])]),_:1}),t(o,{label:"Incognito Mode",help:"Hide the eAmusement network and ranking data."},{default:i(()=>[t(s,{modelValue:l.value.data.hide_network,"onUpdate:modelValue":a[3]||(a[3]=e=>l.value.data.hide_network=e),"input-value":l.value.data.hide_network,name:"incognito",type:"switch"},null,8,["modelValue","input-value"])]),_:1})]),t(b,{color:"success",type:"submit",label:"Save"})]),_:1}),d("div",F,[t(v,null,{default:i(()=>[O,R,t(b,{small:!1,color:"success",class:"my-2",label:"Export",onClick:a[5]||(a[5]=e=>V())})]),_:1})])],64))]),_:1})]),_:1}))}};export{q as default};

View File

@ -0,0 +1 @@
import{r as u,o as L,a as i,c as v,w as d,b as n,i as h,X as N,e as r,aj as O,_ as S,v as U,Y as F,ai as M,g as m,F as P,j as R,k as b,f as g,ak as j,ab as G,l as J,n as D,p as H}from"./index.cd58a423.js";import{_ as X}from"./ArcadeCard.c1e90174.js";import{_ as Y}from"./FormField.019ba684.js";import{_ as q}from"./FormCheckRadio.23d5c362.js";import{g as V,s as y}from"./values.1bd6ac4a.js";import{A as z,a as K,b as Q}from"./arcade.674a296c.js";const T={class:"grid grid-cols-1 w-full gap-2 md:gap-6 md:flex md:place-content-stretch"},W={key:0,class:"space-x-2 mt-6"},Z=m("h1",{class:"text-lg md:text-xl"},"OpenVPN Configuration",-1),ee=m("p",{class:"pb-1 dark:text-white/50"}," Use this to download your VPN config. ",-1),ae={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 mb-6"},ce={__name:"ArcadeView",setup(te){const l=u(null),p=u(null),s=u(null),A=u(!0),x=H(),f=parseInt(x.params.id);var k=[{id:"paseli_enabled",name:"PASELI Services",help:"Enable PASELI for this arcade.",type:"Boolean"},{id:"paseli_infinite",name:"Infinite PASELI",help:"Enable infinite PASELI for this arcade.",type:"Boolean"},{id:"maint",name:"Maintenance Mode",help:"Place this arcade under maintenance.",type:"Boolean"},{id:"hide_network",name:"Incognito Mode",help:"Hide the network and all ranking data.",type:"Boolean"}];async function _(){try{s.value={},l.value={},p.value={};const t=await z(f);s.value=t;for(const a of k){const e=V(s.value.data,a.id);y(l.value,a.id,e),y(p.value,a.id,e)}A.value=!1}catch(t){console.error("Failed to fetch arcade data:",t)}}async function B(){(await Q(f,l.value)).status!="error"&&await _()}L(()=>{_()});function I(t,a="NA_"){var e=[...t].map(c=>c.charCodeAt(0)<128?c:a).join("");return e=e.replace(/[!"#$%&'()*+,-./:;<=>?@[\\\]^_`{|}~]/g,""),e=e.replace(/\s+/g,"_"),e}async function C(){try{const t=await K(f),a=new Blob([t],{type:"application/ovpn"}),e=document.createElement("a");e.href=URL.createObjectURL(a),e.download=`gradius-${I(s.value.name)}-phaseii-config.ovpn`,document.body.appendChild(e),e.click(),URL.revokeObjectURL(e.href),document.body.removeChild(e)}catch(t){console.log("Failed to fetch arcade data:",t)}}return(t,a)=>(i(),v(D,null,{default:d(()=>[n(J,null,{default:d(()=>{var e,c;return[A.value?b("",!0):(i(),h(P,{key:0},[n(X,{class:"mb-6",arcade:s.value},null,8,["arcade"]),n(N,{icon:r(O),title:"Arcade Administration",main:""},null,8,["icon"]),n(S,{"is-form":"",class:"mb-6",onSubmit:U(B,["prevent"])},{default:d(()=>[n(F,{color:"info",label:"Settings",icon:r(M),class:"mb-2"},null,8,["icon"]),m("div",T,[(i(!0),h(P,null,R(r(k),o=>(i(),v(Y,{key:o.id,label:o.name,help:o.help},{default:d(()=>{var w;return[o.type=="Boolean"?(i(),v(q,{key:0,name:o.id,"model-value":Boolean((w=r(V)(l.value,o.id))!=null?w:0),"input-value":!0,type:"switch","onUpdate:modelValue":E=>{var $;return r(y)(l.value,o.id,($=Number(E))!=null?$:0)}},null,8,["name","model-value","onUpdate:modelValue"])):b("",!0)]}),_:2},1032,["label","help"]))),128))]),JSON.stringify(l.value)!==JSON.stringify(p.value)?(i(),h("div",W,[n(g,{color:"success",label:"Save",type:"submit"}),n(g,{color:"danger",label:"Revert",onClick:a[0]||(a[0]=o=>_())})])):b("",!0)]),_:1},8,["onSubmit"]),n(S,{class:"w-1/2 mb-6"},{default:d(()=>[Z,ee,n(g,{small:!1,color:"success",class:"my-2",label:"Export",onClick:a[1]||(a[1]=o=>C())})]),_:1}),n(N,{icon:r(j),title:"Arcade Overview",main:""},null,8,["icon"]),m("div",ae,[n(G,{number:(c=(e=s.value)==null?void 0:e.machines)==null?void 0:c.length,label:"Active Machines"},null,8,["number"])])],64))]}),_:1})]),_:1}))}};export{ce as default};

View File

@ -1 +1 @@
import{a as i,c as n,w as s,b as e,X as c,e as r,aa as t,g as l,ab as a,ac as o,_,l as d,n as m}from"./index.7cb2d8c1.js";const u={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 mb-6"},h={__name:"ArcadesView",setup(f){return(b,g)=>(i(),n(m,null,{default:s(()=>[e(d,null,{default:s(()=>[e(c,{icon:r(t),title:"Network Administration",color:"text-red-600",main:""},null,8,["icon"]),l("div",u,[e(a,{number:1,label:"User Account(s)"}),e(a,{number:2,label:"Registered Arcades"}),e(a,{number:3,label:"Published Scores"})]),e(c,{icon:r(o),title:"Recent Errors"},null,8,["icon"]),e(_)]),_:1})]),_:1}))}};export{h as default};
import{a as i,c as n,w as s,b as e,X as c,e as r,aa as t,g as l,ab as a,ac as o,_,l as d,n as m}from"./index.cd58a423.js";const u={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 mb-6"},h={__name:"ArcadesView",setup(f){return(b,g)=>(i(),n(m,null,{default:s(()=>[e(d,null,{default:s(()=>[e(c,{icon:r(t),title:"Network Administration",color:"text-red-600",main:""},null,8,["icon"]),l("div",u,[e(a,{number:1,label:"User Account(s)"}),e(a,{number:2,label:"Registered Arcades"}),e(a,{number:3,label:"Published Scores"})]),e(c,{icon:r(o),title:"Recent Errors"},null,8,["icon"]),e(_)]),_:1})]),_:1}))}};export{h as default};

View File

@ -1 +1 @@
import{a as i,c as n,w as s,b as e,X as c,e as r,aa as t,g as l,ab as a,ac as o,_,l as d,n as m}from"./index.7cb2d8c1.js";const u={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 mb-6"},h={__name:"CardsView",setup(f){return(b,g)=>(i(),n(m,null,{default:s(()=>[e(d,null,{default:s(()=>[e(c,{icon:r(t),title:"Network Administration",color:"text-red-600",main:""},null,8,["icon"]),l("div",u,[e(a,{number:1,label:"User Account(s)"}),e(a,{number:2,label:"Registered Arcades"}),e(a,{number:3,label:"Published Scores"})]),e(c,{icon:r(o),title:"Recent Errors"},null,8,["icon"]),e(_)]),_:1})]),_:1}))}};export{h as default};
import{a as i,c as n,w as s,b as e,X as c,e as r,aa as t,g as l,ab as a,ac as o,_,l as d,n as m}from"./index.cd58a423.js";const u={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 mb-6"},h={__name:"CardsView",setup(f){return(b,g)=>(i(),n(m,null,{default:s(()=>[e(d,null,{default:s(()=>[e(c,{icon:r(t),title:"Network Administration",color:"text-red-600",main:""},null,8,["icon"]),l("div",u,[e(a,{number:1,label:"User Account(s)"}),e(a,{number:2,label:"Registered Arcades"}),e(a,{number:3,label:"Published Scores"})]),e(c,{icon:r(o),title:"Recent Errors"},null,8,["icon"]),e(_)]),_:1})]),_:1}))}};export{h as default};

View File

@ -1 +1 @@
import{r as _,s as k,o as I,a as r,c as g,w as i,b as t,W as $,X as h,e as n,a2 as A,_ as D,v as V,f as c,k as v,a3 as F,g as s,Q as B,i as p,F as E,j as N,t as S,l as O,n as P,V as L,a4 as T}from"./index.7cb2d8c1.js";import{d as w}from"./userData.bcc92478.js";import{_ as j}from"./FormField.72e83c1a.js";import{_ as M}from"./FormControl.e4860a47.js";import{e as U,f as W,g as q}from"./account.2b3737b4.js";const z="/assets/passes/generic.webp",G={class:"grid md:grid-cols-2 mb-2"},Q=s("div",{class:"text-xl md:text-right"},[s("h4",null,"AC = Web Access Code"),s("h4",null,[L("NFC-ID = Internal ID for "),s("samp",null,"card0.txt")])],-1),R={key:0,class:"grid grid-cols-1 md:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 gap-6"},Z={class:"flex justify-between md:grid md:gap-2 mb-4 items-center"},H=s("img",{src:z,class:"w-24 md:w-auto"},null,-1),J={class:"text-xl text-center font-mono"},K={class:"grid grid-cols-3 md:grid-cols-2 gap-2"},ne={__name:"CardsView",setup(Y){var d=_([]);const u=_(!1),l=k({newCard:null});async function m(){d.value=null;try{const e=await U();d.value=e}catch(e){console.error("Failed to fetch card data:",e)}}I(async()=>{await m()});function b(e){var a=e.target.value;a=a.replace(/[^A-Za-z0-9]/g,""),a=a.toUpperCase().replace(/(.{4})/g,"$1-").replace(/-$/,""),l.newCard=a}async function y(){u.value=!0,(await q(l.newCard)).status=="success"&&(l.newCard=null,u.value=!1,await m())}async function x(e){(await W(w(e))).status=="success"&&await m()}const C=e=>{navigator.clipboard.writeText(e).then(()=>{alert("Copied to clipboard!")}).catch(()=>{alert("Failed to copy to clipboard!")})};return(e,a)=>{const X=T("BaseIcon");return r(),g(P,null,{default:i(()=>[t(O,null,{default:i(()=>[t($,{class:"mb-6","use-small":"","even-smaller":""}),t(h,{icon:n(A),title:"Register Card",main:""},null,8,["icon"]),t(D,{"is-form":"",class:"row-span-2 mb-6",onSubmit:a[1]||(a[1]=V(o=>y(),["prevent"]))},{footer:i(()=>[t(c,{type:"submit",color:"success",label:"Add Card"}),u.value?(r(),g(X,{key:0,path:e.mdiLoading,color:"text-yellow-500",class:"animate animate-spin"},null,8,["path"])):v("",!0)]),default:i(()=>[t(j,{label:"Card ID",help:"The 16 character ACCESS CODE. If your card is dated after 2016, you'll need to get the ACCESS CODE from a game."},{default:i(()=>[t(M,{modelValue:l.newCard,"onUpdate:modelValue":a[0]||(a[0]=o=>l.newCard=o),icon:n(F),name:"cardId",type:"card",placeholder:"XXXX-XXXX-XXXX-XXXX",minlength:19,maxlength:19,required:"",onInput:b},null,8,["modelValue","icon"])]),_:1})]),_:1}),s("div",G,[t(h,{icon:n(B),title:"Login Cards",main:""},null,8,["icon"]),Q]),n(d)?(r(),p("div",R,[(r(!0),p(E,null,N(n(d),o=>(r(),p("div",{key:o.id,class:"grid dark:bg-slate-900/70 rounded-2xl p-5"},[s("div",Z,[H,s("h1",J,S(n(w)(o.encoded)),1)]),s("div",K,[t(c,{color:"info",label:"Copy AC",onClick:f=>C(o.encoded)},null,8,["onClick"]),t(c,{color:"info",label:"Copy NFC-ID",onClick:f=>C(o.id)},null,8,["onClick"]),t(c,{color:"danger",label:"Delete",onClick:f=>x(o.encoded)},null,8,["onClick"])])]))),128))])):v("",!0)]),_:1})]),_:1})}}};export{ne as default};
import{r as _,s as k,o as I,a as r,c as g,w as i,b as t,W as $,X as h,e as n,a2 as A,_ as D,v as V,f as c,k as v,a3 as F,g as s,Q as B,i as p,F as E,j as N,t as S,l as O,n as P,V as L,a4 as T}from"./index.cd58a423.js";import{d as w}from"./userData.bcc92478.js";import{_ as j}from"./FormField.019ba684.js";import{_ as M}from"./FormControl.f5cbb811.js";import{e as U,f as W,g as q}from"./account.39fe768e.js";const z="/assets/passes/generic.webp",G={class:"grid md:grid-cols-2 mb-2"},Q=s("div",{class:"text-xl md:text-right"},[s("h4",null,"AC = Web Access Code"),s("h4",null,[L("NFC-ID = Internal ID for "),s("samp",null,"card0.txt")])],-1),R={key:0,class:"grid grid-cols-1 md:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 gap-6"},Z={class:"flex justify-between md:grid md:gap-2 mb-4 items-center"},H=s("img",{src:z,class:"w-24 md:w-auto"},null,-1),J={class:"text-xl text-center font-mono"},K={class:"grid grid-cols-3 md:grid-cols-2 gap-2"},ne={__name:"CardsView",setup(Y){var d=_([]);const u=_(!1),l=k({newCard:null});async function m(){d.value=null;try{const e=await U();d.value=e}catch(e){console.error("Failed to fetch card data:",e)}}I(async()=>{await m()});function b(e){var a=e.target.value;a=a.replace(/[^A-Za-z0-9]/g,""),a=a.toUpperCase().replace(/(.{4})/g,"$1-").replace(/-$/,""),l.newCard=a}async function y(){u.value=!0,(await q(l.newCard)).status=="success"&&(l.newCard=null,u.value=!1,await m())}async function x(e){(await W(w(e))).status=="success"&&await m()}const C=e=>{navigator.clipboard.writeText(e).then(()=>{alert("Copied to clipboard!")}).catch(()=>{alert("Failed to copy to clipboard!")})};return(e,a)=>{const X=T("BaseIcon");return r(),g(P,null,{default:i(()=>[t(O,null,{default:i(()=>[t($,{class:"mb-6","use-small":"","even-smaller":""}),t(h,{icon:n(A),title:"Register Card",main:""},null,8,["icon"]),t(D,{"is-form":"",class:"row-span-2 mb-6",onSubmit:a[1]||(a[1]=V(o=>y(),["prevent"]))},{footer:i(()=>[t(c,{type:"submit",color:"success",label:"Add Card"}),u.value?(r(),g(X,{key:0,path:e.mdiLoading,color:"text-yellow-500",class:"animate animate-spin"},null,8,["path"])):v("",!0)]),default:i(()=>[t(j,{label:"Card ID",help:"The 16 character ACCESS CODE. If your card is dated after 2016, you'll need to get the ACCESS CODE from a game."},{default:i(()=>[t(M,{modelValue:l.newCard,"onUpdate:modelValue":a[0]||(a[0]=o=>l.newCard=o),icon:n(F),name:"cardId",type:"card",placeholder:"XXXX-XXXX-XXXX-XXXX",minlength:19,maxlength:19,required:"",onInput:b},null,8,["modelValue","icon"])]),_:1})]),_:1}),s("div",G,[t(h,{icon:n(B),title:"Login Cards",main:""},null,8,["icon"]),Q]),n(d)?(r(),p("div",R,[(r(!0),p(E,null,N(n(d),o=>(r(),p("div",{key:o.id,class:"grid dark:bg-slate-900/70 rounded-2xl p-5"},[s("div",Z,[H,s("h1",J,S(n(w)(o.encoded)),1)]),s("div",K,[t(c,{color:"info",label:"Copy AC",onClick:f=>C(o.encoded)},null,8,["onClick"]),t(c,{color:"info",label:"Copy NFC-ID",onClick:f=>C(o.id)},null,8,["onClick"]),t(c,{color:"danger",label:"Delete",onClick:f=>x(o.encoded)},null,8,["onClick"])])]))),128))])):v("",!0)]),_:1})]),_:1})}}};export{ne as default};

View File

@ -1 +1 @@
import{r as C,o as T,a as S,c as j,w as o,b as e,i as G,_ as d,X as u,e as m,aa as H,g as n,ab as s,ac as $,F as M,k as U,l as W,n as X}from"./index.7cb2d8c1.js";import{_ as E}from"./GeneralTable.a63854a9.js";import{A as q}from"./admin.d169700a.js";const z=n("h1",{class:"text-3xl"},"PhaseII eAmusement Network",-1),J=n("p",{class:"text-sm text-gray-400"},"Welcome to the backend ;)",-1),K={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 mb-6"},O={class:"bg-white dark:bg-slate-900/95 rounded-2xl lg:flex lg:justify-between"},Q={class:"w-full"},Y={class:"bg-white dark:bg-slate-900/95 rounded-2xl lg:flex lg:justify-between"},Z={class:"w-full"},le={__name:"DashboardView",setup(ee){const a=C({}),b=C(!0);T(async()=>{try{const l=await q();a.value=l,b.value=!1}catch(l){console.log("Failed to fetch admin data:",l)}});const N=[{text:"Timestamp",value:"timestamp",width:120},{text:"IP Address",value:"data.ip",width:120},{text:"Game",value:"data.model",width:120},{text:"PCBID",value:"data.pcbid",width:120},{text:"Name",value:"data.name",width:120},{text:"Value",value:"data.value",width:120}],V=[{text:"Timestamp",value:"timestamp",width:120},{text:"PCBID",value:"data.pcbid",width:120},{text:"Delta",value:"data.delta",width:120},{text:"Remaining Balance",value:"data.balance",width:120},{text:"Reason",value:"data.reason",width:120}];function F(l){var i=[];for(var t of l)if(t.type=="paseli_transaction"){if(t.timestamp){const r=new Date(t.timestamp*1e3);t.timestamp=r.toLocaleString()}i.push(t)}return i}function L(l){var i=[];for(var t of l)if(t.type=="pcbevent"){if(t.timestamp){const r=new Date(t.timestamp*1e3);t.timestamp=r.toLocaleString()}i.push(t)}return i}return(l,i)=>(S(),j(X,null,{default:o(()=>[e(W,null,{default:o(()=>{var t,r,v,_,f,h,p,g,x,w,k,A,y,D,I,P,B,R;return[b.value?U("",!0):(S(),G(M,{key:0},[e(d,{class:"mb-6 p-1"},{default:o(()=>[z,J]),_:1}),e(u,{icon:m(H),title:"Admin Dashboard",color:"text-red-600",main:""},null,8,["icon"]),n("div",K,[e(s,{number:(r=(t=a.value)==null?void 0:t.statistics)==null?void 0:r.user,label:"User Account(s)"},null,8,["number"]),e(s,{number:(_=(v=a.value)==null?void 0:v.statistics)==null?void 0:_.card,label:"Registered Cards"},null,8,["number"]),e(s,{number:(h=(f=a.value)==null?void 0:f.statistics)==null?void 0:h.profile,label:"Game Profiles"},null,8,["number"]),e(s,{number:(g=(p=a.value)==null?void 0:p.statistics)==null?void 0:g.link,label:"Rivals"},null,8,["number"]),e(s,{number:(w=(x=a.value)==null?void 0:x.statistics)==null?void 0:w.arcade,label:"Registered Arcades"},null,8,["number"]),e(s,{number:(A=(k=a.value)==null?void 0:k.statistics)==null?void 0:A.score,label:"Published Scores"},null,8,["number"]),e(s,{number:(D=(y=a.value)==null?void 0:y.statistics)==null?void 0:D.score_history,label:"Score Attempts"},null,8,["number"]),e(s,{number:(P=(I=a.value)==null?void 0:I.statistics)==null?void 0:P.achievement,label:"Achievements"},null,8,["number"]),e(s,{number:(R=(B=a.value)==null?void 0:B.statistics)==null?void 0:R.audit,label:"Recent Event Logs"},null,8,["number"])]),e(u,{icon:m($),title:"Recent PCB Events"},null,8,["icon"]),e(d,{"has-table":""},{default:o(()=>{var c;return[n("div",O,[n("div",Q,[e(E,{headers:N,items:L((c=a.value)==null?void 0:c.audit)},null,8,["items"])])])]}),_:1}),e(u,{icon:m($),title:"Recent PASELI Transactions"},null,8,["icon"]),e(d,{"has-table":""},{default:o(()=>{var c;return[n("div",Y,[n("div",Z,[e(E,{headers:V,items:F((c=a.value)==null?void 0:c.audit)},null,8,["items"])])])]}),_:1})],64))]}),_:1})]),_:1}))}};export{le as default};
import{r as C,o as T,a as S,c as j,w as o,b as e,i as G,_ as d,X as u,e as m,aa as H,g as n,ab as s,ac as $,F as M,k as U,l as W,n as X}from"./index.cd58a423.js";import{_ as E}from"./GeneralTable.c8188342.js";import{A as q}from"./admin.4ac1c3cb.js";const z=n("h1",{class:"text-3xl"},"PhaseII eAmusement Network",-1),J=n("p",{class:"text-sm text-gray-400"},"Welcome to the backend ;)",-1),K={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 mb-6"},O={class:"bg-white dark:bg-slate-900/95 rounded-2xl lg:flex lg:justify-between"},Q={class:"w-full"},Y={class:"bg-white dark:bg-slate-900/95 rounded-2xl lg:flex lg:justify-between"},Z={class:"w-full"},le={__name:"DashboardView",setup(ee){const a=C({}),b=C(!0);T(async()=>{try{const l=await q();a.value=l,b.value=!1}catch(l){console.log("Failed to fetch admin data:",l)}});const N=[{text:"Timestamp",value:"timestamp",width:120},{text:"IP Address",value:"data.ip",width:120},{text:"Game",value:"data.model",width:120},{text:"PCBID",value:"data.pcbid",width:120},{text:"Name",value:"data.name",width:120},{text:"Value",value:"data.value",width:120}],V=[{text:"Timestamp",value:"timestamp",width:120},{text:"PCBID",value:"data.pcbid",width:120},{text:"Delta",value:"data.delta",width:120},{text:"Remaining Balance",value:"data.balance",width:120},{text:"Reason",value:"data.reason",width:120}];function F(l){var i=[];for(var t of l)if(t.type=="paseli_transaction"){if(t.timestamp){const r=new Date(t.timestamp*1e3);t.timestamp=r.toLocaleString()}i.push(t)}return i}function L(l){var i=[];for(var t of l)if(t.type=="pcbevent"){if(t.timestamp){const r=new Date(t.timestamp*1e3);t.timestamp=r.toLocaleString()}i.push(t)}return i}return(l,i)=>(S(),j(X,null,{default:o(()=>[e(W,null,{default:o(()=>{var t,r,v,_,f,h,p,g,x,w,k,A,y,D,I,P,B,R;return[b.value?U("",!0):(S(),G(M,{key:0},[e(d,{class:"mb-6 p-1"},{default:o(()=>[z,J]),_:1}),e(u,{icon:m(H),title:"Admin Dashboard",color:"text-red-600",main:""},null,8,["icon"]),n("div",K,[e(s,{number:(r=(t=a.value)==null?void 0:t.statistics)==null?void 0:r.user,label:"User Account(s)"},null,8,["number"]),e(s,{number:(_=(v=a.value)==null?void 0:v.statistics)==null?void 0:_.card,label:"Registered Cards"},null,8,["number"]),e(s,{number:(h=(f=a.value)==null?void 0:f.statistics)==null?void 0:h.profile,label:"Game Profiles"},null,8,["number"]),e(s,{number:(g=(p=a.value)==null?void 0:p.statistics)==null?void 0:g.link,label:"Rivals"},null,8,["number"]),e(s,{number:(w=(x=a.value)==null?void 0:x.statistics)==null?void 0:w.arcade,label:"Registered Arcades"},null,8,["number"]),e(s,{number:(A=(k=a.value)==null?void 0:k.statistics)==null?void 0:A.score,label:"Published Scores"},null,8,["number"]),e(s,{number:(D=(y=a.value)==null?void 0:y.statistics)==null?void 0:D.score_history,label:"Score Attempts"},null,8,["number"]),e(s,{number:(P=(I=a.value)==null?void 0:I.statistics)==null?void 0:P.achievement,label:"Achievements"},null,8,["number"]),e(s,{number:(R=(B=a.value)==null?void 0:B.statistics)==null?void 0:R.audit,label:"Recent Event Logs"},null,8,["number"])]),e(u,{icon:m($),title:"Recent PCB Events"},null,8,["icon"]),e(d,{"has-table":""},{default:o(()=>{var c;return[n("div",O,[n("div",Q,[e(E,{headers:N,items:L((c=a.value)==null?void 0:c.audit)},null,8,["items"])])])]}),_:1}),e(u,{icon:m($),title:"Recent PASELI Transactions"},null,8,["icon"]),e(d,{"has-table":""},{default:o(()=>{var c;return[n("div",Y,[n("div",Z,[e(E,{headers:V,items:F((c=a.value)==null?void 0:c.audit)},null,8,["items"])])])]}),_:1})],64))]}),_:1})]),_:1}))}};export{le as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{a,c as l,w as s,g as e,b as t,f as o,_ as r,A as c}from"./index.7cb2d8c1.js";import{_ as n}from"./LayoutGuest.2a529e73.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};
import{a,c as l,w as s,g as e,b as t,f as o,_ as r,A as c}from"./index.cd58a423.js";import{_ as n}from"./LayoutGuest.4c44e827.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{r as c,o as U,s as w,N as O,a as l,c as r,w as d,b as s,i as p,X as F,e as P,an as j,_ as D,g as i,k as m,V as L,t as M,F as V,j as T,f as W,l as X,n as Q,p as R,as as _,at as q}from"./index.cd58a423.js";import{_ as z}from"./ArcadeCard.c1e90174.js";import{_ as y}from"./FormField.019ba684.js";import{_ as v}from"./FormControl.f5cbb811.js";import{_ as H}from"./FormCheckRadio.23d5c362.js";import{g as J,s as S}from"./values.1bd6ac4a.js";import{A as K}from"./arcade.674a296c.js";const Y={class:"mb-4"},Z={class:"grid md:grid-cols-2 gap-4"},ee=i("p",{class:"pb-2 text-lg"},"Game",-1),ae={key:0},te=i("p",{class:"pb-2 text-lg"},"Version",-1),oe={key:0},ne={class:"text-xl"},le=i("hr",{class:"pb-1 my-2"},null,-1),ve={__name:"EventView",setup(se){const g=c(null),h=c(null),u=c(null),b=c(!0),k=R(),I=parseInt(k.params.id);var $=[{id:"data.paseli_enabled",name:"PASELI Enabled.",help:"Enable PASELI for this arcade.",type:"Boolean"}];async function x(){try{u.value=null,g.value={},h.value={};const t=await K(I);u.value=t;for(const a of $){const e=J(u.value,a.id);S(g.value,a.id,e),S(h.value,a.id,e)}b.value=!1}catch(t){console.error("Failed to fetch arcade data:",t)}}U(()=>{x()});const f=[{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=w({game:null,version:null});function B(){var t=[];for(const a of q)f.find(n=>n.id==a.id)&&t.push(a.id);return t}function E(){var t=[];const a=B();for(const e of a)t.push({id:e,label:_(e).name});return t}function N(){const t=f.find(e=>e.id==o.game);var a=[];for(const e of t.versions){const n=_(o.game).versions.find(C=>C.id==e.id);a.push({id:e.id,label:n.label})}return a}function G(){return f.find(a=>a.id==o.game).versions.find(a=>a.id==o.version)}function A(){const t=_(o.game),a=t.versions.find(e=>e.id==o.version);return`${t.name} ${a.label}`}return O(()=>o.game,()=>{o.version=null}),(t,a)=>(l(),r(Q,null,{default:d(()=>[s(X,null,{default:d(()=>[b.value?m("",!0):(l(),p(V,{key:0},[s(z,{class:"mb-6",arcade:u.value,"use-small":!0},null,8,["arcade"]),s(F,{icon:P(j),title:"Game Event Settings",main:""},null,8,["icon"]),s(D,{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",Z,[i("div",null,[ee,s(v,{modelValue:o.game,"onUpdate:modelValue":a[0]||(a[0]=e=>o.game=e),name:"game",options:E()},null,8,["modelValue","options"])]),o.game?(l(),p("div",ae,[te,s(v,{modelValue:o.version,"onUpdate:modelValue":a[1]||(a[1]=e=>o.version=e),name:"version",options:N()},null,8,["modelValue","options"])])):m("",!0)])]),_:1})]),o.game&&o.version?(l(),p("div",oe,[i("h2",ne,[L(" Settings for "),i("b",null,M(A()),1)]),le,(l(!0),p(V,null,T(G().settings,e=>(l(),r(y,{key:e.id,label:e.name,help:e.tooltip},{default:d(()=>[e.type==String?(l(),r(v,{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(H,{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(v,{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(W,{color:"success",type:"submit",label:"Save",small:!1})])):m("",!0)]),_:1})],64))]),_:1})]),_:1}))}};export{ve as default};

View File

@ -1 +0,0 @@
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,X as E,e as O,am as A,_ as F,g as i,k as m,V as M,t as j,F as h,j as D,f as P,l as T,n as W,p as X,ar as v,as as L}from"./index.7cb2d8c1.js";import{_ as Q}from"./ArcadeCard.0ff3b7a5.js";import{_ as y}from"./FormField.72e83c1a.js";import{_ as c}from"./FormControl.e4860a47.js";import{_ as R}from"./FormCheckRadio.025d62ac.js";const q={class:"mb-4"},z={class:"grid md:grid-cols-2 gap-4"},H=i("p",{class:"pb-2 text-lg"},"Game",-1),J={key:0},K=i("p",{class:"pb-2 text-lg"},"Version",-1),Y={key:0},Z={class:"text-xl"},ee=i("hr",{class:"pb-1 my-2"},null,-1),ie={__name:"EventView",setup(ae){const V=G(),f=g({}),_=g(!0),b=X(),S=parseInt(b.params.id);N(async()=>{try{const t=await V.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 L)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(Q,{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",q,[s(y,{label:"Select Game",help:"Pick a game and version to get started."},{default:d(()=>[i("div",z,[i("div",null,[H,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",J,[K,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",Y,[i("h2",Z,[M(" Settings for "),i("b",null,j(B()),1)]),ee,(l(!0),u(h,null,D(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(R,{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(P,{color:"success",type:"submit",label:"Save",small:!1})])):m("",!0)]),_:1})],64))]),_:1})]),_:1}))}};export{ie as default};

View File

@ -1 +1 @@
import{a as n,c as t,w as s,b as e,X as c,e as r,aa as i,g as l,ab as a,ac as o,_,l as d,n as m}from"./index.7cb2d8c1.js";const u={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 mb-6"},h={__name:"EventsView",setup(f){return(b,g)=>(n(),t(m,null,{default:s(()=>[e(d,null,{default:s(()=>[e(c,{icon:r(i),title:"Network Administration",color:"text-red-600",main:""},null,8,["icon"]),l("div",u,[e(a,{number:1,label:"User Account(s)"}),e(a,{number:2,label:"Registered Arcades"}),e(a,{number:3,label:"Published Scores"})]),e(c,{icon:r(o),title:"Recent Errors"},null,8,["icon"]),e(_)]),_:1})]),_:1}))}};export{h as default};
import{a as n,c as t,w as s,b as e,X as c,e as r,aa as i,g as l,ab as a,ac as o,_,l as d,n as m}from"./index.cd58a423.js";const u={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 mb-6"},h={__name:"EventsView",setup(f){return(b,g)=>(n(),t(m,null,{default:s(()=>[e(d,null,{default:s(()=>[e(c,{icon:r(i),title:"Network Administration",color:"text-red-600",main:""},null,8,["icon"]),l("div",u,[e(a,{number:1,label:"User Account(s)"}),e(a,{number:2,label:"Registered Arcades"}),e(a,{number:3,label:"Published Scores"})]),e(c,{icon:r(o),title:"Recent Errors"},null,8,["icon"]),e(_)]),_:1})]),_:1}))}};export{h as default};

View File

@ -1 +1 @@
import{B as s,a as d,i as p,C as m,D as y,e as u,g as t,E as h,t as V,z as b}from"./index.7cb2d8c1.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 _};
import{B as s,a as d,i as p,C as m,D as y,e as u,g as t,E as h,t as V,z as b}from"./index.cd58a423.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

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

View File

@ -1 +1 @@
import{G as d,B as i,a as l,i as a,t as o,k as r,g as u,H as m,z as f,e as b}from"./index.7cb2d8c1.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"},y={__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{y as _};
import{G as d,B as i,a as l,i as a,t as o,k as r,g as u,H as m,z as f,e as b}from"./index.cd58a423.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"},y={__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{y as _};

View File

@ -1 +1 @@
import{B as D,G,a as c,i as p,g as n,b as i,au as R,t as N,e as s,H as C,k as _,s as L,N as j,ar as F,r as $,o as q,c as g,w as y,f as b,av as H,aw as M,aq as T,X as E,ax as X,_ as z,l as O,n as U,p as J,q as K}from"./index.7cb2d8c1.js";import{_ as Q}from"./FormControl.e4860a47.js";import{_ as W}from"./ProfileCard.bec553f3.js";import{_ as Y}from"./GeneralTable.a63854a9.js";import{A as Z,a as ee}from"./profile.a1b826fa.js";import{g as te,a as se}from"./sources.eb2c8b6c.js";import{d as ae}from"./userData.bcc92478.js";import{g as P}from"./danClass.233b0381.js";const oe={class:"pt-6 mb-6 flex items-center justify-between"},re={class:"flex items-center justify-start space-x-2"},le={class:"text-2xl md:text-3xl leading-tight"},ne={__name:"GameTitleLine",props:{path:{type:String,default:null},title:{type:String,required:!0}},setup(h){const v=D(()=>G().default);return(f,r)=>(c(),p("section",oe,[n("div",re,[i(R,{path:h.path,class:"w-12 h-12 p-1 drop-shadow-md"},null,8,["path"]),n("h1",le,N(h.title),1)]),s(v)?C(f.$slots,"default",{key:0}):_("",!0)]))}},ie=["src"],ce={class:"bg-white dark:bg-slate-900/90 rounded-2xl pt-6 p-3 card-content"},de={class:"w-full"},ue={class:"md:flex md:px-5 md:space-x-10 md:justify-between md:items-center"},fe={key:0,class:"md:w-1/3 md:text-right"},me=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 pb-10"},_e={key:1,class:"md:w-1/2 grid grid-cols-1 md:grid-cols-2 gap-3"},he={class:"bg-white dark:bg-slate-900/95 rounded-2xl lg:flex lg:justify-between"},ve={class:"w-full"},Se={__name:"GameView",setup(h){const v=J(),f=K();var r=null,a=null;const l=L({currentVersion:null});j(()=>l.currentVersion,()=>{w()}),r=v.params.id,a=F(r),a==null&&f.push({name:"ErrorPage",params:{catchAll:"404"}});const d=$(null),x=$([]);q(async()=>{try{const t=await Z(r);x.value=S(t)}catch(t){console.error("Failed to fetch profile data:",t)}w()}),a.versions||(l.currentVersion=1);async function w(){try{d.value=null;const t=await ee(r,l.currentVersion);d.value=t,t&&!l.currentVersion&&(l.currentVersion=t.versions[t.versions.length-1])}catch(t){console.error("Failed to fetch user profile data:",t)}}const u=[];if(u.push({text:"Player",value:"username",sortable:!0,width:120}),a.noRivals||u.push({text:"Rival ID",value:"extid",width:100}),u.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}),a.playerHeaders)for(var k of a.playerHeaders)u.push(k);function S(t){var o=[];for(var e of t){if(e.extid&&(e.extid=ae(e.extid)),e.stats){if(e.stats.last_play_timestamp){const m=new Date(e.stats.last_play_timestamp*1e3);e.stats.last_play_timestamp=m.toLocaleString()}e.sgrade&&(e.sgrade=P(e.sgrade).short),e.dgrade&&(e.dgrade=P(e.dgrade).short)}o.push(e)}return o.sort((m,V)=>{const B=m.stats&&m.stats.total_plays||0;return(V.stats&&V.stats.total_plays||0)-B}),o}function I(t){var o=[];for(const e of a.versions)t.includes(e.id)&&o.push(e);return o}const A=t=>{const o=t.userId;f.push(`/games/${r}/profiles/${o}`)};return(t,o)=>(c(),g(U,null,{default:y(()=>[i(O,null,{default:y(()=>[n("div",{style:T(s(se)(s(a),l.currentVersion)),class:"rounded-2xl mb-6 card-container"},[n("video",{autoplay:"",muted:"",loop:"",playsinline:"",src:s(te)(s(a),l.currentVersion),class:"background-video"},null,8,ie),n("div",ce,[n("div",de,[n("div",ue,[i(ne,{path:s(a).icon,title:s(a).name},null,8,["path","title"]),s(a).versions&&d.value?(c(),p("div",fe,[me,i(Q,{modelValue:l.currentVersion,"onUpdate:modelValue":o[0]||(o[0]=e=>l.currentVersion=e),options:I(d.value.versions)},null,8,["modelValue","options"])])):_("",!0)])]),d.value?(c(),p("div",pe,[i(W,{game:s(r),version:l.currentVersion,profile:d.value},null,8,["game","version","profile"])])):(c(),p("div",_e,[s(a).noScores?_("",!0):(c(),g(b,{key:0,href:`/#/games/${s(r)}/scores`,icon:s(H),outline:!1,color:"info",label:"Network Scores"},null,8,["href","icon"])),s(a).noRecords?_("",!0):(c(),g(b,{key:1,href:`/#/games/${s(r)}/records`,icon:s(M),outline:!1,color:"info",label:"Network Records"},null,8,["href","icon"]))]))])],4),i(E,{icon:s(X),title:"All Players",main:""},null,8,["icon"]),i(z,{"has-table":""},{default:y(()=>[n("div",he,[n("div",ve,[i(Y,{headers:u,items:x.value,path:`/#/${s(r)}/profiles/`,onRowClicked:A},null,8,["items","path"])])])]),_:1})]),_:1})]),_:1}))}};export{Se as default};
import{B as D,G,a as c,i as p,g as n,b as i,av as R,t as N,e as s,H as C,k as _,s as L,N as j,as as F,r as $,o as H,c as y,w as g,f as b,aw as M,ax as T,ar as q,X as E,ay as X,_ as z,l as O,n as U,p as J,q as K}from"./index.cd58a423.js";import{_ as Q}from"./FormControl.f5cbb811.js";import{_ as W}from"./ProfileCard.ab5fddff.js";import{_ as Y}from"./GeneralTable.c8188342.js";import{A as Z,a as ee}from"./profile.acfb065d.js";import{g as te,a as se}from"./sources.eb2c8b6c.js";import{d as ae}from"./userData.bcc92478.js";import{g as P}from"./danClass.233b0381.js";const oe={class:"pt-6 mb-6 flex items-center justify-between"},re={class:"flex items-center justify-start space-x-2"},le={class:"text-2xl md:text-3xl leading-tight"},ne={__name:"GameTitleLine",props:{path:{type:String,default:null},title:{type:String,required:!0}},setup(h){const v=D(()=>G().default);return(f,r)=>(c(),p("section",oe,[n("div",re,[i(R,{path:h.path,class:"w-12 h-12 p-1 drop-shadow-md"},null,8,["path"]),n("h1",le,N(h.title),1)]),s(v)?C(f.$slots,"default",{key:0}):_("",!0)]))}},ie=["src"],ce={class:"bg-white dark:bg-slate-900/90 rounded-2xl pt-6 p-3 card-content"},de={class:"w-full"},ue={class:"md:flex md:px-5 md:space-x-10 md:justify-between md:items-center"},fe={key:0,class:"md:w-1/3 md:text-right"},me=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 pb-10"},_e={key:1,class:"md:w-1/2 grid grid-cols-1 md:grid-cols-2 gap-3"},he={class:"bg-white dark:bg-slate-900/95 rounded-2xl lg:flex lg:justify-between"},ve={class:"w-full"},Se={__name:"GameView",setup(h){const v=J(),f=K();var r=null,a=null;const l=L({currentVersion:null});j(()=>l.currentVersion,()=>{w()}),r=v.params.id,a=F(r),a==null&&f.push({name:"ErrorPage",params:{catchAll:"404"}});const d=$(null),x=$([]);H(async()=>{try{const t=await Z(r);x.value=S(t)}catch(t){console.error("Failed to fetch profile data:",t)}w()}),a.versions||(l.currentVersion=1);async function w(){try{d.value=null;const t=await ee(r,l.currentVersion);d.value=t,t&&!l.currentVersion&&(l.currentVersion=t.versions[t.versions.length-1])}catch(t){console.error("Failed to fetch user profile data:",t)}}const u=[];if(u.push({text:"Player",value:"username",sortable:!0,width:120}),a.noRivals||u.push({text:"Rival ID",value:"extid",width:100}),u.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}),a.playerHeaders)for(var k of a.playerHeaders)u.push(k);function S(t){var o=[];for(var e of t){if(e.extid&&(e.extid=ae(e.extid)),e.stats){if(e.stats.last_play_timestamp){const m=new Date(e.stats.last_play_timestamp*1e3);e.stats.last_play_timestamp=m.toLocaleString()}e.sgrade&&(e.sgrade=P(e.sgrade).short),e.dgrade&&(e.dgrade=P(e.dgrade).short)}o.push(e)}return o.sort((m,V)=>{const B=m.stats&&m.stats.total_plays||0;return(V.stats&&V.stats.total_plays||0)-B}),o}function I(t){var o=[];for(const e of a.versions)t.includes(e.id)&&o.push(e);return o}const A=t=>{const o=t.userId;f.push(`/games/${r}/profiles/${o}`)};return(t,o)=>(c(),y(U,null,{default:g(()=>[i(O,null,{default:g(()=>[n("div",{style:q(s(se)(s(a),l.currentVersion)),class:"rounded-2xl mb-6 card-container"},[n("video",{autoplay:"",muted:"",loop:"",playsinline:"",src:s(te)(s(a),l.currentVersion),class:"background-video"},null,8,ie),n("div",ce,[n("div",de,[n("div",ue,[i(ne,{path:s(a).icon,title:s(a).name},null,8,["path","title"]),s(a).versions&&d.value?(c(),p("div",fe,[me,i(Q,{modelValue:l.currentVersion,"onUpdate:modelValue":o[0]||(o[0]=e=>l.currentVersion=e),options:I(d.value.versions)},null,8,["modelValue","options"])])):_("",!0)])]),d.value?(c(),p("div",pe,[i(W,{game:s(r),version:l.currentVersion,profile:d.value},null,8,["game","version","profile"])])):(c(),p("div",_e,[s(a).noScores?_("",!0):(c(),y(b,{key:0,href:`/#/games/${s(r)}/scores`,icon:s(M),outline:!1,color:"info",label:"Network Scores"},null,8,["href","icon"])),s(a).noRecords?_("",!0):(c(),y(b,{key:1,href:`/#/games/${s(r)}/records`,icon:s(T),outline:!1,color:"info",label:"Network Records"},null,8,["href","icon"]))]))])],4),i(E,{icon:s(X),title:"All Players",main:""},null,8,["icon"]),i(z,{"has-table":""},{default:g(()=>[n("div",he,[n("div",ve,[i(Y,{headers:u,items:x.value,path:`/#/${s(r)}/profiles/`,onRowClicked:A},null,8,["items","path"])])])]),_:1})]),_:1})]),_:1}))}};export{Se as default};

View File

@ -1 +1 @@
import{a4 as r,a as i,c as n,w as s,g as e,ad as d}from"./index.7cb2d8c1.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),g={__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{g as _};
import{a4 as r,a as i,c as n,w as s,g as e,ad as d}from"./index.cd58a423.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),g={__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{g as _};

View File

@ -1 +1 @@
import{u as h,r as f,N as b,a,c as l,w as t,b as i,W as y,X as p,e as r,$ as g,g as o,_,f as c,k as s,Y as m,a0 as x,i as n,V as k,t as v,a1 as N,l as $,n as w}from"./index.7cb2d8c1.js";const D={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"},C={key:1,class:"text-lg"},I={class:"space-x-2"},U={__name:"IntegrationView",setup(L){const d=h(),e=f(d.userData);return b(()=>d.userData,u=>{e.value=u}),(u,M)=>(a(),l(w,null,{default:t(()=>[i($,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",D,[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",I,[!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",C," Kamaitachi isn't linked! ")):s("",!0)]),_:1})])]),_:1})]),_:1}))}};export{U as default};
import{u as h,r as f,N as b,a,c as l,w as t,b as i,W as y,X as p,e as r,$ as g,g as o,_,f as c,k as s,Y as m,a0 as x,i as n,V as k,t as v,a1 as N,l as $,n as w}from"./index.cd58a423.js";const D={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"},C={key:1,class:"text-lg"},I={class:"space-x-2"},U={__name:"IntegrationView",setup(L){const d=h(),e=f(d.userData);return b(()=>d.userData,u=>{e.value=u}),(u,M)=>(a(),l(w,null,{default:t(()=>[i($,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",D,[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",I,[!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",C," Kamaitachi isn't linked! ")):s("",!0)]),_:1})])]),_:1})]),_:1}))}};export{U as default};

View File

@ -1 +1 @@
import{u,r as o,M as d,N as r,a as v,i as _,b as p,z as i,O as g,g as l,H as m,e as y}from"./index.7cb2d8c1.js";const S={class:"bg-gray-950 dark:text-slate-100"},f={class:"animated animatedFadeInUp fadeInUp"},L={__name:"LayoutGuest",setup(k){const a=u(),t=o(a.isLoading),s=o(a.isSaving),n=o(a.errorCode),c=d();return r(()=>a.isLoading,e=>{t.value=e}),r(()=>a.isSaving,e=>{s.value=e}),r(()=>a.errorCode,e=>{n.value=e}),(e,h)=>(v(),_("div",{class:i({dark:y(c).darkMode})},[p(g,{active:t.value||s.value,"is-save":s.value,"error-code":n.value,class:i(["transition-opacity duration-300 ease-out",{"opacity-100":t.value||s.value,"opacity-0":!t.value&&!s.value}])},null,8,["active","is-save","error-code","class"]),l("div",S,[l("div",f,[m(e.$slots,"default")])])],2))}};export{L as _};
import{u,r as o,M as d,N as r,a as v,i as _,b as p,z as i,O as g,g as l,H as m,e as y}from"./index.cd58a423.js";const S={class:"bg-gray-950 dark:text-slate-100"},f={class:"animated animatedFadeInUp fadeInUp"},L={__name:"LayoutGuest",setup(k){const a=u(),t=o(a.isLoading),s=o(a.isSaving),n=o(a.errorCode),c=d();return r(()=>a.isLoading,e=>{t.value=e}),r(()=>a.isSaving,e=>{s.value=e}),r(()=>a.errorCode,e=>{n.value=e}),(e,h)=>(v(),_("div",{class:i({dark:y(c).darkMode})},[p(g,{active:t.value||s.value,"is-save":s.value,"error-code":n.value,class:i(["transition-opacity duration-300 ease-out",{"opacity-100":t.value||s.value,"opacity-0":!t.value&&!s.value}])},null,8,["active","is-save","error-code","class"]),l("div",S,[l("div",f,[m(e.$slots,"default")])])],2))}};export{L as _};

View File

@ -1 +1 @@
import{u as p,s as _,a as h,c as x,w as a,g as e,b as o,v as b,e as r,x as g,y as w,f as n,z as v,_ as V,A as y,q as $}from"./index.7cb2d8c1.js";import{_ as k}from"./FormCheckRadio.025d62ac.js";import{_ as i}from"./FormField.72e83c1a.js";import{_ as m}from"./FormControl.e4860a47.js";import{_ as P}from"./LayoutGuest.2a529e73.js";const S={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"},R={class:"flex flex-col items-center text-wrap h-full md:mt-5"},q=e("img",{src:y,class:"rounded-full shadow-lg mb-2"},null,-1),A=e("h1",{class:"text-xl"},[e("samp",null,"PhaseII")],-1),B=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),I=e("div",{class:"md:border-r"},null,-1),M={class:"flex flex-col gap-2 mt-4"},N=e("hr",{class:"border-t my-4 w-full"},null,-1),z={class:"flex flex-col gap-2 my-4"},L=e("h2",null,"Not Registered?",-1),j=e("h2",null,"Forgot Password?",-1),K={__name:"LoginView",setup(F){const d=$(),u=p(),s=_({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(f,l)=>(h(),x(P,null,{default:a(()=>[e("div",S,[o(V,{class:v(["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",U,[e("div",R,[q,A,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 "),B,C]),I,e("form",{onSubmit:l[4]||(l[4]=b(t=>c(),["prevent"]))},[o(i,{label:"Username"},{default:a(()=>[o(m,{modelValue:s.login,"onUpdate:modelValue":l[1]||(l[1]=t=>s.login=t),icon:r(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:r(w),type:"password",name:"password",autocomplete:"current-password",required:""},null,8,["modelValue","icon"])]),_:1}),o(k,{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",M,[o(n,{label:"Log In",color:"success",type:"submit"})]),N,e("div",z,[L,o(n,{label:"Register",color:"info",href:"/#/auth/register"}),j,o(n,{label:"i forgor",color:"warning",href:"/#/auth/reset"})])],32)])]),_:1},8,["class"])])]),_:1}))}};export{K as default};
import{u as p,s as _,a as h,c as x,w as a,g as e,b as o,v as b,e as r,x as g,y as w,f as n,z as v,_ as V,A as y,q as $}from"./index.cd58a423.js";import{_ as k}from"./FormCheckRadio.23d5c362.js";import{_ as i}from"./FormField.019ba684.js";import{_ as m}from"./FormControl.f5cbb811.js";import{_ as P}from"./LayoutGuest.4c44e827.js";const S={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"},R={class:"flex flex-col items-center text-wrap h-full md:mt-5"},q=e("img",{src:y,class:"rounded-full shadow-lg mb-2"},null,-1),A=e("h1",{class:"text-xl"},[e("samp",null,"PhaseII")],-1),B=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),I=e("div",{class:"md:border-r"},null,-1),M={class:"flex flex-col gap-2 mt-4"},N=e("hr",{class:"border-t my-4 w-full"},null,-1),z={class:"flex flex-col gap-2 my-4"},L=e("h2",null,"Not Registered?",-1),j=e("h2",null,"Forgot Password?",-1),K={__name:"LoginView",setup(F){const d=$(),u=p(),s=_({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(f,l)=>(h(),x(P,null,{default:a(()=>[e("div",S,[o(V,{class:v(["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",U,[e("div",R,[q,A,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 "),B,C]),I,e("form",{onSubmit:l[4]||(l[4]=b(t=>c(),["prevent"]))},[o(i,{label:"Username"},{default:a(()=>[o(m,{modelValue:s.login,"onUpdate:modelValue":l[1]||(l[1]=t=>s.login=t),icon:r(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:r(w),type:"password",name:"password",autocomplete:"current-password",required:""},null,8,["modelValue","icon"])]),_:1}),o(k,{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",M,[o(n,{label:"Log In",color:"success",type:"submit"})]),N,e("div",z,[L,o(n,{label:"Register",color:"info",href:"/#/auth/register"}),j,o(n,{label:"i forgor",color:"warning",href:"/#/auth/reset"})])],32)])]),_:1},8,["class"])])]),_:1}))}};export{K as default};

View File

@ -1 +0,0 @@
import{u as _,r as o,o as m,a as r,c as f,w as s,b as a,i as h,X as p,e as v,a7 as w,_ as b,g as l,F as g,k as x,l as $,n as k,p as B}from"./index.7cb2d8c1.js";import{_ as y}from"./ArcadeCard.0ff3b7a5.js";import{_ as I}from"./GeneralTable.a63854a9.js";const M={class:"bg-white dark:bg-slate-900/95 rounded-2xl lg:flex lg:justify-between"},N={class:"w-full"},P={__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{P as default};

View File

@ -0,0 +1 @@
import{r as l,o as m,a as c,c as _,w as s,b as a,i as f,X as h,e as p,a7 as v,_ as w,g as o,F as b,k as x,l as g,n as $,p as k}from"./index.cd58a423.js";import{_ as A}from"./ArcadeCard.c1e90174.js";import{_ as B}from"./GeneralTable.c8188342.js";import{A as I}from"./arcade.674a296c.js";const y={class:"bg-white dark:bg-slate-900/95 rounded-2xl lg:flex lg:justify-between"},N={class:"w-full"},G={__name:"MachinesView",setup(V){const e=l({}),r=l(!0),n=k(),i=parseInt(n.params.id);async function d(){try{e.value=null;const t=await I(i);e.value=t,r.value=!1}catch(t){console.error("Failed to fetch arcade data:",t)}}m(()=>{d()});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(t,C)=>(c(),_($,null,{default:s(()=>[a(g,null,{default:s(()=>[r.value?x("",!0):(c(),f(b,{key:0},[a(A,{class:"mb-6",arcade:e.value,"use-small":!0},null,8,["arcade"]),a(h,{icon:p(v),title:"Machines",main:""},null,8,["icon"]),a(w,{"has-table":""},{default:s(()=>[o("div",y,[o("div",N,[a(B,{headers:u,items:e.value.machines},null,8,["items"])])])]),_:1})],64))]),_:1})]),_:1}))}};export{G as default};

View File

@ -1 +1 @@
import{a as i,c as n,w as s,b as e,X as c,e as r,aa as t,g as l,ab as a,ac as o,_,l as d,n as m}from"./index.7cb2d8c1.js";const u={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 mb-6"},h={__name:"MachinesView",setup(f){return(b,g)=>(i(),n(m,null,{default:s(()=>[e(d,null,{default:s(()=>[e(c,{icon:r(t),title:"Network Administration",color:"text-red-600",main:""},null,8,["icon"]),l("div",u,[e(a,{number:1,label:"User Account(s)"}),e(a,{number:2,label:"Registered Arcades"}),e(a,{number:3,label:"Published Scores"})]),e(c,{icon:r(o),title:"Recent Errors"},null,8,["icon"]),e(_)]),_:1})]),_:1}))}};export{h as default};
import{a as i,c as n,w as s,b as e,X as c,e as r,aa as t,g as l,ab as a,ac as o,_,l as d,n as m}from"./index.cd58a423.js";const u={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 mb-6"},h={__name:"MachinesView",setup(f){return(b,g)=>(i(),n(m,null,{default:s(()=>[e(d,null,{default:s(()=>[e(c,{icon:r(t),title:"Network Administration",color:"text-red-600",main:""},null,8,["icon"]),l("div",u,[e(a,{number:1,label:"User Account(s)"}),e(a,{number:2,label:"Registered Arcades"}),e(a,{number:3,label:"Published Scores"})]),e(c,{icon:r(o),title:"Recent Errors"},null,8,["icon"]),e(_)]),_:1})]),_:1}))}};export{h as default};

View File

@ -1 +1 @@
import{u as X,ar as j,r as z,o as K,a as O,c as Q,w as l,b as t,X as U,e as s,aJ as W,g as Y,f as Z,_ as aa,l as ea,n as sa,p as ra,q as ta}from"./index.7cb2d8c1.js";import{_ as da}from"./GeneralTable.a63854a9.js";const na={class:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 2xl:grid-cols-5 gap-3 pb-6"},ua={__name:"NetworkScores",setup(la){const V=ra(),q=ta(),E=X();var d=null,e=null;d=V.params.game,e=j(d),e||q.push({name:"ErrorPage",params:{catchAll:"404"}});const o=z([]),c=[{text:"Player",value:"username",width:120},{text:"New PB",value:"newRecord",width:100},{text:"Timestamp",value:"timestamp",width:140},{text:"Song",value:"song.name",width:180},{text:"Artist",value:"song.artist",width:150},{text:"Chart",value:"song.chart",width:100},{text:"Grade",value:"data.rank",width:80},{text:"Score",value:"points",width:120}];if(e.scoreHeaders)for(var F of e.scoreHeaders)c.push(F);K(async()=>{try{const r=await E.getAttemptData(d);o.value=J(r)}catch(r){console.error("Failed to fetch score data:",r)}});function J(r){var u,f,i,_,p,h,g,k,w,b,v,T,x,$,S,m,N,B,R,A,H,y,C,D,G,I,P,M;var n=[];for(var a of r){if(a.newRecord?a.newRecord="\u2705":a.newRecord="",a.timestamp){const L=new Date(a.timestamp*1e3);a.timestamp=L.toLocaleString()}a.points!=null&&(a.points=a.points.toString().replace(new RegExp("\\B(?<!\\.\\d*)(?=(\\d{3})+(?!\\d))","g"),",")),((f=(u=a.data)==null?void 0:u.stats)==null?void 0:f.score)!=null&&(a.exscore=a.points.toString(),a.points=(_=(i=a.data)==null?void 0:i.stats)==null?void 0:_.score.toString().replace(new RegExp("\\B(?<!\\.\\d*)(?=(\\d{3})+(?!\\d))","g"),",")),((p=a.song)==null?void 0:p.chart)!=null&&e.chartTable&&(a.song.chart=e.chartTable[(h=a.song)==null?void 0:h.chart]),((g=a.data)==null?void 0:g.halo)!=null&&e.haloTable&&(a.data.halo=e.haloTable[(k=a.data)==null?void 0:k.halo]),((w=a.data)==null?void 0:w.medal)!=null&&e.medalTable&&(a.data.medal=e.medalTable[(b=a.data)==null?void 0:b.medal]),((v=a.data)==null?void 0:v.clear_status)!=null&&e.medalTable&&(a.data.medal=e.medalTable[(T=a.data)==null?void 0:T.clear_status]),((x=a.data)==null?void 0:x.rank)!=null&&e.rankTable&&(a.data.rank=e.rankTable[($=a.data)==null?void 0:$.rank]),((S=a.data)==null?void 0:S.result_rank)!=null&&e.rankTable&&(a.data.rank=e.rankTable[(m=a.data)==null?void 0:m.result_rank]),((N=a.data)==null?void 0:N.grade)!=null&&e.rankTable&&(a.data.rank=e.rankTable[(B=a.data)==null?void 0:B.grade]),((R=a.data)==null?void 0:R.skill_perc)>0?a.data.skill_perc=`${((A=a.data)==null?void 0:A.skill_perc)/100}%`:a.data.skill_perc="0%",(H=a.data)!=null&&H.skill_points&&(a.data.skill_points=((y=a.data)==null?void 0:y.skill_points)/10),((C=a.data)==null?void 0:C.perc)>0?a.data.perc=`${((D=a.data)==null?void 0:D.perc)/100}%`:a.data.perc="0%",(G=a.data)!=null&&G.new_skill&&(a.data.new_skill=((I=a.data)==null?void 0:I.new_skill)/10),(P=a.data)!=null&&P.music_rate&&(a.data.music_rate=((M=a.data)==null?void 0:M.music_rate)/10),n.push(a)}return n}return(r,n)=>(O(),Q(sa,null,{default:l(()=>[t(ea,null,{default:l(()=>[t(U,{icon:s(W),title:`All ${s(e).shortName?s(e).shortName:s(e).name} Scores`,main:""},null,8,["icon","title"]),Y("div",na,[t(Z,{icon:r.mdiHome,href:`/#/games/${s(d)}`,color:"info",label:`${s(e).shortName?s(e).shortName:s(e).name} Home`},null,8,["icon","href","label"])]),t(aa,{"has-table":""},{default:l(()=>[t(da,{headers:c,items:o.value},null,8,["items"])]),_:1})]),_:1})]),_:1}))}};export{ua as default};
import{u as X,as as j,r as z,o as J,a as O,c as Q,w as l,b as r,X as U,e as s,aK as W,g as Y,f as Z,_ as aa,l as ea,n as sa,p as ta,q as ra}from"./index.cd58a423.js";import{_ as da}from"./GeneralTable.c8188342.js";const na={class:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 2xl:grid-cols-5 gap-3 pb-6"},ua={__name:"NetworkScores",setup(la){const V=ta(),q=ra(),E=X();var d=null,e=null;d=V.params.game,e=j(d),e||q.push({name:"ErrorPage",params:{catchAll:"404"}});const o=z([]),c=[{text:"Player",value:"username",width:120},{text:"New PB",value:"newRecord",width:100},{text:"Timestamp",value:"timestamp",width:140},{text:"Song",value:"song.name",width:180},{text:"Artist",value:"song.artist",width:150},{text:"Chart",value:"song.chart",width:100},{text:"Grade",value:"data.rank",width:80},{text:"Score",value:"points",width:120}];if(e.scoreHeaders)for(var F of e.scoreHeaders)c.push(F);J(async()=>{try{const t=await E.getAttemptData(d);o.value=K(t)}catch(t){console.error("Failed to fetch score data:",t)}});function K(t){var u,f,i,_,p,h,g,k,w,b,v,T,x,$,S,m,N,B,R,A,H,y,C,D,G,I,P,M;var n=[];for(var a of t){if(a.newRecord?a.newRecord="\u2705":a.newRecord="",a.timestamp){const L=new Date(a.timestamp*1e3);a.timestamp=L.toLocaleString()}a.points!=null&&(a.points=a.points.toString().replace(new RegExp("\\B(?<!\\.\\d*)(?=(\\d{3})+(?!\\d))","g"),",")),((f=(u=a.data)==null?void 0:u.stats)==null?void 0:f.score)!=null&&(a.exscore=a.points.toString(),a.points=(_=(i=a.data)==null?void 0:i.stats)==null?void 0:_.score.toString().replace(new RegExp("\\B(?<!\\.\\d*)(?=(\\d{3})+(?!\\d))","g"),",")),((p=a.song)==null?void 0:p.chart)!=null&&e.chartTable&&(a.song.chart=e.chartTable[(h=a.song)==null?void 0:h.chart]),((g=a.data)==null?void 0:g.halo)!=null&&e.haloTable&&(a.data.halo=e.haloTable[(k=a.data)==null?void 0:k.halo]),((w=a.data)==null?void 0:w.medal)!=null&&e.medalTable&&(a.data.medal=e.medalTable[(b=a.data)==null?void 0:b.medal]),((v=a.data)==null?void 0:v.clear_status)!=null&&e.medalTable&&(a.data.medal=e.medalTable[(T=a.data)==null?void 0:T.clear_status]),((x=a.data)==null?void 0:x.rank)!=null&&e.rankTable&&(a.data.rank=e.rankTable[($=a.data)==null?void 0:$.rank]),((S=a.data)==null?void 0:S.result_rank)!=null&&e.rankTable&&(a.data.rank=e.rankTable[(m=a.data)==null?void 0:m.result_rank]),((N=a.data)==null?void 0:N.grade)!=null&&e.rankTable&&(a.data.rank=e.rankTable[(B=a.data)==null?void 0:B.grade]),((R=a.data)==null?void 0:R.skill_perc)>0?a.data.skill_perc=`${((A=a.data)==null?void 0:A.skill_perc)/100}%`:a.data.skill_perc="0%",(H=a.data)!=null&&H.skill_points&&(a.data.skill_points=((y=a.data)==null?void 0:y.skill_points)/10),((C=a.data)==null?void 0:C.perc)>0?a.data.perc=`${((D=a.data)==null?void 0:D.perc)/100}%`:a.data.perc="0%",(G=a.data)!=null&&G.new_skill&&(a.data.new_skill=((I=a.data)==null?void 0:I.new_skill)/10),(P=a.data)!=null&&P.music_rate&&(a.data.music_rate=((M=a.data)==null?void 0:M.music_rate)/10),n.push(a)}return n}return(t,n)=>(O(),Q(sa,null,{default:l(()=>[r(ea,null,{default:l(()=>[r(U,{icon:s(W),title:`All ${s(e).shortName?s(e).shortName:s(e).name} Scores`,main:""},null,8,["icon","title"]),Y("div",na,[r(Z,{icon:t.mdiHome,href:`/#/games/${s(d)}`,color:"info",label:`${s(e).shortName?s(e).shortName:s(e).name} Home`},null,8,["icon","href","label"])]),r(aa,{"has-table":""},{default:l(()=>[r(da,{headers:c,items:o.value},null,8,["items"])]),_:1})]),_:1})]),_:1}))}};export{ua as default};

View File

@ -1 +1 @@
import{a as i,c as n,w as s,b as e,X as c,e as r,aa as t,g as l,ab as a,ac as o,_,l as d,n as m}from"./index.7cb2d8c1.js";const u={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 mb-6"},h={__name:"NewsView",setup(f){return(b,g)=>(i(),n(m,null,{default:s(()=>[e(d,null,{default:s(()=>[e(c,{icon:r(t),title:"Network Administration",color:"text-red-600",main:""},null,8,["icon"]),l("div",u,[e(a,{number:1,label:"User Account(s)"}),e(a,{number:2,label:"Registered Arcades"}),e(a,{number:3,label:"Published Scores"})]),e(c,{icon:r(o),title:"Recent Errors"},null,8,["icon"]),e(_)]),_:1})]),_:1}))}};export{h as default};
import{a as i,c as n,w as s,b as e,X as c,e as r,aa as t,g as l,ab as a,ac as o,_,l as d,n as m}from"./index.cd58a423.js";const u={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 mb-6"},h={__name:"NewsView",setup(f){return(b,g)=>(i(),n(m,null,{default:s(()=>[e(d,null,{default:s(()=>[e(c,{icon:r(t),title:"Network Administration",color:"text-red-600",main:""},null,8,["icon"]),l("div",u,[e(a,{number:1,label:"User Account(s)"}),e(a,{number:2,label:"Registered Arcades"}),e(a,{number:3,label:"Published Scores"})]),e(c,{icon:r(o),title:"Recent Errors"},null,8,["icon"]),e(_)]),_:1})]),_:1}))}};export{h as default};

File diff suppressed because one or more lines are too long

View File

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

View File

@ -1 +0,0 @@
import{u as y,r as c,o as k,a as m,c as B,w as n,b as a,i as P,X as _,e as f,at as S,_ as h,g as i,an as $,F as A,k as D,l as N,n as C,p as I}from"./index.7cb2d8c1.js";import{_ as v}from"./GeneralTable.a63854a9.js";import{_ as R}from"./ArcadeCard.0ff3b7a5.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);k(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(),B(C,null,{default:n(()=>[a(N,null,{default:n(()=>[!d.value&&t.value.balances&&t.value.transactions?(m(),P(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 +1 @@
import{u as Q,ar as W,r as q,o as Y,a as J,c as Z,w as c,b as o,i as aa,X as ea,e as r,aJ as ra,g as sa,f as L,m as ta,ao as la,_ as oa,F as na,k as da,l as ca,n as ua,p as fa,q as ia}from"./index.7cb2d8c1.js";import{_ as pa}from"./GeneralTable.a63854a9.js";import{a as _a}from"./profile.a1b826fa.js";const ha={class:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 2xl:grid-cols-5 gap-3 pb-6"},va={__name:"PersonalScores",setup(ga){const u=fa(),U=ia(),X=Q();var t=null,e=null,n=null;t=u.params.game,n=u.params.userId,e=W(t),e||U.push({name:"ErrorPage",params:{catchAll:"404"}});const l=q(null),f=q([]),i=[{text:"Timestamp",value:"timestamp",width:140},{text:"New PB",value:"newRecord",width:100},{text:"Song",value:"song.name",width:180},{text:"Artist",value:"song.artist",width:180},{text:"Chart",value:"song.chart",width:100},{text:"Grade",value:"data.rank",width:80},{text:"Score",value:"points",width:120}];if(e.scoreHeaders)for(var j of e.scoreHeaders)i.push(j);Y(async()=>{try{const s=await X.getAttemptData(t,n);f.value=K(s)}catch(s){console.error("Failed to fetch score data:",s)}z()});async function z(){try{l.value=null;const s=await _a(t,null,n);l.value=s}catch(s){console.error("Failed to fetch user profile data:",s)}}function K(s){var p,_,h,g,k,b,m,v,w,$,T,x,S,B,N,P,I,y,R,A,C,F,G,H,D,V,E,M;var d=[];for(var a of s){if(a.newRecord?a.newRecord="\u2705":a.newRecord="",a.timestamp){const O=new Date(a.timestamp*1e3);a.timestamp=O.toLocaleString()}a.points!=null&&(a.points=a.points.toString().replace(new RegExp("\\B(?<!\\.\\d*)(?=(\\d{3})+(?!\\d))","g"),",")),((_=(p=a.data)==null?void 0:p.stats)==null?void 0:_.score)!=null&&(a.exscore=a.points.toString(),a.points=(g=(h=a.data)==null?void 0:h.stats)==null?void 0:g.score.toString().replace(new RegExp("\\B(?<!\\.\\d*)(?=(\\d{3})+(?!\\d))","g"),",")),((k=a.song)==null?void 0:k.chart)!=null&&e.chartTable&&(a.song.chart=e.chartTable[(b=a.song)==null?void 0:b.chart]),((m=a.data)==null?void 0:m.halo)!=null&&e.haloTable&&(a.data.halo=e.haloTable[(v=a.data)==null?void 0:v.halo]),((w=a.data)==null?void 0:w.medal)!=null&&e.medalTable&&(a.data.medal=e.medalTable[($=a.data)==null?void 0:$.medal]),((T=a.data)==null?void 0:T.clear_status)!=null&&e.medalTable&&(a.data.medal=e.medalTable[(x=a.data)==null?void 0:x.clear_status]),((S=a.data)==null?void 0:S.rank)!=null&&e.rankTable&&(a.data.rank=e.rankTable[(B=a.data)==null?void 0:B.rank]),((N=a.data)==null?void 0:N.result_rank)!=null&&e.rankTable&&(a.data.rank=e.rankTable[(P=a.data)==null?void 0:P.result_rank]),((I=a.data)==null?void 0:I.grade)!=null&&e.rankTable&&(a.data.rank=e.rankTable[(y=a.data)==null?void 0:y.grade]),((R=a.data)==null?void 0:R.skill_perc)>0?a.data.skill_perc=`${((A=a.data)==null?void 0:A.skill_perc)/100}%`:a.data.skill_perc="0%",(C=a.data)!=null&&C.skill_points&&(a.data.skill_points=((F=a.data)==null?void 0:F.skill_points)/10),((G=a.data)==null?void 0:G.perc)>0?a.data.perc=`${((H=a.data)==null?void 0:H.perc)/100}%`:a.data.perc="0%",(D=a.data)!=null&&D.new_skill&&(a.data.new_skill=((V=a.data)==null?void 0:V.new_skill)/10),(E=a.data)!=null&&E.music_rate&&(a.data.music_rate=((M=a.data)==null?void 0:M.music_rate)/10),d.push(a)}return d}return(s,d)=>(J(),Z(ua,null,{default:c(()=>[o(ca,null,{default:c(()=>[l.value?(J(),aa(na,{key:0},[o(ea,{icon:r(ra),title:`${l.value.username}'s ${r(e).shortName?r(e).shortName:r(e).name} Scores`,main:""},null,8,["icon","title"]),sa("div",ha,[o(L,{icon:r(ta),href:`/#/games/${r(t)}/profiles/${l.value.userId}`,color:"info",label:`${l.value.username}'s Profile`},null,8,["icon","href","label"]),o(L,{icon:r(la),href:`/#/games/${r(t)}`,color:"info",label:`${r(e).shortName?r(e).shortName:r(e).name} Home`},null,8,["icon","href","label"])]),o(oa,{"has-table":""},{default:c(()=>[o(pa,{headers:i,items:f.value},null,8,["items"])]),_:1})],64)):da("",!0)]),_:1})]),_:1}))}};export{va as default};
import{u as Q,as as W,r as q,o as Y,a as K,c as Z,w as c,b as n,i as aa,X as ea,e as r,aK as ra,g as sa,f as L,m as ta,ap as la,_ as na,F as oa,k as da,l as ca,n as ua,p as fa,q as ia}from"./index.cd58a423.js";import{_ as pa}from"./GeneralTable.c8188342.js";import{a as _a}from"./profile.acfb065d.js";const ha={class:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 2xl:grid-cols-5 gap-3 pb-6"},va={__name:"PersonalScores",setup(ga){const u=fa(),U=ia(),X=Q();var t=null,e=null,o=null;t=u.params.game,o=u.params.userId,e=W(t),e||U.push({name:"ErrorPage",params:{catchAll:"404"}});const l=q(null),f=q([]),i=[{text:"Timestamp",value:"timestamp",width:140},{text:"New PB",value:"newRecord",width:100},{text:"Song",value:"song.name",width:180},{text:"Artist",value:"song.artist",width:180},{text:"Chart",value:"song.chart",width:100},{text:"Grade",value:"data.rank",width:80},{text:"Score",value:"points",width:120}];if(e.scoreHeaders)for(var j of e.scoreHeaders)i.push(j);Y(async()=>{try{const s=await X.getAttemptData(t,o);f.value=J(s)}catch(s){console.error("Failed to fetch score data:",s)}z()});async function z(){try{l.value=null;const s=await _a(t,null,o);l.value=s}catch(s){console.error("Failed to fetch user profile data:",s)}}function J(s){var p,_,h,g,k,b,m,v,w,$,T,x,S,B,N,P,I,y,R,A,C,F,G,H,D,V,E,M;var d=[];for(var a of s){if(a.newRecord?a.newRecord="\u2705":a.newRecord="",a.timestamp){const O=new Date(a.timestamp*1e3);a.timestamp=O.toLocaleString()}a.points!=null&&(a.points=a.points.toString().replace(new RegExp("\\B(?<!\\.\\d*)(?=(\\d{3})+(?!\\d))","g"),",")),((_=(p=a.data)==null?void 0:p.stats)==null?void 0:_.score)!=null&&(a.exscore=a.points.toString(),a.points=(g=(h=a.data)==null?void 0:h.stats)==null?void 0:g.score.toString().replace(new RegExp("\\B(?<!\\.\\d*)(?=(\\d{3})+(?!\\d))","g"),",")),((k=a.song)==null?void 0:k.chart)!=null&&e.chartTable&&(a.song.chart=e.chartTable[(b=a.song)==null?void 0:b.chart]),((m=a.data)==null?void 0:m.halo)!=null&&e.haloTable&&(a.data.halo=e.haloTable[(v=a.data)==null?void 0:v.halo]),((w=a.data)==null?void 0:w.medal)!=null&&e.medalTable&&(a.data.medal=e.medalTable[($=a.data)==null?void 0:$.medal]),((T=a.data)==null?void 0:T.clear_status)!=null&&e.medalTable&&(a.data.medal=e.medalTable[(x=a.data)==null?void 0:x.clear_status]),((S=a.data)==null?void 0:S.rank)!=null&&e.rankTable&&(a.data.rank=e.rankTable[(B=a.data)==null?void 0:B.rank]),((N=a.data)==null?void 0:N.result_rank)!=null&&e.rankTable&&(a.data.rank=e.rankTable[(P=a.data)==null?void 0:P.result_rank]),((I=a.data)==null?void 0:I.grade)!=null&&e.rankTable&&(a.data.rank=e.rankTable[(y=a.data)==null?void 0:y.grade]),((R=a.data)==null?void 0:R.skill_perc)>0?a.data.skill_perc=`${((A=a.data)==null?void 0:A.skill_perc)/100}%`:a.data.skill_perc="0%",(C=a.data)!=null&&C.skill_points&&(a.data.skill_points=((F=a.data)==null?void 0:F.skill_points)/10),((G=a.data)==null?void 0:G.perc)>0?a.data.perc=`${((H=a.data)==null?void 0:H.perc)/100}%`:a.data.perc="0%",(D=a.data)!=null&&D.new_skill&&(a.data.new_skill=((V=a.data)==null?void 0:V.new_skill)/10),(E=a.data)!=null&&E.music_rate&&(a.data.music_rate=((M=a.data)==null?void 0:M.music_rate)/10),d.push(a)}return d}return(s,d)=>(K(),Z(ua,null,{default:c(()=>[n(ca,null,{default:c(()=>[l.value?(K(),aa(oa,{key:0},[n(ea,{icon:r(ra),title:`${l.value.username}'s ${r(e).shortName?r(e).shortName:r(e).name} Scores`,main:""},null,8,["icon","title"]),sa("div",ha,[n(L,{icon:r(ta),href:`/#/games/${r(t)}/profiles/${l.value.userId}`,color:"info",label:`${l.value.username}'s Profile`},null,8,["icon","href","label"]),n(L,{icon:r(la),href:`/#/games/${r(t)}`,color:"info",label:`${r(e).shortName?r(e).shortName:r(e).name} Home`},null,8,["icon","href","label"])]),n(na,{"has-table":""},{default:c(()=>[n(pa,{headers:i,items:f.value},null,8,["items"])]),_:1})],64)):da("",!0)]),_:1})]),_:1}))}};export{va as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,2 +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.7cb2d8c1.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(`
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.cd58a423.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};

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{u as I,s as _,r as y,N as S,a as d,c as p,w as o,b as e,W as A,X as E,e as i,x as b,g as h,_ as V,v as J,f as O,k as P,I as U,R as v,Y as $,P as B,y as f,Z as F,l as L,n as M,q as R}from"./index.7cb2d8c1.js";import{d as D}from"./account.2b3737b4.js";import{_ as u}from"./FormField.72e83c1a.js";import{_ as m}from"./FormControl.e4860a47.js";const G={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},z={__name:"ProfileView",setup(W){const l=I(),N=R(),c=_({username:JSON.parse(JSON.stringify(l.userName)),email:JSON.parse(JSON.stringify(l.userEmail)),pin:null}),n=_({username:JSON.parse(JSON.stringify(l.userName)),email:JSON.parse(JSON.stringify(l.userEmail)),pin:null}),t=_({currentPassword:"",newPassword:"",confirmPassword:""}),w=y(!1),g=y(!1);S(()=>l.userName,s=>{n.username=JSON.parse(JSON.stringify(s)),c.username=JSON.parse(JSON.stringify(s))}),S(()=>l.userEmail,s=>{n.email=JSON.parse(JSON.stringify(s)),c.email=JSON.parse(JSON.stringify(s))});async function k(){w.value=!0,(await l.putUser(n)).status=="success"&&(w.value=!1,await l.loadUser(),N.go())}async function x(){g.value=!0,(await D(t.currentPassword,t.newPassword,t.confirmPassword)).status=="success"&&(alert("Password changed."),g.value=!1,await l.loadUser(),N.go())}function q(s){s.target.value=s.target.value.replace(/\D/g,"")}function C(s,a){return JSON.stringify(s)!==JSON.stringify(a)}return(s,a)=>(d(),p(M,null,{default:o(()=>[e(L,null,{default:o(()=>[e(A,{class:"mb-6","use-small":"","even-smaller":""}),e(E,{icon:i(b),title:"Profile Settings",main:""},null,8,["icon"]),h("div",G,[e(V,{"is-form":"",class:"row-span-1",onSubmit:J(k,["prevent"])},{footer:o(()=>[C(c,n)?(d(),p(O,{key:0,color:"success",type:"submit",label:"Update"})):P("",!0),w.value?(d(),p(U,{key:1,path:i(v),color:"text-yellow-500",class:"animate animate-spin"},null,8,["path"])):P("",!0)]),default:o(()=>[e($,{color:"info",label:"General",class:"mb-2"}),e(u,{label:"Username"},{default:o(()=>[e(m,{modelValue:n.username,"onUpdate:modelValue":a[0]||(a[0]=r=>n.username=r),icon:i(b),name:"username",required:"",autocomplete:"username"},null,8,["modelValue","icon"])]),_:1}),e(u,{label:"E-mail",help:"Used for password resetting and 2FA"},{default:o(()=>[e(m,{modelValue:n.email,"onUpdate:modelValue":a[1]||(a[1]=r=>n.email=r),icon:i(B),type:"email",name:"email",required:"",autocomplete:"email"},null,8,["modelValue","icon"])]),_:1}),e(u,{label:"PIN",help:"Used when logging into a game"},{default:o(()=>[e(m,{modelValue:n.pin,"onUpdate:modelValue":a[2]||(a[2]=r=>n.pin=r),icon:i(f),type:"password",name:"pin",minlength:4,maxlength:4,inputmode:"numeric",pattern:"\\d{4}",autocomplete:"pin",onInput:q},null,8,["modelValue","icon"])]),_:1})]),_:1},8,["onSubmit"]),e(V,{"is-form":"",class:"row-span-2",onSubmit:a[6]||(a[6]=J(r=>x(),["prevent"]))},{footer:o(()=>[e(O,{type:"submit",color:"success",label:"Update"}),g.value?(d(),p(U,{key:0,path:i(v),color:"text-yellow-500",class:"animate animate-spin"},null,8,["path"])):P("",!0)]),default:o(()=>[e($,{color:"info",label:"Change Password",class:"mb-2"}),e(u,{label:"Current Password"},{default:o(()=>[e(m,{modelValue:t.currentPassword,"onUpdate:modelValue":a[3]||(a[3]=r=>t.currentPassword=r),icon:i(f),name:"currentPassword",type:"password",required:""},null,8,["modelValue","icon"])]),_:1}),e(F),e(u,{label:"New Password"},{default:o(()=>[e(m,{modelValue:t.newPassword,"onUpdate:modelValue":a[4]||(a[4]=r=>t.newPassword=r),icon:i(f),name:"newPassword",type:"password",required:""},null,8,["modelValue","icon"])]),_:1}),e(u,{label:"Confirm Password"},{default:o(()=>[e(m,{modelValue:t.confirmPassword,"onUpdate:modelValue":a[5]||(a[5]=r=>t.confirmPassword=r),icon:i(f),name:"confirmPassword",type:"password",required:""},null,8,["modelValue","icon"])]),_:1})]),_:1})])]),_:1})]),_:1}))}};export{z as default};
import{u as I,s as _,r as y,N as S,a as d,c as p,w as o,b as e,W as A,X as E,e as i,x as b,g as h,_ as V,v as J,f as O,k as P,I as U,R as v,Y as $,P as B,y as f,Z as F,l as L,n as M,q as R}from"./index.cd58a423.js";import{d as D}from"./account.39fe768e.js";import{_ as u}from"./FormField.019ba684.js";import{_ as m}from"./FormControl.f5cbb811.js";const G={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},z={__name:"ProfileView",setup(W){const l=I(),N=R(),c=_({username:JSON.parse(JSON.stringify(l.userName)),email:JSON.parse(JSON.stringify(l.userEmail)),pin:null}),n=_({username:JSON.parse(JSON.stringify(l.userName)),email:JSON.parse(JSON.stringify(l.userEmail)),pin:null}),t=_({currentPassword:"",newPassword:"",confirmPassword:""}),w=y(!1),g=y(!1);S(()=>l.userName,s=>{n.username=JSON.parse(JSON.stringify(s)),c.username=JSON.parse(JSON.stringify(s))}),S(()=>l.userEmail,s=>{n.email=JSON.parse(JSON.stringify(s)),c.email=JSON.parse(JSON.stringify(s))});async function k(){w.value=!0,(await l.putUser(n)).status=="success"&&(w.value=!1,await l.loadUser(),N.go())}async function x(){g.value=!0,(await D(t.currentPassword,t.newPassword,t.confirmPassword)).status=="success"&&(alert("Password changed."),g.value=!1,await l.loadUser(),N.go())}function q(s){s.target.value=s.target.value.replace(/\D/g,"")}function C(s,a){return JSON.stringify(s)!==JSON.stringify(a)}return(s,a)=>(d(),p(M,null,{default:o(()=>[e(L,null,{default:o(()=>[e(A,{class:"mb-6","use-small":"","even-smaller":""}),e(E,{icon:i(b),title:"Profile Settings",main:""},null,8,["icon"]),h("div",G,[e(V,{"is-form":"",class:"row-span-1",onSubmit:J(k,["prevent"])},{footer:o(()=>[C(c,n)?(d(),p(O,{key:0,color:"success",type:"submit",label:"Update"})):P("",!0),w.value?(d(),p(U,{key:1,path:i(v),color:"text-yellow-500",class:"animate animate-spin"},null,8,["path"])):P("",!0)]),default:o(()=>[e($,{color:"info",label:"General",class:"mb-2"}),e(u,{label:"Username"},{default:o(()=>[e(m,{modelValue:n.username,"onUpdate:modelValue":a[0]||(a[0]=r=>n.username=r),icon:i(b),name:"username",required:"",autocomplete:"username"},null,8,["modelValue","icon"])]),_:1}),e(u,{label:"E-mail",help:"Used for password resetting and 2FA"},{default:o(()=>[e(m,{modelValue:n.email,"onUpdate:modelValue":a[1]||(a[1]=r=>n.email=r),icon:i(B),type:"email",name:"email",required:"",autocomplete:"email"},null,8,["modelValue","icon"])]),_:1}),e(u,{label:"PIN",help:"Used when logging into a game"},{default:o(()=>[e(m,{modelValue:n.pin,"onUpdate:modelValue":a[2]||(a[2]=r=>n.pin=r),icon:i(f),type:"password",name:"pin",minlength:4,maxlength:4,inputmode:"numeric",pattern:"\\d{4}",autocomplete:"pin",onInput:q},null,8,["modelValue","icon"])]),_:1})]),_:1},8,["onSubmit"]),e(V,{"is-form":"",class:"row-span-2",onSubmit:a[6]||(a[6]=J(r=>x(),["prevent"]))},{footer:o(()=>[e(O,{type:"submit",color:"success",label:"Update"}),g.value?(d(),p(U,{key:0,path:i(v),color:"text-yellow-500",class:"animate animate-spin"},null,8,["path"])):P("",!0)]),default:o(()=>[e($,{color:"info",label:"Change Password",class:"mb-2"}),e(u,{label:"Current Password"},{default:o(()=>[e(m,{modelValue:t.currentPassword,"onUpdate:modelValue":a[3]||(a[3]=r=>t.currentPassword=r),icon:i(f),name:"currentPassword",type:"password",required:""},null,8,["modelValue","icon"])]),_:1}),e(F),e(u,{label:"New Password"},{default:o(()=>[e(m,{modelValue:t.newPassword,"onUpdate:modelValue":a[4]||(a[4]=r=>t.newPassword=r),icon:i(f),name:"newPassword",type:"password",required:""},null,8,["modelValue","icon"])]),_:1}),e(u,{label:"Confirm Password"},{default:o(()=>[e(m,{modelValue:t.confirmPassword,"onUpdate:modelValue":a[5]||(a[5]=r=>t.confirmPassword=r),icon:i(f),name:"confirmPassword",type:"password",required:""},null,8,["modelValue","icon"])]),_:1})]),_:1})])]),_:1})]),_:1}))}};export{z as default};

View File

@ -1 +1 @@
import{a as t,c as m,w as n,b as a,X as i,e,x as u,W as r,_,g as o,f as c,a5 as d,a6 as f,a7 as g,a8 as s,a9 as l,l as p,n as A}from"./index.7cb2d8c1.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"},T={__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",b,[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",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{T as default};
import{a as t,c as m,w as n,b as a,X as i,e,x as u,W as r,_,g as o,f as c,a5 as d,a6 as f,a7 as g,a8 as s,a9 as l,l as p,n as A}from"./index.cd58a423.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"},T={__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",b,[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",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{T as default};

View File

@ -1 +1 @@
import{r as x,s as V,a as c,c as p,w as t,g as l,b as s,v,e as r,x as h,P as y,y as u,Q as I,f,I as P,R as X,k as A,_ as U,A as $,q as C}from"./index.7cb2d8c1.js";import{_ as q}from"./FormCheckRadio.025d62ac.js";import{_ as n}from"./FormField.72e83c1a.js";import{_ as d}from"./FormControl.e4860a47.js";import{_ as R}from"./LayoutGuest.2a529e73.js";import{A as k}from"./account.2b3737b4.js";const D={class:"flex md:min-h-screen md:items-center md:justify-center"},N={class:"p-4 flex flex-col md:flex-row w-full space-y-2 md:space-y-0 md:space-x-4"},S=l("div",{class:"flex flex-col items-center text-wrap h-full md:mt-5"},[l("img",{src:$,class:"rounded-full shadow-lg mb-2"}),l("h1",{class:"text-xl"},[l("samp",null,"PhaseII")]),l("p",{class:"text-sm text-gray-700 dark:text-white/75"}," Spinnin' since 2021 "),l("hr",{class:"border-t border-1 my-1 w-full"}),l("p",{class:"text-lg relative bottom-0"},"Account Registration")],-1),B=l("div",{class:"md:border-r md:border-1"},null,-1),E={class:"flex gap-2 mt-4"},L={class:"col-span-2"},M=l("hr",{class:"border-t border-1 my-4 w-full"},null,-1),O={class:"flex flex-col gap-2 my-4"},j=l("h2",null,"Have an Account?",-1),J={__name:"RegisterView",setup(z){const _=C(),m=x(!1),a=V({username:"",email:"",newPassword:"",confirmPassword:"",pin:"",cardId:"",remember:!0});function g(i){var e=i.target.value;e=e.replace(/[^0-9]/g,""),a.pin=e}function w(i){var e=i.target.value;e=e.replace(/[^A-Za-z0-9]/g,""),e=e.toUpperCase().replace(/(.{4})/g,"$1-").replace(/-$/,""),a.cardId=e}async function b(){m.value=!0,(await k(a)).status=="success"&&(m.value=!1,alert("User account registered. Please log in!"),_.push("login"))}return(i,e)=>(c(),p(R,null,{default:t(()=>[l("div",D,[s(U,{class:"w-full md:w-auto rounded-none md:rounded-xl md:drop-shadow-xl","has-table":"","is-auth":""},{default:t(()=>[l("div",N,[S,B,l("div",null,[l("form",{class:"grid grid-cols-2 gap-x-2",onSubmit:e[7]||(e[7]=v(o=>b(),["prevent"]))},[s(n,{label:"Desired Username"},{default:t(()=>[s(d,{modelValue:a.username,"onUpdate:modelValue":e[0]||(e[0]=o=>a.username=o),icon:r(h),name:"username",required:"",autocomplete:"username"},null,8,["modelValue","icon"])]),_:1}),s(n,{label:"Email Address"},{default:t(()=>[s(d,{modelValue:a.email,"onUpdate:modelValue":e[1]||(e[1]=o=>a.email=o),icon:r(y),type:"email",name:"email",required:"",autocomplete:"email"},null,8,["modelValue","icon"])]),_:1}),s(n,{label:"Password"},{default:t(()=>[s(d,{modelValue:a.newPassword,"onUpdate:modelValue":e[2]||(e[2]=o=>a.newPassword=o),icon:r(u),name:"newPassword",type:"password",required:""},null,8,["modelValue","icon"])]),_:1}),s(n,{label:"Password Confirmation"},{default:t(()=>[s(d,{modelValue:a.confirmPassword,"onUpdate:modelValue":e[3]||(e[3]=o=>a.confirmPassword=o),icon:r(u),name:"confirmPassword",type:"password",required:""},null,8,["modelValue","icon"])]),_:1}),s(n,{label:"Card ID",help:"The ACCESS CODE provided by the game."},{default:t(()=>[s(d,{modelValue:a.cardId,"onUpdate:modelValue":e[4]||(e[4]=o=>a.cardId=o),icon:r(I),name:"cardId",type:"card",placeholder:"XXXX-XXXX-XXXX-XXXX",minlength:19,maxlength:19,required:"",onInput:w},null,8,["modelValue","icon"])]),_:1}),s(n,{label:"Game PIN"},{default:t(()=>[s(d,{modelValue:a.pin,"onUpdate:modelValue":e[5]||(e[5]=o=>a.pin=o),icon:r(u),type:"password",name:"pin",required:"",minlength:4,maxlength:4,inputmode:"numeric",pattern:"\\d{4}",autocomplete:"pin",onInput:g},null,8,["modelValue","icon"])]),_:1}),s(q,{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"]),l("div",E,[s(f,{type:"submit",label:"Register",color:"success"}),m.value?(c(),p(P,{key:0,path:r(X),color:"text-yellow-500",class:"animate animate-spin"},null,8,["path"])):A("",!0)])],32),l("div",L,[M,l("div",O,[j,s(f,{label:"Log In",color:"info",href:"/#/auth/login"})])])])])]),_:1})])]),_:1}))}};export{J as default};
import{r as x,s as V,a as c,c as p,w as t,g as l,b as s,v,e as r,x as h,P as y,y as u,Q as I,f,I as P,R as X,k as A,_ as U,A as $,q as C}from"./index.cd58a423.js";import{_ as q}from"./FormCheckRadio.23d5c362.js";import{_ as n}from"./FormField.019ba684.js";import{_ as d}from"./FormControl.f5cbb811.js";import{_ as R}from"./LayoutGuest.4c44e827.js";import{A as k}from"./account.39fe768e.js";const D={class:"flex md:min-h-screen md:items-center md:justify-center"},N={class:"p-4 flex flex-col md:flex-row w-full space-y-2 md:space-y-0 md:space-x-4"},S=l("div",{class:"flex flex-col items-center text-wrap h-full md:mt-5"},[l("img",{src:$,class:"rounded-full shadow-lg mb-2"}),l("h1",{class:"text-xl"},[l("samp",null,"PhaseII")]),l("p",{class:"text-sm text-gray-700 dark:text-white/75"}," Spinnin' since 2021 "),l("hr",{class:"border-t border-1 my-1 w-full"}),l("p",{class:"text-lg relative bottom-0"},"Account Registration")],-1),B=l("div",{class:"md:border-r md:border-1"},null,-1),E={class:"flex gap-2 mt-4"},L={class:"col-span-2"},M=l("hr",{class:"border-t border-1 my-4 w-full"},null,-1),O={class:"flex flex-col gap-2 my-4"},j=l("h2",null,"Have an Account?",-1),J={__name:"RegisterView",setup(z){const _=C(),m=x(!1),a=V({username:"",email:"",newPassword:"",confirmPassword:"",pin:"",cardId:"",remember:!0});function g(i){var e=i.target.value;e=e.replace(/[^0-9]/g,""),a.pin=e}function w(i){var e=i.target.value;e=e.replace(/[^A-Za-z0-9]/g,""),e=e.toUpperCase().replace(/(.{4})/g,"$1-").replace(/-$/,""),a.cardId=e}async function b(){m.value=!0,(await k(a)).status=="success"&&(m.value=!1,alert("User account registered. Please log in!"),_.push("login"))}return(i,e)=>(c(),p(R,null,{default:t(()=>[l("div",D,[s(U,{class:"w-full md:w-auto rounded-none md:rounded-xl md:drop-shadow-xl","has-table":"","is-auth":""},{default:t(()=>[l("div",N,[S,B,l("div",null,[l("form",{class:"grid grid-cols-2 gap-x-2",onSubmit:e[7]||(e[7]=v(o=>b(),["prevent"]))},[s(n,{label:"Desired Username"},{default:t(()=>[s(d,{modelValue:a.username,"onUpdate:modelValue":e[0]||(e[0]=o=>a.username=o),icon:r(h),name:"username",required:"",autocomplete:"username"},null,8,["modelValue","icon"])]),_:1}),s(n,{label:"Email Address"},{default:t(()=>[s(d,{modelValue:a.email,"onUpdate:modelValue":e[1]||(e[1]=o=>a.email=o),icon:r(y),type:"email",name:"email",required:"",autocomplete:"email"},null,8,["modelValue","icon"])]),_:1}),s(n,{label:"Password"},{default:t(()=>[s(d,{modelValue:a.newPassword,"onUpdate:modelValue":e[2]||(e[2]=o=>a.newPassword=o),icon:r(u),name:"newPassword",type:"password",required:""},null,8,["modelValue","icon"])]),_:1}),s(n,{label:"Password Confirmation"},{default:t(()=>[s(d,{modelValue:a.confirmPassword,"onUpdate:modelValue":e[3]||(e[3]=o=>a.confirmPassword=o),icon:r(u),name:"confirmPassword",type:"password",required:""},null,8,["modelValue","icon"])]),_:1}),s(n,{label:"Card ID",help:"The ACCESS CODE provided by the game."},{default:t(()=>[s(d,{modelValue:a.cardId,"onUpdate:modelValue":e[4]||(e[4]=o=>a.cardId=o),icon:r(I),name:"cardId",type:"card",placeholder:"XXXX-XXXX-XXXX-XXXX",minlength:19,maxlength:19,required:"",onInput:w},null,8,["modelValue","icon"])]),_:1}),s(n,{label:"Game PIN"},{default:t(()=>[s(d,{modelValue:a.pin,"onUpdate:modelValue":e[5]||(e[5]=o=>a.pin=o),icon:r(u),type:"password",name:"pin",required:"",minlength:4,maxlength:4,inputmode:"numeric",pattern:"\\d{4}",autocomplete:"pin",onInput:g},null,8,["modelValue","icon"])]),_:1}),s(q,{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"]),l("div",E,[s(f,{type:"submit",label:"Register",color:"success"}),m.value?(c(),p(P,{key:0,path:r(X),color:"text-yellow-500",class:"animate animate-spin"},null,8,["path"])):A("",!0)])],32),l("div",L,[M,l("div",O,[j,s(f,{label:"Log In",color:"info",href:"/#/auth/login"})])])])])]),_:1})])]),_:1}))}};export{J as default};

View File

@ -1 +1 @@
import{s as P,a as o,c as u,w as r,g as s,b as a,i as m,e as i,S as k,f as c,I as w,R as h,k as n,v as _,U as S,V as v,t as $,y,_ as A,A as K,q as I}from"./index.7cb2d8c1.js";import{_ as f}from"./FormField.72e83c1a.js";import{_ as p}from"./FormControl.e4860a47.js";import{_ as R}from"./LayoutGuest.2a529e73.js";import{a as C,b as U,c as E}from"./account.2b3737b4.js";const N={class:"flex md:min-h-screen md:items-center md:justify-center"},q={class:"p-4 flex flex-col md:flex-row w-full space-y-2 md:space-y-0 md:space-x-4"},B=s("div",{class:"flex flex-col items-center text-wrap h-full md:mt-5"},[s("img",{src:K,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"},"Password Reset")],-1),L=s("div",{class:"md:border-r md:border-1"},null,-1),O={class:"grid grid-cols-1 gap-2"},j={class:"mb-4"},D={class:"text-xl"},M={class:"font-bold"},T=s("p",{class:"text-sm text-gray-400"}," Look who forgot their password ",-1),W={key:3,class:"border-t border-1 mt-3 w-full"},z={key:4,class:"flex flex-col gap-2 my-1"},F=s("h2",null,"Remember it?",-1),Z={__name:"ResetView",setup(G){const x=I(),e=P({email:"",loading:!1,emailSent:!1,authKey:null,authValid:!1,username:null,newPassword:"",confirmPassword:""});async function b(){e.loading=!0,(await C(e.email)).status=="success"&&(e.emailSent=!0,e.loading=!1)}async function g(){e.loading=!0;const d=await U(e.authKey);d.status=="success"&&(e.authValid=!0,e.loading=!1,e.username=d.username)}async function V(){if(e.newPassword!=e.confirmPassword){alert("Passwords don't match!");return}e.loading=!0,(await E(e.authKey,e.newPassword,e.confirmPassword)).status=="success"&&(alert("Password changed!"),x.push("/auth/login"))}return(d,t)=>(o(),u(R,null,{default:r(()=>[s("div",N,[a(A,{class:"w-full md:w-auto rounded-none md:rounded-xl md:drop-shadow-xl","has-table":"","is-auth":""},{default:r(()=>[s("div",q,[B,L,s("div",O,[e.emailSent?n("",!0):(o(),m("form",{key:0,onSubmit:t[1]||(t[1]=_(l=>b(),["prevent"]))},[a(f,{label:"Email Address"},{default:r(()=>[a(p,{modelValue:e.email,"onUpdate:modelValue":t[0]||(t[0]=l=>e.email=l),icon:i(k),type:"email",autocomplete:"email",required:""},null,8,["modelValue","icon"])]),_:1}),a(c,{label:"Check",type:"submit",color:"info"}),e.loading?(o(),u(w,{key:0,path:i(h),color:"text-yellow-500",class:"animate animate-spin"},null,8,["path"])):n("",!0)],32)),e.emailSent&&!e.authValid?(o(),m("form",{key:1,onSubmit:t[3]||(t[3]=_(l=>g(),["prevent"]))},[a(f,{label:"Auth Key"},{default:r(()=>[a(p,{modelValue:e.authKey,"onUpdate:modelValue":t[2]||(t[2]=l=>e.authKey=l),icon:i(S),type:"text",name:"token",inputmode:"numeric",pattern:"[0-9]*",autocomplete:"one-time-code",maxlength:6},null,8,["modelValue","icon"])]),_:1}),a(c,{label:"Unlock",type:"submit",color:"info"}),e.loading?(o(),u(w,{key:0,path:i(h),color:"text-yellow-500",class:"animate animate-spin"},null,8,["path"])):n("",!0)],32)):n("",!0),e.emailSent&&e.authValid?(o(),m("form",{key:2,onSubmit:t[6]||(t[6]=_(l=>V(),["prevent"]))},[s("div",j,[s("h1",D,[v(" Welcome, "),s("span",M,$(e.username),1)]),T]),a(f,{label:"New Password"},{default:r(()=>[a(p,{modelValue:e.newPassword,"onUpdate:modelValue":t[4]||(t[4]=l=>e.newPassword=l),icon:i(y),type:"password",required:"",minlength:"8"},null,8,["modelValue","icon"])]),_:1}),a(f,{label:"Confirm Password"},{default:r(()=>[a(p,{modelValue:e.confirmPassword,"onUpdate:modelValue":t[5]||(t[5]=l=>e.confirmPassword=l),icon:i(y),type:"password",required:"",minlength:"8"},null,8,["modelValue","icon"])]),_:1}),a(c,{label:"Reset Password",type:"submit",color:"success"}),e.loading?(o(),u(w,{key:0,path:i(h),color:"text-yellow-500",class:"animate animate-spin"},null,8,["path"])):n("",!0)],32)):n("",!0),e.authValid?n("",!0):(o(),m("hr",W)),e.authValid?n("",!0):(o(),m("div",z,[F,a(c,{label:"Log In",color:"success",href:"/#/auth/login"})]))])])]),_:1})])]),_:1}))}};export{Z as default};
import{s as P,a as o,c as u,w as r,g as s,b as a,i as m,e as i,S as k,f as c,I as w,R as h,k as n,v as _,U as S,V as v,t as $,y,_ as A,A as K,q as I}from"./index.cd58a423.js";import{_ as f}from"./FormField.019ba684.js";import{_ as p}from"./FormControl.f5cbb811.js";import{_ as R}from"./LayoutGuest.4c44e827.js";import{a as C,b as U,c as E}from"./account.39fe768e.js";const N={class:"flex md:min-h-screen md:items-center md:justify-center"},q={class:"p-4 flex flex-col md:flex-row w-full space-y-2 md:space-y-0 md:space-x-4"},B=s("div",{class:"flex flex-col items-center text-wrap h-full md:mt-5"},[s("img",{src:K,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"},"Password Reset")],-1),L=s("div",{class:"md:border-r md:border-1"},null,-1),O={class:"grid grid-cols-1 gap-2"},j={class:"mb-4"},D={class:"text-xl"},M={class:"font-bold"},T=s("p",{class:"text-sm text-gray-400"}," Look who forgot their password ",-1),W={key:3,class:"border-t border-1 mt-3 w-full"},z={key:4,class:"flex flex-col gap-2 my-1"},F=s("h2",null,"Remember it?",-1),Z={__name:"ResetView",setup(G){const x=I(),e=P({email:"",loading:!1,emailSent:!1,authKey:null,authValid:!1,username:null,newPassword:"",confirmPassword:""});async function b(){e.loading=!0,(await C(e.email)).status=="success"&&(e.emailSent=!0,e.loading=!1)}async function g(){e.loading=!0;const d=await U(e.authKey);d.status=="success"&&(e.authValid=!0,e.loading=!1,e.username=d.username)}async function V(){if(e.newPassword!=e.confirmPassword){alert("Passwords don't match!");return}e.loading=!0,(await E(e.authKey,e.newPassword,e.confirmPassword)).status=="success"&&(alert("Password changed!"),x.push("/auth/login"))}return(d,t)=>(o(),u(R,null,{default:r(()=>[s("div",N,[a(A,{class:"w-full md:w-auto rounded-none md:rounded-xl md:drop-shadow-xl","has-table":"","is-auth":""},{default:r(()=>[s("div",q,[B,L,s("div",O,[e.emailSent?n("",!0):(o(),m("form",{key:0,onSubmit:t[1]||(t[1]=_(l=>b(),["prevent"]))},[a(f,{label:"Email Address"},{default:r(()=>[a(p,{modelValue:e.email,"onUpdate:modelValue":t[0]||(t[0]=l=>e.email=l),icon:i(k),type:"email",autocomplete:"email",required:""},null,8,["modelValue","icon"])]),_:1}),a(c,{label:"Check",type:"submit",color:"info"}),e.loading?(o(),u(w,{key:0,path:i(h),color:"text-yellow-500",class:"animate animate-spin"},null,8,["path"])):n("",!0)],32)),e.emailSent&&!e.authValid?(o(),m("form",{key:1,onSubmit:t[3]||(t[3]=_(l=>g(),["prevent"]))},[a(f,{label:"Auth Key"},{default:r(()=>[a(p,{modelValue:e.authKey,"onUpdate:modelValue":t[2]||(t[2]=l=>e.authKey=l),icon:i(S),type:"text",name:"token",inputmode:"numeric",pattern:"[0-9]*",autocomplete:"one-time-code",maxlength:6},null,8,["modelValue","icon"])]),_:1}),a(c,{label:"Unlock",type:"submit",color:"info"}),e.loading?(o(),u(w,{key:0,path:i(h),color:"text-yellow-500",class:"animate animate-spin"},null,8,["path"])):n("",!0)],32)):n("",!0),e.emailSent&&e.authValid?(o(),m("form",{key:2,onSubmit:t[6]||(t[6]=_(l=>V(),["prevent"]))},[s("div",j,[s("h1",D,[v(" Welcome, "),s("span",M,$(e.username),1)]),T]),a(f,{label:"New Password"},{default:r(()=>[a(p,{modelValue:e.newPassword,"onUpdate:modelValue":t[4]||(t[4]=l=>e.newPassword=l),icon:i(y),type:"password",required:"",minlength:"8"},null,8,["modelValue","icon"])]),_:1}),a(f,{label:"Confirm Password"},{default:r(()=>[a(p,{modelValue:e.confirmPassword,"onUpdate:modelValue":t[5]||(t[5]=l=>e.confirmPassword=l),icon:i(y),type:"password",required:"",minlength:"8"},null,8,["modelValue","icon"])]),_:1}),a(c,{label:"Reset Password",type:"submit",color:"success"}),e.loading?(o(),u(w,{key:0,path:i(h),color:"text-yellow-500",class:"animate animate-spin"},null,8,["path"])):n("",!0)],32)):n("",!0),e.authValid?n("",!0):(o(),m("hr",W)),e.authValid?n("",!0):(o(),m("div",z,[F,a(c,{label:"Log In",color:"success",href:"/#/auth/login"})]))])])]),_:1})])]),_:1}))}};export{Z as default};

View File

@ -1,5 +1,5 @@
import{s as p,ar as S,a as i,c as d,w as n,b as t,g as e,e as m,i as u,k as _,aq as B,X as b,aH as L,_ as f,j as w,t as g,f as k,F as x,aI as A,l as j,n as F,p as G,q as z}from"./index.7cb2d8c1.js";import{_ as E}from"./ProfileCard.bec553f3.js";import{_ as N}from"./FormField.72e83c1a.js";import{_ as V}from"./FormControl.e4860a47.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"},q=e("h2",{class:"text-md sm:text-lg md:text-xl font-bold p-2"}," Select Version ",-1),H={class:"bg-white dark:bg-slate-900/90 rounded-2xl pt-6 p-3"},P={class:"w-full"},T={class:"grid gap-3"},M={class:"flex justify-between items-center"},O={class:"flex"},X=e("img",{class:"w-10 mr-3",src:"https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/"},null,-1),Z={class:"grid"},J={class:"text-lg"},K={class:"text-md font-mono"},Q={class:"grid gap-3"},W={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=G(),$=z();var v=null,o=null;const I={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 D(){if(l.filter)return h.filter(r=>r.name.toLowerCase().includes(l.filter.toLowerCase())||r.rivalID.toLowerCase().includes(l.filter.toLowerCase()))}function R(){var r=null;return a.currentVersion?r=`/assets/games/${o.id}/card/${a.currentVersion}.webp`:r=o.cardBG,r}function C(){return`
import{s as p,as as S,a as i,c as d,w as n,b as t,g as e,e as m,i as u,k as _,ar as B,X as b,aI as L,_ as f,j as w,t as g,f as k,F as x,aJ as A,l as j,n as F,p as G,q as z}from"./index.cd58a423.js";import{_ as E}from"./ProfileCard.ab5fddff.js";import{_ as N}from"./FormField.019ba684.js";import{_ as V}from"./FormControl.f5cbb811.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"},q={class:"w-full"},H={class:"grid gap-3"},J={class:"flex justify-between items-center"},M={class:"flex"},O=e("img",{class:"w-10 mr-3",src:"https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/"},null,-1),X={class:"grid"},Z={class:"text-lg"},K={class:"text-md font-mono"},Q={class:"grid gap-3"},W={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=G(),$=z();var v=null,o=null;const I={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 D(){if(l.filter)return h.filter(r=>r.name.toLowerCase().includes(l.filter.toLowerCase())||r.rivalID.toLowerCase().includes(l.filter.toLowerCase()))}function R(){var r=null;return a.currentVersion?r=`/assets/games/${o.id}/card/${a.currentVersion}.webp`:r=o.cardBG,r}function C(){return`
background-image: url('${R()}');
background-size: cover;
background-repeat: no-repeat;
`}return(r,c)=>(i(),d(F,null,{default:n(()=>[t(j,null,{default:n(()=>[e("div",U,[m(o).versions?(i(),u("div",Y,[q,t(V,{modelValue:a.currentVersion,"onUpdate:modelValue":c[0]||(c[0]=s=>a.currentVersion=s),options:m(o).versions},null,8,["modelValue","options"])])):_("",!0)]),a.currentVersion?(i(),u("div",{key:0,style:B(C()),class:"rounded-2xl mb-6"},[e("div",H,[e("div",P,[t(E,{"use-small":"",profile:I})])])],4)):_("",!0),t(b,{icon:m(L),title:"Add a Rival",main:""},null,8,["icon"]),a.currentVersion?(i(),d(f,{key:1,class:"mb-6"},{default:n(()=>[t(N,{label:"Search",help:"Search by username or Rival ID to add a rival.",class:"w-full md:w-1/3"},{default:n(()=>[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",T,[(i(!0),u(x,null,w(D(),s=>(i(),d(f,{key:s.id},{default:n(()=>[e("div",M,[e("div",O,[X,e("div",Z,[e("h1",J,g(s.name),1),e("h2",K,g(s.rivalID),1)])]),t(k,{label:"Add Rival",color:"success"})])]),_:2},1024))),128))])]),_:1})):_("",!0),t(b,{icon:m(A),title:"Rivals",main:""},null,8,["icon"]),a.currentVersion?(i(),d(f,{key:2,class:"mb-6"},{default:n(()=>[e("div",Q,[(i(),u(x,null,w(h,s=>t(f,{key:s.id},{default:n(()=>[e("div",W,[e("div",ee,[se,e("div",te,[e("h1",ae,g(s.name),1),e("h2",ie,g(s.rivalID),1)])]),t(k,{label:"Remove Rival",color:"danger"})])]),_:2},1024)),64))])]),_:1})):_("",!0)]),_:1})]),_:1}))}};export{me as default};
`}return(r,c)=>(i(),d(F,null,{default:n(()=>[t(j,null,{default:n(()=>[e("div",U,[m(o).versions?(i(),u("div",Y,[P,t(V,{modelValue:a.currentVersion,"onUpdate:modelValue":c[0]||(c[0]=s=>a.currentVersion=s),options:m(o).versions},null,8,["modelValue","options"])])):_("",!0)]),a.currentVersion?(i(),u("div",{key:0,style:B(C()),class:"rounded-2xl mb-6"},[e("div",T,[e("div",q,[t(E,{"use-small":"",profile:I})])])],4)):_("",!0),t(b,{icon:m(L),title:"Add a Rival",main:""},null,8,["icon"]),a.currentVersion?(i(),d(f,{key:1,class:"mb-6"},{default:n(()=>[t(N,{label:"Search",help:"Search by username or Rival ID to add a rival.",class:"w-full md:w-1/3"},{default:n(()=>[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),u(x,null,w(D(),s=>(i(),d(f,{key:s.id},{default:n(()=>[e("div",J,[e("div",M,[O,e("div",X,[e("h1",Z,g(s.name),1),e("h2",K,g(s.rivalID),1)])]),t(k,{label:"Add Rival",color:"success"})])]),_:2},1024))),128))])]),_:1})):_("",!0),t(b,{icon:m(A),title:"Rivals",main:""},null,8,["icon"]),a.currentVersion?(i(),d(f,{key:2,class:"mb-6"},{default:n(()=>[e("div",Q,[(i(),u(x,null,w(h,s=>t(f,{key:s.id},{default:n(()=>[e("div",W,[e("div",ee,[se,e("div",te,[e("h1",ae,g(s.name),1),e("h2",ie,g(s.rivalID),1)])]),t(k,{label:"Remove Rival",color:"danger"})])]),_:2},1024)),64))])]),_:1})):_("",!0)]),_:1})]),_:1}))}};export{me as default};

View File

@ -1 +1 @@
import{a as i,c as n,w as s,b as e,X as c,e as r,aa as t,g as l,ab as a,ac as o,_,l as d,n as m}from"./index.7cb2d8c1.js";const u={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 mb-6"},h={__name:"UsersView",setup(f){return(b,g)=>(i(),n(m,null,{default:s(()=>[e(d,null,{default:s(()=>[e(c,{icon:r(t),title:"Network Administration",color:"text-red-600",main:""},null,8,["icon"]),l("div",u,[e(a,{number:1,label:"User Account(s)"}),e(a,{number:2,label:"Registered Arcades"}),e(a,{number:3,label:"Published Scores"})]),e(c,{icon:r(o),title:"Recent Errors"},null,8,["icon"]),e(_)]),_:1})]),_:1}))}};export{h as default};
import{a as i,c as n,w as s,b as e,X as c,e as r,aa as t,g as l,ab as a,ac as o,_,l as d,n as m}from"./index.cd58a423.js";const u={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 mb-6"},h={__name:"UsersView",setup(f){return(b,g)=>(i(),n(m,null,{default:s(()=>[e(d,null,{default:s(()=>[e(c,{icon:r(t),title:"Network Administration",color:"text-red-600",main:""},null,8,["icon"]),l("div",u,[e(a,{number:1,label:"User Account(s)"}),e(a,{number:2,label:"Registered Arcades"}),e(a,{number:3,label:"Published Scores"})]),e(c,{icon:r(o),title:"Recent Errors"},null,8,["icon"]),e(_)]),_:1})]),_:1}))}};export{h as default};

View File

@ -1 +1 @@
import{u as e}from"./index.7cb2d8c1.js";const t=e();async function n(a){try{return await t.callApi("/auth/emailAuth","POST",{email:a})}catch(r){throw console.log("Error checking email:",r),r}}async function d(a){try{return await t.callApi("/auth/check2FAKey","POST",{key:a})}catch(r){throw console.log("Error checking key:",r),r}}async function i(a,r,c){try{return await t.callApi("/auth/changePassword","POST",{key:a,newPassword:r,confirmPassword:c})}catch(o){throw console.log("Error resetting password:",o),o}}async function l(a,r,c){try{return await t.callApi("/user/updatePassword","POST",{currentPassword:a,newPassword:r,confirmPassword:c})}catch(o){throw console.log("Error updating password:",o),o}}async function u(a){try{return await t.callApi("/user","PUT",a)}catch(r){throw console.log("Error registering:",r),r}}async function w(){try{return(await t.callApi("/user/card")).cards}catch(a){throw console.log("Error fetching cards:",a),a}}async function h(a){try{return await t.callApi("/user/card","POST",{cardId:a})}catch(r){throw console.log("Error adding card:",r),r}}async function P(a){try{if(window.confirm("Are you really?"))return await t.callApi("/user/card","DELETE",{cardId:a})}catch(r){throw console.log("Error deleting card:",r),r}}export{u as A,n as a,d as b,i as c,l as d,w as e,P as f,h as g};
import{u as e}from"./index.cd58a423.js";const t=e();async function n(a){try{return await t.callApi("/auth/emailAuth","POST",{email:a})}catch(r){throw console.log("Error checking email:",r),r}}async function d(a){try{return await t.callApi("/auth/check2FAKey","POST",{key:a})}catch(r){throw console.log("Error checking key:",r),r}}async function i(a,r,c){try{return await t.callApi("/auth/changePassword","POST",{key:a,newPassword:r,confirmPassword:c})}catch(o){throw console.log("Error resetting password:",o),o}}async function l(a,r,c){try{return await t.callApi("/user/updatePassword","POST",{currentPassword:a,newPassword:r,confirmPassword:c})}catch(o){throw console.log("Error updating password:",o),o}}async function u(a){try{return await t.callApi("/user","PUT",a)}catch(r){throw console.log("Error registering:",r),r}}async function w(){try{return(await t.callApi("/user/card")).cards}catch(a){throw console.log("Error fetching cards:",a),a}}async function h(a){try{return await t.callApi("/user/card","POST",{cardId:a})}catch(r){throw console.log("Error adding card:",r),r}}async function P(a){try{if(window.confirm("Are you really?"))return await t.callApi("/user/card","DELETE",{cardId:a})}catch(r){throw console.log("Error deleting card:",r),r}}export{u as A,n as a,d as b,i as c,l as d,w as e,P as f,h as g};

View File

@ -1 +1 @@
import{u as o}from"./index.7cb2d8c1.js";const c=o();async function n(){try{return(await c.callApi("/admin")).data}catch(r){throw console.log("Error loading admin dashboard:",r),r}}async function e(r){try{return await c.callApi(`/arcade/checkName?name=${r}`)}catch(a){throw console.log("Error testing arcade:",a),a}}async function d(r){try{return(await c.callApi(`/arcade/checkPCBID?PCBID=${r}`)).unused}catch(a){throw console.log("Error testing machine:",a),a}}async function i(r){try{return await c.callApi("/admin/onboardArcade","POST",r)}catch(a){throw console.log("Error onboarding arcade:",a),a}}export{n as A,i as a,d as b,e as c};
import{u as o}from"./index.cd58a423.js";const c=o();async function n(){try{return(await c.callApi("/admin")).data}catch(r){throw console.log("Error loading admin dashboard:",r),r}}async function e(r){try{return await c.callApi(`/arcade/checkName?name=${r}`)}catch(a){throw console.log("Error testing arcade:",a),a}}async function d(r){try{return(await c.callApi(`/arcade/checkPCBID?PCBID=${r}`)).unused}catch(a){throw console.log("Error testing machine:",a),a}}async function i(r){try{return await c.callApi("/admin/onboardArcade","POST",r)}catch(a){throw console.log("Error onboarding arcade:",a),a}}export{n as A,i as a,d as b,e as c};

View File

@ -0,0 +1 @@
import{u as o}from"./index.cd58a423.js";const t=o();async function n(r){try{return(await t.callApi(`/arcade/${r}`)).arcade}catch(a){throw console.log("Error fetching arcade:",a),a}}async function d(r){try{return await t.callApi(`/arcade/${r}/exportVPN`)}catch(a){throw console.log("Error fetching arcade VPN:",a),a}}async function i(r,a){try{return await t.callApi(`/arcade/${r}`,"POST",a)}catch(c){throw console.log("Error updating arcade:",c),c}}async function s(r){try{return(await t.callApi(`/arcade/${r}/paseli`)).data}catch(a){throw console.log("Error fetching arcade PASELI data:",a),a}}export{n as A,d as a,i as b,s as c};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{u as n}from"./index.7cb2d8c1.js";const o=n();async function c(a){try{return(await o.callApi(`/game/${a}/profiles`)).data}catch(t){throw console.log("Error fetching profiles:",t),t}}async function u(a,t,e=null){if(!e){for(;!o.userId;)await new Promise(r=>setTimeout(r,200));e=o.userId}try{return(await o.callApi(`/profile/${a}?version=${t}&userId=${e}`)).data}catch(r){throw console.log("Error fetching profile:",r),r}}async function f(a,t,e){try{for(;!o.userId;)await new Promise(i=>setTimeout(i,200));const r=o.userId;return await o.callApi(`/profile/${a}?version=${t}&userId=${r}`,"POST",e)}catch(r){throw console.log("Error updating profile:",r),r}}export{c as A,u as a,f as b};
import{u as n}from"./index.cd58a423.js";const o=n();async function c(a){try{return(await o.callApi(`/game/${a}/profiles`)).data}catch(t){throw console.log("Error fetching profiles:",t),t}}async function u(a,t,e=null){if(!e){for(;!o.userId;)await new Promise(r=>setTimeout(r,200));e=o.userId}try{return(await o.callApi(`/profile/${a}?version=${t}&userId=${e}`)).data}catch(r){throw console.log("Error fetching profile:",r),r}}async function f(a,t,e){try{for(;!o.userId;)await new Promise(i=>setTimeout(i,200));const r=o.userId;return await o.callApi(`/profile/${a}?version=${t}&userId=${r}`,"POST",e)}catch(r){throw console.log("Error updating profile:",r),r}}export{c as A,u as a,f as b};

View File

@ -0,0 +1 @@
function a(s,u){return u.split(".").reduce((t,f)=>t&&t[f],s)}function l(s,u,t){const f=u.split("."),o=f.pop(),e=f.reduce((n,r)=>n[r]=n[r]||{},s);e[o]=t}function x(s,u){const t=/^[0-9A-Z!?#$&*-. ]*$/,f=s.toUpperCase().slice(0,u);return(t.test(f)?f:"").toUpperCase()}function F(s,u){let t="";for(let o=0;o<s.length&&t.length<u;o++){let e=s.charCodeAt(o);e>=48&&e<=57?e=65296+(e-48):e>=65&&e<=90?e=65313+(e-65):e>=97&&e<=122?e=65345+(e-97):e===64?e=65312:e===44?e=65292:e===46?e=65294:e===95&&(e=65343),t+=String.fromCharCode(e)}return(/^[\uFF20-\uFF3A\uFF41-\uFF5A\uFF10-\uFF19\uFF0C\uFF0E\uFF3F\u3041-\u308D\u308F\u3092\u3093\u30A1-\u30ED\u30EF\u30F2\u30F3\u30FC]*$/.test(t)?t:"").toUpperCase()}export{x as a,a as g,l as s,F as t};

View File

@ -41,8 +41,8 @@
document.addEventListener('keydown', keyHandler, false);
</script>
<script type="module" crossorigin src="/assets/index.7cb2d8c1.js"></script>
<link rel="stylesheet" href="/assets/index.5690ed88.css">
<script type="module" crossorigin src="/assets/index.cd58a423.js"></script>
<link rel="stylesheet" href="/assets/index.256ce2b6.css">
</head>
<body class="scroll-smooth">
<noscript>
@ -52,10 +52,11 @@
<div id="particles-js"></div>
<script src="/assets/particles.js"></script>
<script src="/assets/snow.js"></script>
<div id="app"></div>
<script src="/assets/snow.js"></script>
<!-- Bats! -->
<!-- <script src="https://code.jquery.com/jquery.js"></script>