Auto Submit

dev_local_v9_test4
autosubmit 2 years ago
parent c8a50f9829
commit 1fd07e8e50

@ -1,12 +1,12 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[31496],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[31045],{
/***/ 31496:
/***/ 31045:
/*!****************************************************************!*\
!*** ./node_modules/_dompurify@2.5.1@dompurify/dist/purify.js ***!
!*** ./node_modules/_dompurify@2.5.2@dompurify/dist/purify.js ***!
\****************************************************************/
/***/ (function(module) {
/*! @license DOMPurify 2.5.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.1/LICENSE */
/*! @license DOMPurify 2.5.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.2/LICENSE */
(function (global, factory) {
true ? module.exports = factory() :
@ -294,7 +294,7 @@
* Version label, exposed for easier checks
* if DOMPurify is up to date or not
*/
DOMPurify.version = '2.5.1';
DOMPurify.version = '2.5.2';
/**
* Array of elements that DOMPurify removed during sanitation.
@ -684,7 +684,7 @@
CONFIG = cfg;
};
var MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);
var HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'desc', 'title', 'annotation-xml']);
var HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'annotation-xml']);
// Certain elements are allowed in both SVG and HTML
// namespace. We need to specify them explicitly
@ -1255,15 +1255,16 @@
if (_sanitizeElements(shadowNode)) {
continue;
}
var parentNode = getParentNode(shadowNode);
/* Set the nesting depth of an element */
if (shadowNode.nodeType === 1) {
if (shadowNode.parentNode && shadowNode.parentNode.__depth) {
if (parentNode && parentNode.__depth) {
/*
We want the depth of the node in the original tree, which can
change when it's removed from its parent.
*/
shadowNode.__depth = (shadowNode.__removalCount || 0) + shadowNode.parentNode.__depth + 1;
shadowNode.__depth = (shadowNode.__removalCount || 0) + parentNode.__depth + 1;
} else {
shadowNode.__depth = 1;
}
@ -1406,15 +1407,16 @@
if (_sanitizeElements(currentNode)) {
continue;
}
var parentNode = getParentNode(currentNode);
/* Set the nesting depth of an element */
if (currentNode.nodeType === 1) {
if (currentNode.parentNode && currentNode.parentNode.__depth) {
if (parentNode && parentNode.__depth) {
/*
We want the depth of the node in the original tree, which can
change when it's removed from its parent.
*/
currentNode.__depth = (currentNode.__removalCount || 0) + currentNode.parentNode.__depth + 1;
currentNode.__depth = (currentNode.__removalCount || 0) + parentNode.__depth + 1;
} else {
currentNode.__depth = 1;
}

File diff suppressed because one or more lines are too long

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

@ -1524,13 +1524,19 @@ function reducer(state, action) {
type: Types.SET_LOADING,
payload: false
});
_context6.next = 85;
_context6.next = 83;
break;
case 53:
// const typeStr = searchParams.get('type') || ''
console.log("111", searchParams.get('type'));
return _context6.abrupt("return");
case 57:
_context6.next = 55;
return (0,service/* addProgrammingTopic */.zQ)({
hack: hack,
hack_codes: hack_codes,
hack_sets: new_list,
tags: tags,
examination_bank_id: express_id || null,
item_type: typeStr
});
case 55:
_yield$addProgramming = _context6.sent;
identifier = _yield$addProgramming.identifier;
exam_identifier = _yield$addProgramming.exam_identifier;
@ -1539,17 +1545,17 @@ function reducer(state, action) {
payload: false
});
if (!(saveType === 'start')) {
_context6.next = 63;
_context6.next = 61;
break;
}
return _context6.abrupt("return");
case 63:
case 61:
if (!identifier) {
_context6.next = 85;
_context6.next = 83;
break;
}
if (callback_url) {
_context6.next = 68;
_context6.next = 66;
break;
}
modal/* default */.Z.confirm({
@ -1587,21 +1593,21 @@ function reducer(state, action) {
}()
});
// history.replace(`/problems/${identifier}/edit?lastedUpdateTime=${getTimeStamp()}`)
_context6.next = 85;
_context6.next = 83;
break;
case 68:
_context6.next = 70;
case 66:
_context6.next = 68;
return (0,service/* publishProgrammingTopic */.j2)(identifier);
case 70:
case 68:
if (id) {
_context6.next = 84;
_context6.next = 82;
break;
}
if (!callback_url.includes('paperlibrary')) {
_context6.next = 77;
_context6.next = 75;
break;
}
_context6.next = 74;
_context6.next = 72;
return (0,paperlibrary/* createOrModifyQuestion */.oF)({
id: express_id,
item_type: utils_enum/* QuestionType */.c.Program,
@ -1613,14 +1619,14 @@ function reducer(state, action) {
identifier: exam_identifier,
analysis: hack.analysis
});
case 74:
case 72:
_res = _context6.sent;
if (_res.status === 0) {
_umi_production_exports.history.replace(searchParams.get('callback_url'));
}
return _context6.abrupt("return");
case 77:
_context6.next = 79;
case 75:
_context6.next = 77;
return (0,service/* addExerciseQuestion */.MK)(parseInt(express_id, 10), {
question_type: 6,
question_score: hack.score,
@ -1629,17 +1635,17 @@ function reducer(state, action) {
tag_discipline_ids: hack.tag_discipline_ids,
analysis: hack.analysis
});
case 79:
case 77:
_yield$addExerciseQue = _context6.sent;
_status3 = _yield$addExerciseQue.status;
if (_status3 === 0) {
_umi_production_exports.history.replace(searchParams.get('callback_url'));
}
_context6.next = 85;
_context6.next = 83;
break;
case 84:
case 82:
_umi_production_exports.history.replace(searchParams.get('callback_url'));
case 85:
case 83:
case "end":
return _context6.stop();
}

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