构建最新的 admin-ui,准备 v1.6.1 版本的发布

This commit is contained in:
YunaiV
2022-03-21 00:24:14 +08:00
parent f8fffcea1b
commit 3526353cdf
28 changed files with 1266 additions and 1014 deletions

View File

@@ -4,11 +4,11 @@
/*!***************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/socialLogin.vue?vue&type=script&lang=js& ***!
\***************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _login = __webpack_require__(/*! @/api/login */ \"./src/api/login.js\");\n\nvar _jsCookie = _interopRequireDefault(__webpack_require__(/*! js-cookie */ \"./node_modules/js-cookie/dist/js.cookie.js\"));\n\nvar _jsencrypt = __webpack_require__(/*! @/utils/jsencrypt */ \"./src/utils/jsencrypt.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n name: \"ThirdLogin\",\n data: function data() {\n return {\n loginForm: {\n username: \"admin\",\n password: \"admin123\",\n rememberMe: false // TODO 芋艿:后面看情况,去掉这块\n\n },\n loginRules: {\n username: [{\n required: true,\n trigger: \"blur\",\n message: \"用户名不能为空\"\n }],\n password: [{\n required: true,\n trigger: \"blur\",\n message: \"密码不能为空\"\n }]\n },\n loading: false,\n redirect: undefined,\n // 社交登录相关\n type: undefined,\n code: undefined,\n state: undefined\n };\n },\n // watch: {\n // $route: {\n // handler: function(route) {\n // this.redirect = route.query && route.query.redirect;\n // },\n // immediate: true\n // }\n // },\n created: function created() {\n var _this = this;\n\n this.getCookie(); // 重定向地址\n\n this.redirect = this.$route.query.redirect; // 社交登录相关\n\n this.type = this.$route.query.type;\n this.code = this.$route.query.code;\n this.state = this.$route.query.state;\n this.$store.dispatch(\"SocialLogin\", {\n code: this.code,\n state: this.state,\n type: this.type\n }).then(function () {\n _this.$router.push({\n path: _this.redirect || \"/\"\n }).catch(function () {});\n }).catch(function () {\n _this.loading = false;\n });\n },\n methods: {\n getCookie: function getCookie() {\n var username = _jsCookie.default.get(\"username\");\n\n var password = _jsCookie.default.get(\"password\");\n\n var rememberMe = _jsCookie.default.get('rememberMe');\n\n this.loginForm = {\n username: username === undefined ? this.loginForm.username : username,\n password: password === undefined ? this.loginForm.password : (0, _jsencrypt.decrypt)(password),\n rememberMe: rememberMe === undefined ? false : Boolean(rememberMe)\n };\n },\n handleLogin: function handleLogin() {\n var _this2 = this;\n\n this.$refs.loginForm.validate(function (valid) {\n if (valid) {\n _this2.loading = true;\n\n if (_this2.loginForm.rememberMe) {\n _jsCookie.default.set(\"username\", _this2.loginForm.username, {\n expires: 30\n });\n\n _jsCookie.default.set(\"password\", (0, _jsencrypt.encrypt)(_this2.loginForm.password), {\n expires: 30\n });\n } else {\n _jsCookie.default.remove(\"username\");\n\n _jsCookie.default.remove(\"password\");\n }\n\n _this2.$store.dispatch(\"SocialLogin2\", {\n code: _this2.code,\n state: _this2.state,\n type: _this2.type,\n username: _this2.loginForm.username,\n password: _this2.loginForm.password\n }).then(function () {\n _this2.$router.push({\n path: _this2.redirect || \"/\"\n }).catch(function () {});\n }).catch(function () {\n _this2.loading = false;\n });\n }\n });\n }\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/socialLogin.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var js_cookie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! js-cookie */ \"./node_modules/js-cookie/dist/js.cookie.js\");\n/* harmony import */ var js_cookie__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(js_cookie__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _utils_jsencrypt__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/utils/jsencrypt */ \"./src/utils/jsencrypt.js\");\n/* harmony import */ var _utils_jsencrypt__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_utils_jsencrypt__WEBPACK_IMPORTED_MODULE_1__);\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"ThirdLogin\",\n data: function data() {\n return {\n loginForm: {\n username: \"admin\",\n password: \"admin123\",\n rememberMe: false // TODO 芋艿:后面看情况,去掉这块\n\n },\n loginRules: {\n username: [{\n required: true,\n trigger: \"blur\",\n message: \"用户名不能为空\"\n }],\n password: [{\n required: true,\n trigger: \"blur\",\n message: \"密码不能为空\"\n }]\n },\n loading: false,\n redirect: undefined,\n // 社交登录相关\n type: undefined,\n code: undefined,\n state: undefined\n };\n },\n // watch: {\n // $route: {\n // handler: function(route) {\n // this.redirect = route.query && route.query.redirect;\n // },\n // immediate: true\n // }\n // },\n created: function created() {\n var _this = this;\n\n this.getCookie(); // 重定向地址\n\n this.redirect = this.$route.query.redirect; // 社交登录相关\n\n this.type = this.$route.query.type;\n this.code = this.$route.query.code;\n this.state = this.$route.query.state;\n this.$store.dispatch(\"SocialLogin\", {\n code: this.code,\n state: this.state,\n type: this.type\n }).then(function () {\n _this.$router.push({\n path: _this.redirect || \"/\"\n }).catch(function () {});\n }).catch(function () {\n _this.loading = false;\n });\n },\n methods: {\n getCookie: function getCookie() {\n var username = js_cookie__WEBPACK_IMPORTED_MODULE_0___default.a.get(\"username\");\n var password = js_cookie__WEBPACK_IMPORTED_MODULE_0___default.a.get(\"password\");\n var rememberMe = js_cookie__WEBPACK_IMPORTED_MODULE_0___default.a.get('rememberMe');\n this.loginForm = {\n username: username === undefined ? this.loginForm.username : username,\n password: password === undefined ? this.loginForm.password : Object(_utils_jsencrypt__WEBPACK_IMPORTED_MODULE_1__[\"decrypt\"])(password),\n rememberMe: rememberMe === undefined ? false : Boolean(rememberMe)\n };\n },\n handleLogin: function handleLogin() {\n var _this2 = this;\n\n this.$refs.loginForm.validate(function (valid) {\n if (valid) {\n _this2.loading = true;\n\n if (_this2.loginForm.rememberMe) {\n js_cookie__WEBPACK_IMPORTED_MODULE_0___default.a.set(\"username\", _this2.loginForm.username, {\n expires: 30\n });\n js_cookie__WEBPACK_IMPORTED_MODULE_0___default.a.set(\"password\", Object(_utils_jsencrypt__WEBPACK_IMPORTED_MODULE_1__[\"encrypt\"])(_this2.loginForm.password), {\n expires: 30\n });\n } else {\n js_cookie__WEBPACK_IMPORTED_MODULE_0___default.a.remove(\"username\");\n js_cookie__WEBPACK_IMPORTED_MODULE_0___default.a.remove(\"password\");\n }\n\n _this2.$store.dispatch(\"SocialLogin2\", {\n code: _this2.code,\n state: _this2.state,\n type: _this2.type,\n username: _this2.loginForm.username,\n password: _this2.loginForm.password\n }).then(function () {\n _this2.$router.push({\n path: _this2.redirect || \"/\"\n }).catch(function () {});\n }).catch(function () {\n _this2.loading = false;\n });\n }\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/views/socialLogin.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");
/***/ }),
@@ -50,11 +50,11 @@ eval("// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// lo
/*!***********************************!*\
!*** ./src/views/socialLogin.vue ***!
\***********************************/
/*! no static exports found */
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _socialLogin_vue_vue_type_template_id_f3fef45c___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./socialLogin.vue?vue&type=template&id=f3fef45c& */ \"./src/views/socialLogin.vue?vue&type=template&id=f3fef45c&\");\n/* harmony import */ var _socialLogin_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./socialLogin.vue?vue&type=script&lang=js& */ \"./src/views/socialLogin.vue?vue&type=script&lang=js&\");\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _socialLogin_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if([\"default\"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _socialLogin_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));\n/* harmony import */ var _socialLogin_vue_vue_type_style_index_0_rel_stylesheet_2Fscss_lang_scss___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./socialLogin.vue?vue&type=style&index=0&rel=stylesheet%2Fscss&lang=scss& */ \"./src/views/socialLogin.vue?vue&type=style&index=0&rel=stylesheet%2Fscss&lang=scss&\");\n/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(\n _socialLogin_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _socialLogin_vue_vue_type_template_id_f3fef45c___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _socialLogin_vue_vue_type_template_id_f3fef45c___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"src/views/socialLogin.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack:///./src/views/socialLogin.vue?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _socialLogin_vue_vue_type_template_id_f3fef45c___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./socialLogin.vue?vue&type=template&id=f3fef45c& */ \"./src/views/socialLogin.vue?vue&type=template&id=f3fef45c&\");\n/* harmony import */ var _socialLogin_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./socialLogin.vue?vue&type=script&lang=js& */ \"./src/views/socialLogin.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _socialLogin_vue_vue_type_style_index_0_rel_stylesheet_2Fscss_lang_scss___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./socialLogin.vue?vue&type=style&index=0&rel=stylesheet%2Fscss&lang=scss& */ \"./src/views/socialLogin.vue?vue&type=style&index=0&rel=stylesheet%2Fscss&lang=scss&\");\n/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(\n _socialLogin_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _socialLogin_vue_vue_type_template_id_f3fef45c___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _socialLogin_vue_vue_type_template_id_f3fef45c___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"src/views/socialLogin.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack:///./src/views/socialLogin.vue?");
/***/ }),
@@ -62,11 +62,11 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _soc
/*!************************************************************!*\
!*** ./src/views/socialLogin.vue?vue&type=script&lang=js& ***!
\************************************************************/
/*! no static exports found */
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_ref_12_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_socialLogin_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/babel-loader/lib!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib??vue-loader-options!./socialLogin.vue?vue&type=script&lang=js& */ \"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/socialLogin.vue?vue&type=script&lang=js&\");\n/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_ref_12_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_socialLogin_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_cache_loader_dist_cjs_js_ref_12_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_socialLogin_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_cache_loader_dist_cjs_js_ref_12_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_socialLogin_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if([\"default\"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_cache_loader_dist_cjs_js_ref_12_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_socialLogin_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));\n /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_cache_loader_dist_cjs_js_ref_12_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_socialLogin_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); \n\n//# sourceURL=webpack:///./src/views/socialLogin.vue?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_ref_12_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_socialLogin_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/babel-loader/lib!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib??vue-loader-options!./socialLogin.vue?vue&type=script&lang=js& */ \"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/socialLogin.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_cache_loader_dist_cjs_js_ref_12_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_socialLogin_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[\"default\"]); \n\n//# sourceURL=webpack:///./src/views/socialLogin.vue?");
/***/ }),