mirror of
https://github.com/PhaseII-eAmusement-Network/PhaseWeb3-Vue.git
synced 2026-10-27 09:30:48 -05:00
2 lines
2.5 KiB
JavaScript
2 lines
2.5 KiB
JavaScript
import{s,a as p,c as r,w as n,b as e,X as i,e as m,aj as c,g as u,aa as f,ak as _,_ as g,f as h,l as b,n as V}from"./index.26ff47d4.js";import{_ as o}from"./FormField.3920cd23.js";import{_ as v}from"./FormCheckRadio.c2c9f311.js";import{_ as d}from"./FormControl.e7078065.js";const D={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 mb-6"},A={__name:"OTAView",setup(U){const a=s({...{name:"",game:"",mCode:"",fromDatecode:"",toDatecode:"",fileType:"",betaOnly:!1}});return(C,t)=>(p(),r(V,null,{default:n(()=>[e(b,null,{default:n(()=>[e(i,{icon:m(c),title:"OTA Update Administration",color:"text-red-600",main:""},null,8,["icon"]),u("div",D,[e(f,{number:1,label:"Active Updates"})]),e(i,{icon:m(_),title:"Add an Update",main:""},null,8,["icon"]),e(g,{"is-form":"",class:"row-span-1"},{default:n(()=>[e(o,{label:"Update Name",help:"This is only for documentation and does not change the update filepath."},{default:n(()=>[e(d,{modelValue:a.name,"onUpdate:modelValue":t[0]||(t[0]=l=>a.name=l),"input-value":a.name,name:"updateName",required:""},null,8,["modelValue","input-value"])]),_:1}),e(o,{label:"MCODE",help:"The MCODE of the destination image. Leave blank for any MCODE (not recommended!). ex: JAB"},{default:n(()=>[e(d,{modelValue:a.mCode,"onUpdate:modelValue":t[1]||(t[1]=l=>a.mCode=l),"input-value":a.mCode,name:"updateMCode",maxlength:"3",minlength:"3"},null,8,["modelValue","input-value"])]),_:1}),e(o,{label:"Initial Datecode",help:"The starting datecode, what will download this update. ex: 2024122600"},{default:n(()=>[e(d,{modelValue:a.fromDatecode,"onUpdate:modelValue":t[2]||(t[2]=l=>a.fromDatecode=l),"input-value":a.fromDatecode,name:"fromDatecode",maxlength:"10",minlength:"10",required:""},null,8,["modelValue","input-value"])]),_:1}),e(o,{label:"Destination Datecode",help:"The resulting datecode, what this update will contain. ex: 2024122700"},{default:n(()=>[e(d,{modelValue:a.toDatecode,"onUpdate:modelValue":t[3]||(t[3]=l=>a.toDatecode=l),"input-value":a.toDatecode,name:"toDatecode",maxlength:"10",minlength:"10",required:""},null,8,["modelValue","input-value"])]),_:1}),e(o,{label:"Beta Restriction",help:"Limit this update to machines registered to a beta testing arcade."},{default:n(()=>[e(v,{modelValue:a.betaOnly,"onUpdate:modelValue":t[4]||(t[4]=l=>a.betaOnly=l),"input-value":a.betaOnly,name:"betaOnly",type:"switch"},null,8,["modelValue","input-value"])]),_:1}),u("div",null,[e(h,{type:"submit",color:"success",label:"Add Update",small:!1,onClick:l=>!1})])]),_:1})]),_:1})]),_:1}))}};export{A as default};
|