| 12 |
- (function(e){function n(n){for(var a,c,o=n[0],u=n[1],i=n[2],d=0,f=[];d<o.length;d++)c=o[d],Object.prototype.hasOwnProperty.call(s,c)&&s[c]&&f.push(s[c][0]),s[c]=0;for(a in u)Object.prototype.hasOwnProperty.call(u,a)&&(e[a]=u[a]);l&&l(n);while(f.length)f.shift()();return r.push.apply(r,i||[]),t()}function t(){for(var e,n=0;n<r.length;n++){for(var t=r[n],a=!0,c=1;c<t.length;c++){var o=t[c];0!==s[o]&&(a=!1)}a&&(r.splice(n--,1),e=u(u.s=t[0]))}return e}var a={},c={app:0},s={app:0},r=[];function o(e){return u.p+"js/"+({}[e]||e)+"."+{"chunk-1af754fa":"471ed157","chunk-24bb6116":"ccb4ca74","chunk-3264b806":"08418d97","chunk-3aa0a14c":"38e98560","chunk-3ce23730":"b9cd427e","chunk-4fd6d7f0":"a8d826b2","chunk-50251666":"7f497919","chunk-57324832":"40710ffc","chunk-6cddf9c4":"210c8534","chunk-7e1f652a":"8fcaf7ef","chunk-842aee10":"bcbc6d26","chunk-8583df3c":"174afb50","chunk-b4234658":"160b35dc","chunk-d1e1ec8c":"5324ecd8","chunk-d7b56b58":"1d936eec","chunk-e2c4ac18":"980984a0","chunk-e319cd5c":"212a6371"}[e]+".js"}function u(n){if(a[n])return a[n].exports;var t=a[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,u),t.l=!0,t.exports}u.e=function(e){var n=[],t={"chunk-1af754fa":1,"chunk-24bb6116":1,"chunk-3264b806":1,"chunk-3aa0a14c":1,"chunk-3ce23730":1,"chunk-4fd6d7f0":1,"chunk-50251666":1,"chunk-57324832":1,"chunk-6cddf9c4":1,"chunk-7e1f652a":1,"chunk-842aee10":1,"chunk-8583df3c":1,"chunk-b4234658":1,"chunk-d1e1ec8c":1,"chunk-d7b56b58":1,"chunk-e2c4ac18":1,"chunk-e319cd5c":1};c[e]?n.push(c[e]):0!==c[e]&&t[e]&&n.push(c[e]=new Promise((function(n,t){for(var a="css/"+({}[e]||e)+"."+{"chunk-1af754fa":"e1e0247d","chunk-24bb6116":"4ceda89c","chunk-3264b806":"ab0373ec","chunk-3aa0a14c":"d3b5c327","chunk-3ce23730":"d07903e2","chunk-4fd6d7f0":"83845a9b","chunk-50251666":"0f3904b9","chunk-57324832":"80096fc0","chunk-6cddf9c4":"2f12db76","chunk-7e1f652a":"286494f0","chunk-842aee10":"0c43dff1","chunk-8583df3c":"87d5fe76","chunk-b4234658":"6a07402f","chunk-d1e1ec8c":"72587d68","chunk-d7b56b58":"d635b2f3","chunk-e2c4ac18":"5cf6519b","chunk-e319cd5c":"1ec378ff"}[e]+".css",s=u.p+a,r=document.getElementsByTagName("link"),o=0;o<r.length;o++){var i=r[o],d=i.getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(d===a||d===s))return n()}var f=document.getElementsByTagName("style");for(o=0;o<f.length;o++){i=f[o],d=i.getAttribute("data-href");if(d===a||d===s)return n()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=n,l.onerror=function(n){var a=n&&n.target&&n.target.src||s,r=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");r.code="CSS_CHUNK_LOAD_FAILED",r.request=a,delete c[e],l.parentNode.removeChild(l),t(r)},l.href=s;var p=document.getElementsByTagName("head")[0];p.appendChild(l)})).then((function(){c[e]=0})));var a=s[e];if(0!==a)if(a)n.push(a[2]);else{var r=new Promise((function(n,t){a=s[e]=[n,t]}));n.push(a[2]=r);var i,d=document.createElement("script");d.charset="utf-8",d.timeout=120,u.nc&&d.setAttribute("nonce",u.nc),d.src=o(e);var f=new Error;i=function(n){d.onerror=d.onload=null,clearTimeout(l);var t=s[e];if(0!==t){if(t){var a=n&&("load"===n.type?"missing":n.type),c=n&&n.target&&n.target.src;f.message="Loading chunk "+e+" failed.\n("+a+": "+c+")",f.name="ChunkLoadError",f.type=a,f.request=c,t[1](f)}s[e]=void 0}};var l=setTimeout((function(){i({type:"timeout",target:d})}),12e4);d.onerror=d.onload=i,document.head.appendChild(d)}return Promise.all(n)},u.m=e,u.c=a,u.d=function(e,n,t){u.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,n){if(1&n&&(e=u(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(u.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var a in e)u.d(t,a,function(n){return e[n]}.bind(null,a));return t},u.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return u.d(n,"a",n),n},u.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},u.p="/",u.oe=function(e){throw console.error(e),e};var i=window["webpackJsonp"]=window["webpackJsonp"]||[],d=i.push.bind(i);i.push=n,i=i.slice();for(var f=0;f<i.length;f++)n(i[f]);var l=d;r.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){e.exports=t("56d7")},"034f":function(e,n,t){"use strict";t("85ec")},4678:function(e,n,t){var a={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function c(e){var n=s(e);return t(n)}function s(e){if(!t.o(a,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return a[e]}c.keys=function(){return Object.keys(a)},c.resolve=s,e.exports=c,c.id="4678"},"56d7":function(e,n,t){"use strict";t.r(n);t("e260"),t("e6cf"),t("cca6"),t("a79d");var a=t("a026"),c=t("f23d"),s=(t("3aed"),function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{attrs:{id:"app"}},[t("router-view")],1)}),r=[],o={name:"App",components:{},data:function(){return{}},watch:{},methods:{}},u=o,i=(t("034f"),t("2877")),d=Object(i["a"])(u,s,r,!1,null,null,null),f=d.exports,l=t("8c4f"),p=(t("d3b7"),t("3ca3"),t("ddb0"),function(){var e=this,n=e.$createElement,a=e._self._c||n;return a("a-layout",{attrs:{id:"app-layout-sider"}},[a("a-layout-sider",{staticClass:"layout-sider",attrs:{theme:"light"},model:{value:e.collapsed,callback:function(n){e.collapsed=n},expression:"collapsed"}},[a("div",{staticClass:"logo"},[a("img",{staticClass:"pic-logo",attrs:{src:t("cf05")}})]),a("a-menu",{staticClass:"menu-item",attrs:{theme:"light",mode:"inline","default-selected-keys":[e.default_key]},on:{click:e.menuHandle}},e._l(e.menu,(function(n,t){return a("a-menu-item",{key:t},[a("a-icon",{attrs:{type:n.icon}}),e._v(" "+e._s(n.title)+" ")],1)})),1)],1),a("a-layout",[a("a-layout-content",{staticClass:"layout-content"},[a("router-view")],1)],1)],1)}),h=[],m={name:"AppSider",data:function(){return{collapsed:!0,default_key:"menu_1",current:"",menu:{menu_1:{icon:"home",title:"框架",pageName:"Base",params:{}},menu_2:{icon:"desktop",title:"其它",pageName:"Other",params:{}}}}},created:function(){},mounted:function(){this.menuHandle()},methods:{menuHandle:function(e){this.current=e?e.key:this.default_key;var n=this.menu[this.current];console.log("[home] load page:",n.pageName),this.$router.push({name:n.pageName,params:n.params})}}},b=m,j=(t("88ee"),Object(i["a"])(b,p,h,!1,null,"b03bc458",null)),k=j.exports,g=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("a-layout",{attrs:{id:"app-menu"}},[t("a-layout-sider",{staticClass:"layout-sider",attrs:{theme:"light"}},[t("a-menu",{attrs:{theme:"light",mode:"inline","default-selected-keys":[e.default_key],"selected-keys":[e.current]},on:{click:e.menuClick}},e._l(e.menu,(function(n,a){return t("a-menu-item",{key:a},[t("router-link",{attrs:{to:{name:n.pageName,params:n.params}}},[t("span",[e._v(e._s(n.title))])])],1)})),1)],1),t("a-layout",[t("a-layout-content",[t("router-view")],1)],1)],1)},y=[],v={base:{menu_100:{icon:"profile",title:"文件",pageName:"BaseFileIndex",params:{}},menu_300:{icon:"profile",title:"通信",pageName:"BaseSocketIpc",params:{}},menu_301:{icon:"profile",title:"http服务",pageName:"BaseSocketHttpServer",params:{}},menu_302:{icon:"profile",title:"socket服务",pageName:"BaseSocketSocketServer",params:{}},menu_310:{icon:"profile",title:"json数据库",pageName:"BaseDBIndex",params:{}},menu_320:{icon:"profile",title:"sqlite数据库",pageName:"BaseSqliteDBIndex",params:{}},menu_400:{icon:"profile",title:"视图",pageName:"BaseWindowViewIndex",params:{}},menu_401:{icon:"profile",title:"窗口",pageName:"BaseWindowIndex",params:{}},menu_405:{icon:"profile",title:"桌面通知",pageName:"BaseNotificationIndex",params:{}},menu_407:{icon:"profile",title:"电源监控",pageName:"BasePowerMonitorIndex",params:{}},menu_409:{icon:"profile",title:"屏幕信息",pageName:"BaseScreenIndex",params:{}},menu_411:{icon:"profile",title:"系统主题",pageName:"BaseThemeIndex",params:{}},menu_412:{icon:"profile",title:"自动更新",pageName:"BaseUpdaterIndex",params:{}},menu_500:{icon:"profile",title:"软件调用",pageName:"BaseSoftwareIndex",params:{}},menu_900:{icon:"profile",title:"测试",pageName:"BaseTestApiIndex",params:{}}},other:{menu_100:{icon:"profile",title:"测试",pageName:"OtherTestIndex",params:{}}}},x={props:{id:{type:String,default:""}},data:function(){return{menu:{},default_key:"menu_100",current:"",keys:[]}},watch:{id:function(){this.menuHandle()}},created:function(){},mounted:function(){this.menuHandle()},methods:{menuHandle:function(){switch(this.current=this.default_key,this.id){case"base":this.menu=v.base;break;case"other":this.menu=v.other;break}var e=this.menu[this.current];this.$router.push({name:e.pageName,params:e.params})},menuClick:function(e){this.current=e.key}}},w=x,_=(t("7bd2"),Object(i["a"])(w,g,y,!1,null,"4541d966",null)),B=_.exports,I=[{path:"/",component:k,children:[{path:"/base",name:"Base",component:B,props:{id:"base"},redirect:{name:"BaseFileIndex"},children:[{path:"/base/file/index",name:"BaseFileIndex",component:function(){return t.e("chunk-d1e1ec8c").then(t.bind(null,"c9d6"))}},{path:"/base/socket/ipc",name:"BaseSocketIpc",component:function(){return t.e("chunk-24bb6116").then(t.bind(null,"d44a"))}},{path:"/base/db/index",name:"BaseDBIndex",component:function(){return t.e("chunk-8583df3c").then(t.bind(null,"e091"))}},{path:"/base/sqlitedb/index",name:"BaseSqliteDBIndex",component:function(){return t.e("chunk-e319cd5c").then(t.bind(null,"022e"))}},{path:"/base/windowview/index",name:"BaseWindowViewIndex",component:function(){return t.e("chunk-4fd6d7f0").then(t.bind(null,"ae87"))}},{path:"/base/window/index",name:"BaseWindowIndex",component:function(){return t.e("chunk-3aa0a14c").then(t.bind(null,"889f"))}},{path:"/base/notification/index",name:"BaseNotificationIndex",component:function(){return t.e("chunk-50251666").then(t.bind(null,"03e3"))}},{path:"/base/powermonitor/index",name:"BasePowerMonitorIndex",component:function(){return t.e("chunk-842aee10").then(t.bind(null,"8a01"))}},{path:"/base/screen/index",name:"BaseScreenIndex",component:function(){return t.e("chunk-6cddf9c4").then(t.bind(null,"5bda"))}},{path:"/base/theme/index",name:"BaseThemeIndex",component:function(){return t.e("chunk-3264b806").then(t.bind(null,"db5a"))}},{path:"/base/software/index",name:"BaseSoftwareIndex",component:function(){return t.e("chunk-1af754fa").then(t.bind(null,"0570"))}},{path:"/base/socket/httpserver",name:"BaseSocketHttpServer",component:function(){return t.e("chunk-57324832").then(t.bind(null,"8f29"))}},{path:"/base/socket/socketserver",name:"BaseSocketSocketServer",component:function(){return t.e("chunk-e2c4ac18").then(t.bind(null,"2ec5"))}},{path:"/base/system/index",name:"BaseSystemIndex",component:function(){return t.e("chunk-b4234658").then(t.bind(null,"4a19"))}},{path:"/base/testapi/index",name:"BaseTestApiIndex",component:function(){return t.e("chunk-d7b56b58").then(t.bind(null,"acbf"))}},{path:"/base/updater/index",name:"BaseUpdaterIndex",component:function(){return t.e("chunk-7e1f652a").then(t.bind(null,"8f7f"))}}]},{path:"/other",name:"Other",component:B,props:{id:"other"},redirect:{name:"OtherTestIndex"},children:[{path:"/other/test/index",name:"OtherTestIndex",component:function(){return t.e("chunk-3ce23730").then(t.bind(null,"1768"))}}]}]}],S=l["a"].prototype.push;l["a"].prototype.push=function(e,n,t){return n||t?S.call(this,e,n,t):S.call(this,e).catch((function(e){return e}))},a["a"].use(l["a"]);var N=new l["a"]({mode:"history",routes:I}),z=t("b775"),O=window.require&&window.require("electron")||window.electron||{},T=O.ipcRenderer,C=function(e,n){var t=T.invoke(e,n);return t},E=function(e,n){var t=T.sendSync(e,n);return t},P={install:function(e){e.prototype.$ipc=T,e.prototype.$ipcInvoke=C,e.prototype.$ipcSendSync=E}};a["a"].use(c["a"]),a["a"].use(z["a"]),a["a"].use(P),a["a"].config.productionTip=!1,new a["a"]({router:N,render:function(e){return e(f)}}).$mount("#app")},"7bd2":function(e,n,t){"use strict";t("b6fd")},"85ec":function(e,n,t){},"88ee":function(e,n,t){"use strict";t("f2e1")},b6fd:function(e,n,t){},b775:function(e,n,t){"use strict";t.d(n,"a",(function(){return f}));t("d3b7");var a=t("bc3a"),c=t.n(a),s=t("cff8"),r=t.n(s),o=t("56cd"),u={vm:{},install:function(e,n){this.installed||(this.installed=!0,n?(e.axios=n,Object.defineProperties(e.prototype,{axios:{get:function(){return n}},$http:{get:function(){return n}}})):console.error("You have to install axios"))}},i=c.a.create({baseURL:"",timeout:6e4}),d=function(e){if(e.response){var n=e.response.data;403===e.response.status&&o["a"].error({message:"Forbidden",description:n.message}),401!==e.response.status||n.result&&n.result.isLogin||o["a"].error({message:"Unauthorized",description:"Authorization verification failed"})}return Promise.reject(e)};i.interceptors.request.use((function(e){var n=r.a.get("token");return n&&(e.headers["Access-Token"]=n),e}),d),i.interceptors.response.use((function(e){return e.data}),d);var f={vm:{},install:function(e){e.use(u,i)}};n["b"]=i},cf05:function(e,n,t){e.exports=t.p+"img/logo.18776b4e.png"},f2e1:function(e,n,t){}});
- //# sourceMappingURL=app.a21ad3eb.js.map
|