This commit is contained in:
gaoshuaixing
2021-10-13 17:42:31 +08:00
parent 5d39549e69
commit 348591dab0
36 changed files with 49 additions and 10 deletions

View File

@@ -1 +0,0 @@
#app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;color:#2c3e50}#app,#app-layout-sider[data-v-1778865c]{height:100%}#app-layout-sider .logo[data-v-1778865c]{border-bottom:1px solid #e8e8e8}#app-layout-sider .pic-logo[data-v-1778865c]{height:32px;margin:10px}#app-layout-sider .layout-sider[data-v-1778865c]{border-top:1px solid #e8e8e8;border-right:1px solid #e8e8e8}#app-layout-sider .menu-item .ant-menu-item[data-v-1778865c]{background-color:#fff;margin-top:0;margin-bottom:0;padding:0 0!important}#app-demo-menu[data-v-ab5a3814]{height:100%;text-align:center}#app-demo-menu .layout-sider[data-v-ab5a3814]{border-top:1px solid #e8e8e8;border-right:1px solid #e8e8e8;background-color:#fafafa}@-webkit-keyframes Blink{0%{opacity:0}to{opacity:1}}@keyframes Blink{0%{opacity:0}to{opacity:1}}@-webkit-keyframes hot-key-input-shake{0%{transform:scale(1)}10%,20%{transform:scale(.9) rotate(-1deg)}30%,50%,70%,90%{transform:scale(1.1) rotate(1deg)}40%,60%,80%{transform:scale(1.1) rotate(-1deg)}to{transform:scale(1) rotate(0)}}@keyframes hot-key-input-shake{0%{transform:scale(1)}10%,20%{transform:scale(.9) rotate(-1deg)}30%,50%,70%,90%{transform:scale(1.1) rotate(1deg)}40%,60%,80%{transform:scale(1.1) rotate(-1deg)}to{transform:scale(1) rotate(0)}}.hot-key-input-shark{-webkit-animation:hot-key-input-shake .8s ease-in 1;animation:hot-key-input-shake .8s ease-in 1}.hot-key-input-component{display:flex;padding:5px;border:1px solid #dcdcdc;background-color:#fff;color:#333;cursor:text;transition:border-color .2s cubic-bezier(.645,.045,.355,1)}.hot-key-input-component:before{content:attr(placeholder);color:#afafaf}.hot-key-input-component.cursor:after{content:"|";-webkit-animation:Blink 1.2s ease 0s infinite;animation:Blink 1.2s ease 0s infinite;position:absolute;left:10px}.hot-item{display:flex;align-items:center;background-color:#f4f4f5;border-color:#e9e9eb;color:#909399;padding:0 5px;margin-right:5px}.hot-key-input-component .hot-item .icon-close{display:block;content:"";background:url("data:image/svg+xml;charset=utf-8,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M512 64C264.58 64 64 264.58 64 512s200.58 448 448 448 448-200.58 448-448S759.42 64 512 64zm0 832c-212.08 0-384-171.92-384-384s171.92-384 384-384 384 171.92 384 384-171.92 384-384 384z' fill='%23909399'/%3E%3Cpath d='M625.14 353.61L512 466.75 398.86 353.61a32 32 0 00-45.25 45.25L466.75 512 353.61 625.14a32 32 0 0045.25 45.25L512 557.25l113.14 113.14a32 32 0 0045.25-45.25L557.25 512l113.14-113.14a32 32 0 00-45.25-45.25z' fill='%23909399'/%3E%3C/svg%3E") no-repeat 50%;background-size:contain;width:14px;height:14px;transform:scale(.9);opacity:.6}.hot-key-input-component .hot-item .icon-close:hover{cursor:pointer;opacity:1}

View File

@@ -0,0 +1 @@
#app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;color:#2c3e50}#app,#app-layout-sider[data-v-1778865c]{height:100%}#app-layout-sider .logo[data-v-1778865c]{border-bottom:1px solid #e8e8e8}#app-layout-sider .pic-logo[data-v-1778865c]{height:32px;margin:10px}#app-layout-sider .layout-sider[data-v-1778865c]{border-top:1px solid #e8e8e8;border-right:1px solid #e8e8e8}#app-layout-sider .menu-item .ant-menu-item[data-v-1778865c]{background-color:#fff;margin-top:0;margin-bottom:0;padding:0 0!important}#app-demo-menu[data-v-f4122860]{height:100%;text-align:center}#app-demo-menu .layout-sider[data-v-f4122860]{border-top:1px solid #e8e8e8;border-right:1px solid #e8e8e8;background-color:#fafafa;overflow:auto}@-webkit-keyframes Blink{0%{opacity:0}to{opacity:1}}@keyframes Blink{0%{opacity:0}to{opacity:1}}@-webkit-keyframes hot-key-input-shake{0%{transform:scale(1)}10%,20%{transform:scale(.9) rotate(-1deg)}30%,50%,70%,90%{transform:scale(1.1) rotate(1deg)}40%,60%,80%{transform:scale(1.1) rotate(-1deg)}to{transform:scale(1) rotate(0)}}@keyframes hot-key-input-shake{0%{transform:scale(1)}10%,20%{transform:scale(.9) rotate(-1deg)}30%,50%,70%,90%{transform:scale(1.1) rotate(1deg)}40%,60%,80%{transform:scale(1.1) rotate(-1deg)}to{transform:scale(1) rotate(0)}}.hot-key-input-shark{-webkit-animation:hot-key-input-shake .8s ease-in 1;animation:hot-key-input-shake .8s ease-in 1}.hot-key-input-component{display:flex;padding:5px;border:1px solid #dcdcdc;background-color:#fff;color:#333;cursor:text;transition:border-color .2s cubic-bezier(.645,.045,.355,1)}.hot-key-input-component:before{content:attr(placeholder);color:#afafaf}.hot-key-input-component.cursor:after{content:"|";-webkit-animation:Blink 1.2s ease 0s infinite;animation:Blink 1.2s ease 0s infinite;position:absolute;left:10px}.hot-item{display:flex;align-items:center;background-color:#f4f4f5;border-color:#e9e9eb;color:#909399;padding:0 5px;margin-right:5px}.hot-key-input-component .hot-item .icon-close{display:block;content:"";background:url("data:image/svg+xml;charset=utf-8,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M512 64C264.58 64 64 264.58 64 512s200.58 448 448 448 448-200.58 448-448S759.42 64 512 64zm0 832c-212.08 0-384-171.92-384-384s171.92-384 384-384 384 171.92 384 384-171.92 384-384 384z' fill='%23909399'/%3E%3Cpath d='M625.14 353.61L512 466.75 398.86 353.61a32 32 0 00-45.25 45.25L466.75 512 353.61 625.14a32 32 0 0045.25 45.25L512 557.25l113.14 113.14a32 32 0 0045.25-45.25L557.25 512l113.14-113.14a32 32 0 00-45.25-45.25z' fill='%23909399'/%3E%3C/svg%3E") no-repeat 50%;background-size:contain;width:14px;height:14px;transform:scale(.9);opacity:.6}.hot-key-input-component .hot-item .icon-close:hover{cursor:pointer;opacity:1}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -4,4 +4,4 @@
::-webkit-scrollbar-track{background:0 0}
::-webkit-scrollbar-thumb{background:#E6FFEE;-webkit-transition:.3s;transition:.3s}
::-webkit-scrollbar-thumb:hover{background-color:#07C160}
::-webkit-scrollbar-thumb:active{background-color:#E6FFEE}</style><link href="/css/chunk-11be261c.ebd4d1e1.css" rel="prefetch"><link href="/css/chunk-1882667e.929cc0b0.css" rel="prefetch"><link href="/css/chunk-244783f8.dc3b0c74.css" rel="prefetch"><link href="/css/chunk-601f8406.1cb2f9c8.css" rel="prefetch"><link href="/css/chunk-6f5b76aa.8d2a6191.css" rel="prefetch"><link href="/css/chunk-c3a37878.855045b3.css" rel="prefetch"><link href="/css/chunk-f6d2456a.5e5339e6.css" rel="prefetch"><link href="/js/chunk-11be261c.93b01da8.js" rel="prefetch"><link href="/js/chunk-1882667e.5fcce575.js" rel="prefetch"><link href="/js/chunk-244783f8.da109c64.js" rel="prefetch"><link href="/js/chunk-601f8406.3cc00632.js" rel="prefetch"><link href="/js/chunk-6f5b76aa.120f9e79.js" rel="prefetch"><link href="/js/chunk-c3a37878.4cd836f7.js" rel="prefetch"><link href="/js/chunk-f6d2456a.b32eeb32.js" rel="prefetch"><link href="/css/app.0e9e5e6c.css" rel="preload" as="style"><link href="/css/chunk-vendors.9ca8efee.css" rel="preload" as="style"><link href="/js/app.c5d03ae4.js" rel="preload" as="script"><link href="/js/chunk-vendors.5200e059.js" rel="preload" as="script"><link href="/css/chunk-vendors.9ca8efee.css" rel="stylesheet"><link href="/css/app.0e9e5e6c.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but electron-egg doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.5200e059.js"></script><script src="/js/app.c5d03ae4.js"></script></body></html>
::-webkit-scrollbar-thumb:active{background-color:#E6FFEE}</style><link href="/css/chunk-0077e808.c3b8cac0.css" rel="prefetch"><link href="/css/chunk-0836256a.f9eb0256.css" rel="prefetch"><link href="/css/chunk-11be261c.ebd4d1e1.css" rel="prefetch"><link href="/css/chunk-1882667e.929cc0b0.css" rel="prefetch"><link href="/css/chunk-21264600.a03f25bd.css" rel="prefetch"><link href="/css/chunk-244783f8.dc3b0c74.css" rel="prefetch"><link href="/css/chunk-28594f30.f0a66429.css" rel="prefetch"><link href="/css/chunk-5ebbe05a.f54b3985.css" rel="prefetch"><link href="/css/chunk-6f5b76aa.8d2a6191.css" rel="prefetch"><link href="/css/chunk-c3a37878.855045b3.css" rel="prefetch"><link href="/css/chunk-d08d7a24.35b85a67.css" rel="prefetch"><link href="/css/chunk-d82cf548.df6950da.css" rel="prefetch"><link href="/css/chunk-f6d2456a.5e5339e6.css" rel="prefetch"><link href="/css/chunk-fe0c189e.0fd43177.css" rel="prefetch"><link href="/js/chunk-0077e808.fb0afae2.js" rel="prefetch"><link href="/js/chunk-0836256a.bd54b664.js" rel="prefetch"><link href="/js/chunk-11be261c.93b01da8.js" rel="prefetch"><link href="/js/chunk-1882667e.5fcce575.js" rel="prefetch"><link href="/js/chunk-21264600.12d6c454.js" rel="prefetch"><link href="/js/chunk-244783f8.da109c64.js" rel="prefetch"><link href="/js/chunk-28594f30.76724dcb.js" rel="prefetch"><link href="/js/chunk-5ebbe05a.560b208a.js" rel="prefetch"><link href="/js/chunk-6f5b76aa.120f9e79.js" rel="prefetch"><link href="/js/chunk-c3a37878.4cd836f7.js" rel="prefetch"><link href="/js/chunk-d08d7a24.22b16454.js" rel="prefetch"><link href="/js/chunk-d82cf548.4e60d99d.js" rel="prefetch"><link href="/js/chunk-f6d2456a.b32eeb32.js" rel="prefetch"><link href="/js/chunk-fe0c189e.3dc3ff26.js" rel="prefetch"><link href="/css/app.e2e4734d.css" rel="preload" as="style"><link href="/css/chunk-vendors.9ca8efee.css" rel="preload" as="style"><link href="/js/app.c06874d7.js" rel="preload" as="script"><link href="/js/chunk-vendors.5200e059.js" rel="preload" as="script"><link href="/css/chunk-vendors.9ca8efee.css" rel="stylesheet"><link href="/css/app.e2e4734d.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but electron-egg doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.5200e059.js"></script><script src="/js/app.c06874d7.js"></script></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,2 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0077e808"],{"5d55":function(e,t,n){"use strict";n("b47c")},"9bad":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app-demo-socket-ipc"}},[e._m(0),n("div",{staticClass:"one-block-2"},[n("a-list",{attrs:{bordered:""}},[n("a-input-search",{on:{search:e.helloHandle},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}},[n("a-button",{attrs:{slot:"enterButton"},slot:"enterButton"},[e._v(" send ")])],1)],1)],1),e._m(1),n("div",{staticClass:"one-block-2"},[n("a-list",{attrs:{bordered:""}},[n("a-input-search",{on:{search:e.executeJSHandle},model:{value:e.content2,callback:function(t){e.content2=t},expression:"content2"}},[n("a-button",{attrs:{slot:"enterButton"},slot:"enterButton"},[e._v(" send ")])],1)],1)],1),e._m(2),n("div",{staticClass:"one-block-2"},[n("a-space",[n("a-button",{on:{click:e.socketMsgStart}},[e._v("开始")]),n("a-button",{on:{click:e.socketMsgStop}},[e._v("结束")]),e._v(" 结果:"+e._s(e.socketMessageString)+" ")],1)],1)])},o=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"one-block-1"},[n("span",[e._v(" 1. 渲染进程与主进程IPC通信 ")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"one-block-1"},[n("span",[e._v(" 2. 主进程API执行网页函数 ")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"one-block-1"},[n("span",[e._v(" 3. 长消息: 服务端持续向前端页面发消息 ")])])}],s=n("a358"),c={data:function(){return{content:"hello",content2:"hello world",reply:"",socketMessageString:""}},mounted:function(){this.init()},methods:{init:function(){var e=this;e.$ipc.on("example.socketMessageStart",(function(t,n){console.log("[ipcRenderer] [socketMsgStart] result:",n),e.socketMessageString=n})),e.$ipc.on("example.socketMessageStop",(function(t,n){console.log("[ipcRenderer] [socketMsgStop] result:",n),e.socketMessageString=n}))},helloHandle:function(e){var t=this;this.$ipcCallMain("example.hello",e).then((function(e){t.$message.info(e)}))},executeJSHandle:function(e){Object(s["a"])("executeJS",{str:e}).then((function(e){0==e.code&&console.log(e.data)})).catch((function(e){console.log("err:",e)}))},socketMsgStart:function(){this.$ipc.send("example.socketMessageStart","时间")},socketMsgStop:function(){this.$ipc.send("example.socketMessageStop","")}}},i=c,l=(n("5d55"),n("2877")),r=Object(l["a"])(i,a,o,!1,null,"27c4a622",null);t["default"]=r.exports},a358:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n("b775"),o={openDir:"/api/v1/example/openLocalDir",uploadFile:"/api/v1/example/uploadFile",executeJS:"/api/v1/example/executeJS",setShortcut:"/api/v1/example/setShortcut",autoLaunchEnable:"/api/v1/example/autoLaunchEnable",autoLaunchDisable:"/api/v1/example/autoLaunchDisable",autoLaunchIsEnabled:"/api/v1/example/autoLaunchIsEnabled",openSoftware:"/api/v1/example/openSoftware",selectFileDir:"/api/v1/example/selectFileDir",messageShow:"/api/v1/example/messageShow",messageShowConfirm:"/api/v1/example/messageShowConfirm",testElectronApi:"/api/v1/example/testElectronApi"};function s(e,t){return Object(a["b"])({url:o[e],method:"post",data:t})}},b47c:function(e,t,n){}}]);
//# sourceMappingURL=chunk-0077e808.fb0afae2.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,2 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0836256a"],{"6f98":function(t,n,i){},ded8:function(t,n,i){"use strict";i("6f98")},f35a:function(t,n,i){"use strict";i.r(n);var e=function(){var t=this,n=t.$createElement,i=t._self._c||n;return i("div",{attrs:{id:"app-demo-notification"}},[t._m(0),i("div",{staticClass:"one-block-2"},[i("a-space",[i("a-button",{on:{click:function(n){return t.sendNotification(0)}}},[t._v("默认")]),i("a-button",{on:{click:function(n){return t.sendNotification(1)}}},[t._v("发出提示音")]),i("a-button",{on:{click:function(n){return t.sendNotification(2)}}},[t._v("点击通知触发事件")]),i("a-button",{on:{click:function(n){return t.sendNotification(3)}}},[t._v("关闭通知触发事件")])],1)],1)])},o=[function(){var t=this,n=t.$createElement,i=t._self._c||n;return i("div",{staticClass:"one-block-1"},[i("span",[t._v(" 1. 弹出桌面通知 ")])])}],c=(i("d3b7"),{data:function(){return{views:[{type:"main",title:"通知标题",subtitle:"副标题",body:"这是通知内容-默认",silent:!0,icon:"/asset/images/tray_logo.png"},{type:"main",title:"提示音",subtitle:"副标题-提示音",body:"这是通知内容-提示音",silent:!1},{type:"main",title:"点击通知事件",subtitle:"副标题-点击通知事件",body:"这是通知内容-点击通知事件",clickEvent:!0},{type:"main",title:"关闭通知事件",subtitle:"副标题-关闭通知事件",body:"这是通知内容-点击通知事件",closeEvent:!0}]}},mounted:function(){this.init()},methods:{init:function(){var t=this;t.$ipc.on("example.sendNotification",(function(n,i){"[object Object]"==Object.prototype.toString.call(i)&&t.$message.info(i.msg)}))},sendNotification:function(t){this.$ipc.send("example.sendNotification",this.views[t])}}}),s=c,a=(i("ded8"),i("2877")),u=Object(a["a"])(s,e,o,!1,null,"7aef99b8",null);n["default"]=u.exports}}]);
//# sourceMappingURL=chunk-0836256a.bd54b664.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,2 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-21264600"],{"46a8":function(t,e,n){"use strict";n.r(e);var c=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"app-demo-window"}},[t._m(0),n("div",{staticClass:"one-block-2"},[n("a-space",[n("a-button",{on:{click:function(e){return t.createWindow(0)}}},[t._v("打开哔哩哔哩")])],1)],1),t._m(1),n("div",{staticClass:"one-block-2"},[n("a-space",[n("a-button",{on:{click:function(e){return t.createWindow(1)}}},[t._v("打开html页面")])],1)],1)])},i=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"one-block-1"},[n("span",[t._v(" 1. 新窗口中加载web内容 ")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"one-block-1"},[n("span",[t._v(" 2. 新窗口中加载html内容 ")])])}],a={data:function(){return{views:[{type:"web",content:"https://www.bilibili.com/"},{type:"html",content:"/asset/view_example.html"}]}},methods:{createWindow:function(t){var e=this;e.$ipcCallMain("example.createWindow",this.views[t]).then((function(t){console.log(t)}))}}},o=a,s=(n("4bff"),n("2877")),l=Object(s["a"])(o,c,i,!1,null,"141ac89c",null);e["default"]=l.exports},"4af7":function(t,e,n){},"4bff":function(t,e,n){"use strict";n("4af7")}}]);
//# sourceMappingURL=chunk-21264600.12d6c454.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,2 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-28594f30"],{7163:function(t,n,e){"use strict";e("df07")},c259:function(t,n,e){"use strict";e.r(n);var i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{attrs:{id:"app-demo-powermonitor"}},[t._m(0),e("div",{staticClass:"one-block-2"},[e("a-space",[e("p",[t._v("当前状态:"+t._s(t.currentStatus))])]),e("p",[t._v("* 拔掉电源,使用电池供电")]),e("p",[t._v("* 接入电源")]),e("p",[t._v("* 锁屏")]),e("p",[t._v("* 解锁")])],1)])},o=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"one-block-1"},[e("span",[t._v(" 1. 监控电源状态 ")])])}],c=(e("d3b7"),{data:function(){return{currentStatus:"无"}},mounted:function(){this.init()},methods:{init:function(){var t=this;t.$ipc.on("example.initPowerMonitor",(function(n,e){"[object Object]"==Object.prototype.toString.call(e)&&(t.currentStatus=e.msg,t.$message.info(e.msg))})),this.$ipc.send("example.initPowerMonitor","")}}}),s=c,r=(e("7163"),e("2877")),a=Object(r["a"])(s,i,o,!1,null,"e8675844",null);n["default"]=a.exports},df07:function(t,n,e){}}]);
//# sourceMappingURL=chunk-28594f30.76724dcb.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,2 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ebbe05a"],{1083:function(t,n,e){"use strict";e("c20f")},7595:function(t,n,e){"use strict";e.r(n);var c=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{attrs:{id:"app-demo-screen"}},[t._m(0),e("div",{staticClass:"one-block-2"},[e("a-space",[e("a-button",{on:{click:function(n){return t.getScreen(0)}}},[t._v("获取当前鼠标位置")]),e("a-button",{on:{click:function(n){return t.getScreen(1)}}},[t._v("获取主屏幕")]),e("a-button",{on:{click:function(n){return t.getScreen(2)}}},[t._v("获取所有屏幕")])],1)],1),t._m(1),e("div",{staticClass:"one-block-2"},[e("a-descriptions",{attrs:{title:""}},t._l(t.data,(function(n,c){return e("a-descriptions-item",{key:c,attrs:{label:n.title}},[t._v(" "+t._s(n.desc)+" ")])})),1)],1)])},i=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"one-block-1"},[e("span",[t._v(" 1. 屏幕信息 ")])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"one-block-1"},[e("span",[t._v(" 结果: ")])])}],a={data:function(){return{data:[]}},mounted:function(){this.init()},methods:{init:function(){var t=this;t.$ipc.on("example.getScreen",(function(n,e){t.data=e}))},getScreen:function(t){this.$ipc.send("example.getScreen",t)}}},s=a,o=(e("1083"),e("2877")),r=Object(o["a"])(s,c,i,!1,null,"46883359",null);n["default"]=r.exports},c20f:function(t,n,e){}}]);
//# sourceMappingURL=chunk-5ebbe05a.560b208a.js.map

File diff suppressed because one or more lines are too long

View File

@@ -1,2 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-601f8406"],{"03fa":function(e,t,a){},"9bad":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"app-demo-socket-ipc"}},[e._m(0),a("div",{staticClass:"one-block-2"},[a("a-list",{attrs:{bordered:""}},[a("a-input-search",{on:{search:e.helloHandle},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}},[a("a-button",{attrs:{slot:"enterButton"},slot:"enterButton"},[e._v(" send ")])],1)],1)],1),e._m(1),a("div",{staticClass:"one-block-2"},[a("a-list",{attrs:{bordered:""}},[a("a-input-search",{on:{search:e.executeJSHandle},model:{value:e.content2,callback:function(t){e.content2=t},expression:"content2"}},[a("a-button",{attrs:{slot:"enterButton"},slot:"enterButton"},[e._v(" send ")])],1)],1)],1),e._m(2),a("div",{staticClass:"one-block-2"},[a("a-space",[a("a-button",{on:{click:e.socketMsgStart}},[e._v("开始")]),a("a-button",{on:{click:e.socketMsgStop}},[e._v("结束")]),e._v(" 结果:"+e._s(e.socketMessageString)+" ")],1)],1)])},o=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"one-block-1"},[a("span",[e._v(" 1. 渲染进程与主进程IPC通信 ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"one-block-1"},[a("span",[e._v(" 2. 主进程API执行网页函数 ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"one-block-1"},[a("span",[e._v(" 3. 长消息: 服务端持续向前端页面发消息 ")])])}],s=a("a358"),c={data:function(){return{content:"hello",content2:"hello world",reply:"",socketMessageString:""}},methods:{helloHandle:function(e){var t=this;this.$ipcCallMain("example.hello",e).then((function(e){t.$message.info(e)}))},executeJSHandle:function(e){Object(s["a"])("executeJS",{str:e}).then((function(e){0==e.code&&console.log(e.data)})).catch((function(e){console.log("err:",e)}))},socketMsgStart:function(){var e=this;e.$ipc.on("example.socketMessageStart",(function(t,a){console.log("[ipcRenderer] [socketMsgStart] result:",a),e.socketMessageString=a})),e.$ipc.send("example.socketMessageStart","时间")},socketMsgStop:function(){var e=this;e.$ipc.on("example.socketMessageStop",(function(t,a){console.log("[ipcRenderer] [socketMsgStop] result:",a),e.socketMessageString=a})),e.$ipc.send("example.socketMessageStop","")}}},l=c,i=(a("aeef"),a("2877")),r=Object(i["a"])(l,n,o,!1,null,"ce257054",null);t["default"]=r.exports},a358:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n=a("b775"),o={openDir:"/api/v1/example/openLocalDir",uploadFile:"/api/v1/example/uploadFile",executeJS:"/api/v1/example/executeJS",setShortcut:"/api/v1/example/setShortcut",autoLaunchEnable:"/api/v1/example/autoLaunchEnable",autoLaunchDisable:"/api/v1/example/autoLaunchDisable",autoLaunchIsEnabled:"/api/v1/example/autoLaunchIsEnabled",openSoftware:"/api/v1/example/openSoftware",selectFileDir:"/api/v1/example/selectFileDir",messageShow:"/api/v1/example/messageShow",messageShowConfirm:"/api/v1/example/messageShowConfirm",testElectronApi:"/api/v1/example/testElectronApi"};function s(e,t){return Object(n["b"])({url:o[e],method:"post",data:t})}},aeef:function(e,t,a){"use strict";a("03fa")}}]);
//# sourceMappingURL=chunk-601f8406.3cc00632.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,2 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d08d7a24"],{"253c4":function(t,n,e){"use strict";e("8d43")},"46ad":function(t,n,e){"use strict";e.r(n);var o=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{attrs:{id:"app-demo-window-view"}},[t._m(0),e("div",{staticClass:"one-block-2"},[e("a-space",[e("a-button",{on:{click:function(n){return t.loadViewContent(0)}}},[t._v("加载百度页面")]),e("a-button",{on:{click:function(n){return t.removeViewContent(0)}}},[t._v("移除百度页面")])],1)],1),t._m(1),e("div",{staticClass:"one-block-2"},[e("a-space",[e("a-button",{on:{click:function(n){return t.loadViewContent(1)}}},[t._v("加载html页面")]),e("a-button",{on:{click:function(n){return t.removeViewContent(1)}}},[t._v("移除html页面")])],1)],1)])},i=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"one-block-1"},[e("span",[t._v(" 1. 嵌入web内容 ")])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"one-block-1"},[e("span",[t._v(" 2. 嵌入html内容 ")])])}],c={data:function(){return{views:[{type:"web",content:"https://www.baidu.com/"},{type:"html",content:"/asset/view_example.html"}]}},methods:{loadViewContent:function(t){var n=this;n.$ipcCallMain("example.loadViewContent",this.views[t]).then((function(t){console.log(t)}))},removeViewContent:function(t){var n=this;n.$ipcCallMain("example.removeViewContent",n.views[t]).then((function(t){console.log(t)}))}}},a=c,l=(e("253c4"),e("2877")),s=Object(l["a"])(a,o,i,!1,null,"858949e6",null);n["default"]=s.exports},"8d43":function(t,n,e){}}]);
//# sourceMappingURL=chunk-d08d7a24.22b16454.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,2 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d82cf548"],{"2b9f":function(e,t,n){},"2bde":function(e,t,n){"use strict";n("2b9f")},9772:function(e,t,n){"use strict";n.r(t);var s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app-demo-screen"}},[e._m(0),n("div",{staticClass:"one-block-2"},[n("a-space",[n("a-button",{on:{click:function(t){return e.getTheme()}}},[e._v("获取模式")])],1),n("span",[e._v(" 结果:"+e._s(e.currentThemeMode)+" ")])],1),n("div",{staticClass:"one-block-1"},[e._v(" 2. 设置主题模式请自行实现前端UI效果 ")]),n("div",{staticClass:"one-block-2"},[n("a-radio-group",{on:{change:e.setTheme},model:{value:e.currentThemeMode,callback:function(t){e.currentThemeMode=t},expression:"currentThemeMode"}},[n("a-radio",{attrs:{value:e.themeList[0]}},[e._v(" "+e._s(e.themeList[0])+" ")]),n("a-radio",{attrs:{value:e.themeList[1]}},[e._v(" "+e._s(e.themeList[1])+" ")]),n("a-radio",{attrs:{value:e.themeList[2]}},[e._v(" "+e._s(e.themeList[2])+" ")])],1)],1)])},o=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"one-block-1"},[n("span",[e._v(" 1. 系统主题模式 ")])])}],i={data:function(){return{currentThemeMode:"",themeList:["system","light","dark"]}},mounted:function(){this.init()},methods:{init:function(){var e=this;this.$ipc.on("example.setTheme",(function(t,n){console.log("result:",n),e.currentThemeMode=n})),this.$ipc.on("example.getTheme",(function(t,n){console.log("result:",n),e.currentThemeMode=n}))},setTheme:function(e){this.currentThemeMode=e.target.value,console.log("setTheme currentThemeMode:",this.currentThemeMode),this.$ipc.send("example.setTheme",this.currentThemeMode)},getTheme:function(){this.$ipc.send("example.getTheme","")}}},c=i,r=(n("2bde"),n("2877")),a=Object(r["a"])(c,s,o,!1,null,"09fd3530",null);t["default"]=a.exports}}]);
//# sourceMappingURL=chunk-d82cf548.4e60d99d.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,2 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fe0c189e"],{"08b5":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"app-demo-extension"}},[t._m(0),a("div",{staticClass:"one-block-2"},[a("a-upload-dragger",{attrs:{name:"file",multiple:!0,action:t.action_url},on:{change:t.handleChange}},[a("p",{staticClass:"ant-upload-drag-icon"},[a("a-icon",{attrs:{type:"inbox"}})],1),a("p",{staticClass:"ant-upload-text"},[t._v(" Click or drag file to this area to upload ")]),a("p",{staticClass:"ant-upload-hint"})])],1),a("div",{staticClass:"one-block-1"},[t._v(" 2. chrome扩展商店crx下载 ")]),a("div",{staticClass:"one-block-2"},[a("a-space",[t._v(" 极简插件https://chrome.zzzmh.cn/ ")])],1)])},o=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"one-block-1"},[a("span",[t._v(" 1. 上传扩展程序crx文件格式 ")])])}],i=(a("b0c0"),{data:function(){return{action_url:"/api/v1/example/uploadExtension"}},mounted:function(){this.init()},methods:{init:function(){},handleChange:function(t){var e=t.file.status;if("uploading"!==e&&console.log(t.file),"done"===e){var a=t.file.response;console.log("uploadRes:",a)}else"error"===e&&this.$message.error("".concat(t.file.name," file upload failed."))}}}),s=i,l=(a("469e"),a("2877")),c=Object(l["a"])(s,n,o,!1,null,"69e95420",null);e["default"]=c.exports},"379f":function(t,e,a){},"469e":function(t,e,a){"use strict";a("379f")}}]);
//# sourceMappingURL=chunk-fe0c189e.3dc3ff26.js.map

File diff suppressed because one or more lines are too long

View File

@@ -4,4 +4,4 @@
::-webkit-scrollbar-track{background:0 0}
::-webkit-scrollbar-thumb{background:#E6FFEE;-webkit-transition:.3s;transition:.3s}
::-webkit-scrollbar-thumb:hover{background-color:#07C160}
::-webkit-scrollbar-thumb:active{background-color:#E6FFEE}</style><link href="/css/chunk-11be261c.ebd4d1e1.css" rel="prefetch"><link href="/css/chunk-1882667e.929cc0b0.css" rel="prefetch"><link href="/css/chunk-244783f8.dc3b0c74.css" rel="prefetch"><link href="/css/chunk-601f8406.1cb2f9c8.css" rel="prefetch"><link href="/css/chunk-6f5b76aa.8d2a6191.css" rel="prefetch"><link href="/css/chunk-c3a37878.855045b3.css" rel="prefetch"><link href="/css/chunk-f6d2456a.5e5339e6.css" rel="prefetch"><link href="/js/chunk-11be261c.93b01da8.js" rel="prefetch"><link href="/js/chunk-1882667e.5fcce575.js" rel="prefetch"><link href="/js/chunk-244783f8.da109c64.js" rel="prefetch"><link href="/js/chunk-601f8406.3cc00632.js" rel="prefetch"><link href="/js/chunk-6f5b76aa.120f9e79.js" rel="prefetch"><link href="/js/chunk-c3a37878.4cd836f7.js" rel="prefetch"><link href="/js/chunk-f6d2456a.b32eeb32.js" rel="prefetch"><link href="/css/app.0e9e5e6c.css" rel="preload" as="style"><link href="/css/chunk-vendors.9ca8efee.css" rel="preload" as="style"><link href="/js/app.c5d03ae4.js" rel="preload" as="script"><link href="/js/chunk-vendors.5200e059.js" rel="preload" as="script"><link href="/css/chunk-vendors.9ca8efee.css" rel="stylesheet"><link href="/css/app.0e9e5e6c.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but electron-egg doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.5200e059.js"></script><script src="/js/app.c5d03ae4.js"></script></body></html>
::-webkit-scrollbar-thumb:active{background-color:#E6FFEE}</style><link href="/css/chunk-0077e808.c3b8cac0.css" rel="prefetch"><link href="/css/chunk-0836256a.f9eb0256.css" rel="prefetch"><link href="/css/chunk-11be261c.ebd4d1e1.css" rel="prefetch"><link href="/css/chunk-1882667e.929cc0b0.css" rel="prefetch"><link href="/css/chunk-21264600.a03f25bd.css" rel="prefetch"><link href="/css/chunk-244783f8.dc3b0c74.css" rel="prefetch"><link href="/css/chunk-28594f30.f0a66429.css" rel="prefetch"><link href="/css/chunk-5ebbe05a.f54b3985.css" rel="prefetch"><link href="/css/chunk-6f5b76aa.8d2a6191.css" rel="prefetch"><link href="/css/chunk-c3a37878.855045b3.css" rel="prefetch"><link href="/css/chunk-d08d7a24.35b85a67.css" rel="prefetch"><link href="/css/chunk-d82cf548.df6950da.css" rel="prefetch"><link href="/css/chunk-f6d2456a.5e5339e6.css" rel="prefetch"><link href="/css/chunk-fe0c189e.0fd43177.css" rel="prefetch"><link href="/js/chunk-0077e808.fb0afae2.js" rel="prefetch"><link href="/js/chunk-0836256a.bd54b664.js" rel="prefetch"><link href="/js/chunk-11be261c.93b01da8.js" rel="prefetch"><link href="/js/chunk-1882667e.5fcce575.js" rel="prefetch"><link href="/js/chunk-21264600.12d6c454.js" rel="prefetch"><link href="/js/chunk-244783f8.da109c64.js" rel="prefetch"><link href="/js/chunk-28594f30.76724dcb.js" rel="prefetch"><link href="/js/chunk-5ebbe05a.560b208a.js" rel="prefetch"><link href="/js/chunk-6f5b76aa.120f9e79.js" rel="prefetch"><link href="/js/chunk-c3a37878.4cd836f7.js" rel="prefetch"><link href="/js/chunk-d08d7a24.22b16454.js" rel="prefetch"><link href="/js/chunk-d82cf548.4e60d99d.js" rel="prefetch"><link href="/js/chunk-f6d2456a.b32eeb32.js" rel="prefetch"><link href="/js/chunk-fe0c189e.3dc3ff26.js" rel="prefetch"><link href="/css/app.e2e4734d.css" rel="preload" as="style"><link href="/css/chunk-vendors.9ca8efee.css" rel="preload" as="style"><link href="/js/app.c06874d7.js" rel="preload" as="script"><link href="/js/chunk-vendors.5200e059.js" rel="preload" as="script"><link href="/css/chunk-vendors.9ca8efee.css" rel="stylesheet"><link href="/css/app.e2e4734d.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but electron-egg doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.5200e059.js"></script><script src="/js/app.c06874d7.js"></script></body></html>

View File

@@ -1,3 +1,14 @@
## 1.15.0
1. 增加chrome扩展程序重点
2. 增加web(html)内容嵌入
3. 增加多窗口打开
4. 增加桌面通知
5. 增加电源监控
6. 增加显示机器信息
7. 增加系统主题设置
8. 修改功能分类
9. 删除非必要代码
## 1.14.0
1. 视图样式重构
2. demo增加分类