forked from MarSeventh/CloudFlare-ImgBed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
137.de1fbbde.js.map
1 lines (1 loc) · 9.08 KB
/
137.de1fbbde.js.map
1
{"version":3,"file":"js/137.de1fbbde.js","mappings":"4OACA,MAAMA,EAAa,CACjBC,MAAO,SAEHC,EAAa,CACjBD,MAAO,mBAEF,SAASE,EAAOC,EAAMC,EAAQC,EAAQC,EAAQC,EAAOC,GAC1D,MAAMC,EAAsB,KACtBC,EAAuB,KAC7B,OAAO,WAAc,QAAoB,MAAOX,EAAY,CAACK,EAAO,KAAOA,EAAO,IAAK,QAAoB,MAAO,CAChHO,GAAI,MACJX,MAAO,oBACPY,IAAK,oBACJ,MAAO,IAAKR,EAAO,KAAOA,EAAO,IAAK,QAAoB,MAAO,CAClEO,GAAI,MACJX,MAAO,oBACPY,IAAK,oBACJ,MAAO,KAAK,QAAoB,MAAOX,EAAY,CAACG,EAAO,KAAOA,EAAO,IAAK,QAAoB,KAAM,KAAM,SAAU,KAAK,QAAaK,EAAqB,CAChKT,MAAO,iBACPa,WAAYN,EAAMO,SAClB,sBAAuBV,EAAO,KAAOA,EAAO,GAAKW,GAAUR,EAAMO,SAAWC,GAC5EC,YAAa,kBACbC,KAAM,WACN,gBAAiB,GACjBC,SAAS,QAAUV,EAASW,MAAO,CAAC,QAAS,YAC5C,KAAM,EAAG,CAAC,aAAc,aAAa,QAAaT,EAAsB,CACzEV,MAAO,SACPiB,KAAM,UACNG,QAASZ,EAASW,OACjB,CACDE,SAAS,SAAS,IAAMjB,EAAO,KAAOA,EAAO,GAAK,EAAC,QAAiB,UACpEkB,EAAG,GACF,EAAG,CAAC,eACT,C,kDC9BA,GACE,IAAAC,GACE,MAAO,CACLT,SAAU,GACVU,YAAa,GACbC,mBAAoB,EACpBC,qBAAsB,EAE1B,EACAC,SAAU,KACL,QAAW,CAAC,aAAc,mBAC7B,UAAAC,GACE,OAAOC,KAAKC,YAAYF,YAAc,GACxC,EACA,SAAAG,GACE,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O,sBAAsBc,OAAgD,GAAvCtB,KAAKC,YAAYO,YAAYa,QAEtFjB,EAAIQ,IAAMZ,KAAKC,WAAWO,WAAW,GACrCJ,EAAIW,OAAS,KACXX,EAAIY,MAAMC,QAAUjB,KAAKE,SAAS,IAIpCE,EAAIQ,IAAM,4DACVR,EAAIW,OAAS,KACXX,EAAIY,MAAMC,QAAUjB,KAAKE,SAAS,EAGxC,EACAqB,QAAS,CACP,KAAAjC,GAEwB,KAAlBU,KAAKf,SACPe,KAAKL,YAAc,QAEnBK,KAAKL,YAAcK,KAAKf,SAE1BuC,EAAA,EAAMC,KAAK,SAAU,CACnBC,SAAU1B,KAAKf,WACd0B,MAAKgB,IACa,MAAfA,EAAIC,QAIR,QAAY,WAAY5B,KAAKL,YAAa,OAC1CK,KAAK6B,QAAQC,KAAK,KAClB9B,KAAK+B,SAASC,QAAQ,UALpBhC,KAAK+B,SAASE,MAAM,mBAKQ,IAC7BC,OAAMC,IACPnC,KAAK+B,SAASE,MAAM,mBAAmB,GAE3C,I,UCvFJ,MAAMG,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAAS/D,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://sanyue_imghub/./src/views/Login.vue?0131","webpack://sanyue_imghub/./src/views/Login.vue","webpack://sanyue_imghub/./src/views/Login.vue?2b97"],"sourcesContent":["import { createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, withKeys as _withKeys, createVNode as _createVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\";\nconst _hoisted_1 = {\n class: \"login\"\n};\nconst _hoisted_2 = {\n class: \"login-container\"\n};\nexport function render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_el_input = _resolveComponent(\"el-input\");\n const _component_el_button = _resolveComponent(\"el-button\");\n return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_cache[3] || (_cache[3] = _createElementVNode(\"img\", {\n id: \"bg1\",\n class: \"background-image1\",\n alt: \"Background Image\"\n }, null, -1)), _cache[4] || (_cache[4] = _createElementVNode(\"img\", {\n id: \"bg2\",\n class: \"background-image2\",\n alt: \"Background Image\"\n }, null, -1)), _createElementVNode(\"div\", _hoisted_2, [_cache[2] || (_cache[2] = _createElementVNode(\"h1\", null, \"Login\", -1)), _createVNode(_component_el_input, {\n class: \"password-input\",\n modelValue: $data.password,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => $data.password = $event),\n placeholder: \"输入认证码,若未设置留空即可~\",\n type: \"password\",\n \"show-password\": \"\",\n onKeyup: _withKeys($options.login, [\"enter\", \"native\"])\n }, null, 8, [\"modelValue\", \"onKeyup\"]), _createVNode(_component_el_button, {\n class: \"submit\",\n type: \"primary\",\n onClick: $options.login\n }, {\n default: _withCtx(() => _cache[1] || (_cache[1] = [_createTextVNode(\"登录\")])),\n _: 1\n }, 8, [\"onClick\"])])]);\n}","import \"core-js/modules/es.array.push.js\";\nimport cookies from 'vue-cookies';\nimport axios from 'axios';\nimport { mapGetters } from 'vuex';\nexport default {\n data() {\n return {\n password: '',\n writtenPass: '',\n bingWallPaperIndex: 0,\n customWallPaperIndex: 0\n };\n },\n computed: {\n ...mapGetters(['userConfig', 'bingWallPapers']),\n bkInterval() {\n return this.userConfig?.bkInterval || 3000;\n },\n bkOpacity() {\n return this.userConfig?.bkOpacity || 1;\n }\n },\n mounted() {\n const bg1 = document.getElementById('bg1');\n const bg2 = document.getElementById('bg2');\n if (this.userConfig?.loginBkImg === 'bing') {\n //bing壁纸轮播\n this.$store.dispatch('fetchBingWallPapers').then(() => {\n bg1.src = this.bingWallPapers[this.bingWallPaperIndex]?.url;\n bg1.onload = () => {\n bg1.style.opacity = this.bkOpacity;\n };\n setInterval(() => {\n let curBg = bg1.style.opacity != 0 ? bg1 : bg2;\n let nextBg = bg1.style.opacity != 0 ? bg2 : bg1;\n curBg.style.opacity = 0;\n this.bingWallPaperIndex = (this.bingWallPaperIndex + 1) % this.bingWallPapers.length;\n nextBg.src = this.bingWallPapers[this.bingWallPaperIndex]?.url;\n nextBg.onload = () => {\n nextBg.style.opacity = this.bkOpacity;\n };\n }, this.bkInterval);\n });\n } else if (this.userConfig?.loginBkImg instanceof Array && this.userConfig?.loginBkImg?.length > 1) {\n //自定义壁纸组轮播\n bg1.src = this.userConfig.loginBkImg[this.customWallPaperIndex];\n bg1.onload = () => {\n bg1.style.opacity = this.bkOpacity;\n };\n setInterval(() => {\n let curBg = bg1.style.opacity != 0 ? bg1 : bg2;\n let nextBg = bg1.style.opacity != 0 ? bg2 : bg1;\n curBg.style.opacity = 0;\n this.customWallPaperIndex = (this.customWallPaperIndex + 1) % this.userConfig.loginBkImg.length;\n nextBg.src = this.userConfig.loginBkImg[this.customWallPaperIndex];\n nextBg.onload = () => {\n nextBg.style.opacity = this.bkOpacity;\n };\n }, this.bkInterval);\n } else if (this.userConfig?.loginBkImg instanceof Array && this.userConfig?.loginBkImg?.length == 1) {\n //单张自定义壁纸\n bg1.src = this.userConfig.loginBkImg[0];\n bg1.onload = () => {\n bg1.style.opacity = this.bkOpacity;\n };\n } else {\n //默认壁纸\n bg1.src = 'https://imgbed.sanyue.site/file/0dbd5add3605a0b2e8994.jpg';\n bg1.onload = () => {\n bg1.style.opacity = this.bkOpacity;\n };\n }\n },\n methods: {\n login() {\n // set authCode to Cookie, expires in 2 weeks\n if (this.password === '') {\n this.writtenPass = 'unset';\n } else {\n this.writtenPass = this.password;\n }\n axios.post('/login', {\n authCode: this.password\n }).then(res => {\n if (res.status !== 200) {\n this.$message.error('登录失败,请检查认证码是否正确~');\n return;\n }\n cookies.set('authCode', this.writtenPass, '14d');\n this.$router.push('/');\n this.$message.success('登录成功~');\n }).catch(err => {\n this.$message.error('登录失败,请检查认证码是否正确~');\n });\n }\n }\n};","/* unplugin-vue-components disabled */import { render } from \"./Login.vue?vue&type=template&id=69a9957f&scoped=true\"\nimport script from \"./Login.vue?vue&type=script&lang=js\"\nexport * from \"./Login.vue?vue&type=script&lang=js\"\n\nimport \"./Login.vue?vue&type=style&index=0&id=69a9957f&scoped=true&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-69a9957f\"]])\n\nexport default __exports__"],"names":["_hoisted_1","class","_hoisted_2","render","_ctx","_cache","$props","$setup","$data","$options","_component_el_input","_component_el_button","id","alt","modelValue","password","$event","placeholder","type","onKeyup","login","onClick","default","_","data","writtenPass","bingWallPaperIndex","customWallPaperIndex","computed","bkInterval","this","userConfig","bkOpacity","mounted","bg1","document","getElementById","bg2","loginBkImg","$store","dispatch","then","src","bingWallPapers","url","onload","style","opacity","setInterval","curBg","nextBg","length","Array","methods","axios","post","authCode","res","status","$router","push","$message","success","error","catch","err","__exports__"],"sourceRoot":""}