From abcbfa13a028408dc8a25970d73263a00121edc0 Mon Sep 17 00:00:00 2001 From: autosubmit Date: Fri, 1 Mar 2024 15:14:00 +0800 Subject: [PATCH] Auto Submit --- 3316.async.js | 121 ++++++++++-------- layouts__index.async.js | 59 +++++---- p__Classrooms__ExamList__index.chunk.css | 1 - ...s__Lists__Exercise__Notice__index.async.js | 2 +- p__index.chunk.css | 1 - 5 files changed, 98 insertions(+), 86 deletions(-) diff --git a/3316.async.js b/3316.async.js index a959e92265..de1eba87ae 100644 --- a/3316.async.js +++ b/3316.async.js @@ -100,6 +100,10 @@ var modal = __webpack_require__(43418); var tooltip = __webpack_require__(6848); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules var es_checkbox = __webpack_require__(24905); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules +var message = __webpack_require__(8591); +// EXTERNAL MODULE: ./src/utils/util.tsx +var util = __webpack_require__(75798); // EXTERNAL MODULE: ./src/utils/fetch.ts var fetch = __webpack_require__(64841); ;// CONCATENATED MODULE: ./src/pages/Classrooms/ExamList/components/List/index.less?modules @@ -155,6 +159,7 @@ var authority = __webpack_require__(77883); var dayjs_min = __webpack_require__(9498); var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min); ;// CONCATENATED MODULE: ./src/pages/Classrooms/ExamList/components/List/index.tsx +/* provided dependency */ var List_React = __webpack_require__(/*! react */ 59301); var List_defProp = Object.defineProperty; var __defProps = Object.defineProperties; var __getOwnPropDescs = Object.getOwnPropertyDescriptors; @@ -203,6 +208,7 @@ var __async = (__this, __arguments, generator) => { + const List = ({ v, k, @@ -212,7 +218,7 @@ const List = ({ dispatch, params }) => { - var _a, _b, _c, _d, _e, _f; + var _a, _b, _c, _d, _e, _f, _g; const [lists, setlists] = (0,_react_17_0_2_react.useState)([]); const [isshow, setisshow] = (0,_react_17_0_2_react.useState)(false); const format = "YYYY-MM-DD"; @@ -231,11 +237,11 @@ const List = ({ } const modalText = () => modal["default"].info({ title: "\u9898\u5E93\u6539\u7248\u544A\u77E5", - content: /* @__PURE__ */ _react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, "EduCoder\u5DF2\u5347\u7EA7\u9898\u5E93\u529F\u80FD\uFF0C\u6240\u6709\u8BD5\u9898\u5747\u9700\u5339\u914D\u77E5\u8BC6\u70B9\u3002 \u5F53\u524D\u8BD5\u5377\u6240\u6D89\u53CA\u8BD5\u9898\u5747\u672A\u5339\u914D\u77E5\u8BC6\u70B9\uFF0C\u65E0\u6CD5\u968F\u673A\u62BD\u53D6\uFF0C\u5DF2\u4E0D\u80FD\u6709\u6548\u4F7F\u7528\u3002\u8BF7\u5728\u8BD5\u5377\u5E93\u91CD\u65B0\u7EC4\u5377\u540E\u4F7F\u7528\u3002 \u7531\u6B64\u5E26\u6765\u7684\u4E0D\u4FBF\uFF0C\u656C\u8BF7\u8C05\u89E3\uFF01") + content: /* @__PURE__ */ List_React.createElement(List_React.Fragment, null, "EduCoder\u5DF2\u5347\u7EA7\u9898\u5E93\u529F\u80FD\uFF0C\u6240\u6709\u8BD5\u9898\u5747\u9700\u5339\u914D\u77E5\u8BC6\u70B9\u3002 \u5F53\u524D\u8BD5\u5377\u6240\u6D89\u53CA\u8BD5\u9898\u5747\u672A\u5339\u914D\u77E5\u8BC6\u70B9\uFF0C\u65E0\u6CD5\u968F\u673A\u62BD\u53D6\uFF0C\u5DF2\u4E0D\u80FD\u6709\u6548\u4F7F\u7528\u3002\u8BF7\u5728\u8BD5\u5377\u5E93\u91CD\u65B0\u7EC4\u5377\u540E\u4F7F\u7528\u3002 \u7531\u6B64\u5E26\u6765\u7684\u4E0D\u4FBF\uFF0C\u656C\u8BF7\u8C05\u89E3\uFF01") }); const enterExam = (v2) => { var _a2; - window.location.href = `/classrooms/${v2.course_identifier}/exercisenotice/${v2.id}/users/${(_a2 = (0,authority/* userInfo */.eY)()) == null ? void 0 : _a2.login}`; + _umi_production_exports.history.push(`/classrooms/${v2.course_identifier}/exercisenotice/${v2.id}/users/${(_a2 = (0,authority/* userInfo */.eY)()) == null ? void 0 : _a2.login}`); }; const columns = [ { @@ -266,7 +272,7 @@ const List = ({ return record.exercise_status === value; }, render: (k2, r) => { - return /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, k2 === 1 && /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { className: Listmodules.dot, style: { background: "#C3C3C3" } }), "\u672A\u5F00\u59CB"), k2 === 2 && /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { className: Listmodules.dot, style: { background: "#4EACFF" } }), "\u8003\u8BD5\u4E2D"), k2 === 3 && /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { className: Listmodules.dot, style: { background: "#FC2D6B" } }), "\u5DF2\u7ED3\u675F")); + return /* @__PURE__ */ List_React.createElement("div", null, k2 === 1 && /* @__PURE__ */ List_React.createElement("span", null, /* @__PURE__ */ List_React.createElement("i", { className: Listmodules.dot, style: { background: "#C3C3C3" } }), "\u672A\u5F00\u59CB"), k2 === 2 && /* @__PURE__ */ List_React.createElement("span", null, /* @__PURE__ */ List_React.createElement("i", { className: Listmodules.dot, style: { background: "#4EACFF" } }), "\u8003\u8BD5\u4E2D"), k2 === 3 && /* @__PURE__ */ List_React.createElement("span", null, /* @__PURE__ */ List_React.createElement("i", { className: Listmodules.dot, style: { background: "#FC2D6B" } }), "\u5DF2\u7ED3\u675F")); } }, { @@ -294,7 +300,7 @@ const List = ({ align: "center", width: 80, render: (k2, r) => { - return r.exercise_status === 1 ? "-" : /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, k2, "/", r.exercise_users); + return r.exercise_status === 1 ? "-" : /* @__PURE__ */ List_React.createElement("span", null, k2, "/", r.exercise_users); } }, { @@ -304,7 +310,7 @@ const List = ({ align: "center", width: 90, render: (k2, r) => { - return r.exercise_status === 1 ? "-" : /* @__PURE__ */ _react_17_0_2_react.createElement(_umi_production_exports.Link, { to: `/classrooms/${params == null ? void 0 : params.coursesId}/exercise/${v == null ? void 0 : v.id}/detail?random=false&exercise_group_id=${r.course_group_id}` }, k2); + return r.exercise_status === 1 ? "-" : /* @__PURE__ */ List_React.createElement(_umi_production_exports.Link, { to: `/classrooms/${params == null ? void 0 : params.coursesId}/exercise/${v == null ? void 0 : v.id}/detail?random=false&exercise_group_id=${r.course_group_id}` }, k2); } }, { @@ -314,31 +320,29 @@ const List = ({ key: "action", width: 60, render: (k2, r) => { - return r.exercise_status === 1 ? /* @__PURE__ */ _react_17_0_2_react.createElement("img", { style: { cursor: "not-allowed" }, src: ping1 }) : /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: "\u8BC4\u9605" }, /* @__PURE__ */ _react_17_0_2_react.createElement(_umi_production_exports.Link, { to: `/classrooms/${params == null ? void 0 : params.coursesId}/exercise/${v == null ? void 0 : v.id}/detail?random=false&exercise_group_id=${r.course_group_id}` }, /* @__PURE__ */ _react_17_0_2_react.createElement("img", { src: ping2 }))); + return r.exercise_status === 1 ? /* @__PURE__ */ List_React.createElement("img", { style: { cursor: "not-allowed" }, src: ping1 }) : /* @__PURE__ */ List_React.createElement(tooltip/* default */.Z, { title: "\u8BC4\u9605" }, /* @__PURE__ */ List_React.createElement(_umi_production_exports.Link, { to: `/classrooms/${params == null ? void 0 : params.coursesId}/exercise/${v == null ? void 0 : v.id}/detail?random=false&exercise_group_id=${r.course_group_id}` }, /* @__PURE__ */ List_React.createElement("img", { src: ping2 }))); } } ]; const renderTips = (v2) => { if (v2 == null ? void 0 : v2.includes("\u672A\u5F00\u59CB")) { - return /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { backgroundColor: "#B8B8B8" }, className: "tag-style mr10" }, "\u672A\u5F00\u59CB"); + return /* @__PURE__ */ List_React.createElement("span", { style: { backgroundColor: "#B8B8B8" }, className: "tag-style mr10" }, "\u672A\u5F00\u59CB"); } if (v2 == null ? void 0 : v2.includes("\u8003\u8BD5\u4E2D")) { - return /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { backgroundColor: "#007AFF" }, className: "tag-style mr10" }, "\u8003\u8BD5\u4E2D"); + return /* @__PURE__ */ List_React.createElement("span", { style: { backgroundColor: "#007AFF" }, className: "tag-style mr10" }, "\u8003\u8BD5\u4E2D"); } if (v2 == null ? void 0 : v2.includes("\u5DF2\u7ED3\u675F")) { - return /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { backgroundColor: "#FC2D6B" }, className: "tag-style mr10" }, "\u5DF2\u7ED3\u675F"); + return /* @__PURE__ */ List_React.createElement("span", { style: { backgroundColor: "#FC2D6B" }, className: "tag-style mr10" }, "\u5DF2\u7ED3\u675F"); } }; - return /* @__PURE__ */ _react_17_0_2_react.createElement( + console.log((0,authority/* isAdminOrStudent */.RV)(), 222); + return /* @__PURE__ */ List_React.createElement( "div", { className: Listmodules.listItem, - key: k, - onClick: () => { - enterExam(v); - } + key: k }, - (0,authority/* isAdmin */.GJ)() && /* @__PURE__ */ _react_17_0_2_react.createElement( + (0,authority/* isAdmin */.GJ)() && /* @__PURE__ */ List_React.createElement( es_checkbox["default"], { checked: selectArrs.includes(v.id), @@ -360,47 +364,52 @@ const List = ({ } } ), - /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: Listmodules.info }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: Listmodules.title }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: Listmodules.titleLeft, style: { marginRight: "15px" } }, renderTips(v == null ? void 0 : v.exercise_tips), /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: v.exercise_name }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: `${Listmodules.name}`, style: { maxWidth: ((_a = v == null ? void 0 : v.exercise_tips) == null ? void 0 : _a.includes("\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A")) ? 400 : 498 } }, v.exercise_name)), !v.is_public && (0,authority/* isAdmin */.GJ)() && /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: "\u79C1\u6709\u5C5E\u6027\uFF0C\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u80FD\u8BBF\u95EE" }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "iconfont icon-suo1 ml10 mr10 c-light-black font12" })), ((_b = v == null ? void 0 : v.exercise_tips) == null ? void 0 : _b.includes("\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A")) && /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { flexShrink: 0 }, className: "tag-style-fzb iconfont icon-fangzuobi ml10" }, "\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A"), ((_c = v == null ? void 0 : v.exercise_tips) == null ? void 0 : _c.includes("\u5DF2\u7ED3\u675F")) && ((_d = v == null ? void 0 : v.exercise_tips) == null ? void 0 : _d.includes("\u672A\u63D0\u4EA4")) && /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { flexShrink: 0, backgroundColor: "#B8B8B8" }, className: "tag-style ml10" }, "\u672A\u63D0\u4EA4")), /* @__PURE__ */ _react_17_0_2_react.createElement( - "div", - { className: Listmodules.titleRight, onClick: (e) => { - e.stopPropagation(); - e.preventDefault(); - } }, - (0,authority/* isAdmin */.GJ)() && v.assistant_auth && /* @__PURE__ */ _react_17_0_2_react.createElement("span", { onClick: (e) => { - e.stopPropagation(); - const startTime = dayjs_min_default()(v.created_at, format); - const diff3 = dayjs_min_default()(endTime).diff(dayjs_min_default()(startTime), "days"); - if (diff3 > 0 && (v == null ? void 0 : v.is_random)) { - modalText(); - } else if (v == null ? void 0 : v.is_random) { - _umi_production_exports.history.push(`/classrooms/${v.course_id}/exercise/${v.id}/random/preview?random=${v.is_random}`); - } else { - _umi_production_exports.history.push(`/classrooms/${v.course_id}/exercise/${v.id}/detail?random=${v.is_random}&tabs=2`); + /* @__PURE__ */ List_React.createElement("div", { className: Listmodules.info }, /* @__PURE__ */ List_React.createElement("div", { className: Listmodules.title }, /* @__PURE__ */ List_React.createElement("div", { className: Listmodules.titleLeft, style: { marginRight: "15px" } }, renderTips(v == null ? void 0 : v.exercise_tips), /* @__PURE__ */ List_React.createElement(tooltip/* default */.Z, { title: v.exercise_name }, /* @__PURE__ */ List_React.createElement("span", { className: `${Listmodules.name}`, style: { maxWidth: ((_a = v == null ? void 0 : v.exercise_tips) == null ? void 0 : _a.includes("\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A")) ? 400 : 498 } }, v.exercise_name)), !v.is_public && (0,authority/* isAdmin */.GJ)() && /* @__PURE__ */ List_React.createElement(tooltip/* default */.Z, { title: "\u79C1\u6709\u5C5E\u6027\uFF0C\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u80FD\u8BBF\u95EE" }, /* @__PURE__ */ List_React.createElement("span", { className: "iconfont icon-suo1 ml10 mr10 c-light-black font12" })), ((_b = v == null ? void 0 : v.exercise_tips) == null ? void 0 : _b.includes("\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A")) && /* @__PURE__ */ List_React.createElement("span", { style: { flexShrink: 0 }, className: "tag-style-fzb iconfont icon-fangzuobi ml10" }, "\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A"), ((_c = v == null ? void 0 : v.exercise_tips) == null ? void 0 : _c.includes("\u5DF2\u7ED3\u675F")) && ((_d = v == null ? void 0 : v.exercise_tips) == null ? void 0 : _d.includes("\u672A\u63D0\u4EA4")) && /* @__PURE__ */ List_React.createElement("span", { style: { flexShrink: 0, backgroundColor: "#B8B8B8" }, className: "tag-style ml10" }, "\u672A\u63D0\u4EA4")), /* @__PURE__ */ List_React.createElement("div", { className: Listmodules.titleRight, onClick: (e) => { + e.stopPropagation(); + e.preventDefault(); + } }, (0,authority/* isAdmin */.GJ)() && v.assistant_auth && /* @__PURE__ */ List_React.createElement("span", { onClick: (e) => { + e.stopPropagation(); + const startTime = dayjs_min_default()(v.created_at, format); + const diff3 = dayjs_min_default()(endTime).diff(dayjs_min_default()(startTime), "days"); + if (diff3 > 0 && (v == null ? void 0 : v.is_random)) { + modalText(); + } else if (v == null ? void 0 : v.is_random) { + _umi_production_exports.history.push(`/classrooms/${v.course_id}/exercise/${v.id}/random/preview?random=${v.is_random}`); + } else { + _umi_production_exports.history.push(`/classrooms/${v.course_id}/exercise/${v.id}/detail?random=${v.is_random}&tabs=2`); + } + } }, "\u9884\u89C8"), /* @__PURE__ */ List_React.createElement( + "a", + { + onClick: (e) => { + e.preventDefault(); + e.stopPropagation(); + (0,util/* openNewWindow */.xg)(`/classrooms/${v.course_id}/exercise/${v.id}/detail?random=${v.is_random}`); } - } }, "\u9884\u89C8"), - (0,authority/* isAdminOrStudent */.RV)() && /* @__PURE__ */ _react_17_0_2_react.createElement( - "span", - { - onClick: () => { - _umi_production_exports.history.push(`/classrooms/${v.course_id}/exercise/${v.id}/detail?random=${v.is_random}`); - } - }, - "\u8BE6\u60C5" - ), - // isStudent() && - /* @__PURE__ */ _react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, v.current_status === 0 && v.exercise_status > 1 && !((_e = v.exercise_tips) == null ? void 0 : _e.includes("\u5DF2\u7ED3\u675F")) && /* @__PURE__ */ _react_17_0_2_react.createElement("a", { onClick: (e) => { - e.stopPropagation(); - e.preventDefault(); - enterExam(v); - }, href: `` }, "\u7EE7\u7EED\u8003\u8BD5"), v.current_status === 1 && v.exercise_status > 1 && /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "mr20", style: { color: "#0152d9", marginRight: "5px" }, onClick: (e) => { - var _a2; - window.location.href = `/classrooms/${v.course_id}/exercise/${v.id}/users/${(_a2 = (0,authority/* userInfo */.eY)()) == null ? void 0 : _a2.login}?check=true`; - } }, "\u67E5\u770B\u8BD5\u5377"), v.current_status === 2 && v.exercise_status > 1 && !((_f = v.exercise_tips) == null ? void 0 : _f.includes("\u5DF2\u7ED3\u675F")) && /* @__PURE__ */ _react_17_0_2_react.createElement("a", { onClick: (e) => { - e.stopPropagation(); - e.preventDefault(); - enterExam(v); - }, href: `` }, "\u5F00\u59CB\u8003\u8BD5")) - )), /* @__PURE__ */ _react_17_0_2_react.createElement("p", { style: { display: "flex" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-grey-999 mr20" }, "\u521B\u5EFA\u8005\uFF1A", /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-blue" }, v.username)), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-grey-999 mr20" }, "\u6240\u5C5E\u8BFE\u5802\uFF1A", /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-blue" }, v.course_name)), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml30 c-grey-999 mr20" }, "\u8003\u8BD5\u65F6\u957F\uFF1A", /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-blue" }, v.time === null || v.time === -1 ? "\u4E0D\u9650" : `${v.time}\u5206\u949F`)), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml15 c-grey-999" }, "\u8003\u8BD5\u65F6\u95F4\uFF1A", /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-blue" }, dayjs_min_default()(v == null ? void 0 : v.published_time).format("YYYY-MM-DD HH:mm")), " \u81F3 ", /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-blue" }, dayjs_min_default()(v == null ? void 0 : v.end_time).format("YYYY-MM-DD HH:mm"))))) + }, + "\u8BE6\u60C5" + ), /* @__PURE__ */ List_React.createElement(List_React.Fragment, null, !!v.off_limits && /* @__PURE__ */ List_React.createElement(tooltip/* default */.Z, { title: `\u8FDF\u5230\u8D85\u8FC7${v == null ? void 0 : v.last_times}\u5206\u949F\uFF0C\u7981\u6B62\u8FDB\u5165\u7B54\u9898` }, /* @__PURE__ */ List_React.createElement("b", { className: "font16 c-grey-999" }, "\u8FDF\u5230\u7981\u6B62\u7B54\u9898")), !v.off_limits && v.current_status === 0 && v.exercise_status > 1 && !((_e = v.exercise_tips) == null ? void 0 : _e.includes("\u5DF2\u622A\u6B62")) && /* @__PURE__ */ List_React.createElement("a", { onClick: (e) => { + e.stopPropagation(); + e.preventDefault(); + enterExam(v); + }, href: `` }, (v == null ? void 0 : v.screen_used_num) > (v == null ? void 0 : v.screen_total_num) && "\u7533\u8BF7", " \u7EE7\u7EED\u8003\u8BD5"), !((_f = v.exercise_tips) == null ? void 0 : _f.includes("\u5DF2\u622A\u6B62")) && (v == null ? void 0 : v.screen_used_num) > (v == null ? void 0 : v.screen_total_num) && /* @__PURE__ */ List_React.createElement("a", { onClick: (e) => { + e.stopPropagation(); + e.preventDefault(); + enterExam(v); + }, href: `` }, "\u7533\u8BF7\u7EE7\u7EED\u8003\u8BD5"), !v.off_limits && v.current_status === 1 && v.exercise_status > 1 && document.domain != "kepukehuan.educoder.net" && /* @__PURE__ */ List_React.createElement("a", { style: { color: "#0152d9" }, onClick: (e) => __async(void 0, null, function* () { + var _a2; + e.preventDefault(); + e.stopPropagation(); + if (!(v == null ? void 0 : v.answered_open)) { + message/* default */.ZP.info("\u8001\u5E08\u5DF2\u8BBE\u7F6E\u672C\u8BD5\u5377\u5728\u4EA4\u5377\u540E\u4E0D\u53EF\u67E5\u770B"); + return; + } + (0,util/* openNewWindow */.xg)(`/classrooms/${params.coursesId}/exercise/${v.id}/users/${(_a2 = (0,authority/* userInfo */.eY)()) == null ? void 0 : _a2.login}?check=true`); + }) }, "\u67E5\u770B\u8003\u8BD5"), !v.off_limits && v.current_status === 2 && v.exercise_status > 1 && !((_g = v.exercise_tips) == null ? void 0 : _g.includes("\u5DF2\u622A\u6B62")) && /* @__PURE__ */ List_React.createElement("a", { style: { color: (v == null ? void 0 : v.is_redo) === 1 && "red" }, onClick: (e) => { + e.stopPropagation(); + e.preventDefault(); + enterExam(v); + }, href: `` }, (v == null ? void 0 : v.is_redo) === 0 ? "\u5F00\u59CB\u8003\u8BD5" : "\u91CD\u65B0\u8003\u8BD5")))), /* @__PURE__ */ List_React.createElement("p", { style: { display: "flex" } }, /* @__PURE__ */ List_React.createElement("span", { className: "c-grey-999 mr20" }, "\u521B\u5EFA\u8005\uFF1A", /* @__PURE__ */ List_React.createElement("span", { className: "c-blue" }, v.username)), /* @__PURE__ */ List_React.createElement("span", { className: "c-grey-999 mr20" }, "\u6240\u5C5E\u8BFE\u5802\uFF1A", /* @__PURE__ */ List_React.createElement("span", { className: "c-blue" }, v.course_name)), /* @__PURE__ */ List_React.createElement("span", { className: "ml30 c-grey-999 mr20" }, "\u8003\u8BD5\u65F6\u957F\uFF1A", /* @__PURE__ */ List_React.createElement("span", { className: "c-blue" }, v.time === null || v.time === -1 ? "\u4E0D\u9650" : `${v.time}\u5206\u949F`)), /* @__PURE__ */ List_React.createElement("span", { className: "ml15 c-grey-999" }, "\u8003\u8BD5\u65F6\u95F4\uFF1A", /* @__PURE__ */ List_React.createElement("span", { className: "c-blue" }, dayjs_min_default()(v == null ? void 0 : v.published_time).format("YYYY-MM-DD HH:mm")), " \u81F3 ", /* @__PURE__ */ List_React.createElement("span", { className: "c-blue" }, dayjs_min_default()(v == null ? void 0 : v.end_time).format("YYYY-MM-DD HH:mm"))))) ); }; /* harmony default export */ var components_List = (List); diff --git a/layouts__index.async.js b/layouts__index.async.js index 381ffa425d..89b6552182 100644 --- a/layouts__index.async.js +++ b/layouts__index.async.js @@ -2161,6 +2161,7 @@ var zh_cn = __webpack_require__(46789); // EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.18.4@@ant-design/cssinjs/es/index.js + 35 modules var es = __webpack_require__(78600); ;// CONCATENATED MODULE: ./src/layouts/index.tsx +/* provided dependency */ var layouts_React = __webpack_require__(/*! react */ 59301); var layouts_defProp = Object.defineProperty; var layouts_defProps = Object.defineProperties; var layouts_getOwnPropDescs = Object.getOwnPropertyDescriptors; @@ -2231,6 +2232,7 @@ var layouts_async = (__this, __arguments, generator) => { dayjs_min_default().locale("zh-cn"); const SimpleLayouts = (_a) => { var _b = _a, { loading, globalSetting, user, dispatch } = _b, props = __objRest(_b, ["loading", "globalSetting", "user", "dispatch"]); + var _a2; const location = (0,_umi_production_exports.useLocation)(); const payload = (0,Header/* getCourseParam */.g)(); const { globalLoading } = globalSetting; @@ -2287,7 +2289,7 @@ const SimpleLayouts = (_a) => { }); }, []); (0,_react_17_0_2_react.useEffect)(() => { - var _a2, _b2, _c, _d, _e; + var _a3, _b2, _c, _d, _e; if (location.pathname.indexOf("classrooms") > -1 && location.pathname.indexOf("detail") === -1) { } else { document.body.scrollIntoView(); @@ -2309,7 +2311,7 @@ const SimpleLayouts = (_a) => { window.location.href = "https://www.educoder.net/problems"; return; } - if (((_a2 = window.location.href) == null ? void 0 : _a2.includes("/problems")) && ((_b2 = window.location.href) == null ? void 0 : _b2.includes("/share"))) { + if (((_a3 = window.location.href) == null ? void 0 : _a3.includes("/problems")) && ((_b2 = window.location.href) == null ? void 0 : _b2.includes("/share"))) { const ojId = (_e = (_d = (_c = window.location) == null ? void 0 : _c.pathname) == null ? void 0 : _d.split("/")) == null ? void 0 : _e[2]; const p = (0,fetch/* default */.ZP)(`/api/practices/${ojId}/start`, { method: "get" @@ -2338,24 +2340,6 @@ const SimpleLayouts = (_a) => { } } modal["default"].destroyAll(); - if ((0,util/* isLocalApp */.WX)()) { - if ((0,util/* compareVersion */.yC)("2.0.0") > 0) { - modal["default"].info({ - title: "\u5BA2\u6237\u7AEF\u7248\u672C\u8FC7\u4F4E", - centered: true, - content: /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-red" }, "\u60A8\u7684\u5934\u6B4C\u8003\u8BD5\u7CFB\u7EDF\u67DC\u5BA2\u6237\u7AEF\u7248\u672C\u8FC7\u4F4E"), '\uFF0C\u8BF7\u5347\u7EA7\u81F3\u6700\u65B0\u7248\u672C\u540E\u518D\u4F7F\u7528\uFF0C\u70B9\u51FB"\u786E\u5B9A"\u540E\u5C06\u4E0B\u8F7D\u6700\u65B0\u7248\u672C\u7684\u5BA2\u6237\u7AEF,', /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-red" }, "\u4E0B\u8F7D\u540E\u8BF7\u5148\u9000\u51FA\u5BA2\u6237\u7AEF\u518D\u5B89\u88C5")), - okText: "\u7ACB\u5373\u5347\u7EA7", - visible: true, - maskClosable: false, - onOk: () => { - (0,util/* downLoadFile */.FH)("Educoder.exe", "https://www-cdn.educoder.net/app/Educoder.exe"); - return new Promise(() => { - }); - } - }); - } - ; - } }, [location.pathname]); (0,_react_17_0_2_react.useEffect)(() => { if (globalSetting.updateData.system_update) { @@ -2373,11 +2357,32 @@ const SimpleLayouts = (_a) => { localStorage.removeItem("updateEndTime"); } }, [globalSetting.updateData.system_update]); + (0,_react_17_0_2_react.useEffect)(() => { + var _a3; + if ((0,util/* isLocalApp */.WX)()) { + if ((0,util/* compareVersion */.yC)((_a3 = globalSetting == null ? void 0 : globalSetting.setting) == null ? void 0 : _a3.version) > 0) { + modal["default"].info({ + title: "\u5BA2\u6237\u7AEF\u7248\u672C\u8FC7\u4F4E", + centered: true, + content: /* @__PURE__ */ layouts_React.createElement("div", null, /* @__PURE__ */ layouts_React.createElement("span", { className: "c-red" }, "\u60A8\u7684\u5934\u6B4C\u8003\u8BD5\u7CFB\u7EDF\u67DC\u5BA2\u6237\u7AEF\u7248\u672C\u8FC7\u4F4E"), '\uFF0C\u8BF7\u5347\u7EA7\u81F3\u6700\u65B0\u7248\u672C\u540E\u518D\u4F7F\u7528\uFF0C\u70B9\u51FB"\u786E\u5B9A"\u540E\u5C06\u4E0B\u8F7D\u6700\u65B0\u7248\u672C\u7684\u5BA2\u6237\u7AEF,', /* @__PURE__ */ layouts_React.createElement("span", { className: "c-red" }, "\u4E0B\u8F7D\u540E\u8BF7\u5148\u9000\u51FA\u5BA2\u6237\u7AEF\u518D\u5B89\u88C5")), + okText: "\u7ACB\u5373\u5347\u7EA7", + visible: true, + maskClosable: false, + onOk: () => { + (0,util/* downLoadFile */.FH)("Educoder.exe", "https://www-cdn.educoder.net/app/Educoder.exe"); + return new Promise(() => { + }); + } + }); + } + ; + } + }, [(_a2 = globalSetting == null ? void 0 : globalSetting.setting) == null ? void 0 : _a2.version]); const toTrackEvent = () => { - var _a2, _b2, _c, _d, _e, _f, _g, _h; + var _a3, _b2, _c, _d, _e, _f, _g, _h; const trackUserTime = localStorage.trackUserTime; const trackUser = localStorage.trackUser; - if (trackUserTime && dayjs_min_default()(trackUserTime).isSame(dayjs_min_default()().startOf("day"), "d") && trackUser == ((_a2 = user.userInfo) == null ? void 0 : _a2.login)) { + if (trackUserTime && dayjs_min_default()(trackUserTime).isSame(dayjs_min_default()().startOf("day"), "d") && trackUser == ((_a3 = user.userInfo) == null ? void 0 : _a3.login)) { } else { localStorage.trackUserTime = /* @__PURE__ */ new Date(); localStorage.trackUser = (_b2 = user.userInfo) == null ? void 0 : _b2.login; @@ -2410,7 +2415,7 @@ const SimpleLayouts = (_a) => { (0,util/* trackEvent */.L9)(["\u5E73\u53F0PC\u7AEF", text]); } }; - return /* @__PURE__ */ _react_17_0_2_react.createElement(es.StyleProvider, { transformers: [es.legacyLogicalPropertiesTransformer], hashPriority: "high" }, /* @__PURE__ */ _react_17_0_2_react.createElement( + return /* @__PURE__ */ layouts_React.createElement(es.StyleProvider, { transformers: [es.legacyLogicalPropertiesTransformer], hashPriority: "high" }, /* @__PURE__ */ layouts_React.createElement( config_provider/* default */.ZP, { locale: zh_CN/* default */.Z, @@ -2418,10 +2423,10 @@ const SimpleLayouts = (_a) => { componentSize: "middle", theme: antd_theme }, - /* @__PURE__ */ _react_17_0_2_react.createElement(PopLogin, null), - /* @__PURE__ */ _react_17_0_2_react.createElement(User_BindAccountPanel, null), - /* @__PURE__ */ _react_17_0_2_react.createElement(components_PodModal, null), - /* @__PURE__ */ _react_17_0_2_react.createElement(spin/* default */.Z, { size: "middle", spinning: globalLoading.show, tip: globalLoading.text, className: "ant-spin-nested-loading-black" }, /* @__PURE__ */ _react_17_0_2_react.createElement(_umi_production_exports.Outlet, null)) + /* @__PURE__ */ layouts_React.createElement(PopLogin, null), + /* @__PURE__ */ layouts_React.createElement(User_BindAccountPanel, null), + /* @__PURE__ */ layouts_React.createElement(components_PodModal, null), + /* @__PURE__ */ layouts_React.createElement(spin/* default */.Z, { size: "middle", spinning: globalLoading.show, tip: globalLoading.text, className: "ant-spin-nested-loading-black" }, /* @__PURE__ */ layouts_React.createElement(_umi_production_exports.Outlet, null)) )); }; /* harmony default export */ var layouts = ((0,_umi_production_exports.connect)(({ loading, globalSetting, user }) => ({ diff --git a/p__Classrooms__ExamList__index.chunk.css b/p__Classrooms__ExamList__index.chunk.css index b3acbf28dc..90ac8a1b90 100644 --- a/p__Classrooms__ExamList__index.chunk.css +++ b/p__Classrooms__ExamList__index.chunk.css @@ -262,7 +262,6 @@ display: flex; background: white; margin-top: 20px; - cursor: pointer; } .listItem___ye5vB > div { flex: 1 1; diff --git a/p__Classrooms__Lists__Exercise__Notice__index.async.js b/p__Classrooms__Lists__Exercise__Notice__index.async.js index 82d94a31c8..48d4c2cc17 100644 --- a/p__Classrooms__Lists__Exercise__Notice__index.async.js +++ b/p__Classrooms__Lists__Exercise__Notice__index.async.js @@ -297,7 +297,7 @@ const Notice = ({ user, dispatch, globalSetting }) => { title: "\u672C\u6B21\u8003\u8BD5\u5DF2\u7ECF\u8BBE\u7F6E\u6253\u5F00\u767D\u540D\u5355\u7A0B\u5E8F\u9650\u5236", content: /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: Noticemodules.greyText }, "\u8FDB\u5165\u8003\u8BD5\u524D\u8BF7\u5148\u5173\u95ED\u975E\u767D\u540D\u5355\u7A0B\u5E8F\uFF0C\u5426\u5219\u8FDB\u5165\u8003\u8BD5\u540E\uFF0C\u7CFB\u7EDF\u5C06\u81EA\u52A8\u5173\u95ED\u975E", /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { cursor: "default" }, className: Noticemodules.linkText }, "\u767D\u540D\u5355"), "\u7A0B\u5E8F\uFF0C\u53EF\u6253\u5F00\u7684\u767D\u540D\u5355\u7A0B\u5E8F\u5982\u4E0B\uFF1A"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: Noticemodules.whiteList }, white_list == null ? void 0 : white_list.map((e) => /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, e)))) } - )), only_on_client && !(0,util/* isLocalApp */.WX)() && /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: "ml20", style: { color: "#E53333" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { className: "iconfont icon-tishi11 font14 mr5" }), "\u672C\u6B21\u8003\u8BD5\u8BBE\u7F6E\u4E3A\u5BA2\u6237\u7AEF\u6A21\u5F0F\uFF0C\u4E0D\u53EF\u5728\u7F51\u9875\u7AEF\u8FDB\u884C\u8003\u8BD5\u7B54\u9898\uFF0C\u8BF7\u8FDB\u5165\u5BA2\u6237\u7AEF\u8FDB\u884C\u8003\u8BD5"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: Noticemodules.fixBottom }, /* @__PURE__ */ _react_17_0_2_react.createElement(es_button/* default */.ZP, { className: Noticemodules.backBtn, onClick: () => _umi_production_exports.history.push(`/classrooms/${params.coursesId}/exercise`) }, "\u8FD4\u56DE\u8003\u8BD5\u5217\u8868"), (!only_on_client || (0,util/* isLocalApp */.WX)()) && /* @__PURE__ */ _react_17_0_2_react.createElement( + )), only_on_client && !(0,util/* isLocalApp */.WX)() && /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: "ml20", style: { color: "#E53333" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { className: "iconfont icon-tishi11 font14 mr5" }), "\u672C\u6B21\u8003\u8BD5\u8BBE\u7F6E\u4E3A\u5BA2\u6237\u7AEF\u6A21\u5F0F\uFF0C\u4E0D\u53EF\u5728\u7F51\u9875\u7AEF\u8FDB\u884C\u8003\u8BD5\u7B54\u9898\uFF0C\u8BF7\u8FDB\u5165\u5BA2\u6237\u7AEF\u8FDB\u884C\u8003\u8BD5"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: Noticemodules.fixBottom }, /* @__PURE__ */ _react_17_0_2_react.createElement(es_button/* default */.ZP, { className: Noticemodules.backBtn, onClick: () => _umi_production_exports.history.back() }, "\u8FD4\u56DE\u8003\u8BD5\u5217\u8868"), (!only_on_client || (0,util/* isLocalApp */.WX)()) && /* @__PURE__ */ _react_17_0_2_react.createElement( AsyncButton/* AsyncButton */.Z, { type: "primary", diff --git a/p__index.chunk.css b/p__index.chunk.css index 328ed9f075..5a67cf36fe 100644 --- a/p__index.chunk.css +++ b/p__index.chunk.css @@ -2415,7 +2415,6 @@ display: flex; background: white; margin-top: 20px; - cursor: pointer; } .listItem___ye5vB > div { flex: 1 1;