|
|
|
|
@ -4347,6 +4347,8 @@ var col = __webpack_require__(43604);
|
|
|
|
|
var modal = __webpack_require__(43418);
|
|
|
|
|
// EXTERNAL MODULE: ./src/utils/verifyLogin.tsx + 2 modules
|
|
|
|
|
var verifyLogin = __webpack_require__(72031);
|
|
|
|
|
// EXTERNAL MODULE: ./src/utils/authority.ts
|
|
|
|
|
var authority = __webpack_require__(76107);
|
|
|
|
|
// EXTERNAL MODULE: ./src/components/Header/components/Join/JoinClassroomModal.tsx
|
|
|
|
|
var JoinClassroomModal = __webpack_require__(44754);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/components/MainSite/Advertisement.css
|
|
|
|
|
@ -4892,12 +4894,16 @@ var AddIPRange = function AddIPRange(_ref) {
|
|
|
|
|
case 8:
|
|
|
|
|
res = _context2.sent;
|
|
|
|
|
case 9:
|
|
|
|
|
if (((_res3 = res) === null || _res3 === void 0 ? void 0 : _res3.status) == 0) {
|
|
|
|
|
message/* default */.ZP.success(active == 1 ? "删除成功" : "添加成功");
|
|
|
|
|
getData();
|
|
|
|
|
if (!(((_res3 = res) === null || _res3 === void 0 ? void 0 : _res3.status) == 0)) {
|
|
|
|
|
_context2.next = 13;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
message/* default */.ZP.success(active == 1 ? "删除成功" : "添加成功");
|
|
|
|
|
_context2.next = 13;
|
|
|
|
|
return (0,paths/* getPathsHomePage */.Ae)({});
|
|
|
|
|
case 13:
|
|
|
|
|
setBtnLoading(false);
|
|
|
|
|
case 11:
|
|
|
|
|
case 14:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context2.stop();
|
|
|
|
|
}
|
|
|
|
|
@ -4938,6 +4944,8 @@ var AddIPRange = function AddIPRange(_ref) {
|
|
|
|
|
_context3.next = 5;
|
|
|
|
|
return handleUpdata();
|
|
|
|
|
case 5:
|
|
|
|
|
props.onCancel(e);
|
|
|
|
|
case 6:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context3.stop();
|
|
|
|
|
}
|
|
|
|
|
@ -5072,6 +5080,7 @@ var AddIPRange = function AddIPRange(_ref) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var VerifyType = /*#__PURE__*/function (VerifyType) {
|
|
|
|
|
@ -5197,14 +5206,10 @@ var MainSite = function MainSite(_ref) {
|
|
|
|
|
_useState34 = slicedToArray_default()(_useState33, 2),
|
|
|
|
|
isCourseModal = _useState34[0],
|
|
|
|
|
setIsCourseModal = _useState34[1];
|
|
|
|
|
var _useState35 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
var _useState35 = (0,_react_17_0_2_react.useState)(1),
|
|
|
|
|
_useState36 = slicedToArray_default()(_useState35, 2),
|
|
|
|
|
isAdmin = _useState36[0],
|
|
|
|
|
setIsAdmin = _useState36[1];
|
|
|
|
|
var _useState37 = (0,_react_17_0_2_react.useState)(1),
|
|
|
|
|
_useState38 = slicedToArray_default()(_useState37, 2),
|
|
|
|
|
courseType = _useState38[0],
|
|
|
|
|
setCourseType = _useState38[1];
|
|
|
|
|
courseType = _useState36[0],
|
|
|
|
|
setCourseType = _useState36[1];
|
|
|
|
|
var handleScroll = function handleScroll() {
|
|
|
|
|
var _document$getElementB, _videoRef$current, _videoRef$current2, _videoRef$current3;
|
|
|
|
|
var distance = (0,util/* isPc */.b9)() ? 880 : 2600;
|
|
|
|
|
@ -5302,7 +5307,6 @@ var MainSite = function MainSite(_ref) {
|
|
|
|
|
setTestCases({
|
|
|
|
|
shixun_list: res === null || res === void 0 ? void 0 : res.shixun_list
|
|
|
|
|
});
|
|
|
|
|
setIsAdmin(res === null || res === void 0 ? void 0 : res.is_admin);
|
|
|
|
|
}
|
|
|
|
|
setCourseLoading(false);
|
|
|
|
|
case 7:
|
|
|
|
|
@ -5645,7 +5649,7 @@ var MainSite = function MainSite(_ref) {
|
|
|
|
|
whiteSpace: "nowrap",
|
|
|
|
|
padding: "8px 0px"
|
|
|
|
|
},
|
|
|
|
|
children: [isAdmin && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: [(0,authority/* isSuperAdmins */.Ny)() && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
|
|
|
|
|
while (1) switch (_context5.prev = _context5.next) {
|
|
|
|
|
@ -5747,7 +5751,7 @@ var MainSite = function MainSite(_ref) {
|
|
|
|
|
whiteSpace: "nowrap",
|
|
|
|
|
padding: "8px 0px"
|
|
|
|
|
},
|
|
|
|
|
children: [isAdmin && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: [(0,authority/* isSuperAdmins */.Ny)() && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
|
|
|
|
|
while (1) switch (_context6.prev = _context6.next) {
|
|
|
|
|
@ -5832,7 +5836,7 @@ var MainSite = function MainSite(_ref) {
|
|
|
|
|
textAlign: "end",
|
|
|
|
|
width: "100%"
|
|
|
|
|
},
|
|
|
|
|
children: [isAdmin && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: [(0,authority/* isSuperAdmins */.Ny)() && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
|
|
|
|
|
while (1) switch (_context7.prev = _context7.next) {
|
|
|
|
|
|