Auto Submit

pull/1/head
autosubmit 2 years ago
parent ada6825ba5
commit 528c4871e8

@ -123,7 +123,6 @@ var CertificateModal = function CertificateModal(_ref) {
}
}
}, [data]);
console.log('-----', type, data);
var month = {
'1': "January",
'2': "February",

@ -1116,16 +1116,15 @@ var ButtonLoading = function ButtonLoading(_ref) {
case 0:
stats = items.userAnswer;
codes = js_base64__WEBPACK_IMPORTED_MODULE_6__.Base64.decode(items.code);
debugger;
if (!(stats.length > 0 && ((_stats$filter2 = stats.filter(function (item) {
return !item.value;
})) === null || _stats$filter2 === void 0 ? void 0 : _stats$filter2.length) > 0)) {
_context5.next = 6;
_context5.next = 5;
break;
}
antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .ZP.info('填空项不能为空!');
return _context5.abrupt("return");
case 6:
case 5:
if (stats.length > 0) {
stats === null || stats === void 0 || stats.map(function (item) {
if (item.multi_line) {
@ -1135,15 +1134,15 @@ var ButtonLoading = function ButtonLoading(_ref) {
}
});
}
_context5.next = 9;
_context5.next = 8;
return (0,_pages_MyProblem_service__WEBPACK_IMPORTED_MODULE_8__/* .updateCode */ .n4)(id, re ? re : {
code: js_base64__WEBPACK_IMPORTED_MODULE_6__.Base64.encode(codes),
language: items.language
});
case 9:
case 8:
response = _context5.sent;
return _context5.abrupt("return", response);
case 11:
case 10:
case "end":
return _context5.stop();
}

File diff suppressed because it is too large Load Diff

@ -5065,7 +5065,6 @@ var SendToClassModal = function SendToClassModal(_ref) {
_useState8 = slicedToArray_default()(_useState7, 2),
currentCourse = _useState8[0],
setCurrentCourse = _useState8[1];
console.log("visibleType:", visibleType);
(0,_react_17_0_2_react.useEffect)(function () {
if (props.data && !(0,lodash.isEqual)(props.data, gData)) {
openkeysAll = [];
@ -5571,6 +5570,10 @@ var SendToClassModal = function SendToClassModal(_ref) {
icon = /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-kongbai c-brilliant-blue font20"
});
} else if (nodeData.item_type === 'ExaminationBank') {
icon = /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-zhangjieceshibeifen c-brilliant-blue font20"
});
} else if (nodeData.item_type === 'SubjectHomework' && nodeData.homework_type === 'group') {
icon = /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-fenzuzuoye3 font20",
@ -5669,6 +5672,11 @@ var SendToClassModal = function SendToClassModal(_ref) {
style: {
color: '#1db37f'
}
}) : nodeData.item_type === 'ExaminationBank' ? /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-zhangjieceshibeifen font20",
style: {
color: '#e9a318'
}
}) : nodeData.item_type === 'Shixun' && nodeData.is_all_choice ? /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u9009\u62E9\u9898",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
@ -5729,26 +5737,29 @@ var SendToClassModal = function SendToClassModal(_ref) {
res = _context7.sent;
case 6:
_context7.t0 = nodeData.item_type;
_context7.next = _context7.t0 === 'Attachment' ? 9 : _context7.t0 === 'VideoItem' ? 11 : _context7.t0 === 'SubjectHomework' ? 13 : _context7.t0 === 'Shixun' ? 15 : 17;
_context7.next = _context7.t0 === 'Attachment' ? 9 : _context7.t0 === 'VideoItem' ? 11 : _context7.t0 === 'ExaminationBank' ? 13 : _context7.t0 === 'SubjectHomework' ? 15 : _context7.t0 === 'Shixun' ? 17 : 19;
break;
case 9:
// openNewWindow(nodeData.url);
toStudentVideo(item);
return _context7.abrupt("break", 17);
return _context7.abrupt("break", 19);
case 11:
toStudentVideo(nodeData);
return _context7.abrupt("break", 17);
return _context7.abrupt("break", 19);
case 13:
toStudentVideo(nodeData);
return _context7.abrupt("break", 19);
case 15:
if (nodeData.homework_type == 'group') {
toStudentVideo(nodeData);
} else if (nodeData.homework_type == 'normal') {
toStudentVideo(nodeData);
}
return _context7.abrupt("break", 17);
case 15:
handleToShixun(nodeData);
return _context7.abrupt("break", 17);
return _context7.abrupt("break", 19);
case 17:
handleToShixun(nodeData);
return _context7.abrupt("break", 19);
case 19:
case "end":
return _context7.stop();
}
@ -5849,7 +5860,7 @@ var SendToClassModal = function SendToClassModal(_ref) {
children: "\u62D6\u52A8\u53EF\u4EE5\u6539\u53D8\u9879\u76EE\u663E\u793A\u987A\u5E8F"
}), isHovered && /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
className: "tr",
children: [(item.item_type === 'VideoItem' || (item === null || item === void 0 ? void 0 : item.item_type) === "Attachment" || (item === null || item === void 0 ? void 0 : item.item_type) === 'StageCatalog' || (item === null || item === void 0 ? void 0 : item.item_type) === 'SubjectHomework') && !props.disabled && !props.hiddenEditBtn && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
children: [(item.item_type === 'VideoItem' || (item === null || item === void 0 ? void 0 : item.item_type) === "Attachment" || (item === null || item === void 0 ? void 0 : item.item_type) === 'StageCatalog' || (item === null || item === void 0 ? void 0 : item.item_type) === 'SubjectHomework' || (item === null || item === void 0 ? void 0 : item.item_type) === 'ExaminationBank') && !props.disabled && !props.hiddenEditBtn && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u7F16\u8F91",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: function onClick() {
@ -5930,7 +5941,7 @@ var SendToClassModal = function SendToClassModal(_ref) {
})),
children: "\u67E5\u770B\u8BE6\u60C5"
})]
}), props.showVideoPlay && props.disabled && item.item_type === 'VideoItem' && notCollectPay && /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
}), props.showVideoPlay && props.disabled && item.item_type === 'ExaminationBank' && notCollectPay && /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
children: [!(0,authority/* isCommonStudent */.JA)() && isPaths && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: "mr10",
type: "primary",
@ -5950,7 +5961,8 @@ var SendToClassModal = function SendToClassModal(_ref) {
key: 'Stage-SendModal',
params: {
id: item.stage_item_id,
title: '视频'
title: '测验',
examinationid: item.id
}
}
});
@ -5961,24 +5973,30 @@ var SendToClassModal = function SendToClassModal(_ref) {
}, _callee10);
})),
children: "\u53D1\u9001"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
}), !(0,authority/* isCommonStudent */.JA)() && isPaths && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee11() {
return regeneratorRuntime_default()().wrap(function _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
case 0:
toStudentVideo(item);
case 1:
if ((0,verifyLogin/* handleVerify */.tJ)(dispatch)) {
_context11.next = 2;
break;
}
return _context11.abrupt("return");
case 2:
window.open("/paperlibrary/see/".concat(item.id, "?defaultActiveKey=1"));
case 3:
case "end":
return _context11.stop();
}
}, _callee11);
})),
children: item.last_point > 0 ? '继续学习' : '开始学习'
children: "\u67E5\u770B\u8BE6\u60C5"
})]
}), (item.allow_visit || item.to_be_built || !item.shixun_status) && props.disabled && item.item_type === 'Shixun' && notCollectPay && /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
children: [!(0,authority/* isCommonStudent */.JA)() && isPaths && !item.shixun_status && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: "ml10",
}), props.showVideoPlay && props.disabled && item.item_type === 'VideoItem' && notCollectPay && /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
children: [!(0,authority/* isCommonStudent */.JA)() && isPaths && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: "mr10",
type: "primary",
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee12() {
return regeneratorRuntime_default()().wrap(function _callee12$(_context12) {
@ -5996,9 +6014,7 @@ var SendToClassModal = function SendToClassModal(_ref) {
key: 'Stage-SendModal',
params: {
id: item.stage_item_id,
title: '实训',
is_jupyter: item === null || item === void 0 ? void 0 : item.is_jupyter,
identifier: item === null || item === void 0 ? void 0 : item.identifier
title: '视频'
}
}
});
@ -6010,23 +6026,71 @@ var SendToClassModal = function SendToClassModal(_ref) {
})),
children: "\u53D1\u9001"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: "ml10",
type: "primary",
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee13() {
return regeneratorRuntime_default()().wrap(function _callee13$(_context13) {
while (1) switch (_context13.prev = _context13.next) {
case 0:
toStudentVideo(item);
case 1:
case "end":
return _context13.stop();
}
}, _callee13);
})),
children: item.last_point > 0 ? '继续学习' : '开始学习'
})]
}), (item.allow_visit || item.to_be_built || !item.shixun_status) && props.disabled && item.item_type === 'Shixun' && notCollectPay && /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
children: [!(0,authority/* isCommonStudent */.JA)() && isPaths && !item.shixun_status && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: "ml10",
type: "primary",
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee14() {
return regeneratorRuntime_default()().wrap(function _callee14$(_context14) {
while (1) switch (_context14.prev = _context14.next) {
case 0:
if ((0,verifyLogin/* handleVerify */.tJ)(dispatch)) {
_context14.next = 2;
break;
}
return _context14.abrupt("return");
case 2:
dispatch({
type: 'shixunsDetail/setActionTabs',
payload: {
key: 'Stage-SendModal',
params: {
id: item.stage_item_id,
title: '实训',
is_jupyter: item === null || item === void 0 ? void 0 : item.is_jupyter,
identifier: item === null || item === void 0 ? void 0 : item.identifier
}
}
});
case 3:
case "end":
return _context14.stop();
}
}, _callee14);
})),
children: "\u53D1\u9001"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: "ml10",
type: "primary",
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee15() {
return regeneratorRuntime_default()().wrap(function _callee15$(_context15) {
while (1) switch (_context15.prev = _context15.next) {
case 0:
if ((0,verifyLogin/* handleVerify */.tJ)(dispatch)) {
_context13.next = 2;
_context15.next = 2;
break;
}
return _context13.abrupt("return");
return _context15.abrupt("return");
case 2:
if (!(currentCourse !== null && currentCourse !== void 0 && currentCourse.course_id)) {
_context13.next = 5;
_context15.next = 5;
break;
}
_context13.next = 5;
_context15.next = 5;
return (0,paths/* immediatelyRegister */.JS)({
id: currentCourse === null || currentCourse === void 0 ? void 0 : currentCourse.course_id
});
@ -6034,22 +6098,22 @@ var SendToClassModal = function SendToClassModal(_ref) {
window.open("/shixuns/".concat(item.identifier, "/challenges"));
case 6:
case "end":
return _context13.stop();
return _context15.stop();
}
}, _callee13);
}, _callee15);
})),
children: "\u67E5\u770B\u8BE6\u60C5"
}), !item.shixun_status && /*#__PURE__*/(0,jsx_runtime.jsx)(AsyncButton/* AsyncButton */.Z, {
className: "ml10",
type: "primary",
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee15() {
return regeneratorRuntime_default()().wrap(function _callee15$(_context15) {
while (1) switch (_context15.prev = _context15.next) {
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee17() {
return regeneratorRuntime_default()().wrap(function _callee17$(_context17) {
while (1) switch (_context17.prev = _context17.next) {
case 0:
return _context15.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref14 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee14(resolve) {
return regeneratorRuntime_default()().wrap(function _callee14$(_context14) {
while (1) switch (_context14.prev = _context14.next) {
return _context17.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref16 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee16(resolve) {
return regeneratorRuntime_default()().wrap(function _callee16$(_context16) {
while (1) switch (_context16.prev = _context16.next) {
case 0:
handleToShixun(item);
setTimeout(function () {
@ -6057,19 +6121,19 @@ var SendToClassModal = function SendToClassModal(_ref) {
}, 2000);
case 2:
case "end":
return _context14.stop();
return _context16.stop();
}
}, _callee14);
}, _callee16);
}));
return function (_x6) {
return _ref14.apply(this, arguments);
return _ref16.apply(this, arguments);
};
}()));
case 1:
case "end":
return _context15.stop();
return _context17.stop();
}
}, _callee15);
}, _callee17);
})),
children: item !== null && item !== void 0 && item.need_authorize ? '需授权' : !(nodeData !== null && nodeData !== void 0 && nodeData.finished_challenges_count) ? '开始实战' : (nodeData === null || nodeData === void 0 ? void 0 : nodeData.finished_challenges_count) - (nodeData === null || nodeData === void 0 ? void 0 : nodeData.challenges_count) === 0 ? '再次实战' : '继续实战'
})]
@ -6100,11 +6164,11 @@ var SendToClassModal = function SendToClassModal(_ref) {
children: doms
});
};
/* harmony default export */ var Sort = ((0,_umi_production_exports.connect)(function (_ref15) {
var pathsDetail = _ref15.pathsDetail,
loading = _ref15.loading,
user = _ref15.user,
globalSetting = _ref15.globalSetting;
/* harmony default export */ var Sort = ((0,_umi_production_exports.connect)(function (_ref17) {
var pathsDetail = _ref17.pathsDetail,
loading = _ref17.loading,
user = _ref17.user,
globalSetting = _ref17.globalSetting;
return {
pathsDetail: pathsDetail,
globalSetting: globalSetting,

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[39219],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[53067],{
/***/ 77578:
/*!**********************************************************************!*\
@ -4090,51 +4090,6 @@ module.exports = exports['default'];
module.exports = __webpack_require__(/*! ./dist/InfiniteScroll */ 51581)
/***/ }),
/***/ 43408:
/*!***************************************************************************!*\
!*** ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/get.js ***!
\***************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
var superPropBase = __webpack_require__(/*! ./superPropBase.js */ 63927);
function _get() {
if (typeof Reflect !== "undefined" && Reflect.get) {
module.exports = _get = Reflect.get.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
} else {
module.exports = _get = function _get(target, property, receiver) {
var base = superPropBase(target, property);
if (!base) return;
var desc = Object.getOwnPropertyDescriptor(base, property);
if (desc.get) {
return desc.get.call(arguments.length < 3 ? target : receiver);
}
return desc.value;
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
}
return _get.apply(this, arguments);
}
module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ 63927:
/*!*************************************************************************************!*\
!*** ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/superPropBase.js ***!
\*************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ 13210);
function _superPropBase(object, property) {
while (!Object.prototype.hasOwnProperty.call(object, property)) {
object = getPrototypeOf(object);
if (object === null) break;
}
return object;
}
module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ })
}]);

File diff suppressed because it is too large Load Diff

@ -43,7 +43,7 @@ if (false) {}
/***/ }),
/***/ 8834:
/***/ 92296:
/*!******************************************************!*\
!*** ./src/components/CodeBox/index.tsx + 1 modules ***!
\******************************************************/

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[86208,37825,43428,56047,73755],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[96455,37825,43428,56047,73755],{
/***/ 47104:
/*!*************************************************************************************************************!*\
@ -5018,6 +5018,246 @@ echarts.registerPreprocessor(function (option) {
});
/***/ }),
/***/ 24334:
/*!***********************************************************!*\
!*** ./node_modules/_js-base64@2.6.4@js-base64/base64.js ***!
\***********************************************************/
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
* base64.js
*
* Licensed under the BSD 3-Clause License.
* http://opensource.org/licenses/BSD-3-Clause
*
* References:
* http://en.wikipedia.org/wiki/Base64
*/
;(function (global, factory) {
true
? module.exports = factory(global)
: 0
}((
typeof self !== 'undefined' ? self
: typeof window !== 'undefined' ? window
: typeof __webpack_require__.g !== 'undefined' ? __webpack_require__.g
: this
), function(global) {
'use strict';
// existing version for noConflict()
global = global || {};
var _Base64 = global.Base64;
var version = "2.6.4";
// constants
var b64chars
= 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
var b64tab = function(bin) {
var t = {};
for (var i = 0, l = bin.length; i < l; i++) t[bin.charAt(i)] = i;
return t;
}(b64chars);
var fromCharCode = String.fromCharCode;
// encoder stuff
var cb_utob = function(c) {
if (c.length < 2) {
var cc = c.charCodeAt(0);
return cc < 0x80 ? c
: cc < 0x800 ? (fromCharCode(0xc0 | (cc >>> 6))
+ fromCharCode(0x80 | (cc & 0x3f)))
: (fromCharCode(0xe0 | ((cc >>> 12) & 0x0f))
+ fromCharCode(0x80 | ((cc >>> 6) & 0x3f))
+ fromCharCode(0x80 | ( cc & 0x3f)));
} else {
var cc = 0x10000
+ (c.charCodeAt(0) - 0xD800) * 0x400
+ (c.charCodeAt(1) - 0xDC00);
return (fromCharCode(0xf0 | ((cc >>> 18) & 0x07))
+ fromCharCode(0x80 | ((cc >>> 12) & 0x3f))
+ fromCharCode(0x80 | ((cc >>> 6) & 0x3f))
+ fromCharCode(0x80 | ( cc & 0x3f)));
}
};
var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
var utob = function(u) {
return u.replace(re_utob, cb_utob);
};
var cb_encode = function(ccc) {
var padlen = [0, 2, 1][ccc.length % 3],
ord = ccc.charCodeAt(0) << 16
| ((ccc.length > 1 ? ccc.charCodeAt(1) : 0) << 8)
| ((ccc.length > 2 ? ccc.charCodeAt(2) : 0)),
chars = [
b64chars.charAt( ord >>> 18),
b64chars.charAt((ord >>> 12) & 63),
padlen >= 2 ? '=' : b64chars.charAt((ord >>> 6) & 63),
padlen >= 1 ? '=' : b64chars.charAt(ord & 63)
];
return chars.join('');
};
var btoa = global.btoa && typeof global.btoa == 'function'
? function(b){ return global.btoa(b) } : function(b) {
if (b.match(/[^\x00-\xFF]/)) throw new RangeError(
'The string contains invalid characters.'
);
return b.replace(/[\s\S]{1,3}/g, cb_encode);
};
var _encode = function(u) {
return btoa(utob(String(u)));
};
var mkUriSafe = function (b64) {
return b64.replace(/[+\/]/g, function(m0) {
return m0 == '+' ? '-' : '_';
}).replace(/=/g, '');
};
var encode = function(u, urisafe) {
return urisafe ? mkUriSafe(_encode(u)) : _encode(u);
};
var encodeURI = function(u) { return encode(u, true) };
var fromUint8Array;
if (global.Uint8Array) fromUint8Array = function(a, urisafe) {
// return btoa(fromCharCode.apply(null, a));
var b64 = '';
for (var i = 0, l = a.length; i < l; i += 3) {
var a0 = a[i], a1 = a[i+1], a2 = a[i+2];
var ord = a0 << 16 | a1 << 8 | a2;
b64 += b64chars.charAt( ord >>> 18)
+ b64chars.charAt((ord >>> 12) & 63)
+ ( typeof a1 != 'undefined'
? b64chars.charAt((ord >>> 6) & 63) : '=')
+ ( typeof a2 != 'undefined'
? b64chars.charAt( ord & 63) : '=');
}
return urisafe ? mkUriSafe(b64) : b64;
};
// decoder stuff
var re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;
var cb_btou = function(cccc) {
switch(cccc.length) {
case 4:
var cp = ((0x07 & cccc.charCodeAt(0)) << 18)
| ((0x3f & cccc.charCodeAt(1)) << 12)
| ((0x3f & cccc.charCodeAt(2)) << 6)
| (0x3f & cccc.charCodeAt(3)),
offset = cp - 0x10000;
return (fromCharCode((offset >>> 10) + 0xD800)
+ fromCharCode((offset & 0x3FF) + 0xDC00));
case 3:
return fromCharCode(
((0x0f & cccc.charCodeAt(0)) << 12)
| ((0x3f & cccc.charCodeAt(1)) << 6)
| (0x3f & cccc.charCodeAt(2))
);
default:
return fromCharCode(
((0x1f & cccc.charCodeAt(0)) << 6)
| (0x3f & cccc.charCodeAt(1))
);
}
};
var btou = function(b) {
return b.replace(re_btou, cb_btou);
};
var cb_decode = function(cccc) {
var len = cccc.length,
padlen = len % 4,
n = (len > 0 ? b64tab[cccc.charAt(0)] << 18 : 0)
| (len > 1 ? b64tab[cccc.charAt(1)] << 12 : 0)
| (len > 2 ? b64tab[cccc.charAt(2)] << 6 : 0)
| (len > 3 ? b64tab[cccc.charAt(3)] : 0),
chars = [
fromCharCode( n >>> 16),
fromCharCode((n >>> 8) & 0xff),
fromCharCode( n & 0xff)
];
chars.length -= [0, 0, 2, 1][padlen];
return chars.join('');
};
var _atob = global.atob && typeof global.atob == 'function'
? function(a){ return global.atob(a) } : function(a){
return a.replace(/\S{1,4}/g, cb_decode);
};
var atob = function(a) {
return _atob(String(a).replace(/[^A-Za-z0-9\+\/]/g, ''));
};
var _decode = function(a) { return btou(_atob(a)) };
var _fromURI = function(a) {
return String(a).replace(/[-_]/g, function(m0) {
return m0 == '-' ? '+' : '/'
}).replace(/[^A-Za-z0-9\+\/]/g, '');
};
var decode = function(a){
return _decode(_fromURI(a));
};
var toUint8Array;
if (global.Uint8Array) toUint8Array = function(a) {
return Uint8Array.from(atob(_fromURI(a)), function(c) {
return c.charCodeAt(0);
});
};
var noConflict = function() {
var Base64 = global.Base64;
global.Base64 = _Base64;
return Base64;
};
// export Base64
global.Base64 = {
VERSION: version,
atob: atob,
btoa: btoa,
fromBase64: decode,
toBase64: encode,
utob: utob,
encode: encode,
encodeURI: encodeURI,
btou: btou,
decode: decode,
noConflict: noConflict,
fromUint8Array: fromUint8Array,
toUint8Array: toUint8Array
};
// if ES5 is available, make Base64.extendString() available
if (typeof Object.defineProperty === 'function') {
var noEnum = function(v){
return {value:v,enumerable:false,writable:true,configurable:true};
};
global.Base64.extendString = function () {
Object.defineProperty(
String.prototype, 'fromBase64', noEnum(function () {
return decode(this)
}));
Object.defineProperty(
String.prototype, 'toBase64', noEnum(function (urisafe) {
return encode(this, urisafe)
}));
Object.defineProperty(
String.prototype, 'toBase64URI', noEnum(function () {
return encode(this, true)
}));
};
}
//
// export Base64 to the namespace
//
if (global['Meteor']) { // Meteor.js
Base64 = global.Base64;
}
// module.exports and AMD are mutually exclusive.
// module.exports has precedence.
if ( true && module.exports) {
module.exports.Base64 = global.Base64;
}
else if (true) {
// AMD. Register as an anonymous module.
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function(){ return global.Base64 }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
}
// that's it!
return {Base64: global.Base64}
}));
/***/ }),
/***/ 83145:
@ -5155,6 +5395,613 @@ var _require = __webpack_require__(/*! ./Component */ 83145),
CopyToClipboard.CopyToClipboard = CopyToClipboard;
module.exports = CopyToClipboard;
/***/ }),
/***/ 80010:
/*!*********************************************************************************!*\
!*** ./node_modules/_react-resizable@1.11.0@react-resizable/build/Resizable.js ***!
\*********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _react = _interopRequireDefault(__webpack_require__(/*! react */ 59301));
var _reactDraggable = __webpack_require__(/*! react-draggable */ 12911);
var _utils = __webpack_require__(/*! ./utils */ 73638);
var _propTypes = __webpack_require__(/*! ./propTypes */ 6217);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var Resizable = /*#__PURE__*/function (_React$Component) {
_inheritsLoose(Resizable, _React$Component);
function Resizable() {
var _this;
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
_defineProperty(_assertThisInitialized(_this), "state", undefined);
_defineProperty(_assertThisInitialized(_this), "lastHandleRect", null);
_defineProperty(_assertThisInitialized(_this), "slack", null);
return _this;
}
var _proto = Resizable.prototype;
_proto.componentWillUnmount = function componentWillUnmount() {
this.resetData();
};
_proto.lockAspectRatio = function lockAspectRatio(width, height, aspectRatio) {
height = width / aspectRatio;
width = height * aspectRatio;
return [width, height];
};
_proto.resetData = function resetData() {
this.lastHandleRect = this.slack = null;
} // Clamp width and height within provided constraints
;
_proto.runConstraints = function runConstraints(width, height) {
var _ref = [this.props.minConstraints, this.props.maxConstraints],
min = _ref[0],
max = _ref[1];
if (!min && !max) return [width, height]; // If constraining to min and max, we need to also fit width and height to aspect ratio.
if (this.props.lockAspectRatio) {
var resizingHorizontally = height === this.props.height;
if (resizingHorizontally) {
var ratio = this.props.width / this.props.height;
height = width / ratio;
width = height * ratio;
} else {
// Take into account vertical resize with N/S handles on locked aspect
// ratio. Calculate the change height-first, instead of width-first
var _ratio = this.props.height / this.props.width;
width = height / _ratio;
height = width * _ratio;
}
}
var oldW = width,
oldH = height; // Add slack to the values used to calculate bound position. This will ensure that if
// we start removing slack, the element won't react to it right away until it's been
// completely removed.
var _ref2 = this.slack || [0, 0],
slackW = _ref2[0],
slackH = _ref2[1];
width += slackW;
height += slackH;
if (min) {
width = Math.max(min[0], width);
height = Math.max(min[1], height);
}
if (max) {
width = Math.min(max[0], width);
height = Math.min(max[1], height);
} // If the width or height changed, we must have introduced some slack. Record it for the next iteration.
this.slack = [slackW + (oldW - width), slackH + (oldH - height)];
return [width, height];
}
/**
* Wrapper around drag events to provide more useful data.
*
* @param {String} handlerName Handler name to wrap.
* @return {Function} Handler function.
*/
;
_proto.resizeHandler = function resizeHandler(handlerName, axis) {
var _this2 = this;
return function (e, _ref3) {
var node = _ref3.node,
deltaX = _ref3.deltaX,
deltaY = _ref3.deltaY;
// Reset data in case it was left over somehow (should not be possible)
if (handlerName === 'onResizeStart') _this2.resetData(); // Axis restrictions
var canDragX = (_this2.props.axis === 'both' || _this2.props.axis === 'x') && axis !== 'n' && axis !== 's';
var canDragY = (_this2.props.axis === 'both' || _this2.props.axis === 'y') && axis !== 'e' && axis !== 'w'; // No dragging possible.
if (!canDragX && !canDragY) return; // Decompose axis for later use
var axisV = axis[0];
var axisH = axis[axis.length - 1]; // intentionally not axis[1], so that this catches axis === 'w' for example
// Track the element being dragged to account for changes in position.
// If a handle's position is changed between callbacks, we need to factor this in to the next callback.
// Failure to do so will cause the element to "skip" when resized upwards or leftwards.
var handleRect = node.getBoundingClientRect();
if (_this2.lastHandleRect != null) {
// If the handle has repositioned on either axis since last render,
// we need to increase our callback values by this much.
// Only checking 'n', 'w' since resizing by 's', 'w' won't affect the overall position on page,
if (axisH === 'w') {
var deltaLeftSinceLast = handleRect.left - _this2.lastHandleRect.left;
deltaX += deltaLeftSinceLast;
}
if (axisV === 'n') {
var deltaTopSinceLast = handleRect.top - _this2.lastHandleRect.top;
deltaY += deltaTopSinceLast;
}
} // Storage of last rect so we know how much it has really moved.
_this2.lastHandleRect = handleRect; // Reverse delta if using top or left drag handles.
if (axisH === 'w') deltaX = -deltaX;
if (axisV === 'n') deltaY = -deltaY; // Update w/h by the deltas. Also factor in transformScale.
var width = _this2.props.width + (canDragX ? deltaX / _this2.props.transformScale : 0);
var height = _this2.props.height + (canDragY ? deltaY / _this2.props.transformScale : 0); // Run user-provided constraints.
var _this2$runConstraints = _this2.runConstraints(width, height);
width = _this2$runConstraints[0];
height = _this2$runConstraints[1];
var dimensionsChanged = width !== _this2.props.width || height !== _this2.props.height; // Call user-supplied callback if present.
var cb = typeof _this2.props[handlerName] === 'function' ? _this2.props[handlerName] : null; // Don't call 'onResize' if dimensions haven't changed.
var shouldSkipCb = handlerName === 'onResize' && !dimensionsChanged;
if (cb && !shouldSkipCb) {
if (typeof e.persist === 'function') e.persist();
cb(e, {
node: node,
size: {
width: width,
height: height
},
handle: axis
});
} // Reset internal data
if (handlerName === 'onResizeStop') _this2.resetData();
};
};
_proto.renderResizeHandle = function renderResizeHandle(resizeHandleAxis) {
var handle = this.props.handle;
if (handle) {
if (typeof handle === 'function') {
return handle(resizeHandleAxis);
}
return handle;
}
return /*#__PURE__*/_react.default.createElement("span", {
className: "react-resizable-handle react-resizable-handle-" + resizeHandleAxis
});
};
_proto.render = function render() {
var _this3 = this;
// Pass along only props not meant for the `<Resizable>`.`
// eslint-disable-next-line no-unused-vars
var _this$props = this.props,
children = _this$props.children,
className = _this$props.className,
draggableOpts = _this$props.draggableOpts,
width = _this$props.width,
height = _this$props.height,
handle = _this$props.handle,
handleSize = _this$props.handleSize,
lockAspectRatio = _this$props.lockAspectRatio,
axis = _this$props.axis,
minConstraints = _this$props.minConstraints,
maxConstraints = _this$props.maxConstraints,
onResize = _this$props.onResize,
onResizeStop = _this$props.onResizeStop,
onResizeStart = _this$props.onResizeStart,
resizeHandles = _this$props.resizeHandles,
transformScale = _this$props.transformScale,
p = _objectWithoutPropertiesLoose(_this$props, ["children", "className", "draggableOpts", "width", "height", "handle", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"]); // What we're doing here is getting the child of this element, and cloning it with this element's props.
// We are then defining its children as:
// Its original children (resizable's child's children), and
// One or more draggable handles.
return (0, _utils.cloneElement)(children, _objectSpread(_objectSpread({}, p), {}, {
className: (className ? className + " " : '') + "react-resizable",
children: [].concat(children.props.children, resizeHandles.map(function (handleAxis) {
return /*#__PURE__*/_react.default.createElement(_reactDraggable.DraggableCore, _extends({}, draggableOpts, {
key: "resizableHandle-" + handleAxis,
onStop: _this3.resizeHandler('onResizeStop', handleAxis),
onStart: _this3.resizeHandler('onResizeStart', handleAxis),
onDrag: _this3.resizeHandler('onResize', handleAxis)
}), _this3.renderResizeHandle(handleAxis));
}))
}));
};
return Resizable;
}(_react.default.Component);
exports["default"] = Resizable;
_defineProperty(Resizable, "propTypes", _propTypes.resizableProps);
_defineProperty(Resizable, "defaultProps", {
handleSize: [20, 20],
lockAspectRatio: false,
axis: 'both',
minConstraints: [20, 20],
maxConstraints: [Infinity, Infinity],
resizeHandles: ['se'],
transformScale: 1
});
/***/ }),
/***/ 60842:
/*!************************************************************************************!*\
!*** ./node_modules/_react-resizable@1.11.0@react-resizable/build/ResizableBox.js ***!
\************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
var __webpack_unused_export__;
__webpack_unused_export__ = true;
exports["default"] = void 0;
var React = _interopRequireWildcard(__webpack_require__(/*! react */ 59301));
var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ 12708));
var _Resizable = _interopRequireDefault(__webpack_require__(/*! ./Resizable */ 80010));
var _propTypes2 = __webpack_require__(/*! ./propTypes */ 6217);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var ResizableBox = /*#__PURE__*/function (_React$Component) {
_inheritsLoose(ResizableBox, _React$Component);
function ResizableBox() {
var _this;
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
_defineProperty(_assertThisInitialized(_this), "state", {
width: _this.props.width,
height: _this.props.height,
propsWidth: _this.props.width,
propsHeight: _this.props.height
});
_defineProperty(_assertThisInitialized(_this), "onResize", function (e, data) {
var size = data.size;
if (_this.props.onResize) {
e.persist && e.persist();
_this.setState(size, function () {
return _this.props.onResize && _this.props.onResize(e, data);
});
} else {
_this.setState(size);
}
});
return _this;
}
ResizableBox.getDerivedStateFromProps = function getDerivedStateFromProps(props, state) {
// If parent changes height/width, set that in our state.
if (state.propsWidth !== props.width || state.propsHeight !== props.height) {
return {
width: props.width,
height: props.height,
propsWidth: props.width,
propsHeight: props.height
};
}
return null;
};
var _proto = ResizableBox.prototype;
_proto.render = function render() {
// Basic wrapper around a Resizable instance.
// If you use Resizable directly, you are responsible for updating the child component
// with a new width and height.
var _this$props = this.props,
handle = _this$props.handle,
handleSize = _this$props.handleSize,
onResize = _this$props.onResize,
onResizeStart = _this$props.onResizeStart,
onResizeStop = _this$props.onResizeStop,
draggableOpts = _this$props.draggableOpts,
minConstraints = _this$props.minConstraints,
maxConstraints = _this$props.maxConstraints,
lockAspectRatio = _this$props.lockAspectRatio,
axis = _this$props.axis,
width = _this$props.width,
height = _this$props.height,
resizeHandles = _this$props.resizeHandles,
style = _this$props.style,
transformScale = _this$props.transformScale,
props = _objectWithoutPropertiesLoose(_this$props, ["handle", "handleSize", "onResize", "onResizeStart", "onResizeStop", "draggableOpts", "minConstraints", "maxConstraints", "lockAspectRatio", "axis", "width", "height", "resizeHandles", "style", "transformScale"]);
return /*#__PURE__*/React.createElement(_Resizable.default, {
axis: axis,
draggableOpts: draggableOpts,
handle: handle,
handleSize: handleSize,
height: this.state.height,
lockAspectRatio: lockAspectRatio,
maxConstraints: maxConstraints,
minConstraints: minConstraints,
onResizeStart: onResizeStart,
onResize: this.onResize,
onResizeStop: onResizeStop,
resizeHandles: resizeHandles,
transformScale: transformScale,
width: this.state.width
}, /*#__PURE__*/React.createElement("div", _extends({}, props, {
style: _objectSpread(_objectSpread({}, style), {}, {
width: this.state.width + 'px',
height: this.state.height + 'px'
})
})));
};
return ResizableBox;
}(React.Component);
exports["default"] = ResizableBox;
_defineProperty(ResizableBox, "propTypes", _objectSpread(_objectSpread({}, _propTypes2.resizableProps), {}, {
children: _propTypes.default.element
}));
/***/ }),
/***/ 6217:
/*!*********************************************************************************!*\
!*** ./node_modules/_react-resizable@1.11.0@react-resizable/build/propTypes.js ***!
\*********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.resizableProps = void 0;
var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ 12708));
var _reactDraggable = __webpack_require__(/*! react-draggable */ 12911);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var resizableProps = {
/*
* Restricts resizing to a particular axis (default: 'both')
* 'both' - allows resizing by width or height
* 'x' - only allows the width to be changed
* 'y' - only allows the height to be changed
* 'none' - disables resizing altogether
* */
axis: _propTypes.default.oneOf(['both', 'x', 'y', 'none']),
className: _propTypes.default.string,
/*
* Require that one and only one child be present.
* */
children: _propTypes.default.element.isRequired,
/*
* These will be passed wholesale to react-draggable's DraggableCore
* */
draggableOpts: _propTypes.default.shape({
allowAnyClick: _propTypes.default.bool,
cancel: _propTypes.default.string,
children: _propTypes.default.node,
disabled: _propTypes.default.bool,
enableUserSelectHack: _propTypes.default.bool,
offsetParent: _propTypes.default.node,
grid: _propTypes.default.arrayOf(_propTypes.default.number),
handle: _propTypes.default.string,
nodeRef: _propTypes.default.object,
onStart: _propTypes.default.func,
onDrag: _propTypes.default.func,
onStop: _propTypes.default.func,
onMouseDown: _propTypes.default.func,
scale: _propTypes.default.number
}),
/*
* Initial height
* */
height: _propTypes.default.number.isRequired,
/*
* Customize cursor resize handle
* */
handle: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
/*
* If you change this, be sure to update your css
* */
handleSize: _propTypes.default.arrayOf(_propTypes.default.number),
lockAspectRatio: _propTypes.default.bool,
/*
* Max X & Y measure
* */
maxConstraints: _propTypes.default.arrayOf(_propTypes.default.number),
/*
* Min X & Y measure
* */
minConstraints: _propTypes.default.arrayOf(_propTypes.default.number),
/*
* Called on stop resize event
* */
onResizeStop: _propTypes.default.func,
/*
* Called on start resize event
* */
onResizeStart: _propTypes.default.func,
/*
* Called on resize event
* */
onResize: _propTypes.default.func,
/*
* Defines which resize handles should be rendered (default: 'se')
* 's' - South handle (bottom-center)
* 'w' - West handle (left-center)
* 'e' - East handle (right-center)
* 'n' - North handle (top-center)
* 'sw' - Southwest handle (bottom-left)
* 'nw' - Northwest handle (top-left)
* 'se' - Southeast handle (bottom-right)
* 'ne' - Northeast handle (top-center)
* */
resizeHandles: _propTypes.default.arrayOf(_propTypes.default.oneOf(['s', 'w', 'e', 'n', 'sw', 'nw', 'se', 'ne'])),
/*
* If `transform: scale(n)` is set on the parent, this should be set to `n`.
* */
transformScale: _propTypes.default.number,
/*
* Initial width
*/
width: _propTypes.default.number.isRequired
};
exports.resizableProps = resizableProps;
/***/ }),
/***/ 73638:
/*!*****************************************************************************!*\
!*** ./node_modules/_react-resizable@1.11.0@react-resizable/build/utils.js ***!
\*****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.cloneElement = cloneElement;
var _react = _interopRequireDefault(__webpack_require__(/*! react */ 59301));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
// React.addons.cloneWithProps look-alike that merges style & className.
function cloneElement(element, props) {
if (props.style && element.props.style) {
props.style = _objectSpread(_objectSpread({}, element.props.style), props.style);
}
if (props.className && element.props.className) {
props.className = element.props.className + " " + props.className;
}
return /*#__PURE__*/_react.default.cloneElement(element, props);
}
/***/ }),
/***/ 9221:
/*!***********************************************************************!*\
!*** ./node_modules/_react-resizable@1.11.0@react-resizable/index.js ***!
\***********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
"use strict";
module.exports = function() {
throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable");
};
module.exports.Resizable = __webpack_require__(/*! ./build/Resizable */ 80010)["default"];
module.exports.ResizableBox = __webpack_require__(/*! ./build/ResizableBox */ 60842)["default"];
/***/ }),
/***/ 98040:

@ -1,6 +1,6 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[38143],{
/***/ 8834:
/***/ 92296:
/*!******************************************************!*\
!*** ./src/components/CodeBox/index.tsx + 1 modules ***!
\******************************************************/
@ -564,7 +564,7 @@ var message = __webpack_require__(8591);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
var input = __webpack_require__(1056);
// EXTERNAL MODULE: ./src/components/CodeBox/index.tsx + 1 modules
var CodeBox = __webpack_require__(8834);
var CodeBox = __webpack_require__(92296);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(76107);
// EXTERNAL MODULE: ./src/utils/fetch.ts

@ -1400,7 +1400,7 @@ var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectW
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(97174);
// EXTERNAL MODULE: ./src/components/CodeBox/index.tsx + 1 modules
var CodeBox = __webpack_require__(8834);
var CodeBox = __webpack_require__(92296);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/CommonHomework/components/DelCompontent.tsx

@ -1139,16 +1139,15 @@ var ButtonLoading = function ButtonLoading(_ref) {
case 0:
stats = items.userAnswer;
codes = js_base64__WEBPACK_IMPORTED_MODULE_6__.Base64.decode(items.code);
debugger;
if (!(stats.length > 0 && ((_stats$filter2 = stats.filter(function (item) {
return !item.value;
})) === null || _stats$filter2 === void 0 ? void 0 : _stats$filter2.length) > 0)) {
_context5.next = 6;
_context5.next = 5;
break;
}
antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .ZP.info('填空项不能为空!');
return _context5.abrupt("return");
case 6:
case 5:
if (stats.length > 0) {
stats === null || stats === void 0 || stats.map(function (item) {
if (item.multi_line) {
@ -1158,15 +1157,15 @@ var ButtonLoading = function ButtonLoading(_ref) {
}
});
}
_context5.next = 9;
_context5.next = 8;
return (0,_pages_MyProblem_service__WEBPACK_IMPORTED_MODULE_8__/* .updateCode */ .n4)(id, re ? re : {
code: js_base64__WEBPACK_IMPORTED_MODULE_6__.Base64.encode(codes),
language: items.language
});
case 9:
case 8:
response = _context5.sent;
return _context5.abrupt("return", response);
case 11:
case 10:
case "end":
return _context5.stop();
}

@ -1018,16 +1018,15 @@ var ButtonLoading = function ButtonLoading(_ref) {
case 0:
stats = items.userAnswer;
codes = js_base64__WEBPACK_IMPORTED_MODULE_6__.Base64.decode(items.code);
debugger;
if (!(stats.length > 0 && ((_stats$filter2 = stats.filter(function (item) {
return !item.value;
})) === null || _stats$filter2 === void 0 ? void 0 : _stats$filter2.length) > 0)) {
_context5.next = 6;
_context5.next = 5;
break;
}
antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .ZP.info('填空项不能为空!');
return _context5.abrupt("return");
case 6:
case 5:
if (stats.length > 0) {
stats === null || stats === void 0 || stats.map(function (item) {
if (item.multi_line) {
@ -1037,15 +1036,15 @@ var ButtonLoading = function ButtonLoading(_ref) {
}
});
}
_context5.next = 9;
_context5.next = 8;
return (0,_pages_MyProblem_service__WEBPACK_IMPORTED_MODULE_8__/* .updateCode */ .n4)(id, re ? re : {
code: js_base64__WEBPACK_IMPORTED_MODULE_6__.Base64.encode(codes),
language: items.language
});
case 9:
case 8:
response = _context5.sent;
return _context5.abrupt("return", response);
case 11:
case 10:
case "end":
return _context5.stop();
}

@ -502,16 +502,15 @@ var ButtonLoading = function ButtonLoading(_ref) {
case 0:
stats = items.userAnswer;
codes = js_base64__WEBPACK_IMPORTED_MODULE_6__.Base64.decode(items.code);
debugger;
if (!(stats.length > 0 && ((_stats$filter2 = stats.filter(function (item) {
return !item.value;
})) === null || _stats$filter2 === void 0 ? void 0 : _stats$filter2.length) > 0)) {
_context5.next = 6;
_context5.next = 5;
break;
}
antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .ZP.info('填空项不能为空!');
return _context5.abrupt("return");
case 6:
case 5:
if (stats.length > 0) {
stats === null || stats === void 0 || stats.map(function (item) {
if (item.multi_line) {
@ -521,15 +520,15 @@ var ButtonLoading = function ButtonLoading(_ref) {
}
});
}
_context5.next = 9;
_context5.next = 8;
return (0,_pages_MyProblem_service__WEBPACK_IMPORTED_MODULE_8__/* .updateCode */ .n4)(id, re ? re : {
code: js_base64__WEBPACK_IMPORTED_MODULE_6__.Base64.encode(codes),
language: items.language
});
case 9:
case 8:
response = _context5.sent;
return _context5.abrupt("return", response);
case 11:
case 10:
case "end":
return _context5.stop();
}

@ -43,7 +43,7 @@ if (false) {}
/***/ }),
/***/ 8834:
/***/ 92296:
/*!******************************************************!*\
!*** ./src/components/CodeBox/index.tsx + 1 modules ***!
\******************************************************/
@ -399,29 +399,21 @@ var noData = function noData(_ref) {
/***/ }),
/***/ 46404:
/*!********************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Exercise/index.tsx + 12 modules ***!
\********************************************************************/
/***/ 33417:
/*!*******************************************************!*\
!*** ./src/components/ResTable/index.tsx + 2 modules ***!
\*******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"default": function() { return /* binding */ Exercise; }
Z: function() { return /* binding */ components_ResTable; }
});
// 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);
// 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);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(39343);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// 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);
@ -433,46 +425,6 @@ var objectWithoutProperties = __webpack_require__(27161);
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
var _umi_production_exports = __webpack_require__(66660);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
var es_modal = __webpack_require__(43418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/menu/index.js + 11 modules
var menu = __webpack_require__(20834);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
var message = __webpack_require__(8591);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/skeleton/index.js + 12 modules
var skeleton = __webpack_require__(59981);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
var pagination = __webpack_require__(41867);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/affix/index.js + 2 modules
var affix = __webpack_require__(81228);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// 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/utils/authority.ts
var authority = __webpack_require__(76107);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(27291);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(72020);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(97174);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tabs/index.js + 24 modules
var tabs = __webpack_require__(99313);
// 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/input-number/index.js + 14 modules
var input_number = __webpack_require__(69532);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
var es_select = __webpack_require__(57809);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
var input = __webpack_require__(1056);
// EXTERNAL MODULE: ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/index.js
var _react_infinite_scroller_1_2_4_react_infinite_scroller = __webpack_require__(26724);
var _react_infinite_scroller_1_2_4_react_infinite_scroller_default = /*#__PURE__*/__webpack_require__.n(_react_infinite_scroller_1_2_4_react_infinite_scroller);
// EXTERNAL MODULE: ./node_modules/_react-resizable@1.11.0@react-resizable/index.js
var _react_resizable_1_11_0_react_resizable = __webpack_require__(9221);
;// CONCATENATED MODULE: ./src/components/ResTable/index.less
@ -612,15 +564,95 @@ var ResTable = function ResTable(_ref) {
});
};
/* harmony default export */ var components_ResTable = (ResTable);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Exercisemodules = ({"flex_box_center":"flex_box_center___iyIe6","flex_space_between":"flex_space_between___g2WjG","flex_box_vertical_center":"flex_box_vertical_center___Tde0v","flex_box_center_end":"flex_box_center_end___W1D5W","flex_box_column":"flex_box_column___ZiFvs","bg":"bg___T2R2s","containerTitle":"containerTitle___yARn_","containerDesc":"containerDesc___fKSYF","menus":"menus___e8wtg","listItem":"listItem___s7xhg","info":"info___Hx2bW","title":"title___W7a1R","titleLeft":"titleLeft___C5r0w","titleRight":"titleRight___g5GZv","acitons":"acitons___H0RU0","move":"move___qYkSy","hideHeadCheckbox":"hideHeadCheckbox___Hq5gw","moveCategory":"moveCategory___bZSGQ","tabSearch":"tabSearch___NaKI4","warpModal":"warpModal___HLUgh","modalColumn":"modalColumn___F7R5w","modalRow":"modalRow___L6ghw","sup":"sup___VGKXV"});
/***/ }),
/***/ 72000:
/*!*******************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Exercise/index.tsx + 8 modules ***!
\*******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"default": function() { return /* binding */ Exercise; }
});
// 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);
// 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);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(39343);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// 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/slicedToArray.js
var slicedToArray = __webpack_require__(11006);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(27161);
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
var _umi_production_exports = __webpack_require__(66660);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
var es_modal = __webpack_require__(43418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/menu/index.js + 11 modules
var menu = __webpack_require__(20834);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
var message = __webpack_require__(8591);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/skeleton/index.js + 12 modules
var skeleton = __webpack_require__(59981);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
var pagination = __webpack_require__(41867);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/affix/index.js + 2 modules
var affix = __webpack_require__(81228);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// 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/utils/authority.ts
var authority = __webpack_require__(76107);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(27291);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(72020);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(97174);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tabs/index.js + 24 modules
var tabs = __webpack_require__(99313);
// 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/input-number/index.js + 14 modules
var input_number = __webpack_require__(69532);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
var es_select = __webpack_require__(57809);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
var input = __webpack_require__(1056);
// EXTERNAL MODULE: ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/index.js
var _react_infinite_scroller_1_2_4_react_infinite_scroller = __webpack_require__(26724);
var _react_infinite_scroller_1_2_4_react_infinite_scroller_default = /*#__PURE__*/__webpack_require__.n(_react_infinite_scroller_1_2_4_react_infinite_scroller);
// EXTERNAL MODULE: ./src/components/ResTable/index.tsx + 2 modules
var ResTable = __webpack_require__(33417);
// EXTERNAL MODULE: ./src/pages/Classrooms/Lists/Exercise/index.less?modules
var Exercisemodules = __webpack_require__(46328);
// EXTERNAL MODULE: ./src/utils/verifyLogin.tsx + 2 modules
var verifyLogin = __webpack_require__(72031);
// EXTERNAL MODULE: ./src/components/ReuseShixunModal/index.tsx + 1 modules
var ReuseShixunModal = __webpack_require__(59386);
// EXTERNAL MODULE: ./src/service/global.ts
var global = __webpack_require__(92382);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/components/SelectExercise.tsx
@ -942,11 +974,11 @@ var CuttOffNowShixun = function CuttOffNowShixun(_ref) {
},
title: '配置出卷数量',
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Exercisemodules.modalColumn,
className: Exercisemodules/* default */.Z.modalColumn,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Exercisemodules.modalRow,
className: Exercisemodules/* default */.Z.modalRow,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("sup", {
className: Exercisemodules.sup,
className: Exercisemodules/* default */.Z.sup,
children: "*"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
@ -1072,7 +1104,7 @@ var CuttOffNowShixun = function CuttOffNowShixun(_ref) {
bodyStyle: {
minHeight: 200
},
wrapClassName: Exercisemodules.warpModal,
wrapClassName: Exercisemodules/* default */.Z.warpModal,
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() {
var _classroomList$detail;
var need_authorize, is_random, hasUsedShixun;
@ -1166,7 +1198,7 @@ var CuttOffNowShixun = function CuttOffNowShixun(_ref) {
})
}, "public")]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Exercisemodules.tabSearch,
className: Exercisemodules/* default */.Z.tabSearch,
children: [tabKey === "teacher" && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"], {
value: query.group_id,
onChange: handleChangeTeachGroup,
@ -1250,8 +1282,8 @@ var CuttOffNowShixun = function CuttOffNowShixun(_ref) {
},
hasMore: hasMore,
useWindow: false,
children: exercise.actionTabs.key === '试卷选用' && isTeacher && /*#__PURE__*/(0,jsx_runtime.jsx)(components_ResTable, {
className: Exercisemodules.hideHeadCheckbox,
children: exercise.actionTabs.key === '试卷选用' && isTeacher && /*#__PURE__*/(0,jsx_runtime.jsx)(ResTable/* default */.Z, {
className: Exercisemodules/* default */.Z.hideHeadCheckbox,
pagination: false,
hideSelectAll: true // antd-version 4.3.0
,
@ -1396,7 +1428,7 @@ var SetPublic = function SetPublic(_ref) {
};
})(SetPublic));
// EXTERNAL MODULE: ./src/components/CodeBox/index.tsx + 1 modules
var CodeBox = __webpack_require__(8834);
var CodeBox = __webpack_require__(92296);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/components/DelShixuns.tsx
@ -1404,7 +1436,7 @@ var CodeBox = __webpack_require__(8834);
var DelShixuns_excluded = ["exercise", "dispatch", "user"];
var _excluded = ["exercise", "dispatch", "user"];
@ -1420,7 +1452,7 @@ var DelShixun = function DelShixun(_ref) {
var exercise = _ref.exercise,
dispatch = _ref.dispatch,
user = _ref.user,
props = objectWithoutProperties_default()(_ref, DelShixuns_excluded);
props = objectWithoutProperties_default()(_ref, _excluded);
var params = (0,_umi_production_exports.useParams)();
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
@ -1629,6 +1661,8 @@ var tooltip = __webpack_require__(6848);
var es_checkbox = __webpack_require__(24905);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/popover/index.js
var popover = __webpack_require__(60324);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
var table = __webpack_require__(72315);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/components/List/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Listmodules = ({"flex_box_center":"flex_box_center___VejG5","flex_space_between":"flex_space_between___RwAiX","flex_box_vertical_center":"flex_box_vertical_center___N5QNs","flex_box_center_end":"flex_box_center_end___SUMZc","flex_box_column":"flex_box_column___ombQA","bg":"bg___i74VI","containerTitle":"containerTitle___eAbbs","containerDesc":"containerDesc___WeE4m","tablestyle":"tablestyle___uKNiL","listItem":"listItem___aJrbL","info":"info___X9HlC","title":"title___ZDroC","titleLeft":"titleLeft___JzNZc","titleRight":"titleRight___RP0gb","acitons":"acitons___iqFGc","moveCategory":"moveCategory___Rihfv","name":"name___LdzGg","categoryName":"categoryName___Tz45n","schedule":"schedule___a20T3","fnSign":"fnSign___gsn3j","spanSize":"spanSize___jht3F","classromediv":"classromediv___T7h_f","glow":"glow___LU7dg","popover":"popover___Qeg0P","dot":"dot___c9Vwj"});
@ -4004,6 +4038,17 @@ var SvgJinshi = function SvgJinshi(props) {
/***/ }),
/***/ 46328:
/*!****************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Exercise/index.less?modules ***!
\****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__) {
// extracted by mini-css-extract-plugin
/* harmony default export */ __webpack_exports__.Z = ({"flex_box_center":"flex_box_center___iyIe6","flex_space_between":"flex_space_between___g2WjG","flex_box_vertical_center":"flex_box_vertical_center___Tde0v","flex_box_center_end":"flex_box_center_end___W1D5W","flex_box_column":"flex_box_column___ZiFvs","bg":"bg___T2R2s","containerTitle":"containerTitle___yARn_","containerDesc":"containerDesc___fKSYF","menus":"menus___e8wtg","listItem":"listItem___s7xhg","info":"info___Hx2bW","title":"title___W7a1R","titleLeft":"titleLeft___C5r0w","titleRight":"titleRight___g5GZv","acitons":"acitons___H0RU0","move":"move___qYkSy","hideHeadCheckbox":"hideHeadCheckbox___Hq5gw","moveCategory":"moveCategory___bZSGQ","tabSearch":"tabSearch___NaKI4","warpModal":"warpModal___HLUgh","modalColumn":"modalColumn___F7R5w","modalRow":"modalRow___L6ghw","sup":"sup___VGKXV"});
/***/ }),
/***/ 77578:
/*!**********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/_util/getRenderPropValue.js ***!

@ -420,7 +420,7 @@ var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableA
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(97174);
// EXTERNAL MODULE: ./src/components/CodeBox/index.tsx + 1 modules
var CodeBox = __webpack_require__(8834);
var CodeBox = __webpack_require__(92296);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/GroupHomework/components/DelCompontent.tsx

@ -43,7 +43,7 @@ if (false) {}
/***/ }),
/***/ 8834:
/***/ 92296:
/*!******************************************************!*\
!*** ./src/components/CodeBox/index.tsx + 1 modules ***!
\******************************************************/
@ -1131,7 +1131,7 @@ var Publish = __webpack_require__(46906);
var objectWithoutProperties = __webpack_require__(27161);
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
// EXTERNAL MODULE: ./src/components/CodeBox/index.tsx + 1 modules
var CodeBox = __webpack_require__(8834);
var CodeBox = __webpack_require__(92296);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Polls/components/DelShixuns.tsx

@ -43,7 +43,7 @@ if (false) {}
/***/ }),
/***/ 8834:
/***/ 92296:
/*!******************************************************!*\
!*** ./src/components/CodeBox/index.tsx + 1 modules ***!
\******************************************************/
@ -939,7 +939,7 @@ var modal = __webpack_require__(43418);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(97174);
// EXTERNAL MODULE: ./src/components/CodeBox/index.tsx + 1 modules
var CodeBox = __webpack_require__(8834);
var CodeBox = __webpack_require__(92296);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ProgramHomework/components/DelCompontent.tsx

@ -85,7 +85,7 @@ if (false) {}
/***/ }),
/***/ 8834:
/***/ 92296:
/*!******************************************************!*\
!*** ./src/components/CodeBox/index.tsx + 1 modules ***!
\******************************************************/
@ -2522,7 +2522,7 @@ var DownOutlined = __webpack_require__(42884);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(27291);
// EXTERNAL MODULE: ./src/components/CodeBox/index.tsx + 1 modules
var CodeBox = __webpack_require__(8834);
var CodeBox = __webpack_require__(92296);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ShixunHomeworks/components/DelShixuns.tsx

@ -1,6 +1,48 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[39332],{
/***/ 96402:
/*!********************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/UploadOutlined.js + 1 modules ***!
\********************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_UploadOutlined; }
});
// 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/UploadOutlined.js
// This icon file is generated automatically.
var UploadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" } }] }, "name": "upload", "theme": "outlined" };
/* harmony default export */ var asn_UploadOutlined = (UploadOutlined);
// 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/UploadOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var UploadOutlined_UploadOutlined = function UploadOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_UploadOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_UploadOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(UploadOutlined_UploadOutlined));
/***/ }),
/***/ 59389:
/*!**********************************************************!*\
!*** ./src/components/CoverUpload/index.tsx + 1 modules ***!
@ -2388,6 +2430,525 @@ function getUploader(_login, _virtual_classroom_id, options) {
// }
}
/***/ }),
/***/ 44000:
/*!**********************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/layout/index.js ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layout */ 84966);
/* harmony import */ var _Sider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Sider */ 37534);
"use client";
const Layout = _layout__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP;
Layout.Header = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Header */ .h4;
Layout.Footer = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Footer */ .$_;
Layout.Content = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Content */ .VY;
Layout.Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z;
/* harmony default export */ __webpack_exports__.Z = (Layout);
/***/ }),
/***/ 78673:
/*!**********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/switch/index.js + 2 modules ***!
\**********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ es_switch; }
});
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/LoadingOutlined.js + 1 modules
var LoadingOutlined = __webpack_require__(38521);
// 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/_@babel_runtime@7.23.2@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(26508);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__(80268);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
var slicedToArray = __webpack_require__(39718);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/esm/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(26779);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.0@rc-util/es/hooks/useMergedState.js
var useMergedState = __webpack_require__(41760);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.0@rc-util/es/KeyCode.js
var KeyCode = __webpack_require__(38251);
;// CONCATENATED MODULE: ./node_modules/_rc-switch@4.1.0@rc-switch/es/index.js
var _excluded = ["prefixCls", "className", "checked", "defaultChecked", "disabled", "loadingIcon", "checkedChildren", "unCheckedChildren", "onClick", "onChange", "onKeyDown"];
var Switch = /*#__PURE__*/_react_17_0_2_react.forwardRef(function (_ref, ref) {
var _classNames;
var _ref$prefixCls = _ref.prefixCls,
prefixCls = _ref$prefixCls === void 0 ? 'rc-switch' : _ref$prefixCls,
className = _ref.className,
checked = _ref.checked,
defaultChecked = _ref.defaultChecked,
disabled = _ref.disabled,
loadingIcon = _ref.loadingIcon,
checkedChildren = _ref.checkedChildren,
unCheckedChildren = _ref.unCheckedChildren,
onClick = _ref.onClick,
onChange = _ref.onChange,
onKeyDown = _ref.onKeyDown,
restProps = (0,objectWithoutProperties/* default */.Z)(_ref, _excluded);
var _useMergedState = (0,useMergedState/* default */.Z)(false, {
value: checked,
defaultValue: defaultChecked
}),
_useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
innerChecked = _useMergedState2[0],
setInnerChecked = _useMergedState2[1];
function triggerChange(newChecked, event) {
var mergedChecked = innerChecked;
if (!disabled) {
mergedChecked = newChecked;
setInnerChecked(mergedChecked);
onChange === null || onChange === void 0 ? void 0 : onChange(mergedChecked, event);
}
return mergedChecked;
}
function onInternalKeyDown(e) {
if (e.which === KeyCode/* default */.Z.LEFT) {
triggerChange(false, e);
} else if (e.which === KeyCode/* default */.Z.RIGHT) {
triggerChange(true, e);
}
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e);
}
function onInternalClick(e) {
var ret = triggerChange(!innerChecked, e);
// [Legacy] trigger onClick with value
onClick === null || onClick === void 0 ? void 0 : onClick(ret, e);
}
var switchClassName = _classnames_2_3_2_classnames_default()(prefixCls, className, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-checked"), innerChecked), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-disabled"), disabled), _classNames));
return /*#__PURE__*/_react_17_0_2_react.createElement("button", (0,esm_extends/* default */.Z)({}, restProps, {
type: "button",
role: "switch",
"aria-checked": innerChecked,
disabled: disabled,
className: switchClassName,
ref: ref,
onKeyDown: onInternalKeyDown,
onClick: onInternalClick
}), loadingIcon, /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: "".concat(prefixCls, "-inner")
}, /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: "".concat(prefixCls, "-inner-checked")
}, checkedChildren), /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: "".concat(prefixCls, "-inner-unchecked")
}, unCheckedChildren)));
});
Switch.displayName = 'Switch';
/* harmony default export */ var es = (Switch);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/wave/index.js + 4 modules
var wave = __webpack_require__(14088);
// 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/config-provider/DisabledContext.js
var DisabledContext = __webpack_require__(1684);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/hooks/useSize.js
var useSize = __webpack_require__(19716);
// EXTERNAL MODULE: ./node_modules/_@ctrl_tinycolor@3.6.1@@ctrl/tinycolor/dist/module/index.js
var dist_module = __webpack_require__(64993);
// 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/switch/style/index.js
const genSwitchSmallStyle = token => {
const {
componentCls,
trackHeightSM,
trackPadding,
trackMinWidthSM,
innerMinMarginSM,
innerMaxMarginSM,
handleSizeSM
} = token;
const switchInnerCls = `${componentCls}-inner`;
return {
[componentCls]: {
[`&${componentCls}-small`]: {
minWidth: trackMinWidthSM,
height: trackHeightSM,
lineHeight: `${trackHeightSM}px`,
[`${componentCls}-inner`]: {
paddingInlineStart: innerMaxMarginSM,
paddingInlineEnd: innerMinMarginSM,
[`${switchInnerCls}-checked`]: {
marginInlineStart: `calc(-100% + ${handleSizeSM + trackPadding * 2}px - ${innerMaxMarginSM * 2}px)`,
marginInlineEnd: `calc(100% - ${handleSizeSM + trackPadding * 2}px + ${innerMaxMarginSM * 2}px)`
},
[`${switchInnerCls}-unchecked`]: {
marginTop: -trackHeightSM,
marginInlineStart: 0,
marginInlineEnd: 0
}
},
[`${componentCls}-handle`]: {
width: handleSizeSM,
height: handleSizeSM
},
[`${componentCls}-loading-icon`]: {
top: (handleSizeSM - token.switchLoadingIconSize) / 2,
fontSize: token.switchLoadingIconSize
},
[`&${componentCls}-checked`]: {
[`${componentCls}-inner`]: {
paddingInlineStart: innerMinMarginSM,
paddingInlineEnd: innerMaxMarginSM,
[`${switchInnerCls}-checked`]: {
marginInlineStart: 0,
marginInlineEnd: 0
},
[`${switchInnerCls}-unchecked`]: {
marginInlineStart: `calc(100% - ${handleSizeSM + trackPadding * 2}px + ${innerMaxMarginSM * 2}px)`,
marginInlineEnd: `calc(-100% + ${handleSizeSM + trackPadding * 2}px - ${innerMaxMarginSM * 2}px)`
}
},
[`${componentCls}-handle`]: {
insetInlineStart: `calc(100% - ${handleSizeSM + trackPadding}px)`
}
},
[`&:not(${componentCls}-disabled):active`]: {
[`&:not(${componentCls}-checked) ${switchInnerCls}`]: {
[`${switchInnerCls}-unchecked`]: {
marginInlineStart: token.marginXXS / 2,
marginInlineEnd: -token.marginXXS / 2
}
},
[`&${componentCls}-checked ${switchInnerCls}`]: {
[`${switchInnerCls}-checked`]: {
marginInlineStart: -token.marginXXS / 2,
marginInlineEnd: token.marginXXS / 2
}
}
}
}
}
};
};
const genSwitchLoadingStyle = token => {
const {
componentCls,
handleSize
} = token;
return {
[componentCls]: {
[`${componentCls}-loading-icon${token.iconCls}`]: {
position: 'relative',
top: (handleSize - token.fontSize) / 2,
color: token.switchLoadingIconColor,
verticalAlign: 'top'
},
[`&${componentCls}-checked ${componentCls}-loading-icon`]: {
color: token.switchColor
}
}
};
};
const genSwitchHandleStyle = token => {
const {
componentCls,
motion,
trackPadding,
handleBg,
handleShadow,
handleSize
} = token;
const switchHandleCls = `${componentCls}-handle`;
return {
[componentCls]: {
[switchHandleCls]: {
position: 'absolute',
top: trackPadding,
insetInlineStart: trackPadding,
width: handleSize,
height: handleSize,
transition: `all ${token.switchDuration} ease-in-out`,
'&::before': {
position: 'absolute',
top: 0,
insetInlineEnd: 0,
bottom: 0,
insetInlineStart: 0,
backgroundColor: handleBg,
borderRadius: handleSize / 2,
boxShadow: handleShadow,
transition: `all ${token.switchDuration} ease-in-out`,
content: '""'
}
},
[`&${componentCls}-checked ${switchHandleCls}`]: {
insetInlineStart: `calc(100% - ${handleSize + trackPadding}px)`
},
[`&:not(${componentCls}-disabled):active`]: motion ? {
[`${switchHandleCls}::before`]: {
insetInlineEnd: token.switchHandleActiveInset,
insetInlineStart: 0
},
[`&${componentCls}-checked ${switchHandleCls}::before`]: {
insetInlineEnd: 0,
insetInlineStart: token.switchHandleActiveInset
}
} : /* istanbul ignore next */
{}
}
};
};
const genSwitchInnerStyle = token => {
const {
componentCls,
trackHeight,
trackPadding,
innerMinMargin,
innerMaxMargin,
handleSize
} = token;
const switchInnerCls = `${componentCls}-inner`;
return {
[componentCls]: {
[switchInnerCls]: {
display: 'block',
overflow: 'hidden',
borderRadius: 100,
height: '100%',
paddingInlineStart: innerMaxMargin,
paddingInlineEnd: innerMinMargin,
transition: `padding-inline-start ${token.switchDuration} ease-in-out, padding-inline-end ${token.switchDuration} ease-in-out`,
[`${switchInnerCls}-checked, ${switchInnerCls}-unchecked`]: {
display: 'block',
color: token.colorTextLightSolid,
fontSize: token.fontSizeSM,
transition: `margin-inline-start ${token.switchDuration} ease-in-out, margin-inline-end ${token.switchDuration} ease-in-out`,
pointerEvents: 'none'
},
[`${switchInnerCls}-checked`]: {
marginInlineStart: `calc(-100% + ${handleSize + trackPadding * 2}px - ${innerMaxMargin * 2}px)`,
marginInlineEnd: `calc(100% - ${handleSize + trackPadding * 2}px + ${innerMaxMargin * 2}px)`
},
[`${switchInnerCls}-unchecked`]: {
marginTop: -trackHeight,
marginInlineStart: 0,
marginInlineEnd: 0
}
},
[`&${componentCls}-checked ${switchInnerCls}`]: {
paddingInlineStart: innerMinMargin,
paddingInlineEnd: innerMaxMargin,
[`${switchInnerCls}-checked`]: {
marginInlineStart: 0,
marginInlineEnd: 0
},
[`${switchInnerCls}-unchecked`]: {
marginInlineStart: `calc(100% - ${handleSize + trackPadding * 2}px + ${innerMaxMargin * 2}px)`,
marginInlineEnd: `calc(-100% + ${handleSize + trackPadding * 2}px - ${innerMaxMargin * 2}px)`
}
},
[`&:not(${componentCls}-disabled):active`]: {
[`&:not(${componentCls}-checked) ${switchInnerCls}`]: {
[`${switchInnerCls}-unchecked`]: {
marginInlineStart: trackPadding * 2,
marginInlineEnd: -trackPadding * 2
}
},
[`&${componentCls}-checked ${switchInnerCls}`]: {
[`${switchInnerCls}-checked`]: {
marginInlineStart: -trackPadding * 2,
marginInlineEnd: trackPadding * 2
}
}
}
}
};
};
const genSwitchStyle = token => {
const {
componentCls,
trackHeight,
trackMinWidth
} = token;
return {
[componentCls]: Object.assign(Object.assign(Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
position: 'relative',
display: 'inline-block',
boxSizing: 'border-box',
minWidth: trackMinWidth,
height: trackHeight,
lineHeight: `${trackHeight}px`,
verticalAlign: 'middle',
background: token.colorTextQuaternary,
border: '0',
borderRadius: 100,
cursor: 'pointer',
transition: `all ${token.motionDurationMid}`,
userSelect: 'none',
[`&:hover:not(${componentCls}-disabled)`]: {
background: token.colorTextTertiary
}
}), (0,style/* genFocusStyle */.Qy)(token)), {
[`&${componentCls}-checked`]: {
background: token.switchColor,
[`&:hover:not(${componentCls}-disabled)`]: {
background: token.colorPrimaryHover
}
},
[`&${componentCls}-loading, &${componentCls}-disabled`]: {
cursor: 'not-allowed',
opacity: token.switchDisabledOpacity,
'*': {
boxShadow: 'none',
cursor: 'not-allowed'
}
},
// rtl style
[`&${componentCls}-rtl`]: {
direction: 'rtl'
}
})
};
};
// ============================== Export ==============================
/* harmony default export */ var switch_style = ((0,genComponentStyleHook/* default */.Z)('Switch', token => {
const switchToken = (0,statistic/* merge */.TS)(token, {
switchDuration: token.motionDurationMid,
switchColor: token.colorPrimary,
switchDisabledOpacity: token.opacityLoading,
switchLoadingIconSize: token.fontSizeIcon * 0.75,
switchLoadingIconColor: `rgba(0, 0, 0, ${token.opacityLoading})`,
switchHandleActiveInset: '-30%'
});
return [genSwitchStyle(switchToken),
// inner style
genSwitchInnerStyle(switchToken),
// handle style
genSwitchHandleStyle(switchToken),
// loading style
genSwitchLoadingStyle(switchToken),
// small style
genSwitchSmallStyle(switchToken)];
}, token => {
const {
fontSize,
lineHeight,
controlHeight,
colorWhite
} = token;
const height = fontSize * lineHeight;
const heightSM = controlHeight / 2;
const padding = 2; // Fixed value
const handleSize = height - padding * 2;
const handleSizeSM = heightSM - padding * 2;
return {
trackHeight: height,
trackHeightSM: heightSM,
trackMinWidth: handleSize * 2 + padding * 4,
trackMinWidthSM: handleSizeSM * 2 + padding * 2,
trackPadding: padding,
handleBg: colorWhite,
handleSize,
handleSizeSM,
handleShadow: `0 2px 4px 0 ${new dist_module/* TinyColor */.C('#00230b').setAlpha(0.2).toRgbString()}`,
innerMinMargin: handleSize / 2,
innerMaxMargin: handleSize + padding + padding * 2,
innerMinMarginSM: handleSizeSM / 2,
innerMaxMarginSM: handleSizeSM + padding + padding * 2
};
}));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/switch/index.js
"use client";
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const switch_Switch = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
const {
prefixCls: customizePrefixCls,
size: customizeSize,
disabled: customDisabled,
loading,
className,
rootClassName,
style
} = props,
restProps = __rest(props, ["prefixCls", "size", "disabled", "loading", "className", "rootClassName", "style"]);
false ? 0 : void 0;
const {
getPrefixCls,
direction,
switch: SWITCH
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
// ===================== Disabled =====================
const disabled = _react_17_0_2_react.useContext(DisabledContext/* default */.Z);
const mergedDisabled = (customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled) || loading;
const prefixCls = getPrefixCls('switch', customizePrefixCls);
const loadingIcon = /*#__PURE__*/_react_17_0_2_react.createElement("div", {
className: `${prefixCls}-handle`
}, loading && /*#__PURE__*/_react_17_0_2_react.createElement(LoadingOutlined/* default */.Z, {
className: `${prefixCls}-loading-icon`
}));
// Style
const [wrapSSR, hashId] = switch_style(prefixCls);
const mergedSize = (0,useSize/* default */.Z)(customizeSize);
const classes = _classnames_2_3_2_classnames_default()(SWITCH === null || SWITCH === void 0 ? void 0 : SWITCH.className, {
[`${prefixCls}-small`]: mergedSize === 'small',
[`${prefixCls}-loading`]: loading,
[`${prefixCls}-rtl`]: direction === 'rtl'
}, className, rootClassName, hashId);
const mergedStyle = Object.assign(Object.assign({}, SWITCH === null || SWITCH === void 0 ? void 0 : SWITCH.style), style);
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(wave/* default */.Z, {
component: "Switch"
}, /*#__PURE__*/_react_17_0_2_react.createElement(es, Object.assign({}, restProps, {
prefixCls: prefixCls,
className: classes,
style: mergedStyle,
disabled: mergedDisabled,
ref: ref,
loadingIcon: loadingIcon
}))));
});
switch_Switch.__ANT_SWITCH = true;
if (false) {}
/* harmony default export */ var es_switch = (switch_Switch);
/***/ })
}]);

@ -9315,7 +9315,6 @@ var Publishquetions = function Publishquetions(_ref) {
query = _useState12[0],
setQuery = _useState12[1];
(0,_react_17_0_2_react.useEffect)(function () {
debugger;
getData();
}, [params.coursesId, query]);
(0,_react_17_0_2_react.useEffect)(function () {

@ -43,7 +43,7 @@ if (false) {}
/***/ }),
/***/ 8834:
/***/ 92296:
/*!******************************************************!*\
!*** ./src/components/CodeBox/index.tsx + 1 modules ***!
\******************************************************/
@ -799,7 +799,7 @@ var TopicModal = function TopicModal(_ref) {
// EXTERNAL MODULE: ./src/pages/Graduations/components/SettingModal/index.tsx + 1 modules
var SettingModal = __webpack_require__(13780);
// EXTERNAL MODULE: ./src/components/CodeBox/index.tsx + 1 modules
var CodeBox = __webpack_require__(8834);
var CodeBox = __webpack_require__(92296);
;// CONCATENATED MODULE: ./src/pages/Graduations/Lists/StudentSelection/Teacher/index.tsx

@ -162,7 +162,7 @@ var AsyncButton = function AsyncButton(_ref) {
/***/ }),
/***/ 8834:
/***/ 92296:
/*!******************************************************!*\
!*** ./src/components/CodeBox/index.tsx + 1 modules ***!
\******************************************************/
@ -4439,7 +4439,7 @@ var env = __webpack_require__(47015);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(27291);
// EXTERNAL MODULE: ./src/components/CodeBox/index.tsx + 1 modules
var CodeBox = __webpack_require__(8834);
var CodeBox = __webpack_require__(92296);
// EXTERNAL MODULE: ./src/components/QuestionEditor/MdEditorInForm.tsx
var MdEditorInForm = __webpack_require__(61954);
// EXTERNAL MODULE: ./src/service/graduations.ts

@ -1213,16 +1213,15 @@ var ButtonLoading = function ButtonLoading(_ref) {
case 0:
stats = items.userAnswer;
codes = js_base64__WEBPACK_IMPORTED_MODULE_6__.Base64.decode(items.code);
debugger;
if (!(stats.length > 0 && ((_stats$filter2 = stats.filter(function (item) {
return !item.value;
})) === null || _stats$filter2 === void 0 ? void 0 : _stats$filter2.length) > 0)) {
_context5.next = 6;
_context5.next = 5;
break;
}
antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .ZP.info('填空项不能为空!');
return _context5.abrupt("return");
case 6:
case 5:
if (stats.length > 0) {
stats === null || stats === void 0 || stats.map(function (item) {
if (item.multi_line) {
@ -1232,15 +1231,15 @@ var ButtonLoading = function ButtonLoading(_ref) {
}
});
}
_context5.next = 9;
_context5.next = 8;
return (0,_pages_MyProblem_service__WEBPACK_IMPORTED_MODULE_8__/* .updateCode */ .n4)(id, re ? re : {
code: js_base64__WEBPACK_IMPORTED_MODULE_6__.Base64.encode(codes),
language: items.language
});
case 9:
case 8:
response = _context5.sent;
return _context5.abrupt("return", response);
case 11:
case 10:
case "end":
return _context5.stop();
}
@ -11455,6 +11454,8 @@ var AddQuestionsModal_AddModal = function AddModal(_ref) {
/* harmony default export */ var AddQuestionsModal = (AddQuestionsModal_AddModal);
// EXTERNAL MODULE: ./src/utils/hooks/useOverflow.ts
var useOverflow = __webpack_require__(67169);
// EXTERNAL MODULE: ./src/service/paths.ts
var paths = __webpack_require__(42471);
;// CONCATENATED MODULE: ./src/pages/Paperlibrary/EditPotin/index.tsx
@ -11486,6 +11487,7 @@ var useOverflow = __webpack_require__(67169);
var EditPotin_questionType = [{
name: '单选题',
id: 0,
@ -11607,6 +11609,9 @@ var AddNewPaper = function AddNewPaper(_ref) {
isOpenEditName = _useState28[0],
setIsOpenEditName = _useState28[1];
var rightDiv = (0,_react_17_0_2_react.useRef)(null);
var _useSearchParams = (0,_umi_production_exports.useSearchParams)(),
_useSearchParams2 = slicedToArray_default()(_useSearchParams, 1),
searchParams = _useSearchParams2[0];
(0,_react_17_0_2_react.useEffect)(function () {
init();
dispatch({
@ -11746,7 +11751,7 @@ var AddNewPaper = function AddNewPaper(_ref) {
}
function _seveeditor() {
_seveeditor = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee13(params) {
var _exerciseitem$exercis9;
var _exerciseitem$exercis19;
var datas, bdatas, res;
return regeneratorRuntime_default()().wrap(function _callee13$(_context13) {
while (1) switch (_context13.prev = _context13.next) {
@ -11754,7 +11759,7 @@ var AddNewPaper = function AddNewPaper(_ref) {
datas = objectSpread2_default()(objectSpread2_default()({}, params), {}, {
difficulty: (params === null || params === void 0 ? void 0 : params.difficulty) || 2,
item_type: params.question_type,
sub_discipline_id: exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis9 = exerciseitem.exercise) === null || _exerciseitem$exercis9 === void 0 ? void 0 : _exerciseitem$exercis9.sub_discipline_id,
sub_discipline_id: exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis19 = exerciseitem.exercise) === null || _exerciseitem$exercis19 === void 0 ? void 0 : _exerciseitem$exercis19.sub_discipline_id,
tag_discipline_ids: [],
repeat_answer: !params.repeat_answer
});
@ -12241,8 +12246,18 @@ var AddNewPaper = function AddNewPaper(_ref) {
}), !isedit && /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
onClick: function onClick() {
if ((qitem === null || qitem === void 0 ? void 0 : qitem.question_type) === 6) {
var _exerciseitem$exercis4;
_umi_production_exports.history.push("/problems/newedit/".concat(qitem === null || qitem === void 0 ? void 0 : qitem.hack_identifier, "?type=exercises&express_id=").concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis4 = exerciseitem.exercise) === null || _exerciseitem$exercis4 === void 0 ? void 0 : _exerciseitem$exercis4.id, "&question_id=").concat(qitem === null || qitem === void 0 ? void 0 : qitem.question_id, "&score=").concat(qitem === null || qitem === void 0 ? void 0 : qitem.question_score, "&exercise=true&callback_url=").concat(location.pathname, "$?type=2"));
if (searchParams.get('pageType') == 'course') {
if (searchParams.get('updateType') == 'course') {
var _exerciseitem$exercis4;
_umi_production_exports.history.push("/problems/newedit/".concat(qitem === null || qitem === void 0 ? void 0 : qitem.hack_identifier, "?type=exercises&express_id=").concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis4 = exerciseitem.exercise) === null || _exerciseitem$exercis4 === void 0 ? void 0 : _exerciseitem$exercis4.id, "&question_id=").concat(qitem === null || qitem === void 0 ? void 0 : qitem.question_id, "&score=").concat(qitem === null || qitem === void 0 ? void 0 : qitem.question_score, "&exercise=true&callback_url=").concat(location.pathname, "?type=2&pageType=course&updateType=course&courseId=").concat(searchParams.get('courseId'), "&stageId=").concat(searchParams.get('stageId')));
} else {
var _exerciseitem$exercis5;
_umi_production_exports.history.push("/problems/newedit/".concat(qitem === null || qitem === void 0 ? void 0 : qitem.hack_identifier, "?type=exercises&express_id=").concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis5 = exerciseitem.exercise) === null || _exerciseitem$exercis5 === void 0 ? void 0 : _exerciseitem$exercis5.id, "&question_id=").concat(qitem === null || qitem === void 0 ? void 0 : qitem.question_id, "&score=").concat(qitem === null || qitem === void 0 ? void 0 : qitem.question_score, "&exercise=true&callback_url=").concat(location.pathname, "?type=2&pageType=course&courseId=").concat(searchParams.get('courseId'), "&stageId=").concat(searchParams.get('stageId')));
}
} else {
var _exerciseitem$exercis6;
_umi_production_exports.history.push("/problems/newedit/".concat(qitem === null || qitem === void 0 ? void 0 : qitem.hack_identifier, "?type=exercises&express_id=").concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis6 = exerciseitem.exercise) === null || _exerciseitem$exercis6 === void 0 ? void 0 : _exerciseitem$exercis6.id, "&question_id=").concat(qitem === null || qitem === void 0 ? void 0 : qitem.question_id, "&score=").concat(qitem === null || qitem === void 0 ? void 0 : qitem.question_score, "&exercise=true&callback_url=").concat(location.pathname, "$?type=2"));
}
} else {
setisedit(true);
}
@ -12405,8 +12420,19 @@ var AddNewPaper = function AddNewPaper(_ref) {
return;
}
if (item.id === 6) {
var _exerciseitem$exercis5, _exerciseitem$exercis6, _exerciseitem$exercis7, _exerciseitem$exercis8;
_umi_production_exports.history.push("/problems/newcreate?difficult=".concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis5 = exerciseitem.exercise) === null || _exerciseitem$exercis5 === void 0 ? void 0 : _exerciseitem$exercis5.difficulty, "&sub_discipline_id=").concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis6 = exerciseitem.exercise) === null || _exerciseitem$exercis6 === void 0 ? void 0 : _exerciseitem$exercis6.sub_discipline_id, "&express_id=").concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis7 = exerciseitem.exercise) === null || _exerciseitem$exercis7 === void 0 ? void 0 : _exerciseitem$exercis7.id, "&callback_url=/paperlibrary/add/").concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis8 = exerciseitem.exercise) === null || _exerciseitem$exercis8 === void 0 ? void 0 : _exerciseitem$exercis8.id, "?type=2"));
// history.push(`/problems/newcreate?difficult=${exerciseitem?.exercise?.difficulty}&sub_discipline_id=${exerciseitem?.exercise?.sub_discipline_id}&express_id=${exerciseitem?.exercise?.id}&callback_url=/paperlibrary/add/${exerciseitem?.exercise?.id}?type=2`)
if (searchParams.get('pageType') == 'course') {
if (searchParams.get('updateType') == 'course') {
var _exerciseitem$exercis7, _exerciseitem$exercis8, _exerciseitem$exercis9, _exerciseitem$exercis10;
_umi_production_exports.history.push("/problems/newcreate?difficult=".concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis7 = exerciseitem.exercise) === null || _exerciseitem$exercis7 === void 0 ? void 0 : _exerciseitem$exercis7.difficulty, "&sub_discipline_id=").concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis8 = exerciseitem.exercise) === null || _exerciseitem$exercis8 === void 0 ? void 0 : _exerciseitem$exercis8.sub_discipline_id, "&express_id=").concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis9 = exerciseitem.exercise) === null || _exerciseitem$exercis9 === void 0 ? void 0 : _exerciseitem$exercis9.id, "&callback_url=/paperlibrary/add/").concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis10 = exerciseitem.exercise) === null || _exerciseitem$exercis10 === void 0 ? void 0 : _exerciseitem$exercis10.id, "?type=2&pageType=course&updateType=course&courseId=").concat(searchParams.get('courseId'), "&stageId=").concat(searchParams.get('stageId')));
} else {
var _exerciseitem$exercis11, _exerciseitem$exercis12, _exerciseitem$exercis13, _exerciseitem$exercis14;
_umi_production_exports.history.push("/problems/newcreate?difficult=".concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis11 = exerciseitem.exercise) === null || _exerciseitem$exercis11 === void 0 ? void 0 : _exerciseitem$exercis11.difficulty, "&sub_discipline_id=").concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis12 = exerciseitem.exercise) === null || _exerciseitem$exercis12 === void 0 ? void 0 : _exerciseitem$exercis12.sub_discipline_id, "&express_id=").concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis13 = exerciseitem.exercise) === null || _exerciseitem$exercis13 === void 0 ? void 0 : _exerciseitem$exercis13.id, "&callback_url=/paperlibrary/add/").concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis14 = exerciseitem.exercise) === null || _exerciseitem$exercis14 === void 0 ? void 0 : _exerciseitem$exercis14.id, "?type=2&pageType=course&courseId=").concat(searchParams.get('courseId'), "&stageId=").concat(searchParams.get('stageId')));
}
} else {
var _exerciseitem$exercis15, _exerciseitem$exercis16, _exerciseitem$exercis17, _exerciseitem$exercis18;
_umi_production_exports.history.push("/problems/newcreate?difficult=".concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis15 = exerciseitem.exercise) === null || _exerciseitem$exercis15 === void 0 ? void 0 : _exerciseitem$exercis15.difficulty, "&sub_discipline_id=").concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis16 = exerciseitem.exercise) === null || _exerciseitem$exercis16 === void 0 ? void 0 : _exerciseitem$exercis16.sub_discipline_id, "&express_id=").concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis17 = exerciseitem.exercise) === null || _exerciseitem$exercis17 === void 0 ? void 0 : _exerciseitem$exercis17.id, "&callback_url=/paperlibrary/add/").concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis18 = exerciseitem.exercise) === null || _exerciseitem$exercis18 === void 0 ? void 0 : _exerciseitem$exercis18.id, "?type=2"));
}
return;
}
setisedit(true);
@ -12470,9 +12496,29 @@ var AddNewPaper = function AddNewPaper(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: EditPotinmodules.saveBtn,
onClick: function onClick() {
if (handleIsEdit()) return;
message/* default */.ZP.info('创建成功');
window.open("/paperlibrary?defaultActiveKey=0");
if (searchParams.get('pageType') == 'course') {
if (searchParams.get('updateType') == 'course') {
message/* default */.ZP.info('编辑成功');
_umi_production_exports.history.replace("/paths/".concat(searchParams.get('courseId')));
} else {
if (handleIsEdit()) return;
(0,paths/* batchAddHomeworkToStage */._C)({
id: searchParams.get('stageId'),
subject_id: searchParams.get('courseId'),
homework_type: 'exercise',
examination_bank_ids: [itemid]
}).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.info('创建成功');
_umi_production_exports.history.replace("/paths/".concat(searchParams.get('courseId')));
}
});
}
} else {
if (handleIsEdit()) return;
message/* default */.ZP.info('创建成功');
window.open("/paperlibrary?defaultActiveKey=0");
}
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-baocun1",
@ -13134,14 +13180,18 @@ var Add_AddNewPaper = function AddNewPaper(_ref2) {
className: "".concat(Addmodules/* default */.Z.cancelBtn, " mr5"),
type: "primary",
onClick: function onClick() {
_umi_production_exports.history.push("/paperlibrary");
if (searchParams.get('pageType') == 'course') {
_umi_production_exports.history.push("/paths/".concat(searchParams.get('courseId')));
} else {
_umi_production_exports.history.push("/paperlibrary");
}
},
children: "\u53D6\u6D88"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(AsyncButton/* AsyncButton */.Z, {
className: "".concat(Addmodules/* default */.Z.confirmBtn, " ml15"),
type: "primary",
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
var formValue, _res, res, _res$data, _res$data2;
var formValue, _res, res, _res$data, _res$data2, _res$data3;
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
@ -13175,7 +13225,11 @@ var Add_AddNewPaper = function AddNewPaper(_ref2) {
if (res.status === 0) {
setitemid(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.exam_id);
setcurrent(2);
_umi_production_exports.history.replace("/paperlibrary/add/".concat(res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.exam_id, "?type=2"));
if (searchParams.get('pageType') == 'course') {
_umi_production_exports.history.replace("/paperlibrary/add/".concat(res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.exam_id, "?type=2&pageType=course&courseId=").concat(searchParams.get('courseId'), "&stageId=").concat(searchParams.get('stageId')));
} else {
_umi_production_exports.history.replace("/paperlibrary/add/".concat(res === null || res === void 0 || (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.exam_id, "?type=2"));
}
// history.push(`/paperlibrary/edit/${res?.data?.exam_id}?fromadd=1`)
}
case 14:

@ -2033,7 +2033,6 @@ var PaperlibraryPage = function PaperlibraryPage(_ref) {
});
};
var handleSendToClass = function handleSendToClass(id, data) {
console.log(data, 'data');
dispatch({
type: 'paperlibrary/setActionTabs',
payload: {

@ -1497,6 +1497,7 @@ var SPOC = function SPOC(_ref) {
_res$data4,
_res$data5,
_res$data6,
_res$data7,
_args = arguments;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
@ -1516,9 +1517,9 @@ var SPOC = function SPOC(_ref) {
res = _context.sent;
if (res.status === 0) {
setData(objectSpread2_default()(objectSpread2_default()({}, res.data), {}, {
basic_info_items: (0,lodash.compact)([res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 || (_res$data = _res$data.basic_info) === null || _res$data === void 0 ? void 0 : _res$data.shixun_data, res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 || (_res$data2 = _res$data2.basic_info) === null || _res$data2 === void 0 ? void 0 : _res$data2.video_data, res === null || res === void 0 || (_res$data3 = res.data) === null || _res$data3 === void 0 || (_res$data3 = _res$data3.basic_info) === null || _res$data3 === void 0 ? void 0 : _res$data3.file_data, res === null || res === void 0 || (_res$data4 = res.data) === null || _res$data4 === void 0 || (_res$data4 = _res$data4.basic_info) === null || _res$data4 === void 0 ? void 0 : _res$data4.group_data, res === null || res === void 0 || (_res$data5 = res.data) === null || _res$data5 === void 0 || (_res$data5 = _res$data5.basic_info) === null || _res$data5 === void 0 ? void 0 : _res$data5.normal_data])
basic_info_items: (0,lodash.compact)([res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 || (_res$data = _res$data.basic_info) === null || _res$data === void 0 ? void 0 : _res$data.shixun_data, res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 || (_res$data2 = _res$data2.basic_info) === null || _res$data2 === void 0 ? void 0 : _res$data2.video_data, res === null || res === void 0 || (_res$data3 = res.data) === null || _res$data3 === void 0 || (_res$data3 = _res$data3.basic_info) === null || _res$data3 === void 0 ? void 0 : _res$data3.file_data, res === null || res === void 0 || (_res$data4 = res.data) === null || _res$data4 === void 0 || (_res$data4 = _res$data4.basic_info) === null || _res$data4 === void 0 ? void 0 : _res$data4.group_data, res === null || res === void 0 || (_res$data5 = res.data) === null || _res$data5 === void 0 || (_res$data5 = _res$data5.basic_info) === null || _res$data5 === void 0 ? void 0 : _res$data5.normal_data, res === null || res === void 0 || (_res$data6 = res.data) === null || _res$data6 === void 0 || (_res$data6 = _res$data6.basic_info) === null || _res$data6 === void 0 ? void 0 : _res$data6.exam_data])
}));
setTotal(res === null || res === void 0 || (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.total_count);
setTotal(res === null || res === void 0 || (_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : _res$data7.total_count);
if (init) {
setStatisticsData(objectSpread2_default()({}, res.data));
}
@ -1730,6 +1731,9 @@ var SPOC = function SPOC(_ref) {
}, {
id: 'normal',
name: '图文作业'
}, {
id: 'exam',
name: '测验'
}];
console.log(data === null || data === void 0 ? void 0 : data.basic_info_items, 22);
return /*#__PURE__*/(0,jsx_runtime.jsxs)(skeleton/* default */.Z, {
@ -1822,33 +1826,35 @@ var SPOC = function SPOC(_ref) {
children: "\u9009\u7528\u7EC6\u5219"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
justify: "space-between",
className: "mb20",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: SPOCmodules.tabWrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u8D44\u6E90\u7C7B\u578B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
className: SPOCmodules.tab,
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
size: 'middle',
value: params === null || params === void 0 ? void 0 : params.resource_type,
onChange: function onChange(e) {
handleTabs(e);
},
style: {
margin: "0"
width: 200,
textAlign: 'left',
margin: '0 10px'
},
children: tabList.map(function (e) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
onClick: function onClick() {
return handleTabs(e.id);
},
className: params.resource_type === e.id ? SPOCmodules.active : '',
children: e.name
}, e.id);
children: tabList === null || tabList === void 0 ? void 0 : tabList.map(function (v, k) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: v === null || v === void 0 ? void 0 : v.id,
children: v === null || v === void 0 ? void 0 : v.name
}, k);
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
display: "flex",
alignItems: "center"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
fontSize: "12px",
@ -1883,7 +1889,12 @@ var SPOC = function SPOC(_ref) {
label: '其他'
}]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Search, {
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
marginLeft: 'auto'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Search, {
placeholder: "\u8BF7\u8F93\u5165\u5355\u4F4D/\u8BFE\u5802\u540D\u79F0\u641C\u7D22",
allowClear: true,
style: {
@ -1894,7 +1905,7 @@ var SPOC = function SPOC(_ref) {
enterButton: "\u641C\u7D22",
size: 'middle',
onSearch: handleSearch
})]
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
dataSource: data === null || data === void 0 ? void 0 : data.other_info,

File diff suppressed because it is too large Load Diff

@ -2447,6 +2447,379 @@
min-width: 500px;
}
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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.87@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/Video/Play/index.less?modules ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.watermark___hNYlv {
position: absolute;
left: 0;
bottom: 100px;
font-size: 18px;
text-shadow: 0px 0px 5px #b6b6b6;
color: #ffffff;
z-index: 1;
}
.videovideo___ovOkV::-webkit-media-controls-fullscreen-button {
display: none !important;
}
@keyframes upDown___SlgHv {
0% {
left: 0;
bottom: 100px;
}
40% {
opacity: 1;
bottom: 80%;
left: calc(50% - 130px);
}
41% {
opacity: 0;
bottom: 80%;
left: calc(50% - 130px);
}
79% {
opacity: 0;
bottom: 80%;
left: calc(50% - 130px);
}
80% {
opacity: 1;
opacity: 100%;
bottom: 100px;
left: calc(100% - 270px);
}
100% {
opacity: 1;
bottom: 100px;
left: calc(100% - 270px);
}
}
.animate__loop___mvL6s {
animation-name: upDown___SlgHv;
}
:root {
--youtube-red: #fe0900;
}
.container___g1WYG {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.video-container___XPkWR {
width: 100%;
height: 100%;
margin: 0 auto;
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
}
.video-container___XPkWR video {
width: 100%;
height: 100%;
max-height: auto;
object-fit: cover;
}
.video-controls___to0Zq {
right: 0;
left: 0;
padding: 10px;
position: absolute;
bottom: 0;
transition: all 0.2s ease;
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.84));
}
.video-controls___to0Zq.hide___NA3DV {
opacity: 0;
pointer-events: none;
}
.video-progress___gqHsd {
position: relative;
height: 4px;
margin-bottom: 10px;
margin-top: 5px;
padding: 0 6px;
}
progress {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border-radius: 2px;
width: 100%;
height: 4px;
pointer-events: none;
position: absolute;
top: 0;
}
progress::-webkit-progress-bar {
background-color: #787878;
border-radius: 2px;
}
progress::-webkit-progress-value {
background: #fff;
border-radius: 2px;
}
progress::-moz-progress-bar {
background: #fff;
}
.seek___iZHBm {
position: absolute;
top: 0;
width: 100%;
cursor: pointer;
margin: 0;
}
.seek___iZHBm:hover + .seek-tooltip___uWyXx {
display: block;
}
.seek-tooltip___uWyXx {
white-space: nowrap;
display: none;
position: absolute;
top: -50px;
margin-left: -20px;
font-size: 12px;
padding: 3px;
content: attr(data-title);
font-weight: bold;
color: #fff;
background-color: rgba(0, 0, 0, 0.6);
}
.bottom-controls___uoIBm {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 14px;
}
.bottom-controls___uoIBm button {
display: inline-flex;
align-items: center;
}
.left-controls___mBEx4 {
display: flex;
align-items: center;
color: #fff;
font-size: 10px;
}
.right-controls___e9L6r {
display: flex;
}
.right-controls___e9L6r .rateOverlay___HHBWe {
background-color: #000;
}
.right-controls___e9L6r .controlText___M_BWR {
font-size: 12px;
color: #fff;
}
.volume-controls___fa3mE {
display: inline-flex;
align-items: center;
}
.volume-controls___fa3mE input {
width: 100px;
opacity: 1;
transition: all 0.4s ease;
}
.volume-controls___fa3mE:hover input,
.volume-controls___fa3mE input:focus {
width: 100px;
opacity: 1;
}
.container___g1WYG button {
cursor: pointer;
position: relative;
margin-right: 7px;
font-size: 12px;
padding: 3px;
border: none;
outline: none;
background-color: transparent;
}
.container___g1WYG button * {
pointer-events: none;
}
.container___g1WYG button::before {
content: attr(data-title);
position: absolute;
display: none;
left: 0;
top: -27px;
background-color: rgba(0, 0, 0, 0.6);
color: #fff;
font-weight: bold;
padding: 4px 6px;
word-break: keep-all;
white-space: pre;
}
.container___g1WYG button:last-child::before {
right: 0;
left: inherit;
}
.container___g1WYG button:hover::before {
display: inline-block;
}
.fullscreen-button___ur0es {
margin-right: 0;
}
.fullscreen-button___ur0es::before {
right: 0px;
left: inherit!important;
width: -webkit-fit-content;
width: -moz-fit-content;
width: fit-content;
}
.fullscreen-button1___rfaXm {
margin-top: -10px;
}
.pip-button___GFO8W svg {
width: 26px;
height: 26px;
}
.playback-animation___ndURq {
pointer-events: none;
position: absolute;
top: 50%;
left: 50%;
margin-left: -40px;
margin-top: -40px;
width: 80px;
height: 80px;
border-radius: 80px;
background-color: rgba(0, 0, 0, 0.6);
display: flex;
justify-content: center;
align-items: center;
opacity: 0;
}
input[type='range'] {
-webkit-appearance: none;
-moz-appearance: none;
height: 4px;
background: transparent;
cursor: pointer;
}
input[type='range']:focus {
outline: none;
}
input[type='range']::-webkit-slider-runnable-track {
width: 100%;
cursor: pointer;
border-radius: 1.3px;
-webkit-appearance: none;
-webkit-transition: all 0.4s ease;
transition: all 0.4s ease;
}
input[type='range']::-webkit-slider-thumb {
height: 16px;
width: 16px;
border-radius: 16px;
background: #fe0900;
background: var(--youtube-red);
cursor: pointer;
-webkit-appearance: none;
margin-left: -1px;
opacity: 0;
}
input[type='range']:focus::-webkit-slider-runnable-track {
background: transparent;
}
input[type='range'].volume___OTmpP {
height: 5px;
background-color: #fff;
}
input[type='range'].volume___OTmpP::-webkit-slider-runnable-track {
background-color: transparent;
}
input[type='range'].volume___OTmpP::-webkit-slider-thumb {
margin-left: 0;
height: 14px;
width: 14px;
background: #fff;
}
input[type='range']::-moz-range-track {
width: 100%;
height: 8.4px;
cursor: pointer;
border: 1px solid transparent;
background: transparent;
border-radius: 1.3px;
}
input[type='range']::-moz-range-thumb {
height: 14px;
width: 14px;
border-radius: 50px;
border: 1px solid #fe0900;
border: 1px solid var(--youtube-red);
background: #fe0900;
background: var(--youtube-red);
cursor: pointer;
margin-top: 5px;
}
input[type='range']:focus::-moz-range-track {
outline: none;
}
input[type='range'].volume___OTmpP::-moz-range-thumb {
border: 1px solid #fff;
background: #fff;
}
.hidden___o7GkT {
display: none;
}
.container___g1WYG svg {
width: 20px;
height: 20px;
fill: #fff;
stroke: #fff;
cursor: pointer;
}
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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.87@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/Video/Modal/index.less?modules ***!
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
[id="educoder"] .modal___LGwws {
position: relative;
}
[id="educoder"] .modal___LGwws video {
width: 800px;
height: 450px;
}
[id="educoder"] .modal___LGwws div[class~='ant-modal-body'] {
padding: 0px !important;
font-size: 0 !important;
vertical-align: top;
}
[id="educoder"] .closeIcon___vsUXI {
position: absolute;
color: #fff;
top: -10px;
right: -36px;
font-size: 24px !important;
width: 14px;
height: 8px;
margin-right: 0px;
z-index: 9;
cursor: pointer;
}
[id="educoder"] .closeIcon___vsUXI:before {
left: -4px;
position: absolute;
top: -16px;
}
[id="educoder"] .wrap___tDzbl {
display: flex;
justify-content: space-between;
padding: 9px;
background: #000000;
}
[id="educoder"] .input___aikQk {
color: #707070;
background-color: #000;
border-color: #707070;
margin-right: 12px;
}
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./src/pages/Paths/Detail/components/Stage/Discuss/index.less ***!
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@ -3220,6 +3593,233 @@ body {
margin-right: 20px;
}
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./src/components/ResTable/index.less ***!
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.react-resizable {
position: relative;
background-clip: padding-box;
}
.react-resizable-handle {
position: absolute;
width: 10px;
height: 100%;
bottom: 0;
right: -5px;
cursor: col-resize;
z-index: 1;
}
/** 线线;
1000 */
.react-resizable-handle.active::before {
content: '';
position: absolute;
left: 50%;
top: 0;
bottom: 0;
border-left: solid 1px black;
}
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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.87@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Exercise/index.less?modules ***!
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___iyIe6 {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___g2WjG {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___Tde0v {
align-items: center;
box-align: center;
}
.flex_box_center_end___W1D5W {
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___ZiFvs {
flex-direction: column;
box-orient: block-axis;
}
.bg___T2R2s {
background: white;
}
.containerTitle___yARn_ {
height: 88px;
line-height: 88px;
font-size: 18px;
padding: 0 30px;
color: #333;
border-bottom: 1px solid #eee;
display: box;
display: flex;
align-items: center;
box-align: center;
}
.containerTitle___yARn_ div:nth-child(1) {
flex: 1 1;
}
.containerDesc___fKSYF {
height: 50px;
line-height: 40px;
padding: 0 30px;
margin-bottom: -20px;
margin-top: 10px;
display: box;
display: flex;
}
.containerDesc___fKSYF p:nth-child(1) {
flex: 1 1;
}
.menus___e8wtg {
padding-right: 31px;
padding-top: 10px;
}
.menus___e8wtg [class~='ant-menu-horizontal'] {
border-bottom: 0;
}
.listItem___s7xhg {
padding: 25px 30px 25px 30px;
display: box;
display: flex;
background: white;
margin-top: 20px;
cursor: pointer;
}
.listItem___s7xhg > div {
flex: 1 1;
}
.listItem___s7xhg:hover {
box-shadow: 0 0 10px #ccc;
}
.info___Hx2bW {
margin-left: 20px;
}
.info___Hx2bW p {
margin-top: 18px;
}
.title___W7a1R {
display: box;
display: flex;
align-items: center;
box-align: center;
}
.title___W7a1R strong {
color: #333;
}
.titleLeft___C5r0w {
flex: 1 1;
}
.titleRight___g5GZv a {
margin-right: 20px;
font-weight: bold;
}
.acitons___H0RU0 {
height: 70px;
background: white;
display: box;
display: flex;
align-items: center;
box-align: center;
padding: 0 30px;
}
.acitons___H0RU0 > div:nth-child(2) {
display: box;
display: flex;
align-items: center;
box-align: center;
flex: 1 1;
}
.acitons___H0RU0 > div:nth-child(2) .move___qYkSy {
cursor: pointer;
color: #999;
padding: 0 16px;
position: relative;
}
.acitons___H0RU0 > div:nth-child(2) p {
cursor: pointer;
color: #999;
margin-bottom: 0;
}
.acitons___H0RU0 > div:nth-child(2) p:hover {
color: #333;
}
.acitons___H0RU0 > div:nth-child(2) p span {
position: relative;
padding: 0 16px;
}
.acitons___H0RU0 > div:nth-child(2) p span:after {
content: '';
width: 1px;
height: 10px;
background: #ededed;
position: absolute;
right: 0;
top: 50%;
margin-top: -5px;
}
.acitons___H0RU0 > div:nth-child(2) p:nth-last-child(1) span {
padding-right: 0;
}
.acitons___H0RU0 > div:nth-child(2) p:nth-last-child(1) span:after {
display: none;
}
.hideHeadCheckbox___Hq5gw table {
background: #f4faff;
}
.hideHeadCheckbox___Hq5gw table > thead > tr > th:nth-child(1) > div {
display: none;
}
.moveCategory___bZSGQ {
padding: 30px 0;
position: relative;
top: -25px;
}
.moveCategory___bZSGQ ul {
box-shadow: 0 0 6px 0 rgba(76, 76, 76, 0.2) !important;
background: white;
padding: 10px 0;
}
.moveCategory___bZSGQ ul li {
padding: 0 12px;
margin: 5px 0;
font-size: 14px;
}
.tabSearch___NaKI4 {
display: flex;
align-items: center;
margin: 8px 0;
}
.warpModal___HLUgh .ant-tabs-nav::before {
border-bottom: 0;
}
.modalColumn___F7R5w {
font-size: 14px;
}
.modalColumn___F7R5w .modalRow___L6ghw {
display: flex;
align-items: center;
font-size: 14px;
flex-direction: row;
margin-top: 12px;
}
.modalColumn___F7R5w .modalRow___L6ghw .sup___VGKXV {
color: #fb3226;
font-size: 16px;
margin-top: 21px;
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.87@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Paths/Detail/components/Stage/Certificate/index.less?modules ***!
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/

@ -4661,7 +4661,16 @@ function reducer(state, action) {
case 31:
res = _context6.sent;
if (res.status === 0) {
_umi_production_exports.history.replace(searchParams.get('callback_url'));
// history.replace(searchParams.get('callback_url'))
if (searchParams.get('pageType') == 'course') {
if (searchParams.get('updateType') == 'course') {
_umi_production_exports.history.replace(searchParams.get('callback_url') + "&defaultActiveKey=0&pageType=course&updateType=course&courseId=".concat(searchParams.get('courseId'), "&stageId=").concat(searchParams.get('stageId')));
} else {
_umi_production_exports.history.replace(searchParams.get('callback_url') + "&pageType=course&courseId=".concat(searchParams.get('courseId'), "&stageId=").concat(searchParams.get('stageId')));
}
} else {
_umi_production_exports.history.replace(searchParams.get('callback_url'));
}
}
return _context6.abrupt("return");
case 34:
@ -4690,7 +4699,16 @@ function reducer(state, action) {
}
return _context6.abrupt("return");
case 41:
_umi_production_exports.history.replace(searchParams.get('callback_url'));
// history.replace(searchParams.get('callback_url'))
if (searchParams.get('pageType') == 'course') {
if (searchParams.get('updateType') == 'course') {
_umi_production_exports.history.replace(searchParams.get('callback_url') + "&defaultActiveKey=0&pageType=course&updateType=course&courseId=".concat(searchParams.get('courseId'), "&stageId=").concat(searchParams.get('stageId')));
} else {
_umi_production_exports.history.replace(searchParams.get('callback_url') + "&pageType=course&courseId=".concat(searchParams.get('courseId'), "&stageId=").concat(searchParams.get('stageId')));
}
} else {
_umi_production_exports.history.replace(searchParams.get('callback_url'));
}
case 42:
_context6.next = 47;
break;
@ -4801,7 +4819,16 @@ function reducer(state, action) {
case 69:
_res = _context6.sent;
if (_res.status === 0) {
_umi_production_exports.history.replace(searchParams.get('callback_url'));
// history.replace(searchParams.get('callback_url'))
if (searchParams.get('pageType') == 'course') {
if (searchParams.get('updateType') == 'course') {
_umi_production_exports.history.replace(searchParams.get('callback_url') + "&defaultActiveKey=0&pageType=course&updateType=course&courseId=".concat(searchParams.get('courseId'), "&stageId=").concat(searchParams.get('stageId')));
} else {
_umi_production_exports.history.replace(searchParams.get('callback_url') + "&pageType=course&courseId=".concat(searchParams.get('courseId'), "&stageId=").concat(searchParams.get('stageId')));
}
} else {
_umi_production_exports.history.replace(searchParams.get('callback_url'));
}
}
return _context6.abrupt("return");
case 72:
@ -4818,12 +4845,30 @@ function reducer(state, action) {
_yield$addExerciseQue = _context6.sent;
_status3 = _yield$addExerciseQue.status;
if (_status3 === 0) {
_umi_production_exports.history.replace(searchParams.get('callback_url'));
// history.replace(searchParams.get('callback_url'))
if (searchParams.get('pageType') == 'course') {
if (searchParams.get('updateType') == 'course') {
_umi_production_exports.history.replace(searchParams.get('callback_url') + "&defaultActiveKey=0&pageType=course&updateType=course&courseId=".concat(searchParams.get('courseId'), "&stageId=").concat(searchParams.get('stageId')));
} else {
_umi_production_exports.history.replace(searchParams.get('callback_url') + "&pageType=course&courseId=".concat(searchParams.get('courseId'), "&stageId=").concat(searchParams.get('stageId')));
}
} else {
_umi_production_exports.history.replace(searchParams.get('callback_url'));
}
}
_context6.next = 80;
break;
case 79:
_umi_production_exports.history.replace(searchParams.get('callback_url'));
// history.replace(searchParams.get('callback_url'))
if (searchParams.get('pageType') == 'course') {
if (searchParams.get('updateType') == 'course') {
_umi_production_exports.history.replace(searchParams.get('callback_url') + "&defaultActiveKey=0&pageType=course&updateType=course&courseId=".concat(searchParams.get('courseId'), "&stageId=").concat(searchParams.get('stageId')));
} else {
_umi_production_exports.history.replace(searchParams.get('callback_url') + "&pageType=course&courseId=".concat(searchParams.get('courseId'), "&stageId=").concat(searchParams.get('stageId')));
}
} else {
_umi_production_exports.history.replace(searchParams.get('callback_url'));
}
case 80:
case "end":
return _context6.stop();
@ -4933,16 +4978,23 @@ function reducer(state, action) {
return _onChallenge.apply(this, arguments);
}
function onBack() {
if (callback_url) {
console.log('---', searchParams.get('callback_url'));
_umi_production_exports.history.replace(searchParams.get('callback_url'));
if (searchParams.get('pageType') == 'course') {
if (searchParams.get('updateType') == 'course') {
_umi_production_exports.history.replace(searchParams.get('callback_url') + "&defaultActiveKey=0&pageType=course&updateType=course&courseId=".concat(searchParams.get('courseId'), "&stageId=").concat(searchParams.get('stageId')));
} else {
_umi_production_exports.history.replace(searchParams.get('callback_url') + "&pageType=course&courseId=".concat(searchParams.get('courseId'), "&stageId=").concat(searchParams.get('stageId')));
}
} else {
if (isProgram) {
var _localStorage$getItem;
var item = (_localStorage$getItem = localStorage.getItem('program_homework')) === null || _localStorage$getItem === void 0 ? void 0 : _localStorage$getItem.split(',');
_umi_production_exports.history.push("/classrooms/".concat(item === null || item === void 0 ? void 0 : item[0], "/program_homework/").concat(item === null || item === void 0 ? void 0 : item[1], "/detail"));
if (callback_url) {
_umi_production_exports.history.replace(searchParams.get('callback_url'));
} else {
_umi_production_exports.history.replace("/problemset");
if (isProgram) {
var _localStorage$getItem;
var item = (_localStorage$getItem = localStorage.getItem('program_homework')) === null || _localStorage$getItem === void 0 ? void 0 : _localStorage$getItem.split(',');
_umi_production_exports.history.push("/classrooms/".concat(item === null || item === void 0 ? void 0 : item[0], "/program_homework/").concat(item === null || item === void 0 ? void 0 : item[1], "/detail"));
} else {
_umi_production_exports.history.replace("/problemset");
}
}
}
}

@ -1526,16 +1526,15 @@ var ButtonLoading = function ButtonLoading(_ref) {
case 0:
stats = items.userAnswer;
codes = js_base64__WEBPACK_IMPORTED_MODULE_6__.Base64.decode(items.code);
debugger;
if (!(stats.length > 0 && ((_stats$filter2 = stats.filter(function (item) {
return !item.value;
})) === null || _stats$filter2 === void 0 ? void 0 : _stats$filter2.length) > 0)) {
_context5.next = 6;
_context5.next = 5;
break;
}
antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .ZP.info('填空项不能为空!');
return _context5.abrupt("return");
case 6:
case 5:
if (stats.length > 0) {
stats === null || stats === void 0 || stats.map(function (item) {
if (item.multi_line) {
@ -1545,15 +1544,15 @@ var ButtonLoading = function ButtonLoading(_ref) {
}
});
}
_context5.next = 9;
_context5.next = 8;
return (0,_pages_MyProblem_service__WEBPACK_IMPORTED_MODULE_8__/* .updateCode */ .n4)(id, re ? re : {
code: js_base64__WEBPACK_IMPORTED_MODULE_6__.Base64.encode(codes),
language: items.language
});
case 9:
case 8:
response = _context5.sent;
return _context5.abrupt("return", response);
case 11:
case 10:
case "end":
return _context5.stop();
}

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 1.5 MiB

@ -292,10 +292,10 @@ mark {
\**************************************************************************************************************************************************************************************************************************************************************************************/
@font-face {
font-family: "iconfont"; /* Project id 653600 */
src: url(./static/iconfont.1871bb9b.woff2) format('woff2'),
url(./static/iconfont.f760e9a5.woff) format('woff'),
url(./static/iconfont.0fbfef2e.ttf) format('truetype'),
url(./static/iconfont.fbda0e54.svg#iconfont) format('svg');
src: url(./static/iconfont.631a79ac.woff2) format('woff2'),
url(./static/iconfont.81c0972d.woff) format('woff'),
url(./static/iconfont.e64267bc.ttf) format('truetype'),
url(./static/iconfont.62c66052.svg#iconfont) format('svg');
}
.iconfont {

577
umi.js

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save