import{_ as e,u as s,v as a,w as n,x as t,y as o,z as c,A as l,B as i,C as p,D as r,E as g,F as u,G as d,H as m,I as y,J as h,K as f,L as k,M as _}from"./尾页-01ff3947.js";import{_ as v,i as x,a as b,m as j,q as S,b as C,o as O,c as M,f as N,e as z,w as P,h as w,u as E,v as L,p as U,k as R}from"./index-4c6e30ca.js";const q=""+new URL("login-48da88de.png",import.meta.url).href,A=Object.freeze(Object.defineProperty({__proto__:null,default:q},Symbol.toStringTag,{value:"Module"})),D=""+new URL("logo-abcaf0c2.png",import.meta.url).href,I=Object.freeze(Object.defineProperty({__proto__:null,default:D},Symbol.toStringTag,{value:"Module"})),K=[{name:"对话框",type:"icon-duihuakuang"},{name:"闹钟",type:"icon-naozhong"},{name:"笑脸",type:"icon-xiaolian"},{name:"ok",type:"icon-ok"},{name:"风车",type:"icon-fengche"},{name:"汗颜",type:"icon-hanyan"},{name:"相机",type:"icon-xiangji"},{name:"礼物",type:"icon-liwu"},{name:"礼花",type:"icon-lihua"},{name:"扭蛋",type:"icon-niudan"},{name:"流星",type:"icon-liuxing"},{name:"风筝",type:"icon-fengzheng"},{name:"蛋糕",type:"icon-dangao"},{name:"泡泡",type:"icon-paopao"},{name:"购物",type:"icon-gouwu"},{name:"饮料",type:"icon-yinliao"},{name:"云彩",type:"icon-yuncai"},{name:"彩铅",type:"icon-caiqian"},{name:"纸飞机",type:"icon-zhifeiji"},{name:"点赞",type:"icon-dianzan"},{name:"煎蛋",type:"icon-jiandan"},{name:"小熊",type:"icon-xiaoxiong"},{name:"花",type:"icon-hua"},{name:"眼睛",type:"icon-yanjing"}],T=Object.assign({"/src/assets/1.png":e,"/src/assets/10.png":s,"/src/assets/11.png":a,"/src/assets/12.png":n,"/src/assets/13.png":t,"/src/assets/14.png":o,"/src/assets/15.png":c,"/src/assets/16.png":l,"/src/assets/17.png":i,"/src/assets/18.png":p,"/src/assets/2.png":r,"/src/assets/3.png":g,"/src/assets/4.png":u,"/src/assets/5.png":d,"/src/assets/6.png":m,"/src/assets/7.png":y,"/src/assets/8.png":h,"/src/assets/9.png":f,"/src/assets/login.png":A,"/src/assets/logo.png":I,"/src/assets/封面.png":k,"/src/assets/尾页.png":_});Object.values(T).map((e=>e.default));const V={data:()=>({type:1,iconData:K,progressName:"",exePath:""}),methods:{exec(e){console.log("process:",process);const s={id:e};x.invoke(b.test,s).then((e=>{console.log("res:",e)}))},exec2(e){},getMac(){x.invoke(b.getAllMac,{}).then((e=>{console.log("macs :",e)}))},getOSMessage(){x.invoke(b.getOSMessage,{}).then((e=>{console.log("OS :",e)}))},setSound(){x.invoke(b.deviceLoudness,{value:100}).then((e=>{console.log("设置后的声音 :",e)}))},restart(){x.invoke(b.deviceRestart,{}).then((e=>{console.log("重启 :",e)}))},kill(){console.log(this.progressName),x.invoke(b.deviceKillName,this.progressName).then((e=>{console.log("关闭进程结果 :",e)}))},starExe(){console.log(this.exePath),x.invoke(b.deviceStarExe,this.exePath).then((e=>{console.log("启动程序 :",e)}))},testNet(){console.log(j),S().then((e=>{console.log(e)})).catch((e=>{console.error(e)}))}}},B={id:"app-base-test-api"},F=(e=>(U("data-v-223ec398"),e=e(),R(),e))((()=>N("div",{class:"one-block-1"},[N("span",null," 1. 测试一些操作系统api ")],-1))),G={class:"one-block-2"};const H=v(V,[["render",function(e,s,a,n,t,o){const c=C("a-button"),l=C("a-space");return O(),M("div",B,[F,N("div",G,[z(l,null,{default:P((()=>[z(c,{onClick:s[0]||(s[0]=e=>o.exec(1))},{default:P((()=>[w(" 点击 ")])),_:1}),z(c,{onClick:s[1]||(s[1]=e=>o.exec2(1))},{default:P((()=>[w(" 点击2 ")])),_:1}),z(c,{onClick:s[2]||(s[2]=e=>o.getMac())},{default:P((()=>[w(" 获取mac 列表 ")])),_:1}),z(c,{onClick:s[3]||(s[3]=e=>o.getOSMessage())},{default:P((()=>[w(" 获取系统信息 ")])),_:1}),z(c,{onClick:s[4]||(s[4]=e=>o.setSound())},{default:P((()=>[w(" 设置声音50")])),_:1}),z(c,{onClick:s[5]||(s[5]=e=>o.restart())},{default:P((()=>[w("重启")])),_:1})])),_:1}),z(l,null,{default:P((()=>[E(N("input",{"onUpdate:modelValue":s[6]||(s[6]=e=>t.progressName=e),placeholder:"请输入进程名称"},null,512),[[L,t.progressName]]),z(c,{onClick:s[7]||(s[7]=e=>o.kill())},{default:P((()=>[w(" kill 指定进程 ")])),_:1})])),_:1}),z(l,null,{default:P((()=>[E(N("input",{"onUpdate:modelValue":s[8]||(s[8]=e=>t.exePath=e),placeholder:"请输入程序地址"},null,512),[[L,t.exePath]]),z(c,{onClick:s[9]||(s[9]=e=>o.starExe())},{default:P((()=>[w(" 启动 ")])),_:1})])),_:1}),z(l,null,{default:P((()=>[z(c,{onClick:s[10]||(s[10]=e=>o.testNet())},{default:P((()=>[w(" 测试网络请求 ")])),_:1})])),_:1})])])}],["__scopeId","data-v-223ec398"]]);export{H as default};
