chunk-d82e415e.538c7348.js 12 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d82e415e"],{"0f52":function(e,t,n){"use strict";n("b84e")},"107c":function(e,t,n){var r=n("d039");e.exports=r((function(){var e=RegExp("(?<a>b)","string".charAt(5));return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},1276:function(e,t,n){"use strict";var r=n("d784"),o=n("44e7"),i=n("825a"),a=n("1d80"),l=n("4840"),c=n("8aa5"),s=n("50c4"),u=n("14c3"),p=n("9263"),d=n("9f7f"),f=n("d039"),h=d.UNSUPPORTED_Y,g=[].push,v=Math.min,m=4294967295,x=!f((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]}));r("split",(function(e,t,n){var r;return r="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 r=String(a(this)),i=void 0===n?m:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!o(e))return t.call(r,e,i);var l,c,s,u=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,h=new RegExp(e.source,d+"g");while(l=p.call(h,r)){if(c=h.lastIndex,c>f&&(u.push(r.slice(f,l.index)),l.length>1&&l.index<r.length&&g.apply(u,l.slice(1)),s=l[0].length,f=c,u.length>=i))break;h.lastIndex===l.index&&h.lastIndex++}return f===r.length?!s&&h.test("")||u.push(""):u.push(r.slice(f)),u.length>i?u.slice(0,i):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=a(this),i=void 0==t?void 0:t[e];return void 0!==i?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var a=n(r,this,e,o,r!==t);if(a.done)return a.value;var p=i(this),d=String(e),f=l(p,RegExp),g=p.unicode,x=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(h?"g":"y"),b=new f(h?"^(?:"+p.source+")":p,x),w=void 0===o?m:o>>>0;if(0===w)return[];if(0===d.length)return null===u(b,d)?[d]:[];var _=0,S=0,k=[];while(S<d.length){b.lastIndex=h?0:S;var y,C=u(b,h?d.slice(S):d);if(null===C||(y=v(s(b.lastIndex+(h?S:0)),d.length))===_)S=c(d,S,g);else{if(k.push(d.slice(_,S)),k.length===w)return k;for(var I=1;I<=C.length-1;I++)if(k.push(C[I]),k.length===w)return k;S=_=y}}return k.push(d.slice(_)),k}]}),!x,h)},"14c3":function(e,t,n){var r=n("c6b6"),o=n("9263");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var i=n.call(e,t);if("object"!==typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},"44e7":function(e,t,n){var r=n("861d"),o=n("c6b6"),i=n("b622"),a=i("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==o(e))}},"8aa5":function(e,t,n){"use strict";var r=n("6547").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},9263:function(e,t,n){"use strict";var r=n("ad6d"),o=n("9f7f"),i=n("5692"),a=n("7c73"),l=n("69f3").get,c=n("fce3"),s=n("107c"),u=RegExp.prototype.exec,p=i("native-string-replace",String.prototype.replace),d=u,f=function(){var e=/a/,t=/b*/g;return u.call(e,"a"),u.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),h=o.UNSUPPORTED_Y||o.BROKEN_CARET,g=void 0!==/()??/.exec("")[1],v=f||g||h||c||s;v&&(d=function(e){var t,n,o,i,c,s,v,m=this,x=l(m),b=x.raw;if(b)return b.lastIndex=m.lastIndex,t=d.call(b,e),m.lastIndex=b.lastIndex,t;var w=x.groups,_=h&&m.sticky,S=r.call(m),k=m.source,y=0,C=e;if(_&&(S=S.replace("y",""),-1===S.indexOf("g")&&(S+="g"),C=String(e).slice(m.lastIndex),m.lastIndex>0&&(!m.multiline||m.multiline&&"\n"!==e[m.lastIndex-1])&&(k="(?: "+k+")",C=" "+C,y++),n=new RegExp("^(?:"+k+")",S)),g&&(n=new RegExp("^"+k+"$(?!\\s)",S)),f&&(o=m.lastIndex),i=u.call(_?n:m,C),_?i?(i.input=i.input.slice(y),i[0]=i[0].slice(y),i.index=m.lastIndex,m.lastIndex+=i[0].length):m.lastIndex=0:f&&i&&(m.lastIndex=m.global?i.index+i[0].length:o),g&&i&&i.length>1&&p.call(i[0],n,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(i[c]=void 0)})),i&&w)for(i.groups=s=a(null),c=0;c<w.length;c++)v=w[c],s[v[0]]=i[v[1]];return i}),e.exports=d},"9f7f":function(e,t,n){var r=n("d039"),o=function(e,t){return RegExp(e,t)};t.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},a15b:function(e,t,n){"use strict";var r=n("23e7"),o=n("44ad"),i=n("fc6a"),a=n("a640"),l=[].join,c=o!=Object,s=a("join",",");r({target:"Array",proto:!0,forced:c||!s},{join:function(e){return l.call(i(this),void 0===e?",":e)}})},a358:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return c}));n("a15b"),n("ac1f"),n("1276");var r=n("cff8"),o=n.n(r),i=n("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",hello:"controller.example.hello"},l={appUpdater:"app.updater",window1ToWindow2:"window1-to-window2",window2ToWindow1:"window2-to-window1"},c=function(e,t){var n=o.a.get("httpServiceConfig"),r=n.server||"http://127.0.0.1:7071",a=e.split(".").join("/");return a=r+"/"+a,console.log("url:",a),Object(i["b"])({url:a,method:"post",data:t,params:{},timeout:6e4})}},a640:function(e,t,n){"use strict";var r=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},ac1f:function(e,t,n){"use strict";var r=n("23e7"),o=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},ad6d:function(e,t,n){"use strict";var r=n("825a");e.exports=function(){var e=r(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 r=n("83ab"),o=n("9bf2").f,i=Function.prototype,a=i.toString,l=/^\s*function ([^ (]*)/,c="name";r&&!(c in i)&&o(i,c,{configurable:!0,get:function(){try{return a.call(this).match(l)[1]}catch(e){return""}}})},b84e:function(e,t,n){},c9d6:function(e,t,n){"use strict";n.r(t);var r=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"})])},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. 系统原生对话框 ")])])},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. 上传文件到图床 ")])])}],i=(n("a15b"),n("ac1f"),n("1276"),n("b0c0"),n("cff8")),a=n.n(i),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.$ipcInvoke(l["a"].checkHttpServer,{}).then((function(n){if(n.enable){t.servicAddress=n.server,a.a.set("httpServiceConfig",n);var r=n.server||"http://127.0.0.1:7071",o=l["a"].uploadFile,i=o.split(".").join("/");e.action_url=r+"/"+i}console.log("action_url:",e.action_url)}))},openDirectry:function(e){this.$ipcInvoke(l["a"].openDirectory,{id:e}).then((function(e){}))},selectDir:function(){var e=this;e.$ipcInvoke(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.$ipcInvoke(l["a"].messageShow,"").then((function(e){t.$message.info(e)}))},messageShowConfirm:function(e){var t=this;console.log("[messageShowConfirm] type:",e),this.$ipcInvoke(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 r=n.data;r.id=this.num,r.imageUrlText="image url",this.image_info.push(r),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("0f52"),n("2877")),d=Object(p["a"])(u,r,o,!1,null,"5669ca22",null);t["default"]=d.exports},d784:function(e,t,n){"use strict";n("ac1f");var r=n("6eeb"),o=n("9263"),i=n("d039"),a=n("b622"),l=n("9112"),c=a("species"),s=RegExp.prototype;e.exports=function(e,t,n,u){var p=a(e),d=!i((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),f=d&&!i((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!d||!f||n){var h=/./[p],g=t(p,""[e],(function(e,t,n,r,i){var a=t.exec;return a===o||a===s.exec?d&&!i?{done:!0,value:h.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}));r(String.prototype,e,g[0]),r(s,p,g[1])}u&&l(s[p],"sham",!0)}},fce3:function(e,t,n){var r=n("d039");e.exports=r((function(){var e=RegExp(".","string".charAt(0));return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))}}]);
  2. //# sourceMappingURL=chunk-d82e415e.538c7348.js.map