| 12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fe4e2324"],{"107c":function(e,t,n){var o=n("d039"),r=n("da84"),a=r.RegExp;e.exports=o((function(){var e=a("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},1276:function(e,t,n){"use strict";var o=n("2ba4"),r=n("c65b"),a=n("e330"),i=n("d784"),l=n("44e7"),c=n("825a"),s=n("1d80"),u=n("4840"),p=n("8aa5"),d=n("50c4"),f=n("577e"),v=n("dc4a"),h=n("4dae"),g=n("14c3"),m=n("9263"),x=n("9f7f"),b=n("d039"),w=x.UNSUPPORTED_Y,S=4294967295,_=Math.min,k=[].push,y=a(/./.exec),C=a(k),E=a("".slice),I=!b((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));i("split",(function(e,t,n){var a;return a="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,n){var a=f(s(this)),i=void 0===n?S:n>>>0;if(0===i)return[];if(void 0===e)return[a];if(!l(e))return r(t,a,e,i);var c,u,p,d=[],v=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,x=new RegExp(e.source,v+"g");while(c=r(m,x,a)){if(u=x.lastIndex,u>g&&(C(d,E(a,g,c.index)),c.length>1&&c.index<a.length&&o(k,d,h(c,1)),p=c[0].length,g=u,d.length>=i))break;x.lastIndex===c.index&&x.lastIndex++}return g===a.length?!p&&y(x,"")||C(d,""):C(d,E(a,g)),d.length>i?h(d,0,i):d}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:r(t,this,e,n)}:t,[function(t,n){var o=s(this),i=void 0==t?void 0:v(t,e);return i?r(i,t,o,n):r(a,f(o),t,n)},function(e,o){var r=c(this),i=f(e),l=n(a,r,i,o,a!==t);if(l.done)return l.value;var s=u(r,RegExp),v=r.unicode,h=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(w?"g":"y"),m=new s(w?"^(?:"+r.source+")":r,h),x=void 0===o?S:o>>>0;if(0===x)return[];if(0===i.length)return null===g(m,i)?[i]:[];var b=0,k=0,y=[];while(k<i.length){m.lastIndex=w?0:k;var I,R=g(m,w?E(i,k):i);if(null===R||(I=_(d(m.lastIndex+(w?k:0)),i.length))===b)k=p(i,k,v);else{if(C(y,E(i,b,k)),y.length===x)return y;for(var $=1;$<=R.length-1;$++)if(C(y,R[$]),y.length===x)return y;k=b=I}}return C(y,E(i,b)),y}]}),!I,w)},"14c3":function(e,t,n){var o=n("da84"),r=n("c65b"),a=n("825a"),i=n("1626"),l=n("c6b6"),c=n("9263"),s=o.TypeError;e.exports=function(e,t){var n=e.exec;if(i(n)){var o=r(n,e,t);return null!==o&&a(o),o}if("RegExp"===l(e))return r(c,e,t);throw s("RegExp#exec called on incompatible receiver")}},"44e7":function(e,t,n){var o=n("861d"),r=n("c6b6"),a=n("b622"),i=a("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==r(e))}},"4dae":function(e,t,n){var o=n("da84"),r=n("23cb"),a=n("07fa"),i=n("8418"),l=o.Array,c=Math.max;e.exports=function(e,t,n){for(var o=a(e),s=r(t,o),u=r(void 0===n?o:n,o),p=l(c(u-s,0)),d=0;s<u;s++,d++)i(p,d,e[s]);return p.length=d,p}},8418:function(e,t,n){"use strict";var o=n("a04b"),r=n("9bf2"),a=n("5c6c");e.exports=function(e,t,n){var i=o(t);i in e?r.f(e,i,a(0,n)):e[i]=n}},"8aa5":function(e,t,n){"use strict";var o=n("6547").charAt;e.exports=function(e,t,n){return t+(n?o(e,t).length:1)}},9263:function(e,t,n){"use strict";var o=n("c65b"),r=n("e330"),a=n("577e"),i=n("ad6d"),l=n("9f7f"),c=n("5692"),s=n("7c73"),u=n("69f3").get,p=n("fce3"),d=n("107c"),f=c("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,h=v,g=r("".charAt),m=r("".indexOf),x=r("".replace),b=r("".slice),w=function(){var e=/a/,t=/b*/g;return o(v,e,"a"),o(v,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),S=l.BROKEN_CARET,_=void 0!==/()??/.exec("")[1],k=w||_||S||p||d;k&&(h=function(e){var t,n,r,l,c,p,d,k=this,y=u(k),C=a(e),E=y.raw;if(E)return E.lastIndex=k.lastIndex,t=o(h,E,C),k.lastIndex=E.lastIndex,t;var I=y.groups,R=S&&k.sticky,$=o(i,k),P=k.source,T=0,A=C;if(R&&($=x($,"y",""),-1===m($,"g")&&($+="g"),A=b(C,k.lastIndex),k.lastIndex>0&&(!k.multiline||k.multiline&&"\n"!==g(C,k.lastIndex-1))&&(P="(?: "+P+")",A=" "+A,T++),n=new RegExp("^(?:"+P+")",$)),_&&(n=new RegExp("^"+P+"$(?!\\s)",$)),w&&(r=k.lastIndex),l=o(v,R?n:k,A),R?l?(l.input=b(l.input,T),l[0]=b(l[0],T),l.index=k.lastIndex,k.lastIndex+=l[0].length):k.lastIndex=0:w&&l&&(k.lastIndex=k.global?l.index+l[0].length:r),_&&l&&l.length>1&&o(f,l[0],n,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(l[c]=void 0)})),l&&I)for(l.groups=p=s(null),c=0;c<I.length;c++)d=I[c],p[d[0]]=l[d[1]];return l}),e.exports=h},"9f7f":function(e,t,n){var o=n("d039"),r=n("da84"),a=r.RegExp,i=o((function(){var e=a("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),l=i||o((function(){return!a("a","y").sticky})),c=i||o((function(){var e=a("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:c,MISSED_STICKY:l,UNSUPPORTED_Y:i}},a15b:function(e,t,n){"use strict";var o=n("23e7"),r=n("e330"),a=n("44ad"),i=n("fc6a"),l=n("a640"),c=r([].join),s=a!=Object,u=l("join",",");o({target:"Array",proto:!0,forced:s||!u},{join:function(e){return c(i(this),void 0===e?",":e)}})},a358:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return c}));n("a15b"),n("ac1f"),n("1276");var o=n("cff8"),r=n.n(o),a=n("b775"),i={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"},l={appUpdater:"app.updater",window1ToWindow2:"window1-to-window2",window2ToWindow1:"window2-to-window1"},c=function(e,t){var n=r.a.get("httpServiceConfig"),o=n.server||"http://localhost:7071",i=e.split(".").join("/");return i=o+"/"+i,console.log("url:",i),Object(a["b"])({url:i,method:"post",data:t,params:{},timeout:6e4})}},a640:function(e,t,n){"use strict";var o=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&o((function(){n.call(null,t||function(){return 1},1)}))}},ac1f:function(e,t,n){"use strict";var o=n("23e7"),r=n("9263");o({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},ad6d:function(e,t,n){"use strict";var o=n("825a");e.exports=function(){var e=o(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},b0c0:function(e,t,n){var o=n("83ab"),r=n("5e77").EXISTS,a=n("e330"),i=n("9bf2").f,l=Function.prototype,c=a(l.toString),s=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=a(s.exec),p="name";o&&!r&&i(l,p,{configurable:!0,get:function(){try{return u(s,c(this))[1]}catch(e){return""}}})},b752:function(e,t,n){"use strict";n("bce6")},bce6:function(e,t,n){},c9d6:function(e,t,n){"use strict";n.r(t);var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app-base-file"}},[e._m(0),n("div",{staticClass:"one-block-2"},[n("a-space",[n("a-button",{on:{click:function(t){return e.messageShow("ipc")}}},[e._v("消息提示(ipc)")]),n("a-button",{on:{click:function(t){return e.messageShowConfirm("ipc")}}},[e._v("消息提示与确认(ipc)")])],1)],1),e._m(1),n("div",{staticClass:"one-block-2"},[n("a-row",[n("a-col",{attrs:{span:12}},[n("a-input",{attrs:{value:e.dir_path,"addon-before":"保存目录"},model:{value:e.dir_path,callback:function(t){e.dir_path=t},expression:"dir_path"}})],1),n("a-col",{attrs:{span:12}},[n("a-button",{on:{click:e.selectDir}},[e._v(" 修改目录 ")])],1)],1)],1),e._m(2),n("div",{staticClass:"one-block-2"},[n("a-list",{attrs:{grid:{gutter:16,column:4},"data-source":e.file_list},scopedSlots:e._u([{key:"renderItem",fn:function(t){return n("a-list-item",{on:{click:function(n){return e.openDirectry(t.id)}}},[n("a-card",{attrs:{title:t.content}},[n("a-button",{attrs:{type:"link"}},[e._v(" 打开 ")])],1)],1)}}])})],1),e._m(3),n("div",{staticClass:"one-block-2"},[n("a-upload-dragger",{attrs:{name:"file",multiple:!0,action:e.action_url},on:{change:e.handleFileChange}},[n("p",{staticClass:"ant-upload-drag-icon"},[n("a-icon",{attrs:{type:"inbox"}})],1),n("p",{staticClass:"ant-upload-text"},[e._v(" 点击 或 拖拽文件到这里 ")]),n("p",{staticClass:"ant-upload-hint"},[e._v(" 注意:请使用您自己的图床token ")])])],1),n("div",{staticClass:"footer"})])},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"one-block-1"},[n("span",[e._v(" 1. 系统原生对话框 ")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"one-block-1"},[n("span",[e._v(" 2. 选择保存目录 ")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"one-block-1"},[n("span",[e._v(" 3. 打开文件夹 ")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"one-block-1"},[n("span",[e._v(" 4. 上传文件到图床 ")])])}],a=(n("a15b"),n("ac1f"),n("1276"),n("b0c0"),n("cff8")),i=n.n(a),l=n("a358"),c=[{content:"【下载】目录",id:"downloads"},{content:"【图片】目录",id:"pictures"},{content:"【文档】目录",id:"documents"},{content:"【音乐】目录",id:"music"}],s={data:function(){return{file_list:c,action_url:"",image_info:[],num:0,servicAddress:"",dir_path:"D:\\www\\ee"}},mounted:function(){this.getHost()},methods:{getHost:function(){var e=this,t=this;this.$ipc.invoke(l["a"].checkHttpServer,{}).then((function(n){if(n.enable){t.servicAddress=n.server,i.a.set("httpServiceConfig",n);var o=n.server||"http://localhost:7071",r=l["a"].uploadFile,a=r.split(".").join("/");e.action_url=o+"/"+a}}))},openDirectry:function(e){this.$ipc.invoke(l["a"].openDirectory,{id:e}).then((function(e){}))},selectDir:function(){var e=this;this.$ipc.invoke(l["a"].selectFolder,"").then((function(t){e.dir_path=t,e.$message.info(t)}))},messageShow:function(e){var t=this;console.log("[messageShow] type:",e),this.$ipc.invoke(l["a"].messageShow,"").then((function(e){t.$message.info(e)}))},messageShowConfirm:function(e){var t=this;console.log("[messageShowConfirm] type:",e),this.$ipc.invoke(l["a"].messageShowConfirm,"").then((function(e){t.$message.info(e)}))},handleFileChange:function(e){if(console.log("handleFileChange-----"),""!=this.action_url){var t=e.file.status;if("uploading"!==t&&console.log(e.file),"done"===t){var n=e.file.response;if(console.log("uploadRes:",n),"success"!==n.code)return this.$message.error("file upload failed ".concat(n.code," .")),!1;this.num++;var o=n.data;o.id=this.num,o.imageUrlText="image url",this.image_info.push(o),this.$message.success("".concat(e.file.name," file uploaded successfully."))}else"error"===t&&this.$message.error("".concat(e.file.name," file upload failed."))}else this.$message.error("http服务未开启")}}},u=s,p=(n("b752"),n("2877")),d=Object(p["a"])(u,o,r,!1,null,"973e8018",null);t["default"]=d.exports},d784:function(e,t,n){"use strict";n("ac1f");var o=n("e330"),r=n("6eeb"),a=n("9263"),i=n("d039"),l=n("b622"),c=n("9112"),s=l("species"),u=RegExp.prototype;e.exports=function(e,t,n,p){var d=l(e),f=!i((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),v=f&&!i((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[s]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!f||!v||n){var h=o(/./[d]),g=t(d,""[e],(function(e,t,n,r,i){var l=o(e),c=t.exec;return c===a||c===u.exec?f&&!i?{done:!0,value:h(t,n,r)}:{done:!0,value:l(n,t,r)}:{done:!1}}));r(String.prototype,e,g[0]),r(u,d,g[1])}p&&c(u[d],"sham",!0)}},fce3:function(e,t,n){var o=n("d039"),r=n("da84"),a=r.RegExp;e.exports=o((function(){var e=a(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))}}]);
- //# sourceMappingURL=chunk-fe4e2324.c68c7a6f.js.map
|