autoUpdataFile

dev_local_v9_brain_cloud
eduauto 2 years ago
parent e07dddc91e
commit a1fe58f6df

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -27,7 +27,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.abae920b.js"></script>
<script src="/react/build/umi.aee60904.js"></script>
<script src="/react/build/js/public.js"></script>
</body>
</html>

@ -1,4 +1,3 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[41717],{
/***/ 88289:
@ -7,6 +6,7 @@
\*******************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -52,6 +52,7 @@ if (false) {}
\********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
@ -350,6 +351,11 @@ var LoginPopComponents = function LoginPopComponents(_ref) {
;// CONCATENATED MODULE: ./src/components/User/PopLoginRegister/components/LoginPanel/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var LoginPanelmodules = ({"login-panel-wrapper2":"login-panel-wrapper2___HuMNJ","ant-form-item-explain":"ant-form-item-explain___c1FeE","ant-form-item":"ant-form-item___qb60e","ant-form-item-with-help":"ant-form-item-with-help___NeAwJ","login-panel-right-wrp":"login-panel-right-wrp___vWD_i","res-error-values":"res-error-values___hV1lz","tabs":"tabs___EwOAX"});
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(87799);
// EXTERNAL MODULE: ./node_modules/_crypto-js@4.1.1@crypto-js/index.js
var _crypto_js_4_1_1_crypto_js = __webpack_require__(28209);
var _crypto_js_4_1_1_crypto_js_default = /*#__PURE__*/__webpack_require__.n(_crypto_js_4_1_1_crypto_js);
;// CONCATENATED MODULE: ./src/components/User/PopLoginRegister/components/LoginPanel/LoginForm.tsx
@ -365,6 +371,8 @@ var LoginPopComponents = function LoginPopComponents(_ref) {
var LoginForm_inputStyle = {
height: 48,
borderRadius: 4
@ -398,9 +406,16 @@ var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
openUnlockLogin = _useState8[0],
setOpenUnlockLogin = _useState8[1];
var password = /^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/;
var _useState9 = (0,_react_17_0_2_react.useState)(0),
_useState10 = slicedToArray_default()(_useState9, 2),
changeImgNum = _useState10[0],
setChangeImgNum = _useState10[1];
var imgSrc = (0,_react_17_0_2_react.useMemo)(function () {
return '/rucaptcha?t=' + new Date().getTime();
}, [changeImgNum]);
var onFinish = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(values) {
var res, from;
var newValues, iv, ciphertext, res, from;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
@ -410,17 +425,24 @@ var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
setErrorValue('系统检测您的密码强度过低,请及时修改');
// return
}
newValues = objectSpread2_default()({}, values);
iv = _crypto_js_4_1_1_crypto_js_default().enc.Utf8.parse("5183666c72eec9e4");
ciphertext = _crypto_js_4_1_1_crypto_js_default().AES.encrypt(values.password || "", iv, {
iv: iv,
mode: (_crypto_js_4_1_1_crypto_js_default()).mode.CBC
});
newValues.password = ciphertext.toString();
setFormValue(objectSpread2_default()({}, values));
_context.next = 5;
return (0,service_user/* LoginIn */.Es)(values);
case 5:
_context.next = 9;
return (0,service_user/* LoginIn */.Es)(newValues);
case 9:
res = _context.sent;
if (!res.status) {
_context.next = 19;
_context.next = 23;
break;
}
if (!(res.status === -4)) {
_context.next = 13;
_context.next = 17;
break;
}
dispatch({
@ -438,18 +460,18 @@ var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
}
});
return _context.abrupt("return");
case 13:
case 17:
if (!(res.status === -5)) {
_context.next = 17;
_context.next = 21;
break;
}
setErrorData([res === null || res === void 0 ? void 0 : res.message]);
setOpenUnlockLogin(true);
return _context.abrupt("return");
case 17:
case 21:
setErrorValue(res === null || res === void 0 ? void 0 : res.message);
return _context.abrupt("return");
case 19:
case 23:
if (res !== null && res !== void 0 && res.show) {
localStorage.setItem('extension-modal', 'exist');
localStorage.setItem('extension-date', res === null || res === void 0 ? void 0 : res.start_date);
@ -457,35 +479,35 @@ var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
localStorage.removeItem('extension-modal');
}
if (!(location.pathname === '/user/login' || location.pathname === '/login')) {
_context.next = 35;
_context.next = 39;
break;
}
from = searchParams.get("form") || searchParams.get("back_url");
if (!from) {
_context.next = 26;
_context.next = 30;
break;
}
window.location.href = decodeURIComponent(from);
_context.next = 33;
_context.next = 37;
break;
case 26:
case 30:
if (password.test(values.password)) {
_context.next = 31;
_context.next = 35;
break;
}
message/* default */.ZP.info('系统检测您的密码强度过低,请及时修改');
window.location.href = '/account/secure';
_context.next = 33;
_context.next = 37;
break;
case 31:
case 35:
window.location.reload();
return _context.abrupt("return");
case 33:
_context.next = 43;
case 37:
_context.next = 47;
break;
case 35:
case 39:
if (password.test(values.password)) {
_context.next = 41;
_context.next = 45;
break;
}
message/* default */.ZP.info('系统检测您的密码强度过低,请及时修改');
@ -496,14 +518,14 @@ var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
showPopLogin: false
}
});
_context.next = 43;
_context.next = 47;
break;
case 41:
case 45:
window.location.reload();
return _context.abrupt("return");
case 43:
case 47:
form.resetFields();
case 44:
case 48:
case "end":
return _context.stop();
}
@ -581,6 +603,35 @@ var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
size: 'middle',
placeholder: "\u5BC6\u7801"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "code",
rules: [{
required: true,
message: '请输入验证码'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: 'flex'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
style: LoginForm_inputStyle
// visibilityToggle={false}
,
size: "large",
placeholder: "\u9A8C\u8BC1\u7801"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: (env/* default */.Z === null || env/* default */.Z === void 0 ? void 0 : env/* default */.Z.API_SERVER) + imgSrc,
style: {
height: '32px',
marginLeft: '10px'
},
onClick: function onClick() {
// setImgsrc(ImgSrc + '/?t=' + Date.now())
setChangeImgNum(changeImgNum + 1);
// "this.src = '/rucaptcha/?t=' + Date.now();"
}
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "flex-container",
@ -1523,8 +1574,6 @@ var SvgQq = function SvgQq(props) {
;// CONCATENATED MODULE: ./src/components/User/PopLoginRegister/components/OauthPanel/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var OauthPanelmodules = ({"other-login":"other-login___Jd48Z","btn-link":"btn-link___MhTA6","wechat-qrcode":"wechat-qrcode___bLWkh","driver":"driver___IuicK"});
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(87799);
;// CONCATENATED MODULE: ./src/components/User/PopLoginRegister/components/OauthPanel/index.tsx
@ -3180,6 +3229,7 @@ var SimpleLayouts = function SimpleLayouts(_ref) {
\*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -3657,6 +3707,7 @@ es_alert_Alert.ErrorBoundary = alert_ErrorBoundary;
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layout */ 84966);
/* harmony import */ var _Sider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Sider */ 10711);
"use client";
@ -3670,6 +3721,16 @@ Layout.Content = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Content */ .VY;
Layout.Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z;
/* harmony default export */ __webpack_exports__.Z = (Layout);
/***/ }),
/***/ 3828:
/*!************************!*\
!*** crypto (ignored) ***!
\************************/
/***/ (function() {
/* (ignored) */
/***/ })
}]);

@ -730,6 +730,8 @@ function head_user(_ref) {
var spin = __webpack_require__(71418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/menu/index.js + 11 modules
var menu = __webpack_require__(20834);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(28118);
;// CONCATENATED MODULE: ./src/pages/Forums/User/Menu/index.less
// extracted by mini-css-extract-plugin
@ -740,6 +742,7 @@ var menu = __webpack_require__(20834);
function user_menu(_ref) {
var is_current_user = _ref.is_current_user,
login = _ref.login,
@ -750,10 +753,10 @@ function user_menu(_ref) {
setDefaultMenu = _useState2[1];
var handleClick = function handleClick(e) {
setDefaultMenu(e.key);
props.history.push("/forums/accounts/".concat(login, "/").concat(e.key));
_umi_production_exports.history.push("/forums/accounts/".concat(login, "/").concat(e.key));
};
(0,_react_17_0_2_react.useEffect)(function () {
var location_path = props.location.pathname.split("/");
var location_path = window.location.pathname.split("/");
var current_path = location_path[location_path.length - 1];
if (location_path.length > 3 && current_path) {
setDefaultMenu(current_path);
@ -788,8 +791,6 @@ function user_menu(_ref) {
;// CONCATENATED MODULE: ./src/pages/Forums/User/Account/index.less
// extracted by mini-css-extract-plugin
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(28118);
;// CONCATENATED MODULE: ./src/pages/Forums/User/Account/index.tsx
@ -1248,7 +1249,7 @@ function memos(props) {
common_select = _useState16[0],
setCommonSelect = _useState16[1];
(0,_react_17_0_2_react.useEffect)(function () {
var memos_type = props.location.pathname.split("/");
var memos_type = window.location.pathname.split("/");
setMemoType(memos_type.pop());
}, [props.location]);
(0,_react_17_0_2_react.useEffect)(function () {
@ -1451,7 +1452,7 @@ function section_item(_ref) {
function sections(props) {
var param = (0,_umi_production_exports.useParams)();
var user_login = props.match.params.login;
var user_login = param.login;
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
isSpin = _useState2[0],
@ -1576,14 +1577,20 @@ function sections(props) {
function Index(props) {
var history = props.history;
// const history = props.history;
// useEffect(() => {
// history.listen(() => {
// if (document.body.scrollTop || document.documentElement.scrollTop > 0) {
// window.scrollTo(0, 0)
// }
// })
// }, [history])
(0,_react_17_0_2_react.useEffect)(function () {
history.listen(function () {
if (document.body.scrollTop || document.documentElement.scrollTop > 0) {
window.scrollTo(0, 0);
}
});
}, [history]);
if (document.body.scrollTop || document.documentElement.scrollTop > 0) {
window.scrollTo(0, 0);
}
}, []);
var param = (0,_umi_production_exports.useParams)();
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "newMain",

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save