1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
(function(e){function t(t){for(var o,a,d=t[0],i=t[1],l=t[2],s=0,u=[];s<d.length;s++)a=d[s],Object.prototype.hasOwnProperty.call(r,a)&&r[a]&&u.push(r[a][0]),r[a]=0;for(o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o]);g&&g(t);while(u.length)u.shift()();return c.push.apply(c,l||[]),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 d=n[a];0!==r[d]&&(o=!1)}o&&(c.splice(t--,1),e=i(i.s=n[0]))}return e}var o={},a={app:0},r={app:0},c=[];function d(e){return i.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":"5ed341da","account~add~detail~home~settings~unlock":"2f34f855","account~settings":"671eadce",account:"f71de3ea",settings:"b2147276",add:"345ecf51",detail:"b58ab248",home:"455b2954",unlock:"54a80ee5",generator:"3cc01998",updatelog:"638cfd9c"}[e]+".js"}function i(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,i),n.l=!0,n.exports}i.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:"620120fc",settings:"856b2252",add:"022dbbd5",detail:"183669d7",home:"65d8b0fc",unlock:"8bc4485c",generator:"2d058749",updatelog:"7b97d8d1"}[e]+".css",r=i.p+o,c=document.getElementsByTagName("link"),d=0;d<c.length;d++){var l=c[d],s=l.getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(s===o||s===r))return t()}var u=document.getElementsByTagName("style");for(d=0;d<u.length;d++){l=u[d],s=l.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 l,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=d(e);var u=new Error;l=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(){l({type:"timeout",target:s})}),12e4);s.onerror=s.onload=l,document.head.appendChild(s)}return Promise.all(t)},i.m=e,i.c=o,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var l=window["webpackJsonp"]=window["webpackJsonp"]||[],s=l.push.bind(l);l.push=t,l=l.slice();for(var u=0;u<l.length;u++)t(l[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);var o=n("0261"),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("b54b"),d=n("08c1"),i={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["a"])({},Object(d["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]))}})},l=i,s=(n("5c0b"),n("623f")),u=Object(s["a"])(l,a,r,!1,null,null,null),g=u.exports,h=n("e1bc");Object(h["a"])("".concat("/","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)}});n("c9db");var m=n("9bfb");o["default"].use(m["a"]);var f=[{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}],p=new m["a"]({mode:"history",base:"/",routes:f}),v=p;n("d9a3"),n("252a");o["default"].use(d["a"]);var b=new d["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(e,t){var{commit:n}=e;n("SET_USERINFO",t[0]),w.call(t[1])},setRowData(e,t){var{commit:n}=e;n("SET_ROWDATA",t[0]),w.call(t[1])},setRowPwd(e,t){var{commit:n}=e;n("SET_ROWPWD",t[0]),w.call(t[1])},setSettings(e,t){var{commit:n}=e;n("SET_SETTINGS",t[0]),w.call(t[1])},setHomeState(e,t){var{commit:n}=e;n("SET_HOMESTATE",t[0]),w.call(t[1])}},modules:{}});function w(){var e=this.$store.state;for(var t of Object.keys(e))localStorage.setItem("canary_"+t,JSON.stringify(e[t]))}var k=n("e6a3"),y=n("61e4"),_=n("e57d"),E=n.n(_),S=(n("4ca8"),n("d8c7"),n("cb3b"),n("9306")),T=n.n(S),O=n("aac1"),x=n.n(O);o["default"].component("icon",y["a"]),o["default"].use(E.a),Object(k["a"])(),o["default"].use(T.a);var P=n("65d8");o["default"].use(P,{name:"v-touch"}),new x.a,o["default"].config.productionTip=!1,new o["default"]({router:v,store:b,render:e=>e(g)}).$mount("#app")},"5c0b":function(e,t,n){"use strict";var o=n("b673"),a=n.n(o);a.a},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"}}]}}},b673: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(){var 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}))}}); |