Deploying to gh-pages from @ PhaseII-eAmusement-Network/PhaseWeb3-Vue@a8ae0f77e9 🚀
5
assets/ArcadeCard.03f06a34.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import{r as y,a,i as t,b as o,w as k,g as s,t as l,e as c,c as x,R as h,a6 as w,k as u,a7 as v,Y as n,F as d,j as _,f,a8 as S,a2 as $,a9 as p,aa as B,ab as j,ac as C}from"./index.93cb35a3.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"},[o(j,{type:"justify-center",class:"bg-white dark:bg-slate-900/90 rounded-2xl p-6 w-full"},{default:k(()=>[s("div",N,[s("h1",V,l(e.arcade.name),1),s("div",A,[s("h2",E,l(e.arcade.description),1)]),s("div",H,[c(g).is_beta?(a(),x(h,{key:0,label:"Beta Enabled",color:"warning",icon:c(w)},null,8,["icon"])):u("",!0),o(h,{label:"Private Arcade",color:"info",icon:c(v)},null,8,["icon"])]),L,e.arcade.owners&&e.arcade.owners.length?(a(),t("p",M,[n(" Managed by "),(a(!0),t(d,null,_(e.arcade.owners,(r,i)=>(a(),t("span",{key:r.username,class:"font-bold"},[e.arcade.owners.length===2&&i===0?(a(),t(d,{key:0},[n(l(r.username),1)],64)):e.arcade.owners.length===2&&i===1?(a(),t(d,{key:1},[T,n(" "+l(r.username)+".",1)],64)):i===0?(a(),t(d,{key:2},[n(l(r.username),1)],64)):i===e.arcade.owners.length-1?(a(),t(d,{key:3},[n(", "),q,n(" "+l(r.username)+".",1)],64)):(a(),t(d,{key:4},[n(", "+l(r.username),1)],64))]))),128))])):u("",!0),e.useSmall?u("",!0):(a(),t("div",z,[o(f,{href:`/#/arcade/${e.arcade.id}/events`,icon:c(S),color:"info",label:"Event Settings"},null,8,["href","icon"]),o(f,{href:`/#/arcade/${e.arcade.id}/machines`,icon:c($),color:"info",label:"Machine List"},null,8,["href","icon"]),o(f,{href:`/#/arcade/${e.arcade.id}/paseli`,icon:c(p),color:"info",label:"PASELI"},null,8,["href","icon"])])),e.useSmall?(a(),t("div",D,[o(f,{href:`/#/arcade/${e.arcade.id}`,icon:c(B),color:"info",label:"Arcade Home",class:"w-full md:w-[150px]"},null,8,["href","icon"])])):u("",!0)])]),_:1})],4))}};export{R as _};
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
import{r as y,a,i as t,b as o,w as k,g as s,t as l,e as c,c as x,R as h,a6 as w,k as u,a7 as v,Y as n,F as d,j as _,f,a8 as S,a2 as $,a9 as p,aa as B,ab as j,ac as C}from"./index.328ff2ed.js";const N={class:"space-y-3 text-center w-full"},V={class:"text-2xl lg:text-3xl font-bold"},A={class:"flex gap-2 justify-center items-center"},E={class:"text-xl md:text-2xl font-bold"},H={class:"flex flex-wrap gap-4 place-content-center"},L=s("hr",{class:"border-t border-1 w-full"},null,-1),M={key:0,class:"text-lg"},T=s("span",{class:"font-normal"}," and",-1),q=s("span",{class:"font-normal"}," and",-1),z={key:1,class:"md:w-full grid grid-cols-1 md:grid-cols-3 gap-3"},D={key:2,class:"w-full flex justify-center"},R={__name:"ArcadeCard",props:{useSmall:{type:Boolean,required:!1,default:!1},arcade:{type:Object,required:!0}},setup(e){var g=y(e.arcade.data);function b(m){if(m!==null)return`
|
||||
background-image: url('${m}');
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
`}return(m,O)=>(a(),t("div",{style:C(b("/assets/card/carpet.png")),class:"rounded-2xl mb-6 w-full"},[o(j,{type:"justify-center",class:"bg-white dark:bg-slate-900/90 rounded-2xl p-6 w-full"},{default:k(()=>[s("div",N,[s("h1",V,l(e.arcade.name),1),s("div",A,[s("h2",E,l(e.arcade.description),1)]),s("div",H,[c(g).is_beta?(a(),x(h,{key:0,label:"Beta Enabled",color:"warning",icon:c(w)},null,8,["icon"])):u("",!0),o(h,{label:"Private Arcade",color:"info",icon:c(v)},null,8,["icon"])]),L,e.arcade.owners&&e.arcade.owners.length?(a(),t("p",M,[n(" Managed by "),(a(!0),t(d,null,_(e.arcade.owners,(r,i)=>(a(),t("span",{key:r.username,class:"font-bold"},[e.arcade.owners.length===2&&i===0?(a(),t(d,{key:0},[n(l(r.username),1)],64)):e.arcade.owners.length===2&&i===1?(a(),t(d,{key:1},[T,n(" "+l(r.username)+".",1)],64)):i===0?(a(),t(d,{key:2},[n(l(r.username),1)],64)):i===e.arcade.owners.length-1?(a(),t(d,{key:3},[n(", "),q,n(" "+l(r.username)+".",1)],64)):(a(),t(d,{key:4},[n(", "+l(r.username),1)],64))]))),128))])):u("",!0),e.useSmall?u("",!0):(a(),t("div",z,[o(f,{href:`/#/arcade/${e.arcade.id}/events`,icon:c(S),color:"info",label:"Event Settings"},null,8,["href","icon"]),o(f,{href:`/#/arcade/${e.arcade.id}/machines`,icon:c($),color:"info",label:"Machine List"},null,8,["href","icon"]),o(f,{href:`/#/arcade/${e.arcade.id}/paseli`,icon:c(p),color:"info",label:"PASELI"},null,8,["href","icon"])])),e.useSmall?(a(),t("div",D,[o(f,{href:`/#/arcade/${e.arcade.id}`,icon:c(B),color:"info",label:"Arcade Home",class:"w-full md:w-[150px]"},null,8,["href","icon"])])):u("",!0)])]),_:1})],4))}};export{R as _};
|
||||
|
|
@ -1 +1 @@
|
|||
import{u as f,r as u,o as v,a as c,c as g,w as l,b as e,i as b,P as x,e as h,a5 as y,_ as d,Q as w,R as $,g as s,f as r,F as S,k,l as V,n as A,p as I}from"./index.328ff2ed.js";import{_ as M}from"./ArcadeCard.14ee2144.js";import{_ as n}from"./FormCheckRadio.179dbea0.js";const N={class:"grid gap-4 grid-cols-2 md:grid-cols-4 mb-4"},P={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 mb-6"},B=s("h1",{class:"text-lg md:text-xl"},"OpenVPN Configuration",-1),E=s("p",{class:"pb-1 dark:text-white/50"}," Use this to export your VPN config. ",-1),R={__name:"ArcadeView",setup(C){const m=f(),a=u({}),i=u(!0),_=I(),p=parseInt(_.params.id);return v(async()=>{try{const t=await m.getArcade(p);a.value=t,i.value=!1}catch(t){console.log("Failed to fetch arcade data:",t)}}),(t,o)=>(c(),g(A,null,{default:l(()=>[e(V,null,{default:l(()=>[i.value?k("",!0):(c(),b(S,{key:0},[e(M,{class:"mb-6",arcade:a.value},null,8,["arcade"]),e(x,{icon:h(y),title:"Admin Overview",main:""},null,8,["icon"]),e(d,{"is-form":"",class:"mb-6",onSubmit:o[0]||(o[0]=w(()=>{},["prevent"]))},{default:l(()=>[e($,{color:"info",label:"General Settings",class:"mb-4"}),s("div",N,[e(n,{"model-value":a.value.data.paseli_enabled,"input-value":a.value.data.paseli_enabled,name:"paseli_enabled",type:"switch",label:"PASELI",class:"outline outline-gray-400 rounded-xl outline-1 text-sm md:text-md p-2"},null,8,["model-value","input-value"]),e(n,{"model-value":a.value.data.paseli_infinite,"input-value":a.value.data.paseli_infinite,name:"paseli_infinite",type:"switch",label:"Infinite PASELI",class:"outline outline-gray-400 rounded-xl outline-1 text-sm md:text-md p-2"},null,8,["model-value","input-value"]),e(n,{"model-value":a.value.data.maint,"input-value":a.value.data.maint,name:"maint",type:"switch",label:"Maintenance Mode",class:"outline outline-gray-400 rounded-xl outline-1 text-sm md:text-md p-2"},null,8,["model-value","input-value"])]),e(r,{color:"success",type:"submit",label:"Save",small:!1})]),_:1}),s("div",P,[e(d,null,{default:l(()=>[B,E,e(r,{small:!1,color:"success",class:"my-2",label:"Export"})]),_:1})])],64))]),_:1})]),_:1}))}};export{R as default};
|
||||
import{u as f,r as u,o as v,a as c,c as g,w as l,b as e,i as b,P as x,e as h,a5 as y,_ as d,Q as w,R as $,g as s,f as r,F as S,k,l as V,n as A,p as I}from"./index.93cb35a3.js";import{_ as M}from"./ArcadeCard.03f06a34.js";import{_ as n}from"./FormCheckRadio.91ce0c67.js";const N={class:"grid gap-4 grid-cols-2 md:grid-cols-4 mb-4"},P={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 mb-6"},B=s("h1",{class:"text-lg md:text-xl"},"OpenVPN Configuration",-1),E=s("p",{class:"pb-1 dark:text-white/50"}," Use this to export your VPN config. ",-1),R={__name:"ArcadeView",setup(C){const m=f(),a=u({}),i=u(!0),_=I(),p=parseInt(_.params.id);return v(async()=>{try{const t=await m.getArcade(p);a.value=t,i.value=!1}catch(t){console.log("Failed to fetch arcade data:",t)}}),(t,o)=>(c(),g(A,null,{default:l(()=>[e(V,null,{default:l(()=>[i.value?k("",!0):(c(),b(S,{key:0},[e(M,{class:"mb-6",arcade:a.value},null,8,["arcade"]),e(x,{icon:h(y),title:"Admin Overview",main:""},null,8,["icon"]),e(d,{"is-form":"",class:"mb-6",onSubmit:o[0]||(o[0]=w(()=>{},["prevent"]))},{default:l(()=>[e($,{color:"info",label:"General Settings",class:"mb-4"}),s("div",N,[e(n,{"model-value":a.value.data.paseli_enabled,"input-value":a.value.data.paseli_enabled,name:"paseli_enabled",type:"switch",label:"PASELI",class:"outline outline-gray-400 rounded-xl outline-1 text-sm md:text-md p-2"},null,8,["model-value","input-value"]),e(n,{"model-value":a.value.data.paseli_infinite,"input-value":a.value.data.paseli_infinite,name:"paseli_infinite",type:"switch",label:"Infinite PASELI",class:"outline outline-gray-400 rounded-xl outline-1 text-sm md:text-md p-2"},null,8,["model-value","input-value"]),e(n,{"model-value":a.value.data.maint,"input-value":a.value.data.maint,name:"maint",type:"switch",label:"Maintenance Mode",class:"outline outline-gray-400 rounded-xl outline-1 text-sm md:text-md p-2"},null,8,["model-value","input-value"])]),e(r,{color:"success",type:"submit",label:"Save",small:!1})]),_:1}),s("div",P,[e(d,null,{default:l(()=>[B,E,e(r,{small:!1,color:"success",class:"my-2",label:"Export"})]),_:1})])],64))]),_:1})]),_:1}))}};export{R as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{u,r as p,o as g,a as o,c as f,w as i,b as s,O as C,P as h,e as l,$ as b,g as e,i as d,j as x,t as v,f as n,F as k,l as y,n as w}from"./index.328ff2ed.js";import{d as $}from"./userData.bcc92478.js";const D="/assets/passes/generic.png",F=e("div",{class:"text-xl mb-4"},[e("h4",null,"AC = Web Access Code"),e("h4",null,"NFC-ID = Internal ID for card0.txt")],-1),A={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},B={class:"flex justify-between md:grid md:gap-2 mb-4 items-center"},I=e("img",{src:D,class:"w-24 md:w-auto"},null,-1),N={class:"text-xl text-center font-mono"},S={class:"grid grid-cols-3 md:grid-cols-2 gap-2"},O={__name:"CardsView",setup(V){const _=u();var c=p([]);g(async()=>{try{const a=await _.getCards();c.value=a}catch(a){console.error("Failed to fetch card data:",a)}});const r=a=>{navigator.clipboard.writeText(a).then(()=>{alert("Copied to clipboard!")}).catch(()=>{alert("Failed to copy to clipboard!")})};return(a,j)=>(o(),f(w,null,{default:i(()=>[s(y,null,{default:i(()=>[s(C,{class:"mb-6","use-small":"","even-smaller":""}),s(h,{icon:l(b),title:"Login Cards",main:""},null,8,["icon"]),F,e("div",A,[(o(!0),d(k,null,x(l(c),t=>(o(),d("div",{key:t.id,class:"grid dark:bg-slate-900/70 rounded-2xl p-5"},[e("div",B,[I,e("h1",N,v(l($)(t.encoded)),1)]),e("div",S,[s(n,{color:"info",label:"Copy AC",onClick:m=>r(t.encoded)},null,8,["onClick"]),s(n,{color:"info",label:"Copy NFC-ID",onClick:m=>r(t.id)},null,8,["onClick"]),s(n,{color:"danger",label:"Delete"})])]))),128))])]),_:1})]),_:1}))}};export{O as default};
|
||||
1
assets/CardsView.35595595.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
import{u,r as p,o as f,a as o,c as g,w as i,b as s,O as C,P as h,e as l,$ as b,g as e,i as d,j as x,t as v,f as n,F as k,l as w,n as y}from"./index.93cb35a3.js";import{d as $}from"./userData.bcc92478.js";const D="/assets/passes/generic.webp",F=e("div",{class:"text-xl mb-4"},[e("h4",null,"AC = Web Access Code"),e("h4",null,"NFC-ID = Internal ID for card0.txt")],-1),A={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},B={class:"flex justify-between md:grid md:gap-2 mb-4 items-center"},I=e("img",{src:D,class:"w-24 md:w-auto"},null,-1),N={class:"text-xl text-center font-mono"},S={class:"grid grid-cols-3 md:grid-cols-2 gap-2"},O={__name:"CardsView",setup(V){const _=u();var c=p([]);f(async()=>{try{const a=await _.getCards();c.value=a}catch(a){console.error("Failed to fetch card data:",a)}});const r=a=>{navigator.clipboard.writeText(a).then(()=>{alert("Copied to clipboard!")}).catch(()=>{alert("Failed to copy to clipboard!")})};return(a,j)=>(o(),g(y,null,{default:i(()=>[s(w,null,{default:i(()=>[s(C,{class:"mb-6","use-small":"","even-smaller":""}),s(h,{icon:l(b),title:"Login Cards",main:""},null,8,["icon"]),F,e("div",A,[(o(!0),d(k,null,x(l(c),t=>(o(),d("div",{key:t.id,class:"grid dark:bg-slate-900/70 rounded-2xl p-5"},[e("div",B,[I,e("h1",N,v(l($)(t.encoded)),1)]),e("div",S,[s(n,{color:"info",label:"Copy AC",onClick:m=>r(t.encoded)},null,8,["onClick"]),s(n,{color:"info",label:"Copy NFC-ID",onClick:m=>r(t.id)},null,8,["onClick"]),s(n,{color:"danger",label:"Delete"})])]))),128))])]),_:1})]),_:1}))}};export{O as default};
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
import{r as y,s as P,N as S,ar as R,a,c as t,w as f,g as d,b as u,f as k,R as U,i as x,F as j,j as N,_ as Q,u as q,ad as G,o as z,e as h,m as F,k as p,P as A,as as I,ac as K,l as M,n as O,p as D,q as H}from"./index.328ff2ed.js";import{b as L,U as T,_ as J}from"./ProfileCard.fdd438db.js";import{_ as C}from"./FormField.2ce4f759.js";import{_ as W}from"./FormCheckRadio.179dbea0.js";import{_ as w}from"./FormControl.e10a742f.js";import"./userData.bcc92478.js";const X={class:"grid md:grid-cols-2 space-y-6 align-center"},Y={class:"place-self-center"},Z={class:"space-x-2"},ee={__name:"EmblemCardBox",props:{profile:{type:Object,default:null},version:{type:Number,default:14}},setup(E){var m,B;const i=E,_=y(i.profile),b=y(i.version),c=y(0),r=P(g((B=(m=_.value)==null?void 0:m.last)==null?void 0:B.emblem)),s=y([]);S(()=>i.version,()=>{var e;_.value=i.profile,b.value=i.version,l(),r.value=g((e=_.value.last)==null?void 0:e.emblem)}),S(r,()=>{c.value++},{deep:!0}),l();function l(){R.get(`https://web3.phaseii.network/gameassets/emblems/${b.value}.json`).then(e=>{e.data&&(s.value=e.data)}).catch(e=>{console.log(e.message)})}function g(e){return e?{background:e[0],main:e[1],ornament:e[2],effect:e[3],speech_bubble:e[4]}:{background:0,main:0,ornament:0,effect:0,speech_bubble:0}}function $(e){return e?[e.background,e.main,e.ornament,e.effect,e.speech_bubble]:[0,0,0,0,0]}return(e,n)=>(a(),t(Q,{class:"mt-6"},{footer:f(()=>[d("div",Z,[u(k,{type:"submit",color:"success",label:"Save"}),u(k,{type:"submit",color:"danger",label:"Revert"})])]),default:f(()=>[u(U,{color:"info",label:"Emblem",class:"mb-2"}),d("div",X,[d("div",null,[(a(!0),x(j,null,N(s.value,v=>(a(),t(C,{key:v.id,label:v.name,help:v.help},{default:f(()=>[u(w,{modelValue:r[v.id],"onUpdate:modelValue":V=>r[v.id]=V,options:v.options},null,8,["modelValue","onUpdate:modelValue","options"])]),_:2},1032,["label","help"]))),128))]),d("div",Y,[(a(),t(L,{key:c.value,version:b.value,profile:{last:{emblem:$(r)}},size:300},null,8,["version","profile"]))])])]),_:1}))}},le={class:"grid md:grid-cols-2 space-y-6 align-center"},se={class:"place-self-center"},ae={class:"space-x-2"},re={__name:"QproCardBox",props:{profile:{type:Object,default:null},version:{type:Number,default:14}},setup(E){var g,$;const i=E,_=y(i.profile),b=y(i.version),c=y(0),r=P(($=(g=_.value)==null?void 0:g.qpro)!=null?$:{head:0,hair:0,face:0,body:0,hand:0}),s=y([]);S(()=>i.version,()=>{var m;_.value=i.profile,l(),r.value=(m=_.value)==null?void 0:m.qpro}),S(()=>i.version,()=>{b.value=i.version}),S(r,()=>{c.value++},{deep:!0}),l();function l(){R.get(`https://web3.phaseii.network/gameassets/qpro/${b.value}.json`).then(m=>{m.data&&(s.value=m.data)}).catch(m=>{console.log(m.message)})}return(m,B)=>(a(),t(Q,{class:"mt-6"},{footer:f(()=>[d("div",ae,[u(k,{type:"submit",color:"success",label:"Save"}),u(k,{type:"submit",color:"danger",label:"Revert"})])]),default:f(()=>[u(U,{color:"info",label:"QPro",class:"mb-2"}),d("div",le,[d("div",null,[(a(!0),x(j,null,N(s.value,e=>(a(),t(C,{key:e.id,label:e.name,help:e.help},{default:f(()=>[u(w,{modelValue:r[e.id],"onUpdate:modelValue":n=>r[e.id]=n,options:e.options},null,8,["modelValue","onUpdate:modelValue","options"])]),_:2},1032,["label","help"]))),128))]),d("div",se,[(a(),t(T,{key:c.value,version:b.value,profile:{qpro:r},style:{scale:"1.9"},class:"my-16 mb-10"},null,8,["version","profile"]))])])]),_:1}))}},oe={class:"md:flex pb-6 md:justify-between md:items-center"},ne={key:0,class:"mt-2 md:mt-0 md:w-1/3 md:text-right"},te=d("h2",{class:"text-md sm:text-lg md:text-xl font-bold p-2"}," Select Version ",-1),ue={class:"bg-white dark:bg-slate-900/90 rounded-2xl pt-6 p-3"},ie={class:"w-full"},ce={key:2},de={class:"space-x-2"},he={__name:"EditView",setup(E){const i=D(),_=H(),b=q();var c=null,r=null;const s=P({currentVersion:null});S(()=>s.currentVersion,()=>{e()}),c=i.params.game,r=G(c),r||_.push({name:"ErrorPage",params:{catchAll:"404"}}),r.versions||(s.currentVersion=1);const l=y(null);z(()=>{e()});var g=[{id:"name",name:"Username",help:"Set your username for this profile",type:String}];function $(){var n=null;return s.currentVersion?n=`/assets/games/${r.id}/card/${s.currentVersion}.png`:n=r.cardBG,n}function m(){return`
|
||||
import{r as y,s as P,N as S,ar as R,a,c as n,w as f,g as d,b as u,f as k,R as U,i as x,F as j,j as N,_ as Q,u as q,ad as G,o as z,e as h,m as F,k as p,P as A,as as I,ac as K,l as M,n as O,p as D,q as H}from"./index.93cb35a3.js";import{b as L,U as T,_ as J}from"./ProfileCard.3258fb10.js";import{_ as C}from"./FormField.438d4afd.js";import{_ as W}from"./FormCheckRadio.91ce0c67.js";import{_ as w}from"./FormControl.6789cb84.js";import"./userData.bcc92478.js";const X={class:"grid md:grid-cols-2 space-y-6 align-center"},Y={class:"place-self-center"},Z={class:"space-x-2"},ee={__name:"EmblemCardBox",props:{profile:{type:Object,default:null},version:{type:Number,default:14}},setup(E){var m,B;const i=E,_=y(i.profile),b=y(i.version),c=y(0),r=P(V((B=(m=_.value)==null?void 0:m.last)==null?void 0:B.emblem)),s=y([]);S(()=>i.version,()=>{var e;_.value=i.profile,b.value=i.version,l(),r.value=V((e=_.value.last)==null?void 0:e.emblem)}),S(r,()=>{c.value++},{deep:!0}),l();function l(){R.get(`https://web3.phaseii.network/gameassets/emblems/${b.value}.json`).then(e=>{e.data&&(s.value=e.data)}).catch(e=>{console.log(e.message)})}function V(e){return e?{background:e[0],main:e[1],ornament:e[2],effect:e[3],speech_bubble:e[4]}:{background:0,main:0,ornament:0,effect:0,speech_bubble:0}}function $(e){return e?[e.background,e.main,e.ornament,e.effect,e.speech_bubble]:[0,0,0,0,0]}return(e,t)=>(a(),n(Q,{class:"mt-6"},{footer:f(()=>[d("div",Z,[u(k,{type:"submit",color:"success",label:"Save"}),u(k,{type:"submit",color:"danger",label:"Revert"})])]),default:f(()=>[u(U,{color:"info",label:"Emblem",class:"mb-2"}),d("div",X,[d("div",null,[(a(!0),x(j,null,N(s.value,v=>(a(),n(C,{key:v.id,label:v.name,help:v.help},{default:f(()=>[u(w,{modelValue:r[v.id],"onUpdate:modelValue":g=>r[v.id]=g,options:v.options},null,8,["modelValue","onUpdate:modelValue","options"])]),_:2},1032,["label","help"]))),128))]),d("div",Y,[(a(),n(L,{key:c.value,version:b.value,profile:{last:{emblem:$(r)}},size:300},null,8,["version","profile"]))])])]),_:1}))}},le={class:"grid md:grid-cols-2 space-y-6 align-center"},se={class:"place-self-center"},ae={class:"space-x-2"},re={__name:"QproCardBox",props:{profile:{type:Object,default:null},version:{type:Number,default:14}},setup(E){var V,$;const i=E,_=y(i.profile),b=y(i.version),c=y(0),r=P(($=(V=_.value)==null?void 0:V.qpro)!=null?$:{head:0,hair:0,face:0,body:0,hand:0}),s=y([]);S(()=>i.version,()=>{var m;_.value=i.profile,l(),r.value=(m=_.value)==null?void 0:m.qpro}),S(()=>i.version,()=>{b.value=i.version}),S(r,()=>{c.value++},{deep:!0}),l();function l(){R.get(`https://web3.phaseii.network/gameassets/qpro/${b.value}.json`).then(m=>{m.data&&(s.value=m.data)}).catch(m=>{console.log(m.message)})}return(m,B)=>(a(),n(Q,{class:"mt-6"},{footer:f(()=>[d("div",ae,[u(k,{type:"submit",color:"success",label:"Save"}),u(k,{type:"submit",color:"danger",label:"Revert"})])]),default:f(()=>[u(U,{color:"info",label:"QPro",class:"mb-2"}),d("div",le,[d("div",null,[(a(!0),x(j,null,N(s.value,e=>(a(),n(C,{key:e.id,label:e.name,help:e.help},{default:f(()=>[u(w,{modelValue:r[e.id],"onUpdate:modelValue":t=>r[e.id]=t,options:e.options},null,8,["modelValue","onUpdate:modelValue","options"])]),_:2},1032,["label","help"]))),128))]),d("div",se,[(a(),n(T,{key:c.value,version:b.value,profile:{qpro:r},style:{scale:"1.9"},class:"my-16 mb-10"},null,8,["version","profile"]))])])]),_:1}))}},oe={class:"md:flex pb-6 md:justify-between md:items-center"},te={key:0,class:"mt-2 md:mt-0 md:w-1/3 md:text-right"},ne=d("h2",{class:"text-md sm:text-lg md:text-xl font-bold p-2"}," Select Version ",-1),ue={class:"bg-white dark:bg-slate-900/90 rounded-2xl pt-6 p-3"},ie={class:"w-full"},ce={key:2},de={class:"space-x-2"},he={__name:"EditView",setup(E){const i=D(),_=H(),b=q();var c=null,r=null;const s=P({currentVersion:null});S(()=>s.currentVersion,()=>{e()}),c=i.params.game,r=G(c),r||_.push({name:"ErrorPage",params:{catchAll:"404"}}),r.versions||(s.currentVersion=1);const l=y(null);z(()=>{e()});var V=[{id:"name",name:"Username",help:"Set your username for this profile",type:String}];function $(){var t=null;return s.currentVersion?t=`/assets/games/${r.id}/card/${s.currentVersion}.webp`:t=r.cardBG,t}function m(){return`
|
||||
background-image: url('${$()}');
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
`}function B(n){var v=[];for(const V of r.versions)n.includes(V.id)&&v.push(V);return v}async function e(){try{l.value=null;const n=await b.getUserProfile(c,s.currentVersion);l.value=n,n&&!s.currentVersion&&(s.currentVersion=n.versions[n.versions.length-1])}catch(n){console.error("Failed to fetch user profile data:",n)}}return(n,v)=>(a(),t(O,null,{default:f(()=>[u(M,null,{default:f(()=>{var V;return[d("div",oe,[u(k,{icon:h(F),href:`/#/games/${h(c)}`,class:"w-full md:w-auto",color:"info",label:"Go Back"},null,8,["icon","href"]),h(r).versions&&l.value?(a(),x("div",ne,[te,u(w,{modelValue:s.currentVersion,"onUpdate:modelValue":v[0]||(v[0]=o=>s.currentVersion=o),options:B(l.value.versions)},null,8,["modelValue","options"])])):p("",!0)]),s.currentVersion?(a(),t(A,{key:0,icon:h(I),title:"Profile Customizations",main:""},null,8,["icon"])):p("",!0),s.currentVersion?(a(),x("div",{key:1,style:K(m()),class:"rounded-2xl mb-6"},[d("div",ue,[d("div",ie,[l.value?(a(),t(J,{key:0,"use-small":"",game:h(c),profile:l.value,version:s.currentVersion},null,8,["game","profile","version"])):p("",!0)])])],4)):p("",!0),s.currentVersion&&l.value?(a(),x("div",ce,[u(Q,null,{footer:f(()=>[d("div",de,[u(k,{type:"submit",color:"success",label:"Save"}),u(k,{type:"submit",color:"danger",label:"Revert"})])]),default:f(()=>[d("div",null,[u(U,{color:"info",label:"General",class:"mb-2"}),(a(!0),x(j,null,N(h(g),o=>(a(),t(C,{key:o.id,label:o.name,help:o.help},{default:f(()=>[o.type==String?(a(),t(w,{key:0,"v-model":l.value[o.id],"model-value":l.value[o.id]},null,8,["v-model","model-value"])):p("",!0),o.type==Number?(a(),t(w,{key:1,"v-model":l.value[o.id],"model-value":l.value[o.id],type:"number"},null,8,["v-model","model-value"])):p("",!0),o.type==Array?(a(),t(w,{key:2,options:o.options,"v-model":l.value[o.id],"model-value":l.value[o.id],selected:l.value[o.id]},null,8,["options","v-model","model-value","selected"])):p("",!0),o.type==Boolean?(a(),t(W,{key:3,"v-model":l.value[o.id],"model-value":l.value[o.id],type:"switch"},null,8,["v-model","model-value"])):p("",!0)]),_:2},1032,["label","help"]))),128))])]),_:1}),h(c)=="jubeat"&&s.currentVersion>=10&&((V=l.value.last)==null?void 0:V.emblem)?(a(),t(ee,{key:0,profile:l.value,version:s.currentVersion},null,8,["profile","version"])):p("",!0),(h(c)=="iidx"||h(c)=="iidxclass")&&s.currentVersion>=19?(a(),t(re,{key:1,profile:l.value,version:s.currentVersion},null,8,["profile","version"])):p("",!0)])):p("",!0)]}),_:1})]),_:1}))}};export{he as default};
|
||||
`}function B(t){var v=[];for(const g of r.versions)t.includes(g.id)&&v.push(g);return v}async function e(){try{l.value=null;const t=await b.getUserProfile(c,s.currentVersion);l.value=t,t&&!s.currentVersion&&(s.currentVersion=t.versions[t.versions.length-1])}catch(t){console.error("Failed to fetch user profile data:",t)}}return(t,v)=>(a(),n(O,null,{default:f(()=>[u(M,null,{default:f(()=>{var g;return[d("div",oe,[u(k,{icon:h(F),href:`/#/games/${h(c)}`,class:"w-full md:w-auto",color:"info",label:"Go Back"},null,8,["icon","href"]),h(r).versions&&l.value?(a(),x("div",te,[ne,u(w,{modelValue:s.currentVersion,"onUpdate:modelValue":v[0]||(v[0]=o=>s.currentVersion=o),options:B(l.value.versions)},null,8,["modelValue","options"])])):p("",!0)]),s.currentVersion?(a(),n(A,{key:0,icon:h(I),title:"Profile Customizations",main:""},null,8,["icon"])):p("",!0),s.currentVersion?(a(),x("div",{key:1,style:K(m()),class:"rounded-2xl mb-6"},[d("div",ue,[d("div",ie,[l.value?(a(),n(J,{key:0,"use-small":"",game:h(c),profile:l.value,version:s.currentVersion},null,8,["game","profile","version"])):p("",!0)])])],4)):p("",!0),s.currentVersion&&l.value?(a(),x("div",ce,[u(Q,null,{footer:f(()=>[d("div",de,[u(k,{type:"submit",color:"success",label:"Save"}),u(k,{type:"submit",color:"danger",label:"Revert"})])]),default:f(()=>[d("div",null,[u(U,{color:"info",label:"General",class:"mb-2"}),(a(!0),x(j,null,N(h(V),o=>(a(),n(C,{key:o.id,label:o.name,help:o.help},{default:f(()=>[o.type==String?(a(),n(w,{key:0,"v-model":l.value[o.id],"model-value":l.value[o.id]},null,8,["v-model","model-value"])):p("",!0),o.type==Number?(a(),n(w,{key:1,"v-model":l.value[o.id],"model-value":l.value[o.id],type:"number"},null,8,["v-model","model-value"])):p("",!0),o.type==Array?(a(),n(w,{key:2,options:o.options,"v-model":l.value[o.id],"model-value":l.value[o.id],selected:l.value[o.id]},null,8,["options","v-model","model-value","selected"])):p("",!0),o.type==Boolean?(a(),n(W,{key:3,"v-model":l.value[o.id],"model-value":l.value[o.id],type:"switch"},null,8,["v-model","model-value"])):p("",!0)]),_:2},1032,["label","help"]))),128))])]),_:1}),h(c)=="jubeat"&&s.currentVersion>=10&&((g=l.value.last)==null?void 0:g.emblem)?(a(),n(ee,{key:0,profile:l.value,version:s.currentVersion},null,8,["profile","version"])):p("",!0),(h(c)=="iidx"||h(c)=="iidxclass")&&s.currentVersion>=19?(a(),n(re,{key:1,profile:l.value,version:s.currentVersion},null,8,["profile","version"])):p("",!0)])):p("",!0)]}),_:1})]),_:1}))}};export{he as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{a,c as l,w as s,g as e,b as t,f as o,_ as r,z as c}from"./index.328ff2ed.js";import{_ as n}from"./LayoutGuest.153511a4.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,z as c}from"./index.93cb35a3.js";import{_ as n}from"./LayoutGuest.833ba102.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,N as w,a as l,c as r,w as d,b as s,i as u,P as E,e as O,a8 as A,_ as F,g as i,k as m,Y as M,t as P,F as h,j,f as D,l as T,n as W,p as L,ad as v,ae as Q}from"./index.328ff2ed.js";import{_ as R}from"./ArcadeCard.14ee2144.js";import{_ as y}from"./FormField.2ce4f759.js";import{_ as c}from"./FormControl.e10a742f.js";import{_ as X}from"./FormCheckRadio.179dbea0.js";const Y={class:"mb-4"},q={class:"grid md:grid-cols-2 gap-4"},z=i("p",{class:"pb-2 text-lg"},"Game",-1),H={key:0},J=i("p",{class:"pb-2 text-lg"},"Version",-1),K={key:0},Z={class:"text-xl"},ee=i("hr",{class:"pb-1 my-2"},null,-1),ie={__name:"EventView",setup(ae){const b=G(),f=g({}),_=g(!0),V=L(),S=parseInt(V.params.id);N(async()=>{try{const t=await b.getArcade(S);f.value=t,_.value=!1}catch(t){console.log("Failed to fetch arcade data:",t)}});const p=[{id:"iidx",versions:[{id:22,settings:[{id:0,keyId:"coke",type:Boolean,name:"Enable Coke-X-BEMANI",tooltip:"Enables the long forgotten Coca-Cola event.",value:!0},{id:1,keyId:"phase",type:Array,name:"Current BOSS Phase",tooltip:"Set the main game event.",options:[{id:0,label:"No Event"},{id:1,label:"Chrono Seeker"},{id:2,label:"QPronicle Chord"}],value:1}]}]},{id:"dm",versions:[{id:18,settings:[{id:0,keyId:"banner",type:String,name:"Title Screen Banner",tooltip:"Set the text for the banner.",value:""}]},{id:17,settings:[{id:0,keyId:"banner",type:String,name:"Title Screen Banner",tooltip:"Set the text for the banner.",value:""}]}]}],o=U({game:null,version:null});function k(){var t=[];for(const a of Q)p.find(n=>n.id==a.id)&&t.push(a.id);return t}function I(){var t=[];const a=k();for(const e of a)t.push({id:e,label:v(e).name});return t}function $(){const t=p.find(e=>e.id==o.game);var a=[];for(const e of t.versions){const n=v(o.game).versions.find(C=>C.id==e.id);a.push({id:e.id,label:n.label})}return a}function x(){return p.find(a=>a.id==o.game).versions.find(a=>a.id==o.version)}function B(){const t=v(o.game),a=t.versions.find(e=>e.id==o.version);return`${t.name} ${a.label}`}return w(()=>o.game,()=>{o.version=null}),(t,a)=>(l(),r(W,null,{default:d(()=>[s(T,null,{default:d(()=>[_.value?m("",!0):(l(),u(h,{key:0},[s(R,{class:"mb-6",arcade:f.value,"use-small":!0},null,8,["arcade"]),s(E,{icon:O(A),title:"Game Event Settings",main:""},null,8,["icon"]),s(F,{class:"mb-6"},{default:d(()=>[i("div",Y,[s(y,{label:"Select Game",help:"Pick a game and version to get started."},{default:d(()=>[i("div",q,[i("div",null,[z,s(c,{modelValue:o.game,"onUpdate:modelValue":a[0]||(a[0]=e=>o.game=e),name:"game",options:I()},null,8,["modelValue","options"])]),o.game?(l(),u("div",H,[J,s(c,{modelValue:o.version,"onUpdate:modelValue":a[1]||(a[1]=e=>o.version=e),name:"version",options:$()},null,8,["modelValue","options"])])):m("",!0)])]),_:1})]),o.game&&o.version?(l(),u("div",K,[i("h2",Z,[M(" Settings for "),i("b",null,P(B()),1)]),ee,(l(!0),u(h,null,j(x().settings,e=>(l(),r(y,{key:e.id,label:e.name,help:e.tooltip},{default:d(()=>[e.type==String?(l(),r(c,{key:0,modelValue:e.value,"onUpdate:modelValue":n=>e.value=n,"model-value":e.value,name:e.keyId,placeholder:"Not Set"},null,8,["modelValue","onUpdate:modelValue","model-value","name"])):e.type==Boolean?(l(),r(X,{key:1,modelValue:e.value,"onUpdate:modelValue":n=>e.value=n,"input-value":e.value,type:"switch",name:e.keyId},null,8,["modelValue","onUpdate:modelValue","input-value","name"])):m("",!0),e.type==Array?(l(),r(c,{key:2,modelValue:e.options[e.value],"onUpdate:modelValue":n=>e.options[e.value]=n,name:e.keyId,options:e.options,placeholder:"Select..."},null,8,["modelValue","onUpdate:modelValue","name","options"])):m("",!0)]),_:2},1032,["label","help"]))),128)),s(D,{color:"success",type:"submit",label:"Save",small:!1})])):m("",!0)]),_:1})],64))]),_:1})]),_:1}))}};export{ie as default};
|
||||
import{u as G,r as g,o as N,s as U,N as w,a as l,c as r,w as d,b as s,i as u,P as E,e as O,a8 as A,_ as F,g as i,k as m,Y as M,t as P,F as h,j,f as D,l as T,n as W,p as L,ad as v,ae as Q}from"./index.93cb35a3.js";import{_ as R}from"./ArcadeCard.03f06a34.js";import{_ as y}from"./FormField.438d4afd.js";import{_ as c}from"./FormControl.6789cb84.js";import{_ as X}from"./FormCheckRadio.91ce0c67.js";const Y={class:"mb-4"},q={class:"grid md:grid-cols-2 gap-4"},z=i("p",{class:"pb-2 text-lg"},"Game",-1),H={key:0},J=i("p",{class:"pb-2 text-lg"},"Version",-1),K={key:0},Z={class:"text-xl"},ee=i("hr",{class:"pb-1 my-2"},null,-1),ie={__name:"EventView",setup(ae){const b=G(),f=g({}),_=g(!0),V=L(),S=parseInt(V.params.id);N(async()=>{try{const t=await b.getArcade(S);f.value=t,_.value=!1}catch(t){console.log("Failed to fetch arcade data:",t)}});const p=[{id:"iidx",versions:[{id:22,settings:[{id:0,keyId:"coke",type:Boolean,name:"Enable Coke-X-BEMANI",tooltip:"Enables the long forgotten Coca-Cola event.",value:!0},{id:1,keyId:"phase",type:Array,name:"Current BOSS Phase",tooltip:"Set the main game event.",options:[{id:0,label:"No Event"},{id:1,label:"Chrono Seeker"},{id:2,label:"QPronicle Chord"}],value:1}]}]},{id:"dm",versions:[{id:18,settings:[{id:0,keyId:"banner",type:String,name:"Title Screen Banner",tooltip:"Set the text for the banner.",value:""}]},{id:17,settings:[{id:0,keyId:"banner",type:String,name:"Title Screen Banner",tooltip:"Set the text for the banner.",value:""}]}]}],o=U({game:null,version:null});function k(){var t=[];for(const a of Q)p.find(n=>n.id==a.id)&&t.push(a.id);return t}function I(){var t=[];const a=k();for(const e of a)t.push({id:e,label:v(e).name});return t}function $(){const t=p.find(e=>e.id==o.game);var a=[];for(const e of t.versions){const n=v(o.game).versions.find(C=>C.id==e.id);a.push({id:e.id,label:n.label})}return a}function x(){return p.find(a=>a.id==o.game).versions.find(a=>a.id==o.version)}function B(){const t=v(o.game),a=t.versions.find(e=>e.id==o.version);return`${t.name} ${a.label}`}return w(()=>o.game,()=>{o.version=null}),(t,a)=>(l(),r(W,null,{default:d(()=>[s(T,null,{default:d(()=>[_.value?m("",!0):(l(),u(h,{key:0},[s(R,{class:"mb-6",arcade:f.value,"use-small":!0},null,8,["arcade"]),s(E,{icon:O(A),title:"Game Event Settings",main:""},null,8,["icon"]),s(F,{class:"mb-6"},{default:d(()=>[i("div",Y,[s(y,{label:"Select Game",help:"Pick a game and version to get started."},{default:d(()=>[i("div",q,[i("div",null,[z,s(c,{modelValue:o.game,"onUpdate:modelValue":a[0]||(a[0]=e=>o.game=e),name:"game",options:I()},null,8,["modelValue","options"])]),o.game?(l(),u("div",H,[J,s(c,{modelValue:o.version,"onUpdate:modelValue":a[1]||(a[1]=e=>o.version=e),name:"version",options:$()},null,8,["modelValue","options"])])):m("",!0)])]),_:1})]),o.game&&o.version?(l(),u("div",K,[i("h2",Z,[M(" Settings for "),i("b",null,P(B()),1)]),ee,(l(!0),u(h,null,j(x().settings,e=>(l(),r(y,{key:e.id,label:e.name,help:e.tooltip},{default:d(()=>[e.type==String?(l(),r(c,{key:0,modelValue:e.value,"onUpdate:modelValue":n=>e.value=n,"model-value":e.value,name:e.keyId,placeholder:"Not Set"},null,8,["modelValue","onUpdate:modelValue","model-value","name"])):e.type==Boolean?(l(),r(X,{key:1,modelValue:e.value,"onUpdate:modelValue":n=>e.value=n,"input-value":e.value,type:"switch",name:e.keyId},null,8,["modelValue","onUpdate:modelValue","input-value","name"])):m("",!0),e.type==Array?(l(),r(c,{key:2,modelValue:e.options[e.value],"onUpdate:modelValue":n=>e.options[e.value]=n,name:e.keyId,options:e.options,placeholder:"Select..."},null,8,["modelValue","onUpdate:modelValue","name","options"])):m("",!0)]),_:2},1032,["label","help"]))),128)),s(D,{color:"success",type:"submit",label:"Save",small:!1})])):m("",!0)]),_:1})],64))]),_:1})]),_:1}))}};export{ie as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{A as s,a as d,i as p,B as m,C as y,e as u,g as t,D as h,t as V,y as b}from"./index.328ff2ed.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{A as s,a as d,i as p,B as m,C as y,e as u,g as t,D as h,t as V,y as b}from"./index.93cb35a3.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,H as V,A as m,u as R,r as p,o as w,I as q,i as s,e as a,B as h,J as C,D as g,y as v,F as D,j as M,t as K,K as U,C as A,k as H}from"./index.328ff2ed.js";const I={__name:"FormControlIcon",props:{icon:{type:String,default:null},h:{type:String,default:null}},setup(e){return(d,n)=>(r(),B(V,{path:e.icon,w:"w-10",h:e.h,class:"absolute top-0 left-0 z-10 pointer-events-none text-gray-500 dark:text-slate-400"},null,8,["path","h"]))}},L={class:"relative"},j=["id","name"],z=["value"],N=["id","name","maxlength","placeholder","required"],T=["id","name","maxlength","inputmode","autocomplete","required","placeholder","type"],J={__name:"FormControl",props:{name:{type:String,default:null},id:{type:String,default:null},autocomplete:{type:String,default:null},maxlength:{type:String,default:null},placeholder:{type:String,default:null},inputmode:{type:String,default:null},icon:{type:String,default:null},options:{type:Array,default:null},type:{type:String,default:"text"},modelValue:{type:[String,Number,Boolean,Array,Object],default:""},required:Boolean,borderless:Boolean,transparent:Boolean,ctrlKFocus:Boolean},emits:["update:modelValue","setRef"],setup(e,{emit:d}){const n=e,o=m({get:()=>n.modelValue,set:u=>{d("update:modelValue",u)}}),f=m(()=>{const u=["px-3 py-2 max-w-full focus:ring focus:outline-none border-blue-700 dark:border-blue-500 rounded w-full","dark:placeholder-gray-400",i.value==="textarea"?"h-24":"h-12",n.borderless?"border-0":"border",n.transparent?"bg-transparent":"bg-white dark:bg-slate-800"];return n.icon&&u.push("pl-10"),u}),i=m(()=>n.options?"select":n.type),E=m(()=>n.type==="textarea"?"h-full":"h-12"),y=R(),x=p(null),k=p(null),c=p(null);if(w(()=>{x.value?d("setRef",x.value):k.value?d("setRef",k.value):d("setRef",c.value)}),n.ctrlKFocus){const u=l=>{l.ctrlKey&&l.key==="k"?(l.preventDefault(),c.value.focus()):l.key==="Escape"&&c.value.blur()};w(()=>{y.isFieldFocusRegistered||(window.addEventListener("keydown",u),y.isFieldFocusRegistered=!0)}),q(()=>{window.removeEventListener("keydown",u),y.isFieldFocusRegistered=!1})}return(u,l)=>(r(),s("div",L,[a(i)==="select"?h((r(),s("select",{key:0,id:e.id,"onUpdate:modelValue":l[0]||(l[0]=t=>g(o)?o.value=t:null),name:e.name,class:v(a(f))},[(r(!0),s(D,null,M(e.options,t=>{var b,S,F;return r(),s("option",{key:(b=t.id)!=null?b:t,value:(S=t.id)!=null?S:t},K((F=t.label)!=null?F:t),9,z)}),128))],10,j)),[[C,a(o)]]):a(i)==="textarea"?h((r(),s("textarea",{key:1,id:e.id,"onUpdate:modelValue":l[1]||(l[1]=t=>g(o)?o.value=t:null),class:v(a(f)),name:e.name,maxlength:e.maxlength,placeholder:e.placeholder,required:e.required},null,10,N)),[[U,a(o)]]):h((r(),s("input",{key:2,id:e.id,ref_key:"inputEl",ref:c,"onUpdate:modelValue":l[2]||(l[2]=t=>g(o)?o.value=t:null),name:e.name,maxlength:e.maxlength,inputmode:e.inputmode,autocomplete:e.autocomplete,required:e.required,placeholder:e.placeholder,type:a(i),class:v(a(f))},null,10,T)),[[A,a(o)]]),e.icon?(r(),B(I,{key:3,icon:e.icon,h:a(E)},null,8,["icon","h"])):H("",!0)]))}};export{J as _};
|
||||
import{a as r,c as B,H as V,A as m,u as R,r as p,o as w,I as q,i as s,e as a,B as h,J as C,D as g,y as v,F as D,j as M,t as K,K as U,C as A,k as H}from"./index.93cb35a3.js";const I={__name:"FormControlIcon",props:{icon:{type:String,default:null},h:{type:String,default:null}},setup(e){return(d,n)=>(r(),B(V,{path:e.icon,w:"w-10",h:e.h,class:"absolute top-0 left-0 z-10 pointer-events-none text-gray-500 dark:text-slate-400"},null,8,["path","h"]))}},L={class:"relative"},j=["id","name"],z=["value"],N=["id","name","maxlength","placeholder","required"],T=["id","name","maxlength","inputmode","autocomplete","required","placeholder","type"],J={__name:"FormControl",props:{name:{type:String,default:null},id:{type:String,default:null},autocomplete:{type:String,default:null},maxlength:{type:String,default:null},placeholder:{type:String,default:null},inputmode:{type:String,default:null},icon:{type:String,default:null},options:{type:Array,default:null},type:{type:String,default:"text"},modelValue:{type:[String,Number,Boolean,Array,Object],default:""},required:Boolean,borderless:Boolean,transparent:Boolean,ctrlKFocus:Boolean},emits:["update:modelValue","setRef"],setup(e,{emit:d}){const n=e,o=m({get:()=>n.modelValue,set:u=>{d("update:modelValue",u)}}),f=m(()=>{const u=["px-3 py-2 max-w-full focus:ring focus:outline-none border-blue-700 dark:border-blue-500 rounded w-full","dark:placeholder-gray-400",i.value==="textarea"?"h-24":"h-12",n.borderless?"border-0":"border",n.transparent?"bg-transparent":"bg-white dark:bg-slate-800"];return n.icon&&u.push("pl-10"),u}),i=m(()=>n.options?"select":n.type),E=m(()=>n.type==="textarea"?"h-full":"h-12"),y=R(),x=p(null),k=p(null),c=p(null);if(w(()=>{x.value?d("setRef",x.value):k.value?d("setRef",k.value):d("setRef",c.value)}),n.ctrlKFocus){const u=l=>{l.ctrlKey&&l.key==="k"?(l.preventDefault(),c.value.focus()):l.key==="Escape"&&c.value.blur()};w(()=>{y.isFieldFocusRegistered||(window.addEventListener("keydown",u),y.isFieldFocusRegistered=!0)}),q(()=>{window.removeEventListener("keydown",u),y.isFieldFocusRegistered=!1})}return(u,l)=>(r(),s("div",L,[a(i)==="select"?h((r(),s("select",{key:0,id:e.id,"onUpdate:modelValue":l[0]||(l[0]=t=>g(o)?o.value=t:null),name:e.name,class:v(a(f))},[(r(!0),s(D,null,M(e.options,t=>{var b,S,F;return r(),s("option",{key:(b=t.id)!=null?b:t,value:(S=t.id)!=null?S:t},K((F=t.label)!=null?F:t),9,z)}),128))],10,j)),[[C,a(o)]]):a(i)==="textarea"?h((r(),s("textarea",{key:1,id:e.id,"onUpdate:modelValue":l[1]||(l[1]=t=>g(o)?o.value=t:null),class:v(a(f)),name:e.name,maxlength:e.maxlength,placeholder:e.placeholder,required:e.required},null,10,N)),[[U,a(o)]]):h((r(),s("input",{key:2,id:e.id,ref_key:"inputEl",ref:c,"onUpdate:modelValue":l[2]||(l[2]=t=>g(o)?o.value=t:null),name:e.name,maxlength:e.maxlength,inputmode:e.inputmode,autocomplete:e.autocomplete,required:e.required,placeholder:e.placeholder,type:a(i),class:v(a(f))},null,10,T)),[[A,a(o)]]),e.icon?(r(),B(I,{key:3,icon:e.icon,h:a(E)},null,8,["icon","h"])):H("",!0)]))}};export{J as _};
|
||||
|
|
@ -1 +1 @@
|
|||
import{E as d,A as i,a as l,i as a,t as o,k as r,g as u,G as m,y as f,e as b}from"./index.328ff2ed.js";const g={class:"mb-6 last:mb-0"},h=["for"],p={key:1,class:"text-xs text-gray-500 dark:text-slate-400 mt-1"},k={__name:"FormField",props:{label:{type:String,default:null},labelFor:{type:String,default:null},help:{type:String,default:null}},setup(e){const n=d(),c=i(()=>{const t=[],s=n.default().length;return s>1&&t.push("grid grid-cols-1 gap-3"),s===2&&t.push("md:grid-cols-2"),t});return(t,s)=>(l(),a("div",g,[e.label?(l(),a("label",{key:0,for:e.labelFor,class:"block font-bold mb-2"},o(e.label),9,h)):r("",!0),u("div",{class:f(b(c))},[m(t.$slots,"default")],2),e.help?(l(),a("div",p,o(e.help),1)):r("",!0)]))}};export{k as _};
|
||||
import{E as d,A as i,a as l,i as a,t as o,k as r,g as u,G as m,y as f,e as b}from"./index.93cb35a3.js";const g={class:"mb-6 last:mb-0"},h=["for"],p={key:1,class:"text-xs text-gray-500 dark:text-slate-400 mt-1"},k={__name:"FormField",props:{label:{type:String,default:null},labelFor:{type:String,default:null},help:{type:String,default:null}},setup(e){const n=d(),c=i(()=>{const t=[],s=n.default().length;return s>1&&t.push("grid grid-cols-1 gap-3"),s===2&&t.push("md:grid-cols-2"),t});return(t,s)=>(l(),a("div",g,[e.label?(l(),a("label",{key:0,for:e.labelFor,class:"block font-bold mb-2"},o(e.label),9,h)):r("",!0),u("div",{class:f(b(c))},[m(t.$slots,"default")],2),e.help?(l(),a("div",p,o(e.help),1)):r("",!0)]))}};export{k as _};
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import{A as N,E as j,a as c,i as m,g as n,b as u,ai as C,t as L,e as a,G as M,k as d,u as E,s as T,N as q,ad as z,r as k,o as H,c as h,w as g,aj as V,F as U,f as P,ak as O,al as X,ac as J,P as K,am as Q,_ as W,l as Y,n as Z,p as ee,q as se}from"./index.328ff2ed.js";import{_ as te}from"./FormControl.e10a742f.js";import{_ as ae}from"./ProfileCard.fdd438db.js";import{_ as re}from"./GeneralTable.af11d887.js";import{d as le}from"./userData.bcc92478.js";import{g as S}from"./danClass.233b0381.js";const oe={class:"pt-6 mb-6 flex items-center justify-between"},ne={class:"flex items-center justify-start space-x-2"},ie={class:"text-2xl md:text-3xl leading-tight"},ce={__name:"GameTitleLine",props:{path:{type:String,default:null},title:{type:String,required:!0}},setup(v){const y=N(()=>j().default);return(_,x)=>(c(),m("section",oe,[n("div",ne,[u(C,{path:v.path,class:"w-12 h-12 p-1 drop-shadow-md"},null,8,["path"]),n("h1",ie,L(v.title),1)]),a(y)?M(_.$slots,"default",{key:0}):d("",!0)]))}},ue={class:"bg-white dark:bg-slate-900/90 rounded-2xl p-3"},de={class:"w-full"},fe={class:"md:flex md:px-5 md:space-x-10 md:justify-between md:items-center"},me={key:0,class:"md:w-1/3 md:text-right"},_e=n("h2",{class:"text-md sm:text-lg md:text-xl font-bold p-2"}," Select Version ",-1),pe={key:0,class:"w-full pt-6"},he={class:"grid grid-cols-2 gap-6 pt-6"},ge={key:1,class:"md:w-1/2 grid grid-cols-1 md:grid-cols-2 gap-3"},ve={class:"bg-white dark:bg-slate-900/95 rounded-2xl lg:flex lg:justify-between"},ye={class:"w-full"},Se={__name:"GameView",setup(v){const y=ee(),_=se(),x=E();var i=null,t=null;const l=T({currentVersion:null});q(()=>l.currentVersion,()=>{b()}),i=y.params.id,t=z(i),t==null&&_.push({name:"ErrorPage",params:{catchAll:"404"}});const o=k(null),w=k([]);H(async()=>{try{const e=await x.getGameProfiles(i);w.value=G(e)}catch(e){console.error("Failed to fetch profile data:",e)}b()}),t.versions||(l.currentVersion=1);async function b(){try{o.value=null;const e=await x.getUserProfile(i,l.currentVersion);o.value=e,e&&!l.currentVersion&&(l.currentVersion=e.versions[e.versions.length-1])}catch(e){console.error("Failed to fetch user profile data:",e)}}function I(){var e=null;return l.currentVersion?e=`/assets/games/${t.id}/card/${l.currentVersion}.png`:e=t.cardBG,e}function B(){return`
|
||||
import{A as N,E as j,a as c,i as m,g as n,b as u,ai as C,t as L,e as a,G as M,k as d,u as E,s as T,N as q,ad as z,r as k,o as H,c as h,w as g,aj as V,F as U,f as P,ak as O,al as X,ac as J,P as K,am as Q,_ as W,l as Y,n as Z,p as ee,q as se}from"./index.93cb35a3.js";import{_ as te}from"./FormControl.6789cb84.js";import{_ as ae}from"./ProfileCard.3258fb10.js";import{_ as re}from"./GeneralTable.a566c4fb.js";import{d as le}from"./userData.bcc92478.js";import{g as S}from"./danClass.233b0381.js";const oe={class:"pt-6 mb-6 flex items-center justify-between"},ne={class:"flex items-center justify-start space-x-2"},ie={class:"text-2xl md:text-3xl leading-tight"},ce={__name:"GameTitleLine",props:{path:{type:String,default:null},title:{type:String,required:!0}},setup(v){const y=N(()=>j().default);return(_,x)=>(c(),m("section",oe,[n("div",ne,[u(C,{path:v.path,class:"w-12 h-12 p-1 drop-shadow-md"},null,8,["path"]),n("h1",ie,L(v.title),1)]),a(y)?M(_.$slots,"default",{key:0}):d("",!0)]))}},ue={class:"bg-white dark:bg-slate-900/90 rounded-2xl p-3"},de={class:"w-full"},fe={class:"md:flex md:px-5 md:space-x-10 md:justify-between md:items-center"},me={key:0,class:"md:w-1/3 md:text-right"},_e=n("h2",{class:"text-md sm:text-lg md:text-xl font-bold p-2"}," Select Version ",-1),pe={key:0,class:"w-full pt-6"},he={class:"grid grid-cols-2 gap-6 pt-6"},ge={key:1,class:"md:w-1/2 grid grid-cols-1 md:grid-cols-2 gap-3"},ve={class:"bg-white dark:bg-slate-900/95 rounded-2xl lg:flex lg:justify-between"},ye={class:"w-full"},Se={__name:"GameView",setup(v){const y=ee(),_=se(),x=E();var i=null,t=null;const l=T({currentVersion:null});q(()=>l.currentVersion,()=>{b()}),i=y.params.id,t=z(i),t==null&&_.push({name:"ErrorPage",params:{catchAll:"404"}});const o=k(null),w=k([]);H(async()=>{try{const e=await x.getGameProfiles(i);w.value=G(e)}catch(e){console.error("Failed to fetch profile data:",e)}b()}),t.versions||(l.currentVersion=1);async function b(){try{o.value=null;const e=await x.getUserProfile(i,l.currentVersion);o.value=e,e&&!l.currentVersion&&(l.currentVersion=e.versions[e.versions.length-1])}catch(e){console.error("Failed to fetch user profile data:",e)}}function I(){var e=null;return l.currentVersion?e=`/assets/games/${t.id}/card/${l.currentVersion}.webp`:e=t.cardBG,e}function B(){return`
|
||||
background-image: url('${I()}');
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
|
|
@ -1 +1 @@
|
|||
import{af as r,a as i,c as n,w as s,g as e,ag as d}from"./index.328ff2ed.js";const m=e("div",{class:"text-center align-center grid"},[e("img",{class:"rounded-full place-self-center",src:d,width:"60"}),e("h1",{class:"text-lg text-gray-100"},"Loading")],-1),h=e("h1",{class:"text-xl text-gray-100"},"No data to show... \u{1F614}",-1),x={__name:"GeneralTable",props:["headers","items"],emits:["row-clicked"],setup(t,{emit:c}){const o=a=>{c("row-clicked",a)};return(a,_)=>{const l=r("EasyDataTable");return i(),n(l,{headers:t.headers,items:t.items,"theme-color":"#c0c7d2","table-class-name":"customize-table","header-text-direction":"left","body-text-direction":"left",onClickRow:o},{loading:s(()=>[m]),"empty-message":s(()=>[h]),_:1},8,["headers","items"])}}};export{x as _};
|
||||
import{af as r,a as i,c as n,w as s,g as e,ag as d}from"./index.93cb35a3.js";const m=e("div",{class:"text-center align-center grid"},[e("img",{class:"rounded-full place-self-center",src:d,width:"60"}),e("h1",{class:"text-lg text-gray-100"},"Loading")],-1),h=e("h1",{class:"text-xl text-gray-100"},"No data to show... \u{1F614}",-1),x={__name:"GeneralTable",props:["headers","items"],emits:["row-clicked"],setup(t,{emit:c}){const o=a=>{c("row-clicked",a)};return(a,_)=>{const l=r("EasyDataTable");return i(),n(l,{headers:t.headers,items:t.items,"theme-color":"#c0c7d2","table-class-name":"customize-table","header-text-direction":"left","body-text-direction":"left",onClickRow:o},{loading:s(()=>[m]),"empty-message":s(()=>[h]),_:1},8,["headers","items"])}}};export{x as _};
|
||||
|
|
@ -1 +1 @@
|
|||
import{u as h,r as f,N as b,a,c as l,w as t,b as i,O as y,P as p,e as r,W as g,g as o,_,f as c,k as s,R as m,X as x,i as n,Y as k,t as v,Z as N,l as w,n as D}from"./index.328ff2ed.js";const $={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},S={key:0,class:"text-lg"},V={key:1,class:"text-lg"},B={class:"space-x-2"},K={key:0,class:"text-lg"},R={key:1,class:"text-lg"},C={class:"space-x-2"},U={__name:"IntegrationView",setup(I){const d=h(),e=f(d.userData);return b(()=>d.userData,u=>{e.value=u}),(u,L)=>(a(),l(D,null,{default:t(()=>[i(w,null,{default:t(()=>[i(y,{class:"mb-6","use-small":"","even-smaller":""}),i(p,{icon:r(g),title:"Server Integrations",main:""},null,8,["icon"]),o("div",$,[i(_,null,{footer:t(()=>[o("div",B,[!e.value.discord||!e.value.discord.linked?(a(),l(c,{key:0,type:"submit",color:"success",label:"Link Now"})):s("",!0),e.value.discord&&e.value.discord.linked?(a(),l(c,{key:1,type:"submit",color:"info",label:"Relink"})):s("",!0),e.value.discord&&e.value.discord.linked?(a(),l(c,{key:2,type:"submit",color:"danger",label:"Unlink"})):s("",!0)])]),default:t(()=>[i(m,{color:"info",icon:r(x),label:"Discord",class:"mb-2"},null,8,["icon"]),e.value.discord&&e.value.discord.linked?(a(),n("h1",S,[k(" Discord is linked to "),o("b",null,v(e.value.discord.username),1)])):s("",!0),!e.value.discord||!e.value.discord.linked?(a(),n("h1",V," Discord isn't linked! ")):s("",!0)]),_:1}),i(_,null,{footer:t(()=>[o("div",C,[!e.value.tachi||!e.value.tachi.linked?(a(),l(c,{key:0,type:"submit",color:"success",label:"Link Now"})):s("",!0),e.value.tachi&&e.value.tachi.linked?(a(),l(c,{key:1,type:"submit",color:"info",label:"Relink"})):s("",!0),e.value.tachi&&e.value.tachi.linked?(a(),l(c,{key:2,type:"submit",color:"danger",label:"Unlink"})):s("",!0)])]),default:t(()=>[i(m,{icon:r(N),color:"info",label:"Kamaitachi",class:"mb-2"},null,8,["icon"]),e.value.tachi&&e.value.tachi.linked?(a(),n("h1",K,[k(" Kamaitachi is linked to "),o("b",null,v(e.value.tachi.username),1)])):s("",!0),!e.value.tachi||!e.value.tachi.linked?(a(),n("h1",R," Kamaitachi isn't linked! ")):s("",!0)]),_:1})])]),_:1})]),_:1}))}};export{U as default};
|
||||
import{u as h,r as f,N as b,a,c as l,w as t,b as i,O as y,P as p,e as r,W as g,g as o,_,f as c,k as s,R as m,X as x,i as n,Y as k,t as v,Z as N,l as w,n as D}from"./index.93cb35a3.js";const $={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},S={key:0,class:"text-lg"},V={key:1,class:"text-lg"},B={class:"space-x-2"},K={key:0,class:"text-lg"},R={key:1,class:"text-lg"},C={class:"space-x-2"},U={__name:"IntegrationView",setup(I){const d=h(),e=f(d.userData);return b(()=>d.userData,u=>{e.value=u}),(u,L)=>(a(),l(D,null,{default:t(()=>[i(w,null,{default:t(()=>[i(y,{class:"mb-6","use-small":"","even-smaller":""}),i(p,{icon:r(g),title:"Server Integrations",main:""},null,8,["icon"]),o("div",$,[i(_,null,{footer:t(()=>[o("div",B,[!e.value.discord||!e.value.discord.linked?(a(),l(c,{key:0,type:"submit",color:"success",label:"Link Now"})):s("",!0),e.value.discord&&e.value.discord.linked?(a(),l(c,{key:1,type:"submit",color:"info",label:"Relink"})):s("",!0),e.value.discord&&e.value.discord.linked?(a(),l(c,{key:2,type:"submit",color:"danger",label:"Unlink"})):s("",!0)])]),default:t(()=>[i(m,{color:"info",icon:r(x),label:"Discord",class:"mb-2"},null,8,["icon"]),e.value.discord&&e.value.discord.linked?(a(),n("h1",S,[k(" Discord is linked to "),o("b",null,v(e.value.discord.username),1)])):s("",!0),!e.value.discord||!e.value.discord.linked?(a(),n("h1",V," Discord isn't linked! ")):s("",!0)]),_:1}),i(_,null,{footer:t(()=>[o("div",C,[!e.value.tachi||!e.value.tachi.linked?(a(),l(c,{key:0,type:"submit",color:"success",label:"Link Now"})):s("",!0),e.value.tachi&&e.value.tachi.linked?(a(),l(c,{key:1,type:"submit",color:"info",label:"Relink"})):s("",!0),e.value.tachi&&e.value.tachi.linked?(a(),l(c,{key:2,type:"submit",color:"danger",label:"Unlink"})):s("",!0)])]),default:t(()=>[i(m,{icon:r(N),color:"info",label:"Kamaitachi",class:"mb-2"},null,8,["icon"]),e.value.tachi&&e.value.tachi.linked?(a(),n("h1",K,[k(" Kamaitachi is linked to "),o("b",null,v(e.value.tachi.username),1)])):s("",!0),!e.value.tachi||!e.value.tachi.linked?(a(),n("h1",R," Kamaitachi isn't linked! ")):s("",!0)]),_:1})])]),_:1})]),_:1}))}};export{U as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{L as t,a as o,i as n,g as e,G as r,y as _,e as d}from"./index.328ff2ed.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{L as t,a as o,i as n,g as e,G as r,y as _,e as d}from"./index.93cb35a3.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 _,s as f,a as x,c as b,w as a,g as e,b as o,e as n,v as g,x as h,f as r,y as w,_ as v,z as V,q as y}from"./index.328ff2ed.js";import{_ as $}from"./FormCheckRadio.179dbea0.js";import{_ as i}from"./FormField.2ce4f759.js";import{_ as m}from"./FormControl.e10a742f.js";import{_ as k}from"./LayoutGuest.153511a4.js";const U={class:"flex md:min-h-screen md:items-center md:justify-center"},C={class:"p-4 flex flex-col md:flex-row w-full space-y-2 md:space-y-0 md:space-x-4"},P={class:"flex flex-col items-center text-wrap h-full md:mt-5"},R=e("img",{src:V,class:"rounded-full shadow-lg mb-2"},null,-1),S=e("h1",{class:"text-xl"},[e("samp",null,"PhaseII")],-1),q=e("hr",{class:"border-r-1 my-1 w-full"},null,-1),B=e("p",{class:"text-lg relative bottom-0"},"Please log in.",-1),I=e("div",{class:"md:border-r"},null,-1),N={class:"flex flex-col gap-2 mt-4"},z=e("hr",{class:"border-t my-4 w-full"},null,-1),A={class:"flex flex-col gap-2 my-4"},L=e("h2",null,"Not Registered?",-1),H={__name:"LoginView",setup(M){const d=y(),u=_(),s=f({login:"",pass:"",remember:!0,spinin:!1}),c=async()=>{if(!s.login||!s.pass){alert("Please fill in all fields.");return}await u.createUserSession(s.login,s.pass,s.remember)&&d.push("/")};return(p,l)=>(x(),b(k,null,{default:a(()=>[e("div",U,[o(v,{class:w(["w-full md:w-auto rounded-none md:rounded-xl md:drop-shadow-xl",s.spinin?"animate-spin":"animate-none"]),"has-table":"","is-auth":""},{default:a(()=>[e("div",C,[e("div",P,[R,S,e("button",{class:"text-sm text-gray-700 dark:text-white/75",onClick:l[0]||(l[0]=t=>s.spinin=!s.spinin)}," Spinnin' since 2021 "),q,B]),I,e("div",null,[o(i,{label:"Username"},{default:a(()=>[o(m,{modelValue:s.login,"onUpdate:modelValue":l[1]||(l[1]=t=>s.login=t),icon:n(g),name:"login",autocomplete:"username",required:""},null,8,["modelValue","icon"])]),_:1}),o(i,{label:"Password"},{default:a(()=>[o(m,{modelValue:s.pass,"onUpdate:modelValue":l[2]||(l[2]=t=>s.pass=t),icon:n(h),type:"password",name:"password",autocomplete:"current-password",required:""},null,8,["modelValue","icon"])]),_:1}),o($,{modelValue:s.remember,"onUpdate:modelValue":l[3]||(l[3]=t=>s.remember=t),name:"remember",label:"Remember Me","input-value":!0},null,8,["modelValue"]),e("div",N,[o(r,{label:"Log In",color:"success",onClick:l[4]||(l[4]=t=>c())})]),z,e("div",A,[L,o(r,{label:"Register",color:"info",href:"/#/auth/register"})])])])]),_:1},8,["class"])])]),_:1}))}};export{H as default};
|
||||
import{u as _,s as f,a as x,c as b,w as a,g as e,b as o,e as n,v as g,x as h,f as r,y as w,_ as v,z as V,q as y}from"./index.93cb35a3.js";import{_ as $}from"./FormCheckRadio.91ce0c67.js";import{_ as i}from"./FormField.438d4afd.js";import{_ as m}from"./FormControl.6789cb84.js";import{_ as k}from"./LayoutGuest.833ba102.js";const U={class:"flex md:min-h-screen md:items-center md:justify-center"},C={class:"p-4 flex flex-col md:flex-row w-full space-y-2 md:space-y-0 md:space-x-4"},P={class:"flex flex-col items-center text-wrap h-full md:mt-5"},R=e("img",{src:V,class:"rounded-full shadow-lg mb-2"},null,-1),S=e("h1",{class:"text-xl"},[e("samp",null,"PhaseII")],-1),q=e("hr",{class:"border-r-1 my-1 w-full"},null,-1),B=e("p",{class:"text-lg relative bottom-0"},"Please log in.",-1),I=e("div",{class:"md:border-r"},null,-1),N={class:"flex flex-col gap-2 mt-4"},z=e("hr",{class:"border-t my-4 w-full"},null,-1),A={class:"flex flex-col gap-2 my-4"},L=e("h2",null,"Not Registered?",-1),H={__name:"LoginView",setup(M){const d=y(),u=_(),s=f({login:"",pass:"",remember:!0,spinin:!1}),c=async()=>{if(!s.login||!s.pass){alert("Please fill in all fields.");return}await u.createUserSession(s.login,s.pass,s.remember)&&d.push("/")};return(p,l)=>(x(),b(k,null,{default:a(()=>[e("div",U,[o(v,{class:w(["w-full md:w-auto rounded-none md:rounded-xl md:drop-shadow-xl",s.spinin?"animate-spin":"animate-none"]),"has-table":"","is-auth":""},{default:a(()=>[e("div",C,[e("div",P,[R,S,e("button",{class:"text-sm text-gray-700 dark:text-white/75",onClick:l[0]||(l[0]=t=>s.spinin=!s.spinin)}," Spinnin' since 2021 "),q,B]),I,e("div",null,[o(i,{label:"Username"},{default:a(()=>[o(m,{modelValue:s.login,"onUpdate:modelValue":l[1]||(l[1]=t=>s.login=t),icon:n(g),name:"login",autocomplete:"username",required:""},null,8,["modelValue","icon"])]),_:1}),o(i,{label:"Password"},{default:a(()=>[o(m,{modelValue:s.pass,"onUpdate:modelValue":l[2]||(l[2]=t=>s.pass=t),icon:n(h),type:"password",name:"password",autocomplete:"current-password",required:""},null,8,["modelValue","icon"])]),_:1}),o($,{modelValue:s.remember,"onUpdate:modelValue":l[3]||(l[3]=t=>s.remember=t),name:"remember",label:"Remember Me","input-value":!0},null,8,["modelValue"]),e("div",N,[o(r,{label:"Log In",color:"success",onClick:l[4]||(l[4]=t=>c())})]),z,e("div",A,[L,o(r,{label:"Register",color:"info",href:"/#/auth/register"})])])])]),_:1},8,["class"])])]),_:1}))}};export{H as default};
|
||||
|
|
@ -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,P as p,e as v,a2 as w,_ as b,g as l,F as g,k as x,l as $,n as k,p as B}from"./index.328ff2ed.js";import{_ as y}from"./ArcadeCard.14ee2144.js";import{_ as I}from"./GeneralTable.af11d887.js";const M={class:"bg-white dark:bg-slate-900/95 rounded-2xl lg:flex lg:justify-between"},N={class:"w-full"},D={__name:"MachinesView",setup(V){const n=_(),t=o({}),c=o(!0),i=B(),d=parseInt(i.params.id);m(async()=>{try{const e=await n.getArcade(d);t.value=e,c.value=!1}catch(e){console.log("Failed to fetch arcade data:",e)}});const u=[{text:"PCBID",value:"pcbId",width:200},{text:"Name",value:"description",width:200},{text:"Port",value:"port",sortable:!0,width:120},{text:"OTA",value:"ota",sortable:!0,width:120}];return(e,C)=>(r(),f(k,null,{default:s(()=>[a($,null,{default:s(()=>[c.value?x("",!0):(r(),h(g,{key:0},[a(y,{class:"mb-6",arcade:t.value,"use-small":!0},null,8,["arcade"]),a(p,{icon:v(w),title:"Machines",main:""},null,8,["icon"]),a(b,{"has-table":""},{default:s(()=>[l("div",M,[l("div",N,[a(I,{headers:u,items:t.value.machines},null,8,["items"])])])]),_:1})],64))]),_:1})]),_:1}))}};export{D as default};
|
||||
import{u as _,r as o,o as m,a as r,c as f,w as s,b as a,i as h,P as p,e as v,a2 as w,_ as b,g as l,F as g,k as x,l as $,n as k,p as B}from"./index.93cb35a3.js";import{_ as y}from"./ArcadeCard.03f06a34.js";import{_ as I}from"./GeneralTable.a566c4fb.js";const M={class:"bg-white dark:bg-slate-900/95 rounded-2xl lg:flex lg:justify-between"},N={class:"w-full"},D={__name:"MachinesView",setup(V){const n=_(),t=o({}),c=o(!0),i=B(),d=parseInt(i.params.id);m(async()=>{try{const e=await n.getArcade(d);t.value=e,c.value=!1}catch(e){console.log("Failed to fetch arcade data:",e)}});const u=[{text:"PCBID",value:"pcbId",width:200},{text:"Name",value:"description",width:200},{text:"Port",value:"port",sortable:!0,width:120},{text:"OTA",value:"ota",sortable:!0,width:120}];return(e,C)=>(r(),f(k,null,{default:s(()=>[a($,null,{default:s(()=>[c.value?x("",!0):(r(),h(g,{key:0},[a(y,{class:"mb-6",arcade:t.value,"use-small":!0},null,8,["arcade"]),a(p,{icon:v(w),title:"Machines",main:""},null,8,["icon"]),a(b,{"has-table":""},{default:s(()=>[l("div",M,[l("div",N,[a(I,{headers:u,items:t.value.machines},null,8,["items"])])])]),_:1})],64))]),_:1})]),_:1}))}};export{D as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{u as y,r as c,o as P,a as m,c as k,w as n,b as a,i as B,P as _,e as f,ah as S,_ as h,g as i,a9 as $,F as A,k as D,l as N,n as C,p as I}from"./index.328ff2ed.js";import{_ as v}from"./GeneralTable.af11d887.js";import{_ as R}from"./ArcadeCard.14ee2144.js";const T={class:"bg-white dark:bg-slate-900/95 rounded-2xl lg:flex lg:justify-between"},V={class:"w-full"},E={class:"bg-white dark:bg-slate-900/95 rounded-2xl lg:flex lg:justify-between"},F={class:"w-full"},M={__name:"PaseliView",setup(H){const o=y(),r=c({}),t=c({}),d=c(!0),p=I(),u=parseInt(p.params.id);P(async()=>{try{const e=await o.getArcade(u),s=await o.getPaseliData(u);r.value=e,t.value=s,d.value=!1}catch(e){console.log("Failed to fetch arcade data:",e)}});const g=[{text:"Timestamp",value:"timestamp",width:200},{text:"Amount",value:"data.delta",width:200},{text:"Remaining Balance",value:"data.balance",width:200},{text:"Reason",value:"data.reason",width:200}],w=[{text:"Player",value:"username"},{text:"Balance",value:"balance"}];function b(e){var s=[];for(var l of JSON.parse(JSON.stringify(e))){if(l.timestamp){const x=new Date(l.timestamp*1e3);l.timestamp=x.toLocaleString()}s.push(l)}return s}return(e,s)=>(m(),k(C,null,{default:n(()=>[a(N,null,{default:n(()=>[!d.value&&t.value.balances&&t.value.transactions?(m(),B(A,{key:0},[a(R,{class:"mb-6",arcade:r.value,"use-small":!0},null,8,["arcade"]),a(_,{icon:f(S),title:"Player PASELI Balances",main:""},null,8,["icon"]),a(h,{"has-table":""},{default:n(()=>[i("div",T,[i("div",V,[a(v,{headers:w,items:t.value.balances},null,8,["items"])])])]),_:1}),a(_,{icon:f($),title:"PASELI Transaction History",main:"",class:"pt-6"},null,8,["icon"]),a(h,{"has-table":""},{default:n(()=>[i("div",E,[i("div",F,[a(v,{headers:g,items:b(t.value.transactions)},null,8,["items"])])])]),_:1})],64)):D("",!0)]),_:1})]),_:1}))}};export{M as default};
|
||||
import{u as y,r as c,o as P,a as m,c as k,w as n,b as a,i as B,P as _,e as f,ah as S,_ as h,g as i,a9 as $,F as A,k as D,l as N,n as C,p as I}from"./index.93cb35a3.js";import{_ as v}from"./GeneralTable.a566c4fb.js";import{_ as R}from"./ArcadeCard.03f06a34.js";const T={class:"bg-white dark:bg-slate-900/95 rounded-2xl lg:flex lg:justify-between"},V={class:"w-full"},E={class:"bg-white dark:bg-slate-900/95 rounded-2xl lg:flex lg:justify-between"},F={class:"w-full"},M={__name:"PaseliView",setup(H){const o=y(),r=c({}),t=c({}),d=c(!0),p=I(),u=parseInt(p.params.id);P(async()=>{try{const e=await o.getArcade(u),s=await o.getPaseliData(u);r.value=e,t.value=s,d.value=!1}catch(e){console.log("Failed to fetch arcade data:",e)}});const g=[{text:"Timestamp",value:"timestamp",width:200},{text:"Amount",value:"data.delta",width:200},{text:"Remaining Balance",value:"data.balance",width:200},{text:"Reason",value:"data.reason",width:200}],w=[{text:"Player",value:"username"},{text:"Balance",value:"balance"}];function b(e){var s=[];for(var l of JSON.parse(JSON.stringify(e))){if(l.timestamp){const x=new Date(l.timestamp*1e3);l.timestamp=x.toLocaleString()}s.push(l)}return s}return(e,s)=>(m(),k(C,null,{default:n(()=>[a(N,null,{default:n(()=>[!d.value&&t.value.balances&&t.value.transactions?(m(),B(A,{key:0},[a(R,{class:"mb-6",arcade:r.value,"use-small":!0},null,8,["arcade"]),a(_,{icon:f(S),title:"Player PASELI Balances",main:""},null,8,["icon"]),a(h,{"has-table":""},{default:n(()=>[i("div",T,[i("div",V,[a(v,{headers:w,items:t.value.balances},null,8,["items"])])])]),_:1}),a(_,{icon:f($),title:"PASELI Transaction History",main:"",class:"pt-6"},null,8,["icon"]),a(h,{"has-table":""},{default:n(()=>[i("div",E,[i("div",F,[a(v,{headers:g,items:b(t.value.transactions)},null,8,["items"])])])]),_:1})],64)):D("",!0)]),_:1})]),_:1}))}};export{M as default};
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
import{u as B,ad as F,s as T,N as G,r as O,o as R,a as s,c as o,w as c,l as U,g as p,b as f,e as t,m as z,f as g,i as b,k as n,aq as E,P as M,ak as q,al as X,ac as H,j as Y,F as S,aj as m,y as K,Y as y,t as _,n as Q,p as W,q as Z}from"./index.328ff2ed.js";import{_ as ee,g as w,a as v}from"./ProfileCard.fdd438db.js";import{_ as le}from"./FormControl.e10a742f.js";import{g as k}from"./danClass.233b0381.js";import"./userData.bcc92478.js";const ae={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"},se=p("h2",{class:"text-md sm:text-lg md:text-xl font-bold p-2"}," Select Version ",-1),re={class:"bg-white dark:bg-slate-900/90 rounded-2xl pt-6 p-3"},ne={class:"w-full"},ie={class:"md:w-1/3 grid grid-cols-1 md:grid-cols-2 gap-3"},oe={class:"my-6 grid grid-cols-1 md:grid-cols-4 gap-6"},fe={__name:"PlayerView",setup(ue){const h=W(),N=Z(),$=B();var d=null,u=null,V=null;d=h.params.game,V=h.params.userId,u=F(d),u||N.push({name:"ErrorPage",params:{catchAll:"404"}});const i=T({currentVersion:null});G(()=>i.currentVersion,()=>{P()});const l=O(null);R(async()=>{P()}),u.versions||(i.currentVersion=1);async function P(){try{l.value=null;const e=await $.getUserProfile(d,i.currentVersion,V);l.value=A(e),e&&!i.currentVersion&&(i.currentVersion=e.versions[e.versions.length-1])}catch(e){console.error("Failed to fetch user profile data:",e)}}var j=[{label:"Register Date",type:String,span:"md:col-span-2",key:"first_play_timestamp"},{label:"Last Play",type:String,span:"md:col-span-2",key:"last_play_timestamp"},{label:"First Arcade",type:String,span:"md:col-span-2",key:"first_play_arcade"},{label:"Last Arcade",type:String,span:"md:col-span-2",key:"last_play_arcade"},{label:"Total Plays",type:Number,key:"total_plays"},{label:"EXP",type:Number,key:"exp"},{label:"SP Plays",type:Number,key:"single_plays"},{label:"DP Plays",type:Number,key:"double_plays"},{label:"SP DJPOINT",type:Number,key:"single_dj_points"},{label:"DP DJPOINT",type:Number,key:"double_dj_points"}];function x(){var e=null;return i.currentVersion?e=`/assets/games/${u.id}/card/${i.currentVersion}.png`:e=u.cardBG,e}function D(){return`
|
||||
import{u as B,ad as F,s as T,N as G,r as O,o as R,a as s,c as o,w as c,l as U,g as p,b as f,e as t,m as z,f as g,i as b,k as i,aq as E,P as M,ak as q,al as X,ac as H,j as Y,F as S,aj as m,y as K,Y as y,t as _,n as Q,p as W,q as Z}from"./index.93cb35a3.js";import{_ as ee,g as w,a as v}from"./ProfileCard.3258fb10.js";import{_ as le}from"./FormControl.6789cb84.js";import{g as k}from"./danClass.233b0381.js";import"./userData.bcc92478.js";const ae={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"},se=p("h2",{class:"text-md sm:text-lg md:text-xl font-bold p-2"}," Select Version ",-1),re={class:"bg-white dark:bg-slate-900/90 rounded-2xl pt-6 p-3"},ie={class:"w-full"},ne={class:"md:w-1/3 grid grid-cols-1 md:grid-cols-2 gap-3"},oe={class:"my-6 grid grid-cols-1 md:grid-cols-4 gap-6"},fe={__name:"PlayerView",setup(ue){const h=W(),N=Z(),$=B();var d=null,u=null,V=null;d=h.params.game,V=h.params.userId,u=F(d),u||N.push({name:"ErrorPage",params:{catchAll:"404"}});const n=T({currentVersion:null});G(()=>n.currentVersion,()=>{P()});const l=O(null);R(async()=>{P()}),u.versions||(n.currentVersion=1);async function P(){try{l.value=null;const e=await $.getUserProfile(d,n.currentVersion,V);l.value=A(e),e&&!n.currentVersion&&(n.currentVersion=e.versions[e.versions.length-1])}catch(e){console.error("Failed to fetch user profile data:",e)}}var j=[{label:"Register Date",type:String,span:"md:col-span-2",key:"first_play_timestamp"},{label:"Last Play",type:String,span:"md:col-span-2",key:"last_play_timestamp"},{label:"First Arcade",type:String,span:"md:col-span-2",key:"first_play_arcade"},{label:"Last Arcade",type:String,span:"md:col-span-2",key:"last_play_arcade"},{label:"Total Plays",type:Number,key:"total_plays"},{label:"EXP",type:Number,key:"exp"},{label:"SP Plays",type:Number,key:"single_plays"},{label:"DP Plays",type:Number,key:"double_plays"},{label:"SP DJPOINT",type:Number,key:"single_dj_points"},{label:"DP DJPOINT",type:Number,key:"double_dj_points"}];function x(){var e=null;return n.currentVersion?e=`/assets/games/${u.id}/card/${n.currentVersion}.webp`:e=u.cardBG,e}function D(){return`
|
||||
background-image: url('${x()}');
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
`}function I(e,a){if(a){if(e.isSkill&&a.jubility)return w(a.jubility);if(e.isJubility&&a.records.skill)return v(a.records.skill)}return""}function J(e){var a=[];for(const r of u.versions)e.includes(r.id)&&a.push(r);return a}function C(e,a){return e.isSkill?a.stats[e.key]/100:e.isJubility?a.stats[e.key]/10:a.stats[e.key]}function L(e,a){return a?e/10:e/100}function A(e){if(e.stats){if(e.stats.first_play_timestamp){const a=new Date(e.stats.first_play_timestamp*1e3);e.stats.first_play_timestamp=a.toLocaleString()}if(e.stats.last_play_timestamp){const a=new Date(e.stats.last_play_timestamp*1e3);e.stats.last_play_timestamp=a.toLocaleString()}e.dp&&e.dp.dan!==void 0&&(e.dp.dan=k(e.dp.dan).short)}return e}return(e,a)=>(s(),o(Q,null,{default:c(()=>[l.value?(s(),o(U,{key:0},{default:c(()=>[p("div",ae,[f(g,{icon:t(z),href:`/#/games/${t(d)}`,class:"w-full md:w-auto",color:"info",label:`${t(u).shortName?t(u).shortName:t(u).name} Home`},null,8,["icon","href","label"]),t(u).versions&&l.value?(s(),b("div",te,[se,f(le,{modelValue:i.currentVersion,"onUpdate:modelValue":a[0]||(a[0]=r=>i.currentVersion=r),options:J(l.value.versions)},null,8,["modelValue","options"])])):n("",!0)]),f(M,{icon:t(E),title:"View Profile",main:""},null,8,["icon"]),i.currentVersion&&l.value?(s(),b("div",{key:0,style:H(D()),class:"rounded-2xl mb-6"},[p("div",re,[p("div",ne,[f(ee,{"use-small":"",game:t(d),version:i.currentVersion,profile:l.value},{default:c(()=>[p("div",ie,[f(g,{href:`/#/games/${t(d)}/scores/${l.value.userId}`,icon:t(q),class:"w-full md:w-auto",color:"info",label:"View Scores"},null,8,["href","icon"]),f(g,{href:`/#/games/${t(d)}/records/${l.value.userId}`,icon:t(X),class:"w-full md:w-auto",color:"info",label:"View Records"},null,8,["href","icon"])])]),_:1},8,["game","version","profile"])])])],4)):n("",!0),p("div",oe,[(s(!0),b(S,null,Y(t(j),r=>(s(),b(S,{key:r},[l.value.stats[r.key]?(s(),o(m,{key:0,class:K(r.span),label:r.label,number:r.type==Number?C(r,l.value):null,"num-color":I(r)},{default:c(()=>[y(_(r.type==String?l.value.stats[r.key]:null)+" ",1)]),_:2},1032,["class","label","number","num-color"])):n("",!0)],64))),128)),l.value.skill?(s(),o(m,{key:0,label:"Skill Points",number:L(l.value.skill,!1),"num-color":t(w)(l.value.skill)},null,8,["number","num-color"])):n("",!0),l.value.profile_skill?(s(),o(m,{key:1,label:"Skill Level"},{default:c(()=>[y(_(l.value.profile_skill/100),1)]),_:1})):n("",!0),l.value.jubility?(s(),o(m,{key:2,label:"Jubility","num-color":t(v)(l.value.jubility)},{default:c(()=>[y(_(l.value.jubility/10),1)]),_:1},8,["num-color"])):n("",!0),l.value.pick_up_jubility?(s(),o(m,{key:3,label:"Pick-Up Jubility","num-color":t(v)(l.value.pick_up_jubility)},{default:c(()=>[y(_(l.value.pick_up_jubility/10),1)]),_:1},8,["num-color"])):n("",!0),l.value.common_jubility?(s(),o(m,{key:4,label:"Common Jubility","num-color":t(v)(l.value.common_jubility)},{default:c(()=>[y(_(l.value.common_jubility/10),1)]),_:1},8,["num-color"])):n("",!0),l.value.deller?(s(),o(m,{key:5,label:"Deller",number:l.value.deller},null,8,["number"])):n("",!0),l.value.sgrade?(s(),o(m,{key:6,label:"SP DAN"},{default:c(()=>[y(_(t(k)(l.value.sgrade).label),1)]),_:1})):n("",!0),l.value.dgrade?(s(),o(m,{key:7,label:"DP DAN"},{default:c(()=>[y(_(t(k)(l.value.dgrade).label),1)]),_:1})):n("",!0)])]),_:1})):n("",!0)]),_:1}))}};export{fe as default};
|
||||
`}function I(e,a){if(a){if(e.isSkill&&a.jubility)return w(a.jubility);if(e.isJubility&&a.records.skill)return v(a.records.skill)}return""}function J(e){var a=[];for(const r of u.versions)e.includes(r.id)&&a.push(r);return a}function C(e,a){return e.isSkill?a.stats[e.key]/100:e.isJubility?a.stats[e.key]/10:a.stats[e.key]}function L(e,a){return a?e/10:e/100}function A(e){if(e.stats){if(e.stats.first_play_timestamp){const a=new Date(e.stats.first_play_timestamp*1e3);e.stats.first_play_timestamp=a.toLocaleString()}if(e.stats.last_play_timestamp){const a=new Date(e.stats.last_play_timestamp*1e3);e.stats.last_play_timestamp=a.toLocaleString()}e.dp&&e.dp.dan!==void 0&&(e.dp.dan=k(e.dp.dan).short)}return e}return(e,a)=>(s(),o(Q,null,{default:c(()=>[l.value?(s(),o(U,{key:0},{default:c(()=>[p("div",ae,[f(g,{icon:t(z),href:`/#/games/${t(d)}`,class:"w-full md:w-auto",color:"info",label:`${t(u).shortName?t(u).shortName:t(u).name} Home`},null,8,["icon","href","label"]),t(u).versions&&l.value?(s(),b("div",te,[se,f(le,{modelValue:n.currentVersion,"onUpdate:modelValue":a[0]||(a[0]=r=>n.currentVersion=r),options:J(l.value.versions)},null,8,["modelValue","options"])])):i("",!0)]),f(M,{icon:t(E),title:"View Profile",main:""},null,8,["icon"]),n.currentVersion&&l.value?(s(),b("div",{key:0,style:H(D()),class:"rounded-2xl mb-6"},[p("div",re,[p("div",ie,[f(ee,{"use-small":"",game:t(d),version:n.currentVersion,profile:l.value},{default:c(()=>[p("div",ne,[f(g,{href:`/#/games/${t(d)}/scores/${l.value.userId}`,icon:t(q),class:"w-full md:w-auto",color:"info",label:"View Scores"},null,8,["href","icon"]),f(g,{href:`/#/games/${t(d)}/records/${l.value.userId}`,icon:t(X),class:"w-full md:w-auto",color:"info",label:"View Records"},null,8,["href","icon"])])]),_:1},8,["game","version","profile"])])])],4)):i("",!0),p("div",oe,[(s(!0),b(S,null,Y(t(j),r=>(s(),b(S,{key:r},[l.value.stats[r.key]?(s(),o(m,{key:0,class:K(r.span),label:r.label,number:r.type==Number?C(r,l.value):null,"num-color":I(r)},{default:c(()=>[y(_(r.type==String?l.value.stats[r.key]:null)+" ",1)]),_:2},1032,["class","label","number","num-color"])):i("",!0)],64))),128)),l.value.skill?(s(),o(m,{key:0,label:"Skill Points",number:L(l.value.skill,!1),"num-color":t(w)(l.value.skill)},null,8,["number","num-color"])):i("",!0),l.value.profile_skill?(s(),o(m,{key:1,label:"Skill Level"},{default:c(()=>[y(_(l.value.profile_skill/100),1)]),_:1})):i("",!0),l.value.jubility?(s(),o(m,{key:2,label:"Jubility","num-color":t(v)(l.value.jubility)},{default:c(()=>[y(_(l.value.jubility/10),1)]),_:1},8,["num-color"])):i("",!0),l.value.pick_up_jubility?(s(),o(m,{key:3,label:"Pick-Up Jubility","num-color":t(v)(l.value.pick_up_jubility)},{default:c(()=>[y(_(l.value.pick_up_jubility/10),1)]),_:1},8,["num-color"])):i("",!0),l.value.common_jubility?(s(),o(m,{key:4,label:"Common Jubility","num-color":t(v)(l.value.common_jubility)},{default:c(()=>[y(_(l.value.common_jubility/10),1)]),_:1},8,["num-color"])):i("",!0),l.value.deller?(s(),o(m,{key:5,label:"Deller",number:l.value.deller},null,8,["number"])):i("",!0),l.value.sgrade?(s(),o(m,{key:6,label:"SP DAN"},{default:c(()=>[y(_(t(k)(l.value.sgrade).label),1)]),_:1})):i("",!0),l.value.dgrade?(s(),o(m,{key:7,label:"DP DAN"},{default:c(()=>[y(_(t(k)(l.value.dgrade).label),1)]),_:1})):i("",!0)])]),_:1})):i("",!0)]),_:1}))}};export{fe as default};
|
||||
|
|
@ -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.328ff2ed.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.93cb35a3.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};
|
||||
|
|
@ -1 +1 @@
|
|||
import{u as y,r as c,N as f,s as w,a as P,c as S,w as s,b as e,O as x,P as C,e as l,v as _,g as E,_ as b,Q as V,f as v,R as U,S as R,x as g,U as k,V as N,l as B,n as F}from"./index.328ff2ed.js";import{_ as n}from"./FormField.2ce4f759.js";import{_ as t}from"./FormControl.e10a742f.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,N as f,s as w,a as P,c as S,w as s,b as e,O as x,P as C,e as l,v as _,g as E,_ as b,Q as V,f as v,R as U,S as R,x as g,U as k,V as N,l as B,n as F}from"./index.93cb35a3.js";import{_ as n}from"./FormField.438d4afd.js";import{_ as t}from"./FormControl.6789cb84.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,P as i,e,v as u,O as r,_,g as o,f as c,a0 as d,a1 as f,a2 as g,a3 as s,a4 as l,l as p,n as A}from"./index.328ff2ed.js";const v={class:"flex gap-4"},b={class:"grid grid-flow-row auto-rows-auto grid-cols-1 md:grid-cols-2 gap-5 mb-5"},R={__name:"PublicView",setup($){return(w,M)=>(t(),m(A,null,{default:n(()=>[a(p,null,{default:n(()=>[a(i,{icon:e(u),title:"Trmazi's Profile",main:""},null,8,["icon"]),a(r,{class:"mb-6","use-small":""}),a(_,{"is-form":"",class:"mb-6"},{default:n(()=>[o("div",v,[a(c,{color:"success",label:"Add Friend",icon:e(d)},null,8,["icon"]),a(c,{color:"danger",label:"Remove Friend",icon:e(f)},null,8,["icon"])])]),_:1}),a(i,{icon:e(g),title:"Game Stats",main:""},null,8,["icon"]),o("div",b,[a(s,{game:e(l).DDR,value:"#10 out of 132","profile-name":"DJ. TRMAZI",type:"ranking"},null,8,["game"]),a(s,{game:e(l).POPN_MUSIC,value:300,"profile-name":"TRMAZI",type:"plays"},null,8,["game"]),a(s,{game:e(l).JUBEAT,value:392,"profile-name":"TRMAZI",type:"scores"},null,8,["game"]),a(s,{game:e(l).SDVX,value:"#15 out of 200","profile-name":"TRMAZI",type:"ranking"},null,8,["game"])])]),_:1})]),_:1}))}};export{R as default};
|
||||
import{a as t,c as m,w as n,b as a,P as i,e,v as u,O as r,_,g as o,f as c,a0 as d,a1 as f,a2 as g,a3 as s,a4 as l,l as p,n as A}from"./index.93cb35a3.js";const v={class:"flex gap-4"},b={class:"grid grid-flow-row auto-rows-auto grid-cols-1 md:grid-cols-2 gap-5 mb-5"},R={__name:"PublicView",setup($){return(w,M)=>(t(),m(A,null,{default:n(()=>[a(p,null,{default:n(()=>[a(i,{icon:e(u),title:"Trmazi's Profile",main:""},null,8,["icon"]),a(r,{class:"mb-6","use-small":""}),a(_,{"is-form":"",class:"mb-6"},{default:n(()=>[o("div",v,[a(c,{color:"success",label:"Add Friend",icon:e(d)},null,8,["icon"]),a(c,{color:"danger",label:"Remove Friend",icon:e(f)},null,8,["icon"])])]),_:1}),a(i,{icon:e(g),title:"Game Stats",main:""},null,8,["icon"]),o("div",b,[a(s,{game:e(l).DDR,value:"#10 out of 132","profile-name":"DJ. TRMAZI",type:"ranking"},null,8,["game"]),a(s,{game:e(l).POPN_MUSIC,value:300,"profile-name":"TRMAZI",type:"plays"},null,8,["game"]),a(s,{game:e(l).JUBEAT,value:392,"profile-name":"TRMAZI",type:"scores"},null,8,["game"]),a(s,{game:e(l).SDVX,value:"#15 out of 200","profile-name":"TRMAZI",type:"ranking"},null,8,["game"])])]),_:1})]),_:1}))}};export{R as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{s as b,a as x,c as V,w as t,g as o,b as l,e as n,v as i,x as u,f as c,_ as g,z as v,q as y,M as h}from"./index.328ff2ed.js";import{_ as I}from"./FormCheckRadio.179dbea0.js";import{_ as d}from"./FormField.2ce4f759.js";import{_ as m}from"./FormControl.e10a742f.js";import{_ as P}from"./LayoutGuest.153511a4.js";const A={class:"flex md:min-h-screen md:items-center md:justify-center"},U={class:"p-4 flex flex-col md:flex-row w-full space-y-2 md:space-y-0 md:space-x-4"},$=o("div",{class:"flex flex-col items-center text-wrap h-full md:mt-5"},[o("img",{src:v,class:"rounded-full shadow-lg mb-2"}),o("h1",{class:"text-xl"},[o("samp",null,"PhaseII")]),o("p",{class:"text-sm text-gray-700 dark:text-white/75"}," Spinnin' since 2021 "),o("hr",{class:"border-t border-1 my-1 w-full"}),o("p",{class:"text-lg relative bottom-0"},"Account Registration")],-1),k=o("div",{class:"md:border-r md:border-1"},null,-1),C={class:"grid grid-cols-2 gap-x-2"},K={class:"col-span-2"},R={class:"flex flex-col gap-2 mt-4"},S=o("hr",{class:"border-t border-1 my-4 w-full"},null,-1),B={class:"flex flex-col gap-2 my-4"},N=o("h2",null,"Have an Account?",-1),z={__name:"RegisterView",setup(D){const p=y();function f(r){var s=/\S+@\S+\.\S+/;return s.test(r)}const _=async()=>{if(!e.username||!e.email||!e.pass||!e.pass_conf||!e.pin||!e.cardId){alert("Please fill in all fields.");return}if(!f(e.email)){alert("Please use a valid email.");return}if(e.pass!==e.pass_conf){alert("Passwords do not match!");return}const r=await w(e.username,e.pass);r.success?(console.log(r),h.set("userAuthKey",r.authKey,{expires:e.remember?30:0}),p.push("/")):alert("Create failed. Please try again.")},w=async(r,s)=>(await new Promise(a=>setTimeout(a,1e3)),{success:!0,authKey:"generatedAuthKey123"}),e=b({username:"",email:"",pass:"",pass_conf:"",pin:"",cardId:"",remember:!0});return(r,s)=>(x(),V(P,null,{default:t(()=>[o("div",A,[l(g,{class:"w-full md:w-auto rounded-none md:rounded-xl md:drop-shadow-xl","has-table":"","is-auth":""},{default:t(()=>[o("div",U,[$,k,o("div",C,[l(d,{label:"Desired Username"},{default:t(()=>[l(m,{modelValue:e.username,"onUpdate:modelValue":s[0]||(s[0]=a=>e.username=a),icon:n(i),name:"username",autocomplete:"username"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Email Address"},{default:t(()=>[l(m,{modelValue:e.email,"onUpdate:modelValue":s[1]||(s[1]=a=>e.email=a),icon:n(i),name:"email",autocomplete:"email"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Password"},{default:t(()=>[l(m,{modelValue:e.pass,"onUpdate:modelValue":s[2]||(s[2]=a=>e.pass=a),icon:n(u),type:"password",name:"password",autocomplete:"current-password"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Password Confirmation"},{default:t(()=>[l(m,{modelValue:e.pass_conf,"onUpdate:modelValue":s[3]||(s[3]=a=>e.pass_conf=a),icon:n(u),type:"password",name:"password",autocomplete:"current-password"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Card ID"},{default:t(()=>[l(m,{modelValue:e.cardId,"onUpdate:modelValue":s[4]||(s[4]=a=>e.cardId=a),icon:n(i),name:"card",autocomplete:"card"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Game PIN"},{default:t(()=>[l(m,{modelValue:e.pin,"onUpdate:modelValue":s[5]||(s[5]=a=>e.pin=a),icon:n(u),type:"password",name:"password",autocomplete:"current-password"},null,8,["modelValue","icon"])]),_:1}),l(I,{modelValue:e.remember,"onUpdate:modelValue":s[6]||(s[6]=a=>e.remember=a),class:"col-span-2",name:"remember",label:"Remember Me","input-value":!0},null,8,["modelValue"]),o("div",K,[o("div",R,[l(c,{label:"Create Account",color:"success",onClick:s[7]||(s[7]=a=>_())})]),S,o("div",B,[N,l(c,{label:"Log In",color:"info",href:"/#/auth/login"})])])])])]),_:1})])]),_:1}))}};export{z as default};
|
||||
import{s as b,a as x,c as V,w as t,g as o,b as l,e as n,v as i,x as u,f as c,_ as g,z as v,q as y,M as h}from"./index.93cb35a3.js";import{_ as I}from"./FormCheckRadio.91ce0c67.js";import{_ as d}from"./FormField.438d4afd.js";import{_ as m}from"./FormControl.6789cb84.js";import{_ as P}from"./LayoutGuest.833ba102.js";const A={class:"flex md:min-h-screen md:items-center md:justify-center"},U={class:"p-4 flex flex-col md:flex-row w-full space-y-2 md:space-y-0 md:space-x-4"},$=o("div",{class:"flex flex-col items-center text-wrap h-full md:mt-5"},[o("img",{src:v,class:"rounded-full shadow-lg mb-2"}),o("h1",{class:"text-xl"},[o("samp",null,"PhaseII")]),o("p",{class:"text-sm text-gray-700 dark:text-white/75"}," Spinnin' since 2021 "),o("hr",{class:"border-t border-1 my-1 w-full"}),o("p",{class:"text-lg relative bottom-0"},"Account Registration")],-1),k=o("div",{class:"md:border-r md:border-1"},null,-1),C={class:"grid grid-cols-2 gap-x-2"},K={class:"col-span-2"},R={class:"flex flex-col gap-2 mt-4"},S=o("hr",{class:"border-t border-1 my-4 w-full"},null,-1),B={class:"flex flex-col gap-2 my-4"},N=o("h2",null,"Have an Account?",-1),z={__name:"RegisterView",setup(D){const p=y();function f(r){var s=/\S+@\S+\.\S+/;return s.test(r)}const _=async()=>{if(!e.username||!e.email||!e.pass||!e.pass_conf||!e.pin||!e.cardId){alert("Please fill in all fields.");return}if(!f(e.email)){alert("Please use a valid email.");return}if(e.pass!==e.pass_conf){alert("Passwords do not match!");return}const r=await w(e.username,e.pass);r.success?(console.log(r),h.set("userAuthKey",r.authKey,{expires:e.remember?30:0}),p.push("/")):alert("Create failed. Please try again.")},w=async(r,s)=>(await new Promise(a=>setTimeout(a,1e3)),{success:!0,authKey:"generatedAuthKey123"}),e=b({username:"",email:"",pass:"",pass_conf:"",pin:"",cardId:"",remember:!0});return(r,s)=>(x(),V(P,null,{default:t(()=>[o("div",A,[l(g,{class:"w-full md:w-auto rounded-none md:rounded-xl md:drop-shadow-xl","has-table":"","is-auth":""},{default:t(()=>[o("div",U,[$,k,o("div",C,[l(d,{label:"Desired Username"},{default:t(()=>[l(m,{modelValue:e.username,"onUpdate:modelValue":s[0]||(s[0]=a=>e.username=a),icon:n(i),name:"username",autocomplete:"username"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Email Address"},{default:t(()=>[l(m,{modelValue:e.email,"onUpdate:modelValue":s[1]||(s[1]=a=>e.email=a),icon:n(i),name:"email",autocomplete:"email"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Password"},{default:t(()=>[l(m,{modelValue:e.pass,"onUpdate:modelValue":s[2]||(s[2]=a=>e.pass=a),icon:n(u),type:"password",name:"password",autocomplete:"current-password"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Password Confirmation"},{default:t(()=>[l(m,{modelValue:e.pass_conf,"onUpdate:modelValue":s[3]||(s[3]=a=>e.pass_conf=a),icon:n(u),type:"password",name:"password",autocomplete:"current-password"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Card ID"},{default:t(()=>[l(m,{modelValue:e.cardId,"onUpdate:modelValue":s[4]||(s[4]=a=>e.cardId=a),icon:n(i),name:"card",autocomplete:"card"},null,8,["modelValue","icon"])]),_:1}),l(d,{label:"Game PIN"},{default:t(()=>[l(m,{modelValue:e.pin,"onUpdate:modelValue":s[5]||(s[5]=a=>e.pin=a),icon:n(u),type:"password",name:"password",autocomplete:"current-password"},null,8,["modelValue","icon"])]),_:1}),l(I,{modelValue:e.remember,"onUpdate:modelValue":s[6]||(s[6]=a=>e.remember=a),class:"col-span-2",name:"remember",label:"Remember Me","input-value":!0},null,8,["modelValue"]),o("div",K,[o("div",R,[l(c,{label:"Create Account",color:"success",onClick:s[7]||(s[7]=a=>_())})]),S,o("div",B,[N,l(c,{label:"Log In",color:"info",href:"/#/auth/login"})])])])])]),_:1})])]),_:1}))}};export{z as default};
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
import{s as p,ad as S,a as i,c as d,w as r,b as t,g as e,e as u,i as m,k as _,ac as B,P as b,at as L,_ as f,j as k,t as g,f as w,F as x,au as A,l as j,n as F,p as G,q as z}from"./index.328ff2ed.js";import{_ as E}from"./ProfileCard.fdd438db.js";import{_ as N}from"./FormField.2ce4f759.js";import{_ as V}from"./FormControl.e10a742f.js";import"./userData.bcc92478.js";const P={class:"md:flex md:justify-end pb-6 items-center"},U={key:0,class:"mt-2 md:mt-0 md:w-1/3 md:text-right"},Y=e("h2",{class:"text-md sm:text-lg md:text-xl font-bold p-2"}," Select Version ",-1),T={class:"bg-white dark:bg-slate-900/90 rounded-2xl pt-6 p-3"},q={class:"w-full"},H={class:"grid gap-3"},M={class:"flex justify-between items-center"},O={class:"flex"},Z=e("img",{class:"w-10 mr-3",src:"https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/"},null,-1),J={class:"grid"},K={class:"text-lg"},Q={class:"text-md font-mono"},W={class:"grid gap-3"},X={class:"flex justify-between items-center"},ee={class:"flex"},se=e("img",{class:"w-10 mr-3",src:"https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/"},null,-1),te={class:"grid"},ae={class:"text-lg"},ie={class:"text-md font-mono"},ue={__name:"RivalsView",setup(oe){const y=G(),$=z();var v=null,o=null;const D={id:1,name:"Trmazi",extid:12345678,avatar:"https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/",last:{arcade:"GhettoCade",date:"7/16/2023"}},h=[{id:1,name:"TRMAZI",rivalID:"1234-5678"},{id:2,name:"BLADE",rivalID:"1454-5687"},{id:3,name:"HO!",rivalID:"5364-5568"}],a=p({currentVersion:null}),l=p({filter:null});v=y.params.game,o=S(v),o.versions||(a.currentVersion=1),o||$.push({name:"ErrorPage",params:{catchAll:"404"}});function I(){if(l.filter)return h.filter(n=>n.name.toLowerCase().includes(l.filter.toLowerCase())||n.rivalID.toLowerCase().includes(l.filter.toLowerCase()))}function R(){var n=null;return a.currentVersion?n=`/assets/games/${o.id}/card/${a.currentVersion}.png`:n=o.cardBG,n}function C(){return`
|
||||
import{s as p,ad as S,a as i,c as d,w as r,b as t,g as e,e as u,i as m,k as _,ac as B,P as b,at as L,_ as f,j as w,t as g,f as k,F as x,au as A,l as j,n as F,p as G,q as z}from"./index.93cb35a3.js";import{_ as E}from"./ProfileCard.3258fb10.js";import{_ as N}from"./FormField.438d4afd.js";import{_ as V}from"./FormControl.6789cb84.js";import"./userData.bcc92478.js";const P={class:"md:flex md:justify-end pb-6 items-center"},U={key:0,class:"mt-2 md:mt-0 md:w-1/3 md:text-right"},Y=e("h2",{class:"text-md sm:text-lg md:text-xl font-bold p-2"}," Select Version ",-1),T={class:"bg-white dark:bg-slate-900/90 rounded-2xl pt-6 p-3"},q={class:"w-full"},H={class:"grid gap-3"},M={class:"flex justify-between items-center"},O={class:"flex"},Z=e("img",{class:"w-10 mr-3",src:"https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/"},null,-1),J={class:"grid"},K={class:"text-lg"},Q={class:"text-md font-mono"},W={class:"grid gap-3"},X={class:"flex justify-between items-center"},ee={class:"flex"},se=e("img",{class:"w-10 mr-3",src:"https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/"},null,-1),te={class:"grid"},ae={class:"text-lg"},ie={class:"text-md font-mono"},ue={__name:"RivalsView",setup(oe){const y=G(),$=z();var v=null,o=null;const D={id:1,name:"Trmazi",extid:12345678,avatar:"https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/",last:{arcade:"GhettoCade",date:"7/16/2023"}},h=[{id:1,name:"TRMAZI",rivalID:"1234-5678"},{id:2,name:"BLADE",rivalID:"1454-5687"},{id:3,name:"HO!",rivalID:"5364-5568"}],a=p({currentVersion:null}),l=p({filter:null});v=y.params.game,o=S(v),o.versions||(a.currentVersion=1),o||$.push({name:"ErrorPage",params:{catchAll:"404"}});function I(){if(l.filter)return h.filter(n=>n.name.toLowerCase().includes(l.filter.toLowerCase())||n.rivalID.toLowerCase().includes(l.filter.toLowerCase()))}function R(){var n=null;return a.currentVersion?n=`/assets/games/${o.id}/card/${a.currentVersion}.webp`:n=o.cardBG,n}function C(){return`
|
||||
background-image: url('${R()}');
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
`}return(n,c)=>(i(),d(F,null,{default:r(()=>[t(j,null,{default:r(()=>[e("div",P,[u(o).versions?(i(),m("div",U,[Y,t(V,{modelValue:a.currentVersion,"onUpdate:modelValue":c[0]||(c[0]=s=>a.currentVersion=s),options:u(o).versions},null,8,["modelValue","options"])])):_("",!0)]),a.currentVersion?(i(),m("div",{key:0,style:B(C()),class:"rounded-2xl mb-6"},[e("div",T,[e("div",q,[t(E,{"use-small":"",profile:D})])])],4)):_("",!0),t(b,{icon:u(L),title:"Add a Rival",main:""},null,8,["icon"]),a.currentVersion?(i(),d(f,{key:1,class:"mb-6"},{default:r(()=>[t(N,{label:"Search",help:"Search by username or Rival ID to add a rival.",class:"w-full md:w-1/3"},{default:r(()=>[t(V,{modelValue:l.filter,"onUpdate:modelValue":c[1]||(c[1]=s=>l.filter=s),"model-value":l.filter,placeholder:"1234-5678"},null,8,["modelValue","model-value"])]),_:1}),e("div",H,[(i(!0),m(x,null,k(I(),s=>(i(),d(f,{key:s.id},{default:r(()=>[e("div",M,[e("div",O,[Z,e("div",J,[e("h1",K,g(s.name),1),e("h2",Q,g(s.rivalID),1)])]),t(w,{label:"Add Rival",color:"success"})])]),_:2},1024))),128))])]),_:1})):_("",!0),t(b,{icon:u(A),title:"Rivals",main:""},null,8,["icon"]),a.currentVersion?(i(),d(f,{key:2,class:"mb-6"},{default:r(()=>[e("div",W,[(i(),m(x,null,k(h,s=>t(f,{key:s.id},{default:r(()=>[e("div",X,[e("div",ee,[se,e("div",te,[e("h1",ae,g(s.name),1),e("h2",ie,g(s.rivalID),1)])]),t(w,{label:"Remove Rival",color:"danger"})])]),_:2},1024)),64))])]),_:1})):_("",!0)]),_:1})]),_:1}))}};export{ue as default};
|
||||
`}return(n,c)=>(i(),d(F,null,{default:r(()=>[t(j,null,{default:r(()=>[e("div",P,[u(o).versions?(i(),m("div",U,[Y,t(V,{modelValue:a.currentVersion,"onUpdate:modelValue":c[0]||(c[0]=s=>a.currentVersion=s),options:u(o).versions},null,8,["modelValue","options"])])):_("",!0)]),a.currentVersion?(i(),m("div",{key:0,style:B(C()),class:"rounded-2xl mb-6"},[e("div",T,[e("div",q,[t(E,{"use-small":"",profile:D})])])],4)):_("",!0),t(b,{icon:u(L),title:"Add a Rival",main:""},null,8,["icon"]),a.currentVersion?(i(),d(f,{key:1,class:"mb-6"},{default:r(()=>[t(N,{label:"Search",help:"Search by username or Rival ID to add a rival.",class:"w-full md:w-1/3"},{default:r(()=>[t(V,{modelValue:l.filter,"onUpdate:modelValue":c[1]||(c[1]=s=>l.filter=s),"model-value":l.filter,placeholder:"1234-5678"},null,8,["modelValue","model-value"])]),_:1}),e("div",H,[(i(!0),m(x,null,w(I(),s=>(i(),d(f,{key:s.id},{default:r(()=>[e("div",M,[e("div",O,[Z,e("div",J,[e("h1",K,g(s.name),1),e("h2",Q,g(s.rivalID),1)])]),t(k,{label:"Add Rival",color:"success"})])]),_:2},1024))),128))])]),_:1})):_("",!0),t(b,{icon:u(A),title:"Rivals",main:""},null,8,["icon"]),a.currentVersion?(i(),d(f,{key:2,class:"mb-6"},{default:r(()=>[e("div",W,[(i(),m(x,null,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{ue as default};
|
||||
|
Before Width: | Height: | Size: 170 KiB |
BIN
assets/border/leaves.webp
Normal file
|
After Width: | Height: | Size: 173 KiB |
|
Before Width: | Height: | Size: 2.0 KiB |
BIN
assets/border/nonbinary.webp
Normal file
|
After Width: | Height: | Size: 7.0 KiB |
|
Before Width: | Height: | Size: 15 KiB |
BIN
assets/border/pride.webp
Normal file
|
After Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 389 KiB |
BIN
assets/border/swirl.webp
Normal file
|
After Width: | Height: | Size: 522 KiB |
|
Before Width: | Height: | Size: 38 KiB |
BIN
assets/border/test.webp
Normal file
|
After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 33 KiB |
BIN
assets/border/trans.webp
Normal file
|
After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 532 KiB |
BIN
assets/card/bst.webp
Normal file
|
After Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 415 KiB |
BIN
assets/card/carpet.webp
Normal file
|
After Width: | Height: | Size: 138 KiB |
|
Before Width: | Height: | Size: 1.6 MiB |
BIN
assets/card/dancerush.webp
Normal file
|
After Width: | Height: | Size: 156 KiB |
|
Before Width: | Height: | Size: 278 KiB |
BIN
assets/card/danevo.webp
Normal file
|
After Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 130 KiB |
BIN
assets/card/ddr.webp
Normal file
|
After Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 321 KiB |
BIN
assets/card/dm.webp
Normal file
|
After Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 828 KiB |
BIN
assets/card/gf.webp
Normal file
|
After Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 265 KiB |
BIN
assets/card/gitadora_dm.webp
Normal file
|
After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 413 KiB |
BIN
assets/card/gitadora_gf.webp
Normal file
|
After Width: | Height: | Size: 45 KiB |
|
Before Width: | Height: | Size: 339 KiB |
BIN
assets/card/gradient.webp
Normal file
|
After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 724 KiB |
BIN
assets/card/iidx.webp
Normal file
|
After Width: | Height: | Size: 188 KiB |
|
Before Width: | Height: | Size: 1.4 MiB |
BIN
assets/card/jubeat.webp
Normal file
|
After Width: | Height: | Size: 449 KiB |
|
Before Width: | Height: | Size: 95 KiB |
BIN
assets/card/loveplus.webp
Normal file
|
After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 5.3 MiB |
BIN
assets/card/museca.webp
Normal file
|
After Width: | Height: | Size: 884 KiB |
|
Before Width: | Height: | Size: 339 KiB |
BIN
assets/card/newbishi.webp
Normal file
|
After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 339 KiB |
BIN
assets/card/nost.webp
Normal file
|
After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 432 KiB |
BIN
assets/card/popn.webp
Normal file
|
After Width: | Height: | Size: 188 KiB |
|
Before Width: | Height: | Size: 5.5 KiB |
BIN
assets/card/pride.webp
Normal file
|
After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 513 KiB |
BIN
assets/card/reflec.webp
Normal file
|
After Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 79 KiB |
BIN
assets/card/sdvx.webp
Normal file
|
After Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 1.9 MiB |
BIN
assets/card/time.webp
Normal file
|
After Width: | Height: | Size: 337 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
BIN
assets/card/trans.webp
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 4.0 MiB |
BIN
assets/card/tsum.webp
Normal file
|
After Width: | Height: | Size: 771 KiB |
|
Before Width: | Height: | Size: 732 KiB |
BIN
assets/games/bst/card/1.webp
Normal file
|
After Width: | Height: | Size: 137 KiB |
|
Before Width: | Height: | Size: 388 KiB |
BIN
assets/games/bst/card/2.webp
Normal file
|
After Width: | Height: | Size: 49 KiB |
|
Before Width: | Height: | Size: 1.6 MiB |
BIN
assets/games/dancerush/card/1.webp
Normal file
|
After Width: | Height: | Size: 156 KiB |
|
Before Width: | Height: | Size: 278 KiB |
BIN
assets/games/danevo/card/1.webp
Normal file
|
After Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 44 KiB |
BIN
assets/games/ddr/12.webp
Normal file
|
After Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 133 KiB |
BIN
assets/games/ddr/13.webp
Normal file
|
After Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 76 KiB |
BIN
assets/games/ddr/14.webp
Normal file
|
After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 76 KiB |
BIN
assets/games/ddr/15.webp
Normal file
|
After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 76 KiB |