| 12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7e1f652a"],{"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"),l=n("825a"),c=n("1d80"),a=n("4840"),i=n("8aa5"),s=n("50c4"),u=n("14c3"),p=n("9263"),d=n("9f7f"),f=n("d039"),g=d.UNSUPPORTED_Y,h=[].push,x=Math.min,v=4294967295,m=!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(c(this)),l=void 0===n?v:n>>>0;if(0===l)return[];if(void 0===e)return[r];if(!o(e))return t.call(r,e,l);var a,i,s,u=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,g=new RegExp(e.source,d+"g");while(a=p.call(g,r)){if(i=g.lastIndex,i>f&&(u.push(r.slice(f,a.index)),a.length>1&&a.index<r.length&&h.apply(u,a.slice(1)),s=a[0].length,f=i,u.length>=l))break;g.lastIndex===a.index&&g.lastIndex++}return f===r.length?!s&&g.test("")||u.push(""):u.push(r.slice(f)),u.length>l?u.slice(0,l):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=c(this),l=void 0==t?void 0:t[e];return void 0!==l?l.call(t,o,n):r.call(String(o),t,n)},function(e,o){var c=n(r,this,e,o,r!==t);if(c.done)return c.value;var p=l(this),d=String(e),f=a(p,RegExp),h=p.unicode,m=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(g?"g":"y"),b=new f(g?"^(?:"+p.source+")":p,m),w=void 0===o?v:o>>>0;if(0===w)return[];if(0===d.length)return null===u(b,d)?[d]:[];var S=0,k=0,E=[];while(k<d.length){b.lastIndex=g?0:k;var I,R=u(b,g?d.slice(k):d);if(null===R||(I=x(s(b.lastIndex+(g?k:0)),d.length))===S)k=i(d,k,h);else{if(E.push(d.slice(S,k)),E.length===w)return E;for(var y=1;y<=R.length-1;y++)if(E.push(R[y]),E.length===w)return E;k=S=I}}return E.push(d.slice(S)),E}]}),!m,g)},"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 l=n.call(e,t);if("object"!==typeof l)throw TypeError("RegExp exec method returned something other than an Object or null");return l}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},"3db9":function(e,t,n){"use strict";n("7092")},"44e7":function(e,t,n){var r=n("861d"),o=n("c6b6"),l=n("b622"),c=l("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[c])?!!t:"RegExp"==o(e))}},7092:function(e,t,n){},"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)}},"8f7f":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-demo-window"}},[e._m(0),n("div",{staticClass:"one-block-2"},[n("a-space",[n("a-button",{on:{click:function(t){return e.checkForUpdater()}}},[e._v("检查更新")]),n("a-button",{on:{click:function(t){return e.download()}}},[e._v("下载并安装")])],1)],1),e._m(1),n("div",{staticClass:"one-block-2"},[n("a-progress",{attrs:{percent:e.percentNumber,status:"active"}}),n("a-space",[e._v(" "+e._s(e.progress)+" ")])],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. 自动更新 ")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"one-block-1"},[n("span",[e._v(" 2. 下载进度 ")])])}],l=n("a358"),c={data:function(){return{status:0,progress:"",percentNumber:0}},mounted:function(){this.init()},methods:{init:function(){var e=this;this.$ipc.removeAllListeners(l["c"].appUpdater),this.$ipc.on(l["c"].appUpdater,(function(t,n){n=JSON.parse(n),e.status=n.status,3==n.status?(e.progress=n.desc,e.percentNumber=n.percentNumber):e.$message.info(n.desc)}))},checkForUpdater:function(){this.$ipcInvoke(l["a"].checkForUpdater).then((function(e){console.log(e)}))},download:function(){1===this.status?this.$ipcInvoke(l["a"].downloadApp).then((function(e){console.log(e)})):this.$message.info("没有可用版本")}}},a=c,i=(n("3db9"),n("2877")),s=Object(i["a"])(a,r,o,!1,null,"489510a6",null);t["default"]=s.exports},9263:function(e,t,n){"use strict";var r=n("ad6d"),o=n("9f7f"),l=n("5692"),c=n("7c73"),a=n("69f3").get,i=n("fce3"),s=n("107c"),u=RegExp.prototype.exec,p=l("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}(),g=o.UNSUPPORTED_Y||o.BROKEN_CARET,h=void 0!==/()??/.exec("")[1],x=f||h||g||i||s;x&&(d=function(e){var t,n,o,l,i,s,x,v=this,m=a(v),b=m.raw;if(b)return b.lastIndex=v.lastIndex,t=d.call(b,e),v.lastIndex=b.lastIndex,t;var w=m.groups,S=g&&v.sticky,k=r.call(v),E=v.source,I=0,R=e;if(S&&(k=k.replace("y",""),-1===k.indexOf("g")&&(k+="g"),R=String(e).slice(v.lastIndex),v.lastIndex>0&&(!v.multiline||v.multiline&&"\n"!==e[v.lastIndex-1])&&(E="(?: "+E+")",R=" "+R,I++),n=new RegExp("^(?:"+E+")",k)),h&&(n=new RegExp("^"+E+"$(?!\\s)",k)),f&&(o=v.lastIndex),l=u.call(S?n:v,R),S?l?(l.input=l.input.slice(I),l[0]=l[0].slice(I),l.index=v.lastIndex,v.lastIndex+=l[0].length):v.lastIndex=0:f&&l&&(v.lastIndex=v.global?l.index+l[0].length:o),h&&l&&l.length>1&&p.call(l[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(l[i]=void 0)})),l&&w)for(l.groups=s=c(null),i=0;i<w.length;i++)x=w[i],s[x[0]]=l[x[1]];return l}),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"),l=n("fc6a"),c=n("a640"),a=[].join,i=o!=Object,s=c("join",",");r({target:"Array",proto:!0,forced:i||!s},{join:function(e){return a.call(l(this),void 0===e?",":e)}})},a358:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return i}));n("a15b"),n("ac1f"),n("1276");var r=n("cff8"),o=n.n(r),l=n("b775"),c={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",hello:"controller.example.hello"},a={appUpdater:"app.updater"},i=function(e,t){var n=o.a.get("httpServiceConfig"),r=n.server||"http://127.0.0.1:7071",c=e.split(".").join("/");return c=r+"/"+c,console.log("url:",c),Object(l["b"])({url:c,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}},d784:function(e,t,n){"use strict";n("ac1f");var r=n("6eeb"),o=n("9263"),l=n("d039"),c=n("b622"),a=n("9112"),i=c("species"),s=RegExp.prototype;e.exports=function(e,t,n,u){var p=c(e),d=!l((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),f=d&&!l((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[i]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!d||!f||n){var g=/./[p],h=t(p,""[e],(function(e,t,n,r,l){var c=t.exec;return c===o||c===s.exec?d&&!l?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}));r(String.prototype,e,h[0]),r(s,p,h[1])}u&&a(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)}))}}]);
- //# sourceMappingURL=chunk-7e1f652a.8fcaf7ef.js.map
|