|
|
|
|
@ -2332,7 +2332,7 @@ var upload_image_formItemLayout = {
|
|
|
|
|
var _useForm = useForm(),
|
|
|
|
|
_useForm2 = slicedToArray_default()(_useForm, 1),
|
|
|
|
|
form = _useForm2[0];
|
|
|
|
|
var nameRef = useRef();
|
|
|
|
|
var nameRef = (0,react.useRef)();
|
|
|
|
|
function onSubmit(values) {
|
|
|
|
|
callback(objectSpread2_default()(objectSpread2_default()({}, values), {}, {
|
|
|
|
|
name: nameRef.current
|
|
|
|
|
@ -10453,7 +10453,7 @@ function TipContent() {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
/* harmony default export */ var tasks_header = (function (_ref) {
|
|
|
|
|
var _exerciseData$exercis4, _exerciseData$exercis5, _exerciseData$exercis6;
|
|
|
|
|
var _exerciseData$exercis2, _exerciseData$exercis3, _exerciseData$exercis4;
|
|
|
|
|
var mirror_description = _ref.mirror_description,
|
|
|
|
|
difficulty = _ref.difficulty,
|
|
|
|
|
git_url = _ref.git_url,
|
|
|
|
|
@ -10661,37 +10661,6 @@ function TipContent() {
|
|
|
|
|
clearInterval(focusRef.current);
|
|
|
|
|
};
|
|
|
|
|
}, [exerciseData]);
|
|
|
|
|
(0,react.useEffect)(function () {
|
|
|
|
|
if (DownTime > 60 && exerciseData) {
|
|
|
|
|
timer.current = setInterval(function () {
|
|
|
|
|
var _exerciseData$exercis2, _exerciseData$exercis3;
|
|
|
|
|
DownTime--;
|
|
|
|
|
if (DownTime === 60) {
|
|
|
|
|
clearInterval(timer.current);
|
|
|
|
|
}
|
|
|
|
|
if (localStorage.getItem('ismain') === '2') {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
exerciseData === null || exerciseData === void 0 ? void 0 : (_exerciseData$exercis2 = exerciseData.exercise) === null || _exerciseData$exercis2 === void 0 ? void 0 : (_exerciseData$exercis3 = _exerciseData$exercis2.exercise_events) === null || _exerciseData$exercis3 === void 0 ? void 0 : _exerciseData$exercis3.map(function (item, index) {
|
|
|
|
|
if (parseInt(item === null || item === void 0 ? void 0 : item.reminder_time) * 60 === DownTime) {
|
|
|
|
|
// message.info(item?.reminder_content,15)
|
|
|
|
|
notification.open({
|
|
|
|
|
top: 76,
|
|
|
|
|
message: '温馨提示',
|
|
|
|
|
description: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: item === null || item === void 0 ? void 0 : item.reminder_content
|
|
|
|
|
}),
|
|
|
|
|
duration: 60
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}, 1000);
|
|
|
|
|
}
|
|
|
|
|
return function () {
|
|
|
|
|
notification.destroy();
|
|
|
|
|
clearInterval(timer.current);
|
|
|
|
|
};
|
|
|
|
|
}, [DownTime, exerciseData]);
|
|
|
|
|
var handleToggleDatasets = function handleToggleDatasets() {
|
|
|
|
|
setdataSetsVisiable(!dataSetsVisiable);
|
|
|
|
|
};
|
|
|
|
|
@ -10980,13 +10949,13 @@ function TipContent() {
|
|
|
|
|
className: "exercise_user_info",
|
|
|
|
|
children: ["\u59D3\u540D", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "ml10",
|
|
|
|
|
children: exerciseData === null || exerciseData === void 0 ? void 0 : (_exerciseData$exercis4 = exerciseData.exercise) === null || _exerciseData$exercis4 === void 0 ? void 0 : _exerciseData$exercis4.user_name
|
|
|
|
|
children: exerciseData === null || exerciseData === void 0 ? void 0 : (_exerciseData$exercis2 = exerciseData.exercise) === null || _exerciseData$exercis2 === void 0 ? void 0 : _exerciseData$exercis2.user_name
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "exercise_user_info ml30",
|
|
|
|
|
children: ["\u5B66\u53F7", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "ml10",
|
|
|
|
|
children: exerciseData === null || exerciseData === void 0 ? void 0 : (_exerciseData$exercis5 = exerciseData.exercise) === null || _exerciseData$exercis5 === void 0 ? void 0 : _exerciseData$exercis5.student_id
|
|
|
|
|
children: exerciseData === null || exerciseData === void 0 ? void 0 : (_exerciseData$exercis3 = exerciseData.exercise) === null || _exerciseData$exercis3 === void 0 ? void 0 : _exerciseData$exercis3.student_id
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}), searchParams.get("type") !== 'exercises' && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
|
|
@ -11059,7 +11028,7 @@ function TipContent() {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-kaiguan"
|
|
|
|
|
})
|
|
|
|
|
}), (exerciseData === null || exerciseData === void 0 ? void 0 : (_exerciseData$exercis6 = exerciseData.exercise) === null || _exerciseData$exercis6 === void 0 ? void 0 : _exerciseData$exercis6.left_time) > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
}), (exerciseData === null || exerciseData === void 0 ? void 0 : (_exerciseData$exercis4 = exerciseData.exercise) === null || _exerciseData$exercis4 === void 0 ? void 0 : _exerciseData$exercis4.left_time) > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
align: "middle",
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
style: {
|
|
|
|
|
@ -12873,7 +12842,7 @@ var empiricgreen_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/notification/index.js + 5 modules
|
|
|
|
|
var es_notification = __webpack_require__(54689);
|
|
|
|
|
var notification = __webpack_require__(54689);
|
|
|
|
|
// EXTERNAL MODULE: ./src/pages/tasks/xterm-panel/index.jsx + 1 modules
|
|
|
|
|
var xterm_panel = __webpack_require__(77441);
|
|
|
|
|
// EXTERNAL MODULE: ./src/components/PreviewAll/index.tsx + 1 modules
|
|
|
|
|
@ -15672,7 +15641,7 @@ function code_repository_reducer(state, action) {
|
|
|
|
|
standing = 3;
|
|
|
|
|
}
|
|
|
|
|
if (initTipsOpenKey.current) {
|
|
|
|
|
es_notification/* default.destroy */.Z.destroy(initTipsOpenKey.current);
|
|
|
|
|
notification/* default.destroy */.Z.destroy(initTipsOpenKey.current);
|
|
|
|
|
}
|
|
|
|
|
initTipsOpenKey.current = "open".concat(Date.now());
|
|
|
|
|
var fuc = /*#__PURE__*/function () {
|
|
|
|
|
@ -15692,7 +15661,7 @@ function code_repository_reducer(state, action) {
|
|
|
|
|
_context2.next = 8;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
es_notification/* default.destroy */.Z.destroy(initTipsOpenKey.current);
|
|
|
|
|
notification/* default.destroy */.Z.destroy(initTipsOpenKey.current);
|
|
|
|
|
message/* default.success */.ZP.success("\u5B9E\u8BAD\u5DF2".concat(start_permanent ? '关闭' : '开启', "\u4FDD\u5B58\u5B9E\u9A8C\u6587\u4EF6\u529F\u80FD"));
|
|
|
|
|
return _context2.abrupt("return");
|
|
|
|
|
case 8:
|
|
|
|
|
@ -15709,7 +15678,7 @@ function code_repository_reducer(state, action) {
|
|
|
|
|
}();
|
|
|
|
|
var setNotification = function setNotification() {
|
|
|
|
|
var isLoading = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
|
|
|
return es_notification/* default.open */.Z.open({
|
|
|
|
|
return notification/* default.open */.Z.open({
|
|
|
|
|
message: /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
|
|
|
|
|
className: "font16 c-black",
|
|
|
|
|
children: "\u63D0\u793A"
|
|
|
|
|
@ -15762,7 +15731,7 @@ function code_repository_reducer(state, action) {
|
|
|
|
|
marginLeft: 'auto'
|
|
|
|
|
},
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
es_notification/* default.destroy */.Z.destroy(initTipsOpenKey.current);
|
|
|
|
|
notification/* default.destroy */.Z.destroy(initTipsOpenKey.current);
|
|
|
|
|
},
|
|
|
|
|
children: "\u77E5\u9053\u4E86"
|
|
|
|
|
}), standing === 2 && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
|
|
|
|
|
@ -15782,10 +15751,10 @@ function code_repository_reducer(state, action) {
|
|
|
|
|
initTips.current[1] = true;
|
|
|
|
|
setCurrentTime();
|
|
|
|
|
if (initTipsOpenKey.current) {
|
|
|
|
|
es_notification/* default.destroy */.Z.destroy(initTipsOpenKey.current);
|
|
|
|
|
notification/* default.destroy */.Z.destroy(initTipsOpenKey.current);
|
|
|
|
|
}
|
|
|
|
|
initTipsOpenKey.current = "open".concat(Date.now());
|
|
|
|
|
es_notification/* default.open */.Z.open({
|
|
|
|
|
notification/* default.open */.Z.open({
|
|
|
|
|
message: /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
|
|
|
|
|
className: "font16 c-black",
|
|
|
|
|
children: "\u63D0\u793A"
|
|
|
|
|
@ -15821,7 +15790,7 @@ function code_repository_reducer(state, action) {
|
|
|
|
|
},
|
|
|
|
|
type: "primary",
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
es_notification/* default.destroy */.Z.destroy(initTipsOpenKey.current);
|
|
|
|
|
notification/* default.destroy */.Z.destroy(initTipsOpenKey.current);
|
|
|
|
|
},
|
|
|
|
|
children: "\u77E5\u9053\u4E86"
|
|
|
|
|
})]
|
|
|
|
|
|