mirror of
https://github.com/PhaseII-eAmusement-Network/PhaseWeb3-Vue.git
synced 2026-09-12 19:25:15 -05:00
Deploying to gh-pages from @ PhaseII-eAmusement-Network/PhaseWeb3-Vue@3578b72e3a 🚀
This commit is contained in:
@@ -1 +1 @@
|
||||
import{a as i,c as n,w as s,b as e,Q as c,e as r,a5 as t,g as l,a6 as a,a7 as o,_,l as d,n as m}from"./index.e776b26c.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,Q as c,e as r,a5 as t,g as l,a6 as a,a7 as o,_,l as d,n as m}from"./index.9f7c925e.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};
|
||||
@@ -1,5 +1,5 @@
|
||||
import{r as y,a,i as t,b as d,w as k,g as s,t as l,e as c,c as x,R as h,ac as w,k as u,ad as v,Y as n,F as o,j as _,f,ae as S,a2 as $,af as p,ag as B,ah as j,ai as C}from"./index.e776b26c.js";const N={class:"space-y-3 text-center w-full"},V={class:"text-2xl lg:text-3xl font-bold"},A={class:"flex gap-2 justify-center items-center"},E={class:"text-xl md:text-2xl font-bold"},H={class:"flex flex-wrap gap-4 place-content-center"},L=s("hr",{class:"border-t border-1 w-full"},null,-1),M={key:0,class:"text-lg"},T=s("span",{class:"font-normal"}," and",-1),q=s("span",{class:"font-normal"}," and",-1),z={key:1,class:"md:w-full grid grid-cols-1 md:grid-cols-3 gap-3"},D={key:2,class:"w-full flex justify-center"},R={__name:"ArcadeCard",props:{useSmall:{type:Boolean,required:!1,default:!1},arcade:{type:Object,required:!0}},setup(e){var g=y(e.arcade.data);function b(m){if(m!==null)return`
|
||||
import{r as y,a,i as t,b as o,w as k,g as s,t as l,e as c,c as x,R as h,ae as w,k as u,af as v,Y as n,F as d,j as _,f,ag as S,a2 as $,ah as p,ai as j,aj as B,ak as C}from"./index.9f7c925e.js";const N={class:"space-y-3 text-center w-full"},V={class:"text-2xl lg:text-3xl font-bold"},A={class:"flex gap-2 justify-center items-center"},E={class:"text-xl md:text-2xl font-bold"},H={class:"flex flex-wrap gap-4 place-content-center"},L=s("hr",{class:"border-t border-1 w-full"},null,-1),M={key:0,class:"text-lg"},T=s("span",{class:"font-normal"}," and",-1),q=s("span",{class:"font-normal"}," and",-1),z={key:1,class:"md:w-full grid grid-cols-1 md:grid-cols-3 gap-3"},D={key:2,class:"w-full flex justify-center"},R={__name:"ArcadeCard",props:{useSmall:{type:Boolean,required:!1,default:!1},arcade:{type:Object,required:!0}},setup(e){var g=y(e.arcade.data);function b(m){if(m!==null)return`
|
||||
background-image: url('${m}');
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
`}return(m,O)=>(a(),t("div",{style:C(b("/assets/card/carpet.webp")),class:"rounded-2xl mb-6 w-full"},[d(j,{type:"justify-center",class:"bg-white dark:bg-slate-900/90 rounded-2xl p-6 w-full"},{default:k(()=>[s("div",N,[s("h1",V,l(e.arcade.name),1),s("div",A,[s("h2",E,l(e.arcade.description),1)]),s("div",H,[c(g).is_beta?(a(),x(h,{key:0,label:"Beta Enabled",color:"warning",icon:c(w)},null,8,["icon"])):u("",!0),d(h,{label:"Private Arcade",color:"info",icon:c(v)},null,8,["icon"])]),L,e.arcade.owners&&e.arcade.owners.length?(a(),t("p",M,[n(" Managed by "),(a(!0),t(o,null,_(e.arcade.owners,(r,i)=>(a(),t("span",{key:r.username,class:"font-bold"},[e.arcade.owners.length===2&&i===0?(a(),t(o,{key:0},[n(l(r.username),1)],64)):e.arcade.owners.length===2&&i===1?(a(),t(o,{key:1},[T,n(" "+l(r.username)+".",1)],64)):i===0?(a(),t(o,{key:2},[n(l(r.username),1)],64)):i===e.arcade.owners.length-1?(a(),t(o,{key:3},[n(", "),q,n(" "+l(r.username)+".",1)],64)):(a(),t(o,{key:4},[n(", "+l(r.username),1)],64))]))),128))])):u("",!0),e.useSmall?u("",!0):(a(),t("div",z,[d(f,{href:`/#/arcade/${e.arcade.id}/events`,icon:c(S),color:"info",label:"Event Settings"},null,8,["href","icon"]),d(f,{href:`/#/arcade/${e.arcade.id}/machines`,icon:c($),color:"info",label:"Machine List"},null,8,["href","icon"]),d(f,{href:`/#/arcade/${e.arcade.id}/paseli`,icon:c(p),color:"info",label:"PASELI"},null,8,["href","icon"])])),e.useSmall?(a(),t("div",D,[d(f,{href:`/#/arcade/${e.arcade.id}`,icon:c(B),color:"info",label:"Arcade Home",class:"w-full md:w-[150px]"},null,8,["href","icon"])])):u("",!0)])]),_:1})],4))}};export{R as _};
|
||||
`}return(m,O)=>(a(),t("div",{style:C(b("/assets/card/carpet.webp")),class:"rounded-2xl mb-6 w-full"},[o(B,{type:"justify-center",class:"bg-white dark:bg-slate-900/90 rounded-2xl p-6 w-full"},{default:k(()=>[s("div",N,[s("h1",V,l(e.arcade.name),1),s("div",A,[s("h2",E,l(e.arcade.description),1)]),s("div",H,[c(g).is_beta?(a(),x(h,{key:0,label:"Beta Enabled",color:"warning",icon:c(w)},null,8,["icon"])):u("",!0),o(h,{label:"Private Arcade",color:"info",icon:c(v)},null,8,["icon"])]),L,e.arcade.owners&&e.arcade.owners.length?(a(),t("p",M,[n(" Managed by "),(a(!0),t(d,null,_(e.arcade.owners,(r,i)=>(a(),t("span",{key:r.username,class:"font-bold"},[e.arcade.owners.length===2&&i===0?(a(),t(d,{key:0},[n(l(r.username),1)],64)):e.arcade.owners.length===2&&i===1?(a(),t(d,{key:1},[T,n(" "+l(r.username)+".",1)],64)):i===0?(a(),t(d,{key:2},[n(l(r.username),1)],64)):i===e.arcade.owners.length-1?(a(),t(d,{key:3},[n(", "),q,n(" "+l(r.username)+".",1)],64)):(a(),t(d,{key:4},[n(", "+l(r.username),1)],64))]))),128))])):u("",!0),e.useSmall?u("",!0):(a(),t("div",z,[o(f,{href:`/#/arcade/${e.arcade.id}/events`,icon:c(S),color:"info",label:"Event Settings"},null,8,["href","icon"]),o(f,{href:`/#/arcade/${e.arcade.id}/machines`,icon:c($),color:"info",label:"Machine List"},null,8,["href","icon"]),o(f,{href:`/#/arcade/${e.arcade.id}/paseli`,icon:c(p),color:"info",label:"PASELI"},null,8,["href","icon"])])),e.useSmall?(a(),t("div",D,[o(f,{href:`/#/arcade/${e.arcade.id}`,icon:c(j),color:"info",label:"Arcade Home",class:"w-full md:w-[150px]"},null,8,["href","icon"])])):u("",!0)])]),_:1})],4))}};export{R as _};
|
||||
@@ -1 +1 @@
|
||||
import{u as w,r as p,o as y,a as f,c as k,w as i,b as t,i as $,Q as x,e as _,ab as A,_ as v,v as E,R as P,aa 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.e776b26c.js";import{_ as M}from"./ArcadeCard.98fc5bab.js";import{_ as o}from"./FormField.933b8f9b.js";import{_ as s}from"./FormCheckRadio.b6b7c8da.js";const R={class:"grid grid-cols-1 w-full gap-2 md:gap-6 md:flex md:place-content-stretch"},B={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 mb-6"},F=d("h1",{class:"text-lg md:text-xl"},"OpenVPN Configuration",-1),O=d("p",{class:"pb-1 dark:text-white/50"}," Use this to export your VPN config. ",-1),z={__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",R,[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",B,[t(v,null,{default:i(()=>[F,O,t(b,{small:!1,color:"success",class:"my-2",label:"Export",onClick:a[5]||(a[5]=e=>V())})]),_:1})])],64))]),_:1})]),_:1}))}};export{z as default};
|
||||
import{u as w,r as p,o as y,a as f,c as k,w as i,b as t,i as $,Q as x,e as _,ad as A,_ as v,v as E,R as P,ac 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.9f7c925e.js";import{_ as M}from"./ArcadeCard.866d9931.js";import{_ as o}from"./FormField.2ca8b598.js";import{_ as s}from"./FormCheckRadio.1e37b281.js";const R={class:"grid grid-cols-1 w-full gap-2 md:gap-6 md:flex md:place-content-stretch"},B={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 mb-6"},F=d("h1",{class:"text-lg md:text-xl"},"OpenVPN Configuration",-1),O=d("p",{class:"pb-1 dark:text-white/50"}," Use this to export your VPN config. ",-1),z={__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",R,[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",B,[t(v,null,{default:i(()=>[F,O,t(b,{small:!1,color:"success",class:"my-2",label:"Export",onClick:a[5]||(a[5]=e=>V())})]),_:1})])],64))]),_:1})]),_:1}))}};export{z as default};
|
||||
@@ -1 +1 @@
|
||||
import{a as i,c as n,w as s,b as e,Q as c,e as r,a5 as t,g as l,a6 as a,a7 as o,_,l as d,n as m}from"./index.e776b26c.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,Q as c,e as r,a5 as t,g as l,a6 as a,a7 as o,_,l as d,n as m}from"./index.9f7c925e.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};
|
||||
@@ -1 +1 @@
|
||||
import{u,r as g,o as p,a as o,c as f,w as i,b as a,P as C,g as e,Q as h,e as l,$ as x,i as d,j as b,t as v,f as c,F as k,l as w,n as y,Y as $}from"./index.e776b26c.js";import{d as D}from"./userData.bcc92478.js";const F="/assets/passes/generic.webp",N={class:"grid md:grid-cols-2 mb-2"},A=e("div",{class:"text-xl md:text-right"},[e("h4",null,"AC = Web Access Code"),e("h4",null,[$("NFC-ID = Internal ID for "),e("samp",null,"card0.txt")])],-1),B={class:"grid grid-cols-1 md:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 gap-6"},I={class:"flex justify-between md:grid md:gap-2 mb-4 items-center"},V=e("img",{src:F,class:"w-24 md:w-auto"},null,-1),S={class:"text-xl text-center font-mono"},T={class:"grid grid-cols-3 md:grid-cols-2 gap-2"},O={__name:"CardsView",setup(j){const _=u();var n=g([]);p(async()=>{try{const s=await _.getCards();n.value=s}catch(s){console.error("Failed to fetch card data:",s)}});const r=s=>{navigator.clipboard.writeText(s).then(()=>{alert("Copied to clipboard!")}).catch(()=>{alert("Failed to copy to clipboard!")})};return(s,L)=>(o(),f(y,null,{default:i(()=>[a(w,null,{default:i(()=>[a(C,{class:"mb-6","use-small":"","even-smaller":""}),e("div",N,[a(h,{icon:l(x),title:"Login Cards",main:""},null,8,["icon"]),A]),e("div",B,[(o(!0),d(k,null,b(l(n),t=>(o(),d("div",{key:t.id,class:"grid dark:bg-slate-900/70 rounded-2xl p-5"},[e("div",I,[V,e("h1",S,v(l(D)(t.encoded)),1)]),e("div",T,[a(c,{color:"info",label:"Copy AC",onClick:m=>r(t.encoded)},null,8,["onClick"]),a(c,{color:"info",label:"Copy NFC-ID",onClick:m=>r(t.id)},null,8,["onClick"]),a(c,{color:"danger",label:"Delete"})])]))),128))])]),_:1})]),_:1}))}};export{O as default};
|
||||
import{u,r as g,o as p,a as o,c as f,w as i,b as a,P as C,g as e,Q as h,e as l,$ as x,i as d,j as b,t as v,f as c,F as k,l as w,n as y,Y as $}from"./index.9f7c925e.js";import{d as D}from"./userData.bcc92478.js";const F="/assets/passes/generic.webp",N={class:"grid md:grid-cols-2 mb-2"},A=e("div",{class:"text-xl md:text-right"},[e("h4",null,"AC = Web Access Code"),e("h4",null,[$("NFC-ID = Internal ID for "),e("samp",null,"card0.txt")])],-1),B={class:"grid grid-cols-1 md:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 gap-6"},I={class:"flex justify-between md:grid md:gap-2 mb-4 items-center"},V=e("img",{src:F,class:"w-24 md:w-auto"},null,-1),S={class:"text-xl text-center font-mono"},T={class:"grid grid-cols-3 md:grid-cols-2 gap-2"},O={__name:"CardsView",setup(j){const _=u();var n=g([]);p(async()=>{try{const s=await _.getCards();n.value=s}catch(s){console.error("Failed to fetch card data:",s)}});const r=s=>{navigator.clipboard.writeText(s).then(()=>{alert("Copied to clipboard!")}).catch(()=>{alert("Failed to copy to clipboard!")})};return(s,L)=>(o(),f(y,null,{default:i(()=>[a(w,null,{default:i(()=>[a(C,{class:"mb-6","use-small":"","even-smaller":""}),e("div",N,[a(h,{icon:l(x),title:"Login Cards",main:""},null,8,["icon"]),A]),e("div",B,[(o(!0),d(k,null,b(l(n),t=>(o(),d("div",{key:t.id,class:"grid dark:bg-slate-900/70 rounded-2xl p-5"},[e("div",I,[V,e("h1",S,v(l(D)(t.encoded)),1)]),e("div",T,[a(c,{color:"info",label:"Copy AC",onClick:m=>r(t.encoded)},null,8,["onClick"]),a(c,{color:"info",label:"Copy NFC-ID",onClick:m=>r(t.id)},null,8,["onClick"]),a(c,{color:"danger",label:"Delete"})])]))),128))])]),_:1})]),_:1}))}};export{O as default};
|
||||
@@ -1 +1 @@
|
||||
import{a as i,c as n,w as s,b as e,Q as c,e as r,a5 as t,g as l,a6 as a,a7 as o,_,l as d,n as m}from"./index.e776b26c.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,Q as c,e as r,a5 as t,g as l,a6 as a,a7 as o,_,l as d,n as m}from"./index.9f7c925e.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};
|
||||
@@ -1 +1 @@
|
||||
import{a as i,c as n,w as s,b as e,Q as c,e as r,a5 as t,g as l,a6 as a,a7 as o,_,l as d,n as m}from"./index.e776b26c.js";const u={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 mb-6"},h={__name:"DashboardView",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,Q as c,e as r,a5 as t,g as l,a6 as a,a7 as o,_,l as d,n as m}from"./index.9f7c925e.js";const u={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 mb-6"},h={__name:"DashboardView",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};
|
||||
@@ -1,5 +1,5 @@
|
||||
import{r as h,s as j,O as x,ay as q,a,c as t,w as p,g as u,b as i,f as g,R as P,i as $,F as Q,j as C,_ as N,u as z,aj as G,o as F,e as b,m as A,k as v,Q as O,az as T,ai as I,l as K,n as M,p as D,q as H}from"./index.e776b26c.js";import{b as L,U as J,_ as W}from"./ProfileCard.7b49cde6.js";import{_ as R}from"./FormField.933b8f9b.js";import{_ as X}from"./FormCheckRadio.b6b7c8da.js";import{_ as w}from"./FormControl.038f8260.js";import"./userData.bcc92478.js";const Y={class:"grid md:grid-cols-2 space-y-6 align-center"},Z={class:"place-self-center"},ee={class:"space-x-2"},le={__name:"EmblemCardBox",props:{profile:{type:Object,default:null},version:{type:Number,default:14}},setup(U){var m,S;const c=U,f=h(c.profile),_=h(c.version),d=h(0),s=j(y((S=(m=f.value)==null?void 0:m.last)==null?void 0:S.emblem)),l=h([]);x(()=>c.version,()=>{var e;f.value=c.profile,_.value=c.version,r(),s.value=y((e=f.value.last)==null?void 0:e.emblem)}),x(s,()=>{d.value++},{deep:!0}),r();function r(){q.get(`https://web3.phaseii.network/gameassets/emblems/${_.value}.json`).then(e=>{e.data&&(l.value=e.data)}).catch(e=>{console.log(e.message)})}function y(e){return e?{background:e[0],main:e[1],ornament:e[2],effect:e[3],speech_bubble:e[4]}:{background:0,main:0,ornament:0,effect:0,speech_bubble:0}}function k(e){return e?[e.background,e.main,e.ornament,e.effect,e.speech_bubble]:[0,0,0,0,0]}return(e,B)=>(a(),t(N,{class:"mt-6"},{footer:p(()=>[u("div",ee,[i(g,{type:"submit",color:"success",label:"Save"}),i(g,{type:"submit",color:"danger",label:"Revert"})])]),default:p(()=>[i(P,{color:"info",label:"Emblem",class:"mb-2"}),u("div",Y,[u("div",null,[(a(!0),$(Q,null,C(l.value,o=>(a(),t(R,{key:o.id,label:o.name,help:o.help},{default:p(()=>[i(w,{modelValue:s[o.id],"onUpdate:modelValue":V=>s[o.id]=V,options:o.options},null,8,["modelValue","onUpdate:modelValue","options"])]),_:2},1032,["label","help"]))),128))]),u("div",Z,[(a(),t(L,{key:d.value,version:_.value,profile:{last:{emblem:k(s)}},size:300},null,8,["version","profile"]))])])]),_:1}))}},re={class:"grid md:grid-cols-2 space-y-6 align-center"},se={class:"place-self-center"},oe={class:"space-x-2"},ae={__name:"QproCardBox",props:{profile:{type:Object,default:null},version:{type:Number,default:14}},setup(U){var y,k;const c=U,f=h(c.profile),_=h(c.version),d=h(0),s=j((k=(y=f.value)==null?void 0:y.qpro)!=null?k:{head:0,hair:0,face:0,body:0,hand:0}),l=h([]);x(()=>c.version,()=>{var m;f.value=c.profile,r(),s.value=(m=f.value)==null?void 0:m.qpro}),x(()=>c.version,()=>{_.value=c.version}),x(s,()=>{d.value++},{deep:!0}),r();function r(){q.get(`https://web3.phaseii.network/gameassets/qpro/${_.value}.json`).then(m=>{m.data&&(l.value=m.data)}).catch(m=>{console.log(m.message)})}return(m,S)=>(a(),t(N,{class:"mt-6"},{footer:p(()=>[u("div",oe,[i(g,{type:"submit",color:"success",label:"Save"}),i(g,{type:"submit",color:"danger",label:"Revert"})])]),default:p(()=>[i(P,{color:"info",label:"QPro",class:"mb-2"}),u("div",re,[u("div",null,[(a(!0),$(Q,null,C(l.value,e=>(a(),t(R,{key:e.id,label:e.name,help:e.help},{default:p(()=>[i(w,{modelValue:s[e.id],"onUpdate:modelValue":B=>s[e.id]=B,options:e.options},null,8,["modelValue","onUpdate:modelValue","options"])]),_:2},1032,["label","help"]))),128))]),u("div",se,[(a(),t(J,{key:d.value,version:_.value,profile:{qpro:s},style:{scale:"1.9"},class:"my-16 mb-10"},null,8,["version","profile"]))])])]),_:1}))}},ne={class:"md:flex pb-6 md:justify-between md:items-center"},te={key:0,class:"mt-2 md:mt-0 md:w-1/3 md:text-right"},ie=u("h2",{class:"text-md sm:text-lg md:text-xl font-bold p-2"}," Select Version ",-1),ue=["src"],ce={class:"bg-white dark:bg-slate-900/90 rounded-2xl pt-6 p-3 card-content"},de={class:"w-full"},me={key:2},ve={class:"space-x-2"},Ve={__name:"EditView",setup(U){const c=D(),f=H(),_=z();var d=null,s=null;const l=j({currentVersion:null});x(()=>l.currentVersion,()=>{B()}),d=c.params.game,s=G(d),s||f.push({name:"ErrorPage",params:{catchAll:"404"}}),s.versions||(l.currentVersion=1);const r=h(null);F(()=>{B()});var y=[{id:"name",name:"Username",help:"Set your username for this profile",type:String}];function k(){return l.currentVersion?`/assets/games/${s.id}/card/${l.currentVersion}.webp`:s.cardBG}function m(){var o;return l.currentVersion&&((o=s.videoTable)==null?void 0:o.includes(l.currentVersion))?`https://web3.phaseii.network/gameassets/video/${s.id}/${l.currentVersion}.mp4`:null}function S(){var o;return(o=s.videoTable)!=null&&o.includes(l.currentVersion)?null:`
|
||||
import{r as h,s as P,O as x,aA as q,a,c as t,w as p,g as u,b as i,f as g,R as Q,i as $,F as j,j as C,_ as N,u as G,al as z,o as A,e as b,m as F,k as v,Q as O,aB as T,ak as I,l as K,n as M,p as D,q as H}from"./index.9f7c925e.js";import{b as L,U as J,_ as W}from"./ProfileCard.24bd0d43.js";import{_ as R}from"./FormField.2ca8b598.js";import{_ as X}from"./FormCheckRadio.1e37b281.js";import{_ as w}from"./FormControl.cd7b00b0.js";import"./userData.bcc92478.js";const Y={class:"grid md:grid-cols-2 space-y-6 align-center"},Z={class:"place-self-center"},ee={class:"space-x-2"},le={__name:"EmblemCardBox",props:{profile:{type:Object,default:null},version:{type:Number,default:14}},setup(U){var m,S;const c=U,f=h(c.profile),_=h(c.version),d=h(0),s=P(y((S=(m=f.value)==null?void 0:m.last)==null?void 0:S.emblem)),l=h([]);x(()=>c.version,()=>{var e;f.value=c.profile,_.value=c.version,r(),s.value=y((e=f.value.last)==null?void 0:e.emblem)}),x(s,()=>{d.value++},{deep:!0}),r();function r(){q.get(`https://web3.phaseii.network/gameassets/emblems/${_.value}.json`).then(e=>{e.data&&(l.value=e.data)}).catch(e=>{console.log(e.message)})}function y(e){return e?{background:e[0],main:e[1],ornament:e[2],effect:e[3],speech_bubble:e[4]}:{background:0,main:0,ornament:0,effect:0,speech_bubble:0}}function k(e){return e?[e.background,e.main,e.ornament,e.effect,e.speech_bubble]:[0,0,0,0,0]}return(e,B)=>(a(),t(N,{class:"mt-6"},{footer:p(()=>[u("div",ee,[i(g,{type:"submit",color:"success",label:"Save"}),i(g,{type:"submit",color:"danger",label:"Revert"})])]),default:p(()=>[i(Q,{color:"info",label:"Emblem",class:"mb-2"}),u("div",Y,[u("div",null,[(a(!0),$(j,null,C(l.value,o=>(a(),t(R,{key:o.id,label:o.name,help:o.help},{default:p(()=>[i(w,{modelValue:s[o.id],"onUpdate:modelValue":V=>s[o.id]=V,options:o.options},null,8,["modelValue","onUpdate:modelValue","options"])]),_:2},1032,["label","help"]))),128))]),u("div",Z,[(a(),t(L,{key:d.value,version:_.value,profile:{last:{emblem:k(s)}},size:300},null,8,["version","profile"]))])])]),_:1}))}},re={class:"grid md:grid-cols-2 space-y-6 align-center"},se={class:"place-self-center"},oe={class:"space-x-2"},ae={__name:"QproCardBox",props:{profile:{type:Object,default:null},version:{type:Number,default:14}},setup(U){var y,k;const c=U,f=h(c.profile),_=h(c.version),d=h(0),s=P((k=(y=f.value)==null?void 0:y.qpro)!=null?k:{head:0,hair:0,face:0,body:0,hand:0}),l=h([]);x(()=>c.version,()=>{var m;f.value=c.profile,r(),s.value=(m=f.value)==null?void 0:m.qpro}),x(()=>c.version,()=>{_.value=c.version}),x(s,()=>{d.value++},{deep:!0}),r();function r(){q.get(`https://web3.phaseii.network/gameassets/qpro/${_.value}.json`).then(m=>{m.data&&(l.value=m.data)}).catch(m=>{console.log(m.message)})}return(m,S)=>(a(),t(N,{class:"mt-6"},{footer:p(()=>[u("div",oe,[i(g,{type:"submit",color:"success",label:"Save"}),i(g,{type:"submit",color:"danger",label:"Revert"})])]),default:p(()=>[i(Q,{color:"info",label:"QPro",class:"mb-2"}),u("div",re,[u("div",null,[(a(!0),$(j,null,C(l.value,e=>(a(),t(R,{key:e.id,label:e.name,help:e.help},{default:p(()=>[i(w,{modelValue:s[e.id],"onUpdate:modelValue":B=>s[e.id]=B,options:e.options},null,8,["modelValue","onUpdate:modelValue","options"])]),_:2},1032,["label","help"]))),128))]),u("div",se,[(a(),t(J,{key:d.value,version:_.value,profile:{qpro:s},style:{scale:"1.9"},class:"my-16 mb-10"},null,8,["version","profile"]))])])]),_:1}))}},ne={class:"md:flex pb-6 md:justify-between md:items-center"},te={key:0,class:"mt-2 md:mt-0 md:w-1/3 md:text-right"},ie=u("h2",{class:"text-md sm:text-lg md:text-xl font-bold p-2"}," Select Version ",-1),ue=["src"],ce={class:"bg-white dark:bg-slate-900/90 rounded-2xl pt-6 p-3 card-content"},de={class:"w-full"},me={key:2},ve={class:"space-x-2"},Ve={__name:"EditView",setup(U){const c=D(),f=H(),_=G();var d=null,s=null;const l=P({currentVersion:null});x(()=>l.currentVersion,()=>{B()}),d=c.params.game,s=z(d),s||f.push({name:"ErrorPage",params:{catchAll:"404"}}),s.versions||(l.currentVersion=1);const r=h(null);A(()=>{B()});var y=[{id:"name",name:"Username",help:"Set your username for this profile",type:String}];function k(){return l.currentVersion?`/assets/games/${s.id}/card/${l.currentVersion}.webp`:s.cardBG}function m(){var o;return l.currentVersion&&((o=s.videoTable)==null?void 0:o.includes(l.currentVersion))?`https://web3.phaseii.network/gameassets/video/${s.id}/${l.currentVersion}.mp4`:null}function S(){var o;return(o=s.videoTable)!=null&&o.includes(l.currentVersion)?null:`
|
||||
background-image: url('${k()}');
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
`}function e(o){var V=[];for(const E of s.versions)o.includes(E.id)&&V.push(E);return V}async function B(){try{r.value=null;const o=await _.getUserProfile(d,l.currentVersion);r.value=o,o&&!l.currentVersion&&(l.currentVersion=o.versions[o.versions.length-1])}catch(o){console.error("Failed to fetch user profile data:",o)}}return(o,V)=>(a(),t(M,null,{default:p(()=>[i(K,null,{default:p(()=>{var E;return[u("div",ne,[i(g,{icon:b(A),href:`/#/games/${b(d)}`,class:"w-full md:w-auto",color:"info",label:"Go Back"},null,8,["icon","href"]),b(s).versions&&r.value?(a(),$("div",te,[ie,i(w,{modelValue:l.currentVersion,"onUpdate:modelValue":V[0]||(V[0]=n=>l.currentVersion=n),options:e(r.value.versions)},null,8,["modelValue","options"])])):v("",!0)]),l.currentVersion?(a(),t(O,{key:0,icon:b(T),title:"Profile Customizations",main:""},null,8,["icon"])):v("",!0),l.currentVersion&&r.value?(a(),$("div",{key:1,style:I(S()),class:"rounded-2xl mb-6 card-container"},[u("video",{autoplay:"",muted:"",loop:"",playsinline:"",src:m(),class:"background-video"},null,8,ue),u("div",ce,[u("div",de,[r.value?(a(),t(W,{key:0,"use-small":"",game:b(d),profile:r.value,version:l.currentVersion},null,8,["game","profile","version"])):v("",!0)])])],4)):v("",!0),l.currentVersion&&r.value?(a(),$("div",me,[i(N,null,{footer:p(()=>[u("div",ve,[i(g,{type:"submit",color:"success",label:"Save"}),i(g,{type:"submit",color:"danger",label:"Revert"})])]),default:p(()=>[u("div",null,[i(P,{color:"info",label:"General",class:"mb-2"}),(a(!0),$(Q,null,C(b(y),n=>(a(),t(R,{key:n.id,label:n.name,help:n.help},{default:p(()=>[n.type==String?(a(),t(w,{key:0,"v-model":r.value[n.id],"model-value":r.value[n.id]},null,8,["v-model","model-value"])):v("",!0),n.type==Number?(a(),t(w,{key:1,"v-model":r.value[n.id],"model-value":r.value[n.id],type:"number"},null,8,["v-model","model-value"])):v("",!0),n.type==Array?(a(),t(w,{key:2,options:n.options,"v-model":r.value[n.id],"model-value":r.value[n.id],selected:r.value[n.id]},null,8,["options","v-model","model-value","selected"])):v("",!0),n.type==Boolean?(a(),t(X,{key:3,"v-model":r.value[n.id],"model-value":r.value[n.id],type:"switch"},null,8,["v-model","model-value"])):v("",!0)]),_:2},1032,["label","help"]))),128))])]),_:1}),b(d)=="jubeat"&&l.currentVersion>=10&&((E=r.value.last)==null?void 0:E.emblem)?(a(),t(le,{key:0,profile:r.value,version:l.currentVersion},null,8,["profile","version"])):v("",!0),(b(d)=="iidx"||b(d)=="iidxclass")&&l.currentVersion>=19?(a(),t(ae,{key:1,profile:r.value,version:l.currentVersion},null,8,["profile","version"])):v("",!0)])):v("",!0)]}),_:1})]),_:1}))}};export{Ve as default};
|
||||
`}function e(o){var V=[];for(const E of s.versions)o.includes(E.id)&&V.push(E);return V}async function B(){try{r.value=null;const o=await _.getUserProfile(d,l.currentVersion);r.value=o,o&&!l.currentVersion&&(l.currentVersion=o.versions[o.versions.length-1])}catch(o){console.error("Failed to fetch user profile data:",o)}}return(o,V)=>(a(),t(M,null,{default:p(()=>[i(K,null,{default:p(()=>{var E;return[u("div",ne,[i(g,{icon:b(F),href:`/#/games/${b(d)}`,class:"w-full md:w-auto",color:"info",label:"Go Back"},null,8,["icon","href"]),b(s).versions&&r.value?(a(),$("div",te,[ie,i(w,{modelValue:l.currentVersion,"onUpdate:modelValue":V[0]||(V[0]=n=>l.currentVersion=n),options:e(r.value.versions)},null,8,["modelValue","options"])])):v("",!0)]),l.currentVersion?(a(),t(O,{key:0,icon:b(T),title:"Profile Customizations",main:""},null,8,["icon"])):v("",!0),l.currentVersion&&r.value?(a(),$("div",{key:1,style:I(S()),class:"rounded-2xl mb-6 card-container"},[u("video",{autoplay:"",muted:"",loop:"",playsinline:"",src:m(),class:"background-video"},null,8,ue),u("div",ce,[u("div",de,[r.value?(a(),t(W,{key:0,"use-small":"",game:b(d),profile:r.value,version:l.currentVersion},null,8,["game","profile","version"])):v("",!0)])])],4)):v("",!0),l.currentVersion&&r.value?(a(),$("div",me,[i(N,null,{footer:p(()=>[u("div",ve,[i(g,{type:"submit",color:"success",label:"Save"}),i(g,{type:"submit",color:"danger",label:"Revert"})])]),default:p(()=>[u("div",null,[i(Q,{color:"info",label:"General",class:"mb-2"}),(a(!0),$(j,null,C(b(y),n=>(a(),t(R,{key:n.id,label:n.name,help:n.help},{default:p(()=>[n.type==String?(a(),t(w,{key:0,"v-model":r.value[n.id],"model-value":r.value[n.id]},null,8,["v-model","model-value"])):v("",!0),n.type==Number?(a(),t(w,{key:1,"v-model":r.value[n.id],"model-value":r.value[n.id],type:"number"},null,8,["v-model","model-value"])):v("",!0),n.type==Array?(a(),t(w,{key:2,options:n.options,"v-model":r.value[n.id],"model-value":r.value[n.id],selected:r.value[n.id]},null,8,["options","v-model","model-value","selected"])):v("",!0),n.type==Boolean?(a(),t(X,{key:3,"v-model":r.value[n.id],"model-value":r.value[n.id],type:"switch"},null,8,["v-model","model-value"])):v("",!0)]),_:2},1032,["label","help"]))),128))])]),_:1}),b(d)=="jubeat"&&l.currentVersion>=10&&((E=r.value.last)==null?void 0:E.emblem)?(a(),t(le,{key:0,profile:r.value,version:l.currentVersion},null,8,["profile","version"])):v("",!0),(b(d)=="iidx"||b(d)=="iidxclass")&&l.currentVersion>=19?(a(),t(ae,{key:1,profile:r.value,version:l.currentVersion},null,8,["profile","version"])):v("",!0)])):v("",!0)]}),_:1})]),_:1}))}};export{Ve as default};
|
||||
@@ -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.e776b26c.js";import{_ as n}from"./LayoutGuest.5486803b.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.9f7c925e.js";import{_ as n}from"./LayoutGuest.ad29b81a.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};
|
||||
@@ -1 +1 @@
|
||||
import{u as G,r as g,o as N,s as U,O as w,a as l,c as r,w as d,b as s,i as u,Q as E,e as O,ae as j,_ as A,g as i,k as m,Y as F,t as M,F as h,j as D,f as P,l as T,n as W,p as Q,aj as v,ak as L}from"./index.e776b26c.js";import{_ as R}from"./ArcadeCard.98fc5bab.js";import{_ as y}from"./FormField.933b8f9b.js";import{_ as c}from"./FormControl.038f8260.js";import{_ as X}from"./FormCheckRadio.b6b7c8da.js";const Y={class:"mb-4"},q={class:"grid md:grid-cols-2 gap-4"},z=i("p",{class:"pb-2 text-lg"},"Game",-1),H={key:0},J=i("p",{class:"pb-2 text-lg"},"Version",-1),K={key:0},Z={class:"text-xl"},ee=i("hr",{class:"pb-1 my-2"},null,-1),ie={__name:"EventView",setup(ae){const b=G(),f=g({}),_=g(!0),V=Q(),S=parseInt(V.params.id);N(async()=>{try{const t=await b.getArcade(S);f.value=t,_.value=!1}catch(t){console.log("Failed to fetch arcade data:",t)}});const p=[{id:"iidx",versions:[{id:22,settings:[{id:0,keyId:"coke",type:Boolean,name:"Enable Coke-X-BEMANI",tooltip:"Enables the long forgotten Coca-Cola event.",value:!0},{id:1,keyId:"phase",type:Array,name:"Current BOSS Phase",tooltip:"Set the main game event.",options:[{id:0,label:"No Event"},{id:1,label:"Chrono Seeker"},{id:2,label:"QPronicle Chord"}],value:1}]}]},{id:"dm",versions:[{id:18,settings:[{id:0,keyId:"banner",type:String,name:"Title Screen Banner",tooltip:"Set the text for the banner.",value:""}]},{id:17,settings:[{id:0,keyId:"banner",type:String,name:"Title Screen Banner",tooltip:"Set the text for the banner.",value:""}]}]}],o=U({game:null,version:null});function k(){var t=[];for(const a of 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(R,{class:"mb-6",arcade:f.value,"use-small":!0},null,8,["arcade"]),s(E,{icon:O(j),title:"Game Event Settings",main:""},null,8,["icon"]),s(A,{class:"mb-6"},{default:d(()=>[i("div",Y,[s(y,{label:"Select Game",help:"Pick a game and version to get started."},{default:d(()=>[i("div",q,[i("div",null,[z,s(c,{modelValue:o.game,"onUpdate:modelValue":a[0]||(a[0]=e=>o.game=e),name:"game",options:I()},null,8,["modelValue","options"])]),o.game?(l(),u("div",H,[J,s(c,{modelValue:o.version,"onUpdate:modelValue":a[1]||(a[1]=e=>o.version=e),name:"version",options:$()},null,8,["modelValue","options"])])):m("",!0)])]),_:1})]),o.game&&o.version?(l(),u("div",K,[i("h2",Z,[F(" Settings for "),i("b",null,M(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(X,{key:1,modelValue:e.value,"onUpdate:modelValue":n=>e.value=n,"input-value":e.value,type:"switch",name:e.keyId},null,8,["modelValue","onUpdate:modelValue","input-value","name"])):m("",!0),e.type==Array?(l(),r(c,{key:2,modelValue:e.options[e.value],"onUpdate:modelValue":n=>e.options[e.value]=n,name:e.keyId,options:e.options,placeholder:"Select..."},null,8,["modelValue","onUpdate:modelValue","name","options"])):m("",!0)]),_:2},1032,["label","help"]))),128)),s(P,{color:"success",type:"submit",label:"Save",small:!1})])):m("",!0)]),_:1})],64))]),_:1})]),_:1}))}};export{ie as default};
|
||||
import{u as G,r as g,o as N,s as U,O as w,a as l,c as r,w as d,b as s,i as u,Q as E,e as O,ag as A,_ as F,g as i,k as m,Y as M,t as j,F as h,j as D,f as P,l as T,n as W,p as Q,al as v,am as L}from"./index.9f7c925e.js";import{_ as R}from"./ArcadeCard.866d9931.js";import{_ as y}from"./FormField.2ca8b598.js";import{_ as c}from"./FormControl.cd7b00b0.js";import{_ as X}from"./FormCheckRadio.1e37b281.js";const Y={class:"mb-4"},q={class:"grid md:grid-cols-2 gap-4"},z=i("p",{class:"pb-2 text-lg"},"Game",-1),H={key:0},J=i("p",{class:"pb-2 text-lg"},"Version",-1),K={key:0},Z={class:"text-xl"},ee=i("hr",{class:"pb-1 my-2"},null,-1),ie={__name:"EventView",setup(ae){const b=G(),f=g({}),_=g(!0),V=Q(),S=parseInt(V.params.id);N(async()=>{try{const t=await b.getArcade(S);f.value=t,_.value=!1}catch(t){console.log("Failed to fetch arcade data:",t)}});const p=[{id:"iidx",versions:[{id:22,settings:[{id:0,keyId:"coke",type:Boolean,name:"Enable Coke-X-BEMANI",tooltip:"Enables the long forgotten Coca-Cola event.",value:!0},{id:1,keyId:"phase",type:Array,name:"Current BOSS Phase",tooltip:"Set the main game event.",options:[{id:0,label:"No Event"},{id:1,label:"Chrono Seeker"},{id:2,label:"QPronicle Chord"}],value:1}]}]},{id:"dm",versions:[{id:18,settings:[{id:0,keyId:"banner",type:String,name:"Title Screen Banner",tooltip:"Set the text for the banner.",value:""}]},{id:17,settings:[{id:0,keyId:"banner",type:String,name:"Title Screen Banner",tooltip:"Set the text for the banner.",value:""}]}]}],o=U({game:null,version:null});function k(){var t=[];for(const a of 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(R,{class:"mb-6",arcade:f.value,"use-small":!0},null,8,["arcade"]),s(E,{icon:O(A),title:"Game Event Settings",main:""},null,8,["icon"]),s(F,{class:"mb-6"},{default:d(()=>[i("div",Y,[s(y,{label:"Select Game",help:"Pick a game and version to get started."},{default:d(()=>[i("div",q,[i("div",null,[z,s(c,{modelValue:o.game,"onUpdate:modelValue":a[0]||(a[0]=e=>o.game=e),name:"game",options:I()},null,8,["modelValue","options"])]),o.game?(l(),u("div",H,[J,s(c,{modelValue:o.version,"onUpdate:modelValue":a[1]||(a[1]=e=>o.version=e),name:"version",options:$()},null,8,["modelValue","options"])])):m("",!0)])]),_:1})]),o.game&&o.version?(l(),u("div",K,[i("h2",Z,[M(" Settings for "),i("b",null,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(X,{key:1,modelValue:e.value,"onUpdate:modelValue":n=>e.value=n,"input-value":e.value,type:"switch",name:e.keyId},null,8,["modelValue","onUpdate:modelValue","input-value","name"])):m("",!0),e.type==Array?(l(),r(c,{key:2,modelValue:e.options[e.value],"onUpdate:modelValue":n=>e.options[e.value]=n,name:e.keyId,options:e.options,placeholder:"Select..."},null,8,["modelValue","onUpdate:modelValue","name","options"])):m("",!0)]),_:2},1032,["label","help"]))),128)),s(P,{color:"success",type:"submit",label:"Save",small:!1})])):m("",!0)]),_:1})],64))]),_:1})]),_:1}))}};export{ie as default};
|
||||
@@ -1 +1 @@
|
||||
import{a as n,c as t,w as s,b as e,Q as c,e as r,a5 as i,g as l,a6 as a,a7 as o,_,l as d,n as m}from"./index.e776b26c.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,Q as c,e as r,a5 as i,g as l,a6 as a,a7 as o,_,l as d,n as m}from"./index.9f7c925e.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};
|
||||
@@ -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.e776b26c.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.9f7c925e.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 _};
|
||||
@@ -1 +1 @@
|
||||
import{a as r,c as B,I as V,B as m,u as R,r as h,o as w,J as q,i,e as n,C as y,K as C,E as p,z as v,F as D,j as M,t as K,L,D as U,k as z}from"./index.e776b26c.js";const I={__name:"FormControlIcon",props:{icon:{type:String,default:null},h:{type:String,default:null}},setup(e){return(s,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"]))}},j={class:"relative"},A=["id","name"],H=["value"],N=["id","name","maxlength","minlength","placeholder","required"],T=["id","name","maxlength","minlength","inputmode","autocomplete","required","placeholder","type"],J={__name:"FormControl",props:{name:{type:String,default:null},id:{type:String,default:null},autocomplete:{type:String,default:null},maxlength:{type:String,default:null},minlength:{type:String,default:null},placeholder:{type:String,default:null},inputmode:{type:String,default:null},icon:{type:String,default:null},options:{type:Array,default:null},type:{type:String,default:"text"},modelValue:{type:[String,Number,Boolean,Array,Object],default:""},required:Boolean,borderless:Boolean,transparent:Boolean,ctrlKFocus:Boolean},emits:["update:modelValue","setRef"],setup(e,{emit:s}){const a=e,u=m({get:()=>a.modelValue,set:o=>{s("update:modelValue",o)}}),f=m(()=>{const o=["px-3 py-2 max-w-full focus:ring focus:outline-none border-blue-700 dark:border-blue-500 rounded w-full","dark:placeholder-gray-400",d.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}),d=m(()=>a.options?"select":a.type),E=m(()=>a.type==="textarea"?"h-full":"h-12"),g=R(),x=h(null),k=h(null),c=h(null);if(w(()=>{x.value?s("setRef",x.value):k.value?s("setRef",k.value):s("setRef",c.value)}),a.ctrlKFocus){const o=l=>{l.ctrlKey&&l.key==="k"?(l.preventDefault(),c.value.focus()):l.key==="Escape"&&c.value.blur()};w(()=>{g.isFieldFocusRegistered||(window.addEventListener("keydown",o),g.isFieldFocusRegistered=!0)}),q(()=>{window.removeEventListener("keydown",o),g.isFieldFocusRegistered=!1})}return(o,l)=>(r(),i("div",j,[n(d)==="select"?y((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:v(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,H)}),128))],10,A)),[[C,n(u)]]):n(d)==="textarea"?y((r(),i("textarea",{key:1,id:e.id,"onUpdate:modelValue":l[1]||(l[1]=t=>p(u)?u.value=t:null),class:v(n(f)),name:e.name,maxlength:e.maxlength,minlength:e.minlength,placeholder:e.placeholder,required:e.required},null,10,N)),[[L,n(u)]]):y((r(),i("input",{key:2,id:e.id,ref_key:"inputEl",ref:c,"onUpdate:modelValue":l[2]||(l[2]=t=>p(u)?u.value=t:null),name:e.name,maxlength:e.maxlength,minlength:e.minlength,inputmode:e.inputmode,autocomplete:e.autocomplete,required:e.required,placeholder:e.placeholder,type:n(d),class:v(n(f))},null,10,T)),[[U,n(u)]]),e.icon?(r(),B(I,{key:3,icon:e.icon,h:n(E)},null,8,["icon","h"])):z("",!0)]))}};export{J as _};
|
||||
import{a as r,c as B,I as V,B as m,u as R,r as h,o as w,J as q,i,e as n,C as y,K as C,E as p,z as v,F as D,j as M,t as K,L,D as U,k as z}from"./index.9f7c925e.js";const I={__name:"FormControlIcon",props:{icon:{type:String,default:null},h:{type:String,default:null}},setup(e){return(s,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"]))}},j={class:"relative"},A=["id","name"],H=["value"],N=["id","name","maxlength","minlength","placeholder","required"],T=["id","name","maxlength","minlength","inputmode","autocomplete","required","placeholder","type"],J={__name:"FormControl",props:{name:{type:String,default:null},id:{type:String,default:null},autocomplete:{type:String,default:null},maxlength:{type:String,default:null},minlength:{type:String,default:null},placeholder:{type:String,default:null},inputmode:{type:String,default:null},icon:{type:String,default:null},options:{type:Array,default:null},type:{type:String,default:"text"},modelValue:{type:[String,Number,Boolean,Array,Object],default:""},required:Boolean,borderless:Boolean,transparent:Boolean,ctrlKFocus:Boolean},emits:["update:modelValue","setRef"],setup(e,{emit:s}){const a=e,u=m({get:()=>a.modelValue,set:o=>{s("update:modelValue",o)}}),f=m(()=>{const o=["px-3 py-2 max-w-full focus:ring focus:outline-none border-blue-700 dark:border-blue-500 rounded w-full","dark:placeholder-gray-400",d.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}),d=m(()=>a.options?"select":a.type),E=m(()=>a.type==="textarea"?"h-full":"h-12"),g=R(),x=h(null),k=h(null),c=h(null);if(w(()=>{x.value?s("setRef",x.value):k.value?s("setRef",k.value):s("setRef",c.value)}),a.ctrlKFocus){const o=l=>{l.ctrlKey&&l.key==="k"?(l.preventDefault(),c.value.focus()):l.key==="Escape"&&c.value.blur()};w(()=>{g.isFieldFocusRegistered||(window.addEventListener("keydown",o),g.isFieldFocusRegistered=!0)}),q(()=>{window.removeEventListener("keydown",o),g.isFieldFocusRegistered=!1})}return(o,l)=>(r(),i("div",j,[n(d)==="select"?y((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:v(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,H)}),128))],10,A)),[[C,n(u)]]):n(d)==="textarea"?y((r(),i("textarea",{key:1,id:e.id,"onUpdate:modelValue":l[1]||(l[1]=t=>p(u)?u.value=t:null),class:v(n(f)),name:e.name,maxlength:e.maxlength,minlength:e.minlength,placeholder:e.placeholder,required:e.required},null,10,N)),[[L,n(u)]]):y((r(),i("input",{key:2,id:e.id,ref_key:"inputEl",ref:c,"onUpdate:modelValue":l[2]||(l[2]=t=>p(u)?u.value=t:null),name:e.name,maxlength:e.maxlength,minlength:e.minlength,inputmode:e.inputmode,autocomplete:e.autocomplete,required:e.required,placeholder:e.placeholder,type:n(d),class:v(n(f))},null,10,T)),[[U,n(u)]]),e.icon?(r(),B(I,{key:3,icon:e.icon,h:n(E)},null,8,["icon","h"])):z("",!0)]))}};export{J as _};
|
||||
@@ -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.e776b26c.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.9f7c925e.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 _};
|
||||
@@ -1,5 +1,5 @@
|
||||
import{B as C,G as L,a as c,i as m,g as l,b as i,ao as N,t as T,e as r,H as F,k as _,u as M,s as q,O as H,aj as z,r as b,o as E,c as y,w as x,f as k,ap as O,aq as U,ai as Q,Q as X,ar as J,_ as K,l as W,n as Y,p as Z,q as ee}from"./index.e776b26c.js";import{_ as te}from"./FormControl.038f8260.js";import{_ as se}from"./ProfileCard.7b49cde6.js";import{_ as ae}from"./GeneralTable.1629d599.js";import{d as re}from"./userData.bcc92478.js";import{g as S}from"./danClass.233b0381.js";const oe={class:"pt-6 mb-6 flex items-center justify-between"},le={class:"flex items-center justify-start space-x-2"},ne={class:"text-2xl md:text-3xl leading-tight"},ie={__name:"GameTitleLine",props:{path:{type:String,default:null},title:{type:String,required:!0}},setup(h){const g=C(()=>L().default);return(f,v)=>(c(),m("section",oe,[l("div",le,[i(N,{path:h.path,class:"w-12 h-12 p-1 drop-shadow-md"},null,8,["path"]),l("h1",ne,T(h.title),1)]),r(g)?F(f.$slots,"default",{key:0}):_("",!0)]))}},ce=["src"],ue={class:"bg-white dark:bg-slate-900/90 rounded-2xl pt-6 p-3 card-content"},de={class:"w-full"},fe={class:"md:flex md:px-5 md:space-x-10 md:justify-between md:items-center"},pe={key:0,class:"md:w-1/3 md:text-right"},me=l("h2",{class:"text-md sm:text-lg md:text-xl font-bold p-2"}," Select Version ",-1),_e={key:0,class:"w-full pt-6 pb-10"},he={key:1,class:"md:w-1/2 grid grid-cols-1 md:grid-cols-2 gap-3"},ge={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 g=Z(),f=ee(),v=M();var n=null,s=null;const a=q({currentVersion:null});H(()=>a.currentVersion,()=>{$()}),n=g.params.id,s=z(n),s==null&&f.push({name:"ErrorPage",params:{catchAll:"404"}});const u=b(null),w=b([]);E(async()=>{try{const e=await v.getGameProfiles(n);w.value=G(e)}catch(e){console.error("Failed to fetch profile data:",e)}$()}),s.versions||(a.currentVersion=1);async function $(){try{u.value=null;const e=await v.getUserProfile(n,a.currentVersion);u.value=e,e&&!a.currentVersion&&(a.currentVersion=e.versions[e.versions.length-1])}catch(e){console.error("Failed to fetch user profile data:",e)}}function P(){return a.currentVersion?`/assets/games/${s.id}/card/${a.currentVersion}.webp`:s.cardBG}function B(){var e;return a.currentVersion&&((e=s.videoTable)==null?void 0:e.includes(a.currentVersion))?`https://web3.phaseii.network/gameassets/video/${s.id}/${a.currentVersion}.mp4`:null}function I(){var e;return(e=s.videoTable)!=null&&e.includes(a.currentVersion)?null:`
|
||||
import{B as L,G as N,a as c,i as p,g as l,b as i,aq as T,t as j,e as r,H as F,k as _,u as M,s as q,O as H,al as z,r as b,o as E,c as y,w as x,f as k,ar as O,as as U,ak as Q,Q as X,at as J,_ as K,l as W,n as Y,p as Z,q as ee}from"./index.9f7c925e.js";import{_ as te}from"./FormControl.cd7b00b0.js";import{_ as se}from"./ProfileCard.24bd0d43.js";import{_ as ae}from"./GeneralTable.c007c491.js";import{d as re}from"./userData.bcc92478.js";import{g as S}from"./danClass.233b0381.js";const oe={class:"pt-6 mb-6 flex items-center justify-between"},le={class:"flex items-center justify-start space-x-2"},ne={class:"text-2xl md:text-3xl leading-tight"},ie={__name:"GameTitleLine",props:{path:{type:String,default:null},title:{type:String,required:!0}},setup(h){const g=L(()=>N().default);return(f,v)=>(c(),p("section",oe,[l("div",le,[i(T,{path:h.path,class:"w-12 h-12 p-1 drop-shadow-md"},null,8,["path"]),l("h1",ne,j(h.title),1)]),r(g)?F(f.$slots,"default",{key:0}):_("",!0)]))}},ce=["src"],ue={class:"bg-white dark:bg-slate-900/90 rounded-2xl pt-6 p-3 card-content"},de={class:"w-full"},fe={class:"md:flex md:px-5 md:space-x-10 md:justify-between md:items-center"},me={key:0,class:"md:w-1/3 md:text-right"},pe=l("h2",{class:"text-md sm:text-lg md:text-xl font-bold p-2"}," Select Version ",-1),_e={key:0,class:"w-full pt-6 pb-10"},he={key:1,class:"md:w-1/2 grid grid-cols-1 md:grid-cols-2 gap-3"},ge={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 g=Z(),f=ee(),v=M();var n=null,s=null;const a=q({currentVersion:null});H(()=>a.currentVersion,()=>{$()}),n=g.params.id,s=z(n),s==null&&f.push({name:"ErrorPage",params:{catchAll:"404"}});const u=b(null),w=b([]);E(async()=>{try{const e=await v.getGameProfiles(n);w.value=G(e)}catch(e){console.error("Failed to fetch profile data:",e)}$()}),s.versions||(a.currentVersion=1);async function $(){try{u.value=null;const e=await v.getUserProfile(n,a.currentVersion);u.value=e,e&&!a.currentVersion&&(a.currentVersion=e.versions[e.versions.length-1])}catch(e){console.error("Failed to fetch user profile data:",e)}}function P(){return a.currentVersion?`/assets/games/${s.id}/card/${a.currentVersion}.webp`:s.cardBG}function B(){var e;return a.currentVersion&&((e=s.videoTable)==null?void 0:e.includes(a.currentVersion))?`https://web3.phaseii.network/gameassets/video/${s.id}/${a.currentVersion}.mp4`:null}function I(){var e;return(e=s.videoTable)!=null&&e.includes(a.currentVersion)?null:`
|
||||
background-image: url('${P()}');
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
`}const d=[];if(d.push({text:"Player",value:"username",sortable:!0,width:120}),s.noRivals||d.push({text:"Rival ID",value:"extid",width:100}),d.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}),s.playerHeaders)for(var D of s.playerHeaders)d.push(D);function G(e){var o=[];for(var t of e){if(t.extid&&(t.extid=re(t.extid)),t.stats){if(t.stats.last_play_timestamp){const p=new Date(t.stats.last_play_timestamp*1e3);t.stats.last_play_timestamp=p.toLocaleString()}t.sgrade&&(t.sgrade=S(t.sgrade).short),t.dgrade&&(t.dgrade=S(t.dgrade).short)}o.push(t)}return o.sort((p,V)=>{const A=p.stats&&p.stats.total_plays||0;return(V.stats&&V.stats.total_plays||0)-A}),o}function R(e){var o=[];for(const t of s.versions)e.includes(t.id)&&o.push(t);return o}const j=e=>{const o=e.userId;f.push(`/games/${n}/profiles/${o}`)};return(e,o)=>(c(),y(Y,null,{default:x(()=>[i(W,null,{default:x(()=>[l("div",{style:Q(I()),class:"rounded-2xl mb-6 card-container"},[l("video",{autoplay:"",muted:"",loop:"",playsinline:"",src:B(),class:"background-video"},null,8,ce),l("div",ue,[l("div",de,[l("div",fe,[i(ie,{path:r(s).icon,title:r(s).name},null,8,["path","title"]),r(s).versions&&u.value?(c(),m("div",pe,[me,i(te,{modelValue:a.currentVersion,"onUpdate:modelValue":o[0]||(o[0]=t=>a.currentVersion=t),options:R(u.value.versions)},null,8,["modelValue","options"])])):_("",!0)])]),u.value?(c(),m("div",_e,[i(se,{game:r(n),version:a.currentVersion,profile:u.value},null,8,["game","version","profile"])])):(c(),m("div",he,[r(s).noScores?_("",!0):(c(),y(k,{key:0,href:`/#/games/${r(n)}/scores`,icon:r(O),outline:!1,color:"info",label:"Network Scores"},null,8,["href","icon"])),r(s).noRecords?_("",!0):(c(),y(k,{key:1,href:`/#/games/${r(n)}/records`,icon:r(U),outline:!1,color:"info",label:"Network Records"},null,8,["href","icon"]))]))])],4),i(X,{icon:r(J),title:"All Players",main:""},null,8,["icon"]),i(K,{"has-table":""},{default:x(()=>[l("div",ge,[l("div",ve,[i(ae,{headers:d,items:w.value,path:`/#/${r(n)}/profiles/`,onRowClicked:j},null,8,["items","path"])])])]),_:1})]),_:1})]),_:1}))}};export{Se as default};
|
||||
`}const d=[];if(d.push({text:"Player",value:"username",sortable:!0,width:120}),s.noRivals||d.push({text:"Rival ID",value:"extid",width:100}),d.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}),s.playerHeaders)for(var D of s.playerHeaders)d.push(D);function G(e){var o=[];for(var t of e){if(t.extid&&(t.extid=re(t.extid)),t.stats){if(t.stats.last_play_timestamp){const m=new Date(t.stats.last_play_timestamp*1e3);t.stats.last_play_timestamp=m.toLocaleString()}t.sgrade&&(t.sgrade=S(t.sgrade).short),t.dgrade&&(t.dgrade=S(t.dgrade).short)}o.push(t)}return o.sort((m,V)=>{const C=m.stats&&m.stats.total_plays||0;return(V.stats&&V.stats.total_plays||0)-C}),o}function R(e){var o=[];for(const t of s.versions)e.includes(t.id)&&o.push(t);return o}const A=e=>{const o=e.userId;f.push(`/games/${n}/profiles/${o}`)};return(e,o)=>(c(),y(Y,null,{default:x(()=>[i(W,null,{default:x(()=>[l("div",{style:Q(I()),class:"rounded-2xl mb-6 card-container"},[l("video",{autoplay:"",muted:"",loop:"",playsinline:"",src:B(),class:"background-video"},null,8,ce),l("div",ue,[l("div",de,[l("div",fe,[i(ie,{path:r(s).icon,title:r(s).name},null,8,["path","title"]),r(s).versions&&u.value?(c(),p("div",me,[pe,i(te,{modelValue:a.currentVersion,"onUpdate:modelValue":o[0]||(o[0]=t=>a.currentVersion=t),options:R(u.value.versions)},null,8,["modelValue","options"])])):_("",!0)])]),u.value?(c(),p("div",_e,[i(se,{game:r(n),version:a.currentVersion,profile:u.value},null,8,["game","version","profile"])])):(c(),p("div",he,[r(s).noScores?_("",!0):(c(),y(k,{key:0,href:`/#/games/${r(n)}/scores`,icon:r(O),outline:!1,color:"info",label:"Network Scores"},null,8,["href","icon"])),r(s).noRecords?_("",!0):(c(),y(k,{key:1,href:`/#/games/${r(n)}/records`,icon:r(U),outline:!1,color:"info",label:"Network Records"},null,8,["href","icon"]))]))])],4),i(X,{icon:r(J),title:"All Players",main:""},null,8,["icon"]),i(K,{"has-table":""},{default:x(()=>[l("div",ge,[l("div",ve,[i(ae,{headers:d,items:w.value,path:`/#/${r(n)}/profiles/`,onRowClicked:A},null,8,["items","path"])])])]),_:1})]),_:1})]),_:1}))}};export{Se as default};
|
||||
@@ -1 +1 @@
|
||||
import{al as r,a as i,c as n,w as s,g as e,am as d}from"./index.e776b26c.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{an as r,a as i,c as n,w as s,g as e,ao as d}from"./index.9f7c925e.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:o}){const c=a=>{o("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:c},{loading:s(()=>[m]),"empty-message":s(()=>[h]),_:1},8,["headers","items"])}}};export{g as _};
|
||||
@@ -1 +1 @@
|
||||
import{u as h,r as f,O as b,a,c as l,w as t,b as i,P as y,Q as p,e as r,W as g,g as o,_,f as c,k as s,R as m,X as x,i as n,Y as k,t as v,Z as w,l as D,n as N}from"./index.e776b26c.js";const $={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},S={key:0,class:"text-lg"},V={key:1,class:"text-lg"},B={class:"space-x-2"},K={key:0,class:"text-lg"},R={key:1,class:"text-lg"},C={class:"space-x-2"},U={__name:"IntegrationView",setup(I){const d=h(),e=f(d.userData);return b(()=>d.userData,u=>{e.value=u}),(u,L)=>(a(),l(N,null,{default:t(()=>[i(D,null,{default:t(()=>[i(y,{class:"mb-6","use-small":"","even-smaller":""}),i(p,{icon:r(g),title:"Server Integrations",main:""},null,8,["icon"]),o("div",$,[i(_,null,{footer:t(()=>[o("div",B,[!e.value.discord||!e.value.discord.linked?(a(),l(c,{key:0,type:"submit",color:"success",label:"Link Now"})):s("",!0),e.value.discord&&e.value.discord.linked?(a(),l(c,{key:1,type:"submit",color:"info",label:"Relink"})):s("",!0),e.value.discord&&e.value.discord.linked?(a(),l(c,{key:2,type:"submit",color:"danger",label:"Unlink"})):s("",!0)])]),default:t(()=>[i(m,{color:"info",icon:r(x),label:"Discord",class:"mb-2"},null,8,["icon"]),e.value.discord&&e.value.discord.linked?(a(),n("h1",S,[k(" Discord is linked to "),o("b",null,v(e.value.discord.username),1)])):s("",!0),!e.value.discord||!e.value.discord.linked?(a(),n("h1",V," Discord isn't linked! ")):s("",!0)]),_:1}),i(_,null,{footer:t(()=>[o("div",C,[!e.value.tachi||!e.value.tachi.linked?(a(),l(c,{key:0,type:"submit",color:"success",label:"Link Now"})):s("",!0),e.value.tachi&&e.value.tachi.linked?(a(),l(c,{key:1,type:"submit",color:"info",label:"Relink"})):s("",!0),e.value.tachi&&e.value.tachi.linked?(a(),l(c,{key:2,type:"submit",color:"danger",label:"Unlink"})):s("",!0)])]),default:t(()=>[i(m,{icon:r(w),color:"info",label:"Kamaitachi",class:"mb-2"},null,8,["icon"]),e.value.tachi&&e.value.tachi.linked?(a(),n("h1",K,[k(" Kamaitachi is linked to "),o("b",null,v(e.value.tachi.username),1)])):s("",!0),!e.value.tachi||!e.value.tachi.linked?(a(),n("h1",R," Kamaitachi isn't linked! ")):s("",!0)]),_:1})])]),_:1})]),_:1}))}};export{U as default};
|
||||
import{u as h,r as f,O as b,a,c as l,w as t,b as i,P as y,Q as p,e as r,W as g,g as o,_,f as c,k as s,R as m,X as x,i as n,Y as k,t as v,Z as w,l as D,n as N}from"./index.9f7c925e.js";const $={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},S={key:0,class:"text-lg"},V={key:1,class:"text-lg"},B={class:"space-x-2"},K={key:0,class:"text-lg"},R={key:1,class:"text-lg"},C={class:"space-x-2"},U={__name:"IntegrationView",setup(I){const d=h(),e=f(d.userData);return b(()=>d.userData,u=>{e.value=u}),(u,L)=>(a(),l(N,null,{default:t(()=>[i(D,null,{default:t(()=>[i(y,{class:"mb-6","use-small":"","even-smaller":""}),i(p,{icon:r(g),title:"Server Integrations",main:""},null,8,["icon"]),o("div",$,[i(_,null,{footer:t(()=>[o("div",B,[!e.value.discord||!e.value.discord.linked?(a(),l(c,{key:0,type:"submit",color:"success",label:"Link Now"})):s("",!0),e.value.discord&&e.value.discord.linked?(a(),l(c,{key:1,type:"submit",color:"info",label:"Relink"})):s("",!0),e.value.discord&&e.value.discord.linked?(a(),l(c,{key:2,type:"submit",color:"danger",label:"Unlink"})):s("",!0)])]),default:t(()=>[i(m,{color:"info",icon:r(x),label:"Discord",class:"mb-2"},null,8,["icon"]),e.value.discord&&e.value.discord.linked?(a(),n("h1",S,[k(" Discord is linked to "),o("b",null,v(e.value.discord.username),1)])):s("",!0),!e.value.discord||!e.value.discord.linked?(a(),n("h1",V," Discord isn't linked! ")):s("",!0)]),_:1}),i(_,null,{footer:t(()=>[o("div",C,[!e.value.tachi||!e.value.tachi.linked?(a(),l(c,{key:0,type:"submit",color:"success",label:"Link Now"})):s("",!0),e.value.tachi&&e.value.tachi.linked?(a(),l(c,{key:1,type:"submit",color:"info",label:"Relink"})):s("",!0),e.value.tachi&&e.value.tachi.linked?(a(),l(c,{key:2,type:"submit",color:"danger",label:"Unlink"})):s("",!0)])]),default:t(()=>[i(m,{icon:r(w),color:"info",label:"Kamaitachi",class:"mb-2"},null,8,["icon"]),e.value.tachi&&e.value.tachi.linked?(a(),n("h1",K,[k(" Kamaitachi is linked to "),o("b",null,v(e.value.tachi.username),1)])):s("",!0),!e.value.tachi||!e.value.tachi.linked?(a(),n("h1",R," Kamaitachi isn't linked! ")):s("",!0)]),_:1})])]),_:1})]),_:1}))}};export{U as default};
|
||||
@@ -1 +1 @@
|
||||
import{M as t,a as o,i as n,g as e,H as r,z as _,e as d}from"./index.e776b26c.js";const l={class:"bg-gray-950 dark:text-slate-100"},c={class:"animated animatedFadeInUp fadeInUp"},m={__name:"LayoutGuest",setup(i){const a=t();return(s,u)=>(o(),n("div",{class:_({dark:d(a).darkMode})},[e("div",l,[e("div",c,[r(s.$slots,"default")])])],2))}};export{m as _};
|
||||
import{M as t,a as o,i as n,g as e,H as r,z as _,e as d}from"./index.9f7c925e.js";const l={class:"bg-gray-950 dark:text-slate-100"},c={class:"animated animatedFadeInUp fadeInUp"},m={__name:"LayoutGuest",setup(i){const a=t();return(s,u)=>(o(),n("div",{class:_({dark:d(a).darkMode})},[e("div",l,[e("div",c,[r(s.$slots,"default")])])],2))}};export{m as _};
|
||||
@@ -1 +1 @@
|
||||
import{u as f,s as _,a as x,c as b,w as a,g as e,b as o,v as h,e as n,x as g,y as w,f as r,z as v,_ as V,A as y,q as $}from"./index.e776b26c.js";import{_ as k}from"./FormCheckRadio.b6b7c8da.js";import{_ as i}from"./FormField.933b8f9b.js";import{_ as m}from"./FormControl.038f8260.js";import{_ as S}from"./LayoutGuest.5486803b.js";const U={class:"flex md:min-h-screen md:items-center md:justify-center"},P={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={__name:"LoginView",setup(j){const d=$(),u=f(),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(p,l)=>(x(),b(S,null,{default:a(()=>[e("div",U,[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",P,[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]=h(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:n(g),name:"login",autocomplete:"username",required:""},null,8,["modelValue","icon"])]),_:1}),o(i,{label:"Password"},{default:a(()=>[o(m,{modelValue:s.pass,"onUpdate:modelValue":l[2]||(l[2]=t=>s.pass=t),icon:n(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(r,{label:"Log In",color:"success",type:"submit"})]),N,e("div",z,[L,o(r,{label:"Register",color:"info",href:"/#/auth/register"})])],32)])]),_:1},8,["class"])])]),_:1}))}};export{J as default};
|
||||
import{u as f,s as _,a as x,c as b,w as a,g as e,b as o,v as h,e as n,x as g,y as w,f as r,z as v,_ as V,A as y,q as $}from"./index.9f7c925e.js";import{_ as k}from"./FormCheckRadio.1e37b281.js";import{_ as i}from"./FormField.2ca8b598.js";import{_ as m}from"./FormControl.cd7b00b0.js";import{_ as S}from"./LayoutGuest.ad29b81a.js";const U={class:"flex md:min-h-screen md:items-center md:justify-center"},P={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={__name:"LoginView",setup(j){const d=$(),u=f(),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(p,l)=>(x(),b(S,null,{default:a(()=>[e("div",U,[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",P,[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]=h(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:n(g),name:"login",autocomplete:"username",required:""},null,8,["modelValue","icon"])]),_:1}),o(i,{label:"Password"},{default:a(()=>[o(m,{modelValue:s.pass,"onUpdate:modelValue":l[2]||(l[2]=t=>s.pass=t),icon:n(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(r,{label:"Log In",color:"success",type:"submit"})]),N,e("div",z,[L,o(r,{label:"Register",color:"info",href:"/#/auth/register"})])],32)])]),_:1},8,["class"])])]),_:1}))}};export{J as default};
|
||||
@@ -1 +1 @@
|
||||
import{u as _,r as o,o as m,a as r,c as f,w as s,b as a,i as h,Q as p,e as v,a2 as w,_ as b,g as l,F as g,k as x,l as $,n as k,p as B}from"./index.e776b26c.js";import{_ as y}from"./ArcadeCard.98fc5bab.js";import{_ as I}from"./GeneralTable.1629d599.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};
|
||||
import{u as _,r as o,o as m,a as r,c as f,w as s,b as a,i as h,Q as p,e as v,a2 as w,_ as b,g as l,F as g,k as x,l as $,n as k,p as B}from"./index.9f7c925e.js";import{_ as y}from"./ArcadeCard.866d9931.js";import{_ as I}from"./GeneralTable.c007c491.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};
|
||||
@@ -1 +1 @@
|
||||
import{a as i,c as n,w as s,b as e,Q as c,e as r,a5 as t,g as l,a6 as a,a7 as o,_,l as d,n as m}from"./index.e776b26c.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,Q as c,e as r,a5 as t,g as l,a6 as a,a7 as o,_,l as d,n as m}from"./index.9f7c925e.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};
|
||||
@@ -1 +1 @@
|
||||
import{u as Q,aj as z,r as J,o as K,a as O,c as U,w as l,b as r,Q as W,e as s,aC as X,g as Y,f as Z,_ as aa,l as ea,n as sa,p as ta,q as ra}from"./index.e776b26c.js";import{_ as da}from"./GeneralTable.1629d599.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(),j=ra(),q=Q();var d=null,e=null;d=V.params.game,e=z(d),e||j.push({name:"ErrorPage",params:{catchAll:"404"}});const o=J([]),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 E of e.scoreHeaders)c.push(E);K(async()=>{try{const t=await q.getAttemptData(d);o.value=F(t)}catch(t){console.error("Failed to fetch score data:",t)}});function F(t){var u,f,i,_,p,h,g,k,w,b,v,T,x,$,S,m,N,B,R,A,C,H,y,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%",(C=a.data)!=null&&C.skill_points&&(a.data.skill_points=((H=a.data)==null?void 0:H.skill_points)/10),((y=a.data)==null?void 0:y.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(),U(sa,null,{default:l(()=>[r(ea,null,{default:l(()=>[r(W,{icon:s(X),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};
|
||||
import{u as j,al as z,r as J,o as K,a as O,c as U,w as n,b as r,Q as W,e as s,aE as X,g as Y,f as Z,_ as aa,l as ea,n as sa,p as ta,q as ra}from"./index.9f7c925e.js";import{_ as da}from"./GeneralTable.c007c491.js";const la={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(na){const M=ta(),V=ra(),q=j();var d=null,e=null;d=M.params.game,e=z(d),e||V.push({name:"ErrorPage",params:{catchAll:"404"}});const o=J([]),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 t=await q.getAttemptData(d);o.value=L(t)}catch(t){console.error("Failed to fetch score data:",t)}});function L(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,E;var l=[];for(var a of t){if(a.newRecord?a.newRecord="\u2705":a.newRecord="",a.timestamp){const Q=new Date(a.timestamp*1e3);a.timestamp=Q.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=((E=a.data)==null?void 0:E.music_rate)/10),l.push(a)}return l}return(t,l)=>(O(),U(sa,null,{default:n(()=>[r(ea,null,{default:n(()=>[r(W,{icon:s(X),title:`All ${s(e).shortName?s(e).shortName:s(e).name} Scores`,main:""},null,8,["icon","title"]),Y("div",la,[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:n(()=>[r(da,{headers:c,items:o.value},null,8,["items"])]),_:1})]),_:1})]),_:1}))}};export{ua as default};
|
||||
@@ -1 +1 @@
|
||||
import{a as i,c as n,w as s,b as e,Q as c,e as r,a5 as t,g as l,a6 as a,a7 as o,_,l as d,n as m}from"./index.e776b26c.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,Q as c,e as r,a5 as t,g as l,a6 as a,a7 as o,_,l as d,n as m}from"./index.9f7c925e.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
1
assets/OnboardingView.bc9848c2.js
Normal file
1
assets/OnboardingView.bc9848c2.js
Normal file
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
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,Q as _,e as f,an as S,_ as h,g as i,af as $,F as A,k as D,l as N,n as C,p as I}from"./index.e776b26c.js";import{_ as v}from"./GeneralTable.1629d599.js";import{_ as R}from"./ArcadeCard.98fc5bab.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};
|
||||
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,Q as _,e as f,ap as S,_ as h,g as i,ah as $,F as A,k as D,l as N,n as C,p as I}from"./index.9f7c925e.js";import{_ as p}from"./GeneralTable.c007c491.js";import{_ as R}from"./ArcadeCard.866d9931.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),v=I(),u=parseInt(v.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(p,{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(p,{headers:g,items:b(t.value.transactions)},null,8,["items"])])])]),_:1})],64)):D("",!0)]),_:1})]),_:1}))}};export{M as default};
|
||||
@@ -1 +1 @@
|
||||
import{u as W,aj as X,r as j,o as Y,a as q,c as Z,w as c,b as n,i as aa,Q as ea,e as r,aC as ra,g as sa,f as L,m as ta,ag as la,_ as na,F as oa,k as da,l as ca,n as ua,p as fa,q as ia}from"./index.e776b26c.js";import{_ as pa}from"./GeneralTable.1629d599.js";const _a={class:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 2xl:grid-cols-5 gap-3 pb-6"},ba={__name:"PersonalScores",setup(ha){const u=fa(),Q=ia(),f=W();var t=null,e=null,o=null;t=u.params.game,o=u.params.userId,e=X(t),e||Q.push({name:"ErrorPage",params:{catchAll:"404"}});const l=j(null),i=j([]),p=[{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 z of e.scoreHeaders)p.push(z);Y(async()=>{try{const s=await f.getAttemptData(t,o);i.value=K(s)}catch(s){console.error("Failed to fetch score data:",s)}J()});async function J(){try{l.value=null;const s=await f.getUserProfile(t,null,o);l.value=s}catch(s){console.error("Failed to fetch user profile data:",s)}}function K(s){var _,h,g,k,b,v,m,w,$,T,x,S,B,N,P,y,I,R,C,F,H,A,D,G,V,E,M,U;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"),",")),((h=(_=a.data)==null?void 0:_.stats)==null?void 0:h.score)!=null&&(a.exscore=a.points.toString(),a.points=(k=(g=a.data)==null?void 0:g.stats)==null?void 0:k.score.toString().replace(new RegExp("\\B(?<!\\.\\d*)(?=(\\d{3})+(?!\\d))","g"),",")),((b=a.song)==null?void 0:b.chart)!=null&&e.chartTable&&(a.song.chart=e.chartTable[(v=a.song)==null?void 0:v.chart]),((m=a.data)==null?void 0:m.halo)!=null&&e.haloTable&&(a.data.halo=e.haloTable[(w=a.data)==null?void 0:w.halo]),(($=a.data)==null?void 0:$.medal)!=null&&e.medalTable&&(a.data.medal=e.medalTable[(T=a.data)==null?void 0:T.medal]),((x=a.data)==null?void 0:x.clear_status)!=null&&e.medalTable&&(a.data.medal=e.medalTable[(S=a.data)==null?void 0:S.clear_status]),((B=a.data)==null?void 0:B.rank)!=null&&e.rankTable&&(a.data.rank=e.rankTable[(N=a.data)==null?void 0:N.rank]),((P=a.data)==null?void 0:P.result_rank)!=null&&e.rankTable&&(a.data.rank=e.rankTable[(y=a.data)==null?void 0:y.result_rank]),((I=a.data)==null?void 0:I.grade)!=null&&e.rankTable&&(a.data.rank=e.rankTable[(R=a.data)==null?void 0:R.grade]),((C=a.data)==null?void 0:C.skill_perc)>0?a.data.skill_perc=`${((F=a.data)==null?void 0:F.skill_perc)/100}%`:a.data.skill_perc="0%",(H=a.data)!=null&&H.skill_points&&(a.data.skill_points=((A=a.data)==null?void 0:A.skill_points)/10),((D=a.data)==null?void 0:D.perc)>0?a.data.perc=`${((G=a.data)==null?void 0:G.perc)/100}%`:a.data.perc="0%",(V=a.data)!=null&&V.new_skill&&(a.data.new_skill=((E=a.data)==null?void 0:E.new_skill)/10),(M=a.data)!=null&&M.music_rate&&(a.data.music_rate=((U=a.data)==null?void 0:U.music_rate)/10),d.push(a)}return d}return(s,d)=>(q(),Z(ua,null,{default:c(()=>[n(ca,null,{default:c(()=>[l.value?(q(),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",_a,[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:p,items:i.value},null,8,["items"])]),_:1})],64)):da("",!0)]),_:1})]),_:1}))}};export{ba as default};
|
||||
import{u as W,al as X,r as q,o as Y,a as L,c as Z,w as c,b as n,i as aa,Q as ea,e as r,aE as ra,g as sa,f as Q,m as ta,ai as la,_ as na,F as oa,k as da,l as ca,n as ua,p as fa,q as ia}from"./index.9f7c925e.js";import{_ as pa}from"./GeneralTable.c007c491.js";const _a={class:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 2xl:grid-cols-5 gap-3 pb-6"},ba={__name:"PersonalScores",setup(ha){const u=fa(),j=ia(),f=W();var t=null,e=null,o=null;t=u.params.game,o=u.params.userId,e=X(t),e||j.push({name:"ErrorPage",params:{catchAll:"404"}});const l=q(null),i=q([]),p=[{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 z of e.scoreHeaders)p.push(z);Y(async()=>{try{const s=await f.getAttemptData(t,o);i.value=K(s)}catch(s){console.error("Failed to fetch score data:",s)}J()});async function J(){try{l.value=null;const s=await f.getUserProfile(t,null,o);l.value=s}catch(s){console.error("Failed to fetch user profile data:",s)}}function K(s){var _,h,g,k,b,v,m,w,$,T,x,S,B,N,P,y,I,R,C,F,H,A,D,E,G,V,M,U;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"),",")),((h=(_=a.data)==null?void 0:_.stats)==null?void 0:h.score)!=null&&(a.exscore=a.points.toString(),a.points=(k=(g=a.data)==null?void 0:g.stats)==null?void 0:k.score.toString().replace(new RegExp("\\B(?<!\\.\\d*)(?=(\\d{3})+(?!\\d))","g"),",")),((b=a.song)==null?void 0:b.chart)!=null&&e.chartTable&&(a.song.chart=e.chartTable[(v=a.song)==null?void 0:v.chart]),((m=a.data)==null?void 0:m.halo)!=null&&e.haloTable&&(a.data.halo=e.haloTable[(w=a.data)==null?void 0:w.halo]),(($=a.data)==null?void 0:$.medal)!=null&&e.medalTable&&(a.data.medal=e.medalTable[(T=a.data)==null?void 0:T.medal]),((x=a.data)==null?void 0:x.clear_status)!=null&&e.medalTable&&(a.data.medal=e.medalTable[(S=a.data)==null?void 0:S.clear_status]),((B=a.data)==null?void 0:B.rank)!=null&&e.rankTable&&(a.data.rank=e.rankTable[(N=a.data)==null?void 0:N.rank]),((P=a.data)==null?void 0:P.result_rank)!=null&&e.rankTable&&(a.data.rank=e.rankTable[(y=a.data)==null?void 0:y.result_rank]),((I=a.data)==null?void 0:I.grade)!=null&&e.rankTable&&(a.data.rank=e.rankTable[(R=a.data)==null?void 0:R.grade]),((C=a.data)==null?void 0:C.skill_perc)>0?a.data.skill_perc=`${((F=a.data)==null?void 0:F.skill_perc)/100}%`:a.data.skill_perc="0%",(H=a.data)!=null&&H.skill_points&&(a.data.skill_points=((A=a.data)==null?void 0:A.skill_points)/10),((D=a.data)==null?void 0:D.perc)>0?a.data.perc=`${((E=a.data)==null?void 0:E.perc)/100}%`:a.data.perc="0%",(G=a.data)!=null&&G.new_skill&&(a.data.new_skill=((V=a.data)==null?void 0:V.new_skill)/10),(M=a.data)!=null&&M.music_rate&&(a.data.music_rate=((U=a.data)==null?void 0:U.music_rate)/10),d.push(a)}return d}return(s,d)=>(L(),Z(ua,null,{default:c(()=>[n(ca,null,{default:c(()=>[l.value?(L(),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",_a,[n(Q,{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(Q,{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:p,items:i.value},null,8,["items"])]),_:1})],64)):da("",!0)]),_:1})]),_:1}))}};export{ba as default};
|
||||
File diff suppressed because one or more lines are too long
@@ -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.e776b26c.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.9f7c925e.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
@@ -1 +1 @@
|
||||
import{u as y,r as c,O as f,s as w,a as P,c as S,w as s,b as e,P as x,Q as C,e as l,x as _,g as E,_ as b,v as V,f as v,R as U,S as R,y as g,U as k,V as N,l as B,n as F}from"./index.e776b26c.js";import{_ as n}from"./FormField.933b8f9b.js";import{_ as t}from"./FormControl.038f8260.js";const M={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},Q={__name:"ProfileView",setup(A){const i=y(),u=c(i.userName),d=c(i.userEmail);f(()=>i.userName,m=>{u.value=m}),f(()=>i.userEmail,m=>{d.value=m});const p=w({name:"",email:"",pin:"****"}),r=w({password_current:"",password:"",password_confirmation:""}),$=()=>{i.setUser(p)},q=()=>{};return(m,a)=>(P(),S(F,null,{default:s(()=>[e(B,null,{default:s(()=>[e(x,{class:"mb-6","use-small":"","even-smaller":""}),e(C,{icon:l(_),title:"Profile Settings",main:""},null,8,["icon"]),E("div",M,[e(b,{"is-form":"",class:"row-span-1",onSubmit:V($,["prevent"])},{footer:s(()=>[e(v,{color:"success",type:"submit",label:"Update"})]),default:s(()=>[e(U,{color:"info",label:"General",class:"mb-2"}),e(n,{label:"Username"},{default:s(()=>[e(t,{modelValue:u.value,"onUpdate:modelValue":a[0]||(a[0]=o=>u.value=o),icon:l(_),name:"username",required:"",autocomplete:"username"},null,8,["modelValue","icon"])]),_:1}),e(n,{label:"E-mail",help:"Not currently used, but will be soon\u2122\uFE0F"},{default:s(()=>[e(t,{modelValue:d.value,"onUpdate:modelValue":a[1]||(a[1]=o=>d.value=o),icon:l(R),type:"email",name:"email",required:"",autocomplete:"email"},null,8,["modelValue","icon"])]),_:1}),e(n,{label:"PIN",help:"Used when logging into a game"},{default:s(()=>[e(t,{modelValue:p.pin,"onUpdate:modelValue":a[2]||(a[2]=o=>p.pin=o),icon:l(g),type:"password",name:"pin",required:"",autocomplete:"pin"},null,8,["modelValue","icon"])]),_:1})]),_:1},8,["onSubmit"]),e(b,{"is-form":"",class:"row-span-2",onSubmit:V(q,["prevent"])},{footer:s(()=>[e(v,{type:"submit",color:"success",label:"Update"})]),default:s(()=>[e(U,{color:"info",label:"Change Password",class:"mb-2"}),e(n,{label:"Current password",help:"Required. Your current password"},{default:s(()=>[e(t,{modelValue:r.password_current,"onUpdate:modelValue":a[3]||(a[3]=o=>r.password_current=o),icon:l(g),name:"password_current",type:"password",required:"",autocomplete:"current-password"},null,8,["modelValue","icon"])]),_:1}),e(k),e(n,{label:"New password",help:"Required. New password"},{default:s(()=>[e(t,{modelValue:r.password,"onUpdate:modelValue":a[4]||(a[4]=o=>r.password=o),icon:l(N),name:"password",type:"password",required:"",autocomplete:"new-password"},null,8,["modelValue","icon"])]),_:1}),e(n,{label:"Confirm password",help:"Required. New password one more time"},{default:s(()=>[e(t,{modelValue:r.password_confirmation,"onUpdate:modelValue":a[5]||(a[5]=o=>r.password_confirmation=o),icon:l(N),name:"password_confirmation",type:"password",required:"",autocomplete:"new-password"},null,8,["modelValue","icon"])]),_:1})]),_:1},8,["onSubmit"])])]),_:1})]),_:1}))}};export{Q as default};
|
||||
import{u as y,r as c,O as f,s as w,a as P,c as S,w as s,b as e,P as x,Q as C,e as l,x as _,g as E,_ as b,v as V,f as v,R as U,S as R,y as g,U as k,V as N,l as B,n as F}from"./index.9f7c925e.js";import{_ as n}from"./FormField.2ca8b598.js";import{_ as t}from"./FormControl.cd7b00b0.js";const M={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},Q={__name:"ProfileView",setup(A){const i=y(),u=c(i.userName),d=c(i.userEmail);f(()=>i.userName,m=>{u.value=m}),f(()=>i.userEmail,m=>{d.value=m});const p=w({name:"",email:"",pin:"****"}),r=w({password_current:"",password:"",password_confirmation:""}),$=()=>{i.setUser(p)},q=()=>{};return(m,a)=>(P(),S(F,null,{default:s(()=>[e(B,null,{default:s(()=>[e(x,{class:"mb-6","use-small":"","even-smaller":""}),e(C,{icon:l(_),title:"Profile Settings",main:""},null,8,["icon"]),E("div",M,[e(b,{"is-form":"",class:"row-span-1",onSubmit:V($,["prevent"])},{footer:s(()=>[e(v,{color:"success",type:"submit",label:"Update"})]),default:s(()=>[e(U,{color:"info",label:"General",class:"mb-2"}),e(n,{label:"Username"},{default:s(()=>[e(t,{modelValue:u.value,"onUpdate:modelValue":a[0]||(a[0]=o=>u.value=o),icon:l(_),name:"username",required:"",autocomplete:"username"},null,8,["modelValue","icon"])]),_:1}),e(n,{label:"E-mail",help:"Not currently used, but will be soon\u2122\uFE0F"},{default:s(()=>[e(t,{modelValue:d.value,"onUpdate:modelValue":a[1]||(a[1]=o=>d.value=o),icon:l(R),type:"email",name:"email",required:"",autocomplete:"email"},null,8,["modelValue","icon"])]),_:1}),e(n,{label:"PIN",help:"Used when logging into a game"},{default:s(()=>[e(t,{modelValue:p.pin,"onUpdate:modelValue":a[2]||(a[2]=o=>p.pin=o),icon:l(g),type:"password",name:"pin",required:"",autocomplete:"pin"},null,8,["modelValue","icon"])]),_:1})]),_:1},8,["onSubmit"]),e(b,{"is-form":"",class:"row-span-2",onSubmit:V(q,["prevent"])},{footer:s(()=>[e(v,{type:"submit",color:"success",label:"Update"})]),default:s(()=>[e(U,{color:"info",label:"Change Password",class:"mb-2"}),e(n,{label:"Current password",help:"Required. Your current password"},{default:s(()=>[e(t,{modelValue:r.password_current,"onUpdate:modelValue":a[3]||(a[3]=o=>r.password_current=o),icon:l(g),name:"password_current",type:"password",required:"",autocomplete:"current-password"},null,8,["modelValue","icon"])]),_:1}),e(k),e(n,{label:"New password",help:"Required. New password"},{default:s(()=>[e(t,{modelValue:r.password,"onUpdate:modelValue":a[4]||(a[4]=o=>r.password=o),icon:l(N),name:"password",type:"password",required:"",autocomplete:"new-password"},null,8,["modelValue","icon"])]),_:1}),e(n,{label:"Confirm password",help:"Required. New password one more time"},{default:s(()=>[e(t,{modelValue:r.password_confirmation,"onUpdate:modelValue":a[5]||(a[5]=o=>r.password_confirmation=o),icon:l(N),name:"password_confirmation",type:"password",required:"",autocomplete:"new-password"},null,8,["modelValue","icon"])]),_:1})]),_:1},8,["onSubmit"])])]),_:1})]),_:1}))}};export{Q as default};
|
||||
@@ -1 +1 @@
|
||||
import{a as t,c as m,w as n,b as a,Q as i,e,x as u,P as r,_,g as o,f as c,a0 as d,a1 as f,a2 as g,a3 as s,a4 as l,l as p,n as A}from"./index.e776b26c.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"},R={__name:"PublicView",setup($){return(w,M)=>(t(),m(A,null,{default:n(()=>[a(p,null,{default:n(()=>[a(i,{icon:e(u),title:"Trmazi's Profile",main:""},null,8,["icon"]),a(r,{class:"mb-6","use-small":""}),a(_,{"is-form":"",class:"mb-6"},{default:n(()=>[o("div",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{R as default};
|
||||
import{a as t,c as m,w as n,b as a,Q as i,e,x as u,P as r,_,g as o,f as c,a0 as d,a1 as f,a2 as g,a3 as s,a4 as l,l as p,n as A}from"./index.9f7c925e.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"},R={__name:"PublicView",setup($){return(w,M)=>(t(),m(A,null,{default:n(()=>[a(p,null,{default:n(()=>[a(i,{icon:e(u),title:"Trmazi's Profile",main:""},null,8,["icon"]),a(r,{class:"mb-6","use-small":""}),a(_,{"is-form":"",class:"mb-6"},{default:n(()=>[o("div",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{R as default};
|
||||
@@ -1 +1 @@
|
||||
import{s as b,a as x,c as V,w as t,g as o,b as l,e as n,x as i,y as u,f as c,_ as g,A as y,q as h,N as v}from"./index.e776b26c.js";import{_ as A}from"./FormCheckRadio.b6b7c8da.js";import{_ as d}from"./FormField.933b8f9b.js";import{_ as m}from"./FormControl.038f8260.js";import{_ as I}from"./LayoutGuest.5486803b.js";const P={class:"flex md:min-h-screen md:items-center md:justify-center"},U={class:"p-4 flex flex-col md:flex-row w-full space-y-2 md:space-y-0 md:space-x-4"},$=o("div",{class:"flex flex-col items-center text-wrap h-full md:mt-5"},[o("img",{src:y,class:"rounded-full shadow-lg mb-2"}),o("h1",{class:"text-xl"},[o("samp",null,"PhaseII")]),o("p",{class:"text-sm text-gray-700 dark:text-white/75"}," Spinnin' since 2021 "),o("hr",{class:"border-t border-1 my-1 w-full"}),o("p",{class:"text-lg relative bottom-0"},"Account Registration")],-1),k=o("div",{class:"md:border-r md:border-1"},null,-1),C={class:"grid grid-cols-2 gap-x-2"},K={class:"col-span-2"},N={class:"flex flex-col gap-2 mt-4"},R=o("hr",{class:"border-t border-1 my-4 w-full"},null,-1),S={class:"flex flex-col gap-2 my-4"},B=o("h2",null,"Have an Account?",-1),H={__name:"RegisterView",setup(D){const p=h();function f(r){var s=/\S+@\S+\.\S+/;return s.test(r)}const _=async()=>{if(!e.username||!e.email||!e.pass||!e.pass_conf||!e.pin||!e.cardId){alert("Please fill in all fields.");return}if(!f(e.email)){alert("Please use a valid email.");return}if(e.pass!==e.pass_conf){alert("Passwords do not match!");return}const r=await w(e.username,e.pass);r.success?(console.log(r),v.set("userAuthKey",r.authKey,{expires:e.remember?30:0}),p.push("/")):alert("Create failed. Please try again.")},w=async(r,s)=>(await new Promise(a=>setTimeout(a,1e3)),{success:!0,authKey:"generatedAuthKey123"}),e=b({username:"",email:"",pass:"",pass_conf:"",pin:"",cardId:"",remember:!0});return(r,s)=>(x(),V(I,null,{default:t(()=>[o("div",P,[l(g,{class:"w-full md:w-auto rounded-none md:rounded-xl md:drop-shadow-xl","has-table":"","is-auth":""},{default:t(()=>[o("div",U,[$,k,o("div",C,[l(d,{label:"Desired Username"},{default:t(()=>[l(m,{modelValue:e.username,"onUpdate:modelValue":s[0]||(s[0]=a=>e.username=a),icon:n(i),name:"username",autocomplete:"username"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Email Address"},{default:t(()=>[l(m,{modelValue:e.email,"onUpdate:modelValue":s[1]||(s[1]=a=>e.email=a),icon:n(i),name:"email",autocomplete:"email"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Password"},{default:t(()=>[l(m,{modelValue:e.pass,"onUpdate:modelValue":s[2]||(s[2]=a=>e.pass=a),icon:n(u),type:"password",name:"password",autocomplete:"current-password"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Password Confirmation"},{default:t(()=>[l(m,{modelValue:e.pass_conf,"onUpdate:modelValue":s[3]||(s[3]=a=>e.pass_conf=a),icon:n(u),type:"password",name:"password",autocomplete:"current-password"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Card ID"},{default:t(()=>[l(m,{modelValue:e.cardId,"onUpdate:modelValue":s[4]||(s[4]=a=>e.cardId=a),icon:n(i),name:"card",autocomplete:"card"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Game PIN"},{default:t(()=>[l(m,{modelValue:e.pin,"onUpdate:modelValue":s[5]||(s[5]=a=>e.pin=a),icon:n(u),type:"password",name:"password",autocomplete:"current-password"},null,8,["modelValue","icon"])]),_:1}),l(A,{modelValue:e.remember,"onUpdate:modelValue":s[6]||(s[6]=a=>e.remember=a),class:"col-span-2",name:"remember",label:"Remember Me","input-value":!0},null,8,["modelValue"]),o("div",K,[o("div",N,[l(c,{label:"Create Account",color:"success",onClick:s[7]||(s[7]=a=>_())})]),R,o("div",S,[B,l(c,{label:"Log In",color:"info",href:"/#/auth/login"})])])])])]),_:1})])]),_:1}))}};export{H as default};
|
||||
import{s as b,a as x,c as V,w as t,g as o,b as l,e as n,x as i,y as u,f as c,_ as g,A as y,q as h,N as v}from"./index.9f7c925e.js";import{_ as A}from"./FormCheckRadio.1e37b281.js";import{_ as d}from"./FormField.2ca8b598.js";import{_ as m}from"./FormControl.cd7b00b0.js";import{_ as I}from"./LayoutGuest.ad29b81a.js";const P={class:"flex md:min-h-screen md:items-center md:justify-center"},U={class:"p-4 flex flex-col md:flex-row w-full space-y-2 md:space-y-0 md:space-x-4"},$=o("div",{class:"flex flex-col items-center text-wrap h-full md:mt-5"},[o("img",{src:y,class:"rounded-full shadow-lg mb-2"}),o("h1",{class:"text-xl"},[o("samp",null,"PhaseII")]),o("p",{class:"text-sm text-gray-700 dark:text-white/75"}," Spinnin' since 2021 "),o("hr",{class:"border-t border-1 my-1 w-full"}),o("p",{class:"text-lg relative bottom-0"},"Account Registration")],-1),k=o("div",{class:"md:border-r md:border-1"},null,-1),C={class:"grid grid-cols-2 gap-x-2"},K={class:"col-span-2"},N={class:"flex flex-col gap-2 mt-4"},R=o("hr",{class:"border-t border-1 my-4 w-full"},null,-1),S={class:"flex flex-col gap-2 my-4"},B=o("h2",null,"Have an Account?",-1),H={__name:"RegisterView",setup(D){const p=h();function f(r){var s=/\S+@\S+\.\S+/;return s.test(r)}const _=async()=>{if(!e.username||!e.email||!e.pass||!e.pass_conf||!e.pin||!e.cardId){alert("Please fill in all fields.");return}if(!f(e.email)){alert("Please use a valid email.");return}if(e.pass!==e.pass_conf){alert("Passwords do not match!");return}const r=await w(e.username,e.pass);r.success?(console.log(r),v.set("userAuthKey",r.authKey,{expires:e.remember?30:0}),p.push("/")):alert("Create failed. Please try again.")},w=async(r,s)=>(await new Promise(a=>setTimeout(a,1e3)),{success:!0,authKey:"generatedAuthKey123"}),e=b({username:"",email:"",pass:"",pass_conf:"",pin:"",cardId:"",remember:!0});return(r,s)=>(x(),V(I,null,{default:t(()=>[o("div",P,[l(g,{class:"w-full md:w-auto rounded-none md:rounded-xl md:drop-shadow-xl","has-table":"","is-auth":""},{default:t(()=>[o("div",U,[$,k,o("div",C,[l(d,{label:"Desired Username"},{default:t(()=>[l(m,{modelValue:e.username,"onUpdate:modelValue":s[0]||(s[0]=a=>e.username=a),icon:n(i),name:"username",autocomplete:"username"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Email Address"},{default:t(()=>[l(m,{modelValue:e.email,"onUpdate:modelValue":s[1]||(s[1]=a=>e.email=a),icon:n(i),name:"email",autocomplete:"email"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Password"},{default:t(()=>[l(m,{modelValue:e.pass,"onUpdate:modelValue":s[2]||(s[2]=a=>e.pass=a),icon:n(u),type:"password",name:"password",autocomplete:"current-password"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Password Confirmation"},{default:t(()=>[l(m,{modelValue:e.pass_conf,"onUpdate:modelValue":s[3]||(s[3]=a=>e.pass_conf=a),icon:n(u),type:"password",name:"password",autocomplete:"current-password"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Card ID"},{default:t(()=>[l(m,{modelValue:e.cardId,"onUpdate:modelValue":s[4]||(s[4]=a=>e.cardId=a),icon:n(i),name:"card",autocomplete:"card"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Game PIN"},{default:t(()=>[l(m,{modelValue:e.pin,"onUpdate:modelValue":s[5]||(s[5]=a=>e.pin=a),icon:n(u),type:"password",name:"password",autocomplete:"current-password"},null,8,["modelValue","icon"])]),_:1}),l(A,{modelValue:e.remember,"onUpdate:modelValue":s[6]||(s[6]=a=>e.remember=a),class:"col-span-2",name:"remember",label:"Remember Me","input-value":!0},null,8,["modelValue"]),o("div",K,[o("div",N,[l(c,{label:"Create Account",color:"success",onClick:s[7]||(s[7]=a=>_())})]),R,o("div",S,[B,l(c,{label:"Log In",color:"info",href:"/#/auth/login"})])])])])]),_:1})])]),_:1}))}};export{H as default};
|
||||
@@ -1,5 +1,5 @@
|
||||
import{s as p,aj as S,a as i,c as d,w as r,b as t,g as e,e as m,i as u,k as _,ai as B,Q as b,aA as A,_ as f,j as w,t as g,f as k,F as x,aB as L,l as j,n as F,p as G,q as z}from"./index.e776b26c.js";import{_ as E}from"./ProfileCard.7b49cde6.js";import{_ as N}from"./FormField.933b8f9b.js";import{_ as V}from"./FormControl.038f8260.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"},M={class:"flex justify-between items-center"},O={class:"flex"},Q=e("img",{class:"w-10 mr-3",src:"https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/"},null,-1),Z={class:"grid"},J={class:"text-lg"},K={class:"text-md font-mono"},W={class:"grid gap-3"},X={class:"flex justify-between items-center"},ee={class:"flex"},se=e("img",{class:"w-10 mr-3",src:"https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/"},null,-1),te={class:"grid"},ae={class:"text-lg"},ie={class:"text-md font-mono"},me={__name:"RivalsView",setup(oe){const y=G(),$=z();var v=null,o=null;const D={id:1,name:"Trmazi",extid:12345678,avatar:"https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/",last:{arcade:"GhettoCade",date:"7/16/2023"}},h=[{id:1,name:"TRMAZI",rivalID:"1234-5678"},{id:2,name:"BLADE",rivalID:"1454-5687"},{id:3,name:"HO!",rivalID:"5364-5568"}],a=p({currentVersion:null}),l=p({filter:null});v=y.params.game,o=S(v),o.versions||(a.currentVersion=1),o||$.push({name:"ErrorPage",params:{catchAll:"404"}});function I(){if(l.filter)return h.filter(n=>n.name.toLowerCase().includes(l.filter.toLowerCase())||n.rivalID.toLowerCase().includes(l.filter.toLowerCase()))}function R(){var n=null;return a.currentVersion?n=`/assets/games/${o.id}/card/${a.currentVersion}.webp`:n=o.cardBG,n}function C(){return`
|
||||
background-image: url('${R()}');
|
||||
import{s as p,al as S,a as i,c as d,w as r,b as t,g as e,e as m,i as u,k as _,ak as B,Q as b,aC as L,_ as f,j as k,t as g,f as w,F as x,aD as A,l as j,n as F,p as G,q as z}from"./index.9f7c925e.js";import{_ as E}from"./ProfileCard.24bd0d43.js";import{_ as N}from"./FormField.2ca8b598.js";import{_ as V}from"./FormControl.cd7b00b0.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"},M={class:"flex justify-between items-center"},O={class:"flex"},Q=e("img",{class:"w-10 mr-3",src:"https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/"},null,-1),Z={class:"grid"},J={class:"text-lg"},K={class:"text-md font-mono"},W={class:"grid gap-3"},X={class:"flex justify-between items-center"},ee={class:"flex"},se=e("img",{class:"w-10 mr-3",src:"https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/"},null,-1),te={class:"grid"},ae={class:"text-lg"},ie={class:"text-md font-mono"},me={__name:"RivalsView",setup(oe){const y=G(),$=z();var v=null,o=null;const D={id:1,name:"Trmazi",extid:12345678,avatar:"https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/",last:{arcade:"GhettoCade",date:"7/16/2023"}},h=[{id:1,name:"TRMAZI",rivalID:"1234-5678"},{id:2,name:"BLADE",rivalID:"1454-5687"},{id:3,name:"HO!",rivalID:"5364-5568"}],a=p({currentVersion:null}),l=p({filter:null});v=y.params.game,o=S(v),o.versions||(a.currentVersion=1),o||$.push({name:"ErrorPage",params:{catchAll:"404"}});function C(){if(l.filter)return h.filter(n=>n.name.toLowerCase().includes(l.filter.toLowerCase())||n.rivalID.toLowerCase().includes(l.filter.toLowerCase()))}function I(){var n=null;return a.currentVersion?n=`/assets/games/${o.id}/card/${a.currentVersion}.webp`:n=o.cardBG,n}function R(){return`
|
||||
background-image: url('${I()}');
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
`}return(n,c)=>(i(),d(F,null,{default:r(()=>[t(j,null,{default:r(()=>[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:D})])])],4)):_("",!0),t(b,{icon:m(A),title:"Add a Rival",main:""},null,8,["icon"]),a.currentVersion?(i(),d(f,{key:1,class:"mb-6"},{default:r(()=>[t(N,{label:"Search",help:"Search by username or Rival ID to add a rival.",class:"w-full md:w-1/3"},{default:r(()=>[t(V,{modelValue:l.filter,"onUpdate:modelValue":c[1]||(c[1]=s=>l.filter=s),"model-value":l.filter,placeholder:"1234-5678"},null,8,["modelValue","model-value"])]),_:1}),e("div",H,[(i(!0),u(x,null,w(I(),s=>(i(),d(f,{key:s.id},{default:r(()=>[e("div",M,[e("div",O,[Q,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(L),title:"Rivals",main:""},null,8,["icon"]),a.currentVersion?(i(),d(f,{key:2,class:"mb-6"},{default:r(()=>[e("div",W,[(i(),u(x,null,w(h,s=>t(f,{key:s.id},{default:r(()=>[e("div",X,[e("div",ee,[se,e("div",te,[e("h1",ae,g(s.name),1),e("h2",ie,g(s.rivalID),1)])]),t(k,{label:"Remove Rival",color:"danger"})])]),_:2},1024)),64))])]),_:1})):_("",!0)]),_:1})]),_:1}))}};export{me as default};
|
||||
`}return(n,c)=>(i(),d(F,null,{default:r(()=>[t(j,null,{default:r(()=>[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(R()),class:"rounded-2xl mb-6"},[e("div",T,[e("div",q,[t(E,{"use-small":"",profile:D})])])],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:r(()=>[t(N,{label:"Search",help:"Search by username or Rival ID to add a rival.",class:"w-full md:w-1/3"},{default:r(()=>[t(V,{modelValue:l.filter,"onUpdate:modelValue":c[1]||(c[1]=s=>l.filter=s),"model-value":l.filter,placeholder:"1234-5678"},null,8,["modelValue","model-value"])]),_:1}),e("div",H,[(i(!0),u(x,null,k(C(),s=>(i(),d(f,{key:s.id},{default:r(()=>[e("div",M,[e("div",O,[Q,e("div",Z,[e("h1",J,g(s.name),1),e("h2",K,g(s.rivalID),1)])]),t(w,{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:r(()=>[e("div",W,[(i(),u(x,null,k(h,s=>t(f,{key:s.id},{default:r(()=>[e("div",X,[e("div",ee,[se,e("div",te,[e("h1",ae,g(s.name),1),e("h2",ie,g(s.rivalID),1)])]),t(w,{label:"Remove Rival",color:"danger"})])]),_:2},1024)),64))])]),_:1})):_("",!0)]),_:1})]),_:1}))}};export{me as default};
|
||||
@@ -1 +1 @@
|
||||
import{a as i,c as n,w as s,b as e,Q as c,e as r,a5 as t,g as l,a6 as a,a7 as o,_,l as d,n as m}from"./index.e776b26c.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,Q as c,e as r,a5 as t,g as l,a6 as a,a7 as o,_,l as d,n as m}from"./index.9f7c925e.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};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -41,8 +41,8 @@
|
||||
|
||||
document.addEventListener('keydown', keyHandler, false);
|
||||
</script>
|
||||
<script type="module" crossorigin src="/assets/index.e776b26c.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index.54d563e8.css">
|
||||
<script type="module" crossorigin src="/assets/index.9f7c925e.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index.bae97aa9.css">
|
||||
</head>
|
||||
<body class="scroll-smooth">
|
||||
<noscript>
|
||||
|
||||
Reference in New Issue
Block a user