This commit is contained in:
gaoshuaixing
2023-11-10 18:59:13 +08:00
parent 27b8237805
commit 85af297954
106 changed files with 374 additions and 10 deletions

View File

@@ -6,7 +6,7 @@
"max_size": 1024,
"max_age": 10
},
"http": {
"http": {
"enable": true,
"protocol": "http://",
"hostname": "127.0.0.1",

View File

@@ -6,7 +6,7 @@
"max_size": 1024,
"max_age": 20
},
"http": {
"http": {
"enable": true,
"protocol": "http://",
"hostname": "127.0.0.1",

View File

@@ -6,7 +6,7 @@
"max_size": 1024,
"max_age": 30
},
"http": {
"http": {
"enable": true,
"protocol": "http://",
"hostname": "127.0.0.1",

View File

@@ -1,17 +1,24 @@
package main
import (
"embed"
"ee-go/eboot"
"electron-egg/router"
)
var (
//go:embed public/**
staticFS embed.FS
)
func main() {
// Initialize ee-go
eboot.Init()
eboot.Init(staticFS)
// User business logic
router.Load()
router.Init()
// ee-go runtime
eboot.Run()

View File

@@ -0,0 +1,17 @@
{
"logger": {
"output_json": false,
"level": "info",
"filename": "ee-go.log",
"max_size": 1024,
"max_age": 10
},
"http": {
"enable": true,
"protocol": "http://",
"hostname": "127.0.0.1",
"port": 7073,
"indexPath": "",
"network": false
}
}

View File

@@ -0,0 +1,17 @@
{
"logger": {
"output_json": false,
"level": "info",
"filename": "ee-go.log",
"max_size": 1024,
"max_age": 20
},
"http": {
"enable": true,
"protocol": "http://",
"hostname": "127.0.0.1",
"port": 7073,
"indexPath": "",
"network": false
}
}

View File

@@ -0,0 +1,17 @@
{
"logger": {
"output_json": true,
"level": "info",
"filename": "ee-go.log",
"max_size": 1024,
"max_age": 30
},
"http": {
"enable": true,
"protocol": "http://",
"hostname": "127.0.0.1",
"port": 7073,
"indexPath": "",
"network": false
}
}

View File

@@ -0,0 +1 @@
import{_ as e,r as a,o as n,c as t,w as l,a as o,b as s,d as i,F as u,e as c,t as r,p as d,f as m,g as p}from"./index-4492cee0.js";const g=""+new URL("logo-abcaf0c2.png",import.meta.url).href,h={name:"AppSider",data:()=>({collapsed:!0,current:"menu_1",menu:{menu_1:{icon:"icon-fengche",title:"框架",pageName:"Framework",params:{}},menu_2:{icon:"icon-niudan",title:"系统",pageName:"Os",params:{}},menu_3:{icon:"icon-xiangji",title:"硬件",pageName:"Hardware",params:{}},menu_4:{icon:"icon-liuxing",title:"特效",pageName:"Effect",params:{}}}}),created(){},mounted(){this.menuHandle()},methods:{menuHandle(e){console.log("sider menu e:",e),this.current=e?e.key:this.current,console.log("sider menu current:",this.current);const a=this.menu[this.current];console.log("[home] load linkInfo:",a),this.$router.push({name:a.pageName,params:a.params})},changeMenu(e){console.log("sider menu e:",e)}}},f=(e=>(d("data-v-a4dde330"),e=e(),m(),e))((()=>p("div",{class:"logo"},[p("img",{class:"pic-logo",src:g})],-1)));const _=e(h,[["render",function(e,d,m,p,g,h){const _=a("icon-font"),y=a("a-menu-item"),k=a("a-menu"),w=a("a-layout-sider"),N=a("router-view"),v=a("a-layout-content"),x=a("a-layout");return n(),t(x,{id:"app-layout-sider"},{default:l((()=>[o(w,{modelValue:g.collapsed,"onUpdate:modelValue":d[0]||(d[0]=e=>g.collapsed=e),theme:"light",class:"layout-sider",width:"100"},{default:l((()=>[f,o(k,{class:"menu-item",theme:"light",mode:"inline",selectedKeys:[g.current],onClick:h.menuHandle},{default:l((()=>[(n(!0),s(u,null,i(g.menu,((e,a)=>(n(),t(y,{key:a},{default:l((()=>[o(_,{type:e.icon},null,8,["type"]),c(" "+r(e.title),1)])),_:2},1024)))),128))])),_:1},8,["selectedKeys","onClick"])])),_:1},8,["modelValue"]),o(x,null,{default:l((()=>[o(v,{class:"layout-content"},{default:l((()=>[o(N)])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-a4dde330"]]);export{_ as default};

Binary file not shown.

View File

@@ -0,0 +1 @@
#app-layout-sider[data-v-a4dde330]{height:100%}#app-layout-sider .logo[data-v-a4dde330]{border-bottom:1px solid #e8e8e8}#app-layout-sider .pic-logo[data-v-a4dde330]{height:32px;margin:10px}#app-layout-sider .layout-sider[data-v-a4dde330]{border-top:1px solid #e8e8e8;border-right:1px solid #e8e8e8}#app-layout-sider .menu-item .ant-menu-item[data-v-a4dde330]{background-color:#fff;margin-top:0;margin-bottom:0;padding:0!important}

View File

@@ -0,0 +1 @@
#app-base-httpserver[data-v-3508e997]{padding:0 10px;text-align:left;width:100%}#app-base-httpserver .one-block-1[data-v-3508e997]{font-size:16px;padding-top:10px}#app-base-httpserver .one-block-2[data-v-3508e997]{padding-top:10px}

View File

@@ -0,0 +1 @@
import{i as t}from"./main-429c1dad.js";import{i as e}from"./ipcRenderer-5e19eaee.js";import{a as s}from"./index-37e5a4e4.js";import{s as o}from"./store2-15d37b6b.js";import{_ as r,r as n,o as a,b as i,g as l,t as c,e as u,a as d,w as p,p as h,f as m}from"./index-4492cee0.js";const v={data:()=>({currentStatus:"关闭",servicAddress:"无"}),mounted(){this.init()},methods:{init(){e.invoke(t.checkHttpServer,{}).then((t=>{t.enable&&(this.currentStatus="开启",this.servicAddress=t.server,o.set("httpServiceConfig",t))}))},sendRequest(e){"关闭"!=this.currentStatus?this.requestHttp(t.doHttpRequest,{id:e}).then((t=>{})):this.$message.error("http服务未开启")},requestHttp(t,e){const r=o.get("httpServiceConfig").server||"http://localhost:7071";let n=t.split(".").join("/");return n=r+"/"+n,console.log("url:",n),s({url:n,method:"post",data:e,timeout:6e4})},backendRequest(){console.log("GO_URL:","http://www.test.com");s({baseURL:"http://www.test.com",method:"get",url:"/hello",timeout:6e4}).then((t=>{console.log("res:",t);const e=t.data||null;this.$message.info(`go服务返回: ${e}`)}))}}},f=t=>(h("data-v-3508e997"),t=t(),m(),t),b={id:"app-base-httpserver"},g=f((()=>l("div",{class:"one-block-1"},[l("span",null," 1. 使用http与主进程通信 ")],-1))),k={class:"one-block-2"},R=f((()=>l("div",{class:"one-block-1"},[l("span",null," 2. 使用http与服务端通信 ")],-1))),q={class:"one-block-2"};const w=r(v,[["render",function(t,e,s,o,r,h){const m=n("a-button");return a(),i("div",b,[g,l("div",k,[l("p",null,"* 状态:"+c(r.currentStatus),1),l("p",null,"* 地址:"+c(r.servicAddress),1),l("p",null,[u("* 发送请求: "),d(m,{onClick:e[0]||(e[0]=t=>h.sendRequest("pictures"))},{default:p((()=>[u(" 打开【我的图片】 ")])),_:1})])]),R,l("div",q,[l("p",null,[d(m,{onClick:e[1]||(e[1]=t=>h.backendRequest())},{default:p((()=>[u(" 发送请求 ")])),_:1}),u(" (请自行创建服务) ")])])])}],["__scopeId","data-v-3508e997"]]);export{w as default};

Binary file not shown.

View File

@@ -0,0 +1 @@
import{i as e}from"./main-429c1dad.js";import{i}from"./ipcRenderer-5e19eaee.js";import{_ as n,h as o,r as a,o as l,b as t,g as s,a as d,w,e as c,p as u,f as m}from"./index-4492cee0.js";const p={data:()=>({views:[{type:"web",content:"https://www.bilibili.com/",windowName:"window-web",windowTitle:"bilibili"},{type:"html",content:"/public/html/view_example.html",windowName:"window-html",windowTitle:"html window"},{type:"vue",content:"#/special/subwindow",windowName:"window-vue",windowTitle:"vue window"}]}),methods:{createWindow(n){i.invoke(e.createWindow,o(this.views[n])).then((e=>{console.log(e)}))}}},r=e=>(u("data-v-f82edd5f"),e=e(),m(),e),b={id:"app-base-window"},v=r((()=>s("div",{class:"one-block-1"},[s("span",null," 1. 新窗口中加载web内容 ")],-1))),f={class:"one-block-2"},h=r((()=>s("div",{class:"one-block-1"},[s("span",null," 2. 新窗口中加载html内容 ")],-1))),k={class:"one-block-2"},_=r((()=>s("div",{class:"one-block-1"},[s("span",null," 3. 新窗口中加载当前项目页面 ")],-1))),W={class:"one-block-2"};const j=n(p,[["render",function(e,i,n,o,u,m){const p=a("a-button"),r=a("a-space");return l(),t("div",b,[v,s("div",f,[d(r,null,{default:w((()=>[d(p,{onClick:i[0]||(i[0]=e=>m.createWindow(0))},{default:w((()=>[c("打开哔哩哔哩")])),_:1})])),_:1})]),h,s("div",k,[d(r,null,{default:w((()=>[d(p,{onClick:i[1]||(i[1]=e=>m.createWindow(1))},{default:w((()=>[c("打开html页面")])),_:1})])),_:1})]),_,s("div",W,[d(r,null,{default:w((()=>[d(p,{onClick:i[2]||(i[2]=e=>m.createWindow(2))},{default:w((()=>[c("打开vue页面")])),_:1})])),_:1})])])}],["__scopeId","data-v-f82edd5f"]]);export{j as default};

Binary file not shown.

View File

@@ -0,0 +1 @@
#app-base-test-api[data-v-e3ea38b6]{padding:0 10px;text-align:left;width:100%}#app-base-test-api .one-block-1[data-v-e3ea38b6]{font-size:16px;padding-top:10px}#app-base-test-api .one-block-2[data-v-e3ea38b6]{padding-top:10px}

View File

@@ -0,0 +1 @@
#app-base-file[data-v-d30dccef]{padding:0 10px;text-align:left;width:100%}#app-base-file .one-block-1[data-v-d30dccef]{font-size:16px;padding-top:10px}#app-base-file .one-block-2[data-v-d30dccef],#app-base-file .footer[data-v-d30dccef]{padding-top:10px}

View File

@@ -0,0 +1 @@
import{i as e}from"./main-429c1dad.js";import{i as a}from"./ipcRenderer-5e19eaee.js";import{_ as l,r as s,o as n,b as t,g as d,a as o,w as u,e as i,t as p,p as _,f as r}from"./index-4492cee0.js";const c={data:()=>({name:"张三",age:10,userList:["空"],search_age:10,update_name:"张三",update_age:21,delete_name:"张三",all_list:["空"]}),mounted(){this.getAllTestData()},methods:{getAllTestData(){a.invoke(e.jsondbOperation,{action:"all"}).then((e=>{if(console.log("res:",e),0==e.all_list.length)return!1;this.all_list=e.all_list}))},dbOperation(l){const s={action:l,info:{name:this.name,age:parseInt(this.age)},search_age:parseInt(this.search_age),update_name:this.update_name,update_age:parseInt(this.update_age),delete_name:this.delete_name};"add"==l&&0==this.name.length&&this.$message.error("请填写数据"),a.invoke(e.jsondbOperation,s).then((e=>{if(console.log("res:",e),"get"==l){if(0==e.result.length)return void this.$message.error("没有数据");this.userList=e.result}0!=e.all_list.length?(this.all_list=e.all_list,this.$message.success("success")):this.all_list=["空"]}))}}},m=e=>(_("data-v-55a8822b"),e=e(),r(),e),f={id:"app-base-db"},b=m((()=>d("div",{class:"one-block-1"},[d("span",null," 1. jsondb本地数据库 ")],-1))),g={class:"one-block-2"},v=m((()=>d("div",{class:"one-block-1"},[d("span",null," 2. 测试数据 ")],-1))),h={class:"one-block-2"},k=m((()=>d("div",{class:"one-block-1"},[d("span",null," 3. 添加数据 ")],-1))),V={class:"one-block-2"},j=m((()=>d("div",{class:"one-block-1"},[d("span",null," 4. 获取数据 ")],-1))),O={class:"one-block-2"},U=m((()=>d("div",{class:"one-block-1"},[d("span",null," 5. 修改数据 ")],-1))),C={class:"one-block-2"},I=m((()=>d("div",{class:"one-block-1"},[d("span",null," 6. 删除数据 ")],-1))),L={class:"one-block-2"};const $=l(c,[["render",function(e,a,l,_,r,c){const m=s("a-col"),$=s("a-row"),w=s("a-input"),x=s("a-button");return n(),t("div",f,[b,d("div",g,[o($,null,{default:u((()=>[o(m,{span:8},{default:u((()=>[i(" • 小数据量: 0~100M(单库) ")])),_:1}),o(m,{span:8},{default:u((()=>[i(" • json数据库 ")])),_:1}),o(m,{span:8},{default:u((()=>[i(" • 兼容lodash语法 ")])),_:1})])),_:1})]),v,d("div",h,[o($,null,{default:u((()=>[o(m,{span:24},{default:u((()=>[i(p(r.all_list),1)])),_:1})])),_:1})]),k,d("div",V,[o($,null,{default:u((()=>[o(m,{span:6},{default:u((()=>[o(w,{modelValue:r.name,"onUpdate:modelValue":a[0]||(a[0]=e=>r.name=e),value:r.name,"addon-before":"姓名"},null,8,["modelValue","value"])])),_:1}),o(m,{span:3}),o(m,{span:6},{default:u((()=>[o(w,{modelValue:r.age,"onUpdate:modelValue":a[1]||(a[1]=e=>r.age=e),value:r.age,"addon-before":"年龄"},null,8,["modelValue","value"])])),_:1}),o(m,{span:3}),o(m,{span:6},{default:u((()=>[o(x,{onClick:a[2]||(a[2]=e=>c.dbOperation("add"))},{default:u((()=>[i(" 添加 ")])),_:1})])),_:1})])),_:1})]),j,d("div",O,[o($,null,{default:u((()=>[o(m,{span:6},{default:u((()=>[o(w,{modelValue:r.search_age,"onUpdate:modelValue":a[3]||(a[3]=e=>r.search_age=e),value:r.search_age,"addon-before":"年龄"},null,8,["modelValue","value"])])),_:1}),o(m,{span:3}),o(m,{span:6}),o(m,{span:3}),o(m,{span:6},{default:u((()=>[o(x,{onClick:a[4]||(a[4]=e=>c.dbOperation("get"))},{default:u((()=>[i(" 查找 ")])),_:1})])),_:1})])),_:1}),o($,null,{default:u((()=>[o(m,{span:24},{default:u((()=>[i(p(r.userList),1)])),_:1})])),_:1})]),U,d("div",C,[o($,null,{default:u((()=>[o(m,{span:6},{default:u((()=>[o(w,{modelValue:r.update_name,"onUpdate:modelValue":a[5]||(a[5]=e=>r.update_name=e),value:r.update_name,"addon-before":"姓名"},null,8,["modelValue","value"])])),_:1}),o(m,{span:3}),o(m,{span:6},{default:u((()=>[o(w,{modelValue:r.update_age,"onUpdate:modelValue":a[6]||(a[6]=e=>r.update_age=e),value:r.update_age,"addon-before":"年龄"},null,8,["modelValue","value"])])),_:1}),o(m,{span:3}),o(m,{span:6},{default:u((()=>[o(x,{onClick:a[7]||(a[7]=e=>c.dbOperation("update"))},{default:u((()=>[i(" 更新 ")])),_:1})])),_:1})])),_:1})]),I,d("div",L,[o($,null,{default:u((()=>[o(m,{span:6},{default:u((()=>[o(w,{modelValue:r.delete_name,"onUpdate:modelValue":a[8]||(a[8]=e=>r.delete_name=e),value:r.delete_name,"addon-before":"姓名"},null,8,["modelValue","value"])])),_:1}),o(m,{span:3}),o(m,{span:6}),o(m,{span:3}),o(m,{span:6},{default:u((()=>[o(x,{onClick:a[9]||(a[9]=e=>c.dbOperation("del"))},{default:u((()=>[i(" 删除 ")])),_:1})])),_:1})])),_:1})])])}],["__scopeId","data-v-55a8822b"]]);export{$ as default};

Binary file not shown.

View File

@@ -0,0 +1 @@
#app-other[data-v-da7e5fd3]{padding:0 10px;text-align:left;width:100%}#app-other .one-block-1[data-v-da7e5fd3]{font-size:16px;padding-top:10px}#app-other .one-block-2[data-v-da7e5fd3]{padding-top:10px}

View File

@@ -0,0 +1 @@
import{i as n}from"./main-429c1dad.js";import{i as e}from"./ipcRenderer-5e19eaee.js";import{_ as a,r as o,o as i,b as t,g as c,a as p,w as s,e as m,p as y,f as l}from"./index-4492cee0.js";const d=[{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"}],u={data:()=>({type:1,iconData:d}),methods:{exec(a){console.log("process:",process);const o={id:a};e.invoke(n.test,o).then((n=>{console.log("res:",n)}))},exec2(n){}}},r={id:"app-base-test-api"},g=(n=>(y("data-v-e3ea38b6"),n=n(),l(),n))((()=>c("div",{class:"one-block-1"},[c("span",null," 1. 测试一些操作系统api ")],-1))),f={class:"one-block-2"};const x=a(u,[["render",function(n,e,a,y,l,d){const u=o("a-button"),x=o("a-space");return i(),t("div",r,[g,c("div",f,[p(x,null,{default:s((()=>[p(u,{onClick:e[0]||(e[0]=n=>d.exec(1))},{default:s((()=>[m(" 点击 ")])),_:1}),p(u,{onClick:e[1]||(e[1]=n=>d.exec2(1))},{default:s((()=>[m(" 点击2 ")])),_:1})])),_:1})])])}],["__scopeId","data-v-e3ea38b6"]]);export{x as default};

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@@ -0,0 +1 @@
import{i as s}from"./main-429c1dad.js";import{i as r}from"./ipcRenderer-5e19eaee.js";import{_ as e,r as o,o as i,b as p,g as l,a as t,w as d,e as a,t as n,p as u,f as c}from"./index-4492cee0.js";const g={data:()=>({processPids:"",progress1:0,progress2:0,progress3:0,progress4:0,progress5:0,progress6:0,progress1_pid:0,progress2_pid:0,progress3_pid:0,progress4_pid:0,progress5_pid:0,progress6_pid:0}),mounted(){this.init()},methods:{init(){r.removeAllListeners(s.timerJobProgress),r.removeAllListeners(s.createPoolNotice),r.on(s.timerJobProgress,((s,r)=>{switch(r.jobId){case 1:this.progress1=r.number,this.progress1_pid=0==r.pid?r.pid:this.progress1_pid;break;case 2:this.progress2=r.number,this.progress2_pid=0==r.pid?r.pid:this.progress2_pid;break;case 3:this.progress3=r.number,this.progress3_pid=0==r.pid?r.pid:this.progress3_pid;break;case 4:this.progress4=r.number,this.progress4_pid=0==r.pid?r.pid:this.progress4_pid;break;case 5:this.progress5=r.number,this.progress5_pid=0==r.pid?r.pid:this.progress5_pid;break;case 6:this.progress6=r.number,this.progress6_pid=0==r.pid?r.pid:this.progress6_pid}})),r.on(s.createPoolNotice,((s,r)=>{let e=JSON.stringify(r);this.processPids=e}))},runJob(e,o){let i={id:e,type:"timer",action:o};r.invoke(s.someJob,i).then((s=>{if("close"!=o)switch(s.jobId){case 1:this.progress1_pid=s.result.pid;break;case 2:this.progress2_pid=s.result.pid}}))},createPool(){r.send(s.createPool,{number:3})},runJobByPool(e,o){let i={id:e,type:"timer",action:o};r.invoke(s.someJobByPool,i).then((s=>{switch(s.jobId){case 3:this.progress3_pid=s.result.pid;break;case 4:this.progress4_pid=s.result.pid;break;case 5:this.progress5_pid=s.result.pid;break;case 6:this.progress6_pid=s.result.pid}}))}}},_=s=>(u("data-v-71705fa7"),s=s(),c(),s),b={id:"app-base-jobs"},h=_((()=>l("div",{class:"one-block-1"},[l("span",null," 1. 任务 / 并发任务 ")],-1))),f={class:"one-block-2"},k=_((()=>l("p",null,null,-1))),m=_((()=>l("div",{class:"one-block-1"},[l("span",null," 2. 任务池 / 并发任务 ")],-1))),P={class:"one-block-2"},J=_((()=>l("p",null,null,-1))),v=_((()=>l("p",null,null,-1))),y=_((()=>l("p",null,null,-1))),C=_((()=>l("p",null,null,-1)));const j=e(g,[["render",function(s,r,e,u,c,g){const _=o("a-button"),j=o("a-space");return i(),p("div",b,[h,l("div",f,[t(j,null,{default:d((()=>[t(_,{onClick:r[0]||(r[0]=s=>g.runJob(1,"create"))},{default:d((()=>[a("执行任务1")])),_:1}),a(" 进度:"+n(c.progress1)+" 进程pid"+n(c.progress1_pid)+" ",1),t(_,{onClick:r[1]||(r[1]=s=>g.runJob(1,"close"))},{default:d((()=>[a("关闭")])),_:1})])),_:1}),k,t(j,null,{default:d((()=>[t(_,{onClick:r[2]||(r[2]=s=>g.runJob(2,"create"))},{default:d((()=>[a("执行任务2")])),_:1}),a(" 进度:"+n(c.progress2)+" 进程pid"+n(c.progress2_pid)+" ",1),t(_,{onClick:r[3]||(r[3]=s=>g.runJob(2,"close"))},{default:d((()=>[a("关闭")])),_:1})])),_:1})]),m,l("div",P,[t(j,null,{default:d((()=>[t(_,{onClick:r[4]||(r[4]=s=>g.createPool())},{default:d((()=>[a("创建进程池")])),_:1}),a(" 进程pids"+n(c.processPids),1)])),_:1}),J,t(j,null,{default:d((()=>[t(_,{onClick:r[5]||(r[5]=s=>g.runJobByPool(3,"run"))},{default:d((()=>[a("执行任务3")])),_:1}),a(" 进度:"+n(c.progress3)+" 进程pid"+n(c.progress3_pid),1)])),_:1}),v,t(j,null,{default:d((()=>[t(_,{onClick:r[6]||(r[6]=s=>g.runJobByPool(4,"run"))},{default:d((()=>[a("执行任务4")])),_:1}),a(" 进度:"+n(c.progress4)+" 进程pid"+n(c.progress4_pid),1)])),_:1}),y,t(j,null,{default:d((()=>[t(_,{onClick:r[7]||(r[7]=s=>g.runJobByPool(5,"run"))},{default:d((()=>[a("执行任务5")])),_:1}),a(" 进度:"+n(c.progress5)+" 进程pid"+n(c.progress5_pid),1)])),_:1}),C,t(j,null,{default:d((()=>[t(_,{onClick:r[8]||(r[8]=s=>g.runJobByPool(6,"run"))},{default:d((()=>[a("执行任务6")])),_:1}),a(" 进度:"+n(c.progress6)+" 进程pid"+n(c.progress6_pid),1)])),_:1})])])}],["__scopeId","data-v-71705fa7"]]);export{j as default};

Binary file not shown.

View File

@@ -0,0 +1 @@
#app-base-db[data-v-0ea999de]{padding:0 10px;text-align:left;width:100%}#app-base-db .one-block-1[data-v-0ea999de]{font-size:16px;padding-top:10px}#app-base-db .one-block-2[data-v-0ea999de]{padding-top:10px}

View File

@@ -0,0 +1 @@
import{i as a}from"./main-429c1dad.js";import{i as e}from"./ipcRenderer-5e19eaee.js";import{_ as t,r as n,o,b as s,g as u,a as c,w as i,p as l,f as h}from"./index-4492cee0.js";const d={data:()=>({autoLaunchChecked:!1}),mounted(){this.init()},methods:{init(){e.invoke(a.autoLaunch,"check").then((a=>{console.log("[ipcRenderer] [autoLaunch] result:",a),this.autoLaunchChecked=a.status}))},autoLaunchChange(a){console.log("[ipcRenderer] [autoLaunch] self.autoLaunchChecked:",this.autoLaunchChecked)}}},r=a=>(l("data-v-1b008e01"),a=a(),h(),a),m={id:"app-base-system-launch"},p={class:"one-block-2"},C=r((()=>u("a",null,"启动",-1))),L=r((()=>u("span",null," 开机自动启动 ",-1)));const k=t(d,[["render",function(a,e,t,l,h,d){const r=n("a-list-item-meta"),k=n("a-switch"),f=n("a-list-item"),g=n("a-list");return o(),s("div",m,[u("div",p,[c(g,{class:"set-auto",itemLayout:"horizontal"},{default:i((()=>[c(f,{style:{"text-align":"left"}},{actions:i((()=>[c(k,{modelValue:h.autoLaunchChecked,"onUpdate:modelValue":e[0]||(e[0]=a=>h.autoLaunchChecked=a),checkedChildren:"开",unCheckedChildren:"关",onChange:e[1]||(e[1]=a=>d.autoLaunchChange())},null,8,["modelValue"])])),default:i((()=>[c(r,null,{title:i((()=>[C])),description:i((()=>[L])),_:1})])),_:1})])),_:1})])])}],["__scopeId","data-v-1b008e01"]]);export{k as default};

Binary file not shown.

View File

@@ -0,0 +1 @@
import{i as e}from"./main-429c1dad.js";import{i as t}from"./ipcRenderer-5e19eaee.js";import{_ as o,h as n,r as a,o as l,b as s,g as i,a as d,w as c,e as w,p as m,f as r}from"./index-4492cee0.js";const v={data:()=>({views:[{type:"web",content:"https://www.baidu.com/"},{type:"html",content:"/public/html/view_example.html"}]}),methods:{loadViewContent(o){t.invoke(e.loadViewContent,n(this.views[o])).then((e=>{console.log(e)}))},removeViewContent(o){t.invoke(e.removeViewContent,n(this.views[o])).then((e=>{console.log(e)}))}}},p=e=>(m("data-v-792e445a"),e=e(),r(),e),u={id:"app-base-window-view"},h=p((()=>i("div",{class:"one-block-1"},[i("span",null," 1. 嵌入web内容 ")],-1))),f={class:"one-block-2"},C=p((()=>i("div",{class:"one-block-1"},[i("span",null," 2. 嵌入html内容 ")],-1))),b={class:"one-block-2"};const k=o(v,[["render",function(e,t,o,n,m,r){const v=a("a-button"),p=a("a-space");return l(),s("div",u,[h,i("div",f,[d(p,null,{default:c((()=>[d(v,{onClick:t[0]||(t[0]=e=>r.loadViewContent(0))},{default:c((()=>[w("加载百度页面")])),_:1}),d(v,{onClick:t[1]||(t[1]=e=>r.removeViewContent(0))},{default:c((()=>[w("移除百度页面")])),_:1})])),_:1})]),C,i("div",b,[d(p,null,{default:c((()=>[d(v,{onClick:t[2]||(t[2]=e=>r.loadViewContent(1))},{default:c((()=>[w("加载html页面")])),_:1}),d(v,{onClick:t[3]||(t[3]=e=>r.removeViewContent(1))},{default:c((()=>[w("移除html页面")])),_:1})])),_:1})])])}],["__scopeId","data-v-792e445a"]]);export{k as default};

Binary file not shown.

View File

@@ -0,0 +1 @@
#app-base-software-open[data-v-90e4d11c]{padding:0 10px;text-align:left;width:100%}#app-base-software-open .one-block-1[data-v-90e4d11c]{font-size:16px;padding-top:10px}#app-base-software-open .one-block-1 .sub-content[data-v-90e4d11c]{font-size:14px}#app-base-software-open .one-block-2[data-v-90e4d11c]{padding-top:10px}

View File

@@ -0,0 +1 @@
#effect-login-index[data-v-3b73b158]{padding:0 10px;text-align:left;width:100%}#effect-login-index .one-block-1[data-v-3b73b158]{font-size:16px;padding-top:10px}#effect-login-index .one-block-2[data-v-3b73b158]{padding-top:10px}

View File

@@ -0,0 +1 @@
#app-base-notification[data-v-6555f14e]{padding:0 10px;text-align:left;width:100%}#app-base-notification .one-block-1[data-v-6555f14e]{font-size:16px;padding-top:10px}#app-base-notification .one-block-2[data-v-6555f14e]{padding-top:10px}

View File

@@ -0,0 +1 @@
import{i as e}from"./main-429c1dad.js";import{i as s}from"./ipcRenderer-5e19eaee.js";import{a}from"./index-37e5a4e4.js";import{s as r}from"./store2-15d37b6b.js";import{_ as t,r as o,o as i,b as n,g as d,a as v,w as c,e as m,p as l,f}from"./index-4492cee0.js";const u={data:()=>({server:""}),methods:{startServer(){s.invoke(e.startJavaServer,{}).then((e=>{0!=e.code?this.$message.error(e.msg):(this.$message.info("异步启动"),r.set("javaService",e.server))}))},closeServer(){s.invoke(e.closeJavaServer,{}).then((e=>{0!=e.code&&this.$message.error(e.msg),this.$message.info("异步关闭"),r.remove("javaService")}))},sendRequest(){const e=r.get("javaService")||"";if(""==e)return void this.$message.error("服务未开启 或 正在启动中");a({method:"get",url:e+"/test1/get",params:{id:"1111111"},timeout:6e4}).then((e=>{const s=e.data||null;this.$message.info(`java服务返回: ${s}`)}))}}},p={id:"app-other"},g=(e=>(l("data-v-da7e5fd3"),e=e(),f(),e))((()=>d("div",{class:"one-block-1"},[d("span",null," 请求java服务接口 ")],-1))),h={class:"one-block-2"};const j=t(u,[["render",function(e,s,a,r,t,l){const f=o("a-button"),u=o("a-space");return i(),n("div",p,[g,d("div",h,[v(u,null,{default:c((()=>[v(f,{onClick:s[0]||(s[0]=e=>l.startServer())},{default:c((()=>[m(" 启动java项目 ")])),_:1}),v(f,{onClick:s[1]||(s[1]=e=>l.sendRequest())},{default:c((()=>[m(" 测试接口 ")])),_:1}),v(f,{onClick:s[2]||(s[2]=e=>l.closeServer())},{default:c((()=>[m(" 关闭java项目 ")])),_:1})])),_:1})])])}],["__scopeId","data-v-da7e5fd3"]]);export{j as default};

Binary file not shown.

View File

@@ -0,0 +1 @@
#app-base-window[data-v-f82edd5f]{padding:0 10px;text-align:left;width:100%}#app-base-window .one-block-1[data-v-f82edd5f]{font-size:16px;padding-top:10px}#app-base-window .one-block-2[data-v-f82edd5f]{padding-top:10px}

View File

@@ -0,0 +1 @@
import{i as t}from"./main-429c1dad.js";import{i as s}from"./ipcRenderer-5e19eaee.js";import{_ as n,r as o,o as e,b as a,g as i,a as r,w as l,t as c,p,f as u}from"./index-4492cee0.js";const d={data:()=>({currentStatus:"无"}),mounted(){this.init()},methods:{init(){s.removeAllListeners(t.initPowerMonitor),s.on(t.initPowerMonitor,((t,s)=>{"[object Object]"==Object.prototype.toString.call(s)&&(this.currentStatus=s.msg,this.$message.info(s.msg))})),s.send(t.initPowerMonitor,"")}}},m=t=>(p("data-v-564cbe99"),t=t(),u(),t),b={id:"app-base-powermonitor"},f=m((()=>i("div",{class:"one-block-1"},[i("span",null," 1. 监控电源状态 ")],-1))),j={class:"one-block-2"},v=m((()=>i("p",null,"* 拔掉电源,使用电池供电",-1))),g=m((()=>i("p",null,"* 接入电源",-1))),w=m((()=>i("p",null,"* 锁屏",-1))),h=m((()=>i("p",null,"* 解锁",-1)));const S=n(d,[["render",function(t,s,n,p,u,d){const m=o("a-space");return e(),a("div",b,[f,i("div",j,[r(m,null,{default:l((()=>[i("p",null,"* 当前状态:"+c(u.currentStatus),1)])),_:1}),v,g,w,h])])}],["__scopeId","data-v-564cbe99"]]);export{S as default};

Binary file not shown.

View File

@@ -0,0 +1 @@
import{i as a}from"./main-429c1dad.js";import{i as o}from"./ipcRenderer-5e19eaee.js";import{_ as s,r as n,o as i,b as e,g as t,a as d,w as l,e as r,p as c,f as p}from"./index-4492cee0.js";const f={data:()=>({}),methods:{loginWindow(){this.$router.push({name:"SpecialLoginWindow",params:{}}),o.invoke(a.loginWindow,{width:400,height:300}).then((a=>{}))}}},m={id:"effect-login-index"},u=(a=>(c("data-v-3b73b158"),a=a(),p(),a))((()=>t("div",{class:"one-block-1"},[t("span",null," 1. 登录 ")],-1))),b={class:"one-block-2"};const g=s(f,[["render",function(a,o,s,c,p,f){const g=n("a-button"),h=n("a-space");return i(),e("div",m,[u,t("div",b,[d(h,null,{default:l((()=>[d(g,{onClick:o[0]||(o[0]=a=>f.loginWindow())},{default:l((()=>[r("切换为登录窗口")])),_:1})])),_:1})])])}],["__scopeId","data-v-3b73b158"]]);export{g as default};

View File

@@ -0,0 +1 @@
import{i as t}from"./main-429c1dad.js";import{i}from"./ipcRenderer-5e19eaee.js";import{_ as e,h as s,r as n,o,b as a,g as l,a as d,w as c,e as f,p as r,f as p}from"./index-4492cee0.js";const b={data:()=>({views:[{type:"main",title:"通知标题",subtitle:"副标题",body:"这是通知内容-默认",silent:!0},{type:"main",title:"提示音",subtitle:"副标题-提示音",body:"这是通知内容-提示音",silent:!1},{type:"main",title:"点击通知事件",subtitle:"副标题-点击通知事件",body:"这是通知内容-点击通知事件",clickEvent:!0},{type:"main",title:"关闭通知事件",subtitle:"副标题-关闭通知事件",body:"这是通知内容-点击通知事件",closeEvent:!0}]}),mounted(){this.init()},methods:{init(){i.removeAllListeners(t.sendNotification),i.on(t.sendNotification,((t,i)=>{"[object Object]"==Object.prototype.toString.call(i)&&this.$message.info(i.msg)}))},sendNotification(e){i.send(t.sendNotification,s(this.views[e]))}}},m={id:"app-base-notification"},u=(t=>(r("data-v-6555f14e"),t=t(),p(),t))((()=>l("div",{class:"one-block-1"},[l("span",null," 1. 弹出桌面通知 ")],-1))),v={class:"one-block-2"};const y=e(b,[["render",function(t,i,e,s,r,p){const b=n("a-button"),y=n("a-space");return o(),a("div",m,[u,l("div",v,[d(y,null,{default:c((()=>[d(b,{onClick:i[0]||(i[0]=t=>p.sendNotification(0))},{default:c((()=>[f("默认")])),_:1}),d(b,{onClick:i[1]||(i[1]=t=>p.sendNotification(1))},{default:c((()=>[f("发出提示音")])),_:1}),d(b,{onClick:i[2]||(i[2]=t=>p.sendNotification(2))},{default:c((()=>[f("点击通知触发事件")])),_:1}),d(b,{onClick:i[3]||(i[3]=t=>p.sendNotification(3))},{default:c((()=>[f("关闭通知触发事件")])),_:1})])),_:1})])])}],["__scopeId","data-v-6555f14e"]]);export{y as default};

Binary file not shown.

View File

@@ -0,0 +1 @@
import{s,i as e}from"./main-429c1dad.js";import{i as a}from"./ipcRenderer-5e19eaee.js";import{_ as t,r as o,o as n,b as r,g as c,a as d,w as i,e as l,t as p,p as u,f as m}from"./index-4492cee0.js";const f={data:()=>({status:0,progress:"",percentNumber:0}),mounted(){this.init()},methods:{init(){a.removeAllListeners(s.appUpdater),a.on(s.appUpdater,((s,e)=>{e=JSON.parse(e),this.status=e.status,3==e.status?(this.progress=e.desc,this.percentNumber=e.percentNumber):this.$message.info(e.desc)}))},checkForUpdater(){a.invoke(e.checkForUpdater).then((s=>{console.log(s)}))},download(){1===this.status?a.invoke(e.downloadApp).then((s=>{console.log(s)})):this.$message.info("没有可用版本")}}},h=s=>(u("data-v-88c3fe69"),s=s(),m(),s),k={id:"app-demo-window"},v=h((()=>c("div",{class:"one-block-1"},[c("span",null," 1. 自动更新 ")],-1))),b={class:"one-block-2"},g=h((()=>c("div",{class:"one-block-1"},[c("span",null," 2. 下载进度 ")],-1))),_={class:"one-block-2"};const w=t(f,[["render",function(s,e,a,t,u,m){const f=o("a-button"),h=o("a-space"),w=o("a-progress");return n(),r("div",k,[v,c("div",b,[d(h,null,{default:i((()=>[d(f,{onClick:e[0]||(e[0]=s=>m.checkForUpdater())},{default:i((()=>[l("检查更新")])),_:1}),d(f,{onClick:e[1]||(e[1]=s=>m.download())},{default:i((()=>[l("下载并安装")])),_:1})])),_:1})]),g,c("div",_,[d(w,{percent:u.percentNumber,status:"active"},null,8,["percent"]),d(h,null,{default:i((()=>[l(p(u.progress),1)])),_:1})])])}],["__scopeId","data-v-88c3fe69"]]);export{w as default};

Binary file not shown.

View File

@@ -0,0 +1 @@
#app-base-screen[data-v-5c2facb0]{padding:0 10px;text-align:left;width:100%}#app-base-screen .one-block-1[data-v-5c2facb0]{font-size:16px;padding-top:10px}#app-base-screen .one-block-2[data-v-5c2facb0]{padding-top:10px}

View File

@@ -0,0 +1 @@
#app-base-jobs[data-v-71705fa7]{padding:0 10px;text-align:left;width:100%}#app-base-jobs .one-block-1[data-v-71705fa7]{font-size:16px;padding-top:10px}#app-base-jobs .one-block-2[data-v-71705fa7]{padding-top:10px}

View File

@@ -0,0 +1 @@
#app-base-window-view[data-v-792e445a]{padding:0 10px;text-align:left;width:100%}#app-base-window-view .one-block-1[data-v-792e445a]{font-size:16px;padding-top:10px}#app-base-window-view .one-block-2[data-v-792e445a]{padding-top:10px}

View File

@@ -0,0 +1 @@
#app-base-db[data-v-55a8822b]{padding:0 10px;text-align:left;width:100%}#app-base-db .one-block-1[data-v-55a8822b]{font-size:16px;padding-top:10px}#app-base-db .one-block-2[data-v-55a8822b]{padding-top:10px}

View File

@@ -0,0 +1 @@
#app-hw-bluetooth[data-v-b732860b]{padding:0 10px;text-align:left;width:100%}#app-hw-bluetooth .one-block-1[data-v-b732860b]{font-size:16px;padding-top:10px}#app-hw-bluetooth .one-block-2[data-v-b732860b]{padding-top:10px}

View File

@@ -0,0 +1 @@
#app-base-powermonitor[data-v-564cbe99]{padding:0 10px;text-align:left;width:100%}#app-base-powermonitor .one-block-1[data-v-564cbe99]{font-size:16px;padding-top:10px}#app-base-powermonitor .one-block-2[data-v-564cbe99]{padding-top:10px}

24
go/public/dist/assets/Index-d38f5ef6.js vendored Normal file

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@@ -0,0 +1 @@
import{i as a}from"./main-429c1dad.js";import{i as e}from"./ipcRenderer-5e19eaee.js";import{_ as s,r as t,o as n,b as c,g as l,a as o,w as d,e as i,F as r,d as f,p,f as u,c as b,t as k}from"./index-4492cee0.js";const m={data:()=>({data:[]}),methods:{getScreen(s){e.invoke(a.getScreen,s).then((a=>{this.data=a}))}}},_=a=>(p("data-v-5c2facb0"),a=a(),u(),a),v={id:"app-base-screen"},g=_((()=>l("div",{class:"one-block-1"},[l("span",null," 1. 屏幕信息 ")],-1))),S={class:"one-block-2"},h=_((()=>l("div",{class:"one-block-1"},[l("span",null," 结果: ")],-1))),j={class:"one-block-2"};const C=s(m,[["render",function(a,e,s,p,u,m){const _=t("a-button"),C=t("a-space"),x=t("a-descriptions-item"),w=t("a-descriptions");return n(),c("div",v,[g,l("div",S,[o(C,null,{default:d((()=>[o(_,{onClick:e[0]||(e[0]=a=>m.getScreen(0))},{default:d((()=>[i("获取当前鼠标位置")])),_:1}),o(_,{onClick:e[1]||(e[1]=a=>m.getScreen(1))},{default:d((()=>[i("获取主屏幕")])),_:1}),o(_,{onClick:e[2]||(e[2]=a=>m.getScreen(2))},{default:d((()=>[i("获取所有屏幕")])),_:1})])),_:1})]),h,l("div",j,[o(w,{title:""},{default:d((()=>[(n(!0),c(r,null,f(u.data,((a,e)=>(n(),b(x,{key:e,label:a.title},{default:d((()=>[i(k(a.desc),1)])),_:2},1032,["label"])))),128))])),_:1})])])}],["__scopeId","data-v-5c2facb0"]]);export{C as default};

Binary file not shown.

View File

@@ -0,0 +1 @@
import{i as e}from"./main-429c1dad.js";import{i as t}from"./ipcRenderer-5e19eaee.js";import{_ as i,h as s,r as a,o as n,b as l,g as o,a as r,w as d,e as c,t as u,p as m,f as v}from"./index-4492cee0.js";const p={data:()=>({defaultDeviceName:"",printerList:[],views:[{type:"html",content:"/public/html/view_example.html"}]}),mounted(){this.init()},methods:{init(){t.removeAllListeners(e.printStatus),t.on(e.printStatus,((e,t)=>{console.log("result",t),this.$message.info("打印中...")}))},getPrinter(){t.invoke(e.getPrinterList,{}).then((e=>{this.printerList=e}))},doPrint(i){console.log("defaultDeviceName:",this.defaultDeviceName);const a={view:s(this.views[i]),deviceName:this.defaultDeviceName};t.send(e.print,a)},defaultDevice(e){let t="";return e.isDefault&&(t="- 默认",this.defaultDeviceName=e.name),t}}},f=e=>(m("data-v-b732860b"),e=e(),v(),e),h={id:"app-hw-bluetooth"},b=f((()=>o("div",{class:"one-block-1"},[o("span",null," 1. 打印机设备 ")],-1))),k={class:"one-block-2"},D={class:"one-block-2"},_=f((()=>o("div",null,"设备列表",-1))),g=f((()=>o("div",{class:"one-block-1"},[o("span",null," 2. 打印内容 ")],-1))),N={class:"one-block-2"};const w=i(p,[["render",function(e,t,i,s,m,v){const p=a("a-button"),f=a("a-list-item"),w=a("a-list");return n(),l("div",h,[b,o("div",k,[r(p,{onClick:t[0]||(t[0]=e=>v.getPrinter())},{default:d((()=>[c(" 获取打印机列表 ")])),_:1})]),o("div",D,[r(w,{size:"small",bordered:"","data-source":m.printerList},{renderItem:d((({item:e})=>[r(f,null,{default:d((()=>[c(u(e.displayName)+" "+u(v.defaultDevice(e)),1)])),_:2},1024)])),header:d((()=>[_])),_:1},8,["data-source"])]),g,o("div",N,[r(p,{onClick:t[1]||(t[1]=e=>v.doPrint(0))},{default:d((()=>[c(" 打印一个页面 ")])),_:1})])])}],["__scopeId","data-v-b732860b"]]);export{w as default};

Binary file not shown.

View File

@@ -0,0 +1 @@
#app-base-system-launch[data-v-1b008e01]{padding:0 10px;text-align:left;width:100%}#app-base-system-launch .one-block-1[data-v-1b008e01]{font-size:16px;padding-top:10px}#app-base-system-launch .one-block-2[data-v-1b008e01]{padding-top:10px}#app-base-system-launch .set-auto .ant-list-item[data-v-1b008e01]:last-child{border-bottom:1px solid #e8e8e8}

View File

@@ -0,0 +1 @@
import{i as e}from"./main-429c1dad.js";import{i as s}from"./ipcRenderer-5e19eaee.js";import{s as a}from"./store2-15d37b6b.js";import{_ as o,r as t,o as l,b as i,g as n,a as d,w as c,e as r,p as u,f as p}from"./index-4492cee0.js";const f=[{content:"【下载】目录",id:"downloads"},{content:"【图片】目录",id:"pictures"},{content:"【文档】目录",id:"documents"},{content:"【音乐】目录",id:"music"}],h={data:()=>({file_list:f,action_url:"",image_info:[],num:0,servicAddress:"",dir_path:"D:\\www\\ee"}),mounted(){this.getHost()},methods:{getHost(){s.invoke(e.checkHttpServer,{}).then((s=>{if(s.enable){this.servicAddress=s.server,a.set("httpServiceConfig",s);const o=s.server||"http://localhost:7071";let t=e.uploadFile.split(".").join("/");this.action_url=o+"/"+t}}))},openDirectry(a){s.invoke(e.openDirectory,{id:a}).then((e=>{}))},selectDir(){s.invoke(e.selectFolder,"").then((e=>{this.dir_path=e,this.$message.info(e)}))},messageShow(){s.invoke(e.messageShow,"").then((e=>{this.$message.info(e)}))},messageShowConfirm(){s.invoke(e.messageShowConfirm,"").then((e=>{this.$message.info(e)}))},handleFileChange(e){if(console.log("handleFileChange-----"),""==this.action_url)return void this.$message.error("http服务未开启");const s=e.file.status;if("uploading"!==s&&console.log(e.file),"done"===s){const s=e.file.response;if(console.log("uploadRes:",s),"success"!==s.code)return this.$message.error(`file upload failed ${s.code} .`),!1;this.num++;const a=s.data;a.id=this.num,a.imageUrlText="image url",this.image_info.push(a),this.$message.success(`${e.file.name} file uploaded successfully.`)}else"error"===s&&this.$message.error(`${e.file.name} file upload failed.`)}}},m=e=>(u("data-v-d30dccef"),e=e(),p(),e),g={id:"app-base-file"},_=m((()=>n("div",{class:"one-block-1"},[n("span",null," 1. 系统原生对话框 ")],-1))),v={class:"one-block-2"},k=m((()=>n("div",{class:"one-block-1"},[n("span",null," 2. 选择保存目录 ")],-1))),C={class:"one-block-2"},b=m((()=>n("div",{class:"one-block-1"},[n("span",null," 3. 打开文件夹 ")],-1))),w={class:"one-block-2"},$=m((()=>n("div",{class:"one-block-1"},[n("span",null," 4. 上传文件到图床 ")],-1))),S={class:"one-block-2"},D=m((()=>n("p",{class:"ant-upload-drag-icon"},null,-1))),j=m((()=>n("p",{class:"ant-upload-text"}," 点击 或 拖拽文件到这里 ",-1))),y=m((()=>n("p",{class:"ant-upload-hint"}," 注意请使用您自己的图床token ",-1))),F=m((()=>n("div",{class:"footer"},null,-1)));const x=o(h,[["render",function(e,s,a,o,u,p){const f=t("a-button"),h=t("a-space"),m=t("a-input"),x=t("a-col"),H=t("a-row"),V=t("a-card"),A=t("a-list-item"),I=t("a-list"),R=t("a-upload-dragger");return l(),i("div",g,[_,n("div",v,[d(h,null,{default:c((()=>[d(f,{onClick:s[0]||(s[0]=e=>p.messageShow())},{default:c((()=>[r("消息提示(ipc)")])),_:1}),d(f,{onClick:s[1]||(s[1]=e=>p.messageShowConfirm())},{default:c((()=>[r("消息提示与确认(ipc)")])),_:1})])),_:1})]),k,n("div",C,[d(H,null,{default:c((()=>[d(x,{span:12},{default:c((()=>[d(m,{modelValue:u.dir_path,"onUpdate:modelValue":s[2]||(s[2]=e=>u.dir_path=e),value:u.dir_path,"addon-before":"保存目录"},null,8,["modelValue","value"])])),_:1}),d(x,{span:12},{default:c((()=>[d(f,{onClick:p.selectDir},{default:c((()=>[r(" 修改目录 ")])),_:1},8,["onClick"])])),_:1})])),_:1})]),b,n("div",w,[d(I,{grid:{gutter:16,column:4},"data-source":u.file_list},{renderItem:c((({item:e})=>[d(A,{onClick:s=>p.openDirectry(e.id)},{default:c((()=>[d(V,{title:e.content},{default:c((()=>[d(f,{type:"link"},{default:c((()=>[r(" 打开 ")])),_:1})])),_:2},1032,["title"])])),_:2},1032,["onClick"])])),_:1},8,["data-source"])]),$,n("div",S,[d(R,{name:"file",multiple:!0,action:u.action_url,onChange:p.handleFileChange},{default:c((()=>[D,j,y])),_:1},8,["action","onChange"])]),F])}],["__scopeId","data-v-d30dccef"]]);export{x as default};

Binary file not shown.

View File

@@ -0,0 +1 @@
import{i as e}from"./main-429c1dad.js";import{i as a}from"./ipcRenderer-5e19eaee.js";import{_ as s,r as t,o,b as n,g as r,a as d,w as i,e as l,t as c,p,f}from"./index-4492cee0.js";const m={data:()=>({data:[{content:"powershell.exe",id:"powershell.exe"}]}),methods:{openSoft(s){a.invoke(e.openSoftware,s).then((e=>{e||this.$message.error("程序不存在")}))}}},u={id:"app-base-software-open"},b=(e=>(p("data-v-90e4d11c"),e=e(),f(),e))((()=>r("div",{class:"one-block-1"},[r("span",null," 1. 调用其它软件exe、bash等可执行程序 "),r("p"),r("span",{class:"sub-content"}," 注请先将【powershell.exe】复制到【electron-egg/build/extraResources】目录中 ")],-1))),h={class:"one-block-2"};const x=s(m,[["render",function(e,a,s,p,f,m){const x=t("a-button"),k=t("a-list-item"),v=t("a-list");return o(),n("div",u,[b,r("div",h,[d(v,{bordered:"","data-source":f.data},{renderItem:i((({item:e})=>[d(k,{onClick:a=>m.openSoft(e.id)},{default:i((()=>[l(c(e.content)+" ",1),d(x,{type:"link"},{default:i((()=>[l(" 执行 ")])),_:1})])),_:2},1032,["onClick"])])),_:1},8,["data-source"])])])}],["__scopeId","data-v-90e4d11c"]]);export{x as default};

Binary file not shown.

View File

@@ -0,0 +1 @@
#app-demo-window[data-v-88c3fe69]{padding:0 10px;text-align:left;width:100%}#app-demo-window .one-block-1[data-v-88c3fe69]{font-size:16px;padding-top:10px}#app-demo-window .one-block-2[data-v-88c3fe69]{padding-top:10px}

View File

@@ -0,0 +1 @@
#app-effect-video[data-v-4fcaa9b1]{padding:0 10px;text-align:left;width:100%}#app-effect-video .one-block-1[data-v-4fcaa9b1]{font-size:16px;padding-top:10px}#app-effect-video .one-block-2[data-v-4fcaa9b1]{padding-top:10px}

View File

@@ -0,0 +1 @@
import{i as e}from"./main-429c1dad.js";import{i as t}from"./ipcRenderer-5e19eaee.js";import{_ as a,r as s,o,b as n,g as l,a as r,w as d,t as m,e as u,p as h,f as i}from"./index-4492cee0.js";const c={data:()=>({currentThemeMode:"",themeList:["system","light","dark"]}),mounted(){},methods:{setTheme(a){this.currentThemeMode=a.target.value,console.log("setTheme currentThemeMode:",this.currentThemeMode),t.invoke(e.setTheme,this.currentThemeMode).then((e=>{console.log("result:",e),this.currentThemeMode=e}))},getTheme(){t.invoke(e.getTheme).then((e=>{console.log("result:",e),this.currentThemeMode=e}))}}},T=e=>(h("data-v-5a0f8a17"),e=e(),i(),e),v={id:"app-base-screen"},f=T((()=>l("div",{class:"one-block-1"},[l("span",null," 1. 系统主题模式 ")],-1))),p={class:"one-block-2"},g=T((()=>l("div",{class:"one-block-1"}," 2. 设置主题模式请自行实现前端UI效果 ",-1))),M={class:"one-block-2"};const _=a(c,[["render",function(e,t,a,h,i,c){const T=s("a-button"),_=s("a-space"),k=s("a-radio"),b=s("a-radio-group");return o(),n("div",v,[f,l("div",p,[r(_,null,{default:d((()=>[r(T,{onClick:t[0]||(t[0]=e=>c.getTheme())},{default:d((()=>[u("获取模式")])),_:1})])),_:1}),l("span",null," 结果:"+m(i.currentThemeMode),1)]),g,l("div",M,[r(b,{modelValue:i.currentThemeMode,"onUpdate:modelValue":t[1]||(t[1]=e=>i.currentThemeMode=e),onChange:c.setTheme},{default:d((()=>[r(k,{value:i.themeList[0]},{default:d((()=>[u(m(i.themeList[0]),1)])),_:1},8,["value"]),r(k,{value:i.themeList[1]},{default:d((()=>[u(m(i.themeList[1]),1)])),_:1},8,["value"]),r(k,{value:i.themeList[2]},{default:d((()=>[u(m(i.themeList[2]),1)])),_:1},8,["value"])])),_:1},8,["modelValue","onChange"])])])}],["__scopeId","data-v-5a0f8a17"]]);export{_ as default};

Binary file not shown.

View File

@@ -0,0 +1 @@
#app-base-screen[data-v-5a0f8a17]{padding:0 10px;text-align:left;width:100%}#app-base-screen .one-block-1[data-v-5a0f8a17]{font-size:16px;padding-top:10px}#app-base-screen .one-block-2[data-v-5a0f8a17]{padding-top:10px}

1
go/public/dist/assets/Ipc-2b08761f.js vendored Normal file
View File

@@ -0,0 +1 @@
import{i as e,s as n}from"./main-429c1dad.js";import{i as s}from"./ipcRenderer-5e19eaee.js";import{_ as o,h as i,r as a,o as d,b as l,g as t,a as c,w,e as g,t as r,p,f as u}from"./index-4492cee0.js";const k={data:()=>({messageString:"",message1:"",message2:"",message3:"",windowName:"window-ipc",newWcId:0,views:[{type:"vue",content:"#/special/subwindow",windowName:"window-ipc",windowTitle:"ipc window"}]}),mounted(){this.init()},methods:{init(){s.removeAllListeners(e.ipcSendMsg),s.on(e.ipcSendMsg,((n,s)=>{console.log("[ipcRenderer] [socketMsgStart] result:",s),this.messageString=s,n.sender.send(e.hello,"electron-egg")})),s.removeAllListeners(n.window2ToWindow1),s.on(n.window2ToWindow1,((e,n)=>{this.$message.info(n)}))},sendMsgStart(){s.send(e.ipcSendMsg,{type:"start",content:"开始"})},sendMsgStop(){s.send(e.ipcSendMsg,{type:"end",content:""})},handleInvoke(){s.invoke(e.ipcInvokeMsg,"异步-回调").then((e=>{console.log("r:",e),this.message1=e}))},async handleInvoke2(){const n=await s.invoke(e.ipcInvokeMsg,"异步");console.log("msg:",n),this.message2=n},handleSendSync(){const n=s.sendSync(e.ipcSendSyncMsg,"同步");this.message3=n},createWindow(n){s.invoke(e.createWindow,i(this.views[n])).then((e=>{console.log("[createWindow] id:",e)}))},async sendTosubWindow(){this.newWcId=await s.invoke(e.getWCid,this.windowName),s.sendTo(this.newWcId,n.window1ToWindow2,"窗口1通过 sendTo 给窗口2发送消息")}}},m=e=>(p("data-v-227d95f1"),e=e(),u(),e),v={id:"app-base-socket-ipc"},f=m((()=>t("div",{class:"one-block-1"},[t("span",null," 1. 发送异步消息 ")],-1))),h={class:"one-block-2"},S=m((()=>t("p",null,null,-1))),_=m((()=>t("div",{class:"one-block-1"},[t("span",null," 2. 同步消息(不推荐,阻塞执行) ")],-1))),b={class:"one-block-2"},C=m((()=>t("div",{class:"one-block-1"},[t("span",null," 3. 长消息: 服务端持续向前端页面发消息 ")],-1))),W={class:"one-block-2"},M=m((()=>t("div",{class:"one-block-1"},[t("span",null," 4. 多窗口通信:子窗口与主进程通信,子窗口互相通信 ")],-1))),y={class:"one-block-2"};const I=o(k,[["render",function(e,n,s,o,i,p){const u=a("a-button"),k=a("a-space");return d(),l("div",v,[f,t("div",h,[c(k,null,{default:w((()=>[c(u,{onClick:p.handleInvoke},{default:w((()=>[g("发送 - 回调")])),_:1},8,["onClick"]),g(" 结果:"+r(i.message1),1)])),_:1}),S,c(k,null,{default:w((()=>[c(u,{onClick:p.handleInvoke2},{default:w((()=>[g("发送 - async/await")])),_:1},8,["onClick"]),g(" 结果:"+r(i.message2),1)])),_:1})]),_,t("div",b,[c(k,null,{default:w((()=>[c(u,{onClick:p.handleSendSync},{default:w((()=>[g("同步消息")])),_:1},8,["onClick"]),g(" 结果:"+r(i.message3),1)])),_:1})]),C,t("div",W,[c(k,null,{default:w((()=>[c(u,{onClick:p.sendMsgStart},{default:w((()=>[g("开始")])),_:1},8,["onClick"]),c(u,{onClick:p.sendMsgStop},{default:w((()=>[g("结束")])),_:1},8,["onClick"]),g(" 结果:"+r(i.messageString),1)])),_:1})]),M,t("div",y,[c(k,null,{default:w((()=>[c(u,{onClick:n[0]||(n[0]=e=>p.createWindow(0))},{default:w((()=>[g("打开新窗口2")])),_:1}),c(u,{onClick:n[1]||(n[1]=e=>p.sendTosubWindow())},{default:w((()=>[g("向新窗口2发消息")])),_:1})])),_:1})])])}],["__scopeId","data-v-227d95f1"]]);export{I as default};

BIN
go/public/dist/assets/Ipc-2b08761f.js.gz vendored Normal file

Binary file not shown.

View File

@@ -0,0 +1 @@
#app-base-socket-ipc[data-v-227d95f1]{padding:0 10px;text-align:left;width:100%}#app-base-socket-ipc .one-block-1[data-v-227d95f1]{font-size:16px;padding-top:10px}#app-base-socket-ipc .one-block-2[data-v-227d95f1]{padding-top:10px}

View File

@@ -0,0 +1 @@
#app-base-subwindow-ipc[data-v-54ef5770]{padding:0 10px;text-align:left;width:100%;height:100%;background-color:#f0f2f5}#app-base-subwindow-ipc .one-block-1[data-v-54ef5770]{font-size:16px;padding-top:10px}#app-base-subwindow-ipc .one-block-2[data-v-54ef5770]{padding-top:10px}

1
go/public/dist/assets/Ipc-e781cb65.js vendored Normal file
View File

@@ -0,0 +1 @@
import{i as e,s as n}from"./main-429c1dad.js";import{i as s}from"./ipcRenderer-5e19eaee.js";import{_ as o,r as a,o as l,b as i,g as d,a as t,w as c,e as g,t as r,p as u,f as k}from"./index-4492cee0.js";const m={data:()=>({messageString:"",message1:"",message2:"",message3:"",mainWCid:0}),mounted(){this.init()},methods:{init(){s.removeAllListeners(e.ipcSendMsg),s.on(e.ipcSendMsg,((n,s)=>{console.log("[ipcRenderer] [socketMsgStart] result:",s),this.messageString=s,n.sender.send(e.hello,"electron-egg")})),s.removeAllListeners(n.window1ToWindow2),s.on(n.window1ToWindow2,((e,n)=>{this.$message.info(n)}))},sendMsgStart(){s.send(e.ipcSendMsg,{type:"start",content:"开始"})},sendMsgStop(){s.send(e.ipcSendMsg,{type:"end",content:""})},handleInvoke(){s.invoke(e.ipcInvokeMsg,"异步-回调").then((e=>{console.log("r:",e),this.message1=e}))},async handleInvoke2(){const n=await s.invoke(e.ipcInvokeMsg,"异步");console.log("msg:",n),this.message2=n},handleSendSync(){const n=s.sendSync(e.ipcSendSyncMsg,"同步");this.message3=n},sendTosubWindow(){s.invoke(e.getWCid,"main").then((e=>{this.mainWCid=e,s.sendTo(this.mainWCid,n.window2ToWindow1,"窗口2 通过 sendTo 给主窗口发送消息")}))}}},p=e=>(u("data-v-54ef5770"),e=e(),k(),e),v={id:"app-base-subwindow-ipc"},f=p((()=>d("div",{class:"one-block-1"},[d("span",null," 1. 发送异步消息 ")],-1))),S={class:"one-block-2"},h=p((()=>d("p",null,null,-1))),w=p((()=>d("div",{class:"one-block-1"},[d("span",null," 2. 同步消息(不推荐,阻塞执行) ")],-1))),C={class:"one-block-2"},b=p((()=>d("div",{class:"one-block-1"},[d("span",null," 3. 长消息: 服务端持续向前端页面发消息 ")],-1))),_={class:"one-block-2"},M=p((()=>d("div",{class:"one-block-1"},[d("span",null," 4. 多窗口通信:窗口之间互相通信 ")],-1))),W={class:"one-block-2"};const y=o(m,[["render",function(e,n,s,o,u,k){const m=a("a-button"),p=a("a-space");return l(),i("div",v,[f,d("div",S,[t(p,null,{default:c((()=>[t(m,{onClick:k.handleInvoke},{default:c((()=>[g("发送 - 回调")])),_:1},8,["onClick"]),g(" 结果:"+r(u.message1),1)])),_:1}),h,t(p,null,{default:c((()=>[t(m,{onClick:k.handleInvoke2},{default:c((()=>[g("发送 - async/await")])),_:1},8,["onClick"]),g(" 结果:"+r(u.message2),1)])),_:1})]),w,d("div",C,[t(p,null,{default:c((()=>[t(m,{onClick:k.handleSendSync},{default:c((()=>[g("同步消息")])),_:1},8,["onClick"]),g(" 结果:"+r(u.message3),1)])),_:1})]),b,d("div",_,[t(p,null,{default:c((()=>[t(m,{onClick:k.sendMsgStart},{default:c((()=>[g("开始")])),_:1},8,["onClick"]),t(m,{onClick:k.sendMsgStop},{default:c((()=>[g("结束")])),_:1},8,["onClick"]),g(" 结果:"+r(u.messageString),1)])),_:1})]),M,d("div",W,[t(p,null,{default:c((()=>[t(m,{onClick:n[0]||(n[0]=e=>k.sendTosubWindow())},{default:c((()=>[g("向主窗口发消息")])),_:1})])),_:1})])])}],["__scopeId","data-v-54ef5770"]]);export{y as default};

BIN
go/public/dist/assets/Ipc-e781cb65.js.gz vendored Normal file

Binary file not shown.

View File

@@ -0,0 +1 @@
#app-menu[data-v-cb2fcd1f]{height:100%;text-align:center}#app-menu .layout-sider[data-v-cb2fcd1f]{border-top:1px solid #e8e8e8;border-right:1px solid #e8e8e8;background-color:#fafafa;overflow:auto}

View File

@@ -0,0 +1 @@
import{_ as e,r as a,o as t,c as n,w as i,a as r,b as o,d as m,F as l,g as s,t as p}from"./index-4492cee0.js";const u={framework:{menu_100:{icon:"profile",title:"通信",pageName:"FrameworkSocketIpc",params:{}},menu_101:{icon:"profile",title:"http服务",pageName:"FrameworkSocketHttpServer",params:{}},menu_102:{icon:"profile",title:"socket服务",pageName:"FrameworkSocketSocketServer",params:{}},menu_103:{icon:"profile",title:"json数据库",pageName:"FrameworkJsonDBIndex",params:{}},menu_104:{icon:"profile",title:"sqlite数据库",pageName:"FrameworkSqliteDBIndex",params:{}},menu_105:{icon:"profile",title:"任务",pageName:"FrameworkJobsIndex",params:{}},menu_106:{icon:"profile",title:"自动更新",pageName:"FrameworkUpdaterIndex",params:{}},menu_107:{icon:"profile",title:"软件调用",pageName:"FrameworkSoftwareIndex",params:{}},menu_108:{icon:"profile",title:"java",pageName:"FrameworkJavaIndex",params:{}},menu_109:{icon:"profile",title:"测试",pageName:"FrameworkTestApiIndex",params:{}}},os:{menu_100:{icon:"profile",title:"文件",pageName:"OsFileIndex",params:{}},menu_101:{icon:"profile",title:"视图",pageName:"OsWindowViewIndex",params:{}},menu_102:{icon:"profile",title:"窗口",pageName:"OsWindowIndex",params:{}},menu_103:{icon:"profile",title:"桌面通知",pageName:"OsNotificationIndex",params:{}},menu_104:{icon:"profile",title:"电源监控",pageName:"OsPowerMonitorIndex",params:{}},menu_105:{icon:"profile",title:"屏幕信息",pageName:"OsScreenIndex",params:{}},menu_106:{icon:"profile",title:"系统主题",pageName:"OsThemeIndex",params:{}},menu_110:{icon:"profile",title:"图片",pageName:"OsFilePic",params:{}}},hardware:{menu_100:{icon:"profile",title:"打印机",pageName:"HardwarePrinterIndex",params:{}}},effect:{menu_100:{icon:"profile",title:"视频播放器",pageName:"EffectVideoIndex",params:{}},menu_110:{icon:"profile",title:"登录",pageName:"EffectLoginIndex",params:{}}}};const c=e({props:{id:{type:String,default:""}},data:()=>({menu:{},current:"menu_100",keys:[]}),watch:{id:function(){console.log("watch id ----- ",this.id),this.current="menu_100",this.menuHandle()}},created(){},mounted(){this.menuHandle()},methods:{menuHandle(){console.log("menu ------ id:",this.id),this.menu=u[this.id];const e=this.menu[this.current];this.$router.push({name:e.pageName,params:e.params})},changeMenu(e){console.log("changeMenu e:",e),this.current=e.key}}},[["render",function(e,u,c,d,f,g){const _=a("router-link"),h=a("a-menu-item"),N=a("a-menu"),k=a("a-layout-sider"),w=a("router-view"),x=a("a-layout-content"),I=a("a-layout");return t(),n(I,{id:"app-menu"},{default:i((()=>[r(k,{theme:"light",class:"layout-sider"},{default:i((()=>[r(N,{theme:"light",mode:"inline",selectedKeys:[f.current],onClick:g.changeMenu},{default:i((()=>[(t(!0),o(l,null,m(f.menu,((e,a)=>(t(),n(h,{key:a},{default:i((()=>[r(_,{to:{name:e.pageName,params:e.params}},{default:i((()=>[s("span",null,p(e.title),1)])),_:2},1032,["to"])])),_:2},1024)))),128))])),_:1},8,["selectedKeys","onClick"])])),_:1}),r(I,null,{default:i((()=>[r(x,null,{default:i((()=>[r(w)])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-cb2fcd1f"]]);export{c as default};

Binary file not shown.

1
go/public/dist/assets/Pic-63872273.js vendored Normal file
View File

@@ -0,0 +1 @@
import{i as s}from"./main-429c1dad.js";import{i as a}from"./ipcRenderer-5e19eaee.js";import{_ as e,r as t,o as i,b as c,g as o,a as l,w as n,e as p,p as d,f as r}from"./index-4492cee0.js";const f={data:()=>({picPath:"https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"}),methods:{selectPic(){a.invoke(s.selectPic,{}).then((s=>{this.picPath=s}))}}},u=s=>(d("data-v-d083fee8"),s=s(),r(),s),m={id:"os-file-pic"},h=u((()=>o("div",{class:"one-block-1"},[o("span",null," 1. 加载本机图片 ")],-1))),P={class:"one-block-2"},j=u((()=>o("p",null,null,-1)));const v=e(f,[["render",function(s,a,e,d,r,f){const u=t("a-button"),v=t("a-space"),k=t("a-image");return i(),c("div",m,[h,o("div",P,[l(v,null,{default:n((()=>[l(u,{onClick:a[0]||(a[0]=s=>f.selectPic(0))},{default:n((()=>[p("选择图片")])),_:1})])),_:1}),j,l(k,{width:500,src:r.picPath},null,8,["src"])])])}],["__scopeId","data-v-d083fee8"]]);export{v as default};

View File

@@ -0,0 +1 @@
#os-file-pic[data-v-d083fee8]{padding:0 10px;text-align:left;width:100%}#os-file-pic .one-block-1[data-v-d083fee8]{font-size:16px;padding-top:10px}#os-file-pic .one-block-2[data-v-d083fee8]{padding-top:10px}

View File

@@ -0,0 +1 @@
#app-base-httpserver[data-v-807d5289]{padding:0 10px;text-align:left;width:100%}#app-base-httpserver .one-block-1[data-v-807d5289]{font-size:16px;padding-top:10px}#app-base-httpserver .one-block-2[data-v-807d5289]{padding-top:10px}

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@@ -0,0 +1 @@
import{i as o}from"./main-429c1dad.js";import{i as a}from"./ipcRenderer-5e19eaee.js";import{_ as e,r as i,o as t,b as s,g as n,a as r,w as d,t as l,e as m}from"./index-4492cee0.js";const g={id:"effect-login-window"},p={class:"block-1"},c={key:1};const f=e({data:()=>({loading:!1,loginText:"正在登陆......"}),methods:{login(){this.loading=!0,setTimeout((()=>{this.$router.push({name:"Framework",params:{}}),a.invoke(o.restoreWindow,{width:980,height:650}).then((o=>{}))}),2e3)}}},[["render",function(o,a,e,f,h,u){const k=i("a-button");return t(),s("div",g,[n("div",p,[h.loading?(t(),s("span",c,l(h.loginText),1)):(t(),s("a",{key:0,onClick:a[0]||(a[0]=(...o)=>u.login&&u.login(...o))},[r(k,{type:"primary"},{default:d((()=>[m(" 登录 ")])),_:1})]))])])}],["__scopeId","data-v-be47062b"]]);export{f as default};

View File

@@ -0,0 +1 @@
#effect-login-window[data-v-be47062b]{width:100%;min-height:100%;background:#f0f2f5 url(./login-48da88de.png) no-repeat 50%;display:flex}#effect-login-window .block-1[data-v-be47062b]{font-size:16px;align-items:center;margin:auto;display:inline-block}

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

14
go/public/dist/assets/index-4492cee0.js vendored Normal file

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@@ -0,0 +1 @@
const e=(window.require&&window.require("electron")||window.electron||{}).ipcRenderer||void 0;export{e as i};

BIN
go/public/dist/assets/login-48da88de.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
go/public/dist/assets/logo-abcaf0c2.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View File

@@ -0,0 +1 @@
const o={test:"controller.example.test",checkForUpdater:"controller.framework.checkForUpdater",downloadApp:"controller.framework.downloadApp",jsondbOperation:"controller.framework.jsondbOperation",sqlitedbOperation:"controller.framework.sqlitedbOperation",uploadFile:"controller.framework.uploadFile",checkHttpServer:"controller.framework.checkHttpServer",doHttpRequest:"controller.framework.doHttpRequest",doSocketRequest:"controller.framework.doSocketRequest",ipcInvokeMsg:"controller.framework.ipcInvokeMsg",ipcSendSyncMsg:"controller.framework.ipcSendSyncMsg",ipcSendMsg:"controller.framework.ipcSendMsg",startJavaServer:"controller.framework.startJavaServer",closeJavaServer:"controller.framework.closeJavaServer",someJob:"controller.framework.someJob",timerJobProgress:"controller.framework.timerJobProgress",createPool:"controller.framework.createPool",createPoolNotice:"controller.framework.createPoolNotice",someJobByPool:"controller.framework.someJobByPool",hello:"controller.framework.hello",openSoftware:"controller.framework.openSoftware",messageShow:"controller.os.messageShow",messageShowConfirm:"controller.os.messageShowConfirm",selectFolder:"controller.os.selectFolder",selectPic:"controller.os.selectPic",openDirectory:"controller.os.openDirectory",loadViewContent:"controller.os.loadViewContent",removeViewContent:"controller.os.removeViewContent",createWindow:"controller.os.createWindow",getWCid:"controller.os.getWCid",sendNotification:"controller.os.sendNotification",initPowerMonitor:"controller.os.initPowerMonitor",getScreen:"controller.os.getScreen",autoLaunch:"controller.os.autoLaunch",setTheme:"controller.os.setTheme",getTheme:"controller.os.getTheme",getPrinterList:"controller.hardware.getPrinterList",print:"controller.hardware.print",printStatus:"controller.hardware.printStatus",selectFile:"controller.effect.selectFile",loginWindow:"controller.effect.loginWindow",restoreWindow:"controller.effect.restoreWindow"},e={appUpdater:"app.updater",window1ToWindow2:"window1-to-window2",window2ToWindow1:"window2-to-window1"};export{o as i,e as s};

Binary file not shown.

View File

@@ -0,0 +1,3 @@
import{j as t,i as e}from"./index-4492cee0.js";var r,n,i,s,a,o={exports:{}};
/*! store2 - v2.14.2 - 2022-07-18
* Copyright (c) 2022 Nathan Bubna; Licensed (MIT OR GPL-3.0) */r=o,n=t,i=t&&t.define,(a=(s={version:"2.14.2",areas:{},apis:{},nsdelim:".",inherit:function(t,e){for(var r in t)e.hasOwnProperty(r)||Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e},stringify:function(t,e){return void 0===t||"function"==typeof t?t+"":JSON.stringify(t,e||s.replace)},parse:function(t,e){try{return JSON.parse(t,e||s.revive)}catch(r){return t}},fn:function(t,e){for(var r in s.storeAPI[t]=e,s.apis)s.apis[r][t]=e},get:function(t,e){return t.getItem(e)},set:function(t,e,r){t.setItem(e,r)},remove:function(t,e){t.removeItem(e)},key:function(t,e){return t.key(e)},length:function(t){return t.length},clear:function(t){t.clear()},Store:function(t,e,r){var n=s.inherit(s.storeAPI,(function(t,e,r){return 0===arguments.length?n.getAll():"function"==typeof e?n.transact(t,e,r):void 0!==e?n.set(t,e,r):"string"==typeof t||"number"==typeof t?n.get(t):"function"==typeof t?n.each(t):t?n.setAll(t,e):n.clear()}));n._id=t;try{var i="__store2_test";e.setItem(i,"ok"),n._area=e,e.removeItem(i)}catch(a){n._area=s.storage("fake")}return n._ns=r||"",s.areas[t]||(s.areas[t]=n._area),s.apis[n._ns+n._id]||(s.apis[n._ns+n._id]=n),n},storeAPI:{area:function(t,e){var r=this[t];return r&&r.area||(r=s.Store(t,e,this._ns),this[t]||(this[t]=r)),r},namespace:function(t,e,r){if(r=r||this._delim||s.nsdelim,!t)return this._ns?this._ns.substring(0,this._ns.length-r.length):"";var n=t,i=this[n];if(!(i&&i.namespace||((i=s.Store(this._id,this._area,this._ns+n+r))._delim=r,this[n]||(this[n]=i),e)))for(var a in s.areas)i.area(a,s.areas[a]);return i},isFake:function(t){return t?(this._real=this._area,this._area=s.storage("fake")):!1===t&&(this._area=this._real||this._area),"fake"===this._area.name},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(t){return this._area.has?this._area.has(this._in(t)):!!(this._in(t)in this._area)},size:function(){return this.keys().length},each:function(t,e){for(var r=0,n=s.length(this._area);r<n;r++){var i=this._out(s.key(this._area,r));if(void 0!==i&&!1===t.call(this,i,this.get(i),e))break;n>s.length(this._area)&&(n--,r--)}return e||this},keys:function(t){return this.each((function(t,e,r){r.push(t)}),t||[])},get:function(t,e){var r,n=s.get(this._area,this._in(t));return"function"==typeof e&&(r=e,e=null),null!==n?s.parse(n,r):null!=e?e:n},getAll:function(t){return this.each((function(t,e,r){r[t]=e}),t||{})},transact:function(t,e,r){var n=this.get(t,r),i=e(n);return this.set(t,void 0===i?n:i),this},set:function(t,e,r){var n,i=this.get(t);return null!=i&&!1===r?e:("function"==typeof r&&(n=r,r=void 0),s.set(this._area,this._in(t),s.stringify(e,n),r)||i)},setAll:function(t,e){var r,n;for(var i in t)n=t[i],this.set(i,n,e)!==n&&(r=!0);return r},add:function(t,e,r){var n=this.get(t);if(n instanceof Array)e=n.concat(e);else if(null!==n){var i=typeof n;if(i===typeof e&&"object"===i){for(var a in e)n[a]=e[a];e=n}else e=n+e}return s.set(this._area,this._in(t),s.stringify(e,r)),e},remove:function(t,e){var r=this.get(t,e);return s.remove(this._area,this._in(t)),r},clear:function(){return this._ns?this.each((function(t){s.remove(this._area,this._in(t))}),1):s.clear(this._area),this},clearAll:function(){var t=this._area;for(var e in s.areas)s.areas.hasOwnProperty(e)&&(this._area=s.areas[e],this.clear());return this._area=t,this},_in:function(t){return"string"!=typeof t&&(t=s.stringify(t)),this._ns?this._ns+t:t},_out:function(t){return this._ns?t&&0===t.indexOf(this._ns)?t.substring(this._ns.length):void 0:t}},storage:function(t){return s.inherit(s.storageAPI,{items:{},name:t})},storageAPI:{length:0,has:function(t){return this.items.hasOwnProperty(t)},key:function(t){var e=0;for(var r in this.items)if(this.has(r)&&t===e++)return r},setItem:function(t,e){this.has(t)||this.length++,this.items[t]=e},removeItem:function(t){this.has(t)&&(delete this.items[t],this.length--)},getItem:function(t){return this.has(t)?this.items[t]:null},clear:function(){for(var t in this.items)this.removeItem(t)}}}).Store("local",function(){try{return localStorage}catch(t){}}())).local=a,a._=s,a.area("session",function(){try{return sessionStorage}catch(t){}}()),a.area("page",s.storage("page")),"function"==typeof i&&void 0!==i.amd?i("store2",[],(function(){return a})):r.exports?r.exports=a:(n.store&&(s.conflict=n.store),n.store=a);const h=e(o.exports);export{h as s};

Binary file not shown.

107
go/public/dist/index.html vendored Normal file
View File

@@ -0,0 +1,107 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1.0, minimum-scale=1.0" />
<title></title>
<!-- 优化vue渲染未完成之前先加一个css动画 -->
<style>
#loadingPage {
background-color: #dedede;
font-size: 12px;
}
.base {
height: 9em;
left: 65%;
margin: -7.5em;
padding: 3em;
position: absolute;
top: 40%;
width: 9em;
transform: rotateX(45deg) rotateZ(45deg);
transform-style: preserve-3d;
}
.cube,
.cube:after,
.cube:before {
content: '';
float: left;
height: 3em;
position: absolute;
width: 3em;
}
/* Top */
.cube {
background-color: #05afd1;
position: relative;
transform: translateZ(3em);
transform-style: preserve-3d;
transition: .25s;
box-shadow: 13em 13em 1.5em rgba(0, 0, 0, 0.1);
animation: anim 1s infinite;
}
.cube:after {
background-color: #049dbc;
transform: rotateX(-90deg) translateY(3em);
transform-origin: 100% 100%;
}
.cube:before {
background-color: #048ca7;
transform: rotateY(90deg) translateX(3em);
transform-origin: 100% 0;
}
.cube:nth-child(1) {
animation-delay: 0.05s;
}
.cube:nth-child(2) {
animation-delay: 0.1s;
}
.cube:nth-child(3) {
animation-delay: 0.15s;
}
.cube:nth-child(4) {
animation-delay: 0.2s;
}
.cube:nth-child(5) {
animation-delay: 0.25s;
}
.cube:nth-child(6) {
animation-delay: 0.3s;
}
.cube:nth-child(7) {
animation-delay: 0.35s;
}
.cube:nth-child(8) {
animation-delay: 0.4s;
}
.cube:nth-child(9) {
animation-delay: 0.45s;
}
@keyframes anim {
50% {
transform: translateZ(0.5em);
}
}
</style>
<script type="module" crossorigin src="./assets/index-4492cee0.js"></script>
<link rel="stylesheet" href="./assets/index-244dcb81.css">
</head>
<body>
<div id="loadingPage">
<div class='base'>
<div class='cube'></div>
<div class='cube'></div>
<div class='cube'></div>
<div class='cube'></div>
<div class='cube'></div>
<div class='cube'></div>
<div class='cube'></div>
<div class='cube'></div>
<div class='cube'></div>
</div>
</div>
<div id="app"></div>
</body>
</html>

BIN
go/public/dist/index.html.gz vendored Normal file

Binary file not shown.

View File

@@ -0,0 +1,22 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body{
margin:0px auto;
}
#content {
position: absolute;
left: 50%;
top: 35%;
transform: translate(-50%, -50%);
}
</style>
<title></title>
</head>
<body>
<div id="content">
这是一个html页面
</div>
</body>
</html>

BIN
go/public/images/icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Some files were not shown because too many files have changed in this diff Show More