import{a as e}from"./logo-9754eb61.js";import{_ as a,i as n,h as o,r as t,o as i,b as l,g as s,a as c,w as p,e as d,l as u,v as g,p as m,f as r}from"./index-ea5b20ee.js";const y=""+new URL("login-48da88de.png",import.meta.url).href,h=Object.freeze(Object.defineProperty({__proto__:null,default:y},Symbol.toStringTag,{value:"Module"})),f=[{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"}],k=Object.assign({"/src/assets/login.png":h,"/src/assets/logo.png":e});Object.values(k).map((e=>e.default));const v={data:()=>({type:1,iconData:f,progressName:"",exePath:""}),methods:{exec(e){console.log("process:",process);const a={id:e};n.invoke(o.test,a).then((e=>{console.log("res:",e)}))},exec2(e){},getMac(){n.invoke(o.getAllMac,{}).then((e=>{console.log("macs :",e)}))},getOSMessage(){n.invoke(o.getOSMessage,{}).then((e=>{console.log("OS :",e)}))},setSound(){n.invoke(o.deviceLoudness,{value:100}).then((e=>{console.log("设置后的声音 :",e)}))},restart(){n.invoke(o.deviceRestart,{}).then((e=>{console.log("重启 :",e)}))},kill(){console.log(this.progressName),n.invoke(o.deviceKillName,this.progressName).then((e=>{console.log("关闭进程结果 :",e)}))},starExe(){console.log(this.exePath),n.invoke(o.deviceStarExe,this.exePath).then((e=>{console.log("启动程序 :",e)}))}}},x={id:"app-base-test-api"},_=(e=>(m("data-v-a36daad7"),e=e(),r(),e))((()=>s("div",{class:"one-block-1"},[s("span",null," 1. 测试一些操作系统api ")],-1))),b={class:"one-block-2"};const j=a(v,[["render",function(e,a,n,o,m,r){const y=t("a-button"),h=t("a-space");return i(),l("div",x,[_,s("div",b,[c(h,null,{default:p((()=>[c(y,{onClick:a[0]||(a[0]=e=>r.exec(1))},{default:p((()=>[d(" 点击 ")])),_:1}),c(y,{onClick:a[1]||(a[1]=e=>r.exec2(1))},{default:p((()=>[d(" 点击2 ")])),_:1}),c(y,{onClick:a[2]||(a[2]=e=>r.getMac())},{default:p((()=>[d(" 获取mac 列表 ")])),_:1}),c(y,{onClick:a[3]||(a[3]=e=>r.getOSMessage())},{default:p((()=>[d(" 获取系统信息 ")])),_:1}),c(y,{onClick:a[4]||(a[4]=e=>r.setSound())},{default:p((()=>[d(" 设置声音50")])),_:1}),c(y,{onClick:a[5]||(a[5]=e=>r.restart())},{default:p((()=>[d("重启")])),_:1})])),_:1}),c(h,null,{default:p((()=>[u(s("input",{"onUpdate:modelValue":a[6]||(a[6]=e=>m.progressName=e),placeholder:"请输入进程名称"},null,512),[[g,m.progressName]]),c(y,{onClick:a[7]||(a[7]=e=>r.kill())},{default:p((()=>[d(" kill 指定进程 ")])),_:1})])),_:1}),c(h,null,{default:p((()=>[u(s("input",{"onUpdate:modelValue":a[8]||(a[8]=e=>m.exePath=e),placeholder:"请输入程序地址"},null,512),[[g,m.exePath]]),c(y,{onClick:a[9]||(a[9]=e=>r.starExe())},{default:p((()=>[d(" 启动 ")])),_:1})])),_:1})])])}],["__scopeId","data-v-a36daad7"]]);export{j as default};
