Auto Submit

dev_local_v9_test1
autosubmit 9 months ago
parent 9455f7d753
commit 2d1338fc72

@ -27,7 +27,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.74312b01.js"></script>
<script src="/react/build/umi.f94a5515.js"></script>
<script src="/react/build/js/public.js"></script>
</body>
</html>

@ -69,6 +69,9 @@ var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(41498);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(79800);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(39647);
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
@ -82,9 +85,6 @@ var modal = __webpack_require__(43418);
var zh_CN = __webpack_require__(81863);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(80184);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(79800);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
var es_form = __webpack_require__(78241);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
@ -350,8 +350,6 @@ var LoginPopComponents = function LoginPopComponents(_ref) {
;// CONCATENATED MODULE: ./src/components/User/PopLoginRegister/components/LoginPanel/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var LoginPanelmodules = ({"login-panel-wrapper2":"login-panel-wrapper2___HuMNJ","ant-form-item-explain":"ant-form-item-explain___c1FeE","ant-form-item":"ant-form-item___qb60e","ant-form-item-with-help":"ant-form-item-with-help___NeAwJ","login-panel-right-wrp":"login-panel-right-wrp___vWD_i","res-error-values":"res-error-values___hV1lz","tabs":"tabs___EwOAX"});
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(13277);
;// CONCATENATED MODULE: ./src/components/User/PopLoginRegister/components/LoginPanel/LoginForm.tsx
@ -367,7 +365,6 @@ var authority = __webpack_require__(13277);
var LoginForm_inputStyle = {
height: 48,
borderRadius: 4
@ -403,7 +400,7 @@ var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
var password = /^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/;
var onFinish = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(values) {
var res, _userInfo, from;
var res, from;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
@ -442,7 +439,7 @@ var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
});
return _context.abrupt("return");
case 13:
if (!(res.status === -5 && (_userInfo = (0,authority/* userInfo */.eY)()) !== null && _userInfo !== void 0 && _userInfo.code)) {
if (!(res.status === -5)) {
_context.next = 17;
break;
}
@ -2924,6 +2921,7 @@ var es = __webpack_require__(93083);
var _excluded = ["loading", "globalSetting", "user", "dispatch"];
@ -2944,6 +2942,7 @@ var _excluded = ["loading", "globalSetting", "user", "dispatch"];
dayjs_min_default().locale('zh-cn');
var SimpleLayouts = function SimpleLayouts(_ref) {
var loading = _ref.loading,
@ -2951,13 +2950,24 @@ var SimpleLayouts = function SimpleLayouts(_ref) {
user = _ref.user,
dispatch = _ref.dispatch,
props = objectWithoutProperties_default()(_ref, _excluded);
var _useSearchParams = (0,_umi_production_exports.useSearchParams)(),
_useSearchParams2 = slicedToArray_default()(_useSearchParams, 1),
searchParams = _useSearchParams2[0];
var location = (0,_umi_production_exports.useLocation)();
var payload = (0,Header/* getCourseParam */.g)();
var globalLoading = globalSetting.globalLoading;
var _useState = (0,_react_17_0_2_react.useState)([]),
_useState2 = slicedToArray_default()(_useState, 2),
errorData = _useState2[0],
setErrorData = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(false),
_useState4 = slicedToArray_default()(_useState3, 2),
openUnlockLogin = _useState4[0],
setOpenUnlockLogin = _useState4[1];
var getData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _res;
var res, game_id, path, subject_id, _game_id;
var _res, _res3;
var res, game_id, path, subject_id, _game_id, _res2;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
@ -3000,10 +3010,18 @@ var SimpleLayouts = function SimpleLayouts(_ref) {
case 13:
res = _context.sent;
case 14:
if ((_res = res) !== null && _res !== void 0 && _res.username && location.pathname === '/login') {
if (!(((_res = res) === null || _res === void 0 ? void 0 : _res.status) === -5)) {
_context.next = 18;
break;
}
setErrorData([(_res2 = res) === null || _res2 === void 0 ? void 0 : _res2.message]);
setOpenUnlockLogin(true);
return _context.abrupt("return");
case 18:
if ((_res3 = res) !== null && _res3 !== void 0 && _res3.username && location.pathname === '/login') {
_umi_production_exports.history.push("/");
}
case 15:
case 19:
case "end":
return _context.stop();
}
@ -3183,7 +3201,13 @@ var SimpleLayouts = function SimpleLayouts(_ref) {
autoInsertSpaceInButton: false,
componentSize: "middle",
theme: antd_theme,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(PopLogin, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(User_BindAccountPanel, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_PodModal, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(PopLogin, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(User_BindAccountPanel, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_PodModal, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(UnlockLogin, {
open: openUnlockLogin,
data: errorData,
accountInfo: {
token: searchParams.get('code') || ''
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
size: 'middle',
spinning: globalLoading.show,
tip: globalLoading.text,

@ -3425,7 +3425,7 @@ var Answer = function Answer(_ref) {
var initData = /*#__PURE__*/function () {
var _ref9 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8() {
var _user$userInfo5;
var res, random_id, _res, _res2, _res9, _res10, _res$exercise, _res11, _res14, _res15, _res3, _answerCheckDataRef$c, _answerCheckDataRef$c2, _answerCheckDataRef$c3, _answerCheckDataRef$c4, _res4, _userInfo, _res6, _res7, _res8, _res5, _res12, _res13, _res16, _res17, _res21, _res22, _res23, _res18, _key;
var res, random_id, _res, _res2, _res9, _res10, _res$exercise, _res11, _res14, _res15, _res3, _answerCheckDataRef$c, _answerCheckDataRef$c2, _answerCheckDataRef$c3, _answerCheckDataRef$c4, _res4, _res6, _res7, _res8, _res5, _res12, _res13, _res16, _res17, _res21, _res22, _res23, _res18, _key;
return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
while (1) switch (_context8.prev = _context8.next) {
case 0:
@ -3490,7 +3490,7 @@ var Answer = function Answer(_ref) {
if (res.status === -1) {
handleToDetail();
}
if (!(((_res4 = res) === null || _res4 === void 0 ? void 0 : _res4.status) === -5 && (_userInfo = (0,authority/* userInfo */.eY)()) !== null && _userInfo !== void 0 && _userInfo.code)) {
if (!(((_res4 = res) === null || _res4 === void 0 ? void 0 : _res4.status) === -5)) {
_context8.next = 29;
break;
}
@ -4009,7 +4009,7 @@ var Answer = function Answer(_ref) {
}();
var handleSave = /*#__PURE__*/function () {
var _ref15 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee18(questionId, exercise_choice_id, answer_text, callBack, kp_content, kp_clazz, hideLoading) {
var _res$alert, _userInfo2;
var _res$alert;
var ip, saveParams, res, _res$alert2;
return regeneratorRuntime_default()().wrap(function _callee18$(_context18) {
while (1) switch (_context18.prev = _context18.next) {
@ -4079,7 +4079,7 @@ var Answer = function Answer(_ref) {
} else if ((res === null || res === void 0 ? void 0 : res.status) === -4) {
//提交的答案为空时为-4
signConfigFuc();
} else if ((res === null || res === void 0 ? void 0 : res.status) === -5 && (_userInfo2 = (0,authority/* userInfo */.eY)()) !== null && _userInfo2 !== void 0 && _userInfo2.code) {
} else if ((res === null || res === void 0 ? void 0 : res.status) === -5) {
dispatch({
type: 'exercise/setActionTabs',
payload: {

@ -2661,8 +2661,6 @@ var useRemindModal = __webpack_require__(697);
var recordScreen = __webpack_require__(94319);
// EXTERNAL MODULE: ./src/components/Hooks/index.tsx
var Hooks = __webpack_require__(58151);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(13277);
// EXTERNAL MODULE: ./src/assets/images/question/time.svg
var time = __webpack_require__(72139);
// EXTERNAL MODULE: ./src/assets/images/question/title.svg
@ -2705,7 +2703,6 @@ var _excluded = ["input", "showNote", "onShowNote", "notes", "onCancelNote", "on
var Countdown = statistic/* default */.Z.Countdown;
@ -3071,7 +3068,6 @@ function MyProblem_reducer(state, action) {
}
function _onUpdateCode() {
_onUpdateCode = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9(value) {
var _userInfo;
var ip, response, _exerciseData$exercis5;
return regeneratorRuntime_default()().wrap(function _callee9$(_context9) {
while (1) switch (_context9.prev = _context9.next) {
@ -3098,7 +3094,7 @@ function MyProblem_reducer(state, action) {
});
case 6:
response = _context9.sent;
if (response.status === -5 && (_userInfo = (0,authority/* userInfo */.eY)()) !== null && _userInfo !== void 0 && _userInfo.code) {
if (response.status === -5) {
(0,_umi_production_exports.getDvaApp)()._store.dispatch({
type: 'exercise/setActionTabs',
payload: {

@ -969,12 +969,11 @@ var _excluded = ["globalSetting", "loading", "dispatch"];
var Countdown = statistic/* default */.Z.Countdown;
var Countdown = statistic/* default */.Z.Countdown;
var Status = /*#__PURE__*/function (Status) {
Status[Status["LoadFail"] = 1] = "LoadFail";
Status[Status["ReLoad"] = 2] = "ReLoad";
@ -1197,7 +1196,7 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
};
var handleSaveWithTPI = /*#__PURE__*/function () {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
var _urlRef$current, _userInfo;
var _urlRef$current;
var res, _exerciseDataRef$curr, _exerciseDataRef$curr2;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
@ -1225,7 +1224,7 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
_context3.next = 10;
break;
case 7:
if (!(res.status === -5 && typeof_default()(res === null || res === void 0 ? void 0 : res.message) === "object" && (_userInfo = (0,authority/* userInfo */.eY)()) !== null && _userInfo !== void 0 && _userInfo.code)) {
if (!(res.status === -5 && typeof_default()(res === null || res === void 0 ? void 0 : res.message) === "object")) {
_context3.next = 10;
break;
}

@ -16654,7 +16654,7 @@ function tasks_reducer(state, action) {
case 4:
response = _context16.sent;
resubmit = response.resubmit, sec_key = response.sec_key, content_modified = response.content_modified;
if (!(response.status === -5 && typeof_default()(response === null || response === void 0 ? void 0 : response.message) === "object" && userInfo !== null && userInfo !== void 0 && userInfo.code)) {
if (!(response.status === -5 && typeof_default()(response === null || response === void 0 ? void 0 : response.message) === "object")) {
_context16.next = 9;
break;
}

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