Auto Submit

pull/1/head
autosubmit 2 years ago
parent e0f471fe97
commit 7c0b79cfff

@ -1096,7 +1096,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});

@ -664,7 +664,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});

@ -635,7 +635,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});

@ -3265,6 +3265,7 @@ var QuestionCircleOutlined = __webpack_require__(98815);
var CombinationSubjectiveQuestionEditor_excluded = ["value", "onChange"],
_excluded2 = ["key", "name"];
@ -3474,7 +3475,7 @@ var CombinationSubjectiveQuestionEditor_SubjectiveQuestionEditor = function Subj
})) === null || _v$split === void 0 ? void 0 : _v$split.map(function (item) {
return item === null || item === void 0 ? void 0 : item.trim();
});
var currentKeywordsValue = form.getFieldValue('keywords');
var currentKeywordsValue = form.getFieldValue(['sub_item_banks'].concat(toConsumableArray_default()(keywords)));
var existKeywords = (currentKeywordsValue === null || currentKeywordsValue === void 0 || (_currentKeywordsValue = currentKeywordsValue.map(function (item) {
return item === null || item === void 0 ? void 0 : item.keyword;
})) === null || _currentKeywordsValue === void 0 ? void 0 : _currentKeywordsValue.flat()) || [];

@ -795,7 +795,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});

File diff suppressed because it is too large Load Diff

@ -578,7 +578,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});

File diff suppressed because it is too large Load Diff

@ -1494,7 +1494,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

@ -313,7 +313,7 @@ var identityMap = {
var MAX_NAME_LENGTH = 20;
var MAX_NICKNAME_LENGTH = 20;
var Edit = function Edit(_ref) {
var _account$basicInfo3, _formValue$nickname, _form$getFieldValue, _schoolList$find3;
var _account$basicInfo3, _formValue$nickname, _form$getFieldValue, _schoolList$find4;
var user = _ref.user,
account = _ref.account,
globalSetting = _ref.globalSetting,
@ -324,66 +324,69 @@ var Edit = function Edit(_ref) {
var _Form$useForm = es_form/* default */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
form = _Form$useForm2[0];
var _Form$useForm3 = es_form/* default */.Z.useForm(),
_Form$useForm4 = slicedToArray_default()(_Form$useForm3, 1),
unStudentForm = _Form$useForm4[0];
var _useState = (0,_react_17_0_2_react.useState)({}),
_useState2 = slicedToArray_default()(_useState, 2),
formValue = _useState2[0],
setFormValue = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)([]),
unStudentFormValue = _useState2[0],
setUnStudentFormValue = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(false),
_useState4 = slicedToArray_default()(_useState3, 2),
schoolList = _useState4[0],
setSchoolList = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)([]),
unStudentModal = _useState4[0],
setUnStudentModal = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)({}),
_useState6 = slicedToArray_default()(_useState5, 2),
filterSchoolList = _useState6[0],
setFilterSchoolList = _useState6[1];
formValue = _useState6[0],
setFormValue = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)([]),
_useState8 = slicedToArray_default()(_useState7, 2),
departmentList = _useState8[0],
setDepartmentList = _useState8[1];
schoolList = _useState8[0],
setSchoolList = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)([]),
_useState10 = slicedToArray_default()(_useState9, 2),
filterDepartmentList = _useState10[0],
setFilterDepartmentList = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)(true),
filterSchoolList = _useState10[0],
setFilterSchoolList = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)([]),
_useState12 = slicedToArray_default()(_useState11, 2),
showRealName = _useState12[0],
setShowRealName = _useState12[1];
var _useState13 = (0,_react_17_0_2_react.useState)(false),
departmentList = _useState12[0],
setDepartmentList = _useState12[1];
var _useState13 = (0,_react_17_0_2_react.useState)([]),
_useState14 = slicedToArray_default()(_useState13, 2),
assistantVisible = _useState14[0],
setAssistantVisible = _useState14[1];
var _useState15 = (0,_react_17_0_2_react.useState)(false),
filterDepartmentList = _useState14[0],
setFilterDepartmentList = _useState14[1];
var _useState15 = (0,_react_17_0_2_react.useState)(true),
_useState16 = slicedToArray_default()(_useState15, 2),
tipVisible = _useState16[0],
settipVisible = _useState16[1];
var _useState17 = (0,_react_17_0_2_react.useState)(),
showRealName = _useState16[0],
setShowRealName = _useState16[1];
var _useState17 = (0,_react_17_0_2_react.useState)(false),
_useState18 = slicedToArray_default()(_useState17, 2),
realName = _useState18[0],
setRealName = _useState18[1];
var _useState19 = (0,_react_17_0_2_react.useState)(null),
assistantVisible = _useState18[0],
setAssistantVisible = _useState18[1];
var _useState19 = (0,_react_17_0_2_react.useState)(),
_useState20 = slicedToArray_default()(_useState19, 2),
saveIdentity = _useState20[0],
setSaveIdentity = _useState20[1];
var _useState21 = (0,_react_17_0_2_react.useState)(true),
realName = _useState20[0],
setRealName = _useState20[1];
var _useState21 = (0,_react_17_0_2_react.useState)(null),
_useState22 = slicedToArray_default()(_useState21, 2),
schoolLoading = _useState22[0],
setSchoolLoading = _useState22[1];
var _useState23 = (0,_react_17_0_2_react.useState)(),
saveIdentity = _useState22[0],
setSaveIdentity = _useState22[1];
var _useState23 = (0,_react_17_0_2_react.useState)(true),
_useState24 = slicedToArray_default()(_useState23, 2),
imageUrl = _useState24[0],
setimageUrl = _useState24[1];
var _useState25 = (0,_react_17_0_2_react.useState)(false),
schoolLoading = _useState24[0],
setSchoolLoading = _useState24[1];
var _useState25 = (0,_react_17_0_2_react.useState)(),
_useState26 = slicedToArray_default()(_useState25, 2),
imgloading = _useState26[0],
setimgLoading = _useState26[1];
var _useState27 = (0,_react_17_0_2_react.useState)([]),
imageUrl = _useState26[0],
setimageUrl = _useState26[1];
var _useState27 = (0,_react_17_0_2_react.useState)(false),
_useState28 = slicedToArray_default()(_useState27, 2),
fileList = _useState28[0],
setFileList = _useState28[1];
var _useState29 = (0,_react_17_0_2_react.useState)(false),
imgloading = _useState28[0],
setimgLoading = _useState28[1];
var _useState29 = (0,_react_17_0_2_react.useState)([]),
_useState30 = slicedToArray_default()(_useState29, 2),
isshow = _useState30[0],
setishow = _useState30[1];
fileList = _useState30[0],
setFileList = _useState30[1];
var _useState31 = (0,_react_17_0_2_react.useState)(true),
_useState32 = slicedToArray_default()(_useState31, 2),
isfirst = _useState32[0],
@ -760,9 +763,9 @@ var Edit = function Edit(_ref) {
professionalFlags.push('职业');
} else {
if (formValue.identity === 'student') {
if (studentNo != basicInfo.student_id) {
professionalFlags.push('职业');
}
// if (studentNo != basicInfo.student_id) {
// professionalFlags.push('职业')
// }
}
if (formValue.identity === 'teacher') {
if (jobTitle != basicInfo.technical_title) {
@ -1061,12 +1064,7 @@ var Edit = function Edit(_ref) {
layout: "horizontal",
onValuesChange: handleValuesChange,
onFinish: handleFinish,
onFinishFailed: function onFinishFailed() {
if (isshow) {
settipVisible(true);
return;
}
},
scrollToFirstError: true,
children: [
/*#__PURE__*/
// basicInfo.authentication == 'uncertified' ?
@ -1186,7 +1184,7 @@ var Edit = function Edit(_ref) {
required: true,
validator: function () {
var _validator = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9(_, value) {
var _user$userInfo8;
var _user$userInfo8, _schoolList$find3;
var res;
return regeneratorRuntime_default()().wrap(function _callee9$(_context9) {
while (1) switch (_context9.prev = _context9.next) {
@ -1196,15 +1194,26 @@ var Edit = function Edit(_ref) {
return (0,fetch/* default */.ZP)("/api/users/accounts/".concat(user === null || user === void 0 || (_user$userInfo8 = user.userInfo) === null || _user$userInfo8 === void 0 ? void 0 : _user$userInfo8.user_id, "/valid_student_id"), {
method: 'get',
params: {
school_id: basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.school_id,
school_id: (basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.school_id) || (schoolList === null || schoolList === void 0 || (_schoolList$find3 = schoolList.find(function (item) {
return item.name === formValue.school;
})) === null || _schoolList$find3 === void 0 ? void 0 : _schoolList$find3.id),
student_id: value
}
});
case 3:
res = _context9.sent;
setishow((res === null || res === void 0 ? void 0 : res.status) === -1);
return _context9.abrupt("return", (res === null || res === void 0 ? void 0 : res.status) === -1 ? Promise.reject('本单位内学号重复,请更改') : Promise.resolve());
case 6:
return _context9.abrupt("return", (res === null || res === void 0 ? void 0 : res.status) < -1 ? Promise.reject( /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u8BE5\u5B66\u53F7\u5DF2\u88AB\u4F7F\u7528\uFF0C\u5982\u9700\u7EE7\u7EED\u4F7F\u7528\u8BE5\u5B66\u53F7\uFF0C\u8BF7\u5148", /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {
setUnStudentModal(true);
setUnStudentFormValue({
check_type: 1
});
},
children: "\u89E3\u7ED1\u5B66\u53F7"
})]
})) : Promise.resolve());
case 5:
case "end":
return _context9.stop();
}
@ -1656,9 +1665,9 @@ var Edit = function Edit(_ref) {
payload: {}
});
},
schoolId: (_schoolList$find3 = schoolList.find(function (item) {
schoolId: (_schoolList$find4 = schoolList.find(function (item) {
return item.name === formValue.school;
})) === null || _schoolList$find3 === void 0 ? void 0 : _schoolList$find3.id,
})) === null || _schoolList$find4 === void 0 ? void 0 : _schoolList$find4.id,
schoolName: formValue.school,
departmentName: formValue.department,
onSuccess: function onSuccess(departmentName) {
@ -1693,45 +1702,142 @@ var Edit = function Edit(_ref) {
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_modal/* default */.Z, {
title: "\u89E3\u7ED1\u5B66\u53F7",
open: unStudentModal,
centered: true,
destroyOnClose: true,
open: tipVisible,
title: "\u63D0\u793A",
width: 520,
okText: "\u804C\u4E1A\u8BA4\u8BC1",
onCancel: function onCancel() {
return settipVisible(false);
setUnStudentModal(false);
},
onOk: function onOk() {
_umi_production_exports.history.push('/account/certification');
dispatch({
type: 'account/setActionTabs',
payload: {
key: 'Account-ProfessionalAuth'
}
});
settipVisible(false);
unStudentForm.submit();
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: "\u8BE5\u5B66\u53F7\u5DF2\u88AB\u4F7F\u7528\uFF0C\u60A8\u53EF\u4EE5\u901A\u8FC7\u804C\u4E1A\u8BA4\u8BC1\u7ED1\u5B9A\u8BE5\u5B66\u53F7\u4E0E\u5F53\u524D\u8D26\u53F7\u3002\u8BA4\u8BC1\u65F6\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u4EFB\u610F\u4E00\u79CD\u9A8C\u8BC1\u64CD\u4F5C\uFF0C\u4EE5\u4FBF\u5FEB\u901F\u901A\u8FC7\u8BA4\u8BC1\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: "1\u3001\u63D0\u4F9B\u5F53\u524D\u8D26\u53F7\u52A0\u5165\u7684\u6559\u5B66\u8BFE\u5802\u7684\u9080\u8BF7\u7801\uFF1B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: "2\u3001\u63D0\u4F9B\u5F53\u524D\u8D26\u53F7\u52A0\u5165\u7684\u6559\u5B66\u8BFE\u5802\u7684\u7BA1\u7406\u6559\u5E08\u624B\u673A\u53F7\u540E4\u4F4D\u3002"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: "\u6CE8\u610F\uFF1A\u5F53\u524D\u8D26\u53F7\u548C\u6559\u5B66\u8BFE\u5802\u6240\u5C5E\u5355\u4F4D\u5FC5\u987B\u76F8\u540C\uFF01"
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
form: unStudentForm,
initialValues: {
check_type: 1
},
size: "large",
onValuesChange: function onValuesChange(chang, Values) {
setUnStudentFormValue(Values);
},
onFinish: /*#__PURE__*/function () {
var _ref8 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee10(value) {
var _user$userInfo9, _schoolList$find5;
var res;
return regeneratorRuntime_default()().wrap(function _callee10$(_context10) {
while (1) switch (_context10.prev = _context10.next) {
case 0:
_context10.next = 2;
return (0,fetch/* default */.ZP)("/api/users/accounts/".concat(user === null || user === void 0 || (_user$userInfo9 = user.userInfo) === null || _user$userInfo9 === void 0 ? void 0 : _user$userInfo9.user_id, "/unbind_student_id.json"), {
method: 'post',
body: objectSpread2_default()({
student_id: formValue.studentNo,
school_id: (basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.school_id) || (schoolList === null || schoolList === void 0 || (_schoolList$find5 = schoolList.find(function (item) {
return item.name === formValue.school;
})) === null || _schoolList$find5 === void 0 ? void 0 : _schoolList$find5.id)
}, value)
});
case 2:
res = _context10.sent;
if (res.status == 0) {
message/* default */.ZP.success('解绑成功');
form.validateFields();
setUnStudentModal(false);
}
case 4:
case "end":
return _context10.stop();
}
}, _callee10);
}));
return function (_x8) {
return _ref8.apply(this, arguments);
};
}(),
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: ["\u5F88\u62B1\u6B49\uFF0C\u8BE5\u5B66\u53F7\uFF08", formValue.studentNo, "\uFF09\u5DF2\u88AB\u4F7F\u7528\uFF0C\u5982\u679C\u9700\u8981\u5C06\u8BE5\u5B66\u53F7\u7ED1\u5B9A\u5728\u5F53\u524D\u8D26\u53F7\u4E0A\uFF0C\u60A8\u53EF\u4EE5\u63D0\u4F9B\u539F\u8D26\u53F7\uFF08\u4F7F\u7528\u8BE5\u5B66\u53F7\u7684\u8D26\u53F7\uFF09\u7684\u76F8\u5173\u4FE1\u606F\u8FDB\u884C\u89E3\u7ED1\uFF1A"]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "mt20 mb20",
style: {
background: "#f5f5f5",
borderRadius: "5px",
padding: "10px"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "1\u3001\u539F\u8D26\u53F7\u7ED1\u5B9A\u7684\u624B\u673A\u53F7\u7801\u6216\u8005\u90AE\u7BB1\uFF1B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "2\u3001\u539F\u8D26\u53F7\u5DF2\u52A0\u5165\u7684\u6559\u5B66\u8BFE\u5802\u4E2D\u6559\u5E08\u624B\u673A\u53F7\u540E6\u4F4D\u6216\u8005\u8BFE\u5802\u9080\u8BF7\u7801\uFF1B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u6CE8\u610F\uFF1A\u8BF7\u786E\u4FDD\u539F\u8D26\u53F7\u6240\u5728\u5355\u4F4D\u4E0E\u5DF2\u52A0\u5165\u7684\u6559\u5B66\u8BFE\u5802\u6240\u5C5E\u5355\u4F4D\u76F8\u540C\u3002"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
gutter: [10, 0],
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
span: 5,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "check_type",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"], {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
value: 1,
children: "\u9080\u8BF7\u7801"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
value: 2,
children: "\u624B\u673A\u53F7"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
value: 3,
children: "\u90AE\u7BB1"
})]
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
flex: 1,
children: [(unStudentFormValue === null || unStudentFormValue === void 0 ? void 0 : unStudentFormValue.check_type) == 1 && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "check_value",
rules: [{
required: true,
message: '请提供所在单位的教学课堂的邀请码'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
type: "text",
placeholder: "\u8BF7\u63D0\u4F9B\u6240\u5728\u5355\u4F4D\u7684\u6559\u5B66\u8BFE\u5802\u7684\u9080\u8BF7\u7801",
maxLength: 10
})
}), (unStudentFormValue === null || unStudentFormValue === void 0 ? void 0 : unStudentFormValue.check_type) == 2 && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "check_value",
rules: [{
required: true,
message: '请输入手机号码'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
type: "text",
placeholder: "\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801",
maxLength: 11
})
}), (unStudentFormValue === null || unStudentFormValue === void 0 ? void 0 : unStudentFormValue.check_type) == 3 && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "check_value",
rules: [{
required: true,
type: 'email',
message: '请输入邮箱'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
type: "text",
placeholder: "\u8BF7\u8F93\u5165\u90AE\u7BB1"
})
})]
})]
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(image_preview/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(ProfessionalAuthModal/* default */.Z, {})]
});
};
/* harmony default export */ var Profile_Edit = ((0,_umi_production_exports.connect)(function (_ref8) {
var user = _ref8.user,
account = _ref8.account,
loading = _ref8.loading,
globalSetting = _ref8.globalSetting,
shixunHomeworks = _ref8.shixunHomeworks;
/* harmony default export */ var Profile_Edit = ((0,_umi_production_exports.connect)(function (_ref9) {
var user = _ref9.user,
account = _ref9.account,
loading = _ref9.loading,
globalSetting = _ref9.globalSetting,
shixunHomeworks = _ref9.shixunHomeworks;
return {
user: user,
account: account,

@ -691,12 +691,13 @@ var ProfessionalAuthModal = function ProfessionalAuthModal(_ref) {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z, {
spinning: !!isLoading,
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z, {
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z.formWrap,
form: form,
layout: "horizontal",
size: "large",
scrollToFirstError: true,
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z.formWrap,
onValuesChange: handleValuesChange,
onFinish: handleFinish,
scrollToFirstError: true,
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z, {
gutter: [10, 0],
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .Z, {
@ -709,7 +710,6 @@ var ProfessionalAuthModal = function ProfessionalAuthModal(_ref) {
message: '请先选择职业'
}],
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_14__["default"], {
size: "large",
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(Option, {
value: "teacher",
children: "\u6559\u5E08"
@ -733,7 +733,6 @@ var ProfessionalAuthModal = function ProfessionalAuthModal(_ref) {
message: '请先输入学号'
}],
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z, {
size: "large",
type: "text",
placeholder: "\u8BF7\u8F93\u5165\u5B66\u53F7"
})
@ -763,7 +762,6 @@ var ProfessionalAuthModal = function ProfessionalAuthModal(_ref) {
message: '请先选择职称'
}],
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_14__["default"], {
size: "large",
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(Option, {
value: "\u6559\u6388",
children: "\u6559\u6388"
@ -789,7 +787,6 @@ var ProfessionalAuthModal = function ProfessionalAuthModal(_ref) {
message: '请先选择职称'
}],
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_14__["default"], {
size: "large",
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(Option, {
value: "\u4F01\u4E1A\u7BA1\u7406\u8005",
children: "\u4F01\u4E1A\u7BA1\u7406\u8005"
@ -830,7 +827,6 @@ var ProfessionalAuthModal = function ProfessionalAuthModal(_ref) {
message: '请先选择学校/单位'
}],
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd__WEBPACK_IMPORTED_MODULE_24__/* ["default"] */ .Z, {
size: "large",
showSearch: true,
options: filterSchoolList === null || filterSchoolList === void 0 ? void 0 : filterSchoolList.map(function (item) {
return {
@ -859,7 +855,6 @@ var ProfessionalAuthModal = function ProfessionalAuthModal(_ref) {
message: '请先选择院系/部门'
}],
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd__WEBPACK_IMPORTED_MODULE_24__/* ["default"] */ .Z, {
size: "large",
showSearch: true,
onChange: function onChange(value) {
return setFilterDepartmentList(departmentList.filter(function (item) {
@ -875,19 +870,14 @@ var ProfessionalAuthModal = function ProfessionalAuthModal(_ref) {
})
}), formValue.identity === 'student' && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z, {
gutter: [10, 0],
wrap: false,
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .Z, {
flex: "240px",
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z.Item, {
label: "\u9A8C\u8BC1\u7801",
name: "code_type",
initialValue: 2
// rules={[{
// required: true,
// message: '请先选择验证码方式',
// }]}
,
initialValue: 2,
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_14__["default"], {
size: "large",
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(Option, {
value: 2,
children: "\u624B\u673A\u53F7"
@ -897,46 +887,34 @@ var ProfessionalAuthModal = function ProfessionalAuthModal(_ref) {
})]
})
})
}), formValue.code_type === 1 && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.Fragment, {
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .Z, {
flex: 1,
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z.Item, {
// initialValue={formValue.studentNo}
name: "code"
// rules={[
// {
// required: true,
// message: '请请提供所在单位的教学课堂的邀请码',
// },
// ]}
,
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z, {
size: "large",
type: "text",
placeholder: "\u8BF7\u63D0\u4F9B\u6240\u5728\u5355\u4F4D\u7684\u6559\u5B66\u8BFE\u5802\u7684\u9080\u8BF7\u7801",
maxLength: 10
})
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .Z, {
flex: 1,
children: formValue.code_type === 1 ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z.Item, {
name: "code",
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z, {
type: "text",
placeholder: "\u8BF7\u8F93\u5165\u5DF2\u52A0\u5165\u7684\u6559\u5B66\u8BFE\u5802\u7684\u9080\u8BF7\u7801",
maxLength: 10
})
}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z.Item, {
name: "code",
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z, {
type: "text",
placeholder: "\u8BF7\u8F93\u5165\u5DF2\u52A0\u5165\u7684\u6559\u5B66\u8BFE\u5802\u4E2D\u6559\u5E08\u7684\u624B\u673A\u53F7\u540E\u516D\u4F4D",
maxLength: 10
})
})
}), formValue.code_type === 2 && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.Fragment, {
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd__WEBPACK_IMPORTED_MODULE_23__/* ["default"] */ .Z, {
title: "\u5F53\u524D\u8D26\u53F7\u7533\u8BF7\u8BA4\u8BC1\u7684\u5355\u4F4D\u4E0E\u5DF2\u52A0\u5165\u7684\u6559\u5B66\u8BFE\u5802\u6240\u5C5E\u5355\u4F4D\u9700\u76F8\u540C",
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .Z, {
flex: 1,
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z.Item, {
// initialValue={formValue.studentNo}
name: "code"
// rules={[
// {
// required: true,
// message: '请提供所在单位的教学课堂中管理教师的手机号后四位码',
// },
// ]}
,
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z, {
size: "large",
type: "text",
placeholder: "\u8BF7\u63D0\u4F9B\u6240\u5728\u5355\u4F4D\u7684\u6559\u5B66\u8BFE\u5802\u4E2D\u7BA1\u7406\u6559\u5E08\u7684\u624B\u673A\u53F7\u540E\u56DB\u4F4D",
maxLength: 10
})
style: {
paddingTop: "10px"
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("i", {
className: "iconfont icon-a-wenhaobeifen2 primary-hover font14",
style: {
cursor: 'pointer'
}
})
})
})]

@ -635,7 +635,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});

@ -0,0 +1,679 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[92113],{
/***/ 88011:
/*!**********************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/FileTextOutlined.js + 1 modules ***!
\**********************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_FileTextOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(26508);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@ant-design/icons-svg/es/asn/FileTextOutlined.js
// This icon file is generated automatically.
var FileTextOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z" } }] }, "name": "file-text", "theme": "outlined" };
/* harmony default export */ var asn_FileTextOutlined = (FileTextOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(91851);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/FileTextOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var FileTextOutlined_FileTextOutlined = function FileTextOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_FileTextOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_FileTextOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(FileTextOutlined_FileTextOutlined));
/***/ }),
/***/ 31797:
/*!*************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/statistic/index.js + 5 modules ***!
\*************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ es_statistic; }
});
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/hooks/useForceUpdate.js
var useForceUpdate = __webpack_require__(56762);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/reactNode.js
var reactNode = __webpack_require__(92343);
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
var _classnames_2_3_2_classnames = __webpack_require__(12124);
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/skeleton/index.js + 12 modules
var skeleton = __webpack_require__(59981);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/statistic/Number.js
"use client";
const StatisticNumber = props => {
const {
value,
formatter,
precision,
decimalSeparator,
groupSeparator = '',
prefixCls
} = props;
let valueNode;
if (typeof formatter === 'function') {
// Customize formatter
valueNode = formatter(value);
} else {
// Internal formatter
const val = String(value);
const cells = val.match(/^(-?)(\d*)(\.(\d+))?$/);
// Process if illegal number
if (!cells || val === '-') {
valueNode = val;
} else {
const negative = cells[1];
let int = cells[2] || '0';
let decimal = cells[4] || '';
int = int.replace(/\B(?=(\d{3})+(?!\d))/g, groupSeparator);
if (typeof precision === 'number') {
decimal = decimal.padEnd(precision, '0').slice(0, precision > 0 ? precision : 0);
}
if (decimal) {
decimal = `${decimalSeparator}${decimal}`;
}
valueNode = [/*#__PURE__*/_react_17_0_2_react.createElement("span", {
key: "int",
className: `${prefixCls}-content-value-int`
}, negative, int), decimal && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
key: "decimal",
className: `${prefixCls}-content-value-decimal`
}, decimal)];
}
}
return /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: `${prefixCls}-content-value`
}, valueNode);
};
/* harmony default export */ var statistic_Number = (StatisticNumber);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js
var style = __webpack_require__(17313);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
var genComponentStyleHook = __webpack_require__(83116);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js
var statistic = __webpack_require__(37613);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/statistic/style/index.js
"use client";
const genStatisticStyle = token => {
const {
componentCls,
marginXXS,
padding,
colorTextDescription,
titleFontSize,
colorTextHeading,
contentFontSize,
fontFamily
} = token;
return {
[`${componentCls}`]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
[`${componentCls}-title`]: {
marginBottom: marginXXS,
color: colorTextDescription,
fontSize: titleFontSize
},
[`${componentCls}-skeleton`]: {
paddingTop: padding
},
[`${componentCls}-content`]: {
color: colorTextHeading,
fontSize: contentFontSize,
fontFamily,
[`${componentCls}-content-value`]: {
display: 'inline-block',
direction: 'ltr'
},
[`${componentCls}-content-prefix, ${componentCls}-content-suffix`]: {
display: 'inline-block'
},
[`${componentCls}-content-prefix`]: {
marginInlineEnd: marginXXS
},
[`${componentCls}-content-suffix`]: {
marginInlineStart: marginXXS
}
}
})
};
};
// ============================== Export ==============================
/* harmony default export */ var statistic_style = ((0,genComponentStyleHook/* default */.Z)('Statistic', token => {
const statisticToken = (0,statistic/* merge */.TS)(token, {});
return [genStatisticStyle(statisticToken)];
}, token => {
const {
fontSizeHeading3,
fontSize
} = token;
return {
titleFontSize: fontSize,
contentFontSize: fontSizeHeading3
};
}));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/statistic/Statistic.js
"use client";
const Statistic = props => {
const {
prefixCls: customizePrefixCls,
className,
rootClassName,
style,
valueStyle,
value = 0,
title,
valueRender,
prefix,
suffix,
loading = false,
onMouseEnter,
onMouseLeave,
decimalSeparator = '.',
groupSeparator = ','
} = props;
const {
getPrefixCls,
direction,
statistic
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const prefixCls = getPrefixCls('statistic', customizePrefixCls);
const [wrapSSR, hashId] = statistic_style(prefixCls);
const valueNode = /*#__PURE__*/_react_17_0_2_react.createElement(statistic_Number, Object.assign({
decimalSeparator: decimalSeparator,
groupSeparator: groupSeparator,
prefixCls: prefixCls
}, props, {
value: value
}));
const cls = _classnames_2_3_2_classnames_default()(prefixCls, {
[`${prefixCls}-rtl`]: direction === 'rtl'
}, statistic === null || statistic === void 0 ? void 0 : statistic.className, className, rootClassName, hashId);
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", {
className: cls,
style: Object.assign(Object.assign({}, statistic === null || statistic === void 0 ? void 0 : statistic.style), style),
onMouseEnter: onMouseEnter,
onMouseLeave: onMouseLeave
}, title && /*#__PURE__*/_react_17_0_2_react.createElement("div", {
className: `${prefixCls}-title`
}, title), /*#__PURE__*/_react_17_0_2_react.createElement(skeleton/* default */.Z, {
paragraph: false,
loading: loading,
className: `${prefixCls}-skeleton`
}, /*#__PURE__*/_react_17_0_2_react.createElement("div", {
style: valueStyle,
className: `${prefixCls}-content`
}, prefix && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: `${prefixCls}-content-prefix`
}, prefix), valueRender ? valueRender(valueNode) : valueNode, suffix && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: `${prefixCls}-content-suffix`
}, suffix)))));
};
if (false) {}
/* harmony default export */ var statistic_Statistic = (Statistic);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/statistic/utils.js
// Countdown
const timeUnits = [['Y', 1000 * 60 * 60 * 24 * 365], ['M', 1000 * 60 * 60 * 24 * 30], ['D', 1000 * 60 * 60 * 24], ['H', 1000 * 60 * 60], ['m', 1000 * 60], ['s', 1000], ['S', 1] // million seconds
];
function formatTimeStr(duration, format) {
let leftDuration = duration;
const escapeRegex = /\[[^\]]*]/g;
const keepList = (format.match(escapeRegex) || []).map(str => str.slice(1, -1));
const templateText = format.replace(escapeRegex, '[]');
const replacedText = timeUnits.reduce((current, _ref) => {
let [name, unit] = _ref;
if (current.includes(name)) {
const value = Math.floor(leftDuration / unit);
leftDuration -= value * unit;
return current.replace(new RegExp(`${name}+`, 'g'), match => {
const len = match.length;
return value.toString().padStart(len, '0');
});
}
return current;
}, templateText);
let index = 0;
return replacedText.replace(escapeRegex, () => {
const match = keepList[index];
index += 1;
return match;
});
}
function formatCountdown(value, config) {
const {
format = ''
} = config;
const target = new Date(value).getTime();
const current = Date.now();
const diff = Math.max(target - current, 0);
return formatTimeStr(diff, format);
}
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/statistic/Countdown.js
"use client";
const REFRESH_INTERVAL = 1000 / 30;
function getTime(value) {
return new Date(value).getTime();
}
const Countdown = props => {
const {
value,
format = 'HH:mm:ss',
onChange,
onFinish
} = props;
const forceUpdate = (0,useForceUpdate/* default */.Z)();
const countdown = _react_17_0_2_react.useRef(null);
const stopTimer = () => {
onFinish === null || onFinish === void 0 ? void 0 : onFinish();
if (countdown.current) {
clearInterval(countdown.current);
countdown.current = null;
}
};
const syncTimer = () => {
const timestamp = getTime(value);
if (timestamp >= Date.now()) {
countdown.current = setInterval(() => {
forceUpdate();
onChange === null || onChange === void 0 ? void 0 : onChange(timestamp - Date.now());
if (timestamp < Date.now()) {
stopTimer();
}
}, REFRESH_INTERVAL);
}
};
_react_17_0_2_react.useEffect(() => {
syncTimer();
return () => {
if (countdown.current) {
clearInterval(countdown.current);
countdown.current = null;
}
};
}, [value]);
const formatter = (formatValue, config) => formatCountdown(formatValue, Object.assign(Object.assign({}, config), {
format
}));
const valueRender = node => (0,reactNode/* cloneElement */.Tm)(node, {
title: undefined
});
return /*#__PURE__*/_react_17_0_2_react.createElement(statistic_Statistic, Object.assign({}, props, {
valueRender: valueRender,
formatter: formatter
}));
};
/* harmony default export */ var statistic_Countdown = (/*#__PURE__*/_react_17_0_2_react.memo(Countdown));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/statistic/index.js
"use client";
statistic_Statistic.Countdown = statistic_Countdown;
/* harmony default export */ var es_statistic = (statistic_Statistic);
/***/ }),
/***/ 51581:
/*!****************************************************************************************************!*\
!*** ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/dist/InfiniteScroll.js ***!
\****************************************************************************************************/
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({
value: true
}));
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = __webpack_require__(/*! react */ 59301);
var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(/*! prop-types */ 12708);
var _propTypes2 = _interopRequireDefault(_propTypes);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var InfiniteScroll = function (_Component) {
_inherits(InfiniteScroll, _Component);
function InfiniteScroll(props) {
_classCallCheck(this, InfiniteScroll);
var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props));
_this.scrollListener = _this.scrollListener.bind(_this);
_this.eventListenerOptions = _this.eventListenerOptions.bind(_this);
_this.mousewheelListener = _this.mousewheelListener.bind(_this);
return _this;
}
_createClass(InfiniteScroll, [{
key: 'componentDidMount',
value: function componentDidMount() {
this.pageLoaded = this.props.pageStart;
this.options = this.eventListenerOptions();
this.attachScrollListener();
}
}, {
key: 'componentDidUpdate',
value: function componentDidUpdate() {
if (this.props.isReverse && this.loadMore) {
var parentElement = this.getParentElement(this.scrollComponent);
parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop;
this.loadMore = false;
}
this.attachScrollListener();
}
}, {
key: 'componentWillUnmount',
value: function componentWillUnmount() {
this.detachScrollListener();
this.detachMousewheelListener();
}
}, {
key: 'isPassiveSupported',
value: function isPassiveSupported() {
var passive = false;
var testOptions = {
get passive() {
passive = true;
}
};
try {
document.addEventListener('test', null, testOptions);
document.removeEventListener('test', null, testOptions);
} catch (e) {
// ignore
}
return passive;
}
}, {
key: 'eventListenerOptions',
value: function eventListenerOptions() {
var options = this.props.useCapture;
if (this.isPassiveSupported()) {
options = {
useCapture: this.props.useCapture,
passive: true
};
}
return options;
}
// Set a defaut loader for all your `InfiniteScroll` components
}, {
key: 'setDefaultLoader',
value: function setDefaultLoader(loader) {
this.defaultLoader = loader;
}
}, {
key: 'detachMousewheelListener',
value: function detachMousewheelListener() {
var scrollEl = window;
if (this.props.useWindow === false) {
scrollEl = this.scrollComponent.parentNode;
}
scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);
}
}, {
key: 'detachScrollListener',
value: function detachScrollListener() {
var scrollEl = window;
if (this.props.useWindow === false) {
scrollEl = this.getParentElement(this.scrollComponent);
}
scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);
scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);
}
}, {
key: 'getParentElement',
value: function getParentElement(el) {
var scrollParent = this.props.getScrollParent && this.props.getScrollParent();
if (scrollParent != null) {
return scrollParent;
}
return el && el.parentNode;
}
}, {
key: 'filterProps',
value: function filterProps(props) {
return props;
}
}, {
key: 'attachScrollListener',
value: function attachScrollListener() {
var parentElement = this.getParentElement(this.scrollComponent);
if (!this.props.hasMore || !parentElement) {
return;
}
var scrollEl = window;
if (this.props.useWindow === false) {
scrollEl = parentElement;
}
scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);
scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);
scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);
if (this.props.initialLoad) {
this.scrollListener();
}
}
}, {
key: 'mousewheelListener',
value: function mousewheelListener(e) {
// Prevents Chrome hangups
// See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257
if (e.deltaY === 1 && !this.isPassiveSupported()) {
e.preventDefault();
}
}
}, {
key: 'scrollListener',
value: function scrollListener() {
var el = this.scrollComponent;
var scrollEl = window;
var parentNode = this.getParentElement(el);
var offset = void 0;
if (this.props.useWindow) {
var doc = document.documentElement || document.body.parentNode || document.body;
var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop;
if (this.props.isReverse) {
offset = scrollTop;
} else {
offset = this.calculateOffset(el, scrollTop);
}
} else if (this.props.isReverse) {
offset = parentNode.scrollTop;
} else {
offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight;
}
// Here we make sure the element is visible as well as checking the offset
if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) {
this.detachScrollListener();
this.beforeScrollHeight = parentNode.scrollHeight;
this.beforeScrollTop = parentNode.scrollTop;
// Call loadMore after detachScrollListener to allow for non-async loadMore functions
if (typeof this.props.loadMore === 'function') {
this.props.loadMore(this.pageLoaded += 1);
this.loadMore = true;
}
}
}
}, {
key: 'calculateOffset',
value: function calculateOffset(el, scrollTop) {
if (!el) {
return 0;
}
return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight);
}
}, {
key: 'calculateTopPosition',
value: function calculateTopPosition(el) {
if (!el) {
return 0;
}
return el.offsetTop + this.calculateTopPosition(el.offsetParent);
}
}, {
key: 'render',
value: function render() {
var _this2 = this;
var renderProps = this.filterProps(this.props);
var children = renderProps.children,
element = renderProps.element,
hasMore = renderProps.hasMore,
initialLoad = renderProps.initialLoad,
isReverse = renderProps.isReverse,
loader = renderProps.loader,
loadMore = renderProps.loadMore,
pageStart = renderProps.pageStart,
ref = renderProps.ref,
threshold = renderProps.threshold,
useCapture = renderProps.useCapture,
useWindow = renderProps.useWindow,
getScrollParent = renderProps.getScrollParent,
props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']);
props.ref = function (node) {
_this2.scrollComponent = node;
if (ref) {
ref(node);
}
};
var childrenArray = [children];
if (hasMore) {
if (loader) {
isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader);
} else if (this.defaultLoader) {
isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader);
}
}
return _react2.default.createElement(element, props, childrenArray);
}
}]);
return InfiniteScroll;
}(_react.Component);
InfiniteScroll.propTypes = {
children: _propTypes2.default.node.isRequired,
element: _propTypes2.default.node,
hasMore: _propTypes2.default.bool,
initialLoad: _propTypes2.default.bool,
isReverse: _propTypes2.default.bool,
loader: _propTypes2.default.node,
loadMore: _propTypes2.default.func.isRequired,
pageStart: _propTypes2.default.number,
ref: _propTypes2.default.func,
getScrollParent: _propTypes2.default.func,
threshold: _propTypes2.default.number,
useCapture: _propTypes2.default.bool,
useWindow: _propTypes2.default.bool
};
InfiniteScroll.defaultProps = {
element: 'div',
hasMore: false,
initialLoad: true,
pageStart: 0,
ref: null,
threshold: 250,
useWindow: true,
isReverse: false,
useCapture: false,
loader: null,
getScrollParent: null
};
exports["default"] = InfiniteScroll;
module.exports = exports['default'];
/***/ }),
/***/ 26724:
/*!**************************************************************************************!*\
!*** ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/index.js ***!
\**************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
module.exports = __webpack_require__(/*! ./dist/InfiniteScroll */ 51581)
/***/ })
}]);

@ -208,7 +208,7 @@ var PublishShixun = function PublishShixun(_ref) {
id = (res === null || res === void 0 ? void 0 : res.category_id) || 0;
urlList = (_location$pathname = location.pathname) === null || _location$pathname === void 0 ? void 0 : _location$pathname.split('/');
urlList[4] = id;
urlList[3] = type || urlList[3];
urlList[3] = (type === 'hack' ? 'program_homework' : type) || urlList[3];
url = urlList === null || urlList === void 0 ? void 0 : urlList.join('/');
_umi_production_exports.history.push(url);
if (actionTabs.cb) {
@ -4307,7 +4307,7 @@ var ShareModal = function ShareModal(_ref) {
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ShareModalmodules.tips,
children: "\u901A\u8FC7\u5206\u4EAB\u94FE\u63A5\u8BBF\u95EE\u8BFE\u5802\u65F6\uFF0C\u5DF2\u767B\u5F55\u7528\u6237\u53EF\u76F4\u63A5\u4EE5\u5B66\u751F\u8EAB\u4EFD\u52A0\u5165\u8BFE\u5802\uFF0C\u672A\u6CE8\u518C/\u767B\u5F55\u7528\u6237\u5728\u6CE8\u518C/\u767B\u5F55\u540E\u53EF\u76F4\u63A5\u4EE5\u5B66\u751F\u8EAB \u4EFD\u52A0\u5165\u8BFE\u5802\u3002"
children: "\u901A\u8FC7\u5206\u4EAB\u94FE\u63A5\u8BBF\u95EE\u8BFE\u5802\u65F6\uFF0C\u5DF2\u767B\u5F55\u7528\u6237\u53EF\u76F4\u63A5\u4EE5\u5B66\u751F\u8EAB\u4EFD\u52A0\u5165\u8BFE\u5802\uFF0C\u672A\u6CE8\u518C/\u767B\u5F55\u7528\u6237\u5728\u6CE8\u518C/\u767B\u5F55\u540E\u53EF\u76F4\u63A5\u4EE5\u5B66\u751F\u8EAB\u4EFD\u52A0\u5165\u8BFE\u5802\u3002"
})]
})]
})

File diff suppressed because one or more lines are too long

@ -2828,8 +2828,8 @@ var spin = __webpack_require__(71418);
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.10@dayjs/dayjs.min.js
var dayjs_min = __webpack_require__(9498);
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 11 modules
var Header = __webpack_require__(13429);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 12 modules
var Header = __webpack_require__(70378);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/toConsumableArray.js
var toConsumableArray = __webpack_require__(93923);
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);

@ -244,7 +244,7 @@ var RealNameAuthModal = function RealNameAuthModal(_ref) {
closable: false,
destroyOnClose: true,
open: account.actionTabs.key === 'Account-RealNameAuth',
title: "\u7533\u8BF7\u6DFB\u52A0\u5B50\u5355\u4F4D\u540D\u79F0",
title: "\u5B9E\u540D\u8BA4\u8BC1",
width: "600px",
footer: null,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {

@ -635,7 +635,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});

@ -2617,7 +2617,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});

@ -3042,7 +3042,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});
@ -8280,6 +8280,7 @@ var tag = __webpack_require__(12563);
var CombinationSubjectiveQuestionEditor_excluded = ["value", "onChange"],
_excluded2 = ["key", "name"];
@ -8481,7 +8482,7 @@ var SubjectiveQuestionEditor = function SubjectiveQuestionEditor(_ref3) {
})) === null || _v$split === void 0 ? void 0 : _v$split.map(function (item) {
return item === null || item === void 0 ? void 0 : item.trim();
});
var currentKeywordsValue = form.getFieldValue('keywords');
var currentKeywordsValue = form.getFieldValue(['sub_item_banks'].concat(toConsumableArray_default()(keywords)));
var existKeywords = (currentKeywordsValue === null || currentKeywordsValue === void 0 || (_currentKeywordsValue = currentKeywordsValue.map(function (item) {
return item === null || item === void 0 ? void 0 : item.keyword;
})) === null || _currentKeywordsValue === void 0 ? void 0 : _currentKeywordsValue.flat()) || [];

@ -1729,7 +1729,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});
@ -6735,19 +6735,23 @@ var Answer = function Answer(_ref) {
while (1) switch (_context12.prev = _context12.next) {
case 0:
_context12.next = 2;
return (0,shixuns/* execShixun */.Ir)({
return (item.is_jupyter || item.is_jupyter_lab ? shixuns/* execJupyter */.BK : shixuns/* execShixun */.Ir)({
id: item.shixun_identifier
});
case 2:
res = _context12.sent;
if (res !== null && res !== void 0 && res.game_identifier) {
setIframeUrl("/tasks/".concat(res.game_identifier, "?type=exercises&exercisesId=").concat(params.categoryId, "&coursesId=").concat(params.coursesId, "&login=").concat(params.login, "&questionId=").concat(item.question_id, "&isFullScreen=").concat((0,fullscreen/* IsFull */.vp)()).concat(iframeUrlSuffix.current || ""));
if (res !== null && res !== void 0 && res.game_identifier || res !== null && res !== void 0 && res.identifier) {
if (item.is_jupyter_lab || item.is_jupyter) {
setIframeUrl("/tasks/".concat(res.identifier, "/jupyter?type=exercises&exercisesId=").concat(params.categoryId, "&coursesId=").concat(params.coursesId, "&login=").concat(params.login, "&questionId=").concat(item.question_id, "&isFullScreen=").concat((0,fullscreen/* IsFull */.vp)()).concat(iframeUrlSuffix.current || ""));
} else {
setIframeUrl("/tasks/".concat(res.game_identifier, "?type=exercises&exercisesId=").concat(params.categoryId, "&coursesId=").concat(params.coursesId, "&login=").concat(params.login, "&questionId=").concat(item.question_id, "&isFullScreen=").concat((0,fullscreen/* IsFull */.vp)()).concat(iframeUrlSuffix.current || ""));
}
setIframeBlock("block");
}
if ((res === null || res === void 0 ? void 0 : res.status) === -3) {
(0,util/* bindPhone */.eF)();
} else if ((res === null || res === void 0 ? void 0 : res.status) === 2) {
handleResetGame(res === null || res === void 0 ? void 0 : res.message, item.question_id);
handleResetGame(res === null || res === void 0 ? void 0 : res.message, item.question_id, item.is_jupyter_lab, item.is_jupyter);
} else if ((res === null || res === void 0 ? void 0 : res.status) === 3) {
handleInBeta(res === null || res === void 0 ? void 0 : res.message);
}
@ -6761,7 +6765,7 @@ var Answer = function Answer(_ref) {
return _ref11.apply(this, arguments);
};
}();
var handleResetGame = function handleResetGame(url, question_id) {
var handleResetGame = function handleResetGame(url, question_id, is_jupyter_lab, is_jupyter) {
var _url;
url = (_url = url) !== null && _url !== void 0 && _url.includes('.json') ? url : "".concat(url, ".json");
es_modal/* default */.Z.confirm({
@ -6804,13 +6808,15 @@ var Answer = function Answer(_ref) {
}
goShixun({
shixun_identifier: execRes === null || execRes === void 0 ? void 0 : execRes.game_identifier,
question_id: question_id
question_id: question_id,
is_jupyter_lab: is_jupyter_lab,
is_jupyter: is_jupyter
});
// openNewWindow(`/tasks/${execRes.game_identifier}`);
return _context13.abrupt("return");
case 12:
if ((execRes === null || execRes === void 0 ? void 0 : execRes.status) === 2) {
handleResetGame(execRes === null || execRes === void 0 ? void 0 : execRes.message, question_id);
handleResetGame(execRes === null || execRes === void 0 ? void 0 : execRes.message, question_id, is_jupyter_lab, is_jupyter);
} else if ((execRes === null || execRes === void 0 ? void 0 : execRes.status) === 3) {
handleInBeta(execRes === null || execRes === void 0 ? void 0 : execRes.message);
}

@ -1212,7 +1212,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});
@ -4116,19 +4116,23 @@ var Answer = function Answer(_ref) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
_context4.next = 2;
return (0,shixuns/* execShixun */.Ir)({
return (item.is_jupyter || item.is_jupyter_lab ? shixuns/* execJupyter */.BK : shixuns/* execShixun */.Ir)({
id: item.shixun_identifier
});
case 2:
res = _context4.sent;
if (res !== null && res !== void 0 && res.game_identifier) {
setIframeUrl("/tasks/".concat(res.game_identifier, "?type=exercises&exercisesId=").concat(params.categoryId, "&coursesId=").concat(params.coursesId, "&login=").concat(params.login, "&questionId=").concat(item.question_id));
if (res !== null && res !== void 0 && res.game_identifier || res !== null && res !== void 0 && res.identifier) {
if (item.is_jupyter_lab || item.is_jupyter) {
setIframeUrl("/tasks/".concat(res.identifier, "/jupyter?type=exercises&exercisesId=").concat(params.categoryId, "&coursesId=").concat(params.coursesId, "&login=").concat(params.login, "&questionId=").concat(item.question_id));
} else {
setIframeUrl("/tasks/".concat(res.game_identifier, "?type=exercises&exercisesId=").concat(params.categoryId, "&coursesId=").concat(params.coursesId, "&login=").concat(params.login, "&questionId=").concat(item.question_id));
}
setIframeBlock("block");
}
if ((res === null || res === void 0 ? void 0 : res.status) === -3) {
(0,util/* bindPhone */.eF)();
} else if ((res === null || res === void 0 ? void 0 : res.status) === 2) {
handleResetGame(res === null || res === void 0 ? void 0 : res.message, item.question_id);
handleResetGame(res === null || res === void 0 ? void 0 : res.message, item.question_id, item.is_jupyter_lab, item.is_jupyter);
} else if ((res === null || res === void 0 ? void 0 : res.status) === 3) {
handleInBeta(res === null || res === void 0 ? void 0 : res.message);
}
@ -4142,7 +4146,7 @@ var Answer = function Answer(_ref) {
return _ref4.apply(this, arguments);
};
}();
var handleResetGame = function handleResetGame(url, question_id) {
var handleResetGame = function handleResetGame(url, question_id, is_jupyter_lab, is_jupyter) {
var _url;
url = (_url = url) !== null && _url !== void 0 && _url.includes('.json') ? url : "".concat(url, ".json");
es_modal/* default */.Z.confirm({
@ -4185,12 +4189,14 @@ var Answer = function Answer(_ref) {
}
goShixun({
shixun_identifier: execRes === null || execRes === void 0 ? void 0 : execRes.game_identifier,
question_id: question_id
question_id: question_id,
is_jupyter_lab: is_jupyter_lab,
is_jupyter: is_jupyter
});
return _context5.abrupt("return");
case 12:
if ((execRes === null || execRes === void 0 ? void 0 : execRes.status) === 2) {
handleResetGame(execRes === null || execRes === void 0 ? void 0 : execRes.message, question_id);
handleResetGame(execRes === null || execRes === void 0 ? void 0 : execRes.message, question_id, is_jupyter_lab, is_jupyter);
} else if ((execRes === null || execRes === void 0 ? void 0 : execRes.status) === 3) {
handleInBeta(execRes === null || execRes === void 0 ? void 0 : execRes.message);
}

@ -2617,7 +2617,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});

@ -637,7 +637,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});

@ -664,7 +664,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});

@ -1212,7 +1212,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});
@ -3693,6 +3693,9 @@ function reducer(state, action) {
});
// EXTERNAL MODULE: ./src/service/classrooms.ts
var classrooms = __webpack_require__(24171);
// EXTERNAL MODULE: ./node_modules/_react-draggable@4.4.6@react-draggable/build/cjs/cjs.js
var cjs = __webpack_require__(12911);
var cjs_default = /*#__PURE__*/__webpack_require__.n(cjs);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ShixunHomeworks/Comment/components/ShixunStatic.tsx
@ -3710,6 +3713,8 @@ var classrooms = __webpack_require__(24171);
var ShixunStatic_ShixunsListPage = function ShixunsListPage(_ref) {
var shixunHomeworks = _ref.shixunHomeworks,
autoHeight = _ref.autoHeight,
@ -3718,6 +3723,44 @@ var ShixunStatic_ShixunsListPage = function ShixunsListPage(_ref) {
var shixunWorkReport = shixunHomeworks.shixunWorkReport;
var stage_list = shixunWorkReport.stage_list,
work_id = shixunWorkReport.work_id;
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
open = _useState2[0],
setOpen = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(true),
_useState4 = slicedToArray_default()(_useState3, 2),
disabled = _useState4[0],
setDisabled = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)({
left: 0,
top: 0,
bottom: 0,
right: 0
}),
_useState6 = slicedToArray_default()(_useState5, 2),
bounds = _useState6[0],
setBounds = _useState6[1];
var draggleRef = (0,_react_17_0_2_react.useRef)(null);
var _useState7 = (0,_react_17_0_2_react.useState)(false),
_useState8 = slicedToArray_default()(_useState7, 2),
items = _useState8[0],
setitems = _useState8[1];
var _onStart = function onStart(_event, uiData) {
var _draggleRef$current;
var _window$document$docu = window.document.documentElement,
clientWidth = _window$document$docu.clientWidth,
clientHeight = _window$document$docu.clientHeight;
var targetRect = (_draggleRef$current = draggleRef.current) === null || _draggleRef$current === void 0 ? void 0 : _draggleRef$current.getBoundingClientRect();
if (!targetRect) {
return;
}
setBounds({
left: -targetRect.left + uiData.x,
right: clientWidth - (targetRect.right - uiData.x),
top: -targetRect.top + uiData.y,
bottom: clientHeight - (targetRect.bottom - uiData.y)
});
};
var params = (0,_umi_production_exports.useParams)();
var hasPower = (0,authority/* isAdmin */.GJ)();
var options = {
@ -3771,22 +3814,24 @@ var ShixunStatic_ShixunsListPage = function ShixunsListPage(_ref) {
case 2:
res = _context.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
es_modal/* default */.Z.info({
title: "代码内容",
width: 900,
centered: true,
icon: null,
okText: "关闭",
className: "".concat(Commentmodules.lookCode, " custom-modal-divider"),
content: /*#__PURE__*/(0,jsx_runtime.jsx)(monaco_editor/* default */.ZP, {
height: 500,
autoHeight: autoHeight,
language: "python",
theme: "default",
value: decodeURIComponent(escape(window.atob((res === null || res === void 0 ? void 0 : res.content) || ""))),
options: options
})
});
setitems(res);
setOpen(true);
// Modal.info({
// title: "代码内容",
// width: 900,
// centered: true,
// icon: null,
// okText: "关闭",
// className: `${styles.lookCode} custom-modal-divider`,
// content: <MonacoEditor
// height={500}
// autoHeight={autoHeight}
// language="python"
// theme="default"
// value={decodeURIComponent(escape(window.atob(res?.content || "")))}
// options={options}
// />
// })
}
case 4:
case "end":
@ -3846,8 +3891,8 @@ var ShixunStatic_ShixunsListPage = function ShixunsListPage(_ref) {
// const datas = arrTrans(5, shixunWorkReport.shixun_detail)
var datas = shixunWorkReport.shixun_detail;
return /*#__PURE__*/(0,jsx_runtime.jsx)(_react_17_0_2_react.Fragment, {
children: datas === null || datas === void 0 ? void 0 : datas.map(function (val, key) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(_react_17_0_2_react.Fragment, {
children: [datas === null || datas === void 0 ? void 0 : datas.map(function (val, key) {
var _val$outputs;
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
@ -3916,7 +3961,68 @@ var ShixunStatic_ShixunsListPage = function ShixunsListPage(_ref) {
})]
}, key)
}, key);
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_modal/* default */.Z, {
open: open,
width: 900,
okText: "\u5173\u95ED",
cancelButtonProps: {
style: {
display: 'none'
}
},
onOk: function onOk() {
setitems({});
setOpen(false);
},
onCancel: function onCancel() {
setitems({});
setOpen(false);
},
title: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: '100%',
cursor: 'move'
},
onMouseOver: function onMouseOver() {
if (disabled) {
setDisabled(false);
}
},
onMouseOut: function onMouseOut() {
setDisabled(true);
}
// fix eslintjsx-a11y/mouse-events-have-key-events
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/mouse-events-have-key-events.md
,
onFocus: function onFocus() {},
onBlur: function onBlur() {}
// end
,
children: "\u4EE3\u7801\u5185\u5BB9"
}),
modalRender: function modalRender(modal) {
return /*#__PURE__*/(0,jsx_runtime.jsx)((cjs_default()), {
disabled: disabled,
bounds: bounds,
nodeRef: draggleRef,
onStart: function onStart(event, uiData) {
return _onStart(event, uiData);
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
ref: draggleRef,
children: modal
})
});
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(monaco_editor/* default */.ZP, {
height: 500,
autoHeight: autoHeight,
language: "python",
theme: "default",
value: decodeURIComponent(escape(window.atob((items === null || items === void 0 ? void 0 : items.content) || ""))),
options: options
})
})]
});
};
/* harmony default export */ var ShixunStatic = ((0,_umi_production_exports.connect)(function (_ref3) {

@ -1971,7 +1971,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});

@ -328,8 +328,8 @@ var DownIntoClass = function DownIntoClass(_ref) {
case 3:
res = _context.sent;
if (res) {
setList([].concat(toConsumableArray_default()(list), toConsumableArray_default()(res === null || res === void 0 ? void 0 : res.course_groups)));
saveList.current = search == "" ? [].concat(toConsumableArray_default()(list), toConsumableArray_default()(res === null || res === void 0 ? void 0 : res.course_groups)) : [].concat(toConsumableArray_default()(saveList.current), toConsumableArray_default()(res === null || res === void 0 ? void 0 : res.course_groups.filter(function (e) {
setList(toConsumableArray_default()(res === null || res === void 0 ? void 0 : res.course_groups));
saveList.current = search == "" ? toConsumableArray_default()(res === null || res === void 0 ? void 0 : res.course_groups) : [].concat(toConsumableArray_default()(saveList.current), toConsumableArray_default()(res === null || res === void 0 ? void 0 : res.course_groups.filter(function (e) {
var _e$name;
return (_e$name = e.name) === null || _e$name === void 0 ? void 0 : _e$name.includes(search);
})));

@ -1464,11 +1464,11 @@ var informationPage = function informationPage(_ref) {
style: {
display: 'flex'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
width: '32%'
width: '40%'
},
children: "https://www.educoder.net/competitions/"
children: [window.location.origin, "/competitions/detail/"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "topLeft",
color: "#fb3226",
@ -5803,7 +5803,7 @@ var documentPage = function documentPage(_ref) {
setquestion_finish(res === null || res === void 0 ? void 0 : res.question_finish);
setname_show(res === null || res === void 0 || (_res$competition = res.competition) === null || _res$competition === void 0 ? void 0 : _res$competition.name);
settime_show(dayjs_min_default()(res === null || res === void 0 || (_res$competition2 = res.competition) === null || _res$competition2 === void 0 ? void 0 : _res$competition2.start_time).format('YYYY-MM-DD HH:mm') + ' ~ ' + dayjs_min_default()(res === null || res === void 0 || (_res$competition3 = res.competition) === null || _res$competition3 === void 0 ? void 0 : _res$competition3.end_time).format('YYYY-MM-DD HH:mm'));
seturl_show('https://www.educoder.net/competitions/' + (res === null || res === void 0 ? void 0 : res.identifier) + '/edit');
seturl_show("".concat(window.location.origin, "/competitions/detail/") + (res === null || res === void 0 ? void 0 : res.identifier));
var obj = '';
for (var i in res === null || res === void 0 ? void 0 : res.data) {
if (Number(i) == Number((res === null || res === void 0 ? void 0 : res.data.length) - 1)) {
@ -5848,7 +5848,7 @@ var documentPage = function documentPage(_ref) {
//如果要保留文本格式,比如保留换行符,或者多行文本,可以使用 textarea 标签,再配和模板字符串 ` `
//const input = document.createElement('textarea')
// 将想要复制的值
input.value = 'https://www.educoder.net/competitions/' + form.getFieldValue('identifier');
input.value = "".concat(window.location.origin, "/competitions/detail/") + form.getFieldValue('identifier');
// 页面底部追加输入框
document.body.appendChild(input);
// 选中输入框
@ -6043,7 +6043,7 @@ var documentPage = function documentPage(_ref) {
colon: false,
name: "identifier",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
prefix: "https://www.educoder.net/competitions/",
prefix: "".concat(window.location.origin, "/competitions/detail/"),
disabled: true,
className: documentmodules.form_item_item
})
@ -6793,7 +6793,7 @@ var competitionsPage = function competitionsPage(_ref) {
_context4.next = 5;
return _uploadFiles(item, {
login: user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login,
container_type: 'ResourceCenter',
container_type: 'CompetitionWorkMode',
container_id: null,
description: '',
realFileName: true

@ -2081,7 +2081,7 @@ var Index_competitionsPage = function competitionsPage(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(list/* default */.Z.Item.Meta, {
style: {
marginBottom: '0px',
width: "87%"
width: !(!(item !== null && item !== void 0 && item.enroll_end_time) && (item === null || item === void 0 ? void 0 : item.competition_status) === 'progressing' && !item.bonus) ? "100%" : "87%"
},
avatar: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
className: Indexmodules.divimg,
@ -2178,7 +2178,7 @@ var Index_competitionsPage = function competitionsPage(_ref) {
})]
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
}), !(!(item !== null && item !== void 0 && item.enroll_end_time) && (item === null || item === void 0 ? void 0 : item.competition_status) === 'progressing' && !item.bonus) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
width: '13%',
alignItems: 'flex-end',

@ -301,8 +301,18 @@ function fetchRepos(id) {
}
//添加新方法
function startInit(id, params) {
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/start.json"), params || {});
function startInit(id) {
var _sessionStorage;
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var taskUniqueSession = (_sessionStorage = sessionStorage) === null || _sessionStorage === void 0 ? void 0 : _sessionStorage.getItem('taskUniqueSession');
if (!taskUniqueSession) {
var srt = String(Math.random());
sessionStorage.setItem('taskUniqueSession', srt);
taskUniqueSession = srt;
}
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/start.json"), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), {}, {
tpi_session_tag: taskUniqueSession
}));
}
function closeSSh(id) {
return get("myshixuns/".concat(id, "/reset_pod.json"));

@ -1174,7 +1174,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});

@ -6717,8 +6717,8 @@ var TabPane = tabs/* default */.Z.TabPane;
/* harmony default export */ var Collaboratemodules = ({"bg":"bg___Onnmh","wrap":"wrap___VTtdp","modal":"modal___MArZa","content":"content___a69LK","head":"head____zVzr","headCount":"headCount___GhK7o","button":"button___DoAh3","itemWrap":"itemWrap___UR35k","imgWrap":"imgWrap___DpS0R","img":"img___N9se3","manager":"manager___m4Mzg","itemContent":"itemContent___Ut7hr","nameWrap":"nameWrap___y73uS","name":"name___hJUHg","actionGroup":"actionGroup___QEytf","deleteIcon":"deleteIcon___XGFcN","schoolWrap":"schoolWrap___qsoOp","school":"school___yh8l2","countWrap":"countWrap___MQKPn","deletetitle":"deletetitle___nAICN","yseTitle":"yseTitle___t5fzp"});
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/PlusOutlined.js + 1 modules
var PlusOutlined = __webpack_require__(378);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 11 modules
var Header = __webpack_require__(13429);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 12 modules
var Header = __webpack_require__(70378);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(4781);
;// CONCATENATED MODULE: ./src/pages/Innovation/Tasks/Collaborate/index.tsx

@ -2909,8 +2909,8 @@ var TabPane = tabs/* default */.Z.TabPane;
/* harmony default export */ var Collaboratemodules = ({"bg":"bg___Onnmh","wrap":"wrap___VTtdp","modal":"modal___MArZa","content":"content___a69LK","head":"head____zVzr","headCount":"headCount___GhK7o","button":"button___DoAh3","itemWrap":"itemWrap___UR35k","imgWrap":"imgWrap___DpS0R","img":"img___N9se3","manager":"manager___m4Mzg","itemContent":"itemContent___Ut7hr","nameWrap":"nameWrap___y73uS","name":"name___hJUHg","actionGroup":"actionGroup___QEytf","deleteIcon":"deleteIcon___XGFcN","schoolWrap":"schoolWrap___qsoOp","school":"school___yh8l2","countWrap":"countWrap___MQKPn","deletetitle":"deletetitle___nAICN","yseTitle":"yseTitle___t5fzp"});
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/PlusOutlined.js + 1 modules
var PlusOutlined = __webpack_require__(378);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 11 modules
var Header = __webpack_require__(13429);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 12 modules
var Header = __webpack_require__(70378);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(4781);
;// CONCATENATED MODULE: ./src/pages/Innovation/Tasks/Collaborate/index.tsx

@ -868,7 +868,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});

@ -3116,7 +3116,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});
@ -8085,6 +8085,7 @@ var tag = __webpack_require__(12563);
var CombinationSubjectiveQuestionEditor_excluded = ["value", "onChange"],
_excluded2 = ["key", "name"];
@ -8290,7 +8291,7 @@ var SubjectiveQuestionEditor = function SubjectiveQuestionEditor(_ref3) {
})) === null || _v$split === void 0 ? void 0 : _v$split.map(function (item) {
return item.trim();
});
var currentKeywordsValue = form.getFieldValue('keywords');
var currentKeywordsValue = form.getFieldValue(['sub_item_banks'].concat(toConsumableArray_default()(keywords)));
var existKeywords = (currentKeywordsValue === null || currentKeywordsValue === void 0 || (_currentKeywordsValue = currentKeywordsValue.map(function (item) {
return item === null || item === void 0 ? void 0 : item.keyword;
})) === null || _currentKeywordsValue === void 0 ? void 0 : _currentKeywordsValue.flat()) || [];

@ -635,7 +635,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});

@ -721,7 +721,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});

@ -894,7 +894,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});

@ -969,7 +969,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});

@ -3685,6 +3685,7 @@ var QuestionCircleOutlined = __webpack_require__(98815);
var CombinationSubjectiveQuestionEditor_excluded = ["value", "onChange"],
_excluded2 = ["key", "name"];
@ -3894,7 +3895,7 @@ var CombinationSubjectiveQuestionEditor_SubjectiveQuestionEditor = function Subj
})) === null || _v$split === void 0 ? void 0 : _v$split.map(function (item) {
return item === null || item === void 0 ? void 0 : item.trim();
});
var currentKeywordsValue = form.getFieldValue('keywords');
var currentKeywordsValue = form.getFieldValue(['sub_item_banks'].concat(toConsumableArray_default()(keywords)));
var existKeywords = (currentKeywordsValue === null || currentKeywordsValue === void 0 || (_currentKeywordsValue = currentKeywordsValue.map(function (item) {
return item === null || item === void 0 ? void 0 : item.keyword;
})) === null || _currentKeywordsValue === void 0 ? void 0 : _currentKeywordsValue.flat()) || [];
@ -4615,7 +4616,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});

@ -1538,7 +1538,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});
@ -5110,6 +5110,7 @@ var env = __webpack_require__(26078);
var ExportModal = function ExportModal(_ref) {
var problemset = _ref.problemset,
dispatch = _ref.dispatch;
@ -5117,6 +5118,10 @@ var ExportModal = function ExportModal(_ref) {
_useState2 = slicedToArray_default()(_useState, 2),
value = _useState2[0],
setValue = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(true),
_useState4 = slicedToArray_default()(_useState3, 2),
include_children = _useState4[0],
setinclude_children = _useState4[1];
var handleCancel = function handleCancel() {
dispatch({
type: 'problemset/setActionTabs',
@ -5139,7 +5144,7 @@ var ExportModal = function ExportModal(_ref) {
// })
// handleCancel()
console.log(value[0], 22);
uploadRequest({}, "/api/item_banks/export.xlsx?group_id=".concat(value[0]), function (res, xhr) {
uploadRequest({}, "/api/item_banks/export.xlsx?group_id=".concat(value[0], "&include_children=").concat(include_children), function (res, xhr) {
var _res$target$response;
if (((_res$target$response = res.target.response) === null || _res$target$response === void 0 ? void 0 : _res$target$response.type) === 'application/json') {
var reader = new FileReader();
@ -5197,14 +5202,36 @@ var ExportModal = function ExportModal(_ref) {
wrapClassName: ExportFolderModalmodules.customModal,
onCancel: handleCancel,
onOk: handleOk,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
className: ExportFolderModalmodules.exportModal,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(CustomTree/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
marginBottom: 20
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("label", {
style: {
marginRight: 20
},
children: "\u5BFC\u51FA\u8BBE\u7F6E"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default.Group */.ZP.Group, {
onChange: function onChange(e) {
setinclude_children(e.target.value);
},
value: include_children,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
value: true,
children: "\u5305\u542B\u5B50\u6587\u4EF6\u5939"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
value: false,
children: "\u4EC5\u5F53\u524D\u6587\u4EF6\u5939"
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(CustomTree/* default */.Z, {
value: value,
onChange: function onChange(e) {
return setValue(e);
}
})
})]
})
});
};

@ -397,7 +397,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});

@ -896,7 +896,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});

@ -285,8 +285,8 @@ var TabPane = tabs/* default */.Z.TabPane;
/* harmony default export */ var Collaboratorsmodules = ({"bg":"bg___sOdPb","wrap":"wrap___HoeSx","modal":"modal___t4bFU","content":"content___VMlwP","head":"head___eFHNj","headCount":"headCount___q7_8n","button":"button___OaGYh","itemWrap":"itemWrap___EgP_Y","imgWrap":"imgWrap___VcWR7","img":"img___PgTvY","manager":"manager___vGc7D","itemContent":"itemContent___JJG1i","nameWrap":"nameWrap___h4JTB","name":"name___yhHE5","actionGroup":"actionGroup___LDeZm","deleteIcon":"deleteIcon___Mmc7F","schoolWrap":"schoolWrap___Ru_DY","school":"school___zbcZj","countWrap":"countWrap___Mrp5n"});
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/DownOutlined.js + 1 modules
var DownOutlined = __webpack_require__(42884);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 11 modules
var Header = __webpack_require__(13429);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 12 modules
var Header = __webpack_require__(70378);
;// CONCATENATED MODULE: ./src/pages/Shixuns/Detail/Collaborators/index.tsx

@ -930,7 +930,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});

@ -747,7 +747,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});
@ -12697,8 +12697,8 @@ var TabPane = es_tabs/* default */.Z.TabPane;
/* harmony default export */ var Collaboratemodules = ({"bg":"bg___GzXpp","wrap":"wrap___A40jS","modal":"modal___Zz7dC","content":"content___H5ZN2","head":"head___o5t32","headCount":"headCount___eBMPN","button":"button___YSSGm","itemWrap":"itemWrap___iPWUC","imgWrap":"imgWrap___T70Es","img":"img___oumA5","manager":"manager___VdXG8","itemContent":"itemContent____npAh","nameWrap":"nameWrap___nazId","name":"name___Z48aE","actionGroup":"actionGroup___eScAq","deleteIcon":"deleteIcon___FK_OA","schoolWrap":"schoolWrap___jJuIm","school":"school___kSMwT","countWrap":"countWrap___p7epV","deletetitle":"deletetitle___uVCHi","yseTitle":"yseTitle___L6JF9"});
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/DownOutlined.js + 1 modules
var DownOutlined = __webpack_require__(42884);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 11 modules
var components_Header = __webpack_require__(13429);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 12 modules
var components_Header = __webpack_require__(70378);
;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/body/Collaborate/index.tsx
@ -13367,7 +13367,7 @@ var MirrorModal = function MirrorModal(_ref) {
})(MirrorModal));
;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/body/Environment/SettingDrawer/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var SettingDrawermodules = ({"flex_box_center":"flex_box_center___jnFK3","flex_space_between":"flex_space_between___JoMuQ","flex_box_vertical_center":"flex_box_vertical_center___XkWzp","flex_box_center_end":"flex_box_center_end___kfVJX","flex_box_column":"flex_box_column___mfxox","content":"content___ujW8g","explain":"explain___vGa5a","tabs":"tabs___MbGuX","active":"active___SCmkJ","btns":"btns___MiEQa","must":"must___n8wNT","popover":"popover___wqXWh","zybzForm":"zybzForm___m1nC0","graaytitle":"graaytitle___vdUDn","dataPicker":"dataPicker___RiEgz"});
/* harmony default export */ var SettingDrawermodules = ({"flex_box_center":"flex_box_center___jnFK3","flex_space_between":"flex_space_between___JoMuQ","flex_box_vertical_center":"flex_box_vertical_center___XkWzp","flex_box_center_end":"flex_box_center_end___kfVJX","flex_box_column":"flex_box_column___mfxox","content":"content___ujW8g","explain":"explain___vGa5a","tabs":"tabs___MbGuX","active":"active___SCmkJ","btns":"btns___MiEQa","must":"must___n8wNT","popover":"popover___wqXWh","zybzForm":"zybzForm___m1nC0","graaytitle":"graaytitle___vdUDn","dataPicker":"dataPicker___RiEgz","examineStatus":"examineStatus___OCyYC","contacts":"contacts___MWvKz","contacts_img":"contacts_img___kiMTs","suc_status":"suc_status___p81iO","fail_status":"fail_status___Rv54W","bohui":"bohui___wtuT5"});
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/drawer/index.js + 9 modules
var drawer = __webpack_require__(43428);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/alert/index.js + 3 modules
@ -13509,6 +13509,8 @@ var authority = __webpack_require__(71633);
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.10@dayjs/dayjs.min.js
var dayjs_min = __webpack_require__(9498);
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/CheckCircleFilled.js + 1 modules
var CheckCircleFilled = __webpack_require__(95934);
;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/body/Environment/SettingDrawer/index.tsx
@ -13525,10 +13527,12 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
var timeFormat = 'YYYY-MM-DD HH:mm';
var SettingDrawer = function SettingDrawer(_ref) {
var _environment$filter, _schoolList$filter;
var visible = _ref.visible,
var _environment$filter, _shixunsDetail$detail2, _schoolList$filter;
var shixunsDetail = _ref.shixunsDetail,
visible = _ref.visible,
onOk = _ref.onOk,
onCancel = _ref.onCancel,
dispatch = _ref.dispatch,
@ -13574,10 +13578,10 @@ var SettingDrawer = function SettingDrawer(_ref) {
_useState18 = slicedToArray_default()(_useState17, 2),
survivalTime = _useState18[0],
setSurvivalTime = _useState18[1]; //时长
var _useState19 = (0,_react_17_0_2_react.useState)(false),
var _useState19 = (0,_react_17_0_2_react.useState)(null),
_useState20 = slicedToArray_default()(_useState19, 2),
isImportantShixun = _useState20[0],
setIsImportantShixun = _useState20[1]; //实验资源优先保障
stauts = _useState20[0],
setStatus = _useState20[1]; //实验资源优先保障当前状态
var _Form$useForm = es_form/* default */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
form = _Form$useForm2[0];
@ -13585,13 +13589,36 @@ var SettingDrawer = function SettingDrawer(_ref) {
_useState22 = slicedToArray_default()(_useState21, 2),
schoolList = _useState22[0],
setSchoolList = _useState22[1];
var tabs = [{
id: 1,
name: '评测脚本设置'
}, {
id: 2,
name: '实验环境设置'
}];
var _useState23 = (0,_react_17_0_2_react.useState)(''),
_useState24 = slicedToArray_default()(_useState23, 2),
verifyReason = _useState24[0],
setVerifyReason = _useState24[1]; //原因
var _useState25 = (0,_react_17_0_2_react.useState)([{
id: 1,
name: '评测脚本设置'
}, {
id: 2,
name: '实验环境设置'
}]),
_useState26 = slicedToArray_default()(_useState25, 2),
tabs = _useState26[0],
setTabs = _useState26[1];
(0,_react_17_0_2_react.useEffect)(function () {
var _shixunsDetail$detail;
if ((0,authority/* isSuperAdmins */.Ny)() || shixunsDetail !== null && shixunsDetail !== void 0 && (_shixunsDetail$detail = shixunsDetail.detail) !== null && _shixunsDetail$detail !== void 0 && _shixunsDetail$detail.manager_of_shixun) {
setTabs([{
id: 1,
name: '评测脚本设置'
}, {
id: 2,
name: '实验环境设置'
}, {
id: 3,
name: '实验资源优先保障'
}]);
}
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
if (id && visible) {
getData();
@ -13605,9 +13632,7 @@ var SettingDrawer = function SettingDrawer(_ref) {
_data$shixun,
_data$shixun2,
_data$shixun3,
_data$shixun4,
data,
_data$shixun5,
infoVal,
_data,
_args = arguments;
@ -13636,16 +13661,15 @@ var SettingDrawer = function SettingDrawer(_ref) {
setStandardScripts((data === null || data === void 0 ? void 0 : data.standard_scripts) || []);
setCloseInternet(((_data$shixun = data.shixun) === null || _data$shixun === void 0 ? void 0 : _data$shixun.close_internet) || false);
setSurvivalTime((_data$shixun2 = data.shixun) === null || _data$shixun2 === void 0 ? void 0 : _data$shixun2.survival_time);
setIsImportantShixun(((_data$shixun3 = data.shixun) === null || _data$shixun3 === void 0 ? void 0 : _data$shixun3.is_important_shixun) || false);
if ((_data$shixun4 = data.shixun) !== null && _data$shixun4 !== void 0 && _data$shixun4.is_important_shixun) {
infoVal = (_data$shixun5 = data.shixun) === null || _data$shixun5 === void 0 ? void 0 : _data$shixun5.important_shixun_configs;
form.setFieldsValue({
identifier: infoVal === null || infoVal === void 0 ? void 0 : infoVal.identifier,
people_number: infoVal === null || infoVal === void 0 ? void 0 : infoVal.people_number,
school_id: infoVal === null || infoVal === void 0 ? void 0 : infoVal.school_id,
times: [dayjs_min_default()(infoVal !== null && infoVal !== void 0 && infoVal.start_time ? infoVal === null || infoVal === void 0 ? void 0 : infoVal.start_time : ''), dayjs_min_default()(infoVal !== null && infoVal !== void 0 && infoVal.end_time ? infoVal === null || infoVal === void 0 ? void 0 : infoVal.end_time : '')]
});
}
infoVal = (_data$shixun3 = data.shixun) === null || _data$shixun3 === void 0 ? void 0 : _data$shixun3.important_shixun_configs;
form.setFieldsValue({
identifier: (infoVal === null || infoVal === void 0 ? void 0 : infoVal.identifier) || '',
people_number: (infoVal === null || infoVal === void 0 ? void 0 : infoVal.people_number) || '',
school_id: (infoVal === null || infoVal === void 0 ? void 0 : infoVal.school_id) || '',
times: infoVal !== null && infoVal !== void 0 && infoVal.start_time && infoVal !== null && infoVal !== void 0 && infoVal.end_time ? [dayjs_min_default()(infoVal === null || infoVal === void 0 ? void 0 : infoVal.start_time), dayjs_min_default()(infoVal === null || infoVal === void 0 ? void 0 : infoVal.end_time)] : ['', '']
});
setVerifyReason((infoVal === null || infoVal === void 0 ? void 0 : infoVal.verify_reason) || '');
setStatus((infoVal === null || infoVal === void 0 ? void 0 : infoVal.process) || null);
}
if (res.status === 0 && shixun_environment_id) {
_data = res.data;
@ -13771,7 +13795,7 @@ var SettingDrawer = function SettingDrawer(_ref) {
};
var handleOk = /*#__PURE__*/function () {
var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() {
var res, formInfo, query;
var res, query, formInfo, _query;
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
@ -13800,42 +13824,57 @@ var SettingDrawer = function SettingDrawer(_ref) {
res = _context5.sent;
case 8:
if (!(active === 2)) {
_context5.next = 18;
_context5.next = 14;
break;
}
formInfo = form.getFieldsValue();
_context5.next = 12;
return form.validateFields();
case 12:
setBtnLoading(true);
query = {
close_internet: closeInternet,
survival_time: survivalTime,
is_important_shixun: isImportantShixun
survival_time: survivalTime
};
if (isImportantShixun) {
query.important_shixun_configs = {
identifier: formInfo === null || formInfo === void 0 ? void 0 : formInfo.identifier,
people_number: formInfo === null || formInfo === void 0 ? void 0 : formInfo.people_number,
school_id: formInfo === null || formInfo === void 0 ? void 0 : formInfo.school_id,
start_time: dayjs_min_default()(formInfo === null || formInfo === void 0 ? void 0 : formInfo.times[0]).format("YYYY-MM-DD HH:mm"),
end_time: dayjs_min_default()(formInfo === null || formInfo === void 0 ? void 0 : formInfo.times[1]).format("YYYY-MM-DD HH:mm")
};
}
_context5.next = 17;
_context5.next = 13;
return (0,fetch/* default */.ZP)("/api/shixuns/".concat(params.id, "/update_environment_setting.json"), {
method: 'put',
body: query
});
case 17:
case 13:
res = _context5.sent;
case 14:
if (!(active === 3)) {
_context5.next = 24;
break;
}
formInfo = form.getFieldsValue();
_context5.next = 18;
return form.validateFields();
case 18:
setBtnLoading(true);
_query = {
close_internet: closeInternet,
survival_time: survivalTime
};
_query.important_shixun_configs = {
identifier: formInfo === null || formInfo === void 0 ? void 0 : formInfo.identifier,
people_number: formInfo === null || formInfo === void 0 ? void 0 : formInfo.people_number,
school_id: formInfo === null || formInfo === void 0 ? void 0 : formInfo.school_id,
start_time: dayjs_min_default()(formInfo === null || formInfo === void 0 ? void 0 : formInfo.times[0]).format("YYYY-MM-DD HH:mm"),
end_time: dayjs_min_default()(formInfo === null || formInfo === void 0 ? void 0 : formInfo.times[1]).format("YYYY-MM-DD HH:mm")
};
_context5.next = 23;
return (0,fetch/* default */.ZP)("/api/shixuns/".concat(params.id, "/resources_first_ensure.json"), {
method: 'post',
body: _query
});
case 23:
res = _context5.sent;
case 24:
if (res.status === 0) {
message/* default */.ZP.success('保存成功');
message/* default */.ZP.success("".concat(active == 3 ? '提交申请成功' : '保存成功'));
getData();
onOk();
}
setBtnLoading(false);
case 20:
case 26:
case "end":
return _context5.stop();
}
@ -13862,6 +13901,17 @@ var SettingDrawer = function SettingDrawer(_ref) {
var integerParser = function integerParser(value) {
return parseInt(value || '0', 10);
};
var validateDateRange = function validateDateRange(_, value) {
if (value && value.length === 2) {
var _value = slicedToArray_default()(value, 2),
start = _value[0],
end = _value[1];
if (!start || !end) {
return Promise.reject(new Error('请选择起始时间和结束时间'));
}
}
return Promise.resolve();
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(drawer/* default */.Z, {
title: null,
@ -13910,7 +13960,7 @@ var SettingDrawer = function SettingDrawer(_ref) {
closable: true
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: "mt30",
className: "mt20",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-grey-333 font16",
children: "\u8FD0\u884C\u73AF\u5883"
@ -13947,7 +13997,7 @@ var SettingDrawer = function SettingDrawer(_ref) {
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: "mt30",
className: "mt20",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-grey-333 font16",
children: "\u8BC4\u6D4B\u811A\u672C"
@ -14024,7 +14074,7 @@ var SettingDrawer = function SettingDrawer(_ref) {
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: "mt30",
className: "mt20",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-grey-333 font16 ml30 mr10",
children: "\u5B9E\u8BAD\u5BB9\u5668\u7F51\u7EDC"
@ -14043,7 +14093,7 @@ var SettingDrawer = function SettingDrawer(_ref) {
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: "mt30",
className: "mt20",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-grey-333 font16 mr10",
children: "\u5B9E\u9A8C\u73AF\u5883\u4F7F\u7528\u65F6\u957F"
@ -14063,35 +14113,24 @@ var SettingDrawer = function SettingDrawer(_ref) {
className: "ml10 c-grey-999 font14",
children: "\u5206"
})]
}), (0,authority/* isSuperAdmins */.Ny)() && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
})]
}), active === 3 && ((0,authority/* isSuperAdmins */.Ny)() || (shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$detail2 = shixunsDetail.detail) === null || _shixunsDetail$detail2 === void 0 ? void 0 : _shixunsDetail$detail2.manager_of_shixun)) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
flex: 1,
overflowY: 'auto'
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: "mt30",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-grey-333 font16 mr10",
children: "\u5B9E\u9A8C\u8D44\u6E90\u4F18\u5148\u4FDD\u969C"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_switch/* default */.Z, {
checked: isImportantShixun,
onChange: function onChange(e) {
return setIsImportantShixun(e);
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml10 c-grey-333 font14",
children: "\u8D44\u6E90\u4FDD\u969C"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "c-grey-999 font14",
children: ["\uFF08\u4EC5\u9650\u91CD\u8981\u4E14\u9700\u8981\u8D44\u6E90\u4FDD\u969C\u7684\u5B9E\u8BAD\u3002", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-grey-999 font14 c-red",
children: "\u5F00\u542F\u540E\uFF0C\u5FC5\u987B\u901A\u77E5\u5E73\u53F0\u8FD0\u7EF4\u4EBA\u5458\u8FDB\u884C\u652F\u6301\u3002"
}), "\uFF09"]
}),
className: "mt20",
children: [
/*#__PURE__*/
// 资源保障开启填写表单
isImportantShixun && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
form: form,
layout: "horizontal",
className: SettingDrawermodules.zybzForm,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: "mt30",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "c-grey-333 font16 mr10",
style: {
@ -14129,7 +14168,7 @@ var SettingDrawer = function SettingDrawer(_ref) {
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: "mt30",
className: "mt20",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "c-grey-333 font16 mr10",
style: {
@ -14174,7 +14213,7 @@ var SettingDrawer = function SettingDrawer(_ref) {
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: "mt30",
className: "mt20",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "c-grey-333 font16 mr10",
style: {
@ -14192,20 +14231,34 @@ var SettingDrawer = function SettingDrawer(_ref) {
rules: [{
required: true,
message: '请选择开始时间和结束时间'
}, {
validator: validateDateRange
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(date_picker["default"].RangePicker, {
disabledDate: function disabledDate(current) {
return current && current < dayjs_min_default()().startOf('days');
},
className: "".concat(SettingDrawermodules.dataPicker),
format: timeFormat,
bordered: false,
showTime: {
minuteStep: 30
format: 'HH:mm'
},
bordered: false,
allowClear: false,
onChange: function onChange(value) {
if (value && value[0] && value[1]) {
var start = value[0].isBefore(dayjs_min_default()()) ? dayjs_min_default()() : value[0];
form.setFieldValue('times', [start, value[1]]);
} else {
form.setFieldValue('times', value);
}
}
})
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: "mt30",
className: "mt20",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "c-grey-333 font16 mr10",
style: {
@ -14232,19 +14285,65 @@ var SettingDrawer = function SettingDrawer(_ref) {
})
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "".concat(SettingDrawermodules.examineStatus, " mt20"),
children: [stauts >= 1 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)(CheckCircleFilled/* default */.Z, {
className: SettingDrawermodules.suc_status
}), " \u5B9E\u9A8C\u8D44\u6E90\u4F18\u5148\u4FDD\u969C\u7533\u8BF7\u6210\u529F\uFF0C\u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u4E2D"]
}), stauts >= 2 && stauts != 3 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)(CheckCircleFilled/* default */.Z, {
className: SettingDrawermodules.suc_status
}), " \u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u901A\u8FC7\uFF0C\u7CFB\u7EDF\u8D44\u6E90\u5206\u914D\u4E2D"]
}), stauts == 3 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)(CloseCircleFilled/* default */.Z, {
className: SettingDrawermodules.fail_status
}), "\u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u9A73\u56DE\uFF0C\u9A73\u56DE\u539F\u56E0: ( ", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
title: verifyReason,
className: SettingDrawermodules.bohui,
children: verifyReason
}), ") \u5982\u6709\u95EE\u9898\u8BF7\u8054\u7CFB", /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: SettingDrawermodules.contacts,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u5E73\u53F0\u8FD0\u8425\u4EBA\u5458"
}), " ", /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: SettingDrawermodules.contacts_img
})]
})]
}), stauts >= 4 && stauts != 5 && stauts != 7 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)(CheckCircleFilled/* default */.Z, {
className: SettingDrawermodules.suc_status
}), " \u7CFB\u7EDF\u8D44\u6E90\u5206\u914D\u5B8C\u6210\uFF0C\u5B9E\u9A8C\u8D44\u6E90\u4FDD\u969C\u4E2D"]
}), (stauts == 5 || stauts == 7) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)(CloseCircleFilled/* default */.Z, {
className: SettingDrawermodules.fail_status
}), "\u7CFB\u7EDF\u8D44\u6E90\u5206\u914D\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB", /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: SettingDrawermodules.contacts,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u5E73\u53F0\u8FD0\u8425\u4EBA\u5458"
}), " ", /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: SettingDrawermodules.contacts_img
})]
})]
}), stauts > 5 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)(CheckCircleFilled/* default */.Z, {
className: SettingDrawermodules.suc_status
}), " \u5B9E\u9A8C\u8D44\u6E90\u4FDD\u969C\u5DF2\u7ED3\u675F"]
})]
})]
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: SettingDrawermodules.btns,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
onClick: onCancel,
children: "\u53D6\u6D88"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
disabled: active == 3 && [2, 4, 5].includes(stauts),
onClick: handleOk,
loading: btnLoading,
type: "primary",
className: "ml20",
children: "\u4FDD\u5B58"
children: active == 3 ? '提交申请' : '保存'
})]
})]
})
@ -14256,7 +14355,12 @@ var SettingDrawer = function SettingDrawer(_ref) {
})]
});
};
/* harmony default export */ var Environment_SettingDrawer = (SettingDrawer);
/* harmony default export */ var Environment_SettingDrawer = ((0,_umi_production_exports.connect)(function (_ref6) {
var shixunsDetail = _ref6.shixunsDetail;
return {
shixunsDetail: shixunsDetail
};
})(SettingDrawer));
// EXTERNAL MODULE: ./src/pages/Shixuns/Edit/body/Environment/MarkdownModal/index.tsx + 1 modules
var MarkdownModal = __webpack_require__(35184);
// EXTERNAL MODULE: ./src/assets/images/403Qrcode.png

@ -5914,9 +5914,74 @@ button[class~='ant-btn-default']:disabled.btn___In02G {
justify-content: left;
align-items: center;
}
.graaytitle___vdUDn div[class~='ant-form-item-explain-error'] {
position: absolute;
bottom: -35px;
}
.dataPicker___RiEgz {
width: 400px;
}
.examineStatus___OCyYC {
font-size: 14px;
font-weight: 400;
color: #333333;
}
.examineStatus___OCyYC div {
position: relative;
display: flex;
align-items: center;
margin-bottom: 30px;
}
.examineStatus___OCyYC div::after {
content: '';
position: absolute;
left: 10px;
bottom: -27px;
width: 2px;
height: 26px;
background: #F6F7F9;
border-radius: 3px;
}
.examineStatus___OCyYC div:last-child::after {
content: '';
display: none;
}
.examineStatus___OCyYC div .contacts___MWvKz {
position: relative;
color: #165DFF;
overflow: hidden;
cursor: pointer;
}
.examineStatus___OCyYC div .contacts___MWvKz .contacts_img___kiMTs {
position: absolute;
left: 50%;
right: 50%;
transform: translate(-50%);
width: 152px;
height: 158px;
background: url(./static/contacts.5353ed7e.png) no-repeat;
background-size: 100% 100%;
background-position: center;
}
.examineStatus___OCyYC div .contacts___MWvKz:hover {
overflow: inherit;
}
.examineStatus___OCyYC .suc_status___p81iO {
font-size: 20px;
color: #2FC25B;
margin-right: 10px;
}
.examineStatus___OCyYC .fail_status___Rv54W {
font-size: 20px;
color: #E53333;
margin-right: 10px;
}
.examineStatus___OCyYC .bohui___wtuT5 {
max-width: 300px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.88@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.88@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Shixuns/Edit/body/Environment/UseCustomScriptModal/index.less?modules ***!

@ -213,8 +213,18 @@ function fetchRepos(id) {
}
//添加新方法
function startInit(id, params) {
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/start.json"), params || {});
function startInit(id) {
var _sessionStorage;
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var taskUniqueSession = (_sessionStorage = sessionStorage) === null || _sessionStorage === void 0 ? void 0 : _sessionStorage.getItem('taskUniqueSession');
if (!taskUniqueSession) {
var srt = String(Math.random());
sessionStorage.setItem('taskUniqueSession', srt);
taskUniqueSession = srt;
}
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/start.json"), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), {}, {
tpi_session_tag: taskUniqueSession
}));
}
function closeSSh(id) {
return get("myshixuns/".concat(id, "/reset_pod.json"));

File diff suppressed because it is too large Load Diff

@ -0,0 +1,276 @@
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.88@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.88@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/User/Detail/ResourceGuarantee/index.less?modules ***!
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___HE4p2 {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___PWM7q {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___Da0yH {
align-items: center;
box-align: center;
}
.flex_box_center_end___kv9AS {
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___FFov8 {
flex-direction: column;
box-orient: block-axis;
}
.wrap___fXH30 {
padding-top: 22px;
padding-left: 38px;
}
.wrap___fXH30 .customTable___ra3ry {
margin-top: 20px;
}
.wrap___fXH30 .rowHead___bBzMY {
display: flex;
align-items: center;
height: 50px;
color: #5F6368;
}
.wrap___fXH30 .rowHead___bBzMY .title___HkPE_ {
flex: 1 1;
font-size: 14px;
}
.wrap___fXH30 .rowHead___bBzMY .date___p5d5H {
width: 145px;
}
.wrap___fXH30 .rowHead___bBzMY .type___KdB4i,
.wrap___fXH30 .rowHead___bBzMY .status___pIlwq {
width: 94px;
text-align: left;
}
.wrap___fXH30 .rowHead___bBzMY .action___NkTFk {
width: 145px;
text-align: right;
}
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.88@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.88@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/User/Detail/ResourceGuarantee/ProjectReview/index.less?modules ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.wrap___ms6KB .real_name___x0U_t {
cursor: pointer;
}
.wrap___ms6KB .real_name___x0U_t:hover {
color: #165DFF;
}
.wrap___ms6KB .operationBtn___AF4Wv {
cursor: pointer;
margin-right: 10px;
}
.wrap___ms6KB .operationBtn___AF4Wv.reject___gMcdw {
color: #666666;
}
.wrap___ms6KB .operationBtn___AF4Wv.reject___gMcdw:hover {
color: #ff0000;
}
.wrap___ms6KB .operationBtn___AF4Wv.approve___k3jBL {
color: #0152d9;
margin-left: 6px;
}
.wrap___ms6KB .rejectBtn___FYT2j {
margin-left: 15px;
}
.wrap___ms6KB .approveBtn___oOAOL {
color: #0152d9;
margin-left: 15px;
}
.wrap___ms6KB .user_model___AoAaQ [class~='ant-modal-title'] {
font-size: 16px;
font-weight: 600 !important;
}
.wrap___ms6KB .user_model___AoAaQ [class~='ant-modal-body'] {
padding: 25px !important;
}
.zybzForm___vOiYW div[class~='ant-form-item'] {
margin-bottom: 0;
}
.zybzForm___vOiYW div[class~='ant-form-item-explain-error'] {
position: absolute;
bottom: -25px;
}
.zybzForm___vOiYW .ant-input-number {
height: 50px;
width: 100%;
background-color: #f5f5f5;
border: 0;
padding-top: 10px;
font-size: 16px;
}
.dataPicker___AQEiu {
width: 400px;
}
.graaytitle___hXTw9 {
height: 50px;
background: #f5f5f5;
border-radius: 4px;
display: flex;
justify-content: left;
align-items: center;
}
.graaytitle___hXTw9 div[class~='ant-form-item-explain-error'] {
position: absolute;
bottom: -35px;
}
.must___pDzlU {
color: #E53333;
font-family: SimSun, sans-serif;
margin-top: -2px;
margin-right: 2px;
}
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.88@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.88@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/User/Detail/ResourceGuarantee/components/UserInfoDialog/index.less?modules ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___zhxtt {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___st31J {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___XBXcK {
align-items: center;
box-align: center;
}
.flex_box_center_end___Fd5u8 {
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___u4g96 {
flex-direction: column;
box-orient: block-axis;
}
.user_model___mq6dG [class~='ant-modal-title'] {
font-size: 16px;
font-weight: 600 !important;
}
.user_model___mq6dG [class~='ant-modal-body'] {
padding: 25px !important;
}
.user_model___mq6dG .con___f2Hot {
margin-top: 30px;
}
.user_model___mq6dG .con___f2Hot:first-child {
margin-top: 0px;
}
.user_model___mq6dG .con___f2Hot span {
display: inline-block;
font-weight: 400;
font-size: 14px;
color: #5F6367;
margin-right: 10px;
text-align: right;
}
.user_model___mq6dG .con___f2Hot span:nth-child(1) {
width: 70px;
color: #5F6367;
}
.user_model___mq6dG .con___f2Hot span:nth-child(2) {
width: auto;
color: #000;
}
.user_model___mq6dG .con___f2Hot span:nth-child(3) {
width: auto;
color: #165DFF;
cursor: pointer;
float: right;
}
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.88@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.88@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/User/Detail/ResourceGuarantee/components/ProjectInfoDialog/index.less?modules ***!
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___kgN9n {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___Bs5VI {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___nxqLi {
align-items: center;
box-align: center;
}
.flex_box_center_end____q_RU {
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___t12yw {
flex-direction: column;
box-orient: block-axis;
}
.user_model___mCk6w {
position: relative;
}
.user_model___mCk6w [class~='ant-modal-title'] {
font-size: 16px;
font-weight: 600 !important;
}
.user_model___mCk6w [class~='ant-modal-body'] {
padding: 25px !important;
}
.user_model___mCk6w .goto___GPJs3 {
position: absolute;
top: 19px;
left: 0;
color: #165DFF;
}
.user_model___mCk6w .info_title___vIKml {
font-size: 14px;
font-weight: 600;
color: #000000;
}
.user_model___mCk6w .info_warp___auzFu {
display: flex;
align-items: center;
margin: 20px 0;
color: #000000;
}
.user_model___mCk6w .info_warp___auzFu .info_item___I2LoJ {
margin-right: 40px;
color: #000000;
display: flex;
}
.user_model___mCk6w .info_warp___auzFu .info_item___I2LoJ span {
margin-right: 10px;
color: #5F6367;
}
.user_model___mCk6w .item_text___RsUwo {
max-width: 240px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

@ -2064,14 +2064,14 @@ var Page = function Page(_ref) {
res2 = _context.sent;
if ((res1 === null || res1 === void 0 ? void 0 : res1.status) !== -1) {
setDataSource((res1 === null || res1 === void 0 || (_res1$data = res1.data) === null || _res1$data === void 0 ? void 0 : _res1$data.list) || []);
changeSource(JSON.parse(JSON.stringify(res1 === null || res1 === void 0 || (_res1$data2 = res1.data) === null || _res1$data2 === void 0 ? void 0 : _res1$data2.list)));
changeSource(JSON.parse(JSON.stringify((res1 === null || res1 === void 0 || (_res1$data2 = res1.data) === null || _res1$data2 === void 0 ? void 0 : _res1$data2.list) || [])));
}
if ((res2 === null || res2 === void 0 ? void 0 : res2.status) !== -1) {
setOnlyFolderData((res2 === null || res2 === void 0 || (_res2$data = res2.data) === null || _res2$data === void 0 ? void 0 : _res2$data.list) || []);
fileSpace = ((res2 === null || res2 === void 0 || (_res2$data2 = res2.data) === null || _res2$data2 === void 0 ? void 0 : _res2$data2.filesize) / (1024 * 1024 * 1024)).toFixed(2);
Number(fileSpace) >= 10 ? setUploadBtn(true) : setUploadBtn(false);
setUsedSpace(res2 === null || res2 === void 0 || (_res2$data3 = res2.data) === null || _res2$data3 === void 0 ? void 0 : _res2$data3.filesize);
setFileCount(res2 === null || res2 === void 0 || (_res2$data4 = res2.data) === null || _res2$data4 === void 0 ? void 0 : _res2$data4.file_count);
setUsedSpace((res2 === null || res2 === void 0 || (_res2$data3 = res2.data) === null || _res2$data3 === void 0 ? void 0 : _res2$data3.filesize) || 0);
setFileCount((res2 === null || res2 === void 0 || (_res2$data4 = res2.data) === null || _res2$data4 === void 0 ? void 0 : _res2$data4.file_count) || 0);
}
setLoading(false);
case 10:

@ -84,6 +84,7 @@ var NavType = /*#__PURE__*/function (NavType) {
NavType["virtualSpaces"] = "vspaces";
NavType["Competitions"] = "competitions";
NavType["ResourcesCenter"] = "resourcesCenter";
NavType["ResourceGuarantee"] = "resourceGuarantee";
return NavType;
}(NavType || {});
var showSearchMapping = [{
@ -372,6 +373,15 @@ var Banner = function Banner(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-ziyuan2 "
}), "\u8D44\u6E90\u94FE\u63A5"]
}), (0,authority/* isSuperAdmins */.Ny)() && /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
to: "/users/".concat(username.current, "/resourceGuarantee"),
onClick: function onClick() {
return setActiveKey(NavType.ResourceGuarantee);
},
className: activeKey === NavType.ResourceGuarantee ? Menusmodules.active : '',
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-renzheng "
}), "\u8D44\u6E90\u4FDD\u969C"]
}), ((_userDetail$homepageI11 = userDetail.homepageInfo) === null || _userDetail$homepageI11 === void 0 ? void 0 : _userDetail$homepageI11.college_identifier) && /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
to: "/colleges/".concat((_userDetail$homepageI12 = userDetail.homepageInfo) === null || _userDetail$homepageI12 === void 0 ? void 0 : _userDetail$homepageI12.college_identifier, "/statistics"),
onClick: function onClick() {

@ -1896,8 +1896,8 @@ var config_provider = __webpack_require__(92736);
var zh_CN = __webpack_require__(81863);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
var _umi_production_exports = __webpack_require__(7181);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 11 modules
var Header = __webpack_require__(13429);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 12 modules
var Header = __webpack_require__(70378);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(10574);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);

@ -1,6 +1,63 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[20700],{
/***/ 31917:
/*!*****************************************!*\
!*** ./src/components/NoData/index.tsx ***!
\*****************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js */ 26801);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/assets/images/icons/nodata.png */ 4977);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd */ 3113);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
var noData = function noData(_ref) {
var img = _ref.img,
_ref$buttonProps = _ref.buttonProps,
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
_ref$styles = _ref.styles,
styles = _ref$styles === void 0 ? {} : _ref$styles,
customText = _ref.customText,
ButtonText = _ref.ButtonText,
ButtonClick = _ref.ButtonClick,
Buttonclass = _ref.Buttonclass,
ButtonTwo = _ref.ButtonTwo,
imgStyles = _ref.imgStyles,
_ref$loading = _ref.loading,
loading = _ref$loading === void 0 ? false : _ref$loading;
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("section", {
className: "tc animated fadeIn",
style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, {
color: '#999',
margin: '100px auto',
visibility: loading ? 'hidden' : 'visible'
}), styles),
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("img", {
src: img || _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__,
style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, imgStyles)
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("p", {
className: "mt20 font14",
children: customText || '暂时还没有相关数据哦!'
}), ButtonText && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({
className: Buttonclass,
onClick: ButtonClick
}, buttonProps), {}, {
children: ButtonText
})), ButtonTwo && ButtonTwo]
});
};
/* harmony default export */ __webpack_exports__.Z = (noData);
/***/ }),
/***/ 89953:
/*!**********************************!*\
!*** ./src/components/modal.tsx ***!
@ -73,6 +130,9 @@ __webpack_require__.d(__webpack_exports__, {
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(26801);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/typeof.js
var helpers_typeof = __webpack_require__(5773);
var typeof_default = /*#__PURE__*/__webpack_require__.n(helpers_typeof);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(10574);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
@ -105,6 +165,8 @@ var es_button = __webpack_require__(3113);
var es_checkbox = __webpack_require__(24905);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/drawer/index.js + 9 modules
var drawer = __webpack_require__(43428);
// EXTERNAL MODULE: ./src/pages/Classrooms/Lists/Exercise/components/Unlock.tsx
var Unlock = __webpack_require__(96042);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/PoweroffOutlined.js + 1 modules
var PoweroffOutlined = __webpack_require__(22321);
;// CONCATENATED MODULE: ./src/pages/tasks/Jupyter/index.less?modules
@ -966,6 +1028,7 @@ var exercise = __webpack_require__(65398);
var _excluded = ["globalSetting", "loading", "dispatch"];
@ -993,6 +1056,7 @@ var _excluded = ["globalSetting", "loading", "dispatch"];
var Countdown = statistic/* default */.Z.Countdown;
@ -1101,6 +1165,7 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
_useState34 = slicedToArray_default()(_useState33, 2),
checkboxData = _useState34[0],
setcheckboxData = _useState34[1];
var exerciseDataRef = (0,_react_17_0_2_react.useRef)();
var countRef = (0,_react_17_0_2_react.useRef)(checkboxData);
countRef.current = checkboxData;
(0,_react_17_0_2_react.useEffect)(function () {
@ -1108,6 +1173,9 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
type: 'globalSetting/headerFooterToggle',
payload: false
});
if (searchParams.get("exercisesId")) {
getExerciseData();
}
return function () {
dispatch({
type: 'globalSetting/headerFooterToggle',
@ -1142,6 +1210,30 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
updateCode();
}
}, [jupyterData]);
var getExerciseData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return (0,exercise/* getExerciseStartAnswer */._B)({
categoryId: searchParams.get("exercisesId"),
login: searchParams.get("login")
});
case 2:
res = _context.sent;
exerciseDataRef.current = res;
case 4:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getExerciseData() {
return _ref2.apply(this, arguments);
};
}();
var updateCode = function updateCode() {
tipReset({
title: '更新通知',
@ -1151,14 +1243,14 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
});
};
var submitWork = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var iframe;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
iframe = document.getElementById('taskJupyterIframe');
iframe.contentWindow.postMessage('saveCode', '*');
_context.next = 4;
_context2.next = 4;
return (0,fetch/* default */.ZP)("/api/homework_commons/".concat(searchParams.get("homework_common_id"), "/student_works.json"), {
method: 'post',
body: {
@ -1167,12 +1259,12 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
});
case 4:
case "end":
return _context.stop();
return _context2.stop();
}
}, _callee);
}, _callee2);
}));
return function submitWork() {
return _ref2.apply(this, arguments);
return _ref3.apply(this, arguments);
};
}();
var handleJupyterMessage = function handleJupyterMessage(e) {
@ -1189,47 +1281,77 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
};
var handleSaveWithTPI = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
var _urlRef$current;
var res;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
var res, _exerciseDataRef$curr, _exerciseDataRef$curr2;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
_context2.next = 2;
_context3.next = 2;
return (0,task/* saveWithTPI */.zE)({
identifier: params.identifier,
jupyter_port: port.current,
token: token.current,
jupyter_domain: (_urlRef$current = urlRef.current) === null || _urlRef$current === void 0 || (_urlRef$current = _urlRef$current[0]) === null || _urlRef$current === void 0 ? void 0 : _urlRef$current.domain
jupyter_domain: (_urlRef$current = urlRef.current) === null || _urlRef$current === void 0 || (_urlRef$current = _urlRef$current[0]) === null || _urlRef$current === void 0 ? void 0 : _urlRef$current.domain,
exercise_id: searchParams.get("exercisesId") //试卷id
});
case 2:
res = _context2.sent;
if (res.status === 0) {
if (clickEvaluating.current) {
// 点击评测的时候执行
getGame(res === null || res === void 0 ? void 0 : res.data);
} else {
message/* default */.ZP.success('保存成功!');
}
res = _context3.sent;
if (!(res.status === 0)) {
_context3.next = 7;
break;
}
case 4:
if (clickEvaluating.current) {
// 点击评测的时候执行
getGame(res === null || res === void 0 ? void 0 : res.data);
} else {
message/* default */.ZP.success('保存成功!');
}
_context3.next = 10;
break;
case 7:
if (!(res.status === -5 && typeof_default()(res === null || res === void 0 ? void 0 : res.message) === "object")) {
_context3.next = 10;
break;
}
(0,_umi_production_exports.getDvaApp)()._store.dispatch({
type: 'exercise/setActionTabs',
payload: {
key: 'student-unlock',
exerciseParams: objectSpread2_default()(objectSpread2_default()({}, ((_exerciseDataRef$curr = exerciseDataRef.current) === null || _exerciseDataRef$curr === void 0 ? void 0 : _exerciseDataRef$curr.exercise) || {}), {}, {
errorMessage: res === null || res === void 0 ? void 0 : res.message,
exercise_user_id: (_exerciseDataRef$curr2 = exerciseDataRef.current) === null || _exerciseDataRef$curr2 === void 0 || (_exerciseDataRef$curr2 = _exerciseDataRef$curr2.exercise) === null || _exerciseDataRef$curr2 === void 0 ? void 0 : _exerciseDataRef$curr2.exercise_user_id,
id: searchParams.get("exercisesId")
})
}
});
return _context3.abrupt("return");
case 10:
case "end":
return _context2.stop();
return _context3.stop();
}
}, _callee2);
}, _callee3);
}));
return function handleSaveWithTPI() {
return _ref3.apply(this, arguments);
return _ref4.apply(this, arguments);
};
}();
var getGame = /*#__PURE__*/function () {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(re) {
var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5(re) {
var _saveJupyterData$curr, _saveJupyterData$curr2;
var _params, rs, count, time_out, finalTime, fnc;
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
_params = {
extras: {
exercise_id: searchParams.get("exercisesId"),
//试卷id
question_id: searchParams.get("questionId"),
// 题目id
challenge_id: jupyterData === null || jupyterData === void 0 ? void 0 : jupyterData.challenge_id // 关卡id
},
sec_key: re === null || re === void 0 ? void 0 : re.sec_key,
resubmit: re === null || re === void 0 ? void 0 : re.resubmit,
first: 1,
@ -1240,31 +1362,38 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
homework_common_id: searchParams.get("homework_common_id")
};
}
_context4.next = 4;
_context5.next = 4;
return (0,service/* codeGameBuild */.Xy)((_saveJupyterData$curr = saveJupyterData.current) === null || _saveJupyterData$curr === void 0 ? void 0 : _saveJupyterData$curr.game_identifier, _params);
case 4:
rs = _context4.sent;
rs = _context5.sent;
if (!(rs.status === -1)) {
_context4.next = 11;
_context5.next = 14;
break;
}
if (!(searchParams.get("type") === 'exercises')) {
_context5.next = 9;
break;
}
window.parent.location.href = "/classrooms/".concat(searchParams.get("coursesId"), "/exercise/").concat(searchParams.get("exercisesId"), "/detail");
return _context5.abrupt("return");
case 9:
setBtnLoading(false);
setBtnTime(10);
clickEvaluating.current = false;
jupyterMessageFlag.current = true;
return _context4.abrupt("return");
case 11:
return _context5.abrupt("return");
case 14:
count = 1;
time_out = false;
finalTime = ((_saveJupyterData$curr2 = saveJupyterData.current) === null || _saveJupyterData$curr2 === void 0 ? void 0 : _saveJupyterData$curr2.exec_time) + 11;
fnc = /*#__PURE__*/function () {
var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
var _saveJupyterData$curr3, _saveJupyterData$curr4, _saveJupyterData$curr5;
var source;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
_context3.next = 2;
_context4.next = 2;
return (0,service/* getCodeGameStatus */.Qo)((_saveJupyterData$curr3 = saveJupyterData.current) === null || _saveJupyterData$curr3 === void 0 ? void 0 : _saveJupyterData$curr3.game_identifier, {
resubmit: re === null || re === void 0 ? void 0 : re.resubmit,
time_out: time_out,
@ -1273,7 +1402,7 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
challenge_id: (_saveJupyterData$curr5 = saveJupyterData.current) === null || _saveJupyterData$curr5 === void 0 ? void 0 : _saveJupyterData$curr5.challenge_id
});
case 2:
source = _context3.sent;
source = _context4.sent;
if ((source === null || source === void 0 ? void 0 : source.running_code_status) === null || (source === null || source === void 0 ? void 0 : source.running_code_status) === 1 || (source === null || source === void 0 ? void 0 : source.running_code_status) === 2) {
count = count + 1;
if (count > finalTime) {
@ -1302,38 +1431,38 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
}
case 4:
case "end":
return _context3.stop();
return _context4.stop();
}
}, _callee3);
}, _callee4);
}));
return function fnc() {
return _ref5.apply(this, arguments);
return _ref6.apply(this, arguments);
};
}();
fnc();
case 16:
case 19:
case "end":
return _context4.stop();
return _context5.stop();
}
}, _callee4);
}, _callee5);
}));
return function getGame(_x) {
return _ref4.apply(this, arguments);
return _ref5.apply(this, arguments);
};
}();
var handleGetJupyterData = /*#__PURE__*/function () {
var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() {
var _ref7 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6() {
var res;
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
case 0:
_context5.next = 2;
_context6.next = 2;
return (0,task/* getJupyterData */.dU)({
identifier: params.identifier,
homework_id: searchParams.get("homework_common_id")
});
case 2:
res = _context5.sent;
res = _context6.sent;
if (res) {
setJupyterData(res);
saveJupyterData.current = objectSpread2_default()({}, res);
@ -1347,41 +1476,41 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
}
case 4:
case "end":
return _context5.stop();
return _context6.stop();
}
}, _callee5);
}, _callee6);
}));
return function handleGetJupyterData() {
return _ref6.apply(this, arguments);
return _ref7.apply(this, arguments);
};
}();
var handleGetJupyterTPIUrl = /*#__PURE__*/function () {
var _ref7 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6() {
var _ref8 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7() {
var _res$data;
var res, _res$data2, _res$data3, _parseUrl, _res$data4, _res$data5, _res$data6, _res$data7, _res$data8, _res$data9;
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
case 0:
_context6.next = 2;
_context7.next = 2;
return (0,task/* getInfoWithTPI */.rV)({
identifier: params.identifier,
homework_common_id: searchParams.get("homework_common_id") || ''
});
case 2:
res = _context6.sent;
res = _context7.sent;
setSpinning(false);
if (!(res !== null && res !== void 0 && (_res$data = res.data) !== null && _res$data !== void 0 && (_res$data = _res$data.data_list) !== null && _res$data !== void 0 && _res$data.length)) {
_context6.next = 7;
_context7.next = 7;
break;
}
mediator/* default */.Z.publish('pod-restrict-data', {
identifier: res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.identifier,
data_list: res === null || res === void 0 || (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.data_list
});
return _context6.abrupt("return");
return _context7.abrupt("return");
case 7:
if (!(res !== null && res !== void 0 && res.data)) {
_context6.next = 19;
_context7.next = 19;
break;
}
setUrl(res.data);
@ -1389,16 +1518,16 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
token.current = (_parseUrl = (0,util/* parseUrl */.en)(res === null || res === void 0 || (_res$data4 = res.data) === null || _res$data4 === void 0 || (_res$data4 = _res$data4[0]) === null || _res$data4 === void 0 ? void 0 : _res$data4["link_url"])) === null || _parseUrl === void 0 ? void 0 : _parseUrl.token;
port.current = res === null || res === void 0 || (_res$data5 = res.data) === null || _res$data5 === void 0 || (_res$data5 = _res$data5[0]) === null || _res$data5 === void 0 ? void 0 : _res$data5["port"];
if (!(((_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.length) > 1)) {
_context6.next = 14;
_context7.next = 14;
break;
}
return _context6.abrupt("return");
return _context7.abrupt("return");
case 14:
setUrlSign(false);
setStatus(Status.Success);
setTime(Date.now() + (res === null || res === void 0 || (_res$data7 = res.data) === null || _res$data7 === void 0 || (_res$data7 = _res$data7[0]) === null || _res$data7 === void 0 ? void 0 : _res$data7.remaining_time));
setEndTime((res === null || res === void 0 || (_res$data8 = res.data) === null || _res$data8 === void 0 || (_res$data8 = _res$data8[0]) === null || _res$data8 === void 0 ? void 0 : _res$data8.remaining_time) - 300 * 1000 <= 0 ? Date.now() + 1000 : Date.now() + ((res === null || res === void 0 || (_res$data9 = res.data) === null || _res$data9 === void 0 || (_res$data9 = _res$data9[0]) === null || _res$data9 === void 0 ? void 0 : _res$data9.remaining_time) - 300 * 1000));
return _context6.abrupt("return");
return _context7.abrupt("return");
case 19:
if (res.status === -1) {
setStatus(Status.LoadFail);
@ -1408,12 +1537,12 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
}
case 20:
case "end":
return _context6.stop();
return _context7.stop();
}
}, _callee6);
}, _callee7);
}));
return function handleGetJupyterTPIUrl() {
return _ref7.apply(this, arguments);
return _ref8.apply(this, arguments);
};
}();
var handleUrlClick = function handleUrlClick(num) {
@ -1423,29 +1552,29 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
setStatus(Status.Success);
};
var handleGetTPITimeInfo = /*#__PURE__*/function () {
var _ref8 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7() {
var _ref9 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8() {
var res;
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
while (1) switch (_context8.prev = _context8.next) {
case 0:
_context7.next = 2;
_context8.next = 2;
return (0,task/* getTimeInfoWithTPI */.x4)({
identifier: params.identifier
});
case 2:
res = _context7.sent;
res = _context8.sent;
if (!((res === null || res === void 0 ? void 0 : res.status) !== 0)) {
_context7.next = 5;
_context8.next = 5;
break;
}
return _context7.abrupt("return");
return _context8.abrupt("return");
case 5:
if (res !== null && res !== void 0 && res.useSeconds) {
_context7.next = 8;
_context8.next = 8;
break;
}
handleResetEnvModal();
return _context7.abrupt("return");
return _context8.abrupt("return");
case 8:
if (res !== null && res !== void 0 && res.remainingSeconds) {
setTime(Date.now() + res.remainingSeconds * 1000);
@ -1453,12 +1582,12 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
}
case 9:
case "end":
return _context7.stop();
return _context8.stop();
}
}, _callee7);
}, _callee8);
}));
return function handleGetTPITimeInfo() {
return _ref8.apply(this, arguments);
return _ref9.apply(this, arguments);
};
}();
var handleResetEnvModal = function handleResetEnvModal() {
@ -1480,22 +1609,22 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
});
};
var handleResetEnv = /*#__PURE__*/function () {
var _ref9 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8() {
var _ref10 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9() {
var res;
return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
while (1) switch (_context8.prev = _context8.next) {
return regeneratorRuntime_default()().wrap(function _callee9$(_context9) {
while (1) switch (_context9.prev = _context9.next) {
case 0:
_context8.next = 2;
_context9.next = 2;
return (0,task/* resetWithTPI */.m_)({
identifier: jupyterData === null || jupyterData === void 0 ? void 0 : jupyterData.myshixun_identifier
});
case 2:
res = _context8.sent;
res = _context9.sent;
if (!((res === null || res === void 0 ? void 0 : res.status) !== 0)) {
_context8.next = 5;
_context9.next = 5;
break;
}
return _context8.abrupt("return");
return _context9.abrupt("return");
case 5:
message/* default */.ZP.success('重置成功!');
setSpinning(false);
@ -1504,12 +1633,12 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
}, 300);
case 8:
case "end":
return _context8.stop();
return _context9.stop();
}
}, _callee8);
}, _callee9);
}));
return function handleResetEnv() {
return _ref9.apply(this, arguments);
return _ref10.apply(this, arguments);
};
}();
var handleEndTimeFinish = function handleEndTimeFinish() {
@ -1530,28 +1659,28 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
okText: '立即延长',
cancelText: '不需要',
onOk: function () {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9() {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee10() {
var res;
return regeneratorRuntime_default()().wrap(function _callee9$(_context9) {
while (1) switch (_context9.prev = _context9.next) {
return regeneratorRuntime_default()().wrap(function _callee10$(_context10) {
while (1) switch (_context10.prev = _context10.next) {
case 0:
_context9.next = 2;
_context10.next = 2;
return (0,task/* activeWithTPI */.rB)(jupyterData === null || jupyterData === void 0 ? void 0 : jupyterData.myshixun_identifier);
case 2:
res = _context9.sent;
res = _context10.sent;
if (!(res.status === 0)) {
_context9.next = 7;
_context10.next = 7;
break;
}
_context9.next = 6;
_context10.next = 6;
return handleGetJupyterTPIUrl();
case 6:
message/* default */.ZP.success('延长成功!');
case 7:
case "end":
return _context9.stop();
return _context10.stop();
}
}, _callee9);
}, _callee10);
}));
function onOk() {
return _onOk.apply(this, arguments);
@ -1622,22 +1751,22 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
okText: '确定',
cancelText: '取消',
onOk: function () {
var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee10() {
var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee11() {
var res;
return regeneratorRuntime_default()().wrap(function _callee10$(_context10) {
while (1) switch (_context10.prev = _context10.next) {
return regeneratorRuntime_default()().wrap(function _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
case 0:
_context10.next = 2;
_context11.next = 2;
return (0,task/* syncCode */.fi)({
identifier: params.identifier
});
case 2:
res = _context10.sent;
res = _context11.sent;
if (!(res.status !== 0)) {
_context10.next = 5;
_context11.next = 5;
break;
}
return _context10.abrupt("return");
return _context11.abrupt("return");
case 5:
message/* default */.ZP.success('操作成功');
setSpinning(false);
@ -1646,9 +1775,9 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
}, 300);
case 8:
case "end":
return _context10.stop();
return _context11.stop();
}
}, _callee10);
}, _callee11);
}));
function onOk() {
return _onOk2.apply(this, arguments);
@ -1701,12 +1830,12 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
answerData = _useState36[0],
setAnswerData = _useState36[1];
var getAnswerData = /*#__PURE__*/function () {
var _ref10 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee11(identifier) {
var _ref11 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee12(identifier) {
var res;
return regeneratorRuntime_default()().wrap(function _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
return regeneratorRuntime_default()().wrap(function _callee12$(_context12) {
while (1) switch (_context12.prev = _context12.next) {
case 0:
_context11.next = 2;
_context12.next = 2;
return (0,fetch/* default */.ZP)("/api/shixuns/".concat(identifier, "/get_standard_answer.json"), {
method: 'get',
params: {
@ -1714,18 +1843,18 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
}
});
case 2:
res = _context11.sent;
res = _context12.sent;
if (res.status === 0) {
setAnswerData(res);
}
case 4:
case "end":
return _context11.stop();
return _context12.stop();
}
}, _callee11);
}, _callee12);
}));
return function getAnswerData(_x2) {
return _ref10.apply(this, arguments);
return _ref11.apply(this, arguments);
};
}();
(0,_react_17_0_2_react.useEffect)(function () {
@ -1759,6 +1888,13 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
}
}
}
var backExercise = function backExercise(type) {
if (document.activeElement.tagName !== "IFRAME") {
window.parent.postMessage('backExercise', '*');
// if (!lockExitFullRef.current) exitFull();
}
};
var fullChange = function fullChange(e) {
if ((0,fullscreen/* IsFull */.vp)()) {
setShowTool(false);
@ -1780,17 +1916,17 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
return _onResetGitCode.apply(this, arguments);
}
function _onResetGitCode() {
_onResetGitCode = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee12() {
_onResetGitCode = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee13() {
var response;
return regeneratorRuntime_default()().wrap(function _callee12$(_context12) {
while (1) switch (_context12.prev = _context12.next) {
return regeneratorRuntime_default()().wrap(function _callee13$(_context13) {
while (1) switch (_context13.prev = _context13.next) {
case 0:
_context12.next = 2;
_context13.next = 2;
return (0,service/* resetGitCode */.Tf)(jupyterData === null || jupyterData === void 0 ? void 0 : jupyterData.myshixun_identifier, {});
case 2:
response = _context12.sent;
response = _context13.sent;
if (!((response === null || response === void 0 ? void 0 : response.status) === -5)) {
_context12.next = 6;
_context13.next = 6;
break;
}
modal/* default */.Z.info({
@ -1806,14 +1942,14 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
}), "\uFF09\u4E2D\u88AB\u4F7F\u7528\uFF0C\u7528\u6237\u8BD5\u5377\u5DF2\u4EA4\u5377\uFF0C\u7981\u6B62\u518D\u4F5C\u7B54\uFF01"]
})
});
return _context12.abrupt("return");
return _context13.abrupt("return");
case 6:
return _context12.abrupt("return", response);
return _context13.abrupt("return", response);
case 7:
case "end":
return _context12.stop();
return _context13.stop();
}
}, _callee12);
}, _callee13);
}));
return _onResetGitCode.apply(this, arguments);
}
@ -1947,6 +2083,9 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
objective_type: 'shixun'
}
});
if (searchParams.get("type") === 'exercises') {
backExercise('back');
}
_umi_production_exports.history.push("/shixuns/".concat(jupyterData.identifier, "/challenges"));
},
onCancel: function onCancel() {
@ -2168,12 +2307,14 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
onClose: onHideToolBar,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(vnc_setting/* default */.Z, objectSpread2_default()({}, vncSettingOption))
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Unlock/* default */.Z, {
successCb: handleSaveWithTPI
})]
});
};
/* harmony default export */ var Jupyter = ((0,_umi_production_exports.connect)(function (_ref11) {
var loading = _ref11.loading,
globalSetting = _ref11.globalSetting;
/* harmony default export */ var Jupyter = ((0,_umi_production_exports.connect)(function (_ref12) {
var loading = _ref12.loading,
globalSetting = _ref12.globalSetting;
return {
globalSetting: globalSetting,
loading: loading

File diff suppressed because it is too large Load Diff

@ -635,7 +635,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});

@ -810,7 +810,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});

@ -635,7 +635,7 @@ function _unescape(str) {
;
if (showProgramFill) {
var num = -1;
str = str.replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
str = str.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replace(/(@▁▁@|@▁@)/g, function (a, b, c) {
++num;
return createInput(a, num);
});

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

@ -10769,6 +10769,7 @@ p {
}
#educoder .ant-modal .ant-modal-content .ant-modal-body .ant-modal-confirm-body > .anticon {
margin-bottom: 5px;
margin-top: 10px;
}
#educoder .ant-modal .ant-modal-content .ant-modal-body .ant-modal-confirm-title {
margin-top: 10px;

1416
umi.js

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