PageSourceSearch

https://aviumui.org/assets/entries/src_pages_admin_devices_-codename_recoveries_new.CetQLIc2.js

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

1import{_ as S,r as w,f as _,b as e,h as g,z as u,A as T,L as s,G as n,C as b,w as c,u as p,t as z,l as U,k as C,s as k}from"../chunks/chunk-D6Oav43O.js";import{n as v}from"../chunks/chunk-lzWkO0SH.js";import"../chunks/chunk-D1JYe4Qp.js";import{a as f}from"../chunks/chunk-pJ2yq5Pf.js";/* empty css                      *//* empty css                      *//* empty css                      *//* empty css                      */import"../chunks/chunk-BwNI8fUT.js";const P={class:"recovery-new"},A={class:"md3-card recovery-card"},x={class:"header"},D={class:"title"},V={class:"form"},j={class:"field"},E={class:"ctr"},R={class:"field"},B={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=b(),r=decodeURIComponent(m?.routeParams?.codename||""),a=c({minVersion:"",downloadUrl:"",fileSize:null,checksum:""}),l=c(!1);function d(){v(`/admin/devices/${encodeURIComponent(r)}`)}async function h(){return(await f("/api/user/info",{method:"GET"}))?.ok?!0:(await v("/admin/login"),!1)}async function y(){l.value=!0;try{const i={codename:r,type:"recovery",versionName:a.value.minVersion,recoveryDownloadUrl:a.value.downloadUrl,recoveryFileSize:a.value.fileSize,recoveryChecksum:a.value.checksum},t=await f("/api/device/push",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}),o=await t.json().catch(()=>({}));if(!t.ok)throw new Error(o?.message||"Create failed");await p({type:"alert",title:"Success",content:"Recovery created"}),d()}catch(i){await p({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",A,[e("header",x,[e("h1",D,[t[4]||(t[4]=e("span",{class:"material-icons-round"},"health_and_safety",-1)),g(" New Recovery · "+u(T(r)),1)]),e("div",{class:"actions"},[e("button",{class:"md3-btn md3-btn--outlined",onClick:d},"Back")])]),e("div",V,[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]=o=>a.value.minVersion=o),placeholder:"e.g. v1.0.0"},null,512),[[n,a.value.minVersion,void 0,{trim:!0}]])])]),e("div",R,[t[6]||(t[6]=e("label",{class:"lab",for:"f-downloadUrl"},"Download URL",-1)),e("div",B,[s(e("input",{class:"md3-input",id:"f-downloadUrl","onUpdate:modelValue":t[1]||(t[1]=o=>a.value.downloadUrl=o),placeholder:"https://...img"},null,512),[[n,a.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]=o=>a.value.fileSize=o),type:"number",placeholder:"e.g. 123456789"},null,512),[[n,a.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]=o=>a.value.checksum=o),placeholder:"md5/sha256"},null,512),[[n,a.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-8b4ce410"]]),J=Object.freeze(Object.defineProperty({__proto__:null,default:H},Symbol.toStringTag,{value:"Module"})),ae={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/recoveries/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{ae 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.