canary_fe/dist/js/app.257ea0da.js
2021-03-06 23:26:36 +08:00

1 line
12 KiB
JavaScript

(function(e){function t(t){for(var o,a,l=t[0],d=t[1],i=t[2],s=0,u=[];s<l.length;s++)a=l[s],Object.prototype.hasOwnProperty.call(r,a)&&r[a]&&u.push(r[a][0]),r[a]=0;for(o in d)Object.prototype.hasOwnProperty.call(d,o)&&(e[o]=d[o]);g&&g(t);while(u.length)u.shift()();return c.push.apply(c,i||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],o=!0,a=1;a<n.length;a++){var l=n[a];0!==r[l]&&(o=!1)}o&&(c.splice(t--,1),e=d(d.s=n[0]))}return e}var o={},a={app:0},r={app:0},c=[];function l(e){return d.p+"js/"+({"account~add~detail~generator~home~settings~unlock~updatelog":"account~add~detail~generator~home~settings~unlock~updatelog","account~add~detail~home~settings~unlock":"account~add~detail~home~settings~unlock","account~settings":"account~settings",account:"account",settings:"settings",add:"add",detail:"detail",home:"home",unlock:"unlock",generator:"generator",updatelog:"updatelog"}[e]||e)+"."+{"account~add~detail~generator~home~settings~unlock~updatelog":"4ba40b53","account~add~detail~home~settings~unlock":"aaf0496a","account~settings":"4b80635a",account:"b00aa23b",settings:"5643923f",add:"97f8e124",detail:"a57f140f",home:"d3e0e73f",unlock:"515ea5a1",generator:"5053f9a4",updatelog:"fc998413"}[e]+".js"}function d(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,d),n.l=!0,n.exports}d.e=function(e){var t=[],n={account:1,settings:1,add:1,detail:1,home:1,unlock:1,generator:1,updatelog:1};a[e]?t.push(a[e]):0!==a[e]&&n[e]&&t.push(a[e]=new Promise((function(t,n){for(var o="css/"+({"account~add~detail~generator~home~settings~unlock~updatelog":"account~add~detail~generator~home~settings~unlock~updatelog","account~add~detail~home~settings~unlock":"account~add~detail~home~settings~unlock","account~settings":"account~settings",account:"account",settings:"settings",add:"add",detail:"detail",home:"home",unlock:"unlock",generator:"generator",updatelog:"updatelog"}[e]||e)+"."+{"account~add~detail~generator~home~settings~unlock~updatelog":"31d6cfe0","account~add~detail~home~settings~unlock":"31d6cfe0","account~settings":"31d6cfe0",account:"9f35b946",settings:"737c08f8",add:"caa4e153",detail:"77dce31c",home:"a8e69ca9",unlock:"bc688abc",generator:"51264771",updatelog:"78701de0"}[e]+".css",r=d.p+o,c=document.getElementsByTagName("link"),l=0;l<c.length;l++){var i=c[l],s=i.getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(s===o||s===r))return t()}var u=document.getElementsByTagName("style");for(l=0;l<u.length;l++){i=u[l],s=i.getAttribute("data-href");if(s===o||s===r)return t()}var g=document.createElement("link");g.rel="stylesheet",g.type="text/css",g.onload=t,g.onerror=function(t){var o=t&&t.target&&t.target.src||r,c=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=o,delete a[e],g.parentNode.removeChild(g),n(c)},g.href=r;var h=document.getElementsByTagName("head")[0];h.appendChild(g)})).then((function(){a[e]=0})));var o=r[e];if(0!==o)if(o)t.push(o[2]);else{var c=new Promise((function(t,n){o=r[e]=[t,n]}));t.push(o[2]=c);var i,s=document.createElement("script");s.charset="utf-8",s.timeout=120,d.nc&&s.setAttribute("nonce",d.nc),s.src=l(e);var u=new Error;i=function(t){s.onerror=s.onload=null,clearTimeout(g);var n=r[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+o+": "+a+")",u.name="ChunkLoadError",u.type=o,u.request=a,n[1](u)}r[e]=void 0}};var g=setTimeout((function(){i({type:"timeout",target:s})}),12e4);s.onerror=s.onload=i,document.head.appendChild(s)}return Promise.all(t)},d.m=e,d.c=o,d.d=function(e,t,n){d.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},d.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,t){if(1&t&&(e=d(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(d.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)d.d(n,o,function(t){return e[t]}.bind(null,o));return n},d.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return d.d(t,"a",t),t},d.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},d.p="/",d.oe=function(e){throw console.error(e),e};var i=window["webpackJsonp"]=window["webpackJsonp"]||[],s=i.push.bind(i);i.push=t,i=i.slice();for(var u=0;u<i.length;u++)t(i[u]);var g=s;c.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"56d7":function(e,t,n){"use strict";n.r(t);n("d6dc");var o=n("a593"),a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("icon",{staticClass:"bg",attrs:{name:"canary"}}),n("router-view")],1)},r=[],c=n("cf6b"),l={name:"App",mounted(){window.addEventListener("beforeunload",e=>this.beforeunloadHandler(e)),window.addEventListener("unload",e=>this.unloadHandler(e))},destroyed(){window.removeEventListener("beforeunload",e=>this.beforeunloadHandler(e)),window.removeEventListener("unload",e=>this.unloadHandler(e))},methods:{...Object(c["b"])(["setRowPwd"]),beforeunloadHandler(){this._beforeUnload_time=(new Date).getTime()},unloadHandler(e){this._gap_time=(new Date).getTime()-this._beforeUnload_time,this._gap_time<=5&&(console.log("退出程序清除主密码"),this.setRowPwd(["",this]))}}},d=l,i=(n("5c0b"),n("5d22")),s=Object(i["a"])(d,a,r,!1,null,null,null),u=s.exports,g=n("08e7");Object(g["a"])("/service-worker.js",{ready(){console.log("App is being served from cache by a service worker.\nFor more details, visit https://goo.gl/AFskqB")},registered(){console.log("Service worker has been registered.")},cached(){console.log("Content has been cached for offline use.")},updatefound(){console.log("New content is downloading.")},updated(){console.log("New content is available; please refresh."),window.location.reload(!0)},offline(){console.log("No internet connection found. App is running in offline mode.")},error(e){console.error("Error during service worker registration:",e)}});var h=n("a81e");o["default"].use(h["a"]);const m=[{path:"/",name:"Home",component:()=>Promise.all([n.e("account~add~detail~generator~home~settings~unlock~updatelog"),n.e("account~add~detail~home~settings~unlock"),n.e("home")]).then(n.bind(null,"1c62"))},{path:"/add",name:"Add",component:()=>Promise.all([n.e("account~add~detail~generator~home~settings~unlock~updatelog"),n.e("account~add~detail~home~settings~unlock"),n.e("add")]).then(n.bind(null,"df8f"))},{path:"/account",name:"Account",component:()=>Promise.all([n.e("account~add~detail~generator~home~settings~unlock~updatelog"),n.e("account~add~detail~home~settings~unlock"),n.e("account~settings"),n.e("account")]).then(n.bind(null,"a3f2"))},{path:"/updatelog",name:"UpdateLog",component:()=>Promise.all([n.e("account~add~detail~generator~home~settings~unlock~updatelog"),n.e("updatelog")]).then(n.bind(null,"8263"))},{path:"/settings",name:"Settings",component:()=>Promise.all([n.e("account~add~detail~generator~home~settings~unlock~updatelog"),n.e("account~add~detail~home~settings~unlock"),n.e("account~settings"),n.e("settings")]).then(n.bind(null,"3f42"))},{path:"/unlock",name:"Unlock",component:()=>Promise.all([n.e("account~add~detail~generator~home~settings~unlock~updatelog"),n.e("account~add~detail~home~settings~unlock"),n.e("unlock")]).then(n.bind(null,"ca94"))},{path:"/detail",name:"Detail",component:()=>Promise.all([n.e("account~add~detail~generator~home~settings~unlock~updatelog"),n.e("account~add~detail~home~settings~unlock"),n.e("detail")]).then(n.bind(null,"f574"))},{path:"/generator",name:"Generator",component:()=>Promise.all([n.e("account~add~detail~generator~home~settings~unlock~updatelog"),n.e("generator")]).then(n.bind(null,"5eac"))},{path:"*",redirect:"/",name:"notFound",hidden:!0}],f=new h["a"]({mode:"history",base:"/",routes:m});var p=f;n("6ab7");o["default"].use(c["a"]);var v=new c["a"].Store({state:{user_infos:"",row_data:"",row_pwd:"",settings:"",home_state:""},mutations:{SET_USERINFO(e,t){e.user_infos=t},SET_ROWDATA(e,t){e.row_data=t},SET_ROWPWD(e,t){e.row_pwd=t},SET_SETTINGS(e,t){e.settings=t},SET_HOMESTATE(e,t){e.home_state=t}},actions:{setUserInfo({commit:e},t){e("SET_USERINFO",t[0]),w.call(t[1])},setRowData({commit:e},t){e("SET_ROWDATA",t[0]),w.call(t[1])},setRowPwd({commit:e},t){e("SET_ROWPWD",t[0]),w.call(t[1])},setSettings({commit:e},t){e("SET_SETTINGS",t[0]),w.call(t[1])},setHomeState({commit:e},t){e("SET_HOMESTATE",t[0]),w.call(t[1])}},modules:{}});function w(){let e=this.$store.state;for(let t of Object.keys(e))localStorage.setItem("canary_"+t,JSON.stringify(e[t]))}var b=n("e6a3"),k=n("61e4"),y=n("25e5"),_=n.n(y),E=(n("cd3b"),n("cfe9"),n("cb3b"),n("9306")),S=n.n(E),T=n("aac1"),O=n.n(T);o["default"].component("icon",k["a"]),o["default"].use(_.a),Object(b["a"])(),o["default"].use(S.a);var x=n("65d8");o["default"].use(x,{name:"v-touch"}),new O.a,o["default"].config.productionTip=!1,new o["default"]({router:p,store:v,render:e=>e(u)}).$mount("#app")},"5c0b":function(e,t,n){"use strict";n("ac27")},7126:function(e,t,n){var o={"./canary-white.svg":"8579","./canary.svg":"c251","./file_copy.svg":"d6a5"};function a(e){var t=r(e);return n(t)}function r(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}a.keys=function(){return Object.keys(o)},a.resolve=r,e.exports=a,a.id="7126"},8579:function(e,t){e.exports={svg:{$:{class:"icon",width:"200px",height:"200.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},path:[{$:{fill:"#ffffff",d:"M921.6 716.75904L415.46752 210.66752a136.25344 136.25344 0 0 0-96.54272-39.99744c-70.93248 0-128.53248 54.272-135.19872 123.43296L102.4 375.43936h86.12864C210.59584 506.39872 294.57408 616.09984 409.6 673.49504v179.84512h68.27008V700.34432a405.18656 405.18656 0 0 0 68.25984 13.70112v139.30496H614.4V716.75904h307.2zM448.93184 340.6336L620.2368 511.95904h-39.95648c-75.27424 0-136.54016-61.22496-136.54016-136.52992-0.01024-12.12416 2.12992-23.63392 5.19168-34.79552z m-198.26688-33.46432a68.32128 68.32128 0 0 1 68.25984-68.22912c18.19648 0 35.36896 7.09632 48.27136 19.99872l28.4672 28.4672a202.37312 202.37312 0 0 0-20.20352 88.03328c0 112.92672 91.86304 204.8 204.8 204.8h108.22656l68.27008 68.25984H592.00512c-188.20096 0-341.34016-153.1392-341.34016-341.32992z"}}]}}},ac27:function(e,t,n){},c251:function(e,t){e.exports={svg:{$:{t:"1582191167349",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3270","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"},defs:[{style:[{$:{type:"text/css"}}]}],path:[{$:{d:"M921.6 716.75904L415.46752 210.66752a136.25344 136.25344 0 0 0-96.54272-39.99744c-70.93248 0-128.53248 54.272-135.19872 123.43296L102.4 375.43936h86.12864C210.59584 506.39872 294.57408 616.09984 409.6 673.49504v179.84512h68.27008V700.34432a405.18656 405.18656 0 0 0 68.25984 13.70112v139.30496H614.4V716.75904h307.2zM448.93184 340.6336L620.2368 511.95904h-39.95648c-75.27424 0-136.54016-61.22496-136.54016-136.52992-0.01024-12.12416 2.12992-23.63392 5.19168-34.79552z m-198.26688-33.46432a68.32128 68.32128 0 0 1 68.25984-68.22912c18.19648 0 35.36896 7.09632 48.27136 19.99872l28.4672 28.4672a202.37312 202.37312 0 0 0-20.20352 88.03328c0 112.92672 91.86304 204.8 204.8 204.8h108.22656l68.27008 68.25984H592.00512c-188.20096 0-341.34016-153.1392-341.34016-341.32992z","p-id":"3271",fill:"#bbdefb"}}]}}},d6a5:function(e,t){e.exports={svg:{$:{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24"},path:[{$:{d:"M0 0h24v24H0z",fill:"none"}},{$:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4l6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}}]}}},e6a3:function(e,t,n){"use strict";function o(){const e=document.documentElement.clientWidth||document.body.clientWidth,t=document.getElementsByTagName("html")[0];t.style.fontSize=e>=500?"50px":e/10+"px"}n.d(t,"a",(function(){return o}))}});