PageSourceSearch

https://aviumui.org/assets/entries/src_pages_admin_devices_-codename_vendor_boots_new.Ca73rs4j.js

js aviumui.org collected 2026-09-25 22:37:22 UTC 5,124 bytes, 1 lines download raw bytes

1import{_ as S,r as w,f as _,b as e,h as b,z as u,A as g,L as s,G as n,C as T,w as p,u as c,t as z,l as U,k as C,s as k}from"../chunks/chunk-D6Oav43O.js";import{n as f}from"../chunks/chunk-lzWkO0SH.js";import"../chunks/chunk-D1JYe4Qp.js";import{a as v}from"../chunks/chunk-pJ2yq5Pf.js";/* empty css                      *//* empty css                      *//* empty css                      *//* empty css                      */import"../chunks/chunk-BwNI8fUT.js";const P={class:"vendorboot-new"},V={class:"md3-card vendorboot-card"},A={class:"header"},x={class:"title"},D={class:"form"},j={class:"field"},E={class:"ctr"},B={class:"field"},R={class:"ctr"},L={class:"field"},N={class:"ctr"},O={class:"field"},I={class:"ctr"},M={class:"footer"},F=["disabled"],G={__name:"+Page",setup($){const m=T(),d=decodeURIComponent(m?.routeParams?.codename||""),o=p({minVersion:"",downloadUrl:"",fileSize:null,checksum:""}),l=p(!1);function r(){f(`/admin/devices/${encodeURIComponent(d)}`)}async function h(){return(await v("/api/user/info",{method:"GET"}))?.ok?!0:(await f("/admin/login"),!1)}async function y(){l.value=!0;try{const i={codename:d,type:"vendor_boot",versionName:o.value.minVersion,vendorBootDownloadUrl:o.value.downloadUrl,vendorBootFileSize:o.value.fileSize,vendorBootChecksum:o.value.checksum},t=await v("/api/device/push",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}),a=await t.json().catch(()=>({}));if(!t.ok)throw new Error(a?.message||"Create failed");await c({type:"alert",title:"Success",content:"Vendor Boot created"}),r()}catch(i){await c({type:"alert",title:"Error",content:String(i?.message||i)})}finally{l.value=!1}}return w(async()=>{await h()}),(i,t)=>(z(),_("div",P,[e("div",V,[e("header",A,[e("h1",x,[t[4]||(t[4]=e("span",{class:"material-icons-round"},"memory",-1)),b(" New Vendor Boot · "+u(g(d)),1)]),e("div",{class:"actions"},[e("button",{class:"md3-btn md3-btn--outlined",onClick:r},"Back")])]),e("div",D,[e("div",j,[t[5]||(t[5]=e("label",{class:"lab",for:"f-minVersion"},"Min supported version",-1)),e("div",E,[s(e("input",{class:"md3-input",id:"f-minVersion","onUpdate:modelValue":t[0]||(t[0]=a=>o.value.minVersion=a),placeholder:"e.g. v1.0.0"},null,512),[[n,o.value.minVersion,void 0,{trim:!0}]])])]),e("div",B,[t[6]||(t[6]=e("label",{class:"lab",for:"f-downloadUrl"},"Download URL",-1)),e("div",R,[s(e("input",{class:"md3-input",id:"f-downloadUrl","onUpdate:modelValue":t[1]||(t[1]=a=>o.value.downloadUrl=a),placeholder:"https://...img"},null,512),[[n,o.value.downloadUrl,void 0,{trim:!0}]])])]),e("div",L,[t[7]||(t[7]=e("label",{class:"lab",for:"f-fileSize"},"File size (bytes)",-1)),e("div",N,[s(e("input",{class:"md3-input",id:"f-fileSize","onUpdate:modelValue":t[2]||(t[2]=a=>o.value.fileSize=a),type:"number",placeholder:"e.g. 123456789"},null,512),[[n,o.value.fileSize,void 0,{number:!0}]])])]),e("div",O,[t[8]||(t[8]=e("label",{class:"lab",for:"f-checksum"},"Checksum",-1)),e("div",I,[s(e("input",{class:"md3-input",id:"f-checksum","onUpdate:modelValue":t[3]||(t[3]=a=>o.value.checksum=a),placeholder:"md5/sha256"},null,512),[[n,o.value.checksum,void 0,{trim:!0}]])])])]),e("footer",M,[e("button",{class:"md3-btn md3-btn--filled",disabled:l.value,onClick:y},u(l.value?"Creating...":"Create"),9,F)])])]))}},H=S(G,[["__scopeId","data-v-b2e963a2"]]),J=Object.freeze(Object.defineProperty({__proto__:null,default:H},Symbol.toStringTag,{value:"Module"})),oe={hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!1}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},onRenderClient:{type:"standard",definedAtData:{filePathToShowToUser:"vike-vue/__internal/integration/onRenderClient",fileExportPathToShowToUser:[]},valueSerialized:{type:"pointer-import",value:k}},Page:{type:"standard",definedAtData:{filePathToShowToUser:"/src/pages/admin/devices/@codename/vendor_boots/new/+Page.vue",f
1ileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:J}},hydrationCanBeAborted:{type:"standard",definedAtData:{filePathToShowToUser:"vike-vue/config",fileExportPathToShowToUser:["default","hydrationCanBeAborted"]},valueSerialized:{type:"js-serialized",value:!0}},Layout:{type:"cumulative",definedAtData:[{filePathToShowToUser:"/src/pages/+Layout.vue",fileExportPathToShowToUser:[]}],valueSerialized:[{type:"plus-file",exportValues:C}]},title:{type:"standard",definedAtData:{filePathToShowToUser:"/src/pages/+config.js",fileExportPathToShowToUser:["default","title"]},valueSerialized:{type:"js-serialized",value:"AviumUI"}},onCreateApp:{type:"cumulative",definedAtData:[{filePathToShowToUser:"/src/pages/+onCreateApp.js",fileExportPathToShowToUser:[]}],valueSerialized:[{type:"plus-file",exportValues:U}]}};export{oe as configValuesSerialized};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.