| 12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-852b44a6"],{"107c":function(e,r,t){var n=t("d039"),o=t("da84"),i=o.RegExp;e.exports=n((function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},1276:function(e,r,t){"use strict";var n=t("2ba4"),o=t("c65b"),i=t("e330"),a=t("d784"),c=t("44e7"),s=t("825a"),l=t("1d80"),u=t("4840"),p=t("8aa5"),d=t("50c4"),f=t("577e"),g=t("dc4a"),v=t("4dae"),x=t("14c3"),b=t("9263"),h=t("9f7f"),m=t("d039"),_=h.UNSUPPORTED_Y,w=4294967295,k=Math.min,y=[].push,S=i(/./.exec),I=i(y),P=i("".slice),J=!m((function(){var e=/(?:)/,r=e.exec;e.exec=function(){return r.apply(this,arguments)};var t="ab".split(e);return 2!==t.length||"a"!==t[0]||"b"!==t[1]}));a("split",(function(e,r,t){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var i=f(l(this)),a=void 0===t?w:t>>>0;if(0===a)return[];if(void 0===e)return[i];if(!c(e))return o(r,i,e,a);var s,u,p,d=[],g=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),x=0,h=new RegExp(e.source,g+"g");while(s=o(b,h,i)){if(u=h.lastIndex,u>x&&(I(d,P(i,x,s.index)),s.length>1&&s.index<i.length&&n(y,d,v(s,1)),p=s[0].length,x=u,d.length>=a))break;h.lastIndex===s.index&&h.lastIndex++}return x===i.length?!p&&S(h,"")||I(d,""):I(d,P(i,x)),d.length>a?v(d,0,a):d}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:o(r,this,e,t)}:r,[function(r,t){var n=l(this),a=void 0==r?void 0:g(r,e);return a?o(a,r,n,t):o(i,f(n),r,t)},function(e,n){var o=s(this),a=f(e),c=t(i,o,a,n,i!==r);if(c.done)return c.value;var l=u(o,RegExp),g=o.unicode,v=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(_?"g":"y"),b=new l(_?"^(?:"+o.source+")":o,v),h=void 0===n?w:n>>>0;if(0===h)return[];if(0===a.length)return null===x(b,a)?[a]:[];var m=0,y=0,S=[];while(y<a.length){b.lastIndex=_?0:y;var J,E=x(b,_?P(a,y):a);if(null===E||(J=k(d(b.lastIndex+(_?y:0)),a.length))===m)y=p(a,y,g);else{if(I(S,P(a,m,y)),S.length===h)return S;for(var R=1;R<=E.length-1;R++)if(I(S,E[R]),S.length===h)return S;y=m=J}}return I(S,P(a,m)),S}]}),!J,_)},"14c3":function(e,r,t){var n=t("da84"),o=t("c65b"),i=t("825a"),a=t("1626"),c=t("c6b6"),s=t("9263"),l=n.TypeError;e.exports=function(e,r){var t=e.exec;if(a(t)){var n=o(t,e,r);return null!==n&&i(n),n}if("RegExp"===c(e))return o(s,e,r);throw l("RegExp#exec called on incompatible receiver")}},"435d":function(e,r,t){"use strict";t.r(r);var n=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("div",{attrs:{id:"app-base-jobs"}},[e._m(0),t("div",{staticClass:"one-block-2"},[t("a-space",[t("a-button",{on:{click:function(r){return e.runJob(1,"create")}}},[e._v("执行任务1")]),e._v(" 进度:"+e._s(e.progress1)+" , 进程pid:"+e._s(e.progress1_pid)+" "),t("a-button",{on:{click:function(r){return e.runJob(1,"close")}}},[e._v("关闭")])],1),t("p"),t("a-space",[t("a-button",{on:{click:function(r){return e.runJob(2,"create")}}},[e._v("执行任务2")]),e._v(" 进度:"+e._s(e.progress2)+" , 进程pid:"+e._s(e.progress2_pid)+" "),t("a-button",{on:{click:function(r){return e.runJob(2,"close")}}},[e._v("关闭")])],1)],1),e._m(1),t("div",{staticClass:"one-block-2"},[t("a-space",[t("a-button",{on:{click:function(r){return e.createPool()}}},[e._v("创建进程池")]),e._v(" 进程pids:"+e._s(e.processPids)+" ")],1),t("p"),t("a-space",[t("a-button",{on:{click:function(r){return e.runJobByPool(3,"run")}}},[e._v("执行任务3")]),e._v(" 进度:"+e._s(e.progress3)+" , 进程pid:"+e._s(e.progress3_pid)+" ")],1),t("p"),t("a-space",[t("a-button",{on:{click:function(r){return e.runJobByPool(4,"run")}}},[e._v("执行任务4")]),e._v(" 进度:"+e._s(e.progress4)+" , 进程pid:"+e._s(e.progress4_pid)+" ")],1)],1)])},o=[function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("div",{staticClass:"one-block-1"},[t("span",[e._v(" 1. 任务 / 并发任务 ")])])},function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("div",{staticClass:"one-block-1"},[t("span",[e._v(" 2. 任务池 / 并发任务 ")])])}],i=(t("e9c4"),t("a358")),a={data:function(){return{progress1:0,progress1_pid:0,progress2:0,progress2_pid:0,progress3:0,progress3_pid:0,progress4:0,progress4_pid:0,processPids:""}},mounted:function(){this.init()},methods:{init:function(){var e=this;this.$ipc.removeAllListeners(i["a"].timerJobProgress),this.$ipc.removeAllListeners(i["a"].createPoolNotice),this.$ipc.on(i["a"].timerJobProgress,(function(r,t){switch(t.jobId){case 1:e.progress1=t.number,e.progress1_pid=0==t.pid?t.pid:e.progress1_pid;break;case 2:e.progress2=t.number,e.progress2_pid=0==t.pid?t.pid:e.progress2_pid;break;case 3:e.progress3=t.number,e.progress3_pid=0==t.pid?t.pid:e.progress3_pid;break;case 4:e.progress4=t.number,e.progress4_pid=0==t.pid?t.pid:e.progress4_pid;break}})),this.$ipc.on(i["a"].createPoolNotice,(function(r,t){var n=JSON.stringify(t);e.processPids=n}))},runJob:function(e,r){var t=this,n={id:e,type:"timer",action:r};this.$ipc.invoke(i["a"].someJob,n).then((function(e){switch(e.jobId){case 1:"create"==e.action&&(t.progress1_pid=e.result.pid);break;case 2:"create"==e.action&&(t.progress2_pid=e.result.pid);break}}))},createPool:function(){var e={number:3};this.$ipc.send(i["a"].createPool,e)},runJobByPool:function(e,r){var t=this,n={id:e,type:"timer",action:r};this.$ipc.invoke(i["a"].someJobByPool,n).then((function(e){switch(e.jobId){case 3:"run"==e.action&&(t.progress3_pid=e.result.pid);break;case 4:"run"==e.action&&(t.progress4_pid=e.result.pid);break}}))}}},c=a,s=(t("4798"),t("2877")),l=Object(s["a"])(c,n,o,!1,null,"35f8933c",null);r["default"]=l.exports},"44e7":function(e,r,t){var n=t("861d"),o=t("c6b6"),i=t("b622"),a=i("match");e.exports=function(e){var r;return n(e)&&(void 0!==(r=e[a])?!!r:"RegExp"==o(e))}},4798:function(e,r,t){"use strict";t("b98f")},"4dae":function(e,r,t){var n=t("da84"),o=t("23cb"),i=t("07fa"),a=t("8418"),c=n.Array,s=Math.max;e.exports=function(e,r,t){for(var n=i(e),l=o(r,n),u=o(void 0===t?n:t,n),p=c(s(u-l,0)),d=0;l<u;l++,d++)a(p,d,e[l]);return p.length=d,p}},8418:function(e,r,t){"use strict";var n=t("a04b"),o=t("9bf2"),i=t("5c6c");e.exports=function(e,r,t){var a=n(r);a in e?o.f(e,a,i(0,t)):e[a]=t}},"8aa5":function(e,r,t){"use strict";var n=t("6547").charAt;e.exports=function(e,r,t){return r+(t?n(e,r).length:1)}},9263:function(e,r,t){"use strict";var n=t("c65b"),o=t("e330"),i=t("577e"),a=t("ad6d"),c=t("9f7f"),s=t("5692"),l=t("7c73"),u=t("69f3").get,p=t("fce3"),d=t("107c"),f=s("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,v=g,x=o("".charAt),b=o("".indexOf),h=o("".replace),m=o("".slice),_=function(){var e=/a/,r=/b*/g;return n(g,e,"a"),n(g,r,"a"),0!==e.lastIndex||0!==r.lastIndex}(),w=c.BROKEN_CARET,k=void 0!==/()??/.exec("")[1],y=_||k||w||p||d;y&&(v=function(e){var r,t,o,c,s,p,d,y=this,S=u(y),I=i(e),P=S.raw;if(P)return P.lastIndex=y.lastIndex,r=n(v,P,I),y.lastIndex=P.lastIndex,r;var J=S.groups,E=w&&y.sticky,R=n(a,y),C=y.source,A=0,O=I;if(E&&(R=h(R,"y",""),-1===b(R,"g")&&(R+="g"),O=m(I,y.lastIndex),y.lastIndex>0&&(!y.multiline||y.multiline&&"\n"!==x(I,y.lastIndex-1))&&(C="(?: "+C+")",O=" "+O,A++),t=new RegExp("^(?:"+C+")",R)),k&&(t=new RegExp("^"+C+"$(?!\\s)",R)),_&&(o=y.lastIndex),c=n(g,E?t:y,O),E?c?(c.input=m(c.input,A),c[0]=m(c[0],A),c.index=y.lastIndex,y.lastIndex+=c[0].length):y.lastIndex=0:_&&c&&(y.lastIndex=y.global?c.index+c[0].length:o),k&&c&&c.length>1&&n(f,c[0],t,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(c[s]=void 0)})),c&&J)for(c.groups=p=l(null),s=0;s<J.length;s++)d=J[s],p[d[0]]=c[d[1]];return c}),e.exports=v},"9f7f":function(e,r,t){var n=t("d039"),o=t("da84"),i=o.RegExp,a=n((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),c=a||n((function(){return!i("a","y").sticky})),s=a||n((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:c,UNSUPPORTED_Y:a}},a15b:function(e,r,t){"use strict";var n=t("23e7"),o=t("e330"),i=t("44ad"),a=t("fc6a"),c=t("a640"),s=o([].join),l=i!=Object,u=c("join",",");n({target:"Array",proto:!0,forced:l||!u},{join:function(e){return s(a(this),void 0===e?",":e)}})},a358:function(e,r,t){"use strict";t.d(r,"a",(function(){return a})),t.d(r,"c",(function(){return c})),t.d(r,"b",(function(){return s}));t("a15b"),t("ac1f"),t("1276");var n=t("cff8"),o=t.n(n),i=t("b775"),a={test:"controller.example.test",messageShow:"controller.example.messageShow",messageShowConfirm:"controller.example.messageShowConfirm",selectFolder:"controller.example.selectFolder",openDirectory:"controller.example.openDirectory",loadViewContent:"controller.example.loadViewContent",removeViewContent:"controller.example.removeViewContent",createWindow:"controller.example.createWindow",sendNotification:"controller.example.sendNotification",initPowerMonitor:"controller.example.initPowerMonitor",getScreen:"controller.example.getScreen",openSoftware:"controller.example.openSoftware",autoLaunch:"controller.example.autoLaunch",setTheme:"controller.example.setTheme",getTheme:"controller.example.getTheme",checkForUpdater:"controller.example.checkForUpdater",downloadApp:"controller.example.downloadApp",dbOperation:"controller.example.dbOperation",sqlitedbOperation:"controller.example.sqlitedbOperation",uploadFile:"controller.example.uploadFile",checkHttpServer:"controller.example.checkHttpServer",doHttpRequest:"controller.example.doHttpRequest",doSocketRequest:"controller.example.doSocketRequest",ipcInvokeMsg:"controller.example.ipcInvokeMsg",ipcSendSyncMsg:"controller.example.ipcSendSyncMsg",ipcSendMsg:"controller.example.ipcSendMsg",getWCid:"controller.example.getWCid",startJavaServer:"controller.example.startJavaServer",closeJavaServer:"controller.example.closeJavaServer",someJob:"controller.example.someJob",timerJobProgress:"controller.example.timerJobProgress",createPool:"controller.example.createPool",createPoolNotice:"controller.example.createPoolNotice",someJobByPool:"controller.example.someJobByPool",hello:"controller.example.hello"},c={appUpdater:"app.updater",window1ToWindow2:"window1-to-window2",window2ToWindow1:"window2-to-window1"},s=function(e,r){var t=o.a.get("httpServiceConfig"),n=t.server||"http://localhost:7071",a=e.split(".").join("/");return a=n+"/"+a,console.log("url:",a),Object(i["b"])({url:a,method:"post",data:r,params:{},timeout:6e4})}},a640:function(e,r,t){"use strict";var n=t("d039");e.exports=function(e,r){var t=[][e];return!!t&&n((function(){t.call(null,r||function(){return 1},1)}))}},ac1f:function(e,r,t){"use strict";var n=t("23e7"),o=t("9263");n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},ad6d:function(e,r,t){"use strict";var n=t("825a");e.exports=function(){var e=n(this),r="";return e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.sticky&&(r+="y"),r}},b98f:function(e,r,t){},d784:function(e,r,t){"use strict";t("ac1f");var n=t("e330"),o=t("6eeb"),i=t("9263"),a=t("d039"),c=t("b622"),s=t("9112"),l=c("species"),u=RegExp.prototype;e.exports=function(e,r,t,p){var d=c(e),f=!a((function(){var r={};return r[d]=function(){return 7},7!=""[e](r)})),g=f&&!a((function(){var r=!1,t=/a/;return"split"===e&&(t={},t.constructor={},t.constructor[l]=function(){return t},t.flags="",t[d]=/./[d]),t.exec=function(){return r=!0,null},t[d](""),!r}));if(!f||!g||t){var v=n(/./[d]),x=r(d,""[e],(function(e,r,t,o,a){var c=n(e),s=r.exec;return s===i||s===u.exec?f&&!a?{done:!0,value:v(r,t,o)}:{done:!0,value:c(t,r,o)}:{done:!1}}));o(String.prototype,e,x[0]),o(u,d,x[1])}p&&s(u[d],"sham",!0)}},e9c4:function(e,r,t){var n=t("23e7"),o=t("da84"),i=t("d066"),a=t("2ba4"),c=t("e330"),s=t("d039"),l=o.Array,u=i("JSON","stringify"),p=c(/./.exec),d=c("".charAt),f=c("".charCodeAt),g=c("".replace),v=c(1..toString),x=/[\uD800-\uDFFF]/g,b=/^[\uD800-\uDBFF]$/,h=/^[\uDC00-\uDFFF]$/,m=function(e,r,t){var n=d(t,r-1),o=d(t,r+1);return p(b,e)&&!p(h,o)||p(h,e)&&!p(b,n)?"\\u"+v(f(e,0),16):e},_=s((function(){return'"\\udf06\\ud834"'!==u("\udf06\ud834")||'"\\udead"'!==u("\udead")}));u&&n({target:"JSON",stat:!0,forced:_},{stringify:function(e,r,t){for(var n=0,o=arguments.length,i=l(o);n<o;n++)i[n]=arguments[n];var c=a(u,null,i);return"string"==typeof c?g(c,x,m):c}})},fce3:function(e,r,t){var n=t("d039"),o=t("da84"),i=o.RegExp;e.exports=n((function(){var e=i(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))}}]);
- //# sourceMappingURL=chunk-852b44a6.c49a9def.js.map
|