parent
a27594943a
commit
d72fa52156
@ -1,752 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[37577],{
|
||||
|
||||
/***/ 37577:
|
||||
/*!***************************************************!*\
|
||||
!*** ./src/components/User/UnlockLogin/index.tsx ***!
|
||||
\***************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js */ 17061);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectSpread2.js */ 42122);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/asyncToGenerator.js */ 17156);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/slicedToArray.js */ 27424);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 67294);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! antd */ 25159);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd */ 2453);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! antd */ 72423);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! antd */ 63889);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! antd */ 38925);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd */ 79531);
|
||||
/* harmony import */ var _service_user__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/service/user */ 58839);
|
||||
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! umi */ 89214);
|
||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var inputStyle = {
|
||||
height: 48,
|
||||
borderRadius: 4
|
||||
};
|
||||
var LoginPopComponents = function LoginPopComponents(_ref) {
|
||||
var dispatch = _ref.dispatch,
|
||||
setType = _ref.setType,
|
||||
data = _ref.data,
|
||||
accountInfo = _ref.accountInfo,
|
||||
open = _ref.open;
|
||||
var _Form$useForm = antd__WEBPACK_IMPORTED_MODULE_8__/* ["default"].useForm */ .Z.useForm(),
|
||||
_Form$useForm2 = _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_Form$useForm, 1),
|
||||
form = _Form$useForm2[0];
|
||||
var _useSearchParams = (0,umi__WEBPACK_IMPORTED_MODULE_6__.useSearchParams)(),
|
||||
_useSearchParams2 = _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useSearchParams, 1),
|
||||
searchParams = _useSearchParams2[0];
|
||||
var location = (0,umi__WEBPACK_IMPORTED_MODULE_6__.useLocation)();
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(false),
|
||||
_useState2 = _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState, 2),
|
||||
openModal = _useState2[0],
|
||||
setOpenModal = _useState2[1];
|
||||
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(''),
|
||||
_useState4 = _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState3, 2),
|
||||
errorValue = _useState4[0],
|
||||
setErrorValue = _useState4[1];
|
||||
var password = /^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/;
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () {
|
||||
setOpenModal(open);
|
||||
}, [open]);
|
||||
var columns = [{
|
||||
title: 'IP地址',
|
||||
dataIndex: 'ip',
|
||||
key: 'ip',
|
||||
render: function render(text) {
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("span", {
|
||||
className: text.indexOf("异常") > -1 || text.indexOf("登录") > -1 ? 'c-red' : 'c-green',
|
||||
children: text
|
||||
});
|
||||
}
|
||||
}, {
|
||||
title: '浏览器',
|
||||
dataIndex: 'browser',
|
||||
key: 'browser',
|
||||
render: function render(text) {
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("span", {
|
||||
className: text.indexOf("异常") > -1 || text.indexOf("登录") > -1 ? 'c-red' : 'c-green',
|
||||
children: text
|
||||
});
|
||||
}
|
||||
}, {
|
||||
title: '上次登录时间',
|
||||
dataIndex: 'last_login_time',
|
||||
key: 'last_login_time'
|
||||
}];
|
||||
var dataSource = [{
|
||||
"real_name": "edutest01",
|
||||
"student_id": "test0001",
|
||||
"last_login_time": "2023-05-20 13:53:10",
|
||||
"ip": "ip地址正常",
|
||||
"browser": "浏览器正常"
|
||||
}];
|
||||
var onFinish = /*#__PURE__*/function () {
|
||||
var _ref2 = _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee() {
|
||||
var res, from;
|
||||
return _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
_context.next = 2;
|
||||
return form.validateFields();
|
||||
case 2:
|
||||
_context.next = 4;
|
||||
return (0,_service_user__WEBPACK_IMPORTED_MODULE_5__/* .LoginIn */ .Es)(_root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()(_root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, accountInfo), form.getFieldValue()));
|
||||
case 4:
|
||||
res = _context.sent;
|
||||
if (!res.status) {
|
||||
_context.next = 12;
|
||||
break;
|
||||
}
|
||||
if (!(res.status === -4)) {
|
||||
_context.next = 10;
|
||||
break;
|
||||
}
|
||||
dispatch({
|
||||
type: 'user/showPopLogin',
|
||||
payload: {
|
||||
showPopLogin: false
|
||||
}
|
||||
});
|
||||
dispatch({
|
||||
type: 'user/setBindAccountModal',
|
||||
payload: {
|
||||
bindAccountModalVisible: true,
|
||||
userInfoForBindAccountModal: res.user,
|
||||
loginInfo: accountInfo
|
||||
}
|
||||
});
|
||||
return _context.abrupt("return");
|
||||
case 10:
|
||||
setErrorValue(res === null || res === void 0 ? void 0 : res.message);
|
||||
return _context.abrupt("return");
|
||||
case 12:
|
||||
setOpenModal(false);
|
||||
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);
|
||||
} else {
|
||||
localStorage.removeItem('extension-modal');
|
||||
}
|
||||
if (!(location.pathname === '/user/login' || location.pathname === '/login')) {
|
||||
_context.next = 29;
|
||||
break;
|
||||
}
|
||||
from = searchParams.get("form") || searchParams.get("back_url");
|
||||
if (!from) {
|
||||
_context.next = 20;
|
||||
break;
|
||||
}
|
||||
window.location.href = decodeURIComponent(from);
|
||||
_context.next = 27;
|
||||
break;
|
||||
case 20:
|
||||
if (password.test(accountInfo.password)) {
|
||||
_context.next = 25;
|
||||
break;
|
||||
}
|
||||
antd__WEBPACK_IMPORTED_MODULE_9__/* ["default"].info */ .ZP.info('系统检测您的密码强度过低,请及时修改');
|
||||
window.location.href = '/account/secure';
|
||||
_context.next = 27;
|
||||
break;
|
||||
case 25:
|
||||
window.location.reload();
|
||||
return _context.abrupt("return");
|
||||
case 27:
|
||||
_context.next = 37;
|
||||
break;
|
||||
case 29:
|
||||
if (password.test(accountInfo.password)) {
|
||||
_context.next = 35;
|
||||
break;
|
||||
}
|
||||
antd__WEBPACK_IMPORTED_MODULE_9__/* ["default"].info */ .ZP.info('系统检测您的密码强度过低,请及时修改');
|
||||
umi__WEBPACK_IMPORTED_MODULE_6__.history.replace('/account/secure?active=3');
|
||||
dispatch({
|
||||
type: 'user/showPopLogin',
|
||||
payload: {
|
||||
showPopLogin: false
|
||||
}
|
||||
});
|
||||
_context.next = 37;
|
||||
break;
|
||||
case 35:
|
||||
window.location.reload();
|
||||
return _context.abrupt("return");
|
||||
case 37:
|
||||
form.resetFields();
|
||||
case 38:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee);
|
||||
}));
|
||||
return function onFinish() {
|
||||
return _ref2.apply(this, arguments);
|
||||
};
|
||||
}();
|
||||
var handleClick = function handleClick() {
|
||||
dispatch({
|
||||
type: 'user/showPopLogin',
|
||||
payload: {
|
||||
showPopLogin: false
|
||||
}
|
||||
});
|
||||
};
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z, {
|
||||
title: "\u767B\u5F55\u63D0\u793A",
|
||||
width: 600,
|
||||
onOk: onFinish,
|
||||
onCancel: function onCancel() {
|
||||
return setOpenModal(false);
|
||||
},
|
||||
centered: true,
|
||||
keyboard: false,
|
||||
closable: false,
|
||||
maskClosable: false,
|
||||
open: openModal,
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("p", {
|
||||
className: "tc",
|
||||
children: "\u8BE5\u8D26\u53F7\u5DF2\u7ECF\u5B58\u5728\u5F02\u5E38\u60C5\u51B5\uFF0C\u82E5\u975E\u672C\u4EBA\u64CD\u4F5C\uFF0C\u8BF7\u8054\u7CFB\u76D1\u8003\u8001\u5E08\u8BF4\u660E\u60C5\u51B5\u3002"
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("div", {
|
||||
className: "mt20",
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z, {
|
||||
pagination: {
|
||||
hideOnSinglePage: true
|
||||
},
|
||||
dataSource: data || [],
|
||||
columns: columns
|
||||
})
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("div", {
|
||||
className: "mt20 mb20",
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {
|
||||
message: "\u8BF7\u76D1\u8003\u8001\u5E08\u8F93\u5165\u7684\u8003\u8BD5\u89E3\u9501\u7801\uFF0C\u6388\u6743\u5F53\u524D\u5B66\u751F\u767B\u5F55\u5E73\u53F0\u3002",
|
||||
type: "warning"
|
||||
})
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(antd__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z, {
|
||||
name: "global_state",
|
||||
autoComplete: "off",
|
||||
form: form,
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(antd__WEBPACK_IMPORTED_MODULE_8__/* ["default"].Item */ .Z.Item, {
|
||||
name: "unlock_key",
|
||||
label: "\u8003\u8BD5\u89E3\u9501\u7801",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '请输入解锁码'
|
||||
}],
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"].Password */ .Z.Password, {
|
||||
autoComplete: "off"
|
||||
})
|
||||
})
|
||||
})]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ __webpack_exports__["Z"] = ((0,umi__WEBPACK_IMPORTED_MODULE_6__.connect)(function (_ref3) {
|
||||
var user = _ref3.user,
|
||||
loading = _ref3.loading,
|
||||
globalSetting = _ref3.globalSetting;
|
||||
return {
|
||||
user: user,
|
||||
globalSetting: globalSetting,
|
||||
loading: loading.models.index
|
||||
};
|
||||
})(LoginPopComponents));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 38925:
|
||||
/*!*********************************************************!*\
|
||||
!*** ./node_modules/antd/es/alert/index.js + 3 modules ***!
|
||||
\*********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ es_alert; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/CheckCircleFilled.js + 1 modules
|
||||
var CheckCircleFilled = __webpack_require__(89739);
|
||||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/CloseCircleFilled.js + 1 modules
|
||||
var CloseCircleFilled = __webpack_require__(4340);
|
||||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/CloseOutlined.js + 1 modules
|
||||
var CloseOutlined = __webpack_require__(97937);
|
||||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/ExclamationCircleFilled.js + 1 modules
|
||||
var ExclamationCircleFilled = __webpack_require__(21640);
|
||||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/InfoCircleFilled.js + 1 modules
|
||||
var InfoCircleFilled = __webpack_require__(78860);
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-motion/es/index.js + 18 modules
|
||||
var es = __webpack_require__(38379);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/pickAttrs.js
|
||||
var pickAttrs = __webpack_require__(1337);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/_util/reactNode.js
|
||||
var reactNode = __webpack_require__(96159);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/style/index.js
|
||||
var style = __webpack_require__(14747);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/genComponentStyleHook.js
|
||||
var genComponentStyleHook = __webpack_require__(67968);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/statistic.js
|
||||
var statistic = __webpack_require__(45503);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/alert/style/index.js
|
||||
|
||||
|
||||
const genAlertTypeStyle = (bgColor, borderColor, iconColor, token, alertCls) => ({
|
||||
backgroundColor: bgColor,
|
||||
border: `${token.lineWidth}px ${token.lineType} ${borderColor}`,
|
||||
[`${alertCls}-icon`]: {
|
||||
color: iconColor
|
||||
}
|
||||
});
|
||||
const genBaseStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
motionDurationSlow: duration,
|
||||
marginXS,
|
||||
marginSM,
|
||||
fontSize,
|
||||
fontSizeLG,
|
||||
lineHeight,
|
||||
borderRadiusLG: borderRadius,
|
||||
motionEaseInOutCirc,
|
||||
alertIconSizeLG,
|
||||
colorText,
|
||||
paddingContentVerticalSM,
|
||||
alertPaddingHorizontal,
|
||||
paddingMD,
|
||||
paddingContentHorizontalLG,
|
||||
colorTextHeading
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
|
||||
position: 'relative',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
padding: `${paddingContentVerticalSM}px ${alertPaddingHorizontal}px`,
|
||||
wordWrap: 'break-word',
|
||||
borderRadius,
|
||||
[`&${componentCls}-rtl`]: {
|
||||
direction: 'rtl'
|
||||
},
|
||||
[`${componentCls}-content`]: {
|
||||
flex: 1,
|
||||
minWidth: 0
|
||||
},
|
||||
[`${componentCls}-icon`]: {
|
||||
marginInlineEnd: marginXS,
|
||||
lineHeight: 0
|
||||
},
|
||||
[`&-description`]: {
|
||||
display: 'none',
|
||||
fontSize,
|
||||
lineHeight
|
||||
},
|
||||
'&-message': {
|
||||
color: colorText
|
||||
},
|
||||
[`&${componentCls}-motion-leave`]: {
|
||||
overflow: 'hidden',
|
||||
opacity: 1,
|
||||
transition: `max-height ${duration} ${motionEaseInOutCirc}, opacity ${duration} ${motionEaseInOutCirc},
|
||||
padding-top ${duration} ${motionEaseInOutCirc}, padding-bottom ${duration} ${motionEaseInOutCirc},
|
||||
margin-bottom ${duration} ${motionEaseInOutCirc}`
|
||||
},
|
||||
[`&${componentCls}-motion-leave-active`]: {
|
||||
maxHeight: 0,
|
||||
marginBottom: '0 !important',
|
||||
paddingTop: 0,
|
||||
paddingBottom: 0,
|
||||
opacity: 0
|
||||
}
|
||||
}),
|
||||
[`${componentCls}-with-description`]: {
|
||||
alignItems: 'flex-start',
|
||||
paddingInline: paddingContentHorizontalLG,
|
||||
paddingBlock: paddingMD,
|
||||
[`${componentCls}-icon`]: {
|
||||
marginInlineEnd: marginSM,
|
||||
fontSize: alertIconSizeLG,
|
||||
lineHeight: 0
|
||||
},
|
||||
[`${componentCls}-message`]: {
|
||||
display: 'block',
|
||||
marginBottom: marginXS,
|
||||
color: colorTextHeading,
|
||||
fontSize: fontSizeLG
|
||||
},
|
||||
[`${componentCls}-description`]: {
|
||||
display: 'block'
|
||||
}
|
||||
},
|
||||
[`${componentCls}-banner`]: {
|
||||
marginBottom: 0,
|
||||
border: '0 !important',
|
||||
borderRadius: 0
|
||||
}
|
||||
};
|
||||
};
|
||||
const genTypeStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
colorSuccess,
|
||||
colorSuccessBorder,
|
||||
colorSuccessBg,
|
||||
colorWarning,
|
||||
colorWarningBorder,
|
||||
colorWarningBg,
|
||||
colorError,
|
||||
colorErrorBorder,
|
||||
colorErrorBg,
|
||||
colorInfo,
|
||||
colorInfoBorder,
|
||||
colorInfoBg
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: {
|
||||
'&-success': genAlertTypeStyle(colorSuccessBg, colorSuccessBorder, colorSuccess, token, componentCls),
|
||||
'&-info': genAlertTypeStyle(colorInfoBg, colorInfoBorder, colorInfo, token, componentCls),
|
||||
'&-warning': genAlertTypeStyle(colorWarningBg, colorWarningBorder, colorWarning, token, componentCls),
|
||||
'&-error': Object.assign(Object.assign({}, genAlertTypeStyle(colorErrorBg, colorErrorBorder, colorError, token, componentCls)), {
|
||||
[`${componentCls}-description > pre`]: {
|
||||
margin: 0,
|
||||
padding: 0
|
||||
}
|
||||
})
|
||||
}
|
||||
};
|
||||
};
|
||||
const genActionStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
iconCls,
|
||||
motionDurationMid,
|
||||
marginXS,
|
||||
fontSizeIcon,
|
||||
colorIcon,
|
||||
colorIconHover
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: {
|
||||
[`&-action`]: {
|
||||
marginInlineStart: marginXS
|
||||
},
|
||||
[`${componentCls}-close-icon`]: {
|
||||
marginInlineStart: marginXS,
|
||||
padding: 0,
|
||||
overflow: 'hidden',
|
||||
fontSize: fontSizeIcon,
|
||||
lineHeight: `${fontSizeIcon}px`,
|
||||
backgroundColor: 'transparent',
|
||||
border: 'none',
|
||||
outline: 'none',
|
||||
cursor: 'pointer',
|
||||
[`${iconCls}-close`]: {
|
||||
color: colorIcon,
|
||||
transition: `color ${motionDurationMid}`,
|
||||
'&:hover': {
|
||||
color: colorIconHover
|
||||
}
|
||||
}
|
||||
},
|
||||
'&-close-text': {
|
||||
color: colorIcon,
|
||||
transition: `color ${motionDurationMid}`,
|
||||
'&:hover': {
|
||||
color: colorIconHover
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
const genAlertStyle = token => [genBaseStyle(token), genTypeStyle(token), genActionStyle(token)];
|
||||
/* harmony default export */ var alert_style = ((0,genComponentStyleHook/* default */.Z)('Alert', token => {
|
||||
const {
|
||||
fontSizeHeading3
|
||||
} = token;
|
||||
const alertToken = (0,statistic/* merge */.TS)(token, {
|
||||
alertIconSizeLG: fontSizeHeading3,
|
||||
alertPaddingHorizontal: 12 // Fixed value here.
|
||||
});
|
||||
|
||||
return [genAlertStyle(alertToken)];
|
||||
}));
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/alert/Alert.js
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// CSSINJS
|
||||
|
||||
const iconMapFilled = {
|
||||
success: CheckCircleFilled/* default */.Z,
|
||||
info: InfoCircleFilled/* default */.Z,
|
||||
error: CloseCircleFilled/* default */.Z,
|
||||
warning: ExclamationCircleFilled/* default */.Z
|
||||
};
|
||||
const IconNode = props => {
|
||||
const {
|
||||
icon,
|
||||
prefixCls,
|
||||
type
|
||||
} = props;
|
||||
const iconType = iconMapFilled[type] || null;
|
||||
if (icon) {
|
||||
return (0,reactNode/* replaceElement */.wm)(icon, /*#__PURE__*/react.createElement("span", {
|
||||
className: `${prefixCls}-icon`
|
||||
}, icon), () => ({
|
||||
className: classnames_default()(`${prefixCls}-icon`, {
|
||||
[icon.props.className]: icon.props.className
|
||||
})
|
||||
}));
|
||||
}
|
||||
return /*#__PURE__*/react.createElement(iconType, {
|
||||
className: `${prefixCls}-icon`
|
||||
});
|
||||
};
|
||||
const CloseIcon = props => {
|
||||
const {
|
||||
isClosable,
|
||||
prefixCls,
|
||||
closeIcon,
|
||||
handleClose
|
||||
} = props;
|
||||
const mergedCloseIcon = closeIcon === true || closeIcon === undefined ? /*#__PURE__*/react.createElement(CloseOutlined/* default */.Z, null) : closeIcon;
|
||||
return isClosable ? /*#__PURE__*/react.createElement("button", {
|
||||
type: "button",
|
||||
onClick: handleClose,
|
||||
className: `${prefixCls}-close-icon`,
|
||||
tabIndex: 0
|
||||
}, mergedCloseIcon) : null;
|
||||
};
|
||||
const Alert = props => {
|
||||
const {
|
||||
description,
|
||||
prefixCls: customizePrefixCls,
|
||||
message,
|
||||
banner,
|
||||
className,
|
||||
rootClassName,
|
||||
style,
|
||||
onMouseEnter,
|
||||
onMouseLeave,
|
||||
onClick,
|
||||
afterClose,
|
||||
showIcon,
|
||||
closable,
|
||||
closeText,
|
||||
closeIcon,
|
||||
action
|
||||
} = props,
|
||||
otherProps = __rest(props, ["description", "prefixCls", "message", "banner", "className", "rootClassName", "style", "onMouseEnter", "onMouseLeave", "onClick", "afterClose", "showIcon", "closable", "closeText", "closeIcon", "action"]);
|
||||
const [closed, setClosed] = react.useState(false);
|
||||
if (false) {}
|
||||
const ref = react.useRef(null);
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction,
|
||||
alert
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const prefixCls = getPrefixCls('alert', customizePrefixCls);
|
||||
const [wrapSSR, hashId] = alert_style(prefixCls);
|
||||
const handleClose = e => {
|
||||
var _a;
|
||||
setClosed(true);
|
||||
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
||||
};
|
||||
const type = react.useMemo(() => {
|
||||
if (props.type !== undefined) {
|
||||
return props.type;
|
||||
}
|
||||
// banner mode defaults to 'warning'
|
||||
return banner ? 'warning' : 'info';
|
||||
}, [props.type, banner]);
|
||||
// closeable when closeText or closeIcon is assigned
|
||||
const isClosable = react.useMemo(() => {
|
||||
if (closeText) {
|
||||
return true;
|
||||
}
|
||||
if (typeof closable === 'boolean') {
|
||||
return closable;
|
||||
}
|
||||
// should be true when closeIcon is 0 or ''
|
||||
return closeIcon !== false && closeIcon !== null && closeIcon !== undefined;
|
||||
}, [closeText, closeIcon, closable]);
|
||||
// banner mode defaults to Icon
|
||||
const isShowIcon = banner && showIcon === undefined ? true : showIcon;
|
||||
const alertCls = classnames_default()(prefixCls, `${prefixCls}-${type}`, {
|
||||
[`${prefixCls}-with-description`]: !!description,
|
||||
[`${prefixCls}-no-icon`]: !isShowIcon,
|
||||
[`${prefixCls}-banner`]: !!banner,
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl'
|
||||
}, alert === null || alert === void 0 ? void 0 : alert.className, className, rootClassName, hashId);
|
||||
const restProps = (0,pickAttrs/* default */.Z)(otherProps, {
|
||||
aria: true,
|
||||
data: true
|
||||
});
|
||||
return wrapSSR( /*#__PURE__*/react.createElement(es["default"], {
|
||||
visible: !closed,
|
||||
motionName: `${prefixCls}-motion`,
|
||||
motionAppear: false,
|
||||
motionEnter: false,
|
||||
onLeaveStart: node => ({
|
||||
maxHeight: node.offsetHeight
|
||||
}),
|
||||
onLeaveEnd: afterClose
|
||||
}, _ref => {
|
||||
let {
|
||||
className: motionClassName,
|
||||
style: motionStyle
|
||||
} = _ref;
|
||||
return /*#__PURE__*/react.createElement("div", Object.assign({
|
||||
ref: ref,
|
||||
"data-show": !closed,
|
||||
className: classnames_default()(alertCls, motionClassName),
|
||||
style: Object.assign(Object.assign(Object.assign({}, alert === null || alert === void 0 ? void 0 : alert.style), style), motionStyle),
|
||||
onMouseEnter: onMouseEnter,
|
||||
onMouseLeave: onMouseLeave,
|
||||
onClick: onClick,
|
||||
role: "alert"
|
||||
}, restProps), isShowIcon ? /*#__PURE__*/react.createElement(IconNode, {
|
||||
description: description,
|
||||
icon: props.icon,
|
||||
prefixCls: prefixCls,
|
||||
type: type
|
||||
}) : null, /*#__PURE__*/react.createElement("div", {
|
||||
className: `${prefixCls}-content`
|
||||
}, message ? /*#__PURE__*/react.createElement("div", {
|
||||
className: `${prefixCls}-message`
|
||||
}, message) : null, description ? /*#__PURE__*/react.createElement("div", {
|
||||
className: `${prefixCls}-description`
|
||||
}, description) : null), action ? /*#__PURE__*/react.createElement("div", {
|
||||
className: `${prefixCls}-action`
|
||||
}, action) : null, /*#__PURE__*/react.createElement(CloseIcon, {
|
||||
isClosable: isClosable,
|
||||
prefixCls: prefixCls,
|
||||
closeIcon: closeText || closeIcon,
|
||||
handleClose: handleClose
|
||||
}));
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var alert_Alert = (Alert);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
||||
var classCallCheck = __webpack_require__(15671);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
||||
var createClass = __webpack_require__(43144);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
||||
var inherits = __webpack_require__(60136);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js + 1 modules
|
||||
var createSuper = __webpack_require__(51630);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/alert/ErrorBoundary.js
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
let ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
||||
(0,inherits/* default */.Z)(ErrorBoundary, _React$Component);
|
||||
var _super = (0,createSuper/* default */.Z)(ErrorBoundary);
|
||||
function ErrorBoundary() {
|
||||
var _this;
|
||||
(0,classCallCheck/* default */.Z)(this, ErrorBoundary);
|
||||
_this = _super.apply(this, arguments);
|
||||
_this.state = {
|
||||
error: undefined,
|
||||
info: {
|
||||
componentStack: ''
|
||||
}
|
||||
};
|
||||
return _this;
|
||||
}
|
||||
(0,createClass/* default */.Z)(ErrorBoundary, [{
|
||||
key: "componentDidCatch",
|
||||
value: function componentDidCatch(error, info) {
|
||||
this.setState({
|
||||
error,
|
||||
info
|
||||
});
|
||||
}
|
||||
}, {
|
||||
key: "render",
|
||||
value: function render() {
|
||||
const {
|
||||
message,
|
||||
description,
|
||||
children
|
||||
} = this.props;
|
||||
const {
|
||||
error,
|
||||
info
|
||||
} = this.state;
|
||||
const componentStack = info && info.componentStack ? info.componentStack : null;
|
||||
const errorMessage = typeof message === 'undefined' ? (error || '').toString() : message;
|
||||
const errorDescription = typeof description === 'undefined' ? componentStack : description;
|
||||
if (error) {
|
||||
return /*#__PURE__*/react.createElement(alert_Alert, {
|
||||
type: "error",
|
||||
message: errorMessage,
|
||||
description: /*#__PURE__*/react.createElement("pre", {
|
||||
style: {
|
||||
fontSize: '0.9em',
|
||||
overflowX: 'auto'
|
||||
}
|
||||
}, errorDescription)
|
||||
});
|
||||
}
|
||||
return children;
|
||||
}
|
||||
}]);
|
||||
return ErrorBoundary;
|
||||
}(react.Component);
|
||||
/* harmony default export */ var alert_ErrorBoundary = (ErrorBoundary);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/alert/index.js
|
||||
'use client';
|
||||
|
||||
|
||||
|
||||
const es_alert_Alert = alert_Alert;
|
||||
es_alert_Alert.ErrorBoundary = alert_ErrorBoundary;
|
||||
/* harmony default export */ var es_alert = (es_alert_Alert);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,689 @@
|
||||
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./src/components/User/OauthPanel/index.less ***!
|
||||
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.other-login {
|
||||
text-align: center;
|
||||
}
|
||||
.other-login a {
|
||||
display: inline-block;
|
||||
margin-right: 8px;
|
||||
}
|
||||
.btn-link {
|
||||
display: block;
|
||||
text-align: center;
|
||||
}
|
||||
.wechat-qrcode {
|
||||
height: 390px;
|
||||
margin: 0 auto;
|
||||
display: block;
|
||||
}
|
||||
.driver {
|
||||
text-align: center;
|
||||
color: #dddddd;
|
||||
}
|
||||
|
||||
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/Header/index.less?modules ***!
|
||||
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.flex_box_center___et8xE {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
-webkit-justify-content: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_space_between___GBGuw {
|
||||
justify-content: space-between;
|
||||
-webkit-box-pack: justify;
|
||||
}
|
||||
.flex_box_vertical_center____6P1q {
|
||||
align-items: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_box_center_end___whXw6 {
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
-webkit-justify-content: flex-end;
|
||||
-webkit-align-items: center;
|
||||
-webkit-box-align: center;
|
||||
-webkit-box-pack: end;
|
||||
box-align: center;
|
||||
box-pack: end;
|
||||
}
|
||||
.flex_box_column___mWgI_ {
|
||||
flex-direction: column;
|
||||
box-orient: block-axis;
|
||||
}
|
||||
.header___Wn4fJ {
|
||||
min-width: 1200px;
|
||||
position: relative;
|
||||
}
|
||||
.header___Wn4fJ [class~='ant-layout-header'] {
|
||||
padding: 0;
|
||||
height: 72px;
|
||||
background: #24292f;
|
||||
}
|
||||
.header___Wn4fJ .logo___QnotM {
|
||||
height: 36px;
|
||||
margin-right: 40px;
|
||||
}
|
||||
.header___Wn4fJ .menu___twLGR {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-flow: row nowrap;
|
||||
align-items: center;
|
||||
}
|
||||
.header___Wn4fJ .menu___twLGR li {
|
||||
margin-right: 30px;
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.header___Wn4fJ .menu___twLGR li .dropDown___Cwaoa {
|
||||
background: #ffffff;
|
||||
box-shadow: 0px 10px 16px 0px #cecece;
|
||||
border-radius: 6px;
|
||||
position: absolute;
|
||||
z-index: 999;
|
||||
left: -20px;
|
||||
top: 50px;
|
||||
padding: 20px;
|
||||
line-height: 1.5;
|
||||
display: none;
|
||||
}
|
||||
.header___Wn4fJ .menu___twLGR li .dropDown___Cwaoa .line___D1auu {
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background: #dbdce0;
|
||||
margin: 24px 0;
|
||||
}
|
||||
.header___Wn4fJ .menu___twLGR li .dropDown___Cwaoa .subName___gql7K {
|
||||
cursor: pointer;
|
||||
}
|
||||
.header___Wn4fJ .menu___twLGR li .dropDown___Cwaoa .subName___gql7K:hover aside {
|
||||
color: #165dff;
|
||||
}
|
||||
.header___Wn4fJ .menu___twLGR li .name___dR5V2 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 50px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.header___Wn4fJ .menu___twLGR li .name___dR5V2 span {
|
||||
font-size: 16px;
|
||||
color: #ffffff;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
}
|
||||
.header___Wn4fJ .menu___twLGR li .name___dR5V2 span b {
|
||||
color: #d4443c;
|
||||
transform: translate(2px, -7px);
|
||||
display: inline-block;
|
||||
}
|
||||
.header___Wn4fJ .menu___twLGR li .name___dR5V2 i {
|
||||
font-size: 12px;
|
||||
display: inline-block;
|
||||
transform: translateY(1px) scale(0.6);
|
||||
color: #979797;
|
||||
}
|
||||
.header___Wn4fJ .menu___twLGR li:hover .name___dR5V2 span {
|
||||
color: #c5c5c5;
|
||||
}
|
||||
.header___Wn4fJ .menu___twLGR li:hover .dropDown___Cwaoa {
|
||||
display: block;
|
||||
}
|
||||
.header___Wn4fJ .menu___twLGR li.actived___ohMks .name___dR5V2 span {
|
||||
color: #c5c5c5;
|
||||
}
|
||||
.header___Wn4fJ .menu___twLGR li.actived___ohMks .name___dR5V2 span::after {
|
||||
content: '';
|
||||
width: 100%;
|
||||
height: 2px;
|
||||
background: #c5c5c5;
|
||||
position: absolute;
|
||||
bottom: 12px;
|
||||
left: 0;
|
||||
border-radius: 1px;
|
||||
}
|
||||
.header___Wn4fJ .edu-menu___iWLK0 {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: 72px;
|
||||
width: 1200px;
|
||||
flex-flow: row nowrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.header___Wn4fJ .newslight___lSZjL {
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
border-radius: 5px;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 10px;
|
||||
background: #fb3226;
|
||||
}
|
||||
.header___Wn4fJ .classromediv___knFRv {
|
||||
animation: glow___gzrPH 200ms ease-out infinite alternate;
|
||||
}
|
||||
.spandiv___Gm_hg {
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
text-align: center;
|
||||
background: rgba(0, 255, 249, 0.2);
|
||||
width: 80px;
|
||||
}
|
||||
.header-iearning___LZfyg {
|
||||
min-width: 1200px;
|
||||
height: 60px;
|
||||
width: 100%;
|
||||
background-color: rgba(255, 255, 255, 0.8) !important;
|
||||
box-shadow: 0px 2px 10px 0px rgba(136, 136, 136, 0.5);
|
||||
position: fixed;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
z-index: 1000;
|
||||
}
|
||||
.header-iearning___LZfyg .logo___QnotM {
|
||||
height: 36px;
|
||||
}
|
||||
.header-iearning___LZfyg [class~='ant-layout-header'] {
|
||||
padding: 0;
|
||||
height: 60px;
|
||||
color: #000;
|
||||
color: initial;
|
||||
background: transparent;
|
||||
}
|
||||
.header-iearning___LZfyg .menu___twLGR {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
margin-left: auto;
|
||||
display: flex;
|
||||
flex-flow: row nowrap;
|
||||
align-items: center;
|
||||
}
|
||||
.header-iearning___LZfyg .menu___twLGR li {
|
||||
margin-right: 30px;
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.header-iearning___LZfyg .menu___twLGR li:hover a {
|
||||
color: #828383;
|
||||
}
|
||||
.header-iearning___LZfyg .menu___twLGR li.actived___ohMks a {
|
||||
color: #196efd;
|
||||
}
|
||||
.header-iearning___LZfyg .menu___twLGR li.actived___ohMks::after {
|
||||
content: '';
|
||||
width: 28px;
|
||||
height: 4px;
|
||||
background-color: #196efd;
|
||||
position: absolute;
|
||||
bottom: 10px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
.header-iearning___LZfyg .menu___twLGR li a {
|
||||
color: #434d6c;
|
||||
position: relative;
|
||||
font-size: 16px;
|
||||
}
|
||||
.header-iearning___LZfyg .edu-menu___iWLK0 {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
padding: 0 20px;
|
||||
height: 60px;
|
||||
min-width: 1200px;
|
||||
flex-flow: row nowrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.header-iearning___LZfyg .newslight___lSZjL {
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
border-radius: 5px;
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 10px;
|
||||
background: #fb3226;
|
||||
}
|
||||
.header-iearning___LZfyg .classromediv___knFRv {
|
||||
animation: glow___gzrPH 200ms ease-out infinite alternate;
|
||||
}
|
||||
.header-iearning___LZfyg .title___Ozzjk {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #196efd;
|
||||
margin-left: 10px;
|
||||
}
|
||||
.headerFixed___QLwBd {
|
||||
position: fixed;
|
||||
top: 0px;
|
||||
z-index: 999;
|
||||
width: 100%;
|
||||
}
|
||||
.headerFixed___QLwBd + section {
|
||||
padding-top: 60px;
|
||||
}
|
||||
@keyframes glow___gzrPH {
|
||||
0% {
|
||||
border-color: #00fff9;
|
||||
background: rgba(0, 255, 249, 0.2);
|
||||
box-shadow: 0 0 5px rgba(0, 255, 249, 0.2);
|
||||
}
|
||||
100% {
|
||||
border-color: #00fff9;
|
||||
background: rgba(0, 255, 249, 0.2);
|
||||
box-shadow: 0 0 8px rgba(0, 255, 249, 0.6);
|
||||
}
|
||||
}
|
||||
|
||||
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./src/components/Header/search-input.less ***!
|
||||
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.search-input {
|
||||
width: 300px !important;
|
||||
background: #373e3f !important;
|
||||
border: 1px solid #373e3f !important;
|
||||
}
|
||||
.search-input [class~='ant-input'] {
|
||||
background: #373e3f !important;
|
||||
color: #fff;
|
||||
}
|
||||
.search-input .ant-input-search-icon::before {
|
||||
border-left: none;
|
||||
}
|
||||
.search-input .ant-input-search-icon {
|
||||
color: #999;
|
||||
}
|
||||
.search-bar {
|
||||
color: white;
|
||||
flex: 1 0 auto;
|
||||
display: flex;
|
||||
flex-flow: row nowrap;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
}
|
||||
.search-bar a:hover {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/AuthModal/index.less?modules ***!
|
||||
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.tilte___IfiMG {
|
||||
color: #333333;
|
||||
font-size: 16px;
|
||||
text-align: center;
|
||||
}
|
||||
.flexRow___pQP78 {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-top: 30px;
|
||||
}
|
||||
.flexColumn___xrBZQ {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.footerWrap___C5kCC {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.img___GoWZu {
|
||||
width: 40px;
|
||||
height: 37px;
|
||||
vertical-align: middle;
|
||||
border-style: none;
|
||||
}
|
||||
.content___pumTK {
|
||||
font-size: 14px;
|
||||
color: #979797;
|
||||
margin-top: 15px;
|
||||
}
|
||||
.modalContent___XvHiZ {
|
||||
text-align: center;
|
||||
margin-top: 10px;
|
||||
color: #333333;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/Header/components/Join/index.less?modules ***!
|
||||
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.flex_box_center___cltIf {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
-webkit-justify-content: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_space_between___fKr_O {
|
||||
justify-content: space-between;
|
||||
-webkit-box-pack: justify;
|
||||
}
|
||||
.flex_box_vertical_center____QfiA {
|
||||
align-items: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_box_center_end___ysqmH {
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
-webkit-justify-content: flex-end;
|
||||
-webkit-align-items: center;
|
||||
-webkit-box-align: center;
|
||||
-webkit-box-pack: end;
|
||||
box-align: center;
|
||||
box-pack: end;
|
||||
}
|
||||
.flex_box_column___CfE8K {
|
||||
flex-direction: column;
|
||||
box-orient: block-axis;
|
||||
}
|
||||
.rightMenu___ADTOX {
|
||||
width: 120px;
|
||||
text-align: center;
|
||||
}
|
||||
.rightMenu___ADTOX li {
|
||||
padding: 0 15px;
|
||||
height: 35px;
|
||||
line-height: 35px;
|
||||
background: none !important;
|
||||
}
|
||||
.rightMenu___ADTOX li:hover {
|
||||
background: #0152d9 !important;
|
||||
}
|
||||
.rightMenu___ADTOX li:hover a {
|
||||
color: white !important;
|
||||
}
|
||||
.rightMenu___ADTOX li a {
|
||||
font-size: 14px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.joinMenu___aRGsf {
|
||||
padding: 0 0;
|
||||
width: 240px;
|
||||
}
|
||||
.joinMenu___aRGsf a {
|
||||
color: #323232;
|
||||
}
|
||||
.joinBoard___AeUvr {
|
||||
border: 1px solid #eee;
|
||||
width: 1px;
|
||||
height: 100%;
|
||||
}
|
||||
.joinCol___fV4uL {
|
||||
width: 48%;
|
||||
}
|
||||
|
||||
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/Header/components/User/index.less?modules ***!
|
||||
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.flex_box_center___YbxYn {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
-webkit-justify-content: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_space_between___Atwkg {
|
||||
justify-content: space-between;
|
||||
-webkit-box-pack: justify;
|
||||
}
|
||||
.flex_box_vertical_center____I6AC {
|
||||
align-items: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_box_center_end___LrYPg {
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
-webkit-justify-content: flex-end;
|
||||
-webkit-align-items: center;
|
||||
-webkit-box-align: center;
|
||||
-webkit-box-pack: end;
|
||||
box-align: center;
|
||||
box-pack: end;
|
||||
}
|
||||
.flex_box_column___j7QNF {
|
||||
flex-direction: column;
|
||||
box-orient: block-axis;
|
||||
}
|
||||
.userPic___a46Uz {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
border-radius: 34px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.rightMenu___y_nqk {
|
||||
text-align: center;
|
||||
}
|
||||
.rightMenu___y_nqk li {
|
||||
padding: 0;
|
||||
}
|
||||
.rightMenu___y_nqk li:hover {
|
||||
background: #0152d9;
|
||||
}
|
||||
.rightMenu___y_nqk li:hover a {
|
||||
color: white;
|
||||
}
|
||||
.rightMenu___y_nqk li a {
|
||||
font-size: 14px;
|
||||
margin: 0;
|
||||
}
|
||||
[id="educoder"] .menuWrap___iwlZB {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
border-radius: 2px;
|
||||
}
|
||||
[id="educoder"] .menuWrap___iwlZB li {
|
||||
height: 35px;
|
||||
padding: 0 !important;
|
||||
}
|
||||
[id="educoder"] .menuWrap___iwlZB li [class~='ant-dropdown-menu-title-content'] {
|
||||
flex: none !important;
|
||||
}
|
||||
[id="educoder"] .menuWrap___iwlZB li a {
|
||||
margin: 0px;
|
||||
color: #323232;
|
||||
text-align: left;
|
||||
padding: 0px 15px;
|
||||
line-height: 35px;
|
||||
}
|
||||
.exit___MOREW {
|
||||
border-top: 1px solid #eeeeee;
|
||||
}
|
||||
.classromediv___crYsO {
|
||||
width: 60px;
|
||||
height: 50px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-radius: 50px;
|
||||
cursor: pointer;
|
||||
animation: glow___jMGk7 200ms ease-out infinite alternate;
|
||||
}
|
||||
@keyframes glow___jMGk7 {
|
||||
0% {
|
||||
border-color: #00fff9;
|
||||
text-align: center;
|
||||
box-shadow: 0 0 5px rgba(0, 255, 249, 0.2);
|
||||
}
|
||||
100% {
|
||||
border-color: #00fff9;
|
||||
text-align: center;
|
||||
box-shadow: 0 0 8px rgba(0, 255, 249, 0.6);
|
||||
}
|
||||
}
|
||||
.height67___asp2E {
|
||||
height: 67px;
|
||||
}
|
||||
.login___WGEW9 {
|
||||
width: 90px;
|
||||
height: 32px;
|
||||
line-height: 32px;
|
||||
text-align: center;
|
||||
background: linear-gradient(135deg, #6c7bfd 0%, #3a45fa 100%);
|
||||
border-radius: 2px;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
color: #ffffff;
|
||||
}
|
||||
.login___WGEW9 > span {
|
||||
padding: 0 !important;
|
||||
}
|
||||
.icon___HABAt {
|
||||
font-size: 12px;
|
||||
display: inline-block;
|
||||
transform: translateY(3px) scale(0.6);
|
||||
color: #979797;
|
||||
}
|
||||
|
||||
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./src/layouts/user/index.less ***!
|
||||
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.register-footer {
|
||||
white-space: pre;
|
||||
color: #999;
|
||||
font-size: 14px;
|
||||
margin-top: 70px;
|
||||
padding-bottom: 50px;
|
||||
text-align: center;
|
||||
}
|
||||
.register-footer span {
|
||||
font-size: 18px;
|
||||
}
|
||||
.register-panel {
|
||||
width: 420px;
|
||||
background: #ffffff;
|
||||
box-shadow: 0px 2px 30px 0px rgba(0, 0, 0, 0.1);
|
||||
border-radius: 8px;
|
||||
padding: 0 26px 30px 26px;
|
||||
}
|
||||
.register-panel input {
|
||||
border-radius: 4px;
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
.register-panel button {
|
||||
border-radius: 4px;
|
||||
}
|
||||
.register-panel .ant-form-item-explain {
|
||||
line-height: 2;
|
||||
}
|
||||
.register-panel .ant-form-item {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.register-panel input:-internal-autofill-previewed,
|
||||
.register-panel input:-internal-autofill-selected {
|
||||
transition: background-color 5000s ease-in-out 0s !important;
|
||||
}
|
||||
.register-panel .service-terms .ant-form-item-control-input {
|
||||
min-height: 10px;
|
||||
line-height: 10px;
|
||||
}
|
||||
.register-container {
|
||||
background: #eaf2ff;
|
||||
min-height: 100vh;
|
||||
}
|
||||
.register-container .navs {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
flex-flow: row nowrap;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
align-items: center;
|
||||
font-size: 18px;
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.register-container .navs a {
|
||||
display: block;
|
||||
line-height: 48px;
|
||||
padding: 0 20px;
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
border-bottom: 2px solid transparent;
|
||||
}
|
||||
.register-container .navs a.active {
|
||||
color: #0152d9;
|
||||
border-bottom: 2px solid #0152d9;
|
||||
}
|
||||
.register-bg {
|
||||
background: #eaf2ff url(./static/bg.9e08c4e7.png);
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
background-position: 100% 100%;
|
||||
height: 754px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
padding-top: 142px;
|
||||
}
|
||||
.register-introduce {
|
||||
width: 584px;
|
||||
margin-right: 170px;
|
||||
}
|
||||
.register-introduce img {
|
||||
width: 280px;
|
||||
}
|
||||
.register-introduce h4 {
|
||||
font-size: 38px;
|
||||
color: #ffffff;
|
||||
margin-top: 32px;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
.register-introduce p {
|
||||
font-size: 20px;
|
||||
color: #ffffff;
|
||||
line-height: 45px;
|
||||
}
|
||||
.register-nav {
|
||||
display: flex;
|
||||
height: 90px;
|
||||
align-items: center;
|
||||
}
|
||||
.register-nav .nav-active {
|
||||
color: #0152d9;
|
||||
}
|
||||
.register-nav .nav-active:after {
|
||||
content: '';
|
||||
width: 50%;
|
||||
height: 2px;
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
bottom: -6px;
|
||||
background-color: #0152d9;
|
||||
}
|
||||
.register-nav div {
|
||||
position: relative;
|
||||
margin-right: 42px;
|
||||
font-size: 18px;
|
||||
color: #888888;
|
||||
cursor: pointer;
|
||||
}
|
||||
@media screen and (max-width: 1550px) {
|
||||
.register-bg {
|
||||
padding-top: 62px;
|
||||
}
|
||||
.register-introduce img {
|
||||
width: 240px;
|
||||
margin-top: 80px;
|
||||
}
|
||||
.register-introduce h4 {
|
||||
font-size: 34px;
|
||||
margin-top: 22px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.register-introduce p {
|
||||
font-size: 18px;
|
||||
line-height: 38px;
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue