diff --git a/1226.async.js b/1086.async.js
similarity index 96%
rename from 1226.async.js
rename to 1086.async.js
index 56ea2f8e76..4f22cabaf9 100644
--- a/1226.async.js
+++ b/1086.async.js
@@ -1,5 +1,18 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[1226],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[1086],{
+
+/***/ 509:
+/*!*********************************************************************!*\
+ !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
+ \*********************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__) {
+
+// This icon file is generated automatically.
+var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
+/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
+
+
+/***/ }),
/***/ 9708:
/*!***************************************************!*\
@@ -708,6 +721,33 @@ var style = __webpack_require__(29913);
// style dependencies
+/***/ }),
+
+/***/ 25783:
+/*!*************************************************************************************!*\
+ !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
+ \*************************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
+/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
+
+// GENERATE BY ./scripts/generate.ts
+// DON NOT EDIT IT MANUALLY
+
+
+
+var SearchOutlined = function SearchOutlined(props, ref) {
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
+ ref: ref,
+ icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
+ }));
+};
+SearchOutlined.displayName = 'SearchOutlined';
+/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
+
/***/ }),
/***/ 59775:
diff --git a/1226.chunk.css b/1086.chunk.css
similarity index 100%
rename from 1226.chunk.css
rename to 1086.chunk.css
diff --git a/24058.async.js b/11123.async.js
similarity index 90%
rename from 24058.async.js
rename to 11123.async.js
index 9adb97e280..eec0073846 100644
--- a/24058.async.js
+++ b/11123.async.js
@@ -1,5 +1,18 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[24058],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[11123],{
+
+/***/ 509:
+/*!*********************************************************************!*\
+ !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
+ \*********************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__) {
+
+// This icon file is generated automatically.
+var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
+/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
+
+
+/***/ }),
/***/ 9708:
/*!***************************************************!*\
@@ -378,6 +391,33 @@ var style_default = __webpack_require__(43146);
+/***/ }),
+
+/***/ 25783:
+/*!*************************************************************************************!*\
+ !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
+ \*************************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
+/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
+
+// GENERATE BY ./scripts/generate.ts
+// DON NOT EDIT IT MANUALLY
+
+
+
+var SearchOutlined = function SearchOutlined(props, ref) {
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
+ ref: ref,
+ icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
+ }));
+};
+SearchOutlined.displayName = 'SearchOutlined';
+/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
+
/***/ }),
/***/ 48555:
diff --git a/12768.async.js b/12768.async.js
index a7f056fc87..655e55debf 100644
--- a/12768.async.js
+++ b/12768.async.js
@@ -490,7 +490,8 @@ function _unescape(str) {
_ref$style = _ref.style,
style = _ref$style === void 0 ? {} : _ref$style,
_ref$stylesPrev = _ref.stylesPrev,
- stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev;
+ stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev,
+ highlightKeywords = _ref.highlightKeywords;
var str = String(value);
var _useState = (0,react.useState)(""),
_useState2 = slicedToArray_default()(_useState, 2),
@@ -540,16 +541,53 @@ function _unescape(str) {
resetMathExpressions();
// return dompurify.sanitize(rs)
var dom = document.createElement('div');
+ dom.innerHTML = rs;
+ if (highlightKeywords) {
+ var escapedKeywords = highlightKeywords.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
+ findKeyword(dom, escapedKeywords);
+ return dom.innerHTML;
+ }
if (showTextOnly) {
- dom.innerHTML = rs;
return dom.innerText;
}
- dom.innerHTML = rs;
setTimeout(function () {
return onLoad();
}, 500);
return dom.innerHTML;
- }, [str]);
+ }, [str, highlightKeywords]);
+ function findKeyword(node, keyword) {
+ return node.childNodes.forEach(function (childNode) {
+ if (childNode.childNodes.length > 0) {
+ findKeyword(childNode, keyword);
+ } else if (childNode.nodeName !== "IMG") {
+ if (childNode.innerHTML) {
+ var _childNode$innerHTML;
+ childNode.innerHTML = (_childNode$innerHTML = childNode.innerHTML) === null || _childNode$innerHTML === void 0 ? void 0 : _childNode$innerHTML.replace(new RegExp(keyword, "gi"), '$&');
+ } else {
+ var dom = document.createElement("span");
+ dom.innerHTML = childNode.textContent.replace(new RegExp(keyword, "gi"), '$&');
+ childNode.replaceWith(dom);
+ }
+ }
+ });
+
+ // return dom.childNodes.forEach((node:any) => {
+ // console.log("nodeLen:",node.childNodes.length)
+ // if(node.childNodes.length > 0){
+ // debugger
+ // // findKeyword(dom.childNodes,keyword)
+ // }else{
+ // if(node.nodeName !== "#text"){
+ // node.innerHTML = node.innerHTML.replaceAll(keyword,`${keyword}`)
+ // console.log("node:",node,dom,node.nodeName,node.innerHTML,node.childNodes.length)
+ // debugger
+ // }
+ // }
+
+ // return node
+ // });
+ }
+
var el = (0,react.useRef)();
lines.WebkitLineClamp = showLines;
if (showLines) {
diff --git a/49666.async.js b/1491.async.js
similarity index 92%
rename from 49666.async.js
rename to 1491.async.js
index 4f7fd0e10c..9db30987fb 100644
--- a/49666.async.js
+++ b/1491.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[49666,36579,23805,62654],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[1491,36579,23805,62654],{
/***/ 32857:
/*!********************************************************************!*\
@@ -12,19 +12,6 @@ var CheckOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 8
/* harmony default export */ __webpack_exports__["Z"] = (CheckOutlined);
-/***/ }),
-
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
/***/ }),
/***/ 73481:
@@ -491,33 +478,6 @@ CheckOutlined.displayName = 'CheckOutlined';
/***/ }),
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
-/***/ }),
-
/***/ 34243:
/*!**********************************************************!*\
!*** ./node_modules/rc-overflow/es/index.js + 4 modules ***!
diff --git a/49666.chunk.css b/1491.chunk.css
similarity index 100%
rename from 49666.chunk.css
rename to 1491.chunk.css
diff --git a/19428.async.js b/19428.async.js
index e89b6940d6..7e38ac9d79 100644
--- a/19428.async.js
+++ b/19428.async.js
@@ -25,19 +25,6 @@ var LeftOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 89
/* harmony default export */ __webpack_exports__["Z"] = (LeftOutlined);
-/***/ }),
-
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
/***/ }),
/***/ 7918:
@@ -1612,33 +1599,6 @@ EyeOutlined_EyeOutlined.displayName = 'EyeOutlined';
/***/ }),
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
-/***/ }),
-
/***/ 43159:
/*!**************************************************!*\
!*** ./node_modules/rc-tooltip/es/placements.js ***!
diff --git a/20812.async.js b/20812.async.js
index a91ddc5219..04b227dd2e 100644
--- a/20812.async.js
+++ b/20812.async.js
@@ -1,18 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[20812,22569,36579,23805,62654,61437,34131,56809,93390,5506,97073,89626,25486,54942,76635,79256,28020,71514],{
-
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
-/***/ }),
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[20812,22569,36579,23805,62654,61437,56809,34131,93390,5506,97073,89626,25486,54942,76635,79256,28020,71514],{
/***/ 7918:
/*!******************************************************************************!*\
@@ -2647,33 +2634,6 @@ EyeOutlined_EyeOutlined.displayName = 'EyeOutlined';
/***/ }),
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
-/***/ }),
-
/***/ 50132:
/*!**********************************************!*\
!*** ./node_modules/rc-checkbox/es/index.js ***!
diff --git a/2246.async.js b/2246.async.js
index f858f90f37..bfdee3785c 100644
--- a/2246.async.js
+++ b/2246.async.js
@@ -25,19 +25,6 @@ var DoubleRightOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64
/* harmony default export */ __webpack_exports__["Z"] = (DoubleRightOutlined);
-/***/ }),
-
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
/***/ }),
/***/ 7918:
@@ -1547,33 +1534,6 @@ EyeOutlined_EyeOutlined.displayName = 'EyeOutlined';
/***/ }),
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
-/***/ }),
-
/***/ 43159:
/*!**************************************************!*\
!*** ./node_modules/rc-tooltip/es/placements.js ***!
diff --git a/26621.async.js b/26621.async.js
deleted file mode 100644
index c0d1f6e154..0000000000
--- a/26621.async.js
+++ /dev/null
@@ -1,979 +0,0 @@
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[26621],{
-
-/***/ 32857:
-/*!********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/CheckOutlined.js ***!
- \********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-"use strict";
-// This icon file is generated automatically.
-var CheckOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, "name": "check", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (CheckOutlined);
-
-
-/***/ }),
-
-/***/ 28508:
-/*!******************************************************************!*\
- !*** ./node_modules/@ant-design/icons/es/icons/CloseOutlined.js ***!
- \******************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_CloseOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/CloseOutlined */ 89503);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 7918);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var CloseOutlined = function CloseOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_CloseOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-CloseOutlined.displayName = 'CloseOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(CloseOutlined));
-
-/***/ }),
-
-/***/ 69753:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons/es/icons/DownloadOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_DownloadOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/DownloadOutlined */ 49495);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 7918);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var DownloadOutlined = function DownloadOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_DownloadOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-DownloadOutlined.displayName = 'DownloadOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(DownloadOutlined));
-
-/***/ }),
-
-/***/ 33160:
-/*!*******************************************************************************!*\
- !*** ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js + 1 modules ***!
- \*******************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ icons_ReloadOutlined; }
-});
-
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
-var objectSpread2 = __webpack_require__(1413);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/ReloadOutlined.js
-// This icon file is generated automatically.
-var ReloadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z" } }] }, "name": "reload", "theme": "outlined" };
-/* harmony default export */ var asn_ReloadOutlined = (ReloadOutlined);
-
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 6 modules
-var AntdIcon = __webpack_require__(7918);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var ReloadOutlined_ReloadOutlined = function ReloadOutlined(props, ref) {
- return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
- ref: ref,
- icon: asn_ReloadOutlined
- }));
-};
-ReloadOutlined_ReloadOutlined.displayName = 'ReloadOutlined';
-/* harmony default export */ var icons_ReloadOutlined = (/*#__PURE__*/react.forwardRef(ReloadOutlined_ReloadOutlined));
-
-/***/ }),
-
-/***/ 98787:
-/*!**********************************************!*\
- !*** ./node_modules/antd/es/_util/colors.js ***!
- \**********************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "E": function() { return /* binding */ PresetStatusColorTypes; },
-/* harmony export */ "Y": function() { return /* binding */ PresetColorTypes; }
-/* harmony export */ });
-/* harmony import */ var _type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./type */ 93355);
-
-var PresetStatusColorTypes = (0,_type__WEBPACK_IMPORTED_MODULE_0__/* .tuple */ .b)('success', 'processing', 'error', 'default', 'warning');
-// eslint-disable-next-line import/prefer-default-export
-var PresetColorTypes = (0,_type__WEBPACK_IMPORTED_MODULE_0__/* .tuple */ .b)('pink', 'red', 'yellow', 'orange', 'cyan', 'green', 'blue', 'purple', 'geekblue', 'magenta', 'volcano', 'gold', 'lime');
-
-/***/ }),
-
-/***/ 57838:
-/*!************************************************************!*\
- !*** ./node_modules/antd/es/_util/hooks/useForceUpdate.js ***!
- \************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "Z": function() { return /* binding */ useForceUpdate; }
-/* harmony export */ });
-/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ 97685);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-
-
-function useForceUpdate() {
- var _React$useReducer = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(function (x) {
- return x + 1;
- }, 0),
- _React$useReducer2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_React$useReducer, 2),
- forceUpdate = _React$useReducer2[1];
- return forceUpdate;
-}
-
-/***/ }),
-
-/***/ 80636:
-/*!**************************************************!*\
- !*** ./node_modules/antd/es/_util/placements.js ***!
- \**************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "Z": function() { return /* binding */ getPlacements; }
-/* harmony export */ });
-/* unused harmony export getOverflowOptions */
-/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ 87462);
-/* harmony import */ var rc_tooltip_es_placements__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rc-tooltip/es/placements */ 43159);
-
-
-var autoAdjustOverflowEnabled = {
- adjustX: 1,
- adjustY: 1
-};
-var autoAdjustOverflowDisabled = {
- adjustX: 0,
- adjustY: 0
-};
-var targetOffset = [0, 0];
-function getOverflowOptions(autoAdjustOverflow) {
- if (typeof autoAdjustOverflow === 'boolean') {
- return autoAdjustOverflow ? autoAdjustOverflowEnabled : autoAdjustOverflowDisabled;
- }
- return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)({}, autoAdjustOverflowDisabled), autoAdjustOverflow);
-}
-function getPlacements(config) {
- var _config$arrowWidth = config.arrowWidth,
- arrowWidth = _config$arrowWidth === void 0 ? 4 : _config$arrowWidth,
- _config$horizontalArr = config.horizontalArrowShift,
- horizontalArrowShift = _config$horizontalArr === void 0 ? 16 : _config$horizontalArr,
- _config$verticalArrow = config.verticalArrowShift,
- verticalArrowShift = _config$verticalArrow === void 0 ? 8 : _config$verticalArrow,
- autoAdjustOverflow = config.autoAdjustOverflow,
- arrowPointAtCenter = config.arrowPointAtCenter;
- var placementMap = {
- left: {
- points: ['cr', 'cl'],
- offset: [-4, 0]
- },
- right: {
- points: ['cl', 'cr'],
- offset: [4, 0]
- },
- top: {
- points: ['bc', 'tc'],
- offset: [0, -4]
- },
- bottom: {
- points: ['tc', 'bc'],
- offset: [0, 4]
- },
- topLeft: {
- points: ['bl', 'tc'],
- offset: [-(horizontalArrowShift + arrowWidth), -4]
- },
- leftTop: {
- points: ['tr', 'cl'],
- offset: [-4, -(verticalArrowShift + arrowWidth)]
- },
- topRight: {
- points: ['br', 'tc'],
- offset: [horizontalArrowShift + arrowWidth, -4]
- },
- rightTop: {
- points: ['tl', 'cr'],
- offset: [4, -(verticalArrowShift + arrowWidth)]
- },
- bottomRight: {
- points: ['tr', 'bc'],
- offset: [horizontalArrowShift + arrowWidth, 4]
- },
- rightBottom: {
- points: ['bl', 'cr'],
- offset: [4, verticalArrowShift + arrowWidth]
- },
- bottomLeft: {
- points: ['tl', 'bc'],
- offset: [-(horizontalArrowShift + arrowWidth), 4]
- },
- leftBottom: {
- points: ['br', 'cl'],
- offset: [-4, verticalArrowShift + arrowWidth]
- }
- };
- Object.keys(placementMap).forEach(function (key) {
- placementMap[key] = arrowPointAtCenter ? (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)({}, placementMap[key]), {
- overflow: getOverflowOptions(autoAdjustOverflow),
- targetOffset: targetOffset
- }) : (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)({}, rc_tooltip_es_placements__WEBPACK_IMPORTED_MODULE_0__/* .placements */ .C[key]), {
- overflow: getOverflowOptions(autoAdjustOverflow)
- });
- placementMap[key].ignoreShake = true;
- });
- return placementMap;
-}
-
-/***/ }),
-
-/***/ 27049:
-/*!***********************************************!*\
- !*** ./node_modules/antd/es/divider/index.js ***!
- \***********************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ 87462);
-/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ 4942);
-/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 94184);
-/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config-provider */ 53124);
-
-
-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;
-};
-
-
-
-
-var Divider = function Divider(props) {
- var _classNames;
- var _React$useContext = react__WEBPACK_IMPORTED_MODULE_1__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_2__/* .ConfigContext */ .E_),
- getPrefixCls = _React$useContext.getPrefixCls,
- direction = _React$useContext.direction;
- var customizePrefixCls = props.prefixCls,
- _props$type = props.type,
- type = _props$type === void 0 ? 'horizontal' : _props$type,
- _props$orientation = props.orientation,
- orientation = _props$orientation === void 0 ? 'center' : _props$orientation,
- orientationMargin = props.orientationMargin,
- className = props.className,
- children = props.children,
- dashed = props.dashed,
- plain = props.plain,
- restProps = __rest(props, ["prefixCls", "type", "orientation", "orientationMargin", "className", "children", "dashed", "plain"]);
- var prefixCls = getPrefixCls('divider', customizePrefixCls);
- var orientationPrefix = orientation.length > 0 ? "-".concat(orientation) : orientation;
- var hasChildren = !!children;
- var hasCustomMarginLeft = orientation === 'left' && orientationMargin != null;
- var hasCustomMarginRight = orientation === 'right' && orientationMargin != null;
- var classString = classnames__WEBPACK_IMPORTED_MODULE_0___default()(prefixCls, "".concat(prefixCls, "-").concat(type), (_classNames = {}, (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-with-text"), hasChildren), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-with-text").concat(orientationPrefix), hasChildren), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-dashed"), !!dashed), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-plain"), !!plain), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-no-default-orientation-margin-left"), hasCustomMarginLeft), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-no-default-orientation-margin-right"), hasCustomMarginRight), _classNames), className);
- var innerStyle = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)({}, hasCustomMarginLeft && {
- marginLeft: orientationMargin
- }), hasCustomMarginRight && {
- marginRight: orientationMargin
- });
- // Warning children not work in vertical mode
- if (false) {}
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)({
- className: classString
- }, restProps, {
- role: "separator"
- }), children && type !== 'vertical' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
- className: "".concat(prefixCls, "-inner-text"),
- style: innerStyle
- }, children));
-};
-/* harmony default export */ __webpack_exports__["Z"] = (Divider);
-
-/***/ }),
-
-/***/ 98541:
-/*!*****************************************************************!*\
- !*** ./node_modules/antd/es/divider/style/index.js + 1 modules ***!
- \*****************************************************************/
-/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
-
-"use strict";
-
-// EXTERNAL MODULE: ./node_modules/antd/es/style/default.less
-var style_default = __webpack_require__(43146);
-;// CONCATENATED MODULE: ./node_modules/antd/es/divider/style/index.less
-// extracted by mini-css-extract-plugin
-
-;// CONCATENATED MODULE: ./node_modules/antd/es/divider/style/index.js
-
-
-
-/***/ }),
-
-/***/ 84908:
-/*!***********************************************************!*\
- !*** ./node_modules/antd/es/tooltip/index.js + 3 modules ***!
- \***********************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ tooltip; }
-});
-
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
-var defineProperty = __webpack_require__(4942);
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
-var slicedToArray = __webpack_require__(97685);
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
-var esm_extends = __webpack_require__(87462);
-// EXTERNAL MODULE: ./node_modules/classnames/index.js
-var classnames = __webpack_require__(94184);
-var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
-var esm_typeof = __webpack_require__(71002);
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
-var objectSpread2 = __webpack_require__(1413);
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
-var objectWithoutProperties = __webpack_require__(45987);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-// EXTERNAL MODULE: ./node_modules/rc-trigger/es/index.js + 15 modules
-var es = __webpack_require__(81263);
-// EXTERNAL MODULE: ./node_modules/rc-tooltip/es/placements.js
-var placements = __webpack_require__(43159);
-;// CONCATENATED MODULE: ./node_modules/rc-tooltip/es/Popup.js
-
-
-function Popup(props) {
- var showArrow = props.showArrow,
- arrowContent = props.arrowContent,
- children = props.children,
- prefixCls = props.prefixCls,
- id = props.id,
- overlayInnerStyle = props.overlayInnerStyle,
- className = props.className,
- style = props.style;
- return /*#__PURE__*/react.createElement("div", {
- className: classnames_default()("".concat(prefixCls, "-content"), className),
- style: style
- }, showArrow !== false && /*#__PURE__*/react.createElement("div", {
- className: "".concat(prefixCls, "-arrow"),
- key: "arrow"
- }, arrowContent), /*#__PURE__*/react.createElement("div", {
- className: "".concat(prefixCls, "-inner"),
- id: id,
- role: "tooltip",
- style: overlayInnerStyle
- }, typeof children === 'function' ? children() : children));
-}
-;// CONCATENATED MODULE: ./node_modules/rc-tooltip/es/Tooltip.js
-
-
-
-
-
-
-
-
-
-
-var Tooltip = function Tooltip(props, ref) {
- var overlayClassName = props.overlayClassName,
- _props$trigger = props.trigger,
- trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
- _props$mouseEnterDela = props.mouseEnterDelay,
- mouseEnterDelay = _props$mouseEnterDela === void 0 ? 0 : _props$mouseEnterDela,
- _props$mouseLeaveDela = props.mouseLeaveDelay,
- mouseLeaveDelay = _props$mouseLeaveDela === void 0 ? 0.1 : _props$mouseLeaveDela,
- overlayStyle = props.overlayStyle,
- _props$prefixCls = props.prefixCls,
- prefixCls = _props$prefixCls === void 0 ? 'rc-tooltip' : _props$prefixCls,
- children = props.children,
- onVisibleChange = props.onVisibleChange,
- afterVisibleChange = props.afterVisibleChange,
- transitionName = props.transitionName,
- animation = props.animation,
- motion = props.motion,
- _props$placement = props.placement,
- placement = _props$placement === void 0 ? 'right' : _props$placement,
- _props$align = props.align,
- align = _props$align === void 0 ? {} : _props$align,
- _props$destroyTooltip = props.destroyTooltipOnHide,
- destroyTooltipOnHide = _props$destroyTooltip === void 0 ? false : _props$destroyTooltip,
- defaultVisible = props.defaultVisible,
- getTooltipContainer = props.getTooltipContainer,
- overlayInnerStyle = props.overlayInnerStyle,
- arrowContent = props.arrowContent,
- overlay = props.overlay,
- id = props.id,
- showArrow = props.showArrow,
- restProps = (0,objectWithoutProperties/* default */.Z)(props, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow"]);
-
- var domRef = (0,react.useRef)(null);
- (0,react.useImperativeHandle)(ref, function () {
- return domRef.current;
- });
-
- var extraProps = (0,objectSpread2/* default */.Z)({}, restProps);
-
- if ('visible' in props) {
- extraProps.popupVisible = props.visible;
- }
-
- var getPopupElement = function getPopupElement() {
- return /*#__PURE__*/react.createElement(Popup, {
- showArrow: showArrow,
- arrowContent: arrowContent,
- key: "content",
- prefixCls: prefixCls,
- id: id,
- overlayInnerStyle: overlayInnerStyle
- }, overlay);
- };
-
- var destroyTooltip = false;
- var autoDestroy = false;
-
- if (typeof destroyTooltipOnHide === 'boolean') {
- destroyTooltip = destroyTooltipOnHide;
- } else if (destroyTooltipOnHide && (0,esm_typeof/* default */.Z)(destroyTooltipOnHide) === 'object') {
- var keepParent = destroyTooltipOnHide.keepParent;
- destroyTooltip = keepParent === true;
- autoDestroy = keepParent === false;
- }
-
- return /*#__PURE__*/react.createElement(es/* default */.Z, (0,esm_extends/* default */.Z)({
- popupClassName: overlayClassName,
- prefixCls: prefixCls,
- popup: getPopupElement,
- action: trigger,
- builtinPlacements: placements/* placements */.C,
- popupPlacement: placement,
- ref: domRef,
- popupAlign: align,
- getPopupContainer: getTooltipContainer,
- onPopupVisibleChange: onVisibleChange,
- afterPopupVisibleChange: afterVisibleChange,
- popupTransitionName: transitionName,
- popupAnimation: animation,
- popupMotion: motion,
- defaultPopupVisible: defaultVisible,
- destroyPopupOnHide: destroyTooltip,
- autoDestroy: autoDestroy,
- mouseLeaveDelay: mouseLeaveDelay,
- popupStyle: overlayStyle,
- mouseEnterDelay: mouseEnterDelay
- }, extraProps), children);
-};
-
-/* harmony default export */ var es_Tooltip = (/*#__PURE__*/(0,react.forwardRef)(Tooltip));
-;// CONCATENATED MODULE: ./node_modules/rc-tooltip/es/index.js
-
-
-
-/* harmony default export */ var rc_tooltip_es = (es_Tooltip);
-// EXTERNAL MODULE: ./node_modules/rc-util/es/hooks/useMergedState.js
-var useMergedState = __webpack_require__(21770);
-// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
-var context = __webpack_require__(53124);
-// EXTERNAL MODULE: ./node_modules/antd/es/_util/colors.js
-var colors = __webpack_require__(98787);
-// EXTERNAL MODULE: ./node_modules/antd/es/_util/motion.js
-var motion = __webpack_require__(33603);
-// EXTERNAL MODULE: ./node_modules/antd/es/_util/placements.js
-var _util_placements = __webpack_require__(80636);
-// EXTERNAL MODULE: ./node_modules/antd/es/_util/reactNode.js
-var reactNode = __webpack_require__(96159);
-;// CONCATENATED MODULE: ./node_modules/antd/es/tooltip/index.js
-
-
-
-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;
-};
-
-
-
-
-
-
-
-
-
-
-var splitObject = function splitObject(obj, keys) {
- var picked = {};
- var omitted = (0,esm_extends/* default */.Z)({}, obj);
- keys.forEach(function (key) {
- if (obj && key in obj) {
- picked[key] = obj[key];
- delete omitted[key];
- }
- });
- return {
- picked: picked,
- omitted: omitted
- };
-};
-var PresetColorRegex = new RegExp("^(".concat(colors/* PresetColorTypes.join */.Y.join('|'), ")(-inverse)?$"));
-// Fix Tooltip won't hide at disabled button
-// mouse events don't trigger at disabled button in Chrome
-// https://github.com/react-component/tooltip/issues/18
-function getDisabledCompatibleChildren(element, prefixCls) {
- var elementType = element.type;
- if ((elementType.__ANT_BUTTON === true || element.type === 'button') && element.props.disabled || elementType.__ANT_SWITCH === true && (element.props.disabled || element.props.loading) || elementType.__ANT_RADIO === true && element.props.disabled) {
- // Pick some layout related style properties up to span
- // Prevent layout bugs like https://github.com/ant-design/ant-design/issues/5254
- var _splitObject = splitObject(element.props.style, ['position', 'left', 'right', 'top', 'bottom', 'float', 'display', 'zIndex']),
- picked = _splitObject.picked,
- omitted = _splitObject.omitted;
- var spanStyle = (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({
- display: 'inline-block'
- }, picked), {
- cursor: 'not-allowed',
- width: element.props.block ? '100%' : undefined
- });
- var buttonStyle = (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, omitted), {
- pointerEvents: 'none'
- });
- var child = (0,reactNode/* cloneElement */.Tm)(element, {
- style: buttonStyle,
- className: null
- });
- return /*#__PURE__*/react.createElement("span", {
- style: spanStyle,
- className: classnames_default()(element.props.className, "".concat(prefixCls, "-disabled-compatible-wrapper"))
- }, child);
- }
- return element;
-}
-var tooltip_Tooltip = /*#__PURE__*/react.forwardRef(function (props, ref) {
- var _classNames2;
- var _React$useContext = react.useContext(context/* ConfigContext */.E_),
- getContextPopupContainer = _React$useContext.getPopupContainer,
- getPrefixCls = _React$useContext.getPrefixCls,
- direction = _React$useContext.direction;
- // Warning for deprecated usage
- if (false) {}
- var _useMergedState = (0,useMergedState/* default */.Z)(false, {
- value: props.open !== undefined ? props.open : props.visible,
- defaultValue: props.defaultOpen !== undefined ? props.defaultOpen : props.defaultVisible
- }),
- _useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
- open = _useMergedState2[0],
- setOpen = _useMergedState2[1];
- var isNoTitle = function isNoTitle() {
- var title = props.title,
- overlay = props.overlay;
- return !title && !overlay && title !== 0; // overlay for old version compatibility
- };
-
- var onOpenChange = function onOpenChange(vis) {
- var _a, _b;
- setOpen(isNoTitle() ? false : vis);
- if (!isNoTitle()) {
- (_a = props.onOpenChange) === null || _a === void 0 ? void 0 : _a.call(props, vis);
- (_b = props.onVisibleChange) === null || _b === void 0 ? void 0 : _b.call(props, vis);
- }
- };
- var getTooltipPlacements = function getTooltipPlacements() {
- var builtinPlacements = props.builtinPlacements,
- _props$arrowPointAtCe = props.arrowPointAtCenter,
- arrowPointAtCenter = _props$arrowPointAtCe === void 0 ? false : _props$arrowPointAtCe,
- _props$autoAdjustOver = props.autoAdjustOverflow,
- autoAdjustOverflow = _props$autoAdjustOver === void 0 ? true : _props$autoAdjustOver;
- return builtinPlacements || (0,_util_placements/* default */.Z)({
- arrowPointAtCenter: arrowPointAtCenter,
- autoAdjustOverflow: autoAdjustOverflow
- });
- };
- // 动态设置动画点
- var onPopupAlign = function onPopupAlign(domNode, align) {
- var placements = getTooltipPlacements();
- // 当前返回的位置
- var placement = Object.keys(placements).find(function (key) {
- var _a, _b;
- return placements[key].points[0] === ((_a = align.points) === null || _a === void 0 ? void 0 : _a[0]) && placements[key].points[1] === ((_b = align.points) === null || _b === void 0 ? void 0 : _b[1]);
- });
- if (!placement) {
- return;
- }
- // 根据当前坐标设置动画点
- var rect = domNode.getBoundingClientRect();
- var transformOrigin = {
- top: '50%',
- left: '50%'
- };
- if (/top|Bottom/.test(placement)) {
- transformOrigin.top = "".concat(rect.height - align.offset[1], "px");
- } else if (/Top|bottom/.test(placement)) {
- transformOrigin.top = "".concat(-align.offset[1], "px");
- }
- if (/left|Right/.test(placement)) {
- transformOrigin.left = "".concat(rect.width - align.offset[0], "px");
- } else if (/right|Left/.test(placement)) {
- transformOrigin.left = "".concat(-align.offset[0], "px");
- }
- domNode.style.transformOrigin = "".concat(transformOrigin.left, " ").concat(transformOrigin.top);
- };
- var getOverlay = function getOverlay() {
- var title = props.title,
- overlay = props.overlay;
- if (title === 0) {
- return title;
- }
- return overlay || title || '';
- };
- var getPopupContainer = props.getPopupContainer,
- _props$placement = props.placement,
- placement = _props$placement === void 0 ? 'top' : _props$placement,
- _props$mouseEnterDela = props.mouseEnterDelay,
- mouseEnterDelay = _props$mouseEnterDela === void 0 ? 0.1 : _props$mouseEnterDela,
- _props$mouseLeaveDela = props.mouseLeaveDelay,
- mouseLeaveDelay = _props$mouseLeaveDela === void 0 ? 0.1 : _props$mouseLeaveDela,
- otherProps = __rest(props, ["getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay"]);
- var customizePrefixCls = props.prefixCls,
- openClassName = props.openClassName,
- getTooltipContainer = props.getTooltipContainer,
- overlayClassName = props.overlayClassName,
- color = props.color,
- overlayInnerStyle = props.overlayInnerStyle,
- children = props.children;
- var prefixCls = getPrefixCls('tooltip', customizePrefixCls);
- var rootPrefixCls = getPrefixCls();
- var tempOpen = open;
- // Hide tooltip when there is no title
- if (!('open' in props) && !('visible' in props) && isNoTitle()) {
- tempOpen = false;
- }
- var child = getDisabledCompatibleChildren((0,reactNode/* isValidElement */.l$)(children) && !(0,reactNode/* isFragment */.M2)(children) ? children : /*#__PURE__*/react.createElement("span", null, children), prefixCls);
- var childProps = child.props;
- var childCls = !childProps.className || typeof childProps.className === 'string' ? classnames_default()(childProps.className, (0,defineProperty/* default */.Z)({}, openClassName || "".concat(prefixCls, "-open"), true)) : childProps.className;
- var customOverlayClassName = classnames_default()(overlayClassName, (_classNames2 = {}, (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-rtl"), direction === 'rtl'), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-").concat(color), color && PresetColorRegex.test(color)), _classNames2));
- var formattedOverlayInnerStyle = overlayInnerStyle;
- var arrowContentStyle = {};
- if (color && !PresetColorRegex.test(color)) {
- formattedOverlayInnerStyle = (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, overlayInnerStyle), {
- background: color
- });
- // @ts-ignore
- arrowContentStyle = {
- '--antd-arrow-background-color': color
- };
- }
- return /*#__PURE__*/react.createElement(rc_tooltip_es, (0,esm_extends/* default */.Z)({}, otherProps, {
- placement: placement,
- mouseEnterDelay: mouseEnterDelay,
- mouseLeaveDelay: mouseLeaveDelay,
- prefixCls: prefixCls,
- overlayClassName: customOverlayClassName,
- getTooltipContainer: getPopupContainer || getTooltipContainer || getContextPopupContainer,
- ref: ref,
- builtinPlacements: getTooltipPlacements(),
- overlay: getOverlay(),
- visible: tempOpen,
- onVisibleChange: onOpenChange,
- onPopupAlign: onPopupAlign,
- overlayInnerStyle: formattedOverlayInnerStyle,
- arrowContent: /*#__PURE__*/react.createElement("span", {
- className: "".concat(prefixCls, "-arrow-content"),
- style: arrowContentStyle
- }),
- motion: {
- motionName: (0,motion/* getTransitionName */.mL)(rootPrefixCls, 'zoom-big-fast', props.transitionName),
- motionDeadline: 1000
- }
- }), tempOpen ? (0,reactNode/* cloneElement */.Tm)(child, {
- className: childCls
- }) : child);
-});
-if (false) {}
-/* harmony default export */ var tooltip = (tooltip_Tooltip);
-
-/***/ }),
-
-/***/ 64894:
-/*!************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/CheckOutlined.js ***!
- \************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_CheckOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/CheckOutlined */ 32857);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var CheckOutlined = function CheckOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_CheckOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-CheckOutlined.displayName = 'CheckOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(CheckOutlined));
-
-/***/ }),
-
-/***/ 7124:
-/*!**********************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/EyeOutlined.js + 1 modules ***!
- \**********************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ icons_EyeOutlined; }
-});
-
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
-var objectSpread2 = __webpack_require__(1413);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/EyeOutlined.js
-// This icon file is generated automatically.
-var EyeOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, "name": "eye", "theme": "outlined" };
-/* harmony default export */ var asn_EyeOutlined = (EyeOutlined);
-
-// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 3 modules
-var AntdIcon = __webpack_require__(93771);
-;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/EyeOutlined.js
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var EyeOutlined_EyeOutlined = function EyeOutlined(props, ref) {
- return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
- ref: ref,
- icon: asn_EyeOutlined
- }));
-};
-EyeOutlined_EyeOutlined.displayName = 'EyeOutlined';
-/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/react.forwardRef(EyeOutlined_EyeOutlined));
-
-/***/ }),
-
-/***/ 1469:
-/*!****************************************!*\
- !*** ./node_modules/lodash/isArray.js ***!
- \****************************************/
-/***/ (function(module) {
-
-/**
- * Checks if `value` is classified as an `Array` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
- * @example
- *
- * _.isArray([1, 2, 3]);
- * // => true
- *
- * _.isArray(document.body.children);
- * // => false
- *
- * _.isArray('abc');
- * // => false
- *
- * _.isArray(_.noop);
- * // => false
- */
-var isArray = Array.isArray;
-
-module.exports = isArray;
-
-
-/***/ }),
-
-/***/ 43159:
-/*!**************************************************!*\
- !*** ./node_modules/rc-tooltip/es/placements.js ***!
- \**************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "C": function() { return /* binding */ placements; }
-/* harmony export */ });
-var autoAdjustOverflow = {
- adjustX: 1,
- adjustY: 1
-};
-var targetOffset = [0, 0];
-var placements = {
- left: {
- points: ['cr', 'cl'],
- overflow: autoAdjustOverflow,
- offset: [-4, 0],
- targetOffset: targetOffset
- },
- right: {
- points: ['cl', 'cr'],
- overflow: autoAdjustOverflow,
- offset: [4, 0],
- targetOffset: targetOffset
- },
- top: {
- points: ['bc', 'tc'],
- overflow: autoAdjustOverflow,
- offset: [0, -4],
- targetOffset: targetOffset
- },
- bottom: {
- points: ['tc', 'bc'],
- overflow: autoAdjustOverflow,
- offset: [0, 4],
- targetOffset: targetOffset
- },
- topLeft: {
- points: ['bl', 'tl'],
- overflow: autoAdjustOverflow,
- offset: [0, -4],
- targetOffset: targetOffset
- },
- leftTop: {
- points: ['tr', 'tl'],
- overflow: autoAdjustOverflow,
- offset: [-4, 0],
- targetOffset: targetOffset
- },
- topRight: {
- points: ['br', 'tr'],
- overflow: autoAdjustOverflow,
- offset: [0, -4],
- targetOffset: targetOffset
- },
- rightTop: {
- points: ['tl', 'tr'],
- overflow: autoAdjustOverflow,
- offset: [4, 0],
- targetOffset: targetOffset
- },
- bottomRight: {
- points: ['tr', 'br'],
- overflow: autoAdjustOverflow,
- offset: [0, 4],
- targetOffset: targetOffset
- },
- rightBottom: {
- points: ['bl', 'br'],
- overflow: autoAdjustOverflow,
- offset: [4, 0],
- targetOffset: targetOffset
- },
- bottomLeft: {
- points: ['tl', 'bl'],
- overflow: autoAdjustOverflow,
- offset: [0, 4],
- targetOffset: targetOffset
- },
- leftBottom: {
- points: ['br', 'bl'],
- overflow: autoAdjustOverflow,
- offset: [-4, 0],
- targetOffset: targetOffset
- }
-};
-/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (placements)));
-
-/***/ }),
-
-/***/ 79370:
-/*!*****************************************************!*\
- !*** ./node_modules/rc-util/es/Dom/styleChecker.js ***!
- \*****************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "G": function() { return /* binding */ isStyleSupport; }
-/* harmony export */ });
-/* harmony import */ var _canUseDom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./canUseDom */ 98924);
-
-var isStyleNameSupport = function isStyleNameSupport(styleName) {
- if ((0,_canUseDom__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)() && window.document.documentElement) {
- var styleNameList = Array.isArray(styleName) ? styleName : [styleName];
- var documentElement = window.document.documentElement;
- return styleNameList.some(function (name) {
- return name in documentElement.style;
- });
- }
- return false;
-};
-var isStyleValueSupport = function isStyleValueSupport(styleName, value) {
- if (!isStyleNameSupport(styleName)) {
- return false;
- }
- var ele = document.createElement('div');
- var origin = ele.style[styleName];
- ele.style[styleName] = value;
- return ele.style[styleName] !== origin;
-};
-function isStyleSupport(styleName, styleValue) {
- if (!Array.isArray(styleName) && styleValue !== undefined) {
- return isStyleValueSupport(styleName, styleValue);
- }
- return isStyleNameSupport(styleName);
-}
-
-/***/ })
-
-}]);
\ No newline at end of file
diff --git a/28119.async.js b/28119.async.js
index d2e7f8c4d7..13d07f37b6 100644
--- a/28119.async.js
+++ b/28119.async.js
@@ -26,20 +26,6 @@ var FolderOpenOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64
/* harmony default export */ __webpack_exports__["Z"] = (FolderOpenOutlined);
-/***/ }),
-
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-"use strict";
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
/***/ }),
/***/ 77171:
@@ -1650,34 +1636,6 @@ EyeOutlined_EyeOutlined.displayName = 'EyeOutlined';
/***/ }),
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
-/***/ }),
-
/***/ 20640:
/*!*************************************************!*\
!*** ./node_modules/copy-to-clipboard/index.js ***!
diff --git a/29432.async.js b/29432.async.js
index 9c9cea1118..70020036e2 100644
--- a/29432.async.js
+++ b/29432.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[29432,22569,15298,3421,85472,43127,25137,40906],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[29432,22569,15298,3421,85472,43127,25137,38051,40906],{
/***/ 26554:
/*!*******************************************************************!*\
diff --git a/30589.async.js b/30589.async.js
index 838d3b8c4c..4141f4413d 100644
--- a/30589.async.js
+++ b/30589.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[30589,34472],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[30589,34472,36036],{
/***/ 66023:
/*!*******************************************************************!*\
diff --git a/3228.async.js b/3228.async.js
new file mode 100644
index 0000000000..d5938f3286
--- /dev/null
+++ b/3228.async.js
@@ -0,0 +1,1981 @@
+"use strict";
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[3228],{
+
+/***/ 66446:
+/*!******************************************!*\
+ !*** ./src/pages/tasks/service/index.js ***!
+ \******************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "JW": function() { return /* binding */ setUnity3dStatus; },
+/* harmony export */ "Jd": function() { return /* binding */ rebootEsc; },
+/* harmony export */ "Kl": function() { return /* binding */ addVncTime; },
+/* harmony export */ "L5": function() { return /* binding */ saveTaskStar; },
+/* harmony export */ "MH": function() { return /* binding */ getChooseUnlockAnswer; },
+/* harmony export */ "MI": function() { return /* binding */ addMyRepositoryFile; },
+/* harmony export */ "Qo": function() { return /* binding */ getCodeGameStatus; },
+/* harmony export */ "SO": function() { return /* binding */ fetchPathsTaskList; },
+/* harmony export */ "Tf": function() { return /* binding */ resetGitCode; },
+/* harmony export */ "XO": function() { return /* binding */ fetchTaskInfo; },
+/* harmony export */ "Xy": function() { return /* binding */ codeGameBuild; },
+/* harmony export */ "Y0": function() { return /* binding */ plusOrCancelPraise; },
+/* harmony export */ "Ye": function() { return /* binding */ setStartPermanent; },
+/* harmony export */ "Yv": function() { return /* binding */ stopLogOutput; },
+/* harmony export */ "ZH": function() { return /* binding */ commitFiles; },
+/* harmony export */ "am": function() { return /* binding */ resetEnvironment; },
+/* harmony export */ "bD": function() { return /* binding */ deleteMyGitFile; },
+/* harmony export */ "fA": function() { return /* binding */ closeWindowsVnc; },
+/* harmony export */ "fY": function() { return /* binding */ getRemainingTime; },
+/* harmony export */ "g6": function() { return /* binding */ fetchTaskList; },
+/* harmony export */ "g7": function() { return /* binding */ moveMyGitFile; },
+/* harmony export */ "gT": function() { return /* binding */ fetchPictures; },
+/* harmony export */ "gn": function() { return /* binding */ pullFiles; },
+/* harmony export */ "h$": function() { return /* binding */ logOutput; },
+/* harmony export */ "hG": function() { return /* binding */ resetPassedCode; },
+/* harmony export */ "i8": function() { return /* binding */ getRanking; },
+/* harmony export */ "j3": function() { return /* binding */ getUnlockAnswer; },
+/* harmony export */ "lH": function() { return /* binding */ getAnswerInfo; },
+/* harmony export */ "li": function() { return /* binding */ fetchCode; },
+/* harmony export */ "n4": function() { return /* binding */ updateCode; },
+/* harmony export */ "pU": function() { return /* binding */ fetchRepos; },
+/* harmony export */ "qK": function() { return /* binding */ restoreCode; },
+/* harmony export */ "sA": function() { return /* binding */ startInit; },
+/* harmony export */ "sP": function() { return /* binding */ getChooseAnswerInfo; },
+/* harmony export */ "t$": function() { return /* binding */ unlockTestCase; },
+/* harmony export */ "zl": function() { return /* binding */ evalateChooseGame; }
+/* harmony export */ });
+/* unused harmony exports getNoticeDetail, closeSSh, getMyFileContent */
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js */ 17061);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/asyncToGenerator.js */ 17156);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectSpread2.js */ 42122);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__);
+/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/utils/fetch */ 84519);
+/* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/utils/util */ 29427);
+
+
+
+
+
+
+//判断是否来自教学课堂助教查看实训
+var urlParamsAll = (0,_utils_util__WEBPACK_IMPORTED_MODULE_4__/* .getJsonFromUrl */ .oP)();
+var urlParams = {};
+if (urlParamsAll !== null && urlParamsAll !== void 0 && urlParamsAll.homework_common_id) {
+ urlParams.homework_common_id = urlParamsAll === null || urlParamsAll === void 0 ? void 0 : urlParamsAll.homework_common_id;
+}
+if (urlParamsAll !== null && urlParamsAll !== void 0 && urlParamsAll.exercisesId) {
+ urlParams.exercise_id = urlParamsAll === null || urlParamsAll === void 0 ? void 0 : urlParamsAll.exercisesId;
+}
+function fetchTaskInfo(id) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, ".json"), urlParams);
+}
+function fetchTaskList(id) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/challenges.json"));
+}
+function fetchPathsTaskList(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/subject_challenges.json"), params);
+}
+function saveTaskStar(id, shixunId, star) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/star.json"), {
+ shixun_id: shixunId,
+ star: star
+ });
+}
+function fetchCode(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/rep_content.json"), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams));
+}
+function updateCode(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("myshixuns/".concat(id, "/update_file.json"), params);
+}
+function restoreCode(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/reset_original_code.json"), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams));
+}
+function resetGitCode(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("myshixuns/".concat(id, "/reset_repository.json"), params);
+}
+function resetPassedCode(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/reset_passed_code.json"), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams));
+}
+function codeGameBuild(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/game_build.json"), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams));
+}
+function getCodeGameStatus(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/game_status.json"), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams));
+}
+function evalateChooseGame(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/choose_build.json"), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams));
+}
+
+//获取环境剩余时间
+function getRemainingTime(id) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/get_remaining_time.json"));
+}
+function fetchPictures(id) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/picture_display.json"), urlParams);
+}
+function getNoticeDetail(id, params) {
+ return get("courses/".concat(id, "/inform_detail.json"), params);
+}
+function plusOrCancelPraise(id) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/plus_or_cancel_praise.json"));
+}
+function fetchRepos(id) {
+ var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("myshixuns/".concat(id, "/repository.json"), params);
+}
+
+//添加新方法
+function startInit(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/start.json"), params || {});
+}
+function closeSSh(id) {
+ return get("myshixuns/".concat(id, "/reset_pod.json"));
+}
+function resetEnvironment(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/reset_pod.json"), params);
+}
+
+// 重启云主机
+function rebootEsc(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/tasks/".concat(id, "/reboot_esc.json"), {
+ method: 'post',
+ body: params
+ });
+}
+function unlockTestCase(id) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/check_test_sets.json"));
+}
+function getAnswerInfo(id) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/get_answer_info.json"));
+}
+function getChooseAnswerInfo(id) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/get_choose_answer.json"));
+}
+function getChooseUnlockAnswer(id) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/unlock_choose_answer.json"));
+}
+function getUnlockAnswer(id, aid) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/unlock_answer.json"), {
+ answer_id: aid
+ });
+}
+function setUnity3dStatus(id, result, data) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/set_games_status.json"), {
+ result: result,
+ data: data
+ });
+}
+
+//保留唯一一个方法
+function addVncTime(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/active_pod.json"), params);
+}
+function getRanking(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/rank_list.json"), params);
+}
+function closeWindowsVnc(id, tpi_id) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/close_windows_vnc.json"), {
+ tpi_id: tpi_id
+ });
+}
+function commitFiles(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/commit_files.json"), params);
+}
+function pullFiles(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/pull_files.json"), params);
+}
+function logOutput(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/log_output"), params);
+}
+function stopLogOutput(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/stop_log_output.json"), params);
+}
+
+// myshixuns start
+function addMyRepositoryFile(_x) {
+ return _addMyRepositoryFile.apply(this, arguments);
+}
+function _addMyRepositoryFile() {
+ _addMyRepositoryFile = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee(params) {
+ return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee$(_context) {
+ while (1) switch (_context.prev = _context.next) {
+ case 0:
+ return _context.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/myshixuns/".concat(params.id, "/add_file.json"), {
+ method: 'post',
+ body: params
+ }));
+ case 1:
+ case "end":
+ return _context.stop();
+ }
+ }, _callee);
+ }));
+ return _addMyRepositoryFile.apply(this, arguments);
+}
+function deleteMyGitFile(_x2) {
+ return _deleteMyGitFile.apply(this, arguments);
+}
+function _deleteMyGitFile() {
+ _deleteMyGitFile = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee2(params) {
+ return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee2$(_context2) {
+ while (1) switch (_context2.prev = _context2.next) {
+ case 0:
+ return _context2.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/myshixuns/".concat(params.id, "/delete_git_file.json"), {
+ method: 'Delete',
+ body: params
+ }));
+ case 1:
+ case "end":
+ return _context2.stop();
+ }
+ }, _callee2);
+ }));
+ return _deleteMyGitFile.apply(this, arguments);
+}
+function moveMyGitFile(_x3) {
+ return _moveMyGitFile.apply(this, arguments);
+}
+function _moveMyGitFile() {
+ _moveMyGitFile = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee3(params) {
+ return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee3$(_context3) {
+ while (1) switch (_context3.prev = _context3.next) {
+ case 0:
+ return _context3.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/myshixuns/".concat(params.id, "/mv_file.json"), {
+ method: 'post',
+ body: params
+ }));
+ case 1:
+ case "end":
+ return _context3.stop();
+ }
+ }, _callee3);
+ }));
+ return _moveMyGitFile.apply(this, arguments);
+}
+function getMyFileContent(_x4) {
+ return _getMyFileContent.apply(this, arguments);
+}
+function _getMyFileContent() {
+ _getMyFileContent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(params) {
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
+ while (1) switch (_context4.prev = _context4.next) {
+ case 0:
+ return _context4.abrupt("return", Fetch("/api/tasks/".concat(params.id, "/rep_content.json"), {
+ method: 'get',
+ params: params
+ }));
+ case 1:
+ case "end":
+ return _context4.stop();
+ }
+ }, _callee4);
+ }));
+ return _getMyFileContent.apply(this, arguments);
+}
+function setStartPermanent(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/shixuns/".concat(id, "/set_start_permanent.json"), {
+ method: 'put',
+ body: params
+ });
+}
+
+/***/ }),
+
+/***/ 31590:
+/*!**********************************************************!*\
+ !*** ./src/components/MultiUpload/index.tsx + 1 modules ***!
+ \**********************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, {
+ "z": function() { return /* binding */ coverToFileList; },
+ "Z": function() { return /* binding */ MultiUpload; }
+});
+
+// EXTERNAL MODULE: ./node_modules/antd/es/button/style/index.js + 1 modules
+var style = __webpack_require__(29913);
+// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
+var es_button = __webpack_require__(71577);
+// EXTERNAL MODULE: ./node_modules/antd/es/modal/style/index.js + 1 modules
+var modal_style = __webpack_require__(35611);
+// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 7 modules
+var modal = __webpack_require__(85402);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
+var regeneratorRuntime = __webpack_require__(17061);
+var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
+var asyncToGenerator = __webpack_require__(17156);
+var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectSpread2.js
+var objectSpread2 = __webpack_require__(42122);
+var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
+// EXTERNAL MODULE: ./node_modules/antd/es/message/style/index.js + 1 modules
+var message_style = __webpack_require__(14934);
+// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 1 modules
+var message = __webpack_require__(12461);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/toConsumableArray.js
+var toConsumableArray = __webpack_require__(861);
+var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
+var slicedToArray = __webpack_require__(27424);
+var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
+// EXTERNAL MODULE: ./node_modules/antd/es/upload/style/index.js + 1 modules
+var upload_style = __webpack_require__(13759);
+// EXTERNAL MODULE: ./node_modules/antd/es/upload/index.js + 20 modules
+var upload = __webpack_require__(7426);
+// EXTERNAL MODULE: ./node_modules/react/index.js
+var react = __webpack_require__(67294);
+// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
+var env = __webpack_require__(59758);
+// EXTERNAL MODULE: ./src/pages/MoopCases/FormPanel/service.ts
+var service = __webpack_require__(39507);
+// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
+var jsx_runtime = __webpack_require__(85893);
+;// CONCATENATED MODULE: ./src/components/SingleUpload/index.tsx
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+var uploadNameSizeSeperator = ' ';
+function bytesToSize(bytes) {
+ var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
+ if (bytes == 0) return '0 Byte';
+ var i = parseInt('' + Math.floor(Math.log(bytes) / Math.log(1024)), 10);
+ return (bytes / Math.pow(1024, i)).toFixed(1) + ' ' + sizes[i];
+}
+/* harmony default export */ var SingleUpload = (function (_ref) {
+ var _ref$value = _ref.value,
+ value = _ref$value === void 0 ? [] : _ref$value,
+ action = _ref.action,
+ _onChange = _ref.onChange,
+ className = _ref.className,
+ _ref$maxSize = _ref.maxSize,
+ maxSize = _ref$maxSize === void 0 ? 150 : _ref$maxSize,
+ _ref$title = _ref.title,
+ title = _ref$title === void 0 ? '文件上传' : _ref$title,
+ _ref$accept = _ref.accept,
+ accept = _ref$accept === void 0 ? null : _ref$accept;
+ var uploadProps = {
+ multiple: false,
+ fileList: value,
+ accept: accept,
+ withCredentials: true,
+ beforeUpload: function beforeUpload(file) {
+ var fileSize = file.size / 1024 / 1024;
+ if (!(fileSize < maxSize)) {
+ _message.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(maxSize, "MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20"));
+ return Promise.reject();
+ }
+ return true;
+ },
+ action: "".concat(ENV.API_SERVER, "/api/attachments.json"),
+ // ?debug=student&randomcode=undefined&client_key=6d57f8c3dd186c5ada392546ace9620a
+ onChange: function onChange(info) {
+ var _info$file, _info$file$response;
+ var fileList = _toConsumableArray(info.fileList);
+ fileList = fileList.map(function (file) {
+ if (file.name.indexOf(uploadNameSizeSeperator) === -1) {
+ file.name = "".concat(file.name).concat(uploadNameSizeSeperator).concat(bytesToSize(file.size));
+ }
+ return _objectSpread({}, file);
+ });
+ if (info.file.status === 'done' && ((_info$file = info.file) === null || _info$file === void 0 ? void 0 : (_info$file$response = _info$file.response) === null || _info$file$response === void 0 ? void 0 : _info$file$response.status) === -1) {
+ var _info$file2, _info$file2$response;
+ _message.error((_info$file2 = info.file) === null || _info$file2 === void 0 ? void 0 : (_info$file2$response = _info$file2.response) === null || _info$file2$response === void 0 ? void 0 : _info$file2$response.message);
+ _onChange([]);
+ return;
+ }
+ _onChange(fileList);
+ },
+ onRemove: function () {
+ var _onRemove = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
+ var fileSize, id, rs;
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
+ while (1) switch (_context.prev = _context.next) {
+ case 0:
+ fileSize = file.size / 1024 / 1024;
+ if (!(file.status === 'uploading')) {
+ _context.next = 3;
+ break;
+ }
+ return _context.abrupt("return", true);
+ case 3:
+ if (fileSize < maxSize) {
+ _context.next = 7;
+ break;
+ }
+ return _context.abrupt("return", true);
+ case 7:
+ id = file.response ? file.response.id : file.uid;
+ if (!id) {
+ _context.next = 15;
+ break;
+ }
+ _context.next = 11;
+ return removeAttachment(file.response ? file.response.id : file.id);
+ case 11:
+ rs = _context.sent;
+ return _context.abrupt("return", rs);
+ case 15:
+ return _context.abrupt("return", true);
+ case 16:
+ case "end":
+ return _context.stop();
+ }
+ }, _callee);
+ }));
+ function onRemove(_x) {
+ return _onRemove.apply(this, arguments);
+ }
+ return onRemove;
+ }()
+ };
+ function onCancel(e) {
+ e.preventDefault();
+ e.stopPropagation();
+ }
+ return /*#__PURE__*/_jsx("div", {
+ className: "single-upload ".concat(className ? className : ''),
+ children: /*#__PURE__*/_jsxs(_Upload, _objectSpread(_objectSpread({}, uploadProps), {}, {
+ children: [/*#__PURE__*/_jsx(_Button, {
+ type: "primary",
+ title: value.length > 0 ? '每次只能上传一个资源, 删除下面资源可重新上传 ' : '',
+ disabled: value.length > 0,
+ ghost: true,
+ children: title
+ }), /*#__PURE__*/_jsxs("span", {
+ onClick: onCancel,
+ style: {
+ marginLeft: 10
+ },
+ children: ["(\u5355\u4E2A\u6587\u4EF6\u6700\u5927", maxSize, "M)", ' ']
+ })]
+ }))
+ });
+});
+// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/InboxOutlined.js + 1 modules
+var InboxOutlined = __webpack_require__(64082);
+// EXTERNAL MODULE: ./node_modules/lodash/lodash.js
+var lodash = __webpack_require__(96486);
+;// CONCATENATED MODULE: ./src/components/MultiUpload/index.tsx
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+var Dragger = upload/* default.Dragger */.Z.Dragger;
+function coverToFileList(data) {
+ var rs = [];
+ if (data && data.length > 0) {
+ rs = data.map(function (item) {
+ return {
+ uid: item.id,
+ id: item.id,
+ name: item.title + uploadNameSizeSeperator + item.filesize,
+ url: item.url,
+ filesize: item.filesize,
+ status: 'done',
+ response: {
+ id: item.id
+ }
+ };
+ });
+ }
+ return rs;
+}
+/* harmony default export */ var MultiUpload = (function (_ref) {
+ var value = _ref.value,
+ _onChange = _ref.onChange,
+ action = _ref.action,
+ data = _ref.data,
+ className = _ref.className,
+ _ref$maxSize = _ref.maxSize,
+ maxSize = _ref$maxSize === void 0 ? 150 : _ref$maxSize,
+ _ref$title = _ref.title,
+ title = _ref$title === void 0 ? '上传附件' : _ref$title,
+ _ref$showRemoveModal = _ref.showRemoveModal,
+ showRemoveModal = _ref$showRemoveModal === void 0 ? false : _ref$showRemoveModal,
+ _ref$accept = _ref.accept,
+ accept = _ref$accept === void 0 ? '' : _ref$accept,
+ additionalText = _ref.additionalText,
+ isDragger = _ref.isDragger,
+ _ref$number = _ref.number,
+ number = _ref$number === void 0 ? 1000 : _ref$number,
+ _ref$aloneClear = _ref.aloneClear,
+ aloneClear = _ref$aloneClear === void 0 ? false : _ref$aloneClear;
+ var _useState = (0,react.useState)(false),
+ _useState2 = slicedToArray_default()(_useState, 2),
+ disabled = _useState2[0],
+ setDisabled = _useState2[1];
+ var _useState3 = (0,react.useState)(value || []),
+ _useState4 = slicedToArray_default()(_useState3, 2),
+ fileList = _useState4[0],
+ setFileList = _useState4[1];
+ var _useState5 = (0,react.useState)(1),
+ _useState6 = slicedToArray_default()(_useState5, 2),
+ nums = _useState6[0],
+ setnums = _useState6[1];
+ (0,react.useEffect)(function () {
+ if (value) {
+ if (nums === 1) {
+ setFileList(toConsumableArray_default()(value));
+ }
+ setnums(2);
+ if (number === (value === null || value === void 0 ? void 0 : value.length)) {
+ setDisabled(true);
+ }
+ }
+ }, [value]);
+ var clearLastFile = function clearLastFile() {
+ setTimeout(function () {
+ fileList.pop();
+ setFileList(toConsumableArray_default()(fileList));
+ }, 500);
+ };
+ var uploadProps = {
+ multiple: true,
+ disabled: disabled,
+ accept: accept,
+ withCredentials: true,
+ fileList: fileList,
+ // fileList: fileList?.length ? fileList : value,
+ beforeUpload: function beforeUpload(file, fileArr) {
+ var fileSize = file.size / 1024 / 1024;
+ if (fileList.concat(fileArr).length > number) {
+ fileList.pop();
+ setFileList(toConsumableArray_default()(fileList));
+ message/* default.error */.ZP.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(number, "\u4E2A\u6587\u4EF6"));
+ if (aloneClear) {
+ return Promise.reject();
+ }
+ clearLastFile();
+ return false;
+ }
+ if (!(fileSize < maxSize)) {
+ message/* default.error */.ZP.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(maxSize, "MB)."));
+ if (aloneClear) {
+ return Promise.reject();
+ }
+ clearLastFile();
+ return false;
+ }
+ return true;
+ },
+ data: data,
+ action: action || "".concat(env/* default.API_SERVER */.Z.API_SERVER, "/api/attachments.json"),
+ // ?debug=student&randomcode=undefined&client_key=6d57f8c3dd186c5ada392546ace9620a
+ onChange: function onChange(info) {
+ var _info$file, _info$file$response;
+ if (info.file.status === "removed") {
+ fileList = info.fileList;
+ } else {
+ fileList = (0,lodash.uniqBy)([].concat(toConsumableArray_default()(info.fileList), toConsumableArray_default()(fileList)), 'uid');
+ }
+ if (info.file.status === 'done' && ((_info$file = info.file) === null || _info$file === void 0 ? void 0 : (_info$file$response = _info$file.response) === null || _info$file$response === void 0 ? void 0 : _info$file$response.status) === -1) {
+ var _info$file2, _info$file2$response;
+ message/* default.error */.ZP.error((_info$file2 = info.file) === null || _info$file2 === void 0 ? void 0 : (_info$file2$response = _info$file2.response) === null || _info$file2$response === void 0 ? void 0 : _info$file2$response.message);
+ return;
+ }
+ if (fileList.length >= number) setDisabled(true);else setDisabled(false);
+ setFileList(toConsumableArray_default()(fileList));
+ fileList = fileList.map(function (file) {
+ var _file$response;
+ if (file !== null && file !== void 0 && (_file$response = file.response) !== null && _file$response !== void 0 && _file$response.id) {
+ var _file$response2;
+ file.url = "/api/attachments/".concat(file === null || file === void 0 ? void 0 : (_file$response2 = file.response) === null || _file$response2 === void 0 ? void 0 : _file$response2.id);
+ }
+ if (file.name.indexOf(uploadNameSizeSeperator) === -1) {
+ file.name = "".concat(file.name).concat(uploadNameSizeSeperator).concat(bytesToSize(file.size));
+ }
+ return objectSpread2_default()({}, file);
+ });
+ console.log('info:', info, fileList);
+ _onChange(fileList);
+ },
+ onRemove: function () {
+ var _onRemove = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(file) {
+ var remove;
+ return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
+ while (1) switch (_context3.prev = _context3.next) {
+ case 0:
+ remove = /*#__PURE__*/function () {
+ var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
+ var id, rs;
+ return regeneratorRuntime_default()().wrap(function _callee$(_context) {
+ while (1) switch (_context.prev = _context.next) {
+ case 0:
+ id = file.response ? file.response.id : file.id;
+ if (!id) {
+ _context.next = 8;
+ break;
+ }
+ _context.next = 4;
+ return (0,service/* removeAttachment */.JZ)(file.response ? file.response.id : file.uid);
+ case 4:
+ rs = _context.sent;
+ return _context.abrupt("return", Promise.resolve(rs));
+ case 8:
+ return _context.abrupt("return", true);
+ case 9:
+ case "end":
+ return _context.stop();
+ }
+ }, _callee);
+ }));
+ return function remove() {
+ return _ref2.apply(this, arguments);
+ };
+ }();
+ if (!showRemoveModal) {
+ _context3.next = 5;
+ break;
+ }
+ return _context3.abrupt("return", new Promise(function (resolve, reject) {
+ modal/* default.confirm */.Z.confirm({
+ centered: true,
+ width: 530,
+ okText: '确定',
+ cancelText: '取消',
+ title: '提示',
+ content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ className: "tc font16",
+ children: "\u662F\u5426\u786E\u8BA4\u5220\u9664?"
+ }),
+ onOk: function () {
+ var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
+ var res;
+ return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
+ while (1) switch (_context2.prev = _context2.next) {
+ case 0:
+ _context2.next = 2;
+ return remove();
+ case 2:
+ res = _context2.sent;
+ message/* default.success */.ZP.success('删除成功');
+ resolve(true);
+ case 5:
+ case "end":
+ return _context2.stop();
+ }
+ }, _callee2);
+ }));
+ function onOk() {
+ return _onOk.apply(this, arguments);
+ }
+ return onOk;
+ }(),
+ onCancel: function onCancel() {
+ return resolve(false);
+ }
+ });
+ }));
+ case 5:
+ _context3.next = 7;
+ return remove();
+ case 7:
+ return _context3.abrupt("return", _context3.sent);
+ case 8:
+ case "end":
+ return _context3.stop();
+ }
+ }, _callee3);
+ }));
+ function onRemove(_x) {
+ return _onRemove.apply(this, arguments);
+ }
+ return onRemove;
+ }()
+ };
+ function onCancel(e) {
+ e.preventDefault();
+ e.stopPropagation();
+ }
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ className: "multi-upload ".concat(className ? className : ''),
+ children: [isDragger && /*#__PURE__*/(0,jsx_runtime.jsxs)(Dragger, objectSpread2_default()(objectSpread2_default()({}, uploadProps), {}, {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
+ className: "ant-upload-drag-icon",
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(InboxOutlined/* default */.Z, {})
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
+ className: "ant-upload-text",
+ children: ["\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A", maxSize, "MB)", ' ']
+ }), additionalText]
+ })), !isDragger && /*#__PURE__*/(0,jsx_runtime.jsxs)(upload/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, uploadProps), {}, {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
+ disabled: disabled,
+ children: title
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
+ onClick: onCancel,
+ style: {
+ marginLeft: 10,
+ color: '#FA6400'
+ },
+ children: ["(\u5355\u4E2A\u6587\u4EF6\u6700\u5927", maxSize, "MB)", ' ']
+ })]
+ }))]
+ });
+});
+
+/***/ }),
+
+/***/ 12264:
+/*!**********************************!*\
+ !*** ./src/components/modal.tsx ***!
+ \**********************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "Z": function() { return /* binding */ Dialog; }
+/* harmony export */ });
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/classCallCheck.js */ 56690);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createClass_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/createClass.js */ 89728);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createClass_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createClass_js__WEBPACK_IMPORTED_MODULE_1__);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_inherits_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/inherits.js */ 61655);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_inherits_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_inherits_js__WEBPACK_IMPORTED_MODULE_2__);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createSuper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/createSuper.js */ 26389);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createSuper_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createSuper_js__WEBPACK_IMPORTED_MODULE_3__);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-dom */ 73935);
+
+
+
+
+
+
+var Dialog = /*#__PURE__*/function (_React$Component) {
+ _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_inherits_js__WEBPACK_IMPORTED_MODULE_2___default()(Dialog, _React$Component);
+ var _super = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createSuper_js__WEBPACK_IMPORTED_MODULE_3___default()(Dialog);
+ function Dialog(props) {
+ var _this;
+ _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0___default()(this, Dialog);
+ _this = _super.call(this, props);
+ var doc = window.document;
+ _this.node = doc.createElement('div');
+ doc.body.appendChild(_this.node);
+ return _this;
+ }
+ _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createClass_js__WEBPACK_IMPORTED_MODULE_1___default()(Dialog, [{
+ key: "render",
+ value: function render() {
+ var children = this.props.children;
+ return /*#__PURE__*/(0,react_dom__WEBPACK_IMPORTED_MODULE_5__.createPortal)(children, this.node);
+ }
+ }, {
+ key: "componentWillUnmount",
+ value: function componentWillUnmount() {
+ window.document.body.removeChild(this.node);
+ }
+ }]);
+ return Dialog;
+}(react__WEBPACK_IMPORTED_MODULE_4__.Component);
+
+
+/***/ }),
+
+/***/ 32171:
+/*!**********************************************************!*\
+ !*** ./src/components/vnc-setting/index.tsx + 1 modules ***!
+ \**********************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, {
+ "Z": function() { return /* binding */ vnc_setting; }
+});
+
+// EXTERNAL MODULE: ./node_modules/antd/es/row/style/index.js
+var style = __webpack_require__(13062);
+// EXTERNAL MODULE: ./node_modules/antd/es/row/index.js
+var row = __webpack_require__(71230);
+// EXTERNAL MODULE: ./node_modules/antd/es/col/style/index.js
+var col_style = __webpack_require__(89032);
+// EXTERNAL MODULE: ./node_modules/antd/es/col/index.js
+var col = __webpack_require__(15746);
+// EXTERNAL MODULE: ./node_modules/antd/es/input/style/index.js + 1 modules
+var input_style = __webpack_require__(69463);
+// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 5 modules
+var input = __webpack_require__(75008);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
+var regeneratorRuntime = __webpack_require__(17061);
+var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
+var asyncToGenerator = __webpack_require__(17156);
+var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
+// EXTERNAL MODULE: ./node_modules/antd/es/message/style/index.js + 1 modules
+var message_style = __webpack_require__(14934);
+// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 1 modules
+var message = __webpack_require__(12461);
+// EXTERNAL MODULE: ./node_modules/antd/es/modal/style/index.js + 1 modules
+var modal_style = __webpack_require__(35611);
+// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 7 modules
+var modal = __webpack_require__(85402);
+// EXTERNAL MODULE: ./node_modules/react/index.js
+var react = __webpack_require__(67294);
+// EXTERNAL MODULE: ./src/components/tpi-code-setting/index.less
+var tpi_code_setting = __webpack_require__(12867);
+// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/PoweroffOutlined.js + 1 modules
+var PoweroffOutlined = __webpack_require__(81088);
+// EXTERNAL MODULE: ./node_modules/react-copy-to-clipboard/lib/index.js
+var lib = __webpack_require__(74855);
+// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
+var _umi_production_exports = __webpack_require__(89214);
+// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 1 modules
+var MultiUpload = __webpack_require__(31590);
+// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
+var env = __webpack_require__(59758);
+// EXTERNAL MODULE: ./src/utils/fetch.ts
+var fetch = __webpack_require__(84519);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
+var slicedToArray = __webpack_require__(27424);
+var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
+// EXTERNAL MODULE: ./src/utils/util.tsx
+var util = __webpack_require__(29427);
+// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
+var jsx_runtime = __webpack_require__(85893);
+;// CONCATENATED MODULE: ./src/components/vnc-setting/record.tsx
+
+
+
+
+
+
+
+
+var ScreenRecord = /*#__PURE__*/(0,react.forwardRef)(function (_ref, ref) {
+ var time = _ref.time;
+ console.log("ScreenRecord:", ref);
+ var previewRef = (0,react.useRef)();
+ var _useState = (0,react.useState)(),
+ _useState2 = slicedToArray_default()(_useState, 2),
+ recorder = _useState2[0],
+ setRecorder = _useState2[1];
+ var recorderRef = (0,react.useRef)();
+ var recordingTimeMS = 2000;
+ var recordingArr = [];
+ (0,react.useImperativeHandle)(ref, function () {
+ return {
+ startScreenRecord: startScreenRecord,
+ downloadFile: downloadFile
+ };
+ });
+ function startRecording(_x, _x2) {
+ return _startRecording.apply(this, arguments);
+ }
+ function _startRecording() {
+ _startRecording = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(stream, lengthInMS) {
+ var data, re;
+ return regeneratorRuntime_default()().wrap(function _callee$(_context) {
+ while (1) switch (_context.prev = _context.next) {
+ case 0:
+ data = [];
+ _context.next = 3;
+ return new MediaRecorder(stream);
+ case 3:
+ re = _context.sent;
+ re.ondataavailable = function (event) {
+ data.push(event.data);
+ };
+ re.start();
+ recorderRef.current = re;
+ window.recorderRefs = re;
+ re.addEventListener('stop', function (event) {
+ var videoUrl = URL.createObjectURL(data[0], {
+ type: 'video/mp4'
+ });
+ (0,util/* downLoadLink */.Nd)("xxx.webm", videoUrl);
+ });
+ case 9:
+ case "end":
+ return _context.stop();
+ }
+ }, _callee);
+ }));
+ return _startRecording.apply(this, arguments);
+ }
+ function downloadFile() {
+ if (!window.recorderRefs) {
+ message/* default.warn */.ZP.warn("您还没有开启视频录制,请先去录制视频吧!");
+ return;
+ }
+ var tracks = previewRef.current.srcObject.getTracks();
+ tracks.forEach(function (track) {
+ track.stop();
+ });
+ window.recorderRefs.addEventListener('dataavailable', function (event) {
+ var videoUrl = URL.createObjectURL(event.data, {
+ type: 'video/mp4'
+ });
+ (0,util/* downLoadLink */.Nd)("屏幕录制视频.webm", videoUrl);
+ });
+ }
+ ;
+ function startScreenRecord() {
+ navigator.mediaDevices.getDisplayMedia({
+ video: true,
+ audio: true
+ }).then(function (stream) {
+ previewRef.current.srcObject = stream;
+ // downloadButton.href = stream;
+ recordingArr.push(stream);
+ previewRef.current.captureStream = previewRef.current.captureStream || previewRef.current.mozCaptureStream;
+ return new Promise(function (resolve) {
+ return previewRef.current.onplaying = resolve;
+ });
+ }).then(function () {
+ return startRecording(previewRef.current.captureStream(), recordingTimeMS);
+ }).then(function (recordedChunks) {})["catch"](function (error) {
+ if (error.name === "NotFoundError") {
+ message/* default.warn */.ZP.warn("找不到摄像头或麦克风。无法录制.");
+ } else if (error.name === "UnknownError") {
+ message/* default.warn */.ZP.warn('录制失败');
+ }
+ });
+ }
+
+ // stop(previewRef.current.srcObject);
+
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ style: {
+ position: "absolute",
+ top: "0",
+ zIndex: -1
+ },
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("video", {
+ onPause: function onPause() {},
+ width: "60",
+ height: "120",
+ autoPlay: true,
+ muted: true,
+ ref: previewRef
+ })
+ });
+});
+/* harmony default export */ var record = (ScreenRecord);
+// EXTERNAL MODULE: ./node_modules/lodash/lodash.js
+var lodash = __webpack_require__(96486);
+// EXTERNAL MODULE: ./src/pages/Shixuns/Edit/body/Environment/MarkdownModal/index.tsx + 1 modules
+var MarkdownModal = __webpack_require__(33508);
+// EXTERNAL MODULE: ./src/components/ui-customization/reset.less?modules
+var resetmodules = __webpack_require__(39132);
+// EXTERNAL MODULE: ./src/utils/authority.ts
+var authority = __webpack_require__(7);
+;// CONCATENATED MODULE: ./src/components/vnc-setting/index.tsx
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+var difficultyDesc = {
+ 1: '简单',
+ 2: '中等',
+ 3: '困难'
+};
+/* harmony default export */ var vnc_setting = (function (_ref) {
+ var className = _ref.className,
+ git_url = _ref.git_url,
+ difficulty = _ref.difficulty,
+ task_pass = _ref.task_pass,
+ test_set_permission = _ref.test_set_permission,
+ onVncAction = _ref.onVncAction,
+ windows_vnc = _ref.windows_vnc,
+ linux_vnc = _ref.linux_vnc,
+ vnc_url = _ref.vnc_url,
+ unity_3d_routes = _ref.unity_3d_routes,
+ index_tab = _ref.index_tab,
+ shixun_environment_id = _ref.shixun_environment_id,
+ tab_type = _ref.tab_type,
+ reboot_cloud = _ref.reboot_cloud,
+ cloud_type = _ref.cloud_type,
+ resData = _ref.resData,
+ instance_startup_type = _ref.instance_startup_type,
+ mirror_description_multi = _ref.mirror_description_multi,
+ is_jupyter_notebook = _ref.is_jupyter_notebook,
+ is_jupyter_lab = _ref.is_jupyter_lab,
+ jupyterData = _ref.jupyterData,
+ is_jupyter = _ref.is_jupyter,
+ onHideToolBar = _ref.onHideToolBar,
+ monitoring_url = _ref.monitoring_url,
+ port = _ref.port;
+ var params = (0,_umi_production_exports.useParams)();
+ var recordRef = (0,react.useRef)();
+
+ //params.taskId 普通实训 params.identifier jupyter实训
+
+ var uploadWorkspace = windows_vnc ? "C:\/Windows\/AppReadiness\/userfiles" : "/data/workspace/userfiles";
+ var downloadWorkspace = windows_vnc ? "C:\/Windows\/AppReadiness\/downloadfiles" : "/data/workspace/downloadfiles";
+ var isLoadData = !(0,lodash.isEmpty)(resData) || !(0,lodash.isEmpty)(jupyterData);
+ var mirror_description = jupyterData ? {
+ name: jupyterData === null || jupyterData === void 0 ? void 0 : jupyterData.main_mirror_name,
+ description: jupyterData === null || jupyterData === void 0 ? void 0 : jupyterData.main_mirror_description
+ } : mirror_description_multi === null || mirror_description_multi === void 0 ? void 0 : mirror_description_multi.find(function (e) {
+ return e.shixun_environment_id === shixun_environment_id;
+ });
+ var uploadFile = function uploadFile() {
+ onHideToolBar();
+ modal/* default.info */.Z.info({
+ title: "文件上传",
+ icon: null,
+ okText: "关闭",
+ width: 600,
+ centered: true,
+ content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ className: "pt10",
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {
+ isDragger: true,
+ maxSize: 20,
+ additionalText: "\u9ED8\u8BA4\u5B58\u653E\u76EE\u5F55\u8DEF\u5F84\u4E3A\"".concat(uploadWorkspace, "\""),
+ action: "".concat(env/* default.API_SERVER */.Z.API_SERVER, "/api/tasks/").concat(params.taskId || params.identifier, "/upload_file?debug=admin&shixun_environment_id=").concat(shixun_environment_id || null, "&tab_type=").concat(tab_type || null, "&is_jupyter=").concat(is_jupyter || false),
+ onChange: function onChange(fileList) {
+ if (fileList.every(function (item) {
+ var _item$response;
+ return ((_item$response = item.response) === null || _item$response === void 0 ? void 0 : _item$response.status) === 0;
+ })) {
+ modal/* default.destroyAll */.Z.destroyAll();
+ message/* default.info */.ZP.info("文件上传成功");
+ }
+ console.log("fileList:", fileList);
+ }
+ })
+ })
+ });
+ };
+ var downloadFile = function downloadFile() {
+ onHideToolBar();
+ modal/* default.confirm */.Z.confirm({
+ title: "下载代码",
+ centered: true,
+ width: 600,
+ content: "\u4EE3\u7801\u4E0B\u8F7D\u529F\u80FD\uFF1A\u5C06\u201C".concat(downloadWorkspace, "\u201D\u76EE\u5F55\u8FDB\u884C\u6253\u5305\u5E76\u4E0B\u8F7D"),
+ onOk: function () {
+ var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
+ return regeneratorRuntime_default()().wrap(function _callee$(_context) {
+ while (1) switch (_context.prev = _context.next) {
+ case 0:
+ _context.next = 2;
+ return (0,fetch/* default */.ZP)("/api/tasks/".concat(params.taskId || params.identifier, "/download_file?debug=admin"), {
+ method: 'post',
+ body: {
+ autoDownload: true,
+ shixun_environment_id: shixun_environment_id || null,
+ tab_type: tab_type || null,
+ is_jupyter: is_jupyter || false
+ },
+ headers: {
+ responseType: 'arraybuffer',
+ Accept: 'application/vnd.ms-excel;charset=utf-8'
+ }
+ });
+ case 2:
+ return _context.abrupt("return", true);
+ case 3:
+ case "end":
+ return _context.stop();
+ }
+ }, _callee);
+ }));
+ function onOk() {
+ return _onOk.apply(this, arguments);
+ }
+ return onOk;
+ }()
+ });
+ };
+ var onStartRecord = function onStartRecord() {
+ var _recordRef$current, _recordRef$current$st;
+ // onHideToolBar();
+ (_recordRef$current = recordRef.current) === null || _recordRef$current === void 0 ? void 0 : (_recordRef$current$st = _recordRef$current.startScreenRecord) === null || _recordRef$current$st === void 0 ? void 0 : _recordRef$current$st.call(_recordRef$current);
+ };
+ var serverPreview = /*#__PURE__*/function () {
+ var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
+ var value, domId;
+ return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
+ while (1) switch (_context3.prev = _context3.next) {
+ case 0:
+ onHideToolBar();
+ value = '';
+ domId = String(Math.random());
+ modal/* default.confirm */.Z.confirm({
+ icon: null,
+ className: resetmodules/* default.CustomTipsModalCss */.Z.CustomTipsModalCss,
+ okButtonProps: {
+ type: 'primary'
+ },
+ centered: true,
+ width: 460,
+ okText: '预览',
+ cancelText: '取消',
+ title: '服务预览',
+ content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ style: {
+ height: 95
+ },
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ className: "mb5 c-grey-333 font14 mb10",
+ children: "\u670D\u52A1\u9884\u89C8\u5C06\u4E3A\u5B9E\u9A8C\u73AF\u5883\u5185\u90E8\u670D\u52A1\u6620\u5C04\u5230\u4E34\u65F6\u57DF\u540D\uFF0C\u4EC5\u4F9B\u9884\u89C8\u6D4B\u8BD5\u4F7F\u7528\u3002\u8BF7\u586B\u5199\u5185\u90E8\u670D\u52A1\u7AEF\u53E3\uFF0C\u5E76\u786E\u8BA4\u670D\u52A1\u6B63\u5E38\u542F\u52A8\u3002"
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "c-grey-999 font14 mr10",
+ children: "\u7AEF\u53E3\u53F7"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
+ defaultValue: value,
+ onChange: function onChange(e) {
+ var dom = document.getElementById(domId);
+ dom.style.display = 'none';
+ value = e.target.value;
+ },
+ maxLength: 5,
+ style: {
+ width: 326
+ }
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ style: {
+ display: 'none',
+ marginTop: 4,
+ marginLeft: 52
+ },
+ id: domId,
+ className: "c-red"
+ })]
+ }),
+ onOk: function () {
+ var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
+ var _res$data;
+ var dom, res, _res$data2;
+ return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
+ while (1) switch (_context2.prev = _context2.next) {
+ case 0:
+ dom = document.getElementById(domId);
+ if (value) {
+ _context2.next = 5;
+ break;
+ }
+ dom.style.display = 'block';
+ dom.innerText = '端口号不能为空';
+ return _context2.abrupt("return", Promise.reject());
+ case 5:
+ if (!value.includes(" ")) {
+ _context2.next = 9;
+ break;
+ }
+ dom.style.display = 'block';
+ dom.innerText = '端口号不能有空格';
+ return _context2.abrupt("return", Promise.reject());
+ case 9:
+ if (!(value && (value.includes('.') || isNaN(Number(value)) || Number(value) > 65535 || Number(value) <= 0 || value.length > 1 && value[0] === "0"))) {
+ _context2.next = 13;
+ break;
+ }
+ dom.style.display = 'block';
+ dom.innerText = '请输入正确的端口号';
+ return _context2.abrupt("return", Promise.reject());
+ case 13:
+ _context2.next = 15;
+ return (0,fetch/* default */.ZP)("/api/tasks/".concat(params.taskId || params.identifier, "/port_proxy"), {
+ method: "post",
+ body: {
+ port: Number(value),
+ shixun_environment_id: shixun_environment_id || null,
+ tab_type: tab_type || null,
+ is_jupyter: is_jupyter || false
+ }
+ });
+ case 15:
+ res = _context2.sent;
+ _context2.next = 18;
+ return new Promise(function (resolve, reject) {
+ setTimeout(function () {
+ resolve('');
+ }, 1000);
+ });
+ case 18:
+ if (res !== null && res !== void 0 && (_res$data = res.data) !== null && _res$data !== void 0 && _res$data.url) {
+ (0,util/* openNewWindow */.xg)(res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.url);
+ }
+ case 19:
+ case "end":
+ return _context2.stop();
+ }
+ }, _callee2);
+ }));
+ function onOk() {
+ return _onOk2.apply(this, arguments);
+ }
+ return onOk;
+ }()
+ });
+ case 4:
+ case "end":
+ return _context3.stop();
+ }
+ }, _callee3);
+ }));
+ return function serverPreview() {
+ return _ref2.apply(this, arguments);
+ };
+ }();
+ var getSSH = function getSSH() {
+ onHideToolBar();
+ modal/* default.info */.Z.info({
+ title: 'SSH直连',
+ width: 600,
+ centered: true,
+ content: /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
+ flex: "50px",
+ children: "\u8D26\u53F7"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
+ children: resData === null || resData === void 0 ? void 0 : resData.username
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
+ flex: "50px",
+ children: "\u5730\u5740"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
+ children: resData === null || resData === void 0 ? void 0 : resData.ssh_address
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
+ flex: "50px",
+ children: "\u7AEF\u53E3"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
+ children: resData === null || resData === void 0 ? void 0 : resData.port
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
+ flex: "50px",
+ children: "\u5BC6\u7801"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
+ children: resData === null || resData === void 0 ? void 0 : resData.password
+ })]
+ })]
+ })
+ });
+ };
+ var getRDP = function getRDP() {
+ onHideToolBar();
+ modal/* default.info */.Z.info({
+ title: 'RDP直连',
+ icon: null,
+ className: resetmodules/* default.CustomTipsModalCss */.Z.CustomTipsModalCss,
+ okButtonProps: {
+ type: 'primary'
+ },
+ okText: '我知道啦',
+ width: 600,
+ centered: true,
+ content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
+ className: "c-grey-999",
+ flex: "50px",
+ children: "\u8D26\u53F7"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
+ className: "c-grey-333",
+ children: resData === null || resData === void 0 ? void 0 : resData.username
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
+ className: "mt10",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
+ className: "c-grey-999",
+ flex: "50px",
+ children: "\u5730\u5740"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
+ className: "c-grey-333",
+ children: resData === null || resData === void 0 ? void 0 : resData.host
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
+ className: "mt10",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
+ className: "c-grey-999",
+ flex: "50px",
+ children: "\u7AEF\u53E3"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
+ className: "c-grey-333",
+ children: resData === null || resData === void 0 ? void 0 : resData.port
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
+ className: "mt10",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
+ className: "c-grey-999",
+ flex: "50px",
+ children: "\u5BC6\u7801"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
+ className: "c-grey-333",
+ children: resData === null || resData === void 0 ? void 0 : resData.password
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
+ style: {
+ textDecoration: 'underline',
+ display: 'inline-block'
+ },
+ href: "https://www.educoder.net/forums/36696",
+ target: "_blank",
+ className: "mt10 font14 current c-light-primary",
+ children: "\u64CD\u4F5C\u8BF4\u660E"
+ })]
+ })
+ });
+ };
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ className: "tpi-code-setting ".concat(className),
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("h3", {
+ children: "\u529F\u80FD"
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
+ children: [(unity_3d_routes || is_jupyter_notebook || is_jupyter_lab) && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
+ title: "\u5168\u5C4F",
+ className: "file-item action",
+ onClick: function onClick() {
+ onVncAction('full-screen');
+ },
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
+ className: "iconfont icon-quanping"
+ }), "\u5F00\u542F / \u9000\u51FA\u5168\u5C4F"]
+ }), (tab_type === 2 || tab_type === 3 || tab_type === 4 || is_jupyter_notebook || is_jupyter_lab) && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
+ onClick: function onClick() {
+ return onVncAction('reset-task');
+ },
+ className: "file-item action",
+ title: "\u91CD\u7F6E\u73AF\u5883",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
+ className: "iconfont icon-zhongzhishixun1"
+ }), "\u91CD\u7F6E\u73AF\u5883"]
+ }), (tab_type === 2 || tab_type === 3 || tab_type === 5 || is_jupyter_lab) && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
+ onClick: function onClick() {
+ return onVncAction('reset-git-code');
+ },
+ className: "file-item action",
+ title: "\u91CD\u7F6E\u4EE3\u7801\u4ED3\u5E93",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
+ className: "iconfont icon-zhongzhishixun"
+ }), "\u91CD\u7F6E\u4EE3\u7801\u4ED3\u5E93"]
+ }), (tab_type === 3 || is_jupyter_notebook || is_jupyter_lab) && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
+ onClick: function onClick() {
+ return uploadFile();
+ },
+ className: "file-item action",
+ title: "\u4E0A\u4F20\u6587\u4EF6",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
+ className: "iconfont icon-shangchuanwenjian"
+ }), "\u4E0A\u4F20\u6587\u4EF6"]
+ }), (tab_type === 3 || is_jupyter_notebook || is_jupyter_lab) && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
+ onClick: function onClick() {
+ return downloadFile();
+ },
+ className: "file-item action",
+ title: "\u4E0B\u8F7D\u6587\u4EF6",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
+ className: "iconfont icon-xiazai3"
+ }), "\u4E0B\u8F7D\u6587\u4EF6"]
+ }), (tab_type === 3 || tab_type === 5) && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
+ onClick: function onClick() {
+ return onStartRecord();
+ },
+ className: "file-item action",
+ title: "\u5C4F\u5E55\u5F55\u5236",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
+ className: "iconfont icon-jiaruketang1"
+ }), "\u5C4F\u5E55\u5F55\u5236"]
+ }), ((tab_type === 2 || tab_type === 3 || tab_type === 4) && (cloud_type === 0 || cloud_type === 1) || is_jupyter_notebook || is_jupyter_lab) && isLoadData && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
+ onClick: function onClick() {
+ return serverPreview();
+ },
+ className: "file-item action w100",
+ title: "\u670D\u52A1\u9884\u89C8",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
+ className: "iconfont icon-suanfasheji"
+ }), "\u670D\u52A1\u9884\u89C8"]
+ }), reboot_cloud && isLoadData && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
+ onClick: function onClick() {
+ return onVncAction('restart-reboot');
+ },
+ className: "file-item action",
+ title: "\u91CD\u542F\u4E91\u4E3B\u673A",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(PoweroffOutlined/* default */.Z, {
+ style: {
+ marginRight: 21,
+ color: "#FFF"
+ },
+ className: "c-white font16"
+ }), "\u91CD\u542F\u4E91\u4E3B\u673A "]
+ }), (tab_type === 3 || tab_type === 5 || is_jupyter_notebook || is_jupyter_lab) && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
+ onClick: function onClick() {
+ return onVncAction('reset-code');
+ },
+ className: "file-item action",
+ title: "\u6062\u590D\u521D\u59CB\u4EE3\u7801",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
+ className: "iconfont icon-zhongzhi font20",
+ style: {
+ marginRight: 19
+ }
+ }), "\u6062\u590D\u521D\u59CB\u4EE3\u7801"]
+ }), is_jupyter_notebook && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
+ className: "file-item action",
+ target: "_blank",
+ href: "https://".concat(port).concat(env/* default.TERMINAL_URL */.Z.TERMINAL_URL, "/terminals/1"),
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
+ className: "iconfont icon-minglinghang font16",
+ style: {
+ marginRight: 22
+ }
+ }), "\u547D\u4EE4\u884C\u7EC8\u7AEF"]
+ }), git_url && /*#__PURE__*/(0,jsx_runtime.jsx)(lib.CopyToClipboard, {
+ text: git_url,
+ onCopy: function onCopy() {
+ return message/* default.success */.ZP.success('复制成功');
+ },
+ children: /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
+ title: "\u590D\u5236\u7248\u672C\u5E93\u5730\u5740",
+ className: "file-item action",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
+ className: "iconfont icon-fuzhibanbenkudizhi1"
+ }), "\u590D\u5236\u7248\u672C\u5E93\u5730\u5740"]
+ })
+ }), tab_type === 3 && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
+ className: "file-item action",
+ onClick: function onClick() {
+ onVncAction('show-clipboard-box');
+ },
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
+ className: "iconfont icon-fuzhiniantie"
+ }), "\u590D\u5236\u7C98\u8D34"]
+ }), (0,authority/* isSuperAdmins */.Ny)() && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
+ className: "file-item action",
+ href: monitoring_url || (jupyterData === null || jupyterData === void 0 ? void 0 : jupyterData.monitoring_url),
+ target: "_blank",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
+ className: "iconfont icon-jiankongfuwu2"
+ }), "\u76D1\u63A7\u670D\u52A1"]
+ }), tab_type === 4 && isLoadData && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
+ className: "file-item action",
+ onClick: getSSH,
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
+ className: "iconfont icon-congshulianjie"
+ }), "SSH\u76F4\u8FDE"]
+ }), instance_startup_type === 2 && isLoadData && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
+ className: "file-item action",
+ onClick: getRDP,
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
+ className: "iconfont icon-RDPzhilian"
+ }), "RDP\u76F4\u8FDE"]
+ })]
+ }), !!tab_type && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("h3", {
+ children: "\u5173\u5361\u914D\u7F6E\u4FE1\u606F"
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
+ className: "file-item",
+ title: task_pass ? '允许学员跳关挑战' : '不允许学员跳关挑战',
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
+ children: "\u8DF3\u5173"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ children: task_pass ? '允许' : '不允许'
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
+ className: "file-item",
+ title: test_set_permission ? '允许学员通过金币解锁查看测试集内容' : '不允许学员通过金币解锁查看测试集内容',
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
+ children: "\u6D4B\u8BD5\u96C6\u89E3\u9501"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ children: test_set_permission ? '允许' : '不允许'
+ })]
+ })]
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("h3", {
+ children: "\u5B9E\u8BAD\u57FA\u672C\u4FE1\u606F"
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ className: "file-item",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
+ children: "\u5B9E\u8BAD\u96BE\u6613\u5EA6"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ children: (jupyterData === null || jupyterData === void 0 ? void 0 : jupyterData.difficulty) || difficultyDesc[difficulty]
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ className: "file-item",
+ style: {
+ alignItems: 'flex-start'
+ },
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
+ children: "\u5B9E\u9A8C\u73AF\u5883"
+ }), unity_3d_routes ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "multi_ellipsis1",
+ children: "\u6682\u65E0"
+ }) : mirror_description && /*#__PURE__*/(0,jsx_runtime.jsx)(MarkdownModal/* default */.Z, {
+ value: [mirror_description],
+ title: "\u5B9E\u9A8C\u73AF\u5883\u8BF4\u660E",
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ title: mirror_description === null || mirror_description === void 0 ? void 0 : mirror_description.name,
+ className: "multi_ellipsis1 current",
+ children: mirror_description === null || mirror_description === void 0 ? void 0 : mirror_description.name
+ })
+ })]
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(record, {
+ ref: recordRef
+ })]
+ });
+});
+
+/***/ }),
+
+/***/ 39507:
+/*!**************************************************!*\
+ !*** ./src/pages/MoopCases/FormPanel/service.ts ***!
+ \**************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "$J": function() { return /* binding */ getMoopCase; },
+/* harmony export */ "JZ": function() { return /* binding */ removeAttachment; },
+/* harmony export */ "bN": function() { return /* binding */ updateMoopCase; },
+/* harmony export */ "jP": function() { return /* binding */ addMoopCase; },
+/* harmony export */ "rO": function() { return /* binding */ getLibraryTags; }
+/* harmony export */ });
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js */ 17061);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/asyncToGenerator.js */ 17156);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__);
+/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/utils/fetch */ 84519);
+
+
+
+function getMoopCase(id) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_2__/* .get */ .U2)("libraries/".concat(id, ".json"));
+}
+function getLibraryTags() {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_2__/* .get */ .U2)('library_tags.json');
+}
+function removeAttachment(_x) {
+ return _removeAttachment.apply(this, arguments);
+}
+function _removeAttachment() {
+ _removeAttachment = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee(id) {
+ var response;
+ return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee$(_context) {
+ while (1) switch (_context.prev = _context.next) {
+ case 0:
+ _context.next = 2;
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_2__/* .del */ .IV)("attachments/".concat(id, ".json"));
+ case 2:
+ response = _context.sent;
+ return _context.abrupt("return", response.status === 0);
+ case 4:
+ case "end":
+ return _context.stop();
+ }
+ }, _callee);
+ }));
+ return _removeAttachment.apply(this, arguments);
+}
+function addMoopCase(params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_2__/* .post */ .v_)("libraries.json", params);
+}
+function updateMoopCase(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_2__/* .put */ .gz)("libraries/".concat(id, ".json"), params);
+}
+
+/***/ }),
+
+/***/ 33508:
+/*!*************************************************************************************!*\
+ !*** ./src/pages/Shixuns/Edit/body/Environment/MarkdownModal/index.tsx + 1 modules ***!
+ \*************************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, {
+ "Z": function() { return /* binding */ Environment_MarkdownModal; }
+});
+
+// EXTERNAL MODULE: ./node_modules/antd/es/modal/style/index.js + 1 modules
+var style = __webpack_require__(35611);
+// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 7 modules
+var modal = __webpack_require__(85402);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
+var slicedToArray = __webpack_require__(27424);
+var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
+// EXTERNAL MODULE: ./node_modules/react/index.js
+var react = __webpack_require__(67294);
+;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/body/Environment/MarkdownModal/index.less?modules
+// extracted by mini-css-extract-plugin
+/* harmony default export */ var MarkdownModalmodules = ({"mirrorModal":"mirrorModal___Pi3tF","right":"right___Hot5f","title":"title___jjMKh","content":"content___BmOkD","des":"des___oGTUM","modal":"modal___yy3VB"});
+// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx + 1 modules
+var RenderHtml = __webpack_require__(12768);
+// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
+var jsx_runtime = __webpack_require__(85893);
+;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/body/Environment/MarkdownModal/index.tsx
+
+
+
+
+
+
+
+
+
+var MarkdownModal = function MarkdownModal(_ref) {
+ var title = _ref.title,
+ children = _ref.children,
+ value = _ref.value;
+ var _useState = (0,react.useState)(false),
+ _useState2 = slicedToArray_default()(_useState, 2),
+ visible = _useState2[0],
+ setVisible = _useState2[1];
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ onClick: function onClick() {
+ return setVisible(true);
+ },
+ children: children
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
+ title: title,
+ open: visible,
+ width: 1000,
+ destroyOnClose: true,
+ centered: true,
+ onCancel: function onCancel() {
+ return setVisible(false);
+ },
+ className: MarkdownModalmodules.modal,
+ footer: null,
+ closeIcon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
+ style: {
+ color: '#979797'
+ },
+ className: "iconfont icon-danchuangguanbi font18"
+ }),
+ children: [typeof value === 'string' && /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
+ value: value || ''
+ }), Object.prototype.toString.call(value) === '[object Array]' && /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
+ children: value === null || value === void 0 ? void 0 : value.map(function (e, i) {
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
+ children: e.name || e.type_name
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
+ value: e.description || ''
+ })]
+ }, i);
+ })
+ })]
+ })]
+ });
+};
+/* harmony default export */ var Environment_MarkdownModal = (MarkdownModal);
+
+/***/ }),
+
+/***/ 23024:
+/*!*********************************************************************!*\
+ !*** ./src/pages/tasks/choose-repository/test-cast-list/failer.svg ***!
+ \*********************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* unused harmony export ReactComponent */
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
+function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
+function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
+function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
+var __defProp = Object.defineProperty;
+var __getOwnPropSymbols = Object.getOwnPropertySymbols;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __propIsEnum = Object.prototype.propertyIsEnumerable;
+var __defNormalProp = function __defNormalProp(obj, key, value) {
+ return key in obj ? __defProp(obj, key, {
+ enumerable: true,
+ configurable: true,
+ writable: true,
+ value: value
+ }) : obj[key] = value;
+};
+var __spreadValues = function __spreadValues(a, b) {
+ for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
+ if (__getOwnPropSymbols) {
+ var _iterator = _createForOfIteratorHelper(__getOwnPropSymbols(b)),
+ _step;
+ try {
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
+ var prop = _step.value;
+ if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
+ }
+ } catch (err) {
+ _iterator.e(err);
+ } finally {
+ _iterator.f();
+ }
+ }
+ return a;
+};
+
+var SvgFailer = function SvgFailer(props) {
+ return /* @__PURE__ */React.createElement("svg", __spreadValues({
+ width: 36,
+ height: 36,
+ xmlns: "http://www.w3.org/2000/svg"
+ }, props), /* @__PURE__ */React.createElement("title", null, "\u7F16\u7EC4\u5907\u4EFD"), /* @__PURE__ */React.createElement("g", {
+ fill: "none",
+ fillRule: "evenodd"
+ }, /* @__PURE__ */React.createElement("circle", {
+ fill: "#D55",
+ cx: 18,
+ cy: 18,
+ r: 18
+ }), /* @__PURE__ */React.createElement("path", {
+ d: "M18 6a2.818 2.818 0 0 1 2.813 2.994l-.688 11.01a2.129 2.129 0 0 1-4.25 0l-.688-11.01A2.818 2.818 0 0 1 18 6Z",
+ fill: "#172740"
+ }), /* @__PURE__ */React.createElement("circle", {
+ fill: "#172740",
+ cx: 18,
+ cy: 26.5,
+ r: 2.5
+ })));
+};
+
+/* harmony default export */ __webpack_exports__["Z"] = ("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNENTUiIGN4PSIxOCIgY3k9IjE4IiByPSIxOCIvPjxwYXRoIGQ9Ik0xOCA2YTIuODE4IDIuODE4IDAgMCAxIDIuODEzIDIuOTk0bC0uNjg4IDExLjAxYTIuMTI5IDIuMTI5IDAgMCAxLTQuMjUgMGwtLjY4OC0xMS4wMUEyLjgxOCAyLjgxOCAwIDAgMSAxOCA2WiIgZmlsbD0iIzE3Mjc0MCIvPjxjaXJjbGUgZmlsbD0iIzE3Mjc0MCIgY3g9IjE4IiBjeT0iMjYuNSIgcj0iMi41Ii8+PC9nPjwvc3ZnPg==");
+
+/***/ }),
+
+/***/ 62888:
+/*!*******************************************************************!*\
+ !*** ./src/pages/tasks/choose-repository/test-cast-list/mark.svg ***!
+ \*******************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* unused harmony export ReactComponent */
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
+function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
+function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
+function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
+var __defProp = Object.defineProperty;
+var __getOwnPropSymbols = Object.getOwnPropertySymbols;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __propIsEnum = Object.prototype.propertyIsEnumerable;
+var __defNormalProp = function __defNormalProp(obj, key, value) {
+ return key in obj ? __defProp(obj, key, {
+ enumerable: true,
+ configurable: true,
+ writable: true,
+ value: value
+ }) : obj[key] = value;
+};
+var __spreadValues = function __spreadValues(a, b) {
+ for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
+ if (__getOwnPropSymbols) {
+ var _iterator = _createForOfIteratorHelper(__getOwnPropSymbols(b)),
+ _step;
+ try {
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
+ var prop = _step.value;
+ if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
+ }
+ } catch (err) {
+ _iterator.e(err);
+ } finally {
+ _iterator.f();
+ }
+ }
+ return a;
+};
+
+var SvgMark = function SvgMark(props) {
+ return /* @__PURE__ */React.createElement("svg", __spreadValues({
+ width: 31,
+ height: 30,
+ xmlns: "http://www.w3.org/2000/svg"
+ }, props), /* @__PURE__ */React.createElement("title", null, "\u7F16\u7EC4 7"), /* @__PURE__ */React.createElement("g", {
+ transform: "translate(2 1)",
+ fill: "none",
+ fillRule: "evenodd"
+ }, /* @__PURE__ */React.createElement("circle", {
+ stroke: "#D55",
+ strokeWidth: 2,
+ cx: 14,
+ cy: 14,
+ r: 14
+ }), /* @__PURE__ */React.createElement("path", {
+ d: "M14 5a2 2 0 0 1 2 2v8a2 2 0 1 1-4 0V7a2 2 0 0 1 2-2Z",
+ fill: "#D55"
+ }), /* @__PURE__ */React.createElement("circle", {
+ fill: "#D55",
+ cx: 14,
+ cy: 21,
+ r: 2
+ })));
+};
+
+/* harmony default export */ __webpack_exports__["Z"] = ("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMiAxKSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIHN0cm9rZT0iI0Q1NSIgc3Ryb2tlLXdpZHRoPSIyIiBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiLz48cGF0aCBkPSJNMTQgNWEyIDIgMCAwIDEgMiAydjhhMiAyIDAgMSAxLTQgMFY3YTIgMiAwIDAgMSAyLTJaIiBmaWxsPSIjRDU1Ii8+PGNpcmNsZSBmaWxsPSIjRDU1IiBjeD0iMTQiIGN5PSIyMSIgcj0iMiIvPjwvZz48L3N2Zz4=");
+
+/***/ }),
+
+/***/ 42762:
+/*!**********************************************************************!*\
+ !*** ./src/pages/tasks/choose-repository/test-cast-list/success.svg ***!
+ \**********************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* unused harmony export ReactComponent */
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
+function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
+function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
+function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
+var __defProp = Object.defineProperty;
+var __getOwnPropSymbols = Object.getOwnPropertySymbols;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __propIsEnum = Object.prototype.propertyIsEnumerable;
+var __defNormalProp = function __defNormalProp(obj, key, value) {
+ return key in obj ? __defProp(obj, key, {
+ enumerable: true,
+ configurable: true,
+ writable: true,
+ value: value
+ }) : obj[key] = value;
+};
+var __spreadValues = function __spreadValues(a, b) {
+ for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
+ if (__getOwnPropSymbols) {
+ var _iterator = _createForOfIteratorHelper(__getOwnPropSymbols(b)),
+ _step;
+ try {
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
+ var prop = _step.value;
+ if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
+ }
+ } catch (err) {
+ _iterator.e(err);
+ } finally {
+ _iterator.f();
+ }
+ }
+ return a;
+};
+
+var SvgSuccess = function SvgSuccess(props) {
+ return /* @__PURE__ */React.createElement("svg", __spreadValues({
+ width: 36,
+ height: 36,
+ xmlns: "http://www.w3.org/2000/svg"
+ }, props), /* @__PURE__ */React.createElement("title", null, "\u7F16\u7EC4"), /* @__PURE__ */React.createElement("g", {
+ fill: "none",
+ fillRule: "evenodd"
+ }, /* @__PURE__ */React.createElement("circle", {
+ fill: "#19CB70",
+ cx: 18,
+ cy: 18,
+ r: 18
+ }), /* @__PURE__ */React.createElement("path", {
+ stroke: "#172740",
+ strokeWidth: 4,
+ strokeLinecap: "round",
+ strokeLinejoin: "round",
+ d: "M10 18.85 15.274 24 26 14"
+ })));
+};
+
+/* harmony default export */ __webpack_exports__["Z"] = ("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiMxOUNCNzAiIGN4PSIxOCIgY3k9IjE4IiByPSIxOCIvPjxwYXRoIHN0cm9rZT0iIzE3Mjc0MCIgc3Ryb2tlLXdpZHRoPSI0IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGQ9Ik0xMCAxOC44NSAxNS4yNzQgMjQgMjYgMTQiLz48L2c+PC9zdmc+");
+
+/***/ }),
+
+/***/ 39132:
+/*!************************************************************!*\
+ !*** ./src/components/ui-customization/reset.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___vG4eV","flex_space_between":"flex_space_between___qVVxe","flex_box_vertical_center":"flex_box_vertical_center___P8Z8s","flex_box_center_end":"flex_box_center_end___VMme3","flex_box_column":"flex_box_column___VMHwm","CustomCss":"CustomCss___fWNtn","CustomTipsModalCss":"CustomTipsModalCss___MmFkT","dropdownmenus":"dropdownmenus___oVzoj","popupClassNames":"popupClassNames___OcZq7","selectdown":"selectdown___mmcA8"});
+
+/***/ }),
+
+/***/ 12867:
+/*!****************************************************!*\
+ !*** ./src/components/tpi-code-setting/index.less ***!
+ \****************************************************/
+/***/ (function() {
+
+// extracted by mini-css-extract-plugin
+
+
+/***/ }),
+
+/***/ 21978:
+/*!********************************************!*\
+ !*** ./src/pages/tasks/resize-enlarge.png ***!
+ \********************************************/
+/***/ (function(module) {
+
+module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAACgCAYAAAB+HS7YAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjczMUZFNjhCMDE3NzExRUJCOEU5RDg5RTZBOTI5QTU3IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjczMUZFNjhDMDE3NzExRUJCOEU5RDg5RTZBOTI5QTU3Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NzMxRkU2ODkwMTc3MTFFQkI4RTlEODlFNkE5MjlBNTciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NzMxRkU2OEEwMTc3MTFFQkI4RTlEODlFNkE5MjlBNTciLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7zBaLcAAACAElEQVR42uzdzyvDcRzH8ffsZiVc/IjbkOTuShN/gXIgYi5y2AlpFBL/AAdLiXBgBwfUxplmyU2tRK4sTey0+H6+RbKD7Gtfb/V817t963t59Nnn9f58+7aap6LO/yq6KmN13OoJq1MehcD3erS6rUT0VrnVC5qBpgLagWXagQIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAABUCD6Lbkr5L2W2uv9bS3LR4vd6iAb/9BaaBfa7K+oa8+0exEwmOheT5+UXnV9zd2SEHeztSU12ldw+2tjRLbH/X/lQbktqaansluwLtelPs85XKZmRFggN9eseMSbVJ9+Js2HHCizoHRwb7ZWN12V5VtYPaacJdOUmcJNy1o67QhLt6FheScNcfFkyqmxr9eoGHsWMZD8/qBCYvLmV4NCS5XE4f8PrmVnoHRySbzeoLyf1DWnr6huxPdWPGrJhZObOC6ga12Wtmz5m9p/Kom5yZt1Or8mFhbWNLIuubOh+3fjrrXAUWMutcAxY661wBOpl1RQc6nXVFBf7GrHMEPEskP65PE+d5901anc46R68+/rp4/QYQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAP8dMKMdGNcMNH9eMaUR+GR11Oo2q6/eBBgA/5+hicfO9/sAAAAASUVORK5CYII=";
+
+/***/ }),
+
+/***/ 52787:
+/*!******************************************!*\
+ !*** ./src/pages/tasks/resize-small.png ***!
+ \******************************************/
+/***/ (function(module) {
+
+module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAACgCAYAAAB+HS7YAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjc0MDQ0OTA3MDE3NzExRUJCNjY1QzBDMDY3NUI5QTQ3IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjc0MDQ0OTA4MDE3NzExRUJCNjY1QzBDMDY3NUI5QTQ3Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NzQwNDQ5MDUwMTc3MTFFQkI2NjVDMEMwNjc1QjlBNDciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NzQwNDQ5MDYwMTc3MTFFQkI2NjVDMEMwNjc1QjlBNDciLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4CEd39AAACAklEQVR42uzYvyuFURjA8Yf7TpSw+BHbvSTZrXTFX6AMRLiLySSE8ismg8FAIsKAwcCA/eqSbEqJrEgMd7pxzi3iUgbn8KTvU0/37b7Lp/Oe5+k5JygoC4uJiMkpk1GTeaIoApOVJuMm80VhZJuc1Ip7BUZFcWRr23NfAQUgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQL8FWAoFJLpseFP/+9ur8v9zUU67fN3kVVQFn52jcvNzZH52RlpaqiXwvLIh3cW9j4y32dG4BpXUlwkG0vzUlNdpe8TW9T+zqYznFNgY7ROdrc2pLSkWF+RdLe3yurCXHrvuY7gp5U6MTIgsY42b20mcFGpPiPQUKlO96CPSnUG9FWpToA+K9UJsLIinK5atcNC39Co7O0f6gWmUinp6umVk9MzveNWMpmUlo6YXF5d650Hb+/upbm1M/2rdmC1K2hX0q6o2ona7kW7J+3eVDvy26ruHxnXfSZZWF6VxZU13Ycmnz3SCdBnj3Q28vvqkU4PTT56pPODu+se6eVmwWWP9Hb1YavaVndmxBPHb89HiZO/ufpQWyQAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECPD/AB+1Aw+0AwdNPmgGnpusNblt8kkb8EWAAQAq85VNhqprywAAAABJRU5ErkJggg==";
+
+/***/ })
+
+}]);
\ No newline at end of file
diff --git a/34131.async.js b/34131.async.js
index 7e59cf82ad..4d0c5bbd43 100644
--- a/34131.async.js
+++ b/34131.async.js
@@ -1,19 +1,6 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[34131,22569],{
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
-/***/ }),
-
/***/ 87588:
/*!******************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/ExclamationCircleOutlined.js ***!
@@ -1198,33 +1185,6 @@ EyeOutlined_EyeOutlined.displayName = 'EyeOutlined';
/***/ }),
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
-/***/ }),
-
/***/ 50132:
/*!**********************************************!*\
!*** ./node_modules/rc-checkbox/es/index.js ***!
diff --git a/34472.async.js b/34472.async.js
index 36002b935f..13dd860b18 100644
--- a/34472.async.js
+++ b/34472.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[34472,30589],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[34472,30589,36036],{
/***/ 66023:
/*!*******************************************************************!*\
diff --git a/69559.async.js b/36036.async.js
similarity index 94%
rename from 69559.async.js
rename to 36036.async.js
index 225be387ff..6da1e4629d 100644
--- a/69559.async.js
+++ b/36036.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[69559],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[36036],{
/***/ 66023:
/*!*******************************************************************!*\
@@ -12,19 +12,6 @@ var DownOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 89
/* harmony default export */ __webpack_exports__["Z"] = (DownOutlined);
-/***/ }),
-
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
/***/ }),
/***/ 58492:
@@ -756,33 +743,6 @@ DownOutlined.displayName = 'DownOutlined';
/***/ }),
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
-/***/ }),
-
/***/ 34243:
/*!**********************************************************!*\
!*** ./node_modules/rc-overflow/es/index.js + 4 modules ***!
diff --git a/30713.async.js b/38051.async.js
similarity index 91%
rename from 30713.async.js
rename to 38051.async.js
index 64988e2b4e..5e514418c1 100644
--- a/30713.async.js
+++ b/38051.async.js
@@ -1,18 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[30713],{
-
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
-/***/ }),
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[38051],{
/***/ 98787:
/*!**********************************************!*\
@@ -717,33 +704,6 @@ if (false) {}
/***/ }),
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
-/***/ }),
-
/***/ 43159:
/*!**************************************************!*\
!*** ./node_modules/rc-tooltip/es/placements.js ***!
diff --git a/32827.async.js b/38894.async.js
similarity index 75%
rename from 32827.async.js
rename to 38894.async.js
index bfdf1d518b..6d9f8dab46 100644
--- a/32827.async.js
+++ b/38894.async.js
@@ -1,4 +1,4 @@
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[32827],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[38894],{
/***/ 32857:
/*!********************************************************************!*\
@@ -12,20 +12,6 @@ var CheckOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 8
/* harmony default export */ __webpack_exports__["Z"] = (CheckOutlined);
-/***/ }),
-
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-"use strict";
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
/***/ }),
/***/ 15360:
@@ -217,6 +203,305 @@ function getPlacements(config) {
/***/ }),
+/***/ 32808:
+/*!************************************************************!*\
+ !*** ./node_modules/antd/es/checkbox/index.js + 2 modules ***!
+ \************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, {
+ "Z": function() { return /* binding */ es_checkbox; }
+});
+
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
+var defineProperty = __webpack_require__(4942);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
+var esm_extends = __webpack_require__(87462);
+// EXTERNAL MODULE: ./node_modules/classnames/index.js
+var classnames = __webpack_require__(94184);
+var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
+// EXTERNAL MODULE: ./node_modules/rc-checkbox/es/index.js
+var es = __webpack_require__(50132);
+// EXTERNAL MODULE: ./node_modules/react/index.js
+var react = __webpack_require__(67294);
+// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
+var config_provider_context = __webpack_require__(53124);
+// EXTERNAL MODULE: ./node_modules/antd/es/form/context.js
+var context = __webpack_require__(65223);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
+var toConsumableArray = __webpack_require__(74902);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
+var slicedToArray = __webpack_require__(97685);
+// EXTERNAL MODULE: ./node_modules/rc-util/es/omit.js
+var omit = __webpack_require__(98423);
+;// CONCATENATED MODULE: ./node_modules/antd/es/checkbox/Group.js
+
+
+
+
+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;
+};
+
+
+
+
+
+var GroupContext = /*#__PURE__*/react.createContext(null);
+var InternalCheckboxGroup = function InternalCheckboxGroup(_a, ref) {
+ var defaultValue = _a.defaultValue,
+ children = _a.children,
+ _a$options = _a.options,
+ options = _a$options === void 0 ? [] : _a$options,
+ customizePrefixCls = _a.prefixCls,
+ className = _a.className,
+ style = _a.style,
+ onChange = _a.onChange,
+ restProps = __rest(_a, ["defaultValue", "children", "options", "prefixCls", "className", "style", "onChange"]);
+ var _React$useContext = react.useContext(config_provider_context/* ConfigContext */.E_),
+ getPrefixCls = _React$useContext.getPrefixCls,
+ direction = _React$useContext.direction;
+ var _React$useState = react.useState(restProps.value || defaultValue || []),
+ _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
+ value = _React$useState2[0],
+ setValue = _React$useState2[1];
+ var _React$useState3 = react.useState([]),
+ _React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2),
+ registeredValues = _React$useState4[0],
+ setRegisteredValues = _React$useState4[1];
+ react.useEffect(function () {
+ if ('value' in restProps) {
+ setValue(restProps.value || []);
+ }
+ }, [restProps.value]);
+ var getOptions = function getOptions() {
+ return options.map(function (option) {
+ if (typeof option === 'string' || typeof option === 'number') {
+ return {
+ label: option,
+ value: option
+ };
+ }
+ return option;
+ });
+ };
+ var cancelValue = function cancelValue(val) {
+ setRegisteredValues(function (prevValues) {
+ return prevValues.filter(function (v) {
+ return v !== val;
+ });
+ });
+ };
+ var registerValue = function registerValue(val) {
+ setRegisteredValues(function (prevValues) {
+ return [].concat((0,toConsumableArray/* default */.Z)(prevValues), [val]);
+ });
+ };
+ var toggleOption = function toggleOption(option) {
+ var optionIndex = value.indexOf(option.value);
+ var newValue = (0,toConsumableArray/* default */.Z)(value);
+ if (optionIndex === -1) {
+ newValue.push(option.value);
+ } else {
+ newValue.splice(optionIndex, 1);
+ }
+ if (!('value' in restProps)) {
+ setValue(newValue);
+ }
+ var opts = getOptions();
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue.filter(function (val) {
+ return registeredValues.includes(val);
+ }).sort(function (a, b) {
+ var indexA = opts.findIndex(function (opt) {
+ return opt.value === a;
+ });
+ var indexB = opts.findIndex(function (opt) {
+ return opt.value === b;
+ });
+ return indexA - indexB;
+ }));
+ };
+ var prefixCls = getPrefixCls('checkbox', customizePrefixCls);
+ var groupPrefixCls = "".concat(prefixCls, "-group");
+ var domProps = (0,omit/* default */.Z)(restProps, ['value', 'disabled']);
+ if (options && options.length > 0) {
+ children = getOptions().map(function (option) {
+ return /*#__PURE__*/react.createElement(checkbox_Checkbox, {
+ prefixCls: prefixCls,
+ key: option.value.toString(),
+ disabled: 'disabled' in option ? option.disabled : restProps.disabled,
+ value: option.value,
+ checked: value.includes(option.value),
+ onChange: option.onChange,
+ className: "".concat(groupPrefixCls, "-item"),
+ style: option.style
+ }, option.label);
+ });
+ }
+ // eslint-disable-next-line react/jsx-no-constructed-context-values
+ var context = {
+ toggleOption: toggleOption,
+ value: value,
+ disabled: restProps.disabled,
+ name: restProps.name,
+ // https://github.com/ant-design/ant-design/issues/16376
+ registerValue: registerValue,
+ cancelValue: cancelValue
+ };
+ var classString = classnames_default()(groupPrefixCls, (0,defineProperty/* default */.Z)({}, "".concat(groupPrefixCls, "-rtl"), direction === 'rtl'), className);
+ return /*#__PURE__*/react.createElement("div", (0,esm_extends/* default */.Z)({
+ className: classString,
+ style: style
+ }, domProps, {
+ ref: ref
+ }), /*#__PURE__*/react.createElement(GroupContext.Provider, {
+ value: context
+ }, children));
+};
+var CheckboxGroup = /*#__PURE__*/react.forwardRef(InternalCheckboxGroup);
+/* harmony default export */ var Group = (/*#__PURE__*/react.memo(CheckboxGroup));
+// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/DisabledContext.js
+var DisabledContext = __webpack_require__(98866);
+;// CONCATENATED MODULE: ./node_modules/antd/es/checkbox/Checkbox.js
+
+
+var Checkbox_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;
+};
+
+
+
+
+
+
+
+
+
+var InternalCheckbox = function InternalCheckbox(_a, ref) {
+ var _classNames;
+ var _b;
+ var customizePrefixCls = _a.prefixCls,
+ className = _a.className,
+ children = _a.children,
+ _a$indeterminate = _a.indeterminate,
+ indeterminate = _a$indeterminate === void 0 ? false : _a$indeterminate,
+ style = _a.style,
+ onMouseEnter = _a.onMouseEnter,
+ onMouseLeave = _a.onMouseLeave,
+ _a$skipGroup = _a.skipGroup,
+ skipGroup = _a$skipGroup === void 0 ? false : _a$skipGroup,
+ disabled = _a.disabled,
+ restProps = Checkbox_rest(_a, ["prefixCls", "className", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]);
+ var _React$useContext = react.useContext(config_provider_context/* ConfigContext */.E_),
+ getPrefixCls = _React$useContext.getPrefixCls,
+ direction = _React$useContext.direction;
+ var checkboxGroup = react.useContext(GroupContext);
+ var _useContext = (0,react.useContext)(context/* FormItemInputContext */.aM),
+ isFormItemInput = _useContext.isFormItemInput;
+ var contextDisabled = (0,react.useContext)(DisabledContext/* default */.Z);
+ var mergedDisabled = (_b = (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.disabled) || disabled) !== null && _b !== void 0 ? _b : contextDisabled;
+ var prevValue = react.useRef(restProps.value);
+ react.useEffect(function () {
+ checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value);
+ false ? 0 : void 0;
+ }, []);
+ react.useEffect(function () {
+ if (skipGroup) {
+ return;
+ }
+ if (restProps.value !== prevValue.current) {
+ checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(prevValue.current);
+ checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value);
+ prevValue.current = restProps.value;
+ }
+ return function () {
+ return checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(restProps.value);
+ };
+ }, [restProps.value]);
+ var prefixCls = getPrefixCls('checkbox', customizePrefixCls);
+ var checkboxProps = (0,esm_extends/* default */.Z)({}, restProps);
+ if (checkboxGroup && !skipGroup) {
+ checkboxProps.onChange = function () {
+ if (restProps.onChange) {
+ restProps.onChange.apply(restProps, arguments);
+ }
+ if (checkboxGroup.toggleOption) {
+ checkboxGroup.toggleOption({
+ label: children,
+ value: restProps.value
+ });
+ }
+ };
+ checkboxProps.name = checkboxGroup.name;
+ checkboxProps.checked = checkboxGroup.value.includes(restProps.value);
+ }
+ var classString = classnames_default()((_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-wrapper"), true), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-wrapper-checked"), checkboxProps.checked), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-wrapper-disabled"), mergedDisabled), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-wrapper-in-form-item"), isFormItemInput), _classNames), className);
+ var checkboxClass = classnames_default()((0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-indeterminate"), indeterminate));
+ var ariaChecked = indeterminate ? 'mixed' : undefined;
+ return (
+ /*#__PURE__*/
+ // eslint-disable-next-line jsx-a11y/label-has-associated-control
+ react.createElement("label", {
+ className: classString,
+ style: style,
+ onMouseEnter: onMouseEnter,
+ onMouseLeave: onMouseLeave
+ }, /*#__PURE__*/react.createElement(es/* default */.Z, (0,esm_extends/* default */.Z)({
+ "aria-checked": ariaChecked
+ }, checkboxProps, {
+ prefixCls: prefixCls,
+ className: checkboxClass,
+ disabled: mergedDisabled,
+ ref: ref
+ })), children !== undefined && /*#__PURE__*/react.createElement("span", null, children))
+ );
+};
+var Checkbox = /*#__PURE__*/react.forwardRef(InternalCheckbox);
+if (false) {}
+/* harmony default export */ var checkbox_Checkbox = (Checkbox);
+;// CONCATENATED MODULE: ./node_modules/antd/es/checkbox/index.js
+
+
+var es_checkbox_Checkbox = checkbox_Checkbox;
+es_checkbox_Checkbox.Group = Group;
+es_checkbox_Checkbox.__ANT_CHECKBOX = true;
+/* harmony default export */ var es_checkbox = (es_checkbox_Checkbox);
+
+/***/ }),
+
+/***/ 82000:
+/*!******************************************************************!*\
+ !*** ./node_modules/antd/es/checkbox/style/index.js + 1 modules ***!
+ \******************************************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
+
+"use strict";
+
+// EXTERNAL MODULE: ./node_modules/antd/es/style/default.less
+var style_default = __webpack_require__(43146);
+;// CONCATENATED MODULE: ./node_modules/antd/es/checkbox/style/index.less
+// extracted by mini-css-extract-plugin
+
+;// CONCATENATED MODULE: ./node_modules/antd/es/checkbox/style/index.js
+
+
+// deps-lint-skip: form
+
+/***/ }),
+
/***/ 75008:
/*!*********************************************************!*\
!*** ./node_modules/antd/es/input/index.js + 5 modules ***!
@@ -1053,34 +1338,6 @@ EyeOutlined_EyeOutlined.displayName = 'EyeOutlined';
/***/ }),
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
-/***/ }),
-
/***/ 1469:
/*!****************************************!*\
!*** ./node_modules/lodash/isArray.js ***!
@@ -1115,6 +1372,196 @@ var isArray = Array.isArray;
module.exports = isArray;
+/***/ }),
+
+/***/ 50132:
+/*!**********************************************!*\
+ !*** ./node_modules/rc-checkbox/es/index.js ***!
+ \**********************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ 87462);
+/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ 4942);
+/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ 45987);
+/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
+/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ 15671);
+/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ 43144);
+/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ 60136);
+/* harmony import */ var _babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createSuper */ 51630);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ 94184);
+/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
+
+
+
+
+
+
+
+
+// eslint-disable-next-line import/no-extraneous-dependencies
+
+
+
+var Checkbox = /*#__PURE__*/function (_Component) {
+ (0,_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(Checkbox, _Component);
+
+ var _super = (0,_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(Checkbox);
+
+ function Checkbox(props) {
+ var _this;
+
+ (0,_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, Checkbox);
+
+ _this = _super.call(this, props);
+
+ _this.handleChange = function (e) {
+ var _this$props = _this.props,
+ disabled = _this$props.disabled,
+ onChange = _this$props.onChange;
+
+ if (disabled) {
+ return;
+ }
+
+ if (!('checked' in _this.props)) {
+ _this.setState({
+ checked: e.target.checked
+ });
+ }
+
+ if (onChange) {
+ onChange({
+ target: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)({}, _this.props), {}, {
+ checked: e.target.checked
+ }),
+ stopPropagation: function stopPropagation() {
+ e.stopPropagation();
+ },
+ preventDefault: function preventDefault() {
+ e.preventDefault();
+ },
+ nativeEvent: e.nativeEvent
+ });
+ }
+ };
+
+ _this.saveInput = function (node) {
+ _this.input = node;
+ };
+
+ var checked = 'checked' in props ? props.checked : props.defaultChecked;
+ _this.state = {
+ checked: checked
+ };
+ return _this;
+ }
+
+ (0,_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(Checkbox, [{
+ key: "focus",
+ value: function focus() {
+ this.input.focus();
+ }
+ }, {
+ key: "blur",
+ value: function blur() {
+ this.input.blur();
+ }
+ }, {
+ key: "render",
+ value: function render() {
+ var _classNames;
+
+ var _this$props2 = this.props,
+ prefixCls = _this$props2.prefixCls,
+ className = _this$props2.className,
+ style = _this$props2.style,
+ name = _this$props2.name,
+ id = _this$props2.id,
+ type = _this$props2.type,
+ disabled = _this$props2.disabled,
+ readOnly = _this$props2.readOnly,
+ tabIndex = _this$props2.tabIndex,
+ onClick = _this$props2.onClick,
+ onFocus = _this$props2.onFocus,
+ onBlur = _this$props2.onBlur,
+ onKeyDown = _this$props2.onKeyDown,
+ onKeyPress = _this$props2.onKeyPress,
+ onKeyUp = _this$props2.onKeyUp,
+ autoFocus = _this$props2.autoFocus,
+ value = _this$props2.value,
+ required = _this$props2.required,
+ others = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(_this$props2, ["prefixCls", "className", "style", "name", "id", "type", "disabled", "readOnly", "tabIndex", "onClick", "onFocus", "onBlur", "onKeyDown", "onKeyPress", "onKeyUp", "autoFocus", "value", "required"]);
+
+ var globalProps = Object.keys(others).reduce(function (prev, key) {
+ if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {
+ // eslint-disable-next-line no-param-reassign
+ prev[key] = others[key];
+ }
+
+ return prev;
+ }, {});
+ var checked = this.state.checked;
+ var classString = classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls, className, (_classNames = {}, (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-checked"), checked), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-disabled"), disabled), _classNames));
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", {
+ className: classString,
+ style: style
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)({
+ name: name,
+ id: id,
+ type: type,
+ required: required,
+ readOnly: readOnly,
+ disabled: disabled,
+ tabIndex: tabIndex,
+ className: "".concat(prefixCls, "-input"),
+ checked: !!checked,
+ onClick: onClick,
+ onFocus: onFocus,
+ onBlur: onBlur,
+ onKeyUp: onKeyUp,
+ onKeyDown: onKeyDown,
+ onKeyPress: onKeyPress,
+ onChange: this.handleChange,
+ autoFocus: autoFocus,
+ ref: this.saveInput,
+ value: value
+ }, globalProps)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", {
+ className: "".concat(prefixCls, "-inner")
+ }));
+ }
+ }], [{
+ key: "getDerivedStateFromProps",
+ value: function getDerivedStateFromProps(props, state) {
+ if ('checked' in props) {
+ return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)({}, state), {}, {
+ checked: props.checked
+ });
+ }
+
+ return null;
+ }
+ }]);
+
+ return Checkbox;
+}(react__WEBPACK_IMPORTED_MODULE_0__.Component);
+
+Checkbox.defaultProps = {
+ prefixCls: 'rc-checkbox',
+ className: '',
+ style: {},
+ type: 'checkbox',
+ defaultChecked: false,
+ onFocus: function onFocus() {},
+ onBlur: function onBlur() {},
+ onChange: function onChange() {},
+ onKeyDown: function onKeyDown() {},
+ onKeyPress: function onKeyPress() {},
+ onKeyUp: function onKeyUp() {}
+};
+/* harmony default export */ __webpack_exports__["Z"] = (Checkbox);
+
/***/ }),
/***/ 43159:
diff --git a/38894.chunk.css b/38894.chunk.css
new file mode 100644
index 0000000000..c763be6c79
--- /dev/null
+++ b/38894.chunk.css
@@ -0,0 +1,853 @@
+/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
+ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./node_modules/antd/es/drawer/style/index.less ***!
+ \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
+/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
+/* stylelint-disable no-duplicate-selectors */
+/* stylelint-disable */
+/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
+.ant-drawer {
+ position: fixed;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ z-index: 1000;
+ pointer-events: none;
+}
+.ant-drawer-inline {
+ position: absolute;
+}
+.ant-drawer-mask {
+ position: absolute;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ z-index: 1000;
+ background: rgba(0, 0, 0, 0.45);
+ pointer-events: auto;
+}
+.ant-drawer-content-wrapper {
+ position: absolute;
+ z-index: 1000;
+ transition: all 0.3s;
+}
+.ant-drawer-content-wrapper-hidden {
+ display: none;
+}
+.ant-drawer-left > .ant-drawer-content-wrapper {
+ top: 0;
+ bottom: 0;
+ left: 0;
+ box-shadow: 6px 0 16px -8px rgba(0, 0, 0, 0.08), 9px 0 28px 0 rgba(0, 0, 0, 0.05), 12px 0 48px 16px rgba(0, 0, 0, 0.03);
+}
+.ant-drawer-right > .ant-drawer-content-wrapper {
+ top: 0;
+ right: 0;
+ bottom: 0;
+ box-shadow: -6px 0 16px -8px rgba(0, 0, 0, 0.08), -9px 0 28px 0 rgba(0, 0, 0, 0.05), -12px 0 48px 16px rgba(0, 0, 0, 0.03);
+}
+.ant-drawer-top > .ant-drawer-content-wrapper {
+ top: 0;
+ right: 0;
+ left: 0;
+ box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.08), 0 9px 28px 0 rgba(0, 0, 0, 0.05), 0 12px 48px 16px rgba(0, 0, 0, 0.03);
+}
+.ant-drawer-bottom > .ant-drawer-content-wrapper {
+ right: 0;
+ bottom: 0;
+ left: 0;
+ box-shadow: 0 -6px 16px -8px rgba(0, 0, 0, 0.08), 0 -9px 28px 0 rgba(0, 0, 0, 0.05), 0 -12px 48px 16px rgba(0, 0, 0, 0.03);
+}
+.ant-drawer-content {
+ width: 100%;
+ height: 100%;
+ overflow: auto;
+ background: #fff;
+ pointer-events: auto;
+}
+.ant-drawer-wrapper-body {
+ display: flex;
+ flex-direction: column;
+ width: 100%;
+ height: 100%;
+}
+.ant-drawer-header {
+ display: flex;
+ flex: 0 1;
+ align-items: center;
+ padding: 11px 16px;
+ font-size: 14px;
+ line-height: 22px;
+ border-bottom: 1px solid #f0f0f0;
+}
+.ant-drawer-header-title {
+ display: flex;
+ flex: 1 1;
+ align-items: center;
+ min-width: 0;
+ min-height: 0;
+}
+.ant-drawer-extra {
+ flex: none;
+}
+.ant-drawer-close {
+ display: inline-block;
+ margin-right: 12px;
+ color: rgba(0, 0, 0, 0.45);
+ font-weight: 700;
+ font-size: 14px;
+ font-style: normal;
+ line-height: 1;
+ text-align: center;
+ text-transform: none;
+ text-decoration: none;
+ background: transparent;
+ border: 0;
+ outline: 0;
+ cursor: pointer;
+ transition: color 0.3s;
+ text-rendering: auto;
+}
+.ant-drawer-close:focus,
+.ant-drawer-close:hover {
+ color: rgba(0, 0, 0, 0.75);
+ text-decoration: none;
+}
+.ant-drawer-title {
+ flex: 1 1;
+ margin: 0;
+ color: rgba(0, 0, 0, 0.85);
+ font-weight: 500;
+ font-size: 14px;
+ line-height: 22px;
+}
+.ant-drawer-body {
+ flex: 1 1;
+ min-width: 0;
+ min-height: 0;
+ padding: 16px;
+ overflow: auto;
+}
+.ant-drawer-footer {
+ flex-shrink: 0;
+ padding: 8px 8px;
+ border-top: 1px solid #f0f0f0;
+}
+.panel-motion-enter-start,
+.panel-motion-appear-start,
+.panel-motion-leave-start {
+ transition: none;
+}
+.panel-motion-enter-active,
+.panel-motion-appear-active,
+.panel-motion-leave-active {
+ transition: all 0.3s;
+}
+.ant-drawer-mask-motion-enter-active,
+.ant-drawer-mask-motion-appear-active,
+.ant-drawer-mask-motion-leave-active {
+ transition: all 0.3s;
+}
+.ant-drawer-mask-motion-enter,
+.ant-drawer-mask-motion-appear {
+ opacity: 0;
+}
+.ant-drawer-mask-motion-enter-active,
+.ant-drawer-mask-motion-appear-active {
+ opacity: 1;
+}
+.ant-drawer-mask-motion-leave {
+ opacity: 1;
+}
+.ant-drawer-mask-motion-leave-active {
+ opacity: 0;
+}
+.ant-drawer-panel-motion-left-enter-start,
+.ant-drawer-panel-motion-left-appear-start,
+.ant-drawer-panel-motion-left-leave-start {
+ transition: none;
+}
+.ant-drawer-panel-motion-left-enter-active,
+.ant-drawer-panel-motion-left-appear-active,
+.ant-drawer-panel-motion-left-leave-active {
+ transition: all 0.3s;
+}
+.ant-drawer-panel-motion-left-enter-start,
+.ant-drawer-panel-motion-left-appear-start {
+ transform: translateX(-100%) !important;
+}
+.ant-drawer-panel-motion-left-enter-active,
+.ant-drawer-panel-motion-left-appear-active {
+ transform: translateX(0);
+}
+.ant-drawer-panel-motion-left-leave {
+ transform: translateX(0);
+}
+.ant-drawer-panel-motion-left-leave-active {
+ transform: translateX(-100%);
+}
+.ant-drawer-panel-motion-right-enter-start,
+.ant-drawer-panel-motion-right-appear-start,
+.ant-drawer-panel-motion-right-leave-start {
+ transition: none;
+}
+.ant-drawer-panel-motion-right-enter-active,
+.ant-drawer-panel-motion-right-appear-active,
+.ant-drawer-panel-motion-right-leave-active {
+ transition: all 0.3s;
+}
+.ant-drawer-panel-motion-right-enter-start,
+.ant-drawer-panel-motion-right-appear-start {
+ transform: translateX(100%) !important;
+}
+.ant-drawer-panel-motion-right-enter-active,
+.ant-drawer-panel-motion-right-appear-active {
+ transform: translateX(0);
+}
+.ant-drawer-panel-motion-right-leave {
+ transform: translateX(0);
+}
+.ant-drawer-panel-motion-right-leave-active {
+ transform: translateX(100%);
+}
+.ant-drawer-panel-motion-top-enter-start,
+.ant-drawer-panel-motion-top-appear-start,
+.ant-drawer-panel-motion-top-leave-start {
+ transition: none;
+}
+.ant-drawer-panel-motion-top-enter-active,
+.ant-drawer-panel-motion-top-appear-active,
+.ant-drawer-panel-motion-top-leave-active {
+ transition: all 0.3s;
+}
+.ant-drawer-panel-motion-top-enter-start,
+.ant-drawer-panel-motion-top-appear-start {
+ transform: translateY(-100%) !important;
+}
+.ant-drawer-panel-motion-top-enter-active,
+.ant-drawer-panel-motion-top-appear-active {
+ transform: translateY(0);
+}
+.ant-drawer-panel-motion-top-leave {
+ transform: translateY(0);
+}
+.ant-drawer-panel-motion-top-leave-active {
+ transform: translateY(-100%);
+}
+.ant-drawer-panel-motion-bottom-enter-start,
+.ant-drawer-panel-motion-bottom-appear-start,
+.ant-drawer-panel-motion-bottom-leave-start {
+ transition: none;
+}
+.ant-drawer-panel-motion-bottom-enter-active,
+.ant-drawer-panel-motion-bottom-appear-active,
+.ant-drawer-panel-motion-bottom-leave-active {
+ transition: all 0.3s;
+}
+.ant-drawer-panel-motion-bottom-enter-start,
+.ant-drawer-panel-motion-bottom-appear-start {
+ transform: translateY(100%) !important;
+}
+.ant-drawer-panel-motion-bottom-enter-active,
+.ant-drawer-panel-motion-bottom-appear-active {
+ transform: translateY(0);
+}
+.ant-drawer-panel-motion-bottom-leave {
+ transform: translateY(0);
+}
+.ant-drawer-panel-motion-bottom-leave-active {
+ transform: translateY(100%);
+}
+.ant-drawer-rtl {
+ direction: rtl;
+}
+.ant-drawer-rtl .ant-drawer-close {
+ margin-right: 0;
+ margin-left: 12px;
+}
+/* stylelint-disable no-duplicate-selectors */
+/* stylelint-disable */
+/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
+
+/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
+ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./node_modules/antd/es/checkbox/style/index.less ***!
+ \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
+/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
+/* stylelint-disable no-duplicate-selectors */
+/* stylelint-disable */
+/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
+@keyframes antCheckboxEffect {
+ 0% {
+ transform: scale(1);
+ opacity: 0.5;
+ }
+ 100% {
+ transform: scale(1.6);
+ opacity: 0;
+ }
+}
+.ant-checkbox {
+ box-sizing: border-box;
+ margin: 0;
+ padding: 0;
+ color: rgba(0, 0, 0, 0.85);
+ font-size: 12px;
+ font-variant: tabular-nums;
+ line-height: 1.66667;
+ list-style: none;
+ font-feature-settings: tnum, "tnum";
+ position: relative;
+ top: 0.2em;
+ line-height: 1;
+ white-space: nowrap;
+ outline: none;
+ cursor: pointer;
+}
+.ant-checkbox-wrapper:hover .ant-checkbox-inner,
+.ant-checkbox:hover .ant-checkbox-inner,
+.ant-checkbox-input:focus + .ant-checkbox-inner {
+ border-color: #3061D0;
+}
+.ant-checkbox-checked::after {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ border: 1px solid #3061D0;
+ border-radius: 2px;
+ visibility: hidden;
+ animation: antCheckboxEffect 0.36s ease-in-out;
+ animation-fill-mode: backwards;
+ content: '';
+}
+.ant-checkbox:hover::after,
+.ant-checkbox-wrapper:hover .ant-checkbox::after {
+ visibility: visible;
+}
+.ant-checkbox-inner {
+ position: relative;
+ top: 0;
+ left: 0;
+ display: block;
+ width: 14px;
+ height: 14px;
+ direction: ltr;
+ background-color: #fff;
+ border: 1px solid #d9d9d9;
+ border-radius: 2px;
+ border-collapse: separate;
+ transition: all 0.3s;
+}
+.ant-checkbox-inner::after {
+ position: absolute;
+ top: 50%;
+ left: 21.5%;
+ display: table;
+ width: 5px;
+ height: 8px;
+ border: 2px solid #fff;
+ border-top: 0;
+ border-left: 0;
+ transform: rotate(45deg) scale(0) translate(-50%, -50%);
+ opacity: 0;
+ transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s;
+ content: ' ';
+}
+.ant-checkbox-input {
+ position: absolute;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ z-index: 1;
+ width: 100%;
+ height: 100%;
+ cursor: pointer;
+ opacity: 0;
+}
+.ant-checkbox-checked .ant-checkbox-inner::after {
+ position: absolute;
+ display: table;
+ border: 2px solid #fff;
+ border-top: 0;
+ border-left: 0;
+ transform: rotate(45deg) scale(1) translate(-50%, -50%);
+ opacity: 1;
+ transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
+ content: ' ';
+}
+.ant-checkbox-checked .ant-checkbox-inner {
+ background-color: #3061D0;
+ border-color: #3061D0;
+}
+.ant-checkbox-disabled {
+ cursor: not-allowed;
+}
+.ant-checkbox-disabled.ant-checkbox-checked .ant-checkbox-inner::after {
+ border-color: rgba(0, 0, 0, 0.25);
+ animation-name: none;
+}
+.ant-checkbox-disabled .ant-checkbox-input {
+ cursor: not-allowed;
+ pointer-events: none;
+}
+.ant-checkbox-disabled .ant-checkbox-inner {
+ background-color: #f5f5f5;
+ border-color: #d9d9d9 !important;
+}
+.ant-checkbox-disabled .ant-checkbox-inner::after {
+ border-color: #f5f5f5;
+ border-collapse: separate;
+ animation-name: none;
+}
+.ant-checkbox-disabled + span {
+ color: rgba(0, 0, 0, 0.25);
+ cursor: not-allowed;
+}
+.ant-checkbox-disabled:hover::after,
+.ant-checkbox-wrapper:hover .ant-checkbox-disabled::after {
+ visibility: hidden;
+}
+.ant-checkbox-wrapper {
+ box-sizing: border-box;
+ margin: 0;
+ padding: 0;
+ color: rgba(0, 0, 0, 0.85);
+ font-size: 12px;
+ font-variant: tabular-nums;
+ line-height: 1.66667;
+ list-style: none;
+ font-feature-settings: tnum, "tnum";
+ display: inline-flex;
+ align-items: baseline;
+ line-height: inherit;
+ cursor: pointer;
+}
+.ant-checkbox-wrapper::after {
+ display: inline-block;
+ width: 0;
+ overflow: hidden;
+ content: '\a0';
+}
+.ant-checkbox-wrapper.ant-checkbox-wrapper-disabled {
+ cursor: not-allowed;
+}
+.ant-checkbox-wrapper + .ant-checkbox-wrapper {
+ margin-left: 8px;
+}
+.ant-checkbox-wrapper.ant-checkbox-wrapper-in-form-item input[type='checkbox'] {
+ width: 14px;
+ height: 14px;
+}
+.ant-checkbox + span {
+ padding-right: 8px;
+ padding-left: 8px;
+}
+.ant-checkbox-group {
+ box-sizing: border-box;
+ margin: 0;
+ padding: 0;
+ color: rgba(0, 0, 0, 0.85);
+ font-size: 12px;
+ font-variant: tabular-nums;
+ line-height: 1.66667;
+ list-style: none;
+ font-feature-settings: tnum, "tnum";
+ display: inline-block;
+}
+.ant-checkbox-group-item {
+ margin-right: 6px;
+}
+.ant-checkbox-group-item:last-child {
+ margin-right: 0;
+}
+.ant-checkbox-group-item + .ant-checkbox-group-item {
+ margin-left: 0;
+}
+.ant-checkbox-indeterminate .ant-checkbox-inner {
+ background-color: #fff;
+ border-color: #d9d9d9;
+}
+.ant-checkbox-indeterminate .ant-checkbox-inner::after {
+ top: 50%;
+ left: 50%;
+ width: 6px;
+ height: 6px;
+ background-color: #3061D0;
+ border: 0;
+ transform: translate(-50%, -50%) scale(1);
+ opacity: 1;
+ content: ' ';
+}
+.ant-checkbox-indeterminate.ant-checkbox-disabled .ant-checkbox-inner::after {
+ background-color: rgba(0, 0, 0, 0.25);
+ border-color: rgba(0, 0, 0, 0.25);
+}
+.ant-checkbox-rtl {
+ direction: rtl;
+}
+.ant-checkbox-group-rtl .ant-checkbox-group-item {
+ margin-right: 0;
+ margin-left: 6px;
+}
+.ant-checkbox-group-rtl .ant-checkbox-group-item:last-child {
+ margin-left: 0 !important;
+}
+.ant-checkbox-group-rtl .ant-checkbox-group-item + .ant-checkbox-group-item {
+ margin-left: 6px;
+}
+/* stylelint-disable no-duplicate-selectors */
+/* stylelint-disable */
+/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
+
+/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
+ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./node_modules/antd/es/statistic/style/index.less ***!
+ \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
+/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
+/* stylelint-disable no-duplicate-selectors */
+/* stylelint-disable */
+/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
+.ant-statistic {
+ box-sizing: border-box;
+ margin: 0;
+ padding: 0;
+ color: rgba(0, 0, 0, 0.85);
+ font-size: 12px;
+ font-variant: tabular-nums;
+ line-height: 1.66667;
+ list-style: none;
+ font-feature-settings: tnum, "tnum";
+}
+.ant-statistic-title {
+ margin-bottom: 0px;
+ color: rgba(0, 0, 0, 0.45);
+ font-size: 12px;
+}
+.ant-statistic-skeleton {
+ padding-top: 8px;
+}
+.ant-statistic-content {
+ color: rgba(0, 0, 0, 0.85);
+ font-size: 20px;
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
+}
+.ant-statistic-content-value {
+ display: inline-block;
+ direction: ltr;
+}
+.ant-statistic-content-prefix,
+.ant-statistic-content-suffix {
+ display: inline-block;
+}
+.ant-statistic-content-prefix {
+ margin-right: 4px;
+}
+.ant-statistic-content-suffix {
+ margin-left: 4px;
+}
+.ant-statistic-rtl {
+ direction: rtl;
+}
+.ant-statistic-rtl .ant-statistic-content-prefix {
+ margin-right: 0;
+ margin-left: 4px;
+}
+.ant-statistic-rtl .ant-statistic-content-suffix {
+ margin-right: 4px;
+ margin-left: 0;
+}
+/* stylelint-disable no-duplicate-selectors */
+/* stylelint-disable */
+/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
+
+/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
+ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./node_modules/antd/es/skeleton/style/index.less ***!
+ \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
+/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
+/* stylelint-disable no-duplicate-selectors */
+/* stylelint-disable */
+/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
+.ant-skeleton {
+ display: table;
+ width: 100%;
+}
+.ant-skeleton-header {
+ display: table-cell;
+ padding-right: 8px;
+ vertical-align: top;
+}
+.ant-skeleton-header .ant-skeleton-avatar {
+ display: inline-block;
+ vertical-align: top;
+ background: rgba(190, 190, 190, 0.2);
+ width: 28px;
+ height: 28px;
+ line-height: 28px;
+}
+.ant-skeleton-header .ant-skeleton-avatar.ant-skeleton-avatar-circle {
+ border-radius: 50%;
+}
+.ant-skeleton-header .ant-skeleton-avatar-lg {
+ width: 32px;
+ height: 32px;
+ line-height: 32px;
+}
+.ant-skeleton-header .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle {
+ border-radius: 50%;
+}
+.ant-skeleton-header .ant-skeleton-avatar-sm {
+ width: 22px;
+ height: 22px;
+ line-height: 22px;
+}
+.ant-skeleton-header .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle {
+ border-radius: 50%;
+}
+.ant-skeleton-content {
+ display: table-cell;
+ width: 100%;
+ vertical-align: top;
+}
+.ant-skeleton-content .ant-skeleton-title {
+ width: 100%;
+ height: 14px;
+ background: rgba(190, 190, 190, 0.2);
+ border-radius: 2px;
+}
+.ant-skeleton-content .ant-skeleton-title + .ant-skeleton-paragraph {
+ margin-top: 20px;
+}
+.ant-skeleton-content .ant-skeleton-paragraph {
+ padding: 0;
+}
+.ant-skeleton-content .ant-skeleton-paragraph > li {
+ width: 100%;
+ height: 14px;
+ list-style: none;
+ background: rgba(190, 190, 190, 0.2);
+ border-radius: 2px;
+}
+.ant-skeleton-content .ant-skeleton-paragraph > li:last-child:not(:first-child):not(:nth-child(2)) {
+ width: 61%;
+}
+.ant-skeleton-content .ant-skeleton-paragraph > li + li {
+ margin-top: 12px;
+}
+.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title {
+ margin-top: 8px;
+}
+.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title + .ant-skeleton-paragraph {
+ margin-top: 20px;
+}
+.ant-skeleton-round .ant-skeleton-content .ant-skeleton-title,
+.ant-skeleton-round .ant-skeleton-content .ant-skeleton-paragraph > li {
+ border-radius: 100px;
+}
+.ant-skeleton-active .ant-skeleton-title,
+.ant-skeleton-active .ant-skeleton-paragraph > li,
+.ant-skeleton-active .ant-skeleton-avatar,
+.ant-skeleton-active .ant-skeleton-button,
+.ant-skeleton-active .ant-skeleton-input,
+.ant-skeleton-active .ant-skeleton-image {
+ position: relative;
+ /* stylelint-disable-next-line property-no-vendor-prefix,value-no-vendor-prefix */
+ z-index: 0;
+ overflow: hidden;
+ background: transparent;
+}
+.ant-skeleton-active .ant-skeleton-title::after,
+.ant-skeleton-active .ant-skeleton-paragraph > li::after,
+.ant-skeleton-active .ant-skeleton-avatar::after,
+.ant-skeleton-active .ant-skeleton-button::after,
+.ant-skeleton-active .ant-skeleton-input::after,
+.ant-skeleton-active .ant-skeleton-image::after {
+ position: absolute;
+ top: 0;
+ right: -150%;
+ bottom: 0;
+ left: -150%;
+ background: linear-gradient(90deg, rgba(190, 190, 190, 0.2) 25%, rgba(129, 129, 129, 0.24) 37%, rgba(190, 190, 190, 0.2) 63%);
+ animation: ant-skeleton-loading 1.4s ease infinite;
+ content: '';
+}
+.ant-skeleton.ant-skeleton-block {
+ width: 100%;
+}
+.ant-skeleton.ant-skeleton-block .ant-skeleton-button {
+ width: 100%;
+}
+.ant-skeleton.ant-skeleton-block .ant-skeleton-input {
+ width: 100%;
+}
+.ant-skeleton-element {
+ display: inline-block;
+ width: auto;
+}
+.ant-skeleton-element .ant-skeleton-button {
+ display: inline-block;
+ vertical-align: top;
+ background: rgba(190, 190, 190, 0.2);
+ border-radius: 2px;
+ width: 56px;
+ min-width: 56px;
+ height: 28px;
+ line-height: 28px;
+}
+.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-square {
+ width: 28px;
+ min-width: 28px;
+}
+.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-circle {
+ width: 28px;
+ min-width: 28px;
+ border-radius: 50%;
+}
+.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-round {
+ border-radius: 28px;
+}
+.ant-skeleton-element .ant-skeleton-button-lg {
+ width: 64px;
+ min-width: 64px;
+ height: 32px;
+ line-height: 32px;
+}
+.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-square {
+ width: 32px;
+ min-width: 32px;
+}
+.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-circle {
+ width: 32px;
+ min-width: 32px;
+ border-radius: 50%;
+}
+.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-round {
+ border-radius: 32px;
+}
+.ant-skeleton-element .ant-skeleton-button-sm {
+ width: 44px;
+ min-width: 44px;
+ height: 22px;
+ line-height: 22px;
+}
+.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-square {
+ width: 22px;
+ min-width: 22px;
+}
+.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-circle {
+ width: 22px;
+ min-width: 22px;
+ border-radius: 50%;
+}
+.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-round {
+ border-radius: 22px;
+}
+.ant-skeleton-element .ant-skeleton-avatar {
+ display: inline-block;
+ vertical-align: top;
+ background: rgba(190, 190, 190, 0.2);
+ width: 28px;
+ height: 28px;
+ line-height: 28px;
+}
+.ant-skeleton-element .ant-skeleton-avatar.ant-skeleton-avatar-circle {
+ border-radius: 50%;
+}
+.ant-skeleton-element .ant-skeleton-avatar-lg {
+ width: 32px;
+ height: 32px;
+ line-height: 32px;
+}
+.ant-skeleton-element .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle {
+ border-radius: 50%;
+}
+.ant-skeleton-element .ant-skeleton-avatar-sm {
+ width: 22px;
+ height: 22px;
+ line-height: 22px;
+}
+.ant-skeleton-element .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle {
+ border-radius: 50%;
+}
+.ant-skeleton-element .ant-skeleton-input {
+ display: inline-block;
+ vertical-align: top;
+ background: rgba(190, 190, 190, 0.2);
+ width: 140px;
+ min-width: 140px;
+ height: 28px;
+ line-height: 28px;
+}
+.ant-skeleton-element .ant-skeleton-input-lg {
+ width: 160px;
+ min-width: 160px;
+ height: 32px;
+ line-height: 32px;
+}
+.ant-skeleton-element .ant-skeleton-input-sm {
+ width: 110px;
+ min-width: 110px;
+ height: 22px;
+ line-height: 22px;
+}
+.ant-skeleton-element .ant-skeleton-image {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ vertical-align: top;
+ background: rgba(190, 190, 190, 0.2);
+ width: 96px;
+ height: 96px;
+ line-height: 96px;
+}
+.ant-skeleton-element .ant-skeleton-image.ant-skeleton-image-circle {
+ border-radius: 50%;
+}
+.ant-skeleton-element .ant-skeleton-image-path {
+ fill: #bfbfbf;
+}
+.ant-skeleton-element .ant-skeleton-image-svg {
+ width: 48px;
+ height: 48px;
+ line-height: 48px;
+ max-width: 192px;
+ max-height: 192px;
+}
+.ant-skeleton-element .ant-skeleton-image-svg.ant-skeleton-image-circle {
+ border-radius: 50%;
+}
+@keyframes ant-skeleton-loading {
+ 0% {
+ transform: translateX(-37.5%);
+ }
+ 100% {
+ transform: translateX(37.5%);
+ }
+}
+.ant-skeleton-rtl {
+ direction: rtl;
+}
+.ant-skeleton-rtl .ant-skeleton-header {
+ padding-right: 0;
+ padding-left: 16px;
+}
+.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title,
+.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph > li {
+ animation-name: ant-skeleton-loading-rtl;
+}
+.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar {
+ animation-name: ant-skeleton-loading-rtl;
+}
+@keyframes ant-skeleton-loading-rtl {
+ 0% {
+ background-position: 0% 50%;
+ }
+ 100% {
+ background-position: 100% 50%;
+ }
+}
+/* stylelint-disable no-duplicate-selectors */
+/* stylelint-disable */
+/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
+
diff --git a/39146.async.js b/39146.async.js
index e789d6d63e..f688eaaf5e 100644
--- a/39146.async.js
+++ b/39146.async.js
@@ -25,19 +25,6 @@ var DownOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 89
/* harmony default export */ __webpack_exports__["Z"] = (DownOutlined);
-/***/ }),
-
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
/***/ }),
/***/ 7918:
@@ -1368,33 +1355,6 @@ EyeOutlined_EyeOutlined.displayName = 'EyeOutlined';
/***/ }),
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
-/***/ }),
-
/***/ 34243:
/*!**********************************************************!*\
!*** ./node_modules/rc-overflow/es/index.js + 4 modules ***!
diff --git a/42255.async.js b/42255.async.js
index 075dbaad87..63e9a5f516 100644
--- a/42255.async.js
+++ b/42255.async.js
@@ -1,19 +1,6 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[42255,22569],{
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
-/***/ }),
-
/***/ 98787:
/*!**********************************************!*\
!*** ./node_modules/antd/es/_util/colors.js ***!
@@ -1563,33 +1550,6 @@ EyeOutlined_EyeOutlined.displayName = 'EyeOutlined';
/***/ }),
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
-/***/ }),
-
/***/ 50132:
/*!**********************************************!*\
!*** ./node_modules/rc-checkbox/es/index.js ***!
diff --git a/52137.async.js b/52137.async.js
index f8cc4b158c..4b385225cc 100644
--- a/52137.async.js
+++ b/52137.async.js
@@ -12,19 +12,6 @@ var DownOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 89
/* harmony default export */ __webpack_exports__["Z"] = (DownOutlined);
-/***/ }),
-
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
/***/ }),
/***/ 82826:
@@ -1521,33 +1508,6 @@ EyeOutlined_EyeOutlined.displayName = 'EyeOutlined';
/***/ }),
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
-/***/ }),
-
/***/ 50132:
/*!**********************************************!*\
!*** ./node_modules/rc-checkbox/es/index.js ***!
diff --git a/53634.async.js b/53634.async.js
index 34f0d03cee..5bb4eeb883 100644
--- a/53634.async.js
+++ b/53634.async.js
@@ -1,19 +1,5 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[53634,22569,89626,28020,71514],{
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-"use strict";
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
-/***/ }),
-
/***/ 5467:
/*!**********************************************************!*\
!*** ./node_modules/antd/es/_util/getDataOrAriaProps.js ***!
@@ -1393,34 +1379,6 @@ EyeOutlined_EyeOutlined.displayName = 'EyeOutlined';
/***/ }),
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
-/***/ }),
-
/***/ 19575:
/*!******************************************!*\
!*** ./node_modules/js-base64/base64.js ***!
diff --git a/58269.async.js b/58269.async.js
index 2336667499..e70177a1f1 100644
--- a/58269.async.js
+++ b/58269.async.js
@@ -1,19 +1,6 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[58269,95870,79713,89626,71514],{
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
-/***/ }),
-
/***/ 77171:
/*!**********************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/ArrowDownOutlined.js + 1 modules ***!
@@ -1122,33 +1109,6 @@ EyeOutlined_EyeOutlined.displayName = 'EyeOutlined';
/***/ }),
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
-/***/ }),
-
/***/ 34243:
/*!**********************************************************!*\
!*** ./node_modules/rc-overflow/es/index.js + 4 modules ***!
diff --git a/58486.async.js b/58486.async.js
index 0d715c6ed9..1604862a29 100644
--- a/58486.async.js
+++ b/58486.async.js
@@ -12,19 +12,6 @@ var DownOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 89
/* harmony default export */ __webpack_exports__["Z"] = (DownOutlined);
-/***/ }),
-
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
/***/ }),
/***/ 82826:
@@ -1273,33 +1260,6 @@ EyeOutlined_EyeOutlined.displayName = 'EyeOutlined';
/***/ }),
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
-/***/ }),
-
/***/ 50132:
/*!**********************************************!*\
!*** ./node_modules/rc-checkbox/es/index.js ***!
diff --git a/66628.async.js b/58538.async.js
similarity index 90%
rename from 66628.async.js
rename to 58538.async.js
index ef6c1cb493..3391c3928f 100644
--- a/66628.async.js
+++ b/58538.async.js
@@ -1,18 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[66628],{
-
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
-/***/ }),
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[58538],{
/***/ 62986:
/*!*********************************************************!*\
@@ -207,33 +194,6 @@ var style_default = __webpack_require__(43146);
-/***/ }),
-
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
/***/ }),
/***/ 34243:
diff --git a/4967.async.js b/60890.async.js
similarity index 96%
rename from 4967.async.js
rename to 60890.async.js
index 4d25b4c0a6..4eba81bdb2 100644
--- a/4967.async.js
+++ b/60890.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[4967],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[60890],{
/***/ 26554:
/*!*******************************************************************!*\
@@ -25,6 +25,19 @@ var RightOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 8
/* harmony default export */ __webpack_exports__["Z"] = (RightOutlined);
+/***/ }),
+
+/***/ 509:
+/*!*********************************************************************!*\
+ !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
+ \*********************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__) {
+
+// This icon file is generated automatically.
+var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
+/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
+
+
/***/ }),
/***/ 98787:
@@ -1513,6 +1526,33 @@ RightOutlined.displayName = 'RightOutlined';
/***/ }),
+/***/ 25783:
+/*!*************************************************************************************!*\
+ !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
+ \*************************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
+/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
+
+// GENERATE BY ./scripts/generate.ts
+// DON NOT EDIT IT MANUALLY
+
+
+
+var SearchOutlined = function SearchOutlined(props, ref) {
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
+ ref: ref,
+ icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
+ }));
+};
+SearchOutlined.displayName = 'SearchOutlined';
+/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
+
+/***/ }),
+
/***/ 50132:
/*!**********************************************!*\
!*** ./node_modules/rc-checkbox/es/index.js ***!
diff --git a/13920.async.js b/62883.async.js
similarity index 96%
rename from 13920.async.js
rename to 62883.async.js
index 2fe6b78fe4..33f8d592f8 100644
--- a/13920.async.js
+++ b/62883.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[13920],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[62883],{
/***/ 32857:
/*!********************************************************************!*\
@@ -12,19 +12,6 @@ var CheckOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 8
/* harmony default export */ __webpack_exports__["Z"] = (CheckOutlined);
-/***/ }),
-
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
/***/ }),
/***/ 7918:
@@ -1822,33 +1809,6 @@ CheckOutlined.displayName = 'CheckOutlined';
/***/ }),
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
-/***/ }),
-
/***/ 43159:
/*!**************************************************!*\
!*** ./node_modules/rc-tooltip/es/placements.js ***!
diff --git a/73718.async.js b/73718.async.js
deleted file mode 100644
index 4531ea3df0..0000000000
--- a/73718.async.js
+++ /dev/null
@@ -1,1489 +0,0 @@
-"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[73718],{
-
-/***/ 66446:
-/*!******************************************!*\
- !*** ./src/pages/tasks/service/index.js ***!
- \******************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "JW": function() { return /* binding */ setUnity3dStatus; },
-/* harmony export */ "Jd": function() { return /* binding */ rebootEsc; },
-/* harmony export */ "Kl": function() { return /* binding */ addVncTime; },
-/* harmony export */ "L5": function() { return /* binding */ saveTaskStar; },
-/* harmony export */ "MH": function() { return /* binding */ getChooseUnlockAnswer; },
-/* harmony export */ "MI": function() { return /* binding */ addMyRepositoryFile; },
-/* harmony export */ "Qo": function() { return /* binding */ getCodeGameStatus; },
-/* harmony export */ "SO": function() { return /* binding */ fetchPathsTaskList; },
-/* harmony export */ "Tf": function() { return /* binding */ resetGitCode; },
-/* harmony export */ "XO": function() { return /* binding */ fetchTaskInfo; },
-/* harmony export */ "Xy": function() { return /* binding */ codeGameBuild; },
-/* harmony export */ "Y0": function() { return /* binding */ plusOrCancelPraise; },
-/* harmony export */ "Ye": function() { return /* binding */ setStartPermanent; },
-/* harmony export */ "Yv": function() { return /* binding */ stopLogOutput; },
-/* harmony export */ "ZH": function() { return /* binding */ commitFiles; },
-/* harmony export */ "am": function() { return /* binding */ resetEnvironment; },
-/* harmony export */ "bD": function() { return /* binding */ deleteMyGitFile; },
-/* harmony export */ "fA": function() { return /* binding */ closeWindowsVnc; },
-/* harmony export */ "fY": function() { return /* binding */ getRemainingTime; },
-/* harmony export */ "g6": function() { return /* binding */ fetchTaskList; },
-/* harmony export */ "g7": function() { return /* binding */ moveMyGitFile; },
-/* harmony export */ "gT": function() { return /* binding */ fetchPictures; },
-/* harmony export */ "gn": function() { return /* binding */ pullFiles; },
-/* harmony export */ "h$": function() { return /* binding */ logOutput; },
-/* harmony export */ "hG": function() { return /* binding */ resetPassedCode; },
-/* harmony export */ "i8": function() { return /* binding */ getRanking; },
-/* harmony export */ "j3": function() { return /* binding */ getUnlockAnswer; },
-/* harmony export */ "lH": function() { return /* binding */ getAnswerInfo; },
-/* harmony export */ "li": function() { return /* binding */ fetchCode; },
-/* harmony export */ "n4": function() { return /* binding */ updateCode; },
-/* harmony export */ "pU": function() { return /* binding */ fetchRepos; },
-/* harmony export */ "qK": function() { return /* binding */ restoreCode; },
-/* harmony export */ "sA": function() { return /* binding */ startInit; },
-/* harmony export */ "sP": function() { return /* binding */ getChooseAnswerInfo; },
-/* harmony export */ "t$": function() { return /* binding */ unlockTestCase; },
-/* harmony export */ "zl": function() { return /* binding */ evalateChooseGame; }
-/* harmony export */ });
-/* unused harmony exports getNoticeDetail, closeSSh, getMyFileContent */
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js */ 17061);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/asyncToGenerator.js */ 17156);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectSpread2.js */ 42122);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__);
-/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/utils/fetch */ 84519);
-/* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/utils/util */ 29427);
-
-
-
-
-
-
-//判断是否来自教学课堂助教查看实训
-var urlParamsAll = (0,_utils_util__WEBPACK_IMPORTED_MODULE_4__/* .getJsonFromUrl */ .oP)();
-var urlParams = {};
-if (urlParamsAll !== null && urlParamsAll !== void 0 && urlParamsAll.homework_common_id) {
- urlParams.homework_common_id = urlParamsAll === null || urlParamsAll === void 0 ? void 0 : urlParamsAll.homework_common_id;
-}
-if (urlParamsAll !== null && urlParamsAll !== void 0 && urlParamsAll.exercisesId) {
- urlParams.exercise_id = urlParamsAll === null || urlParamsAll === void 0 ? void 0 : urlParamsAll.exercisesId;
-}
-function fetchTaskInfo(id) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, ".json"), urlParams);
-}
-function fetchTaskList(id) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/challenges.json"));
-}
-function fetchPathsTaskList(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/subject_challenges.json"), params);
-}
-function saveTaskStar(id, shixunId, star) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/star.json"), {
- shixun_id: shixunId,
- star: star
- });
-}
-function fetchCode(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/rep_content.json"), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams));
-}
-function updateCode(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("myshixuns/".concat(id, "/update_file.json"), params);
-}
-function restoreCode(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/reset_original_code.json"), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams));
-}
-function resetGitCode(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("myshixuns/".concat(id, "/reset_repository.json"), params);
-}
-function resetPassedCode(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/reset_passed_code.json"), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams));
-}
-function codeGameBuild(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/game_build.json"), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams));
-}
-function getCodeGameStatus(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/game_status.json"), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams));
-}
-function evalateChooseGame(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/choose_build.json"), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams));
-}
-
-//获取环境剩余时间
-function getRemainingTime(id) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/get_remaining_time.json"));
-}
-function fetchPictures(id) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/picture_display.json"), urlParams);
-}
-function getNoticeDetail(id, params) {
- return get("courses/".concat(id, "/inform_detail.json"), params);
-}
-function plusOrCancelPraise(id) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/plus_or_cancel_praise.json"));
-}
-function fetchRepos(id) {
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("myshixuns/".concat(id, "/repository.json"), params);
-}
-
-//添加新方法
-function startInit(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/start.json"), params || {});
-}
-function closeSSh(id) {
- return get("myshixuns/".concat(id, "/reset_pod.json"));
-}
-function resetEnvironment(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/reset_pod.json"), params);
-}
-
-// 重启云主机
-function rebootEsc(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/tasks/".concat(id, "/reboot_esc.json"), {
- method: 'post',
- body: params
- });
-}
-function unlockTestCase(id) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/check_test_sets.json"));
-}
-function getAnswerInfo(id) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/get_answer_info.json"));
-}
-function getChooseAnswerInfo(id) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/get_choose_answer.json"));
-}
-function getChooseUnlockAnswer(id) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/unlock_choose_answer.json"));
-}
-function getUnlockAnswer(id, aid) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/unlock_answer.json"), {
- answer_id: aid
- });
-}
-function setUnity3dStatus(id, result, data) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/set_games_status.json"), {
- result: result,
- data: data
- });
-}
-
-//保留唯一一个方法
-function addVncTime(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/active_pod.json"), params);
-}
-function getRanking(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/rank_list.json"), params);
-}
-function closeWindowsVnc(id, tpi_id) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/close_windows_vnc.json"), {
- tpi_id: tpi_id
- });
-}
-function commitFiles(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/commit_files.json"), params);
-}
-function pullFiles(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/pull_files.json"), params);
-}
-function logOutput(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/log_output"), params);
-}
-function stopLogOutput(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/stop_log_output.json"), params);
-}
-
-// myshixuns start
-function addMyRepositoryFile(_x) {
- return _addMyRepositoryFile.apply(this, arguments);
-}
-function _addMyRepositoryFile() {
- _addMyRepositoryFile = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee(params) {
- return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee$(_context) {
- while (1) switch (_context.prev = _context.next) {
- case 0:
- return _context.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/myshixuns/".concat(params.id, "/add_file.json"), {
- method: 'post',
- body: params
- }));
- case 1:
- case "end":
- return _context.stop();
- }
- }, _callee);
- }));
- return _addMyRepositoryFile.apply(this, arguments);
-}
-function deleteMyGitFile(_x2) {
- return _deleteMyGitFile.apply(this, arguments);
-}
-function _deleteMyGitFile() {
- _deleteMyGitFile = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee2(params) {
- return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee2$(_context2) {
- while (1) switch (_context2.prev = _context2.next) {
- case 0:
- return _context2.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/myshixuns/".concat(params.id, "/delete_git_file.json"), {
- method: 'Delete',
- body: params
- }));
- case 1:
- case "end":
- return _context2.stop();
- }
- }, _callee2);
- }));
- return _deleteMyGitFile.apply(this, arguments);
-}
-function moveMyGitFile(_x3) {
- return _moveMyGitFile.apply(this, arguments);
-}
-function _moveMyGitFile() {
- _moveMyGitFile = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee3(params) {
- return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee3$(_context3) {
- while (1) switch (_context3.prev = _context3.next) {
- case 0:
- return _context3.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/myshixuns/".concat(params.id, "/mv_file.json"), {
- method: 'post',
- body: params
- }));
- case 1:
- case "end":
- return _context3.stop();
- }
- }, _callee3);
- }));
- return _moveMyGitFile.apply(this, arguments);
-}
-function getMyFileContent(_x4) {
- return _getMyFileContent.apply(this, arguments);
-}
-function _getMyFileContent() {
- _getMyFileContent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(params) {
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
- while (1) switch (_context4.prev = _context4.next) {
- case 0:
- return _context4.abrupt("return", Fetch("/api/tasks/".concat(params.id, "/rep_content.json"), {
- method: 'get',
- params: params
- }));
- case 1:
- case "end":
- return _context4.stop();
- }
- }, _callee4);
- }));
- return _getMyFileContent.apply(this, arguments);
-}
-function setStartPermanent(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/shixuns/".concat(id, "/set_start_permanent.json"), {
- method: 'put',
- body: params
- });
-}
-
-/***/ }),
-
-/***/ 12264:
-/*!**********************************!*\
- !*** ./src/components/modal.tsx ***!
- \**********************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "Z": function() { return /* binding */ Dialog; }
-/* harmony export */ });
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/classCallCheck.js */ 56690);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createClass_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/createClass.js */ 89728);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createClass_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createClass_js__WEBPACK_IMPORTED_MODULE_1__);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_inherits_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/inherits.js */ 61655);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_inherits_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_inherits_js__WEBPACK_IMPORTED_MODULE_2__);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createSuper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/createSuper.js */ 26389);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createSuper_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createSuper_js__WEBPACK_IMPORTED_MODULE_3__);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-dom */ 73935);
-
-
-
-
-
-
-var Dialog = /*#__PURE__*/function (_React$Component) {
- _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_inherits_js__WEBPACK_IMPORTED_MODULE_2___default()(Dialog, _React$Component);
- var _super = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createSuper_js__WEBPACK_IMPORTED_MODULE_3___default()(Dialog);
- function Dialog(props) {
- var _this;
- _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0___default()(this, Dialog);
- _this = _super.call(this, props);
- var doc = window.document;
- _this.node = doc.createElement('div');
- doc.body.appendChild(_this.node);
- return _this;
- }
- _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createClass_js__WEBPACK_IMPORTED_MODULE_1___default()(Dialog, [{
- key: "render",
- value: function render() {
- var children = this.props.children;
- return /*#__PURE__*/(0,react_dom__WEBPACK_IMPORTED_MODULE_5__.createPortal)(children, this.node);
- }
- }, {
- key: "componentWillUnmount",
- value: function componentWillUnmount() {
- window.document.body.removeChild(this.node);
- }
- }]);
- return Dialog;
-}(react__WEBPACK_IMPORTED_MODULE_4__.Component);
-
-
-/***/ }),
-
-/***/ 27594:
-/*!******************************************************************!*\
- !*** ./src/pages/tasks/vnc-view/vnc-panel/index.tsx + 2 modules ***!
- \******************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ vnc_panel; }
-});
-
-// EXTERNAL MODULE: ./node_modules/antd/es/progress/style/index.js + 1 modules
-var style = __webpack_require__(57273);
-// EXTERNAL MODULE: ./node_modules/antd/es/progress/index.js + 10 modules
-var progress = __webpack_require__(97910);
-// EXTERNAL MODULE: ./node_modules/antd/es/message/style/index.js + 1 modules
-var message_style = __webpack_require__(14934);
-// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 1 modules
-var message = __webpack_require__(12461);
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
-var regeneratorRuntime = __webpack_require__(17061);
-var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
-// EXTERNAL MODULE: ./node_modules/antd/es/modal/style/index.js + 1 modules
-var modal_style = __webpack_require__(35611);
-// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 7 modules
-var modal = __webpack_require__(85402);
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
-var asyncToGenerator = __webpack_require__(17156);
-var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js
-var createForOfIteratorHelper = __webpack_require__(74704);
-var createForOfIteratorHelper_default = /*#__PURE__*/__webpack_require__.n(createForOfIteratorHelper);
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
-var slicedToArray = __webpack_require__(27424);
-var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectSpread2.js
-var objectSpread2 = __webpack_require__(42122);
-var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-// EXTERNAL MODULE: ./src/components/Spinner/index.tsx + 1 modules
-var Spinner = __webpack_require__(38054);
-// EXTERNAL MODULE: ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
-var ResizeObserver_es = __webpack_require__(91033);
-// EXTERNAL MODULE: ./src/components/modal.tsx
-var components_modal = __webpack_require__(12264);
-// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
-var _umi_production_exports = __webpack_require__(89214);
-// EXTERNAL MODULE: ./src/utils/util.tsx
-var util = __webpack_require__(29427);
-// EXTERNAL MODULE: ./node_modules/antd/es/button/style/index.js + 1 modules
-var button_style = __webpack_require__(29913);
-// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
-var es_button = __webpack_require__(71577);
-// EXTERNAL MODULE: ./node_modules/antd/es/input/style/index.js + 1 modules
-var input_style = __webpack_require__(69463);
-// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 5 modules
-var input = __webpack_require__(75008);
-;// CONCATENATED MODULE: ./src/pages/tasks/vnc-view/clipboard-box/index.less
-// extracted by mini-css-extract-plugin
-
-// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
-var jsx_runtime = __webpack_require__(85893);
-;// CONCATENATED MODULE: ./src/pages/tasks/vnc-view/clipboard-box/index.tsx
-
-
-
-
-
-
-
-
-
-var TextArea = input/* default.TextArea */.Z.TextArea;
-/* harmony default export */ var clipboard_box = (function (_ref) {
- var onCancel = _ref.onCancel,
- onSave = _ref.onSave,
- content = _ref.content;
- var _useState = (0,react.useState)(content),
- _useState2 = slicedToArray_default()(_useState, 2),
- value = _useState2[0],
- setValue = _useState2[1];
- function onChangeValue(e) {
- setValue(e.target.value);
- }
- function onSaveContent() {
- onSave(value);
- }
- (0,react.useEffect)(function () {
- setValue(content);
- }, [content]);
- return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- className: "clipboard-box",
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("h3", {
- children: "\u5B9E\u9A8C\u73AF\u5883\u526A\u5207\u677F\uFF1A"
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(TextArea, {
- value: value,
- onChange: onChangeValue,
- className: "clipboard"
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
- children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
- children: " 1.\u4ECE\u5916\u90E8\u590D\u5236\u5185\u5BB9\u5230\u5B9E\u9A8C\u73AF\u5883\u5185\uFF1A "
- }), " \u7C98\u8D34\u5185\u5BB9\u5230\u4E0A\u9762\u6587\u672C\u6846\uFF0C\u70B9\u51FB\u4FDD\u5B58\uFF0C\u7136\u540E\u5728\u5B9E\u9A8C\u73AF\u5883\u4E2D\u8FDB\u884C\u7C98\u8D34\u3002 "]
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
- children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
- children: " 2.\u83B7\u53D6\u5B9E\u9A8C\u73AF\u5883\u4E2D\u7684\u5185\u5BB9\uFF1A "
- }), " \u8BF7\u5148\u5728\u73AF\u5883\u4E2D\u590D\u5236\u5185\u5BB9\uFF0C\u590D\u5236\u52A8\u4F5C\u5B8C\u6210\u540E\u5185\u5BB9\u4F1A\u663E\u793A\u5728\u4E0A\u9762\u6587\u672C\u6846\uFF0C\u7136\u540E\u5728\u4E0A\u9762\u6587\u672C\u6846\u4E2D\u518D\u6B21\u590D\u5236\u3002 "]
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- className: "btn-action-container",
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
- type: "ghost",
- onClick: onCancel,
- style: {
- marginRight: 10
- },
- children: "\u53D6\u6D88"
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
- type: "primary",
- onClick: onSaveContent,
- children: "\u4FDD\u5B58"
- })]
- })]
- });
-});
-// EXTERNAL MODULE: ./src/utils/fullscreen.ts
-var fullscreen = __webpack_require__(15994);
-// EXTERNAL MODULE: ./src/pages/tasks/service/index.js
-var service = __webpack_require__(66446);
-// EXTERNAL MODULE: ./node_modules/@novnc/novnc/lib/rfb.js
-var rfb = __webpack_require__(2176);
-// EXTERNAL MODULE: ./src/components/mediator.js
-var mediator = __webpack_require__(91562);
-// EXTERNAL MODULE: ./src/utils/fetch.ts
-var fetch = __webpack_require__(84519);
-;// CONCATENATED MODULE: ./src/pages/tasks/vnc-view/vnc-panel/index.tsx
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-function unicodeUnEscape(str) {
- return str.replace(/\\u([\dA-Za-z]{4})/g, function (_, m1) {
- return String.fromCharCode(parseInt("0x" + m1));
- });
-}
-function getJsonFromUrl(url) {
- if (!url) url = window.location.search;
- var query = url.substr(1);
- var result = {};
- query.split('&').forEach(function (part) {
- var item = part.split('=');
- result[item[0]] = decodeURIComponent(item[1]);
- });
- return result;
-}
-var initialState = {
- loading: true,
- isLarge: false,
- showClipBoardBox: false,
- transferContent: '',
- mes: '实验环境准备中'
-};
-var Types;
-(function (Types) {
- Types[Types["SET_LOADING"] = 0] = "SET_LOADING";
- Types[Types["SET_IS_LARGE"] = 1] = "SET_IS_LARGE";
- Types[Types["SET_MES"] = 2] = "SET_MES";
- Types[Types["SET_STATE"] = 3] = "SET_STATE";
- Types[Types["SHOW_CLIPBOARD_BOX"] = 4] = "SHOW_CLIPBOARD_BOX";
- Types[Types["SET_TRANSFER_CONTENT"] = 5] = "SET_TRANSFER_CONTENT";
- Types[Types["UPDATE_ALL"] = 6] = "UPDATE_ALL";
-})(Types || (Types = {}));
-function reducer(state, action) {
- switch (action.type) {
- case Types.SET_LOADING:
- return objectSpread2_default()(objectSpread2_default()({}, state), {}, {
- loading: action.payload
- });
- case Types.SET_IS_LARGE:
- return objectSpread2_default()({}, objectSpread2_default()(objectSpread2_default()({}, state), {}, {
- isLarge: action.payload
- }));
- case Types.SET_MES:
- return objectSpread2_default()(objectSpread2_default()({}, state), {}, {
- mes: action.payload
- });
- case Types.SET_STATE:
- return objectSpread2_default()(objectSpread2_default()({}, state), action.payload);
- case Types.SET_TRANSFER_CONTENT:
- return objectSpread2_default()(objectSpread2_default()({}, state), {}, {
- transferContent: action.payload
- });
- case Types.SHOW_CLIPBOARD_BOX:
- return objectSpread2_default()(objectSpread2_default()({}, state), {}, {
- showClipBoardBox: action.payload
- });
- case Types.UPDATE_ALL:
- return objectSpread2_default()({
- loading: state.loading
- }, action.payload);
- default:
- throw new Error();
- }
-}
-/* harmony default export */ var vnc_panel = (function (_ref) {
- var vnc_url = _ref.vnc_url,
- window_vnc_url = _ref.window_vnc_url,
- linux_vnc = _ref.linux_vnc,
- virtual_machine = _ref.virtual_machine,
- taskData = _ref.taskData,
- shixun_environment_id = _ref.shixun_environment_id,
- tab_type = _ref.tab_type,
- instance_startup_type = _ref.instance_startup_type,
- index_tab = _ref.index_tab,
- tpi_type = _ref.tpi_type;
- var el = (0,react.useRef)();
- var guacaRef = (0,react.useRef)();
- var rfbRef = (0,react.useRef)();
- var roRef = (0,react.useRef)();
- var iframeRef = (0,react.useRef)();
- var passwordRef = (0,react.useRef)();
- var socketUrlRef = (0,react.useRef)();
- var reConnectRef = (0,react.useRef)();
- var _useReducer = (0,react.useReducer)(reducer, initialState),
- _useReducer2 = slicedToArray_default()(_useReducer, 2),
- state = _useReducer2[0],
- dispatch = _useReducer2[1];
- var _useState = (0,react.useState)(0),
- _useState2 = slicedToArray_default()(_useState, 2),
- linkNum = _useState2[0],
- setLinkNum = _useState2[1];
- var mes = state.mes,
- loading = state.loading,
- showClipBoardBox = state.showClipBoardBox,
- isLarge = state.isLarge,
- transferContent = state.transferContent;
- var _useState3 = (0,react.useState)(0),
- _useState4 = slicedToArray_default()(_useState3, 2),
- percent = _useState4[0],
- setPercent = _useState4[1];
- var timeout = (0,react.useRef)();
- var params = (0,_umi_production_exports.useParams)();
- (0,react.useEffect)(function () {
- return function () {
- var _guacaRef$current, _guacaRef$current$dis;
- (_guacaRef$current = guacaRef.current) === null || _guacaRef$current === void 0 ? void 0 : (_guacaRef$current$dis = _guacaRef$current.disconnect) === null || _guacaRef$current$dis === void 0 ? void 0 : _guacaRef$current$dis.call(_guacaRef$current);
- clearTimeout(reConnectRef.current);
- };
- }, []);
- var fullChange = function fullChange() {
- var _rfbRef$current;
- if (instance_startup_type === 2) {
- setTimeout(function () {
- doResize();
- }, 1500);
- } else if ((rfbRef === null || rfbRef === void 0 ? void 0 : (_rfbRef$current = rfbRef.current) === null || _rfbRef$current === void 0 ? void 0 : _rfbRef$current.resizeSession) !== undefined) {
- if ((0,fullscreen/* IsFull */.vp)()) {
- rfbRef.current.resizeSession = true;
- } else {
- setTimeout(function () {
- rfbRef.current.resizeSession = false;
- }, 900);
- }
- }
- };
- (0,react.useEffect)(function () {
- document.addEventListener((0,fullscreen/* fullscreenChange */.gH)(), fullChange);
- return function () {
- document.removeEventListener((0,fullscreen/* fullscreenChange */.gH)(), fullChange);
- };
- }, []);
- function onCancelClipboardBox() {
- dispatch({
- type: Types.SHOW_CLIPBOARD_BOX,
- payload: false
- });
- }
- function onResizeSet() {
- dispatch({
- type: Types.SET_IS_LARGE,
- payload: !isLarge
- });
- }
- function onLayout(rfb) {
- if (el.current) {
- roRef.current = new ResizeObserver_es/* default */.Z(function (entries) {
- var _iterator = createForOfIteratorHelper_default()(entries),
- _step;
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- var entry = _step.value;
- if (instance_startup_type === 2) {
- doResize();
- }
- if (entry.target.offsetHeight > 0 || entry.target.offsetWidth > 0) {
- var _rfb$_eventHandlers;
- rfb === null || rfb === void 0 ? void 0 : (_rfb$_eventHandlers = rfb._eventHandlers) === null || _rfb$_eventHandlers === void 0 ? void 0 : _rfb$_eventHandlers.windowResize();
- }
- }
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
- });
- roRef.current.observe(el.current);
- }
- return roRef.current;
- }
- var getWindowVnc = /*#__PURE__*/function () {
- var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
- var _taskData$myshixun, _res$data, _res$data$data_list;
- var res, _res$data2, _res$data3, _res$data4, _res$data4$cookie_opt;
- return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
- while (1) switch (_context3.prev = _context3.next) {
- case 0:
- _context3.next = 2;
- return (0,service/* startInit */.sA)((_taskData$myshixun = taskData.myshixun) === null || _taskData$myshixun === void 0 ? void 0 : _taskData$myshixun.identifier, objectSpread2_default()(objectSpread2_default()({}, params), {}, {
- taskId: params.taskId,
- shixun_environment_id: shixun_environment_id,
- tab_type: tab_type
- }));
- case 2:
- res = _context3.sent;
- if (!(res !== null && res !== void 0 && (_res$data = res.data) !== null && _res$data !== void 0 && (_res$data$data_list = _res$data.data_list) !== null && _res$data$data_list !== void 0 && _res$data$data_list.length)) {
- _context3.next = 6;
- break;
- }
- mediator/* default.publish */.Z.publish('pod-restrict-data', {
- identifier: res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.identifier,
- data_list: res === null || res === void 0 ? void 0 : (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.data_list
- });
- return _context3.abrupt("return", Promise.reject());
- case 6:
- if (!((res === null || res === void 0 ? void 0 : res.status) === -3)) {
- _context3.next = 8;
- break;
- }
- return _context3.abrupt("return", new Promise( /*#__PURE__*/function () {
- var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(resolve, reject) {
- return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
- while (1) switch (_context2.prev = _context2.next) {
- case 0:
- modal/* default.confirm */.Z.confirm({
- content: "检测到您已经开启了其他实验环境,请先关闭环境后,再连接",
- okText: "立即关闭",
- cancelText: "稍后关闭",
- onOk: function () {
- var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
- return regeneratorRuntime_default()().wrap(function _callee$(_context) {
- while (1) switch (_context.prev = _context.next) {
- case 0:
- clearTimeout(timeout.current);
- setPercent(0);
- _context.next = 4;
- return (0,service/* closeWindowsVnc */.fA)(params.taskId, res === null || res === void 0 ? void 0 : res.message);
- case 4:
- setLinkNum(linkNum + 1);
- return _context.abrupt("return");
- case 6:
- case "end":
- return _context.stop();
- }
- }, _callee);
- }));
- function onOk() {
- return _onOk.apply(this, arguments);
- }
- return onOk;
- }()
- });
- case 1:
- case "end":
- return _context2.stop();
- }
- }, _callee2);
- }));
- return function (_x, _x2) {
- return _ref3.apply(this, arguments);
- };
- }()));
- case 8:
- if (!((res === null || res === void 0 ? void 0 : res.status) === -1)) {
- _context3.next = 10;
- break;
- }
- throw new String(res === null || res === void 0 ? void 0 : res.message);
- case 10:
- if (!((res === null || res === void 0 ? void 0 : res.status) === 0)) {
- _context3.next = 15;
- break;
- }
- if (virtual_machine) {
- (0,util/* setCookie */.d8)("PVEAuthCookie", res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : (_res$data4$cookie_opt = _res$data4.cookie_options) === null || _res$data4$cookie_opt === void 0 ? void 0 : _res$data4$cookie_opt.cookies_value, 1);
- (0,util/* setCookie */.d8)("PVELangCookie", "zh_CN", 1);
- }
- mediator/* default.publish */.Z.publish('update-windows-time', res === null || res === void 0 ? void 0 : res.data);
- // mediator.publish('update-windows-time', {remaining_time: 98000})
- mediator/* default.publish */.Z.publish('send-tabs-result-data', objectSpread2_default()(objectSpread2_default()({}, res === null || res === void 0 ? void 0 : res.data), {}, {
- index_tab: index_tab
- }));
- return _context3.abrupt("return", res);
- case 15:
- case "end":
- return _context3.stop();
- }
- }, _callee3);
- }));
- return function getWindowVnc() {
- return _ref2.apply(this, arguments);
- };
- }();
- function onConnect() {
- setPercent(100);
- clearTimeout(timeout.current);
- setTimeout(function () {
- rfbRef.current.resizeSession = false;
- dispatch({
- type: Types.SET_LOADING,
- payload: false
- });
- }, 1300);
- // mediator.unsubscribe(`send-ctrl-alt-delete-${index_tab}`)
- // mediator.subscribe(`send-ctrl-alt-delete-${index_tab}`, () => {
- // rfbRef.current?.sendCtrlAltDel()
- // message.success('发送成功')
- // })
- }
-
- var toConnect = function toConnect() {
- rfbRef.current = new rfb/* default */.Z(el.current, socketUrlRef.current, {
- credentials: {
- password: passwordRef.current
- },
- wsProtocols: ['binary'],
- resize: "scale",
- show_dot: true
- });
- rfbRef.current.removeEventListener('disconnect', onDisconnect);
- rfbRef.current.removeEventListener('connect', onConnect);
- rfbRef.current.removeEventListener('clipboard', onClipboardReceive);
- roRef.current = onLayout(rfbRef.current);
- rfbRef.current.viewOnly = params.view_only || false;
- if (window_vnc_url) {
- rfbRef.current.scaleViewport = true;
- } else {
- rfbRef.current.scaleViewport = params.scale || false;
- }
- rfbRef.current.scaleViewport = params.scale || true;
- rfbRef.current.showDotCursor = true;
- rfbRef.current.resizeSession = true;
- rfbRef.current.addEventListener('disconnect', onDisconnect);
- rfbRef.current.addEventListener('connect', onConnect);
- rfbRef.current.addEventListener('clipboard', onClipboardReceive);
- };
- function onClipboardReceive(e) {
- var rs = unicodeUnEscape(e.detail.text);
- dispatch({
- type: Types.SET_TRANSFER_CONTENT,
- payload: rs
- });
- }
- function onDisconnect() {
- if (window_vnc_url) {
- dispatch({
- type: Types.SET_LOADING,
- payload: true
- });
- setLinkNum(linkNum + 1);
- } else {
- clearTimeout(reConnectRef.current);
- if (loading) return;
- reConnectRef.current = setTimeout(function () {
- setLinkNum(linkNum + 1);
- }, 6000);
- }
- }
- (0,react.useEffect)(function () {
- mediator/* default.subscribe */.Z.subscribe("reset-linux-windows-vnc-".concat(index_tab), function () {
- setLinkNum(linkNum + 1);
- });
- if ((window_vnc_url || vnc_url || linux_vnc || virtual_machine) && el.current) {
- clearTimeout(timeout.current);
- if (instance_startup_type === 2) {
- doResize();
- }
- new Promise( /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
- var params, res, _res$data5, _res$data5$link_url, _res$data6, character, _res$data7, _res$data8, urlParser, protocol, searchParams, host;
- return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
- while (1) switch (_context4.prev = _context4.next) {
- case 0:
- params = getJsonFromUrl();
- _context4.next = 3;
- return getWindowVnc();
- case 3:
- res = _context4.sent;
- if (!(linux_vnc || virtual_machine)) {
- _context4.next = 11;
- break;
- }
- character = res !== null && res !== void 0 && (_res$data5 = res.data) !== null && _res$data5 !== void 0 && (_res$data5$link_url = _res$data5.link_url) !== null && _res$data5$link_url !== void 0 && _res$data5$link_url.includes('?') ? "&" : "?";
- iframeRef.current.src = (res === null || res === void 0 ? void 0 : (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.link_url) + character + 'time=' + Date.now();
- dispatch({
- type: Types.SET_LOADING,
- payload: false
- });
- return _context4.abrupt("return");
- case 11:
- if (window_vnc_url) {
- passwordRef.current = 'Edu123';
- socketUrlRef.current = decodeURIComponent(res === null || res === void 0 ? void 0 : (_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : _res$data7.link_url);
- } else {
- urlParser = new URL(decodeURIComponent(res === null || res === void 0 ? void 0 : (_res$data8 = res.data) === null || _res$data8 === void 0 ? void 0 : _res$data8.link_url)); //no IE11 support
- protocol = urlParser.protocol, searchParams = urlParser.searchParams, host = urlParser.host;
- passwordRef.current = searchParams.get('password');
- socketUrlRef.current = "".concat(protocol === 'https:' ? 'wss' : 'ws', "://").concat(host, "/").concat(params.path || 'websockify');
- }
- case 12:
- if (!(instance_startup_type === 2)) {
- _context4.next = 15;
- break;
- }
- setTimeout(function () {
- var _taskData$myshixun2;
- onLayout();
- iframeRef.current.style.cssText = iframeRef.current.style.cssText + "width:1920px;height:1080px;position:initial";
- iframeRef.current.src = "/rdp.html?tpiId=".concat(taskData === null || taskData === void 0 ? void 0 : (_taskData$myshixun2 = taskData.myshixun) === null || _taskData$myshixun2 === void 0 ? void 0 : _taskData$myshixun2.id, "&envId=").concat(shixun_environment_id, "&tpiType=").concat(tpi_type);
- dispatch({
- type: Types.SET_LOADING,
- payload: false
- });
- }, 5000);
- return _context4.abrupt("return");
- case 15:
- toConnect();
- case 16:
- case "end":
- return _context4.stop();
- }
- }, _callee4);
- })));
- var unsub = mediator/* default.subscribe */.Z.subscribe("vnc-reset-".concat(index_tab), function (text) {
- if (text === '取消') {
- dispatch({
- type: Types.SET_LOADING,
- payload: false
- });
- return;
- }
- setPercent(0);
- dispatch({
- type: Types.SET_STATE,
- payload: {
- loading: true,
- mes: text || '实验环境重置中'
- }
- });
- });
- var unsub2 = mediator/* default.subscribe */.Z.subscribe("send-ctrl-alt-delete-".concat(index_tab), function () {
- var _rfbRef$current2;
- (_rfbRef$current2 = rfbRef.current) === null || _rfbRef$current2 === void 0 ? void 0 : _rfbRef$current2.sendCtrlAltDel();
- message/* default.success */.ZP.success('发送成功');
- });
- var unSub3 = mediator/* default.subscribe */.Z.subscribe("show-clipboard-box-".concat(index_tab), function () {
- dispatch({
- type: Types.SHOW_CLIPBOARD_BOX,
- payload: true
- });
- });
- setPercent(0);
- return function () {
- var _rfbRef$current3, _rfbRef$current4, _rfbRef$current5, _roRef$current;
- (_rfbRef$current3 = rfbRef.current) === null || _rfbRef$current3 === void 0 ? void 0 : _rfbRef$current3.removeEventListener('disconnect', onDisconnect);
- (_rfbRef$current4 = rfbRef.current) === null || _rfbRef$current4 === void 0 ? void 0 : _rfbRef$current4.removeEventListener('connect', onConnect);
- (_rfbRef$current5 = rfbRef.current) === null || _rfbRef$current5 === void 0 ? void 0 : _rfbRef$current5.removeEventListener('clipboard', onClipboardReceive);
- unsub();
- unsub2();
- unSub3();
- el.current && ((_roRef$current = roRef.current) === null || _roRef$current === void 0 ? void 0 : _roRef$current.unobserve(el.current));
- };
- }
- }, [vnc_url, window_vnc_url, linux_vnc, linkNum, shixun_environment_id, tab_type]);
- function clipboardSend(_x3) {
- return _clipboardSend.apply(this, arguments);
- }
- function _clipboardSend() {
- _clipboardSend = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5(content) {
- var s, res, _rfbRef$current6;
- return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
- while (1) switch (_context5.prev = _context5.next) {
- case 0:
- if (!vnc_url) {
- _context5.next = 8;
- break;
- }
- s = content;
- _context5.next = 4;
- return (0,fetch/* default */.ZP)("/api/tasks/".concat(params.taskId, "/vnc_paste.json"), {
- method: "post",
- body: {
- content: Base64.encode(s),
- shixun_environment_id: shixun_environment_id
- }
- });
- case 4:
- res = _context5.sent;
- if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
- dispatch({
- type: Types.SET_TRANSFER_CONTENT,
- payload: content
- });
- message/* default.success */.ZP.success('保存成功!你可以在实验环境中粘贴该内容');
- onCancelClipboardBox();
- }
- _context5.next = 12;
- break;
- case 8:
- (_rfbRef$current6 = rfbRef.current) === null || _rfbRef$current6 === void 0 ? void 0 : _rfbRef$current6.clipboardPasteFrom(content);
- dispatch({
- type: Types.SET_TRANSFER_CONTENT,
- payload: content
- });
- message/* default.success */.ZP.success('保存成功!你可以在实验环境中粘贴该内容');
- onCancelClipboardBox();
- case 12:
- case "end":
- return _context5.stop();
- }
- }, _callee5);
- }));
- return _clipboardSend.apply(this, arguments);
- }
- function doResize() {
- // function doResize(event, ui) {
- var scale, origin;
- scale = Math.min(document.getElementById("task-right-panel").clientWidth / 1920, document.getElementById("task-right-panel").clientHeight / 1260);
- iframeRef.current.parentElement.className = "wh1080p";
- iframeRef.current.parentElement.style.cssText = "transform:scale(".concat(scale, ");transform-origin:center center");
- el.current.style.cssText = "translate(-50%, -50%) " + "scale(" + scale + ")";
- }
- (0,react.useEffect)(function () {
- if (percent == 0) {
- clearTimeout(timeout.current);
- increase();
- }
- }, [percent]);
- var increase = function increase() {
- if (percent > 99) {
- percent = 99;
- } else {
- percent = percent + 1;
- timeout.current = setTimeout(function () {
- increase();
- }, 1500);
- }
- if (percent < 100) setPercent(percent);
- };
- var showIframe = (0,react.useMemo)(function () {
- if (loading) {
- return 'none';
- }
- if (linux_vnc || virtual_machine || window_vnc_url && instance_startup_type === 2) {
- return 'block';
- } else {
- return 'none';
- }
- }, [linux_vnc, loading, virtual_machine, window_vnc_url]);
- return /*#__PURE__*/(0,jsx_runtime.jsxs)(react.Fragment, {
- children: [isLarge && /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
- className: "btn-vnc-resize",
- onClick: onResizeSet,
- children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
- className: "iconfont icon-tuichuquanping"
- })
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
- style: {
- width: "100%",
- height: "100%",
- overflow: "hidden",
- position: "absolute",
- display: showIframe === "block" ? "flex" : "none",
- alignItems: "center",
- justifyContent: "center",
- zIndex: 6
- },
- children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
- children: /*#__PURE__*/(0,jsx_runtime.jsx)("iframe", {
- style: {
- position: isLarge ? "fixed" : "absolute",
- left: 0,
- top: isLarge ? 40 : 0,
- width: "100%",
- height: "calc(100% - ".concat(isLarge ? "100px" : "0px", ")")
- },
- frameBorder: "0",
- ref: iframeRef,
- allowFullScreen: true
- })
- })
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- style: {
- position: isLarge ? "fixed" : "absolute",
- left: 0,
- top: isLarge ? 40 : 0,
- zIndex: 5,
- width: "100%",
- height: "calc(100% - ".concat(isLarge ? "100px" : "0px", ")")
- },
- className: "".concat(window_vnc_url ? "vnc-panel-wrapper-windows" : "vnc-panel-wrapper", " ").concat(isLarge ? 'full-screen' : ''),
- children: [loading ? /*#__PURE__*/(0,jsx_runtime.jsx)(Spinner/* default */.Z, {
- message: mes,
- style: {
- color: '#0152d9'
- },
- children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
- className: "tc",
- style: {
- width: 500,
- margin: "0 auto",
- color: "#FFF"
- },
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(progress/* default */.Z, {
- percent: percent,
- format: function format(p) {
- return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
- className: "c-white",
- children: [p, "%"]
- });
- }
- })
- })
- }) : null, /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
- ref: el,
- className: "vnc-panel ".concat(loading ? "hidden zIndexf1" : "animated fadeIn")
- })]
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(components_modal/* default */.Z, {
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
- title: "\u590D\u5236\u7C98\u8D34",
- centered: true,
- maskClosable: false,
- open: showClipBoardBox,
- onCancel: onCancelClipboardBox,
- footer: null,
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(clipboard_box, {
- onCancel: onCancelClipboardBox,
- onSave: clipboardSend,
- content: transferContent
- })
- })
- })]
- });
-});
-
-/***/ }),
-
-/***/ 77441:
-/*!***********************************************************!*\
- !*** ./src/pages/tasks/xterm-panel/index.jsx + 1 modules ***!
- \***********************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ xterm_panel; }
-});
-
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
-var regeneratorRuntime = __webpack_require__(17061);
-var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectSpread2.js
-var objectSpread2 = __webpack_require__(42122);
-var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
-var asyncToGenerator = __webpack_require__(17156);
-var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js
-var createForOfIteratorHelper = __webpack_require__(74704);
-var createForOfIteratorHelper_default = /*#__PURE__*/__webpack_require__.n(createForOfIteratorHelper);
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
-var slicedToArray = __webpack_require__(27424);
-var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-// EXTERNAL MODULE: ./node_modules/js-base64/base64.js
-var base64 = __webpack_require__(19575);
-// EXTERNAL MODULE: ./node_modules/xterm/lib/xterm.js
-var xterm = __webpack_require__(12320);
-// EXTERNAL MODULE: ./node_modules/xterm/css/xterm.css
-var css_xterm = __webpack_require__(89629);
-;// CONCATENATED MODULE: ./src/pages/tasks/xterm-panel/index.less?modules
-// extracted by mini-css-extract-plugin
-/* harmony default export */ var xterm_panelmodules = ({"xterm-panel":"xterm-panel___XA0p9"});
-// EXTERNAL MODULE: ./src/components/mediator.js
-var mediator = __webpack_require__(91562);
-// EXTERNAL MODULE: ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
-var ResizeObserver_es = __webpack_require__(91033);
-// EXTERNAL MODULE: ./src/pages/tasks/service/index.js
-var service = __webpack_require__(66446);
-// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
-var _umi_production_exports = __webpack_require__(89214);
-// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
-var jsx_runtime = __webpack_require__(85893);
-;// CONCATENATED MODULE: ./src/pages/tasks/xterm-panel/index.jsx
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-var TimeTicket = 30000;
-
-//建立 websockt 来交互
-//根据容器大小计算行数和列数并做到自适应
-//socket 与 term 需要分开初始化 因为socket 可能重置连接
-//mediator 监听消息,如果和id匹配,则建立连接,重置,或关闭连接
-
-/* harmony default export */ var xterm_panel = (function (_ref) {
- var _ref$itemData = _ref.itemData,
- itemData = _ref$itemData === void 0 ? {} : _ref$itemData,
- game = _ref.game,
- myshixun = _ref.myshixun;
- var params = (0,_umi_production_exports.useParams)();
- var _useState = (0,react.useState)(null),
- _useState2 = slicedToArray_default()(_useState, 2),
- term = _useState2[0],
- setTerm = _useState2[1];
- var _useState3 = (0,react.useState)({}),
- _useState4 = slicedToArray_default()(_useState3, 2),
- sshConfigData = _useState4[0],
- setSshConfigData = _useState4[1];
- var link_url = sshConfigData.link_url,
- password = sshConfigData.password,
- port = sshConfigData.port;
- var el = (0,react.useRef)();
- var socket = (0,react.useRef)();
- var isFirstConnected = (0,react.useRef)(false);
- var shixun_environment_id = itemData.shixun_environment_id,
- position = itemData.position,
- tab_type = itemData.tab_type,
- index_tab = itemData.index_tab;
- (0,react.useEffect)(function () {
- getInitData();
- }, []);
- function getColsAndRows(width, height, term) {
- var w = term._core._renderService.dimensions.actualCellWidth || 9.5;
- var h = term._core._renderService.dimensions.actualCellHeight || 18;
- var rows = Math.floor(height / h);
- var cols = Math.floor(width / w);
- return [cols, rows];
- }
- function onLayout(term, el) {
- var ro = new ResizeObserver_es/* default */.Z(function (entries) {
- var _iterator = createForOfIteratorHelper_default()(entries),
- _step;
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- var entry = _step.value;
- if (entry.target.offsetHeight > 0 || entry.target.offsetWidth > 0) {
- var _getColsAndRows = getColsAndRows(entry.target.offsetWidth, entry.target.offsetHeight, term),
- _getColsAndRows2 = slicedToArray_default()(_getColsAndRows, 2),
- cols = _getColsAndRows2[0],
- rows = _getColsAndRows2[1];
- console.log('cols, rows', cols, rows);
- mediator/* default.publish */.Z.publish("ssh-xterm-resize-".concat(index_tab), {
- columns: cols,
- rows: rows,
- width: entry.target.offsetWidth,
- height: entry.target.offsetHeight
- });
- term.resize(cols, rows);
- var data1 = base64.Base64.decode('IA==');
- var data = base64.Base64.decode('CBtbSw==');
- term.write(data1);
- term.write(data);
- }
- }
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
- });
- ro.observe(el);
- return ro;
- }
- function getInitData() {
- return _getInitData.apply(this, arguments);
- } //term init
- function _getInitData() {
- _getInitData = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
- var _response$data, _response$data$data_l;
- var response, _response$data2, _response$data3;
- return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
- while (1) switch (_context3.prev = _context3.next) {
- case 0:
- _context3.next = 2;
- return (0,service/* startInit */.sA)(myshixun === null || myshixun === void 0 ? void 0 : myshixun.identifier, {
- shixun_environment_id: shixun_environment_id,
- tab_type: tab_type,
- game_id: game.id
- });
- case 2:
- response = _context3.sent;
- if (!(response !== null && response !== void 0 && (_response$data = response.data) !== null && _response$data !== void 0 && (_response$data$data_l = _response$data.data_list) !== null && _response$data$data_l !== void 0 && _response$data$data_l.length)) {
- _context3.next = 6;
- break;
- }
- mediator/* default.publish */.Z.publish('pod-restrict-data', {
- identifier: response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.identifier,
- data_list: response === null || response === void 0 ? void 0 : (_response$data3 = response.data) === null || _response$data3 === void 0 ? void 0 : _response$data3.data_list
- });
- return _context3.abrupt("return");
- case 6:
- if (!((response === null || response === void 0 ? void 0 : response.status) === -3)) {
- _context3.next = 8;
- break;
- }
- return _context3.abrupt("return", new Promise( /*#__PURE__*/function () {
- var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(resolve, reject) {
- return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
- while (1) switch (_context2.prev = _context2.next) {
- case 0:
- Modal.confirm({
- content: '检测到您已经开启了其他实验环境,请先关闭环境后,再连接',
- okText: '立即关闭',
- cancelText: '稍后关闭',
- onOk: function () {
- var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
- return regeneratorRuntime_default()().wrap(function _callee$(_context) {
- while (1) switch (_context.prev = _context.next) {
- case 0:
- _context.next = 2;
- return closeWindowsVnc(params.taskId, response === null || response === void 0 ? void 0 : response.message);
- case 2:
- init();
- return _context.abrupt("return");
- case 4:
- case "end":
- return _context.stop();
- }
- }, _callee);
- }));
- function onOk() {
- return _onOk.apply(this, arguments);
- }
- return onOk;
- }()
- });
- case 1:
- case "end":
- return _context2.stop();
- }
- }, _callee2);
- }));
- return function (_x, _x2) {
- return _ref2.apply(this, arguments);
- };
- }()));
- case 8:
- if ((response === null || response === void 0 ? void 0 : response.status) === 0) {
- mediator/* default.publish */.Z.publish('update-windows-time', response === null || response === void 0 ? void 0 : response.data);
- mediator/* default.publish */.Z.publish('send-tabs-result-data', objectSpread2_default()(objectSpread2_default()({}, response === null || response === void 0 ? void 0 : response.data), {}, {
- index_tab: index_tab
- }));
- setSshConfigData(response.data);
- setTimeout(function () {
- return mediator/* default.publish */.Z.publish("create-socket-".concat(index_tab));
- }, 300);
- }
- case 9:
- case "end":
- return _context3.stop();
- }
- }, _callee3);
- }));
- return _getInitData.apply(this, arguments);
- }
- (0,react.useEffect)(function () {
- if (el.current && link_url) {
- var _term = new xterm.Terminal({
- fontSize: 16,
- rendererType: 'dom'
- });
- _term.open(el.current);
- _term.onData(function (data) {
- if (socket.current) {
- if (socket.current.readyState === 1) {
- socket.current.send(JSON.stringify({
- tp: 'client',
- data: data
- }));
- }
- }
- });
- _term.write('Connecting...');
- setTerm(_term);
- var ro = onLayout(_term, el.current);
- return function () {
- _term.dispose();
- el.current && (ro === null || ro === void 0 ? void 0 : ro.unobserve(el.current));
- };
- }
- }, [link_url, el.current]);
- (0,react.useEffect)(function () {
- if (term && link_url) {
- var createSocket = function createSocket() {
- var socketInstance = new WebSocket(link_url);
- socket.current = socketInstance;
- socketInstance.onopen = function () {
- var container = term.element.parentElement;
- if (container) {
- var width = container.offsetWidth;
- var height = container.offsetHeight;
- console.log('init', {
- tp: 'init',
- data: objectSpread2_default()(objectSpread2_default()({}, sshConfigData), {}, {
- secret: password,
- width: width,
- height: height,
- rows: term.rows,
- columns: term.cols
- })
- });
- socketInstance.send(JSON.stringify({
- tp: 'init',
- data: objectSpread2_default()(objectSpread2_default()({}, sshConfigData), {}, {
- secret: password,
- width: width,
- height: height,
- rows: term.rows,
- columns: term.cols
- })
- }));
- }
- term.focus();
- };
- socketInstance.onerror = function (error) {
- console.log('------in socket error----', error, socketInstance, link_url);
- };
- socketInstance.onmessage = function (event) {
- if (!isFirstConnected.current) {
- term.write('\r');
- // term.focus()
- setTimeout(function () {
- // term.clear();
- }, 1000);
- }
- isFirstConnected.current = true;
- console.log('event:', event);
- var data = base64.Base64.decode(event.data.toString());
- var w = term._core._renderService.dimensions.actualCellWidth || 9.5;
- console.log('data:', data, w, term);
- term.write(data);
- };
- var tid = setInterval(function () {
- if (socket.current) {
- var _socket$current;
- (_socket$current = socket.current) === null || _socket$current === void 0 ? void 0 : _socket$current.send(JSON.stringify({
- tp: 'h'
- }));
- }
- }, TimeTicket);
- socketInstance.onclose = function (evt) {
- if (tid) {
- clearInterval(tid);
- }
- console.log(tid, 'tid', index_tab);
- term.write('\r\nconnection closed');
- };
- };
- var unSubCreate = mediator/* default.subscribe */.Z.subscribe("create-socket-".concat(index_tab), function () {
- createSocket();
- });
- var unSubResize = mediator/* default.subscribe */.Z.subscribe("ssh-xterm-resize-".concat(index_tab), function (option) {
- if (socket.current && socket.current.readyState === 1) {
- socket.current.send(JSON.stringify({
- tp: 'resize',
- data: objectSpread2_default()({}, option)
- }));
- }
- });
- return function () {
- unSubCreate();
- unSubResize();
- if (socket.current) {
- socket.current.close();
- isFirstConnected.current = false;
- }
- };
- }
- }, [term, link_url, port]);
- return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
- ref: el,
- className: xterm_panelmodules["xterm-panel"],
- children: !link_url ? /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
- style: {
- color: '#fff'
- },
- children: "\u6B63\u5728\u8FDE\u63A5\u547D\u4EE4\u884C\u670D\u52A1..."
- }) : null
- });
-});
-
-/***/ }),
-
-/***/ 45954:
-/*!*********************************************!*\
- !*** ./src/pages/tasks/vnc-view/index.less ***!
- \*********************************************/
-/***/ (function() {
-
-// extracted by mini-css-extract-plugin
-
-
-/***/ })
-
-}]);
\ No newline at end of file
diff --git a/79713.async.js b/79713.async.js
index 132e4a3bc9..a9ff2a718b 100644
--- a/79713.async.js
+++ b/79713.async.js
@@ -1,19 +1,6 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[79713,95870,58269,89626,71514],{
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
-/***/ }),
-
/***/ 77171:
/*!**********************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/ArrowDownOutlined.js + 1 modules ***!
@@ -1122,33 +1109,6 @@ EyeOutlined_EyeOutlined.displayName = 'EyeOutlined';
/***/ }),
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
-/***/ }),
-
/***/ 34243:
/*!**********************************************************!*\
!*** ./node_modules/rc-overflow/es/index.js + 4 modules ***!
diff --git a/89626.async.js b/89626.async.js
index 8e5c9095e1..b67af4b861 100644
--- a/89626.async.js
+++ b/89626.async.js
@@ -1,19 +1,6 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[89626,71514],{
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
-/***/ }),
-
/***/ 13013:
/*!************************************************!*\
!*** ./node_modules/antd/es/dropdown/index.js ***!
@@ -1081,33 +1068,6 @@ EyeOutlined_EyeOutlined.displayName = 'EyeOutlined';
/***/ }),
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
-/***/ }),
-
/***/ 34243:
/*!**********************************************************!*\
!*** ./node_modules/rc-overflow/es/index.js + 4 modules ***!
diff --git a/32415.async.js b/89683.async.js
similarity index 96%
rename from 32415.async.js
rename to 89683.async.js
index 70a784307c..5843d698c4 100644
--- a/32415.async.js
+++ b/89683.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[32415],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[89683],{
/***/ 26554:
/*!*******************************************************************!*\
@@ -25,6 +25,19 @@ var RightOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 8
/* harmony default export */ __webpack_exports__["Z"] = (RightOutlined);
+/***/ }),
+
+/***/ 509:
+/*!*********************************************************************!*\
+ !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
+ \*********************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__) {
+
+// This icon file is generated automatically.
+var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
+/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
+
+
/***/ }),
/***/ 98787:
@@ -1412,6 +1425,33 @@ RightOutlined.displayName = 'RightOutlined';
/***/ }),
+/***/ 25783:
+/*!*************************************************************************************!*\
+ !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
+ \*************************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
+/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
+
+// GENERATE BY ./scripts/generate.ts
+// DON NOT EDIT IT MANUALLY
+
+
+
+var SearchOutlined = function SearchOutlined(props, ref) {
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
+ ref: ref,
+ icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
+ }));
+};
+SearchOutlined.displayName = 'SearchOutlined';
+/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
+
+/***/ }),
+
/***/ 48555:
/*!*****************************************************************!*\
!*** ./node_modules/rc-resize-observer/es/index.js + 4 modules ***!
diff --git a/91890.async.js b/91890.async.js
new file mode 100644
index 0000000000..8111d851e3
--- /dev/null
+++ b/91890.async.js
@@ -0,0 +1,2034 @@
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[91890,89626,71514],{
+
+/***/ 57727:
+/*!************************************************************************!*\
+ !*** ./node_modules/@ant-design/icons-svg/es/asn/CaretDownOutlined.js ***!
+ \************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__) {
+
+"use strict";
+// This icon file is generated automatically.
+var CaretDownOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" } }] }, "name": "caret-down", "theme": "outlined" };
+/* harmony default export */ __webpack_exports__["Z"] = (CaretDownOutlined);
+
+
+/***/ }),
+
+/***/ 32857:
+/*!********************************************************************!*\
+ !*** ./node_modules/@ant-design/icons-svg/es/asn/CheckOutlined.js ***!
+ \********************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__) {
+
+"use strict";
+// This icon file is generated automatically.
+var CheckOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, "name": "check", "theme": "outlined" };
+/* harmony default export */ __webpack_exports__["Z"] = (CheckOutlined);
+
+
+/***/ }),
+
+/***/ 95025:
+/*!**********************************************************************!*\
+ !*** ./node_modules/@ant-design/icons/es/icons/CaretDownOutlined.js ***!
+ \**********************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var _ant_design_icons_svg_es_asn_CaretDownOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/CaretDownOutlined */ 57727);
+/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 7918);
+
+// GENERATE BY ./scripts/generate.ts
+// DON NOT EDIT IT MANUALLY
+
+
+
+var CaretDownOutlined = function CaretDownOutlined(props, ref) {
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
+ ref: ref,
+ icon: _ant_design_icons_svg_es_asn_CaretDownOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
+ }));
+};
+CaretDownOutlined.displayName = 'CaretDownOutlined';
+/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(CaretDownOutlined));
+
+/***/ }),
+
+/***/ 28508:
+/*!******************************************************************!*\
+ !*** ./node_modules/@ant-design/icons/es/icons/CloseOutlined.js ***!
+ \******************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var _ant_design_icons_svg_es_asn_CloseOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/CloseOutlined */ 89503);
+/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 7918);
+
+// GENERATE BY ./scripts/generate.ts
+// DON NOT EDIT IT MANUALLY
+
+
+
+var CloseOutlined = function CloseOutlined(props, ref) {
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
+ ref: ref,
+ icon: _ant_design_icons_svg_es_asn_CloseOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
+ }));
+};
+CloseOutlined.displayName = 'CloseOutlined';
+/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(CloseOutlined));
+
+/***/ }),
+
+/***/ 69753:
+/*!*********************************************************************!*\
+ !*** ./node_modules/@ant-design/icons/es/icons/DownloadOutlined.js ***!
+ \*********************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var _ant_design_icons_svg_es_asn_DownloadOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/DownloadOutlined */ 49495);
+/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 7918);
+
+// GENERATE BY ./scripts/generate.ts
+// DON NOT EDIT IT MANUALLY
+
+
+
+var DownloadOutlined = function DownloadOutlined(props, ref) {
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
+ ref: ref,
+ icon: _ant_design_icons_svg_es_asn_DownloadOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
+ }));
+};
+DownloadOutlined.displayName = 'DownloadOutlined';
+/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(DownloadOutlined));
+
+/***/ }),
+
+/***/ 77123:
+/*!*****************************************************************************!*\
+ !*** ./node_modules/@ant-design/icons/es/icons/FormOutlined.js + 1 modules ***!
+ \*****************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, {
+ "Z": function() { return /* binding */ icons_FormOutlined; }
+});
+
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
+var objectSpread2 = __webpack_require__(1413);
+// EXTERNAL MODULE: ./node_modules/react/index.js
+var react = __webpack_require__(67294);
+;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/FormOutlined.js
+// This icon file is generated automatically.
+var FormOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z" } }, { "tag": "path", "attrs": { "d": "M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z" } }] }, "name": "form", "theme": "outlined" };
+/* harmony default export */ var asn_FormOutlined = (FormOutlined);
+
+// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 6 modules
+var AntdIcon = __webpack_require__(7918);
+;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/FormOutlined.js
+
+// GENERATE BY ./scripts/generate.ts
+// DON NOT EDIT IT MANUALLY
+
+
+
+var FormOutlined_FormOutlined = function FormOutlined(props, ref) {
+ return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
+ ref: ref,
+ icon: asn_FormOutlined
+ }));
+};
+FormOutlined_FormOutlined.displayName = 'FormOutlined';
+/* harmony default export */ var icons_FormOutlined = (/*#__PURE__*/react.forwardRef(FormOutlined_FormOutlined));
+
+/***/ }),
+
+/***/ 33160:
+/*!*******************************************************************************!*\
+ !*** ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js + 1 modules ***!
+ \*******************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, {
+ "Z": function() { return /* binding */ icons_ReloadOutlined; }
+});
+
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
+var objectSpread2 = __webpack_require__(1413);
+// EXTERNAL MODULE: ./node_modules/react/index.js
+var react = __webpack_require__(67294);
+;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/ReloadOutlined.js
+// This icon file is generated automatically.
+var ReloadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z" } }] }, "name": "reload", "theme": "outlined" };
+/* harmony default export */ var asn_ReloadOutlined = (ReloadOutlined);
+
+// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 6 modules
+var AntdIcon = __webpack_require__(7918);
+;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js
+
+// GENERATE BY ./scripts/generate.ts
+// DON NOT EDIT IT MANUALLY
+
+
+
+var ReloadOutlined_ReloadOutlined = function ReloadOutlined(props, ref) {
+ return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
+ ref: ref,
+ icon: asn_ReloadOutlined
+ }));
+};
+ReloadOutlined_ReloadOutlined.displayName = 'ReloadOutlined';
+/* harmony default export */ var icons_ReloadOutlined = (/*#__PURE__*/react.forwardRef(ReloadOutlined_ReloadOutlined));
+
+/***/ }),
+
+/***/ 57838:
+/*!************************************************************!*\
+ !*** ./node_modules/antd/es/_util/hooks/useForceUpdate.js ***!
+ \************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "Z": function() { return /* binding */ useForceUpdate; }
+/* harmony export */ });
+/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ 97685);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
+
+
+function useForceUpdate() {
+ var _React$useReducer = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(function (x) {
+ return x + 1;
+ }, 0),
+ _React$useReducer2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_React$useReducer, 2),
+ forceUpdate = _React$useReducer2[1];
+ return forceUpdate;
+}
+
+/***/ }),
+
+/***/ 27049:
+/*!***********************************************!*\
+ !*** ./node_modules/antd/es/divider/index.js ***!
+ \***********************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ 87462);
+/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ 4942);
+/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 94184);
+/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config-provider */ 53124);
+
+
+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;
+};
+
+
+
+
+var Divider = function Divider(props) {
+ var _classNames;
+ var _React$useContext = react__WEBPACK_IMPORTED_MODULE_1__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_2__/* .ConfigContext */ .E_),
+ getPrefixCls = _React$useContext.getPrefixCls,
+ direction = _React$useContext.direction;
+ var customizePrefixCls = props.prefixCls,
+ _props$type = props.type,
+ type = _props$type === void 0 ? 'horizontal' : _props$type,
+ _props$orientation = props.orientation,
+ orientation = _props$orientation === void 0 ? 'center' : _props$orientation,
+ orientationMargin = props.orientationMargin,
+ className = props.className,
+ children = props.children,
+ dashed = props.dashed,
+ plain = props.plain,
+ restProps = __rest(props, ["prefixCls", "type", "orientation", "orientationMargin", "className", "children", "dashed", "plain"]);
+ var prefixCls = getPrefixCls('divider', customizePrefixCls);
+ var orientationPrefix = orientation.length > 0 ? "-".concat(orientation) : orientation;
+ var hasChildren = !!children;
+ var hasCustomMarginLeft = orientation === 'left' && orientationMargin != null;
+ var hasCustomMarginRight = orientation === 'right' && orientationMargin != null;
+ var classString = classnames__WEBPACK_IMPORTED_MODULE_0___default()(prefixCls, "".concat(prefixCls, "-").concat(type), (_classNames = {}, (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-with-text"), hasChildren), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-with-text").concat(orientationPrefix), hasChildren), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-dashed"), !!dashed), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-plain"), !!plain), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-no-default-orientation-margin-left"), hasCustomMarginLeft), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-no-default-orientation-margin-right"), hasCustomMarginRight), _classNames), className);
+ var innerStyle = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)({}, hasCustomMarginLeft && {
+ marginLeft: orientationMargin
+ }), hasCustomMarginRight && {
+ marginRight: orientationMargin
+ });
+ // Warning children not work in vertical mode
+ if (false) {}
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)({
+ className: classString
+ }, restProps, {
+ role: "separator"
+ }), children && type !== 'vertical' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
+ className: "".concat(prefixCls, "-inner-text"),
+ style: innerStyle
+ }, children));
+};
+/* harmony default export */ __webpack_exports__["Z"] = (Divider);
+
+/***/ }),
+
+/***/ 98541:
+/*!*****************************************************************!*\
+ !*** ./node_modules/antd/es/divider/style/index.js + 1 modules ***!
+ \*****************************************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
+
+"use strict";
+
+// EXTERNAL MODULE: ./node_modules/antd/es/style/default.less
+var style_default = __webpack_require__(43146);
+;// CONCATENATED MODULE: ./node_modules/antd/es/divider/style/index.less
+// extracted by mini-css-extract-plugin
+
+;// CONCATENATED MODULE: ./node_modules/antd/es/divider/style/index.js
+
+
+
+/***/ }),
+
+/***/ 13013:
+/*!************************************************!*\
+ !*** ./node_modules/antd/es/dropdown/index.js ***!
+ \************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var _dropdown__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dropdown */ 18562);
+
+/* harmony default export */ __webpack_exports__["Z"] = (_dropdown__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z);
+
+/***/ }),
+
+/***/ 75008:
+/*!*********************************************************!*\
+ !*** ./node_modules/antd/es/input/index.js + 5 modules ***!
+ \*********************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, {
+ "Z": function() { return /* binding */ input; }
+});
+
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
+var esm_extends = __webpack_require__(87462);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
+var defineProperty = __webpack_require__(4942);
+// EXTERNAL MODULE: ./node_modules/classnames/index.js
+var classnames = __webpack_require__(94184);
+var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
+// EXTERNAL MODULE: ./node_modules/react/index.js
+var react = __webpack_require__(67294);
+// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
+var context = __webpack_require__(53124);
+// EXTERNAL MODULE: ./node_modules/antd/es/form/context.js
+var form_context = __webpack_require__(65223);
+;// CONCATENATED MODULE: ./node_modules/antd/es/input/Group.js
+
+
+
+
+
+
+
+var Group = function Group(props) {
+ var _classNames;
+ var _useContext = (0,react.useContext)(context/* ConfigContext */.E_),
+ getPrefixCls = _useContext.getPrefixCls,
+ direction = _useContext.direction;
+ var customizePrefixCls = props.prefixCls,
+ _props$className = props.className,
+ className = _props$className === void 0 ? '' : _props$className;
+ var prefixCls = getPrefixCls('input-group', customizePrefixCls);
+ var cls = classnames_default()(prefixCls, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-lg"), props.size === 'large'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-sm"), props.size === 'small'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-compact"), props.compact), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
+ var formItemContext = (0,react.useContext)(form_context/* FormItemInputContext */.aM);
+ var groupFormItemContext = (0,react.useMemo)(function () {
+ return (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, formItemContext), {
+ isFormItemInput: false
+ });
+ }, [formItemContext]);
+ return /*#__PURE__*/react.createElement("span", {
+ className: cls,
+ style: props.style,
+ onMouseEnter: props.onMouseEnter,
+ onMouseLeave: props.onMouseLeave,
+ onFocus: props.onFocus,
+ onBlur: props.onBlur
+ }, /*#__PURE__*/react.createElement(form_context/* FormItemInputContext.Provider */.aM.Provider, {
+ value: groupFormItemContext
+ }, props.children));
+};
+/* harmony default export */ var input_Group = (Group);
+// EXTERNAL MODULE: ./node_modules/antd/es/input/Input.js + 1 modules
+var Input = __webpack_require__(82586);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
+var slicedToArray = __webpack_require__(97685);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
+var esm_typeof = __webpack_require__(71002);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
+var objectSpread2 = __webpack_require__(1413);
+;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.js
+// This icon file is generated automatically.
+var EyeInvisibleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { "tag": "path", "attrs": { "d": "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, "name": "eye-invisible", "theme": "outlined" };
+/* harmony default export */ var asn_EyeInvisibleOutlined = (EyeInvisibleOutlined);
+
+// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 3 modules
+var AntdIcon = __webpack_require__(93771);
+;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/EyeInvisibleOutlined.js
+
+// GENERATE BY ./scripts/generate.ts
+// DON NOT EDIT IT MANUALLY
+
+
+
+var EyeInvisibleOutlined_EyeInvisibleOutlined = function EyeInvisibleOutlined(props, ref) {
+ return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
+ ref: ref,
+ icon: asn_EyeInvisibleOutlined
+ }));
+};
+EyeInvisibleOutlined_EyeInvisibleOutlined.displayName = 'EyeInvisibleOutlined';
+/* harmony default export */ var icons_EyeInvisibleOutlined = (/*#__PURE__*/react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined));
+// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
+var EyeOutlined = __webpack_require__(7124);
+// EXTERNAL MODULE: ./node_modules/rc-util/es/omit.js
+var omit = __webpack_require__(98423);
+// EXTERNAL MODULE: ./node_modules/rc-util/es/ref.js
+var es_ref = __webpack_require__(42550);
+// EXTERNAL MODULE: ./node_modules/antd/es/input/hooks/useRemovePasswordTimeout.js
+var useRemovePasswordTimeout = __webpack_require__(72922);
+;// CONCATENATED MODULE: ./node_modules/antd/es/input/Password.js
+
+
+
+
+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;
+};
+
+
+
+
+
+
+
+
+
+
+var defaultIconRender = function defaultIconRender(visible) {
+ return visible ? /*#__PURE__*/react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/react.createElement(icons_EyeInvisibleOutlined, null);
+};
+var ActionMap = {
+ click: 'onClick',
+ hover: 'onMouseOver'
+};
+var Password = /*#__PURE__*/react.forwardRef(function (props, ref) {
+ var _props$visibilityTogg = props.visibilityToggle,
+ visibilityToggle = _props$visibilityTogg === void 0 ? true : _props$visibilityTogg;
+ var visibilityControlled = (0,esm_typeof/* default */.Z)(visibilityToggle) === 'object' && visibilityToggle.visible !== undefined;
+ var _useState = (0,react.useState)(function () {
+ return visibilityControlled ? visibilityToggle.visible : false;
+ }),
+ _useState2 = (0,slicedToArray/* default */.Z)(_useState, 2),
+ visible = _useState2[0],
+ setVisible = _useState2[1];
+ var inputRef = (0,react.useRef)(null);
+ react.useEffect(function () {
+ if (visibilityControlled) {
+ setVisible(visibilityToggle.visible);
+ }
+ }, [visibilityControlled, visibilityToggle]);
+ // Remove Password value
+ var removePasswordTimeout = (0,useRemovePasswordTimeout/* default */.Z)(inputRef);
+ var onVisibleChange = function onVisibleChange() {
+ var disabled = props.disabled;
+ if (disabled) {
+ return;
+ }
+ if (visible) {
+ removePasswordTimeout();
+ }
+ setVisible(function (prevState) {
+ var _a;
+ var newState = !prevState;
+ if ((0,esm_typeof/* default */.Z)(visibilityToggle) === 'object') {
+ (_a = visibilityToggle.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(visibilityToggle, newState);
+ }
+ return newState;
+ });
+ };
+ var getIcon = function getIcon(prefixCls) {
+ var _iconProps;
+ var _props$action = props.action,
+ action = _props$action === void 0 ? 'click' : _props$action,
+ _props$iconRender = props.iconRender,
+ iconRender = _props$iconRender === void 0 ? defaultIconRender : _props$iconRender;
+ var iconTrigger = ActionMap[action] || '';
+ var icon = iconRender(visible);
+ var iconProps = (_iconProps = {}, (0,defineProperty/* default */.Z)(_iconProps, iconTrigger, onVisibleChange), (0,defineProperty/* default */.Z)(_iconProps, "className", "".concat(prefixCls, "-icon")), (0,defineProperty/* default */.Z)(_iconProps, "key", 'passwordIcon'), (0,defineProperty/* default */.Z)(_iconProps, "onMouseDown", function onMouseDown(e) {
+ // Prevent focused state lost
+ // https://github.com/ant-design/ant-design/issues/15173
+ e.preventDefault();
+ }), (0,defineProperty/* default */.Z)(_iconProps, "onMouseUp", function onMouseUp(e) {
+ // Prevent caret position change
+ // https://github.com/ant-design/ant-design/issues/23524
+ e.preventDefault();
+ }), _iconProps);
+ return /*#__PURE__*/react.cloneElement( /*#__PURE__*/react.isValidElement(icon) ? icon : /*#__PURE__*/react.createElement("span", null, icon), iconProps);
+ };
+ var renderPassword = function renderPassword(_ref) {
+ var getPrefixCls = _ref.getPrefixCls;
+ var className = props.className,
+ customizePrefixCls = props.prefixCls,
+ customizeInputPrefixCls = props.inputPrefixCls,
+ size = props.size,
+ restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
+ var inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
+ var prefixCls = getPrefixCls('input-password', customizePrefixCls);
+ var suffixIcon = visibilityToggle && getIcon(prefixCls);
+ var inputClassName = classnames_default()(prefixCls, className, (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-").concat(size), !!size));
+ var omittedProps = (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, (0,omit/* default */.Z)(restProps, ['suffix', 'iconRender', 'visibilityToggle'])), {
+ type: visible ? 'text' : 'password',
+ className: inputClassName,
+ prefixCls: inputPrefixCls,
+ suffix: suffixIcon
+ });
+ if (size) {
+ omittedProps.size = size;
+ }
+ return /*#__PURE__*/react.createElement(Input/* default */.ZP, (0,esm_extends/* default */.Z)({
+ ref: (0,es_ref/* composeRef */.sQ)(ref, inputRef)
+ }, omittedProps));
+ };
+ return /*#__PURE__*/react.createElement(context/* ConfigConsumer */.C, null, renderPassword);
+});
+if (false) {}
+/* harmony default export */ var input_Password = (Password);
+// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js
+var SearchOutlined = __webpack_require__(25783);
+// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
+var es_button = __webpack_require__(71577);
+// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/SizeContext.js
+var SizeContext = __webpack_require__(97647);
+// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js
+var Compact = __webpack_require__(4173);
+// EXTERNAL MODULE: ./node_modules/antd/es/_util/reactNode.js
+var reactNode = __webpack_require__(96159);
+;// CONCATENATED MODULE: ./node_modules/antd/es/input/Search.js
+
+
+var Search_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;
+};
+
+
+
+
+
+
+
+
+
+
+var Search = /*#__PURE__*/react.forwardRef(function (props, ref) {
+ var _classNames;
+ var customizePrefixCls = props.prefixCls,
+ customizeInputPrefixCls = props.inputPrefixCls,
+ className = props.className,
+ customizeSize = props.size,
+ suffix = props.suffix,
+ _props$enterButton = props.enterButton,
+ enterButton = _props$enterButton === void 0 ? false : _props$enterButton,
+ addonAfter = props.addonAfter,
+ loading = props.loading,
+ disabled = props.disabled,
+ customOnSearch = props.onSearch,
+ customOnChange = props.onChange,
+ onCompositionStart = props.onCompositionStart,
+ onCompositionEnd = props.onCompositionEnd,
+ restProps = Search_rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]);
+ var _React$useContext = react.useContext(context/* ConfigContext */.E_),
+ getPrefixCls = _React$useContext.getPrefixCls,
+ direction = _React$useContext.direction;
+ var contextSize = react.useContext(SizeContext/* default */.Z);
+ var composedRef = react.useRef(false);
+ var prefixCls = getPrefixCls('input-search', customizePrefixCls);
+ var inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
+ var _useCompactItemContex = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction),
+ compactSize = _useCompactItemContex.compactSize;
+ var size = compactSize || customizeSize || contextSize;
+ var inputRef = react.useRef(null);
+ var onChange = function onChange(e) {
+ if (e && e.target && e.type === 'click' && customOnSearch) {
+ customOnSearch(e.target.value, e);
+ }
+ if (customOnChange) {
+ customOnChange(e);
+ }
+ };
+ var onMouseDown = function onMouseDown(e) {
+ var _a;
+ if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) {
+ e.preventDefault();
+ }
+ };
+ var onSearch = function onSearch(e) {
+ var _a, _b;
+ if (customOnSearch) {
+ customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e);
+ }
+ };
+ var onPressEnter = function onPressEnter(e) {
+ if (composedRef.current || loading) {
+ return;
+ }
+ onSearch(e);
+ };
+ var searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/react.createElement(SearchOutlined/* default */.Z, null) : null;
+ var btnClassName = "".concat(prefixCls, "-button");
+ var button;
+ var enterButtonAsElement = enterButton || {};
+ var isAntdButton = enterButtonAsElement.type && enterButtonAsElement.type.__ANT_BUTTON === true;
+ if (isAntdButton || enterButtonAsElement.type === 'button') {
+ button = (0,reactNode/* cloneElement */.Tm)(enterButtonAsElement, (0,esm_extends/* default */.Z)({
+ onMouseDown: onMouseDown,
+ onClick: function onClick(e) {
+ var _a, _b;
+ (_b = (_a = enterButtonAsElement === null || enterButtonAsElement === void 0 ? void 0 : enterButtonAsElement.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e);
+ onSearch(e);
+ },
+ key: 'enterButton'
+ }, isAntdButton ? {
+ className: btnClassName,
+ size: size
+ } : {}));
+ } else {
+ button = /*#__PURE__*/react.createElement(es_button/* default */.Z, {
+ className: btnClassName,
+ type: enterButton ? 'primary' : undefined,
+ size: size,
+ disabled: disabled,
+ key: "enterButton",
+ onMouseDown: onMouseDown,
+ onClick: onSearch,
+ loading: loading,
+ icon: searchIcon
+ }, enterButton);
+ }
+ if (addonAfter) {
+ button = [button, (0,reactNode/* cloneElement */.Tm)(addonAfter, {
+ key: 'addonAfter'
+ })];
+ }
+ var cls = classnames_default()(prefixCls, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-").concat(size), !!size), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-with-button"), !!enterButton), _classNames), className);
+ var handleOnCompositionStart = function handleOnCompositionStart(e) {
+ composedRef.current = true;
+ onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e);
+ };
+ var handleOnCompositionEnd = function handleOnCompositionEnd(e) {
+ composedRef.current = false;
+ onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e);
+ };
+ return /*#__PURE__*/react.createElement(Input/* default */.ZP, (0,esm_extends/* default */.Z)({
+ ref: (0,es_ref/* composeRef */.sQ)(inputRef, ref),
+ onPressEnter: onPressEnter
+ }, restProps, {
+ size: size,
+ onCompositionStart: handleOnCompositionStart,
+ onCompositionEnd: handleOnCompositionEnd,
+ prefixCls: inputPrefixCls,
+ addonAfter: button,
+ suffix: suffix,
+ onChange: onChange,
+ className: cls,
+ disabled: disabled
+ }));
+});
+if (false) {}
+/* harmony default export */ var input_Search = (Search);
+// EXTERNAL MODULE: ./node_modules/antd/es/input/TextArea.js + 1 modules
+var TextArea = __webpack_require__(80173);
+;// CONCATENATED MODULE: ./node_modules/antd/es/input/index.js
+
+
+
+
+
+var input_Input = Input/* default */.ZP;
+input_Input.Group = input_Group;
+input_Input.Search = input_Search;
+input_Input.TextArea = TextArea/* default */.Z;
+input_Input.Password = input_Password;
+/* harmony default export */ var input = (input_Input);
+
+/***/ }),
+
+/***/ 61460:
+/*!********************************************************!*\
+ !*** ./node_modules/antd/es/rate/index.js + 6 modules ***!
+ \********************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, {
+ "Z": function() { return /* binding */ rate; }
+});
+
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
+var esm_extends = __webpack_require__(87462);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
+var objectSpread2 = __webpack_require__(1413);
+// EXTERNAL MODULE: ./node_modules/react/index.js
+var react = __webpack_require__(67294);
+;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/StarFilled.js
+// This icon file is generated automatically.
+var StarFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" } }] }, "name": "star", "theme": "filled" };
+/* harmony default export */ var asn_StarFilled = (StarFilled);
+
+// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 3 modules
+var AntdIcon = __webpack_require__(93771);
+;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/StarFilled.js
+
+// GENERATE BY ./scripts/generate.ts
+// DON NOT EDIT IT MANUALLY
+
+
+
+var StarFilled_StarFilled = function StarFilled(props, ref) {
+ return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
+ ref: ref,
+ icon: asn_StarFilled
+ }));
+};
+StarFilled_StarFilled.displayName = 'StarFilled';
+/* harmony default export */ var icons_StarFilled = (/*#__PURE__*/react.forwardRef(StarFilled_StarFilled));
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
+var defineProperty = __webpack_require__(4942);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
+var classCallCheck = __webpack_require__(15671);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
+var createClass = __webpack_require__(43144);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
+var inherits = __webpack_require__(60136);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js + 1 modules
+var createSuper = __webpack_require__(51630);
+// EXTERNAL MODULE: ./node_modules/rc-util/es/Dom/findDOMNode.js
+var findDOMNode = __webpack_require__(34203);
+// EXTERNAL MODULE: ./node_modules/classnames/index.js
+var classnames = __webpack_require__(94184);
+var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
+// EXTERNAL MODULE: ./node_modules/rc-util/es/KeyCode.js
+var KeyCode = __webpack_require__(15105);
+;// CONCATENATED MODULE: ./node_modules/rc-rate/es/util.js
+function getScroll(w) {
+ var ret = w.pageXOffset;
+ var method = 'scrollLeft';
+
+ if (typeof ret !== 'number') {
+ var d = w.document; // ie6,7,8 standard mode
+
+ ret = d.documentElement[method];
+
+ if (typeof ret !== 'number') {
+ // quirks mode
+ ret = d.body[method];
+ }
+ }
+
+ return ret;
+}
+
+function getClientPosition(elem) {
+ var x;
+ var y;
+ var doc = elem.ownerDocument;
+ var body = doc.body;
+ var docElem = doc && doc.documentElement;
+ var box = elem.getBoundingClientRect();
+ x = box.left;
+ y = box.top;
+ x -= docElem.clientLeft || body.clientLeft || 0;
+ y -= docElem.clientTop || body.clientTop || 0;
+ return {
+ left: x,
+ top: y
+ };
+}
+
+function getOffsetLeft(el) {
+ var pos = getClientPosition(el);
+ var doc = el.ownerDocument; // Only IE use `parentWindow`
+
+ var w = doc.defaultView || doc.parentWindow;
+ pos.left += getScroll(w);
+ return pos.left;
+}
+;// CONCATENATED MODULE: ./node_modules/rc-rate/es/Star.js
+
+
+
+
+
+
+var Star = /*#__PURE__*/function (_React$Component) {
+ (0,inherits/* default */.Z)(Star, _React$Component);
+
+ var _super = (0,createSuper/* default */.Z)(Star);
+
+ function Star() {
+ var _this;
+
+ (0,classCallCheck/* default */.Z)(this, Star);
+
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+
+ _this = _super.call.apply(_super, [this].concat(args));
+
+ _this.onHover = function (e) {
+ var _this$props = _this.props,
+ onHover = _this$props.onHover,
+ index = _this$props.index;
+ onHover(e, index);
+ };
+
+ _this.onClick = function (e) {
+ var _this$props2 = _this.props,
+ onClick = _this$props2.onClick,
+ index = _this$props2.index;
+ onClick(e, index);
+ };
+
+ _this.onKeyDown = function (e) {
+ var _this$props3 = _this.props,
+ onClick = _this$props3.onClick,
+ index = _this$props3.index;
+
+ if (e.keyCode === 13) {
+ onClick(e, index);
+ }
+ };
+
+ return _this;
+ }
+
+ (0,createClass/* default */.Z)(Star, [{
+ key: "getClassName",
+ value: function getClassName() {
+ var _this$props4 = this.props,
+ prefixCls = _this$props4.prefixCls,
+ index = _this$props4.index,
+ value = _this$props4.value,
+ allowHalf = _this$props4.allowHalf,
+ focused = _this$props4.focused;
+ var starValue = index + 1;
+ var className = prefixCls;
+
+ if (value === 0 && index === 0 && focused) {
+ className += " ".concat(prefixCls, "-focused");
+ } else if (allowHalf && value + 0.5 >= starValue && value < starValue) {
+ className += " ".concat(prefixCls, "-half ").concat(prefixCls, "-active");
+
+ if (focused) {
+ className += " ".concat(prefixCls, "-focused");
+ }
+ } else {
+ className += starValue <= value ? " ".concat(prefixCls, "-full") : " ".concat(prefixCls, "-zero");
+
+ if (starValue === value && focused) {
+ className += " ".concat(prefixCls, "-focused");
+ }
+ }
+
+ return className;
+ }
+ }, {
+ key: "render",
+ value: function render() {
+ var onHover = this.onHover,
+ onClick = this.onClick,
+ onKeyDown = this.onKeyDown;
+ var _this$props5 = this.props,
+ disabled = _this$props5.disabled,
+ prefixCls = _this$props5.prefixCls,
+ character = _this$props5.character,
+ characterRender = _this$props5.characterRender,
+ index = _this$props5.index,
+ count = _this$props5.count,
+ value = _this$props5.value;
+ var characterNode = typeof character === 'function' ? character(this.props) : character;
+ var start = /*#__PURE__*/react.createElement("li", {
+ className: this.getClassName()
+ }, /*#__PURE__*/react.createElement("div", {
+ onClick: disabled ? null : onClick,
+ onKeyDown: disabled ? null : onKeyDown,
+ onMouseMove: disabled ? null : onHover,
+ role: "radio",
+ "aria-checked": value > index ? 'true' : 'false',
+ "aria-posinset": index + 1,
+ "aria-setsize": count,
+ tabIndex: disabled ? -1 : 0
+ }, /*#__PURE__*/react.createElement("div", {
+ className: "".concat(prefixCls, "-first")
+ }, characterNode), /*#__PURE__*/react.createElement("div", {
+ className: "".concat(prefixCls, "-second")
+ }, characterNode)));
+
+ if (characterRender) {
+ start = characterRender(start, this.props);
+ }
+
+ return start;
+ }
+ }]);
+
+ return Star;
+}(react.Component);
+
+
+;// CONCATENATED MODULE: ./node_modules/rc-rate/es/Rate.js
+
+
+
+
+
+
+
+
+
+
+
+
+
+function noop() {}
+
+var Rate = /*#__PURE__*/function (_React$Component) {
+ (0,inherits/* default */.Z)(Rate, _React$Component);
+
+ var _super = (0,createSuper/* default */.Z)(Rate);
+
+ function Rate(props) {
+ var _this;
+
+ (0,classCallCheck/* default */.Z)(this, Rate);
+
+ _this = _super.call(this, props);
+ _this.stars = void 0;
+ _this.rate = void 0;
+
+ _this.onHover = function (event, index) {
+ var onHoverChange = _this.props.onHoverChange;
+
+ var hoverValue = _this.getStarValue(index, event.pageX);
+
+ var cleanedValue = _this.state.cleanedValue;
+
+ if (hoverValue !== cleanedValue) {
+ _this.setState({
+ hoverValue: hoverValue,
+ cleanedValue: null
+ });
+ }
+
+ onHoverChange(hoverValue);
+ };
+
+ _this.onMouseLeave = function () {
+ var onHoverChange = _this.props.onHoverChange;
+
+ _this.setState({
+ hoverValue: undefined,
+ cleanedValue: null
+ });
+
+ onHoverChange(undefined);
+ };
+
+ _this.onClick = function (event, index) {
+ var allowClear = _this.props.allowClear;
+ var value = _this.state.value;
+
+ var newValue = _this.getStarValue(index, event.pageX);
+
+ var isReset = false;
+
+ if (allowClear) {
+ isReset = newValue === value;
+ }
+
+ _this.onMouseLeave();
+
+ _this.changeValue(isReset ? 0 : newValue);
+
+ _this.setState({
+ cleanedValue: isReset ? newValue : null
+ });
+ };
+
+ _this.onFocus = function () {
+ var onFocus = _this.props.onFocus;
+
+ _this.setState({
+ focused: true
+ });
+
+ if (onFocus) {
+ onFocus();
+ }
+ };
+
+ _this.onBlur = function () {
+ var onBlur = _this.props.onBlur;
+
+ _this.setState({
+ focused: false
+ });
+
+ if (onBlur) {
+ onBlur();
+ }
+ };
+
+ _this.onKeyDown = function (event) {
+ var keyCode = event.keyCode;
+ var _this$props = _this.props,
+ count = _this$props.count,
+ allowHalf = _this$props.allowHalf,
+ onKeyDown = _this$props.onKeyDown,
+ direction = _this$props.direction;
+ var reverse = direction === 'rtl';
+ var value = _this.state.value;
+
+ if (keyCode === KeyCode/* default.RIGHT */.Z.RIGHT && value < count && !reverse) {
+ if (allowHalf) {
+ value += 0.5;
+ } else {
+ value += 1;
+ }
+
+ _this.changeValue(value);
+
+ event.preventDefault();
+ } else if (keyCode === KeyCode/* default.LEFT */.Z.LEFT && value > 0 && !reverse) {
+ if (allowHalf) {
+ value -= 0.5;
+ } else {
+ value -= 1;
+ }
+
+ _this.changeValue(value);
+
+ event.preventDefault();
+ } else if (keyCode === KeyCode/* default.RIGHT */.Z.RIGHT && value > 0 && reverse) {
+ if (allowHalf) {
+ value -= 0.5;
+ } else {
+ value -= 1;
+ }
+
+ _this.changeValue(value);
+
+ event.preventDefault();
+ } else if (keyCode === KeyCode/* default.LEFT */.Z.LEFT && value < count && reverse) {
+ if (allowHalf) {
+ value += 0.5;
+ } else {
+ value += 1;
+ }
+
+ _this.changeValue(value);
+
+ event.preventDefault();
+ }
+
+ if (onKeyDown) {
+ onKeyDown(event);
+ }
+ };
+
+ _this.saveRef = function (index) {
+ return function (node) {
+ _this.stars[index] = node;
+ };
+ };
+
+ _this.saveRate = function (node) {
+ _this.rate = node;
+ };
+
+ var _value = props.value;
+
+ if (_value === undefined) {
+ _value = props.defaultValue;
+ }
+
+ _this.stars = {};
+ _this.state = {
+ value: _value,
+ focused: false,
+ cleanedValue: null
+ };
+ return _this;
+ }
+
+ (0,createClass/* default */.Z)(Rate, [{
+ key: "componentDidMount",
+ value: function componentDidMount() {
+ var _this$props2 = this.props,
+ autoFocus = _this$props2.autoFocus,
+ disabled = _this$props2.disabled;
+
+ if (autoFocus && !disabled) {
+ this.focus();
+ }
+ }
+ }, {
+ key: "getStarDOM",
+ value: function getStarDOM(index) {
+ return (0,findDOMNode/* default */.Z)(this.stars[index]);
+ }
+ }, {
+ key: "getStarValue",
+ value: function getStarValue(index, x) {
+ var _this$props3 = this.props,
+ allowHalf = _this$props3.allowHalf,
+ direction = _this$props3.direction;
+ var reverse = direction === 'rtl';
+ var value = index + 1;
+
+ if (allowHalf) {
+ var starEle = this.getStarDOM(index);
+ var leftDis = getOffsetLeft(starEle);
+ var width = starEle.clientWidth;
+
+ if (reverse && x - leftDis > width / 2) {
+ value -= 0.5;
+ } else if (!reverse && x - leftDis < width / 2) {
+ value -= 0.5;
+ }
+ }
+
+ return value;
+ }
+ }, {
+ key: "focus",
+ value: function focus() {
+ var disabled = this.props.disabled;
+
+ if (!disabled) {
+ this.rate.focus();
+ }
+ }
+ }, {
+ key: "blur",
+ value: function blur() {
+ var disabled = this.props.disabled;
+
+ if (!disabled) {
+ this.rate.blur();
+ }
+ }
+ }, {
+ key: "changeValue",
+ value: function changeValue(value) {
+ var onChange = this.props.onChange;
+
+ if (!('value' in this.props)) {
+ this.setState({
+ value: value
+ });
+ }
+
+ onChange(value);
+ }
+ }, {
+ key: "render",
+ value: function render() {
+ var _this$props4 = this.props,
+ count = _this$props4.count,
+ allowHalf = _this$props4.allowHalf,
+ style = _this$props4.style,
+ prefixCls = _this$props4.prefixCls,
+ disabled = _this$props4.disabled,
+ className = _this$props4.className,
+ character = _this$props4.character,
+ characterRender = _this$props4.characterRender,
+ tabIndex = _this$props4.tabIndex,
+ direction = _this$props4.direction;
+ var _this$state = this.state,
+ value = _this$state.value,
+ hoverValue = _this$state.hoverValue,
+ focused = _this$state.focused;
+ var stars = [];
+ var disabledClass = disabled ? "".concat(prefixCls, "-disabled") : '';
+
+ for (var index = 0; index < count; index += 1) {
+ stars.push( /*#__PURE__*/react.createElement(Star, {
+ ref: this.saveRef(index),
+ index: index,
+ count: count,
+ disabled: disabled,
+ prefixCls: "".concat(prefixCls, "-star"),
+ allowHalf: allowHalf,
+ value: hoverValue === undefined ? value : hoverValue,
+ onClick: this.onClick,
+ onHover: this.onHover,
+ key: index,
+ character: character,
+ characterRender: characterRender,
+ focused: focused
+ }));
+ }
+
+ var rateClassName = classnames_default()(prefixCls, disabledClass, className, (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-rtl"), direction === 'rtl'));
+ return /*#__PURE__*/react.createElement("ul", {
+ className: rateClassName,
+ style: style,
+ onMouseLeave: disabled ? null : this.onMouseLeave,
+ tabIndex: disabled ? -1 : tabIndex,
+ onFocus: disabled ? null : this.onFocus,
+ onBlur: disabled ? null : this.onBlur,
+ onKeyDown: disabled ? null : this.onKeyDown,
+ ref: this.saveRate,
+ role: "radiogroup"
+ }, stars);
+ }
+ }], [{
+ key: "getDerivedStateFromProps",
+ value: function getDerivedStateFromProps(nextProps, state) {
+ if ('value' in nextProps && nextProps.value !== undefined) {
+ return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, state), {}, {
+ value: nextProps.value
+ });
+ }
+
+ return state;
+ }
+ }]);
+
+ return Rate;
+}(react.Component);
+
+Rate.defaultProps = {
+ defaultValue: 0,
+ count: 5,
+ allowHalf: false,
+ allowClear: true,
+ style: {},
+ prefixCls: 'rc-rate',
+ onChange: noop,
+ character: '★',
+ onHoverChange: noop,
+ tabIndex: 0,
+ direction: 'ltr'
+};
+/* harmony default export */ var es_Rate = (Rate);
+;// CONCATENATED MODULE: ./node_modules/rc-rate/es/index.js
+
+/* harmony default export */ var es = (es_Rate);
+// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
+var context = __webpack_require__(53124);
+// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
+var tooltip = __webpack_require__(84908);
+;// CONCATENATED MODULE: ./node_modules/antd/es/rate/index.js
+
+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;
+};
+
+
+
+
+
+var rate_Rate = /*#__PURE__*/react.forwardRef(function (props, ref) {
+ var prefixCls = props.prefixCls,
+ tooltips = props.tooltips,
+ _props$character = props.character,
+ character = _props$character === void 0 ? /*#__PURE__*/react.createElement(icons_StarFilled, null) : _props$character,
+ rest = __rest(props, ["prefixCls", "tooltips", "character"]);
+ var characterRender = function characterRender(node, _ref) {
+ var index = _ref.index;
+ if (!tooltips) {
+ return node;
+ }
+ return /*#__PURE__*/react.createElement(tooltip/* default */.Z, {
+ title: tooltips[index]
+ }, node);
+ };
+ var _React$useContext = react.useContext(context/* ConfigContext */.E_),
+ getPrefixCls = _React$useContext.getPrefixCls,
+ direction = _React$useContext.direction;
+ var ratePrefixCls = getPrefixCls('rate', prefixCls);
+ return /*#__PURE__*/react.createElement(es, (0,esm_extends/* default */.Z)({
+ ref: ref,
+ character: character,
+ characterRender: characterRender
+ }, rest, {
+ prefixCls: ratePrefixCls,
+ direction: direction
+ }));
+});
+if (false) {}
+/* harmony default export */ var rate = (rate_Rate);
+
+/***/ }),
+
+/***/ 50936:
+/*!**************************************************************!*\
+ !*** ./node_modules/antd/es/rate/style/index.js + 1 modules ***!
+ \**************************************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
+
+"use strict";
+
+// EXTERNAL MODULE: ./node_modules/antd/es/style/default.less
+var style_default = __webpack_require__(43146);
+;// CONCATENATED MODULE: ./node_modules/antd/es/rate/style/index.less
+// extracted by mini-css-extract-plugin
+
+// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/style/index.js + 1 modules
+var style = __webpack_require__(38390);
+;// CONCATENATED MODULE: ./node_modules/antd/es/rate/style/index.js
+
+
+// style dependencies
+
+
+/***/ }),
+
+/***/ 64894:
+/*!************************************************************************************!*\
+ !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/CheckOutlined.js ***!
+ \************************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var _ant_design_icons_svg_es_asn_CheckOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/CheckOutlined */ 32857);
+/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
+
+// GENERATE BY ./scripts/generate.ts
+// DON NOT EDIT IT MANUALLY
+
+
+
+var CheckOutlined = function CheckOutlined(props, ref) {
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
+ ref: ref,
+ icon: _ant_design_icons_svg_es_asn_CheckOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
+ }));
+};
+CheckOutlined.displayName = 'CheckOutlined';
+/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(CheckOutlined));
+
+/***/ }),
+
+/***/ 7124:
+/*!**********************************************************************************************!*\
+ !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/EyeOutlined.js + 1 modules ***!
+ \**********************************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, {
+ "Z": function() { return /* binding */ icons_EyeOutlined; }
+});
+
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
+var objectSpread2 = __webpack_require__(1413);
+// EXTERNAL MODULE: ./node_modules/react/index.js
+var react = __webpack_require__(67294);
+;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/EyeOutlined.js
+// This icon file is generated automatically.
+var EyeOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, "name": "eye", "theme": "outlined" };
+/* harmony default export */ var asn_EyeOutlined = (EyeOutlined);
+
+// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 3 modules
+var AntdIcon = __webpack_require__(93771);
+;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/EyeOutlined.js
+
+// GENERATE BY ./scripts/generate.ts
+// DON NOT EDIT IT MANUALLY
+
+
+
+var EyeOutlined_EyeOutlined = function EyeOutlined(props, ref) {
+ return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
+ ref: ref,
+ icon: asn_EyeOutlined
+ }));
+};
+EyeOutlined_EyeOutlined.displayName = 'EyeOutlined';
+/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/react.forwardRef(EyeOutlined_EyeOutlined));
+
+/***/ }),
+
+/***/ 1469:
+/*!****************************************!*\
+ !*** ./node_modules/lodash/isArray.js ***!
+ \****************************************/
+/***/ (function(module) {
+
+/**
+ * Checks if `value` is classified as an `Array` object.
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
+ * @example
+ *
+ * _.isArray([1, 2, 3]);
+ * // => true
+ *
+ * _.isArray(document.body.children);
+ * // => false
+ *
+ * _.isArray('abc');
+ * // => false
+ *
+ * _.isArray(_.noop);
+ * // => false
+ */
+var isArray = Array.isArray;
+
+module.exports = isArray;
+
+
+/***/ }),
+
+/***/ 34243:
+/*!**********************************************************!*\
+ !*** ./node_modules/rc-overflow/es/index.js + 4 modules ***!
+ \**********************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, {
+ "Z": function() { return /* binding */ rc_overflow_es; }
+});
+
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
+var esm_extends = __webpack_require__(87462);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
+var objectSpread2 = __webpack_require__(1413);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
+var slicedToArray = __webpack_require__(97685);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
+var objectWithoutProperties = __webpack_require__(45987);
+// EXTERNAL MODULE: ./node_modules/react/index.js
+var react = __webpack_require__(67294);
+// EXTERNAL MODULE: ./node_modules/classnames/index.js
+var classnames = __webpack_require__(94184);
+var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
+// EXTERNAL MODULE: ./node_modules/rc-resize-observer/es/index.js + 4 modules
+var es = __webpack_require__(48555);
+// EXTERNAL MODULE: ./node_modules/rc-util/es/hooks/useLayoutEffect.js
+var useLayoutEffect = __webpack_require__(8410);
+;// CONCATENATED MODULE: ./node_modules/rc-overflow/es/Item.js
+
+
+
+var _excluded = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"];
+
+
+ // Use shared variable to save bundle size
+
+var UNDEFINED = undefined;
+
+function InternalItem(props, ref) {
+ var prefixCls = props.prefixCls,
+ invalidate = props.invalidate,
+ item = props.item,
+ renderItem = props.renderItem,
+ responsive = props.responsive,
+ responsiveDisabled = props.responsiveDisabled,
+ registerSize = props.registerSize,
+ itemKey = props.itemKey,
+ className = props.className,
+ style = props.style,
+ children = props.children,
+ display = props.display,
+ order = props.order,
+ _props$component = props.component,
+ Component = _props$component === void 0 ? 'div' : _props$component,
+ restProps = (0,objectWithoutProperties/* default */.Z)(props, _excluded);
+
+ var mergedHidden = responsive && !display; // ================================ Effect ================================
+
+ function internalRegisterSize(width) {
+ registerSize(itemKey, width);
+ }
+
+ react.useEffect(function () {
+ return function () {
+ internalRegisterSize(null);
+ };
+ }, []); // ================================ Render ================================
+
+ var childNode = renderItem && item !== UNDEFINED ? renderItem(item) : children;
+ var overflowStyle;
+
+ if (!invalidate) {
+ overflowStyle = {
+ opacity: mergedHidden ? 0 : 1,
+ height: mergedHidden ? 0 : UNDEFINED,
+ overflowY: mergedHidden ? 'hidden' : UNDEFINED,
+ order: responsive ? order : UNDEFINED,
+ pointerEvents: mergedHidden ? 'none' : UNDEFINED,
+ position: mergedHidden ? 'absolute' : UNDEFINED
+ };
+ }
+
+ var overflowProps = {};
+
+ if (mergedHidden) {
+ overflowProps['aria-hidden'] = true;
+ }
+
+ var itemNode = /*#__PURE__*/react.createElement(Component, (0,esm_extends/* default */.Z)({
+ className: classnames_default()(!invalidate && prefixCls, className),
+ style: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, overflowStyle), style)
+ }, overflowProps, restProps, {
+ ref: ref
+ }), childNode);
+
+ if (responsive) {
+ itemNode = /*#__PURE__*/react.createElement(es/* default */.Z, {
+ onResize: function onResize(_ref) {
+ var offsetWidth = _ref.offsetWidth;
+ internalRegisterSize(offsetWidth);
+ },
+ disabled: responsiveDisabled
+ }, itemNode);
+ }
+
+ return itemNode;
+}
+
+var Item = /*#__PURE__*/react.forwardRef(InternalItem);
+Item.displayName = 'Item';
+/* harmony default export */ var es_Item = (Item);
+// EXTERNAL MODULE: ./node_modules/rc-util/es/raf.js
+var raf = __webpack_require__(75164);
+// EXTERNAL MODULE: ./node_modules/rc-util/es/hooks/useState.js
+var useState = __webpack_require__(30470);
+;// CONCATENATED MODULE: ./node_modules/rc-overflow/es/hooks/useBatchFrameState.js
+
+
+
+
+/**
+ * State generate. Return a `setState` but it will flush all state with one render to save perf.
+ * This is not a realization of `unstable_batchedUpdates`.
+ */
+
+function useBatchFrameState() {
+ var _useState = (0,useState/* default */.Z)({}),
+ _useState2 = (0,slicedToArray/* default */.Z)(_useState, 2),
+ forceUpdate = _useState2[1];
+
+ var statesRef = (0,react.useRef)([]);
+ var walkingIndex = 0;
+ var beforeFrameId = 0;
+
+ function createState(defaultValue) {
+ var myIndex = walkingIndex;
+ walkingIndex += 1; // Fill value if not exist yet
+
+ if (statesRef.current.length < myIndex + 1) {
+ statesRef.current[myIndex] = defaultValue;
+ } // Return filled as `setState`
+
+
+ var value = statesRef.current[myIndex];
+
+ function setValue(val) {
+ statesRef.current[myIndex] = typeof val === 'function' ? val(statesRef.current[myIndex]) : val;
+ raf/* default.cancel */.Z.cancel(beforeFrameId); // Flush with batch
+
+ beforeFrameId = (0,raf/* default */.Z)(function () {
+ forceUpdate({}, true);
+ });
+ }
+
+ return [value, setValue];
+ }
+
+ return createState;
+}
+;// CONCATENATED MODULE: ./node_modules/rc-overflow/es/RawItem.js
+
+
+var RawItem_excluded = ["component"],
+ _excluded2 = ["className"],
+ _excluded3 = ["className"];
+
+
+
+
+
+var InternalRawItem = function InternalRawItem(props, ref) {
+ var context = react.useContext(OverflowContext); // Render directly when context not provided
+
+ if (!context) {
+ var _props$component = props.component,
+ Component = _props$component === void 0 ? 'div' : _props$component,
+ _restProps = (0,objectWithoutProperties/* default */.Z)(props, RawItem_excluded);
+
+ return /*#__PURE__*/react.createElement(Component, (0,esm_extends/* default */.Z)({}, _restProps, {
+ ref: ref
+ }));
+ }
+
+ var contextClassName = context.className,
+ restContext = (0,objectWithoutProperties/* default */.Z)(context, _excluded2);
+
+ var className = props.className,
+ restProps = (0,objectWithoutProperties/* default */.Z)(props, _excluded3); // Do not pass context to sub item to avoid multiple measure
+
+
+ return /*#__PURE__*/react.createElement(OverflowContext.Provider, {
+ value: null
+ }, /*#__PURE__*/react.createElement(es_Item, (0,esm_extends/* default */.Z)({
+ ref: ref,
+ className: classnames_default()(contextClassName, className)
+ }, restContext, restProps)));
+};
+
+var RawItem = /*#__PURE__*/react.forwardRef(InternalRawItem);
+RawItem.displayName = 'RawItem';
+/* harmony default export */ var es_RawItem = (RawItem);
+;// CONCATENATED MODULE: ./node_modules/rc-overflow/es/Overflow.js
+
+
+
+
+var Overflow_excluded = ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"];
+
+
+
+
+
+
+
+
+var OverflowContext = /*#__PURE__*/react.createContext(null);
+var RESPONSIVE = 'responsive';
+var INVALIDATE = 'invalidate';
+
+function defaultRenderRest(omittedItems) {
+ return "+ ".concat(omittedItems.length, " ...");
+}
+
+function Overflow(props, ref) {
+ var _props$prefixCls = props.prefixCls,
+ prefixCls = _props$prefixCls === void 0 ? 'rc-overflow' : _props$prefixCls,
+ _props$data = props.data,
+ data = _props$data === void 0 ? [] : _props$data,
+ renderItem = props.renderItem,
+ renderRawItem = props.renderRawItem,
+ itemKey = props.itemKey,
+ _props$itemWidth = props.itemWidth,
+ itemWidth = _props$itemWidth === void 0 ? 10 : _props$itemWidth,
+ ssr = props.ssr,
+ style = props.style,
+ className = props.className,
+ maxCount = props.maxCount,
+ renderRest = props.renderRest,
+ renderRawRest = props.renderRawRest,
+ suffix = props.suffix,
+ _props$component = props.component,
+ Component = _props$component === void 0 ? 'div' : _props$component,
+ itemComponent = props.itemComponent,
+ onVisibleChange = props.onVisibleChange,
+ restProps = (0,objectWithoutProperties/* default */.Z)(props, Overflow_excluded);
+
+ var createUseState = useBatchFrameState();
+ var fullySSR = ssr === 'full';
+
+ var _createUseState = createUseState(null),
+ _createUseState2 = (0,slicedToArray/* default */.Z)(_createUseState, 2),
+ containerWidth = _createUseState2[0],
+ setContainerWidth = _createUseState2[1];
+
+ var mergedContainerWidth = containerWidth || 0;
+
+ var _createUseState3 = createUseState(new Map()),
+ _createUseState4 = (0,slicedToArray/* default */.Z)(_createUseState3, 2),
+ itemWidths = _createUseState4[0],
+ setItemWidths = _createUseState4[1];
+
+ var _createUseState5 = createUseState(0),
+ _createUseState6 = (0,slicedToArray/* default */.Z)(_createUseState5, 2),
+ prevRestWidth = _createUseState6[0],
+ setPrevRestWidth = _createUseState6[1];
+
+ var _createUseState7 = createUseState(0),
+ _createUseState8 = (0,slicedToArray/* default */.Z)(_createUseState7, 2),
+ restWidth = _createUseState8[0],
+ setRestWidth = _createUseState8[1];
+
+ var _createUseState9 = createUseState(0),
+ _createUseState10 = (0,slicedToArray/* default */.Z)(_createUseState9, 2),
+ suffixWidth = _createUseState10[0],
+ setSuffixWidth = _createUseState10[1];
+
+ var _useState = (0,react.useState)(null),
+ _useState2 = (0,slicedToArray/* default */.Z)(_useState, 2),
+ suffixFixedStart = _useState2[0],
+ setSuffixFixedStart = _useState2[1];
+
+ var _useState3 = (0,react.useState)(null),
+ _useState4 = (0,slicedToArray/* default */.Z)(_useState3, 2),
+ displayCount = _useState4[0],
+ setDisplayCount = _useState4[1];
+
+ var mergedDisplayCount = react.useMemo(function () {
+ if (displayCount === null && fullySSR) {
+ return Number.MAX_SAFE_INTEGER;
+ }
+
+ return displayCount || 0;
+ }, [displayCount, containerWidth]);
+
+ var _useState5 = (0,react.useState)(false),
+ _useState6 = (0,slicedToArray/* default */.Z)(_useState5, 2),
+ restReady = _useState6[0],
+ setRestReady = _useState6[1];
+
+ var itemPrefixCls = "".concat(prefixCls, "-item"); // Always use the max width to avoid blink
+
+ var mergedRestWidth = Math.max(prevRestWidth, restWidth); // ================================= Data =================================
+
+ var isResponsive = maxCount === RESPONSIVE;
+ var shouldResponsive = data.length && isResponsive;
+ var invalidate = maxCount === INVALIDATE;
+ /**
+ * When is `responsive`, we will always render rest node to get the real width of it for calculation
+ */
+
+ var showRest = shouldResponsive || typeof maxCount === 'number' && data.length > maxCount;
+ var mergedData = (0,react.useMemo)(function () {
+ var items = data;
+
+ if (shouldResponsive) {
+ if (containerWidth === null && fullySSR) {
+ items = data;
+ } else {
+ items = data.slice(0, Math.min(data.length, mergedContainerWidth / itemWidth));
+ }
+ } else if (typeof maxCount === 'number') {
+ items = data.slice(0, maxCount);
+ }
+
+ return items;
+ }, [data, itemWidth, containerWidth, maxCount, shouldResponsive]);
+ var omittedItems = (0,react.useMemo)(function () {
+ if (shouldResponsive) {
+ return data.slice(mergedDisplayCount + 1);
+ }
+
+ return data.slice(mergedData.length);
+ }, [data, mergedData, shouldResponsive, mergedDisplayCount]); // ================================= Item =================================
+
+ var getKey = (0,react.useCallback)(function (item, index) {
+ var _ref;
+
+ if (typeof itemKey === 'function') {
+ return itemKey(item);
+ }
+
+ return (_ref = itemKey && (item === null || item === void 0 ? void 0 : item[itemKey])) !== null && _ref !== void 0 ? _ref : index;
+ }, [itemKey]);
+ var mergedRenderItem = (0,react.useCallback)(renderItem || function (item) {
+ return item;
+ }, [renderItem]);
+
+ function updateDisplayCount(count, suffixFixedStartVal, notReady) {
+ // React 18 will sync render even when the value is same in some case.
+ // We take `mergedData` as deps which may cause dead loop if it's dynamic generate.
+ // ref: https://github.com/ant-design/ant-design/issues/36559
+ if (displayCount === count && (suffixFixedStartVal === undefined || suffixFixedStartVal === suffixFixedStart)) {
+ return;
+ }
+
+ setDisplayCount(count);
+
+ if (!notReady) {
+ setRestReady(count < data.length - 1);
+ onVisibleChange === null || onVisibleChange === void 0 ? void 0 : onVisibleChange(count);
+ }
+
+ if (suffixFixedStartVal !== undefined) {
+ setSuffixFixedStart(suffixFixedStartVal);
+ }
+ } // ================================= Size =================================
+
+
+ function onOverflowResize(_, element) {
+ setContainerWidth(element.clientWidth);
+ }
+
+ function registerSize(key, width) {
+ setItemWidths(function (origin) {
+ var clone = new Map(origin);
+
+ if (width === null) {
+ clone.delete(key);
+ } else {
+ clone.set(key, width);
+ }
+
+ return clone;
+ });
+ }
+
+ function registerOverflowSize(_, width) {
+ setRestWidth(width);
+ setPrevRestWidth(restWidth);
+ }
+
+ function registerSuffixSize(_, width) {
+ setSuffixWidth(width);
+ } // ================================ Effect ================================
+
+
+ function getItemWidth(index) {
+ return itemWidths.get(getKey(mergedData[index], index));
+ }
+
+ (0,useLayoutEffect/* default */.Z)(function () {
+ if (mergedContainerWidth && mergedRestWidth && mergedData) {
+ var totalWidth = suffixWidth;
+ var len = mergedData.length;
+ var lastIndex = len - 1; // When data count change to 0, reset this since not loop will reach
+
+ if (!len) {
+ updateDisplayCount(0, null);
+ return;
+ }
+
+ for (var i = 0; i < len; i += 1) {
+ var currentItemWidth = getItemWidth(i); // Fully will always render
+
+ if (fullySSR) {
+ currentItemWidth = currentItemWidth || 0;
+ } // Break since data not ready
+
+
+ if (currentItemWidth === undefined) {
+ updateDisplayCount(i - 1, undefined, true);
+ break;
+ } // Find best match
+
+
+ totalWidth += currentItemWidth;
+
+ if ( // Only one means `totalWidth` is the final width
+ lastIndex === 0 && totalWidth <= mergedContainerWidth || // Last two width will be the final width
+ i === lastIndex - 1 && totalWidth + getItemWidth(lastIndex) <= mergedContainerWidth) {
+ // Additional check if match the end
+ updateDisplayCount(lastIndex, null);
+ break;
+ } else if (totalWidth + mergedRestWidth > mergedContainerWidth) {
+ // Can not hold all the content to show rest
+ updateDisplayCount(i - 1, totalWidth - currentItemWidth - suffixWidth + restWidth);
+ break;
+ }
+ }
+
+ if (suffix && getItemWidth(0) + suffixWidth > mergedContainerWidth) {
+ setSuffixFixedStart(null);
+ }
+ }
+ }, [mergedContainerWidth, itemWidths, restWidth, suffixWidth, getKey, mergedData]); // ================================ Render ================================
+
+ var displayRest = restReady && !!omittedItems.length;
+ var suffixStyle = {};
+
+ if (suffixFixedStart !== null && shouldResponsive) {
+ suffixStyle = {
+ position: 'absolute',
+ left: suffixFixedStart,
+ top: 0
+ };
+ }
+
+ var itemSharedProps = {
+ prefixCls: itemPrefixCls,
+ responsive: shouldResponsive,
+ component: itemComponent,
+ invalidate: invalidate
+ }; // >>>>> Choice render fun by `renderRawItem`
+
+ var internalRenderItemNode = renderRawItem ? function (item, index) {
+ var key = getKey(item, index);
+ return /*#__PURE__*/react.createElement(OverflowContext.Provider, {
+ key: key,
+ value: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, itemSharedProps), {}, {
+ order: index,
+ item: item,
+ itemKey: key,
+ registerSize: registerSize,
+ display: index <= mergedDisplayCount
+ })
+ }, renderRawItem(item, index));
+ } : function (item, index) {
+ var key = getKey(item, index);
+ return /*#__PURE__*/react.createElement(es_Item, (0,esm_extends/* default */.Z)({}, itemSharedProps, {
+ order: index,
+ key: key,
+ item: item,
+ renderItem: mergedRenderItem,
+ itemKey: key,
+ registerSize: registerSize,
+ display: index <= mergedDisplayCount
+ }));
+ }; // >>>>> Rest node
+
+ var restNode;
+ var restContextProps = {
+ order: displayRest ? mergedDisplayCount : Number.MAX_SAFE_INTEGER,
+ className: "".concat(itemPrefixCls, "-rest"),
+ registerSize: registerOverflowSize,
+ display: displayRest
+ };
+
+ if (!renderRawRest) {
+ var mergedRenderRest = renderRest || defaultRenderRest;
+ restNode = /*#__PURE__*/react.createElement(es_Item, (0,esm_extends/* default */.Z)({}, itemSharedProps, restContextProps), typeof mergedRenderRest === 'function' ? mergedRenderRest(omittedItems) : mergedRenderRest);
+ } else if (renderRawRest) {
+ restNode = /*#__PURE__*/react.createElement(OverflowContext.Provider, {
+ value: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, itemSharedProps), restContextProps)
+ }, renderRawRest(omittedItems));
+ }
+
+ var overflowNode = /*#__PURE__*/react.createElement(Component, (0,esm_extends/* default */.Z)({
+ className: classnames_default()(!invalidate && prefixCls, className),
+ style: style,
+ ref: ref
+ }, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/react.createElement(es_Item, (0,esm_extends/* default */.Z)({}, itemSharedProps, {
+ responsive: isResponsive,
+ responsiveDisabled: !shouldResponsive,
+ order: mergedDisplayCount,
+ className: "".concat(itemPrefixCls, "-suffix"),
+ registerSize: registerSuffixSize,
+ display: true,
+ style: suffixStyle
+ }), suffix));
+
+ if (isResponsive) {
+ overflowNode = /*#__PURE__*/react.createElement(es/* default */.Z, {
+ onResize: onOverflowResize,
+ disabled: !shouldResponsive
+ }, overflowNode);
+ }
+
+ return overflowNode;
+}
+
+var ForwardOverflow = /*#__PURE__*/react.forwardRef(Overflow);
+ForwardOverflow.displayName = 'Overflow';
+ForwardOverflow.Item = es_RawItem;
+ForwardOverflow.RESPONSIVE = RESPONSIVE;
+ForwardOverflow.INVALIDATE = INVALIDATE; // Convert to generic type
+
+/* harmony default export */ var es_Overflow = (ForwardOverflow);
+;// CONCATENATED MODULE: ./node_modules/rc-overflow/es/index.js
+
+/* harmony default export */ var rc_overflow_es = (es_Overflow);
+
+/***/ }),
+
+/***/ 79370:
+/*!*****************************************************!*\
+ !*** ./node_modules/rc-util/es/Dom/styleChecker.js ***!
+ \*****************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "G": function() { return /* binding */ isStyleSupport; }
+/* harmony export */ });
+/* harmony import */ var _canUseDom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./canUseDom */ 98924);
+
+var isStyleNameSupport = function isStyleNameSupport(styleName) {
+ if ((0,_canUseDom__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)() && window.document.documentElement) {
+ var styleNameList = Array.isArray(styleName) ? styleName : [styleName];
+ var documentElement = window.document.documentElement;
+ return styleNameList.some(function (name) {
+ return name in documentElement.style;
+ });
+ }
+ return false;
+};
+var isStyleValueSupport = function isStyleValueSupport(styleName, value) {
+ if (!isStyleNameSupport(styleName)) {
+ return false;
+ }
+ var ele = document.createElement('div');
+ var origin = ele.style[styleName];
+ ele.style[styleName] = value;
+ return ele.style[styleName] !== origin;
+};
+function isStyleSupport(styleName, styleValue) {
+ if (!Array.isArray(styleName) && styleValue !== undefined) {
+ return isStyleValueSupport(styleName, styleValue);
+ }
+ return isStyleNameSupport(styleName);
+}
+
+/***/ })
+
+}]);
\ No newline at end of file
diff --git a/91890.chunk.css b/91890.chunk.css
new file mode 100644
index 0000000000..5726fa2981
--- /dev/null
+++ b/91890.chunk.css
@@ -0,0 +1,955 @@
+/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
+ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./node_modules/antd/es/divider/style/index.less ***!
+ \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
+/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
+/* stylelint-disable no-duplicate-selectors */
+/* stylelint-disable */
+/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
+.ant-divider {
+ box-sizing: border-box;
+ margin: 0;
+ padding: 0;
+ color: rgba(0, 0, 0, 0.85);
+ font-size: 12px;
+ font-variant: tabular-nums;
+ line-height: 1.66667;
+ list-style: none;
+ font-feature-settings: tnum, "tnum";
+ border-top: 1px solid rgba(0, 0, 0, 0.06);
+}
+.ant-divider-vertical {
+ position: relative;
+ top: -0.06em;
+ display: inline-block;
+ height: 0.9em;
+ margin: 0 8px;
+ vertical-align: middle;
+ border-top: 0;
+ border-left: 1px solid rgba(0, 0, 0, 0.06);
+}
+.ant-divider-horizontal {
+ display: flex;
+ clear: both;
+ width: 100%;
+ min-width: 100%;
+ margin: 24px 0;
+}
+.ant-divider-horizontal.ant-divider-with-text {
+ display: flex;
+ align-items: center;
+ margin: 16px 0;
+ color: rgba(0, 0, 0, 0.85);
+ font-weight: 500;
+ font-size: 14px;
+ white-space: nowrap;
+ text-align: center;
+ border-top: 0;
+ border-top-color: rgba(0, 0, 0, 0.06);
+}
+.ant-divider-horizontal.ant-divider-with-text::before,
+.ant-divider-horizontal.ant-divider-with-text::after {
+ position: relative;
+ width: 50%;
+ border-top: 1px solid transparent;
+ border-top-color: inherit;
+ border-bottom: 0;
+ transform: translateY(50%);
+ content: '';
+}
+.ant-divider-horizontal.ant-divider-with-text-left::before {
+ width: 5%;
+}
+.ant-divider-horizontal.ant-divider-with-text-left::after {
+ width: 95%;
+}
+.ant-divider-horizontal.ant-divider-with-text-right::before {
+ width: 95%;
+}
+.ant-divider-horizontal.ant-divider-with-text-right::after {
+ width: 5%;
+}
+.ant-divider-inner-text {
+ display: inline-block;
+ padding: 0 1em;
+}
+.ant-divider-dashed {
+ background: none;
+ border-color: rgba(0, 0, 0, 0.06);
+ border-style: dashed;
+ border-width: 1px 0 0;
+}
+.ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed::before,
+.ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed::after {
+ border-style: dashed none none;
+}
+.ant-divider-vertical.ant-divider-dashed {
+ border-width: 0 0 0 1px;
+}
+.ant-divider-plain.ant-divider-with-text {
+ color: rgba(0, 0, 0, 0.85);
+ font-weight: normal;
+ font-size: 12px;
+}
+.ant-divider-horizontal.ant-divider-with-text-left.ant-divider-no-default-orientation-margin-left::before {
+ width: 0;
+}
+.ant-divider-horizontal.ant-divider-with-text-left.ant-divider-no-default-orientation-margin-left::after {
+ width: 100%;
+}
+.ant-divider-horizontal.ant-divider-with-text-left.ant-divider-no-default-orientation-margin-left .ant-divider-inner-text {
+ padding-left: 0;
+}
+.ant-divider-horizontal.ant-divider-with-text-right.ant-divider-no-default-orientation-margin-right::before {
+ width: 100%;
+}
+.ant-divider-horizontal.ant-divider-with-text-right.ant-divider-no-default-orientation-margin-right::after {
+ width: 0;
+}
+.ant-divider-horizontal.ant-divider-with-text-right.ant-divider-no-default-orientation-margin-right .ant-divider-inner-text {
+ padding-right: 0;
+}
+.ant-divider-rtl {
+ direction: rtl;
+}
+.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-left::before {
+ width: 95%;
+}
+.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-left::after {
+ width: 5%;
+}
+.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-right::before {
+ width: 5%;
+}
+.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-right::after {
+ width: 95%;
+}
+/* stylelint-disable no-duplicate-selectors */
+/* stylelint-disable */
+/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
+
+/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
+ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./node_modules/antd/es/skeleton/style/index.less ***!
+ \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
+/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
+/* stylelint-disable no-duplicate-selectors */
+/* stylelint-disable */
+/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
+.ant-skeleton {
+ display: table;
+ width: 100%;
+}
+.ant-skeleton-header {
+ display: table-cell;
+ padding-right: 8px;
+ vertical-align: top;
+}
+.ant-skeleton-header .ant-skeleton-avatar {
+ display: inline-block;
+ vertical-align: top;
+ background: rgba(190, 190, 190, 0.2);
+ width: 28px;
+ height: 28px;
+ line-height: 28px;
+}
+.ant-skeleton-header .ant-skeleton-avatar.ant-skeleton-avatar-circle {
+ border-radius: 50%;
+}
+.ant-skeleton-header .ant-skeleton-avatar-lg {
+ width: 32px;
+ height: 32px;
+ line-height: 32px;
+}
+.ant-skeleton-header .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle {
+ border-radius: 50%;
+}
+.ant-skeleton-header .ant-skeleton-avatar-sm {
+ width: 22px;
+ height: 22px;
+ line-height: 22px;
+}
+.ant-skeleton-header .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle {
+ border-radius: 50%;
+}
+.ant-skeleton-content {
+ display: table-cell;
+ width: 100%;
+ vertical-align: top;
+}
+.ant-skeleton-content .ant-skeleton-title {
+ width: 100%;
+ height: 14px;
+ background: rgba(190, 190, 190, 0.2);
+ border-radius: 2px;
+}
+.ant-skeleton-content .ant-skeleton-title + .ant-skeleton-paragraph {
+ margin-top: 20px;
+}
+.ant-skeleton-content .ant-skeleton-paragraph {
+ padding: 0;
+}
+.ant-skeleton-content .ant-skeleton-paragraph > li {
+ width: 100%;
+ height: 14px;
+ list-style: none;
+ background: rgba(190, 190, 190, 0.2);
+ border-radius: 2px;
+}
+.ant-skeleton-content .ant-skeleton-paragraph > li:last-child:not(:first-child):not(:nth-child(2)) {
+ width: 61%;
+}
+.ant-skeleton-content .ant-skeleton-paragraph > li + li {
+ margin-top: 12px;
+}
+.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title {
+ margin-top: 8px;
+}
+.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title + .ant-skeleton-paragraph {
+ margin-top: 20px;
+}
+.ant-skeleton-round .ant-skeleton-content .ant-skeleton-title,
+.ant-skeleton-round .ant-skeleton-content .ant-skeleton-paragraph > li {
+ border-radius: 100px;
+}
+.ant-skeleton-active .ant-skeleton-title,
+.ant-skeleton-active .ant-skeleton-paragraph > li,
+.ant-skeleton-active .ant-skeleton-avatar,
+.ant-skeleton-active .ant-skeleton-button,
+.ant-skeleton-active .ant-skeleton-input,
+.ant-skeleton-active .ant-skeleton-image {
+ position: relative;
+ /* stylelint-disable-next-line property-no-vendor-prefix,value-no-vendor-prefix */
+ z-index: 0;
+ overflow: hidden;
+ background: transparent;
+}
+.ant-skeleton-active .ant-skeleton-title::after,
+.ant-skeleton-active .ant-skeleton-paragraph > li::after,
+.ant-skeleton-active .ant-skeleton-avatar::after,
+.ant-skeleton-active .ant-skeleton-button::after,
+.ant-skeleton-active .ant-skeleton-input::after,
+.ant-skeleton-active .ant-skeleton-image::after {
+ position: absolute;
+ top: 0;
+ right: -150%;
+ bottom: 0;
+ left: -150%;
+ background: linear-gradient(90deg, rgba(190, 190, 190, 0.2) 25%, rgba(129, 129, 129, 0.24) 37%, rgba(190, 190, 190, 0.2) 63%);
+ animation: ant-skeleton-loading 1.4s ease infinite;
+ content: '';
+}
+.ant-skeleton.ant-skeleton-block {
+ width: 100%;
+}
+.ant-skeleton.ant-skeleton-block .ant-skeleton-button {
+ width: 100%;
+}
+.ant-skeleton.ant-skeleton-block .ant-skeleton-input {
+ width: 100%;
+}
+.ant-skeleton-element {
+ display: inline-block;
+ width: auto;
+}
+.ant-skeleton-element .ant-skeleton-button {
+ display: inline-block;
+ vertical-align: top;
+ background: rgba(190, 190, 190, 0.2);
+ border-radius: 2px;
+ width: 56px;
+ min-width: 56px;
+ height: 28px;
+ line-height: 28px;
+}
+.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-square {
+ width: 28px;
+ min-width: 28px;
+}
+.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-circle {
+ width: 28px;
+ min-width: 28px;
+ border-radius: 50%;
+}
+.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-round {
+ border-radius: 28px;
+}
+.ant-skeleton-element .ant-skeleton-button-lg {
+ width: 64px;
+ min-width: 64px;
+ height: 32px;
+ line-height: 32px;
+}
+.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-square {
+ width: 32px;
+ min-width: 32px;
+}
+.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-circle {
+ width: 32px;
+ min-width: 32px;
+ border-radius: 50%;
+}
+.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-round {
+ border-radius: 32px;
+}
+.ant-skeleton-element .ant-skeleton-button-sm {
+ width: 44px;
+ min-width: 44px;
+ height: 22px;
+ line-height: 22px;
+}
+.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-square {
+ width: 22px;
+ min-width: 22px;
+}
+.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-circle {
+ width: 22px;
+ min-width: 22px;
+ border-radius: 50%;
+}
+.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-round {
+ border-radius: 22px;
+}
+.ant-skeleton-element .ant-skeleton-avatar {
+ display: inline-block;
+ vertical-align: top;
+ background: rgba(190, 190, 190, 0.2);
+ width: 28px;
+ height: 28px;
+ line-height: 28px;
+}
+.ant-skeleton-element .ant-skeleton-avatar.ant-skeleton-avatar-circle {
+ border-radius: 50%;
+}
+.ant-skeleton-element .ant-skeleton-avatar-lg {
+ width: 32px;
+ height: 32px;
+ line-height: 32px;
+}
+.ant-skeleton-element .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle {
+ border-radius: 50%;
+}
+.ant-skeleton-element .ant-skeleton-avatar-sm {
+ width: 22px;
+ height: 22px;
+ line-height: 22px;
+}
+.ant-skeleton-element .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle {
+ border-radius: 50%;
+}
+.ant-skeleton-element .ant-skeleton-input {
+ display: inline-block;
+ vertical-align: top;
+ background: rgba(190, 190, 190, 0.2);
+ width: 140px;
+ min-width: 140px;
+ height: 28px;
+ line-height: 28px;
+}
+.ant-skeleton-element .ant-skeleton-input-lg {
+ width: 160px;
+ min-width: 160px;
+ height: 32px;
+ line-height: 32px;
+}
+.ant-skeleton-element .ant-skeleton-input-sm {
+ width: 110px;
+ min-width: 110px;
+ height: 22px;
+ line-height: 22px;
+}
+.ant-skeleton-element .ant-skeleton-image {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ vertical-align: top;
+ background: rgba(190, 190, 190, 0.2);
+ width: 96px;
+ height: 96px;
+ line-height: 96px;
+}
+.ant-skeleton-element .ant-skeleton-image.ant-skeleton-image-circle {
+ border-radius: 50%;
+}
+.ant-skeleton-element .ant-skeleton-image-path {
+ fill: #bfbfbf;
+}
+.ant-skeleton-element .ant-skeleton-image-svg {
+ width: 48px;
+ height: 48px;
+ line-height: 48px;
+ max-width: 192px;
+ max-height: 192px;
+}
+.ant-skeleton-element .ant-skeleton-image-svg.ant-skeleton-image-circle {
+ border-radius: 50%;
+}
+@keyframes ant-skeleton-loading {
+ 0% {
+ transform: translateX(-37.5%);
+ }
+ 100% {
+ transform: translateX(37.5%);
+ }
+}
+.ant-skeleton-rtl {
+ direction: rtl;
+}
+.ant-skeleton-rtl .ant-skeleton-header {
+ padding-right: 0;
+ padding-left: 16px;
+}
+.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title,
+.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph > li {
+ animation-name: ant-skeleton-loading-rtl;
+}
+.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar {
+ animation-name: ant-skeleton-loading-rtl;
+}
+@keyframes ant-skeleton-loading-rtl {
+ 0% {
+ background-position: 0% 50%;
+ }
+ 100% {
+ background-position: 100% 50%;
+ }
+}
+/* stylelint-disable no-duplicate-selectors */
+/* stylelint-disable */
+/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
+
+/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
+ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./node_modules/antd/es/typography/style/index.less ***!
+ \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
+/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
+/* stylelint-disable no-duplicate-selectors */
+/* stylelint-disable */
+/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
+.ant-typography {
+ color: rgba(0, 0, 0, 0.85);
+ word-break: break-word;
+}
+.ant-typography.ant-typography-secondary {
+ color: rgba(0, 0, 0, 0.45);
+}
+.ant-typography.ant-typography-success {
+ color: #52c41a;
+}
+.ant-typography.ant-typography-warning {
+ color: #faad14;
+}
+.ant-typography.ant-typography-danger {
+ color: #ff4d4f;
+}
+a.ant-typography.ant-typography-danger:active,
+a.ant-typography.ant-typography-danger:focus {
+ color: #d9363e;
+}
+a.ant-typography.ant-typography-danger:hover {
+ color: #ff7875;
+}
+.ant-typography.ant-typography-disabled {
+ color: rgba(0, 0, 0, 0.25);
+ cursor: not-allowed;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+}
+div.ant-typography,
+.ant-typography p {
+ margin-bottom: 1em;
+}
+h1.ant-typography,
+div.ant-typography-h1,
+div.ant-typography-h1 > textarea,
+.ant-typography h1 {
+ margin-bottom: 0.5em;
+ color: rgba(0, 0, 0, 0.85);
+ font-weight: 600;
+ font-size: 33px;
+ line-height: 1.23;
+}
+h2.ant-typography,
+div.ant-typography-h2,
+div.ant-typography-h2 > textarea,
+.ant-typography h2 {
+ margin-bottom: 0.5em;
+ color: rgba(0, 0, 0, 0.85);
+ font-weight: 600;
+ font-size: 26px;
+ line-height: 1.35;
+}
+h3.ant-typography,
+div.ant-typography-h3,
+div.ant-typography-h3 > textarea,
+.ant-typography h3 {
+ margin-bottom: 0.5em;
+ color: rgba(0, 0, 0, 0.85);
+ font-weight: 600;
+ font-size: 21px;
+ line-height: 1.35;
+}
+h4.ant-typography,
+div.ant-typography-h4,
+div.ant-typography-h4 > textarea,
+.ant-typography h4 {
+ margin-bottom: 0.5em;
+ color: rgba(0, 0, 0, 0.85);
+ font-weight: 600;
+ font-size: 18px;
+ line-height: 1.4;
+}
+h5.ant-typography,
+div.ant-typography-h5,
+div.ant-typography-h5 > textarea,
+.ant-typography h5 {
+ margin-bottom: 0.5em;
+ color: rgba(0, 0, 0, 0.85);
+ font-weight: 600;
+ font-size: 14px;
+ line-height: 1.5;
+}
+.ant-typography + h1.ant-typography,
+.ant-typography + h2.ant-typography,
+.ant-typography + h3.ant-typography,
+.ant-typography + h4.ant-typography,
+.ant-typography + h5.ant-typography {
+ margin-top: 1.2em;
+}
+.ant-typography div + h1,
+.ant-typography ul + h1,
+.ant-typography li + h1,
+.ant-typography p + h1,
+.ant-typography h1 + h1,
+.ant-typography h2 + h1,
+.ant-typography h3 + h1,
+.ant-typography h4 + h1,
+.ant-typography h5 + h1,
+.ant-typography div + h2,
+.ant-typography ul + h2,
+.ant-typography li + h2,
+.ant-typography p + h2,
+.ant-typography h1 + h2,
+.ant-typography h2 + h2,
+.ant-typography h3 + h2,
+.ant-typography h4 + h2,
+.ant-typography h5 + h2,
+.ant-typography div + h3,
+.ant-typography ul + h3,
+.ant-typography li + h3,
+.ant-typography p + h3,
+.ant-typography h1 + h3,
+.ant-typography h2 + h3,
+.ant-typography h3 + h3,
+.ant-typography h4 + h3,
+.ant-typography h5 + h3,
+.ant-typography div + h4,
+.ant-typography ul + h4,
+.ant-typography li + h4,
+.ant-typography p + h4,
+.ant-typography h1 + h4,
+.ant-typography h2 + h4,
+.ant-typography h3 + h4,
+.ant-typography h4 + h4,
+.ant-typography h5 + h4,
+.ant-typography div + h5,
+.ant-typography ul + h5,
+.ant-typography li + h5,
+.ant-typography p + h5,
+.ant-typography h1 + h5,
+.ant-typography h2 + h5,
+.ant-typography h3 + h5,
+.ant-typography h4 + h5,
+.ant-typography h5 + h5 {
+ margin-top: 1.2em;
+}
+a.ant-typography-ellipsis,
+span.ant-typography-ellipsis {
+ display: inline-block;
+ max-width: 100%;
+}
+a.ant-typography,
+.ant-typography a {
+ color: #3061D0;
+ outline: none;
+ cursor: pointer;
+ transition: color 0.3s;
+ text-decoration: none;
+}
+a.ant-typography:focus-visible,
+.ant-typography a:focus-visible,
+a.ant-typography:hover,
+.ant-typography a:hover {
+ color: #5784de;
+}
+a.ant-typography:active,
+.ant-typography a:active {
+ color: #1f44ab;
+}
+a.ant-typography:active,
+.ant-typography a:active,
+a.ant-typography:hover,
+.ant-typography a:hover {
+ text-decoration: none;
+}
+a.ant-typography[disabled],
+.ant-typography a[disabled],
+a.ant-typography.ant-typography-disabled,
+.ant-typography a.ant-typography-disabled {
+ color: rgba(0, 0, 0, 0.25);
+ cursor: not-allowed;
+}
+a.ant-typography[disabled]:active,
+.ant-typography a[disabled]:active,
+a.ant-typography.ant-typography-disabled:active,
+.ant-typography a.ant-typography-disabled:active,
+a.ant-typography[disabled]:hover,
+.ant-typography a[disabled]:hover,
+a.ant-typography.ant-typography-disabled:hover,
+.ant-typography a.ant-typography-disabled:hover {
+ color: rgba(0, 0, 0, 0.25);
+}
+a.ant-typography[disabled]:active,
+.ant-typography a[disabled]:active,
+a.ant-typography.ant-typography-disabled:active,
+.ant-typography a.ant-typography-disabled:active {
+ pointer-events: none;
+}
+.ant-typography code {
+ margin: 0 0.2em;
+ padding: 0.2em 0.4em 0.1em;
+ font-size: 85%;
+ background: rgba(150, 150, 150, 0.1);
+ border: 1px solid rgba(100, 100, 100, 0.2);
+ border-radius: 3px;
+}
+.ant-typography kbd {
+ margin: 0 0.2em;
+ padding: 0.15em 0.4em 0.1em;
+ font-size: 90%;
+ background: rgba(150, 150, 150, 0.06);
+ border: 1px solid rgba(100, 100, 100, 0.2);
+ border-bottom-width: 2px;
+ border-radius: 3px;
+}
+.ant-typography mark {
+ padding: 0;
+ background-color: #ffe58f;
+}
+.ant-typography u,
+.ant-typography ins {
+ text-decoration: underline;
+ -webkit-text-decoration-skip: ink;
+ text-decoration-skip-ink: auto;
+}
+.ant-typography s,
+.ant-typography del {
+ text-decoration: line-through;
+}
+.ant-typography strong {
+ font-weight: 600;
+}
+.ant-typography-expand,
+.ant-typography-edit,
+.ant-typography-copy {
+ color: #3061D0;
+ outline: none;
+ cursor: pointer;
+ transition: color 0.3s;
+ margin-left: 4px;
+}
+.ant-typography-expand:focus-visible,
+.ant-typography-edit:focus-visible,
+.ant-typography-copy:focus-visible,
+.ant-typography-expand:hover,
+.ant-typography-edit:hover,
+.ant-typography-copy:hover {
+ color: #5784de;
+}
+.ant-typography-expand:active,
+.ant-typography-edit:active,
+.ant-typography-copy:active {
+ color: #1f44ab;
+}
+.ant-typography-copy-success,
+.ant-typography-copy-success:hover,
+.ant-typography-copy-success:focus {
+ color: #52c41a;
+}
+.ant-typography-edit-content {
+ position: relative;
+}
+div.ant-typography-edit-content {
+ left: -8px;
+ margin-top: -4px;
+ margin-bottom: calc(1em - 3px - 1px);
+}
+.ant-typography-edit-content-confirm {
+ position: absolute;
+ right: 10px;
+ bottom: 8px;
+ color: rgba(0, 0, 0, 0.45);
+ font-weight: normal;
+ font-size: 12px;
+ font-style: normal;
+ pointer-events: none;
+}
+.ant-typography-edit-content textarea {
+ height: 1em;
+ margin: 0 !important;
+ /* stylelint-disable-next-line property-no-vendor-prefix */
+ -moz-transition: none;
+}
+.ant-typography ul,
+.ant-typography ol {
+ margin: 0 0 1em;
+ padding: 0;
+}
+.ant-typography ul li,
+.ant-typography ol li {
+ margin: 0 0 0 20px;
+ padding: 0 0 0 4px;
+}
+.ant-typography ul {
+ list-style-type: circle;
+}
+.ant-typography ul ul {
+ list-style-type: disc;
+}
+.ant-typography ol {
+ list-style-type: decimal;
+}
+.ant-typography pre,
+.ant-typography blockquote {
+ margin: 1em 0;
+}
+.ant-typography pre {
+ padding: 0.4em 0.6em;
+ white-space: pre-wrap;
+ word-wrap: break-word;
+ background: rgba(150, 150, 150, 0.1);
+ border: 1px solid rgba(100, 100, 100, 0.2);
+ border-radius: 3px;
+}
+.ant-typography pre code {
+ display: inline;
+ margin: 0;
+ padding: 0;
+ font-size: inherit;
+ font-family: inherit;
+ background: transparent;
+ border: 0;
+}
+.ant-typography blockquote {
+ padding: 0 0 0 0.6em;
+ border-left: 4px solid rgba(100, 100, 100, 0.2);
+ opacity: 0.85;
+}
+.ant-typography-single-line {
+ white-space: nowrap;
+}
+.ant-typography-ellipsis-single-line {
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+a.ant-typography-ellipsis-single-line,
+span.ant-typography-ellipsis-single-line {
+ vertical-align: bottom;
+}
+.ant-typography-ellipsis-multiple-line {
+ /* stylelint-disable-next-line value-no-vendor-prefix */
+ display: -webkit-box;
+ overflow: hidden;
+ -webkit-line-clamp: 3;
+ /*! autoprefixer: ignore next */
+ -webkit-box-orient: vertical;
+}
+.ant-typography-rtl {
+ direction: rtl;
+}
+.ant-typography-rtl .ant-typography-expand,
+.ant-typography-rtl .ant-typography-edit,
+.ant-typography-rtl .ant-typography-copy {
+ margin-right: 4px;
+ margin-left: 0;
+}
+.ant-typography-rtl .ant-typography-expand {
+ float: left;
+}
+div.ant-typography-edit-content.ant-typography-rtl {
+ right: -8px;
+ left: auto;
+}
+.ant-typography-rtl .ant-typography-edit-content-confirm {
+ right: auto;
+ left: 10px;
+}
+.ant-typography-rtl.ant-typography ul li,
+.ant-typography-rtl.ant-typography ol li {
+ margin: 0 20px 0 0;
+ padding: 0 4px 0 0;
+}
+/* stylelint-disable no-duplicate-selectors */
+/* stylelint-disable */
+/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
+
+/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
+ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./node_modules/antd/es/statistic/style/index.less ***!
+ \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
+/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
+/* stylelint-disable no-duplicate-selectors */
+/* stylelint-disable */
+/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
+.ant-statistic {
+ box-sizing: border-box;
+ margin: 0;
+ padding: 0;
+ color: rgba(0, 0, 0, 0.85);
+ font-size: 12px;
+ font-variant: tabular-nums;
+ line-height: 1.66667;
+ list-style: none;
+ font-feature-settings: tnum, "tnum";
+}
+.ant-statistic-title {
+ margin-bottom: 0px;
+ color: rgba(0, 0, 0, 0.45);
+ font-size: 12px;
+}
+.ant-statistic-skeleton {
+ padding-top: 8px;
+}
+.ant-statistic-content {
+ color: rgba(0, 0, 0, 0.85);
+ font-size: 20px;
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
+}
+.ant-statistic-content-value {
+ display: inline-block;
+ direction: ltr;
+}
+.ant-statistic-content-prefix,
+.ant-statistic-content-suffix {
+ display: inline-block;
+}
+.ant-statistic-content-prefix {
+ margin-right: 4px;
+}
+.ant-statistic-content-suffix {
+ margin-left: 4px;
+}
+.ant-statistic-rtl {
+ direction: rtl;
+}
+.ant-statistic-rtl .ant-statistic-content-prefix {
+ margin-right: 0;
+ margin-left: 4px;
+}
+.ant-statistic-rtl .ant-statistic-content-suffix {
+ margin-right: 4px;
+ margin-left: 0;
+}
+/* stylelint-disable no-duplicate-selectors */
+/* stylelint-disable */
+/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
+
+/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
+ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./node_modules/antd/es/rate/style/index.less ***!
+ \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
+/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
+/* stylelint-disable no-duplicate-selectors */
+/* stylelint-disable */
+/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
+.ant-rate {
+ box-sizing: border-box;
+ color: rgba(0, 0, 0, 0.85);
+ font-size: 12px;
+ font-variant: tabular-nums;
+ line-height: 1.66667;
+ font-feature-settings: tnum, "tnum";
+ display: inline-block;
+ margin: 0;
+ padding: 0;
+ color: #fadb14;
+ font-size: 16px;
+ line-height: inherit;
+ list-style: none;
+ outline: none;
+}
+.ant-rate-disabled .ant-rate-star {
+ cursor: default;
+}
+.ant-rate-disabled .ant-rate-star > div:hover {
+ transform: scale(1);
+}
+.ant-rate-star {
+ position: relative;
+ display: inline-block;
+ color: inherit;
+ cursor: pointer;
+}
+.ant-rate-star:not(:last-child) {
+ margin-right: 8px;
+}
+.ant-rate-star > div {
+ transition: all 0.3s, outline 0s;
+}
+.ant-rate-star > div:hover {
+ transform: scale(1.1);
+}
+.ant-rate-star > div:focus {
+ outline: 0;
+}
+.ant-rate-star > div:focus-visible {
+ outline: 1px dashed #fadb14;
+ transform: scale(1.1);
+}
+.ant-rate-star-first,
+.ant-rate-star-second {
+ color: #f0f0f0;
+ transition: all 0.3s;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+}
+.ant-rate-star-first .anticon,
+.ant-rate-star-second .anticon {
+ vertical-align: middle;
+}
+.ant-rate-star-first {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 50%;
+ height: 100%;
+ overflow: hidden;
+ opacity: 0;
+}
+.ant-rate-star-half .ant-rate-star-first,
+.ant-rate-star-half .ant-rate-star-second {
+ opacity: 1;
+}
+.ant-rate-star-half .ant-rate-star-first,
+.ant-rate-star-full .ant-rate-star-second {
+ color: inherit;
+}
+.ant-rate-text {
+ display: inline-block;
+ margin: 0 8px;
+ font-size: 12px;
+}
+.ant-rate-rtl {
+ direction: rtl;
+}
+.ant-rate-rtl .ant-rate-star:not(:last-child) {
+ margin-right: 0;
+ margin-left: 8px;
+}
+.ant-rate-rtl .ant-rate-star-first {
+ right: 0;
+ left: auto;
+}
+/* stylelint-disable no-duplicate-selectors */
+/* stylelint-disable */
+/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
+
diff --git a/9497.async.js b/9497.async.js
index 38a7c069f7..96e7a986ff 100644
--- a/9497.async.js
+++ b/9497.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[9497,34472,30589],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[9497,34472,30589,36036],{
/***/ 66023:
/*!*******************************************************************!*\
diff --git a/95870.async.js b/95870.async.js
index 6a44b544cf..c3bd172d4e 100644
--- a/95870.async.js
+++ b/95870.async.js
@@ -1,19 +1,6 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[95870,58269,79713,89626,71514],{
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
-/***/ }),
-
/***/ 77171:
/*!**********************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/ArrowDownOutlined.js + 1 modules ***!
@@ -1122,33 +1109,6 @@ EyeOutlined_EyeOutlined.displayName = 'EyeOutlined';
/***/ }),
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
-/***/ }),
-
/***/ 34243:
/*!**********************************************************!*\
!*** ./node_modules/rc-overflow/es/index.js + 4 modules ***!
diff --git a/91239.async.js b/96341.async.js
similarity index 95%
rename from 91239.async.js
rename to 96341.async.js
index 2dfbbe75d1..94ebd818f3 100644
--- a/91239.async.js
+++ b/96341.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[91239],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[96341],{
/***/ 32857:
/*!********************************************************************!*\
@@ -38,19 +38,6 @@ var RightOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 8
/* harmony default export */ __webpack_exports__["Z"] = (RightOutlined);
-/***/ }),
-
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
/***/ }),
/***/ 7918:
@@ -1500,33 +1487,6 @@ var RightOutlined = function RightOutlined(props, ref) {
RightOutlined.displayName = 'RightOutlined';
/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(RightOutlined));
-/***/ }),
-
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
/***/ })
}]);
\ No newline at end of file
diff --git a/99532.async.js b/99532.async.js
index c828a1f00e..efb3a7c413 100644
--- a/99532.async.js
+++ b/99532.async.js
@@ -25,19 +25,6 @@ var FolderOpenOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64
/* harmony default export */ __webpack_exports__["Z"] = (FolderOpenOutlined);
-/***/ }),
-
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
/***/ }),
/***/ 57838:
@@ -1639,33 +1626,6 @@ EyeOutlined_EyeOutlined.displayName = 'EyeOutlined';
/***/ }),
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
-/***/ }),
-
/***/ 34243:
/*!**********************************************************!*\
!*** ./node_modules/rc-overflow/es/index.js + 4 modules ***!
diff --git a/color.less b/color.less
index 9bbccbb74c..6fff9103a8 100644
--- a/color.less
+++ b/color.less
@@ -87,7 +87,7 @@ html {--antd-wave-shadow-color: @primary-color;}
.ant-alert-success .ant-alert-icon {color: @success-color;}
.ant-alert-info {background-color: color(~`colorPalette("@{primary-color}", 1)`);border: 1px solid color(~`colorPalette("@{primary-color}", 3)`);}
.ant-alert-info .ant-alert-icon {color: @primary-color;}
-.ant-alert-warning {background-color: color(~`colorPalette("@{modal-header-bg}", 1)`);border: 1px solid color(~`colorPalette("@{error-color}", 1)`);}
+.ant-alert-warning {background-color: color(~`colorPalette("@{warning-color}", 1)`);border: 1px solid color(~`colorPalette("@{warning-color}", 3)`);}
.ant-alert-warning .ant-alert-icon {color: @warning-color;}
.ant-alert-error {background-color: color(~`colorPalette("@{error-color}", 1)`);border: 1px solid color(~`colorPalette("@{error-color}", 3)`);}
.ant-alert-error .ant-alert-icon {color: @error-color;}
@@ -563,10 +563,10 @@ a.ant-btn-disabled:active > a:only-child::after {background: transparent;}
.ant-comment-actions > li > span {color: @text-color-secondary;}
.ant-comment-actions > li > span:hover {color: #595959;}
.ant-picker-status-error.ant-picker, .ant-picker-status-error.ant-picker:not([disabled]):hover {background-color: #fff;border-color: @error-color;}
-.ant-picker-status-error.ant-picker-focused, .ant-picker-status-error.ant-picker:focus {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(188, 217, 24, 0.2);border-right-width: 1px;}
+.ant-picker-status-error.ant-picker-focused, .ant-picker-status-error.ant-picker:focus {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(133, 67, 140, 0.2);border-right-width: 1px;}
.ant-picker-status-error.ant-picker .ant-picker-active-bar {background: color(~`colorPalette("@{error-color}", 5)`);}
.ant-picker-status-warning.ant-picker, .ant-picker-status-warning.ant-picker:not([disabled]):hover {background-color: #fff;border-color: @warning-color;}
-.ant-picker-status-warning.ant-picker-focused, .ant-picker-status-warning.ant-picker:focus {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(224, 214, 97, 0.2);border-right-width: 1px;}
+.ant-picker-status-warning.ant-picker-focused, .ant-picker-status-warning.ant-picker:focus {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(107, 235, 65, 0.2);border-right-width: 1px;}
.ant-picker-status-warning.ant-picker .ant-picker-active-bar {background: color(~`colorPalette("@{warning-color}", 5)`);}
.ant-picker {color: @text-color;background: #fff;border: 1px solid @border-color-base;border-radius: 2px;}
.ant-picker:hover, .ant-picker-focused {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px;}
@@ -788,16 +788,16 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.anticon.ant-input-clear-icon:hover, .ant-input-clear-icon:hover {color: @text-color-secondary;}
.anticon.ant-input-clear-icon:active, .ant-input-clear-icon:active {color: @text-color;}
.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input, .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {background: #fff;border-color: @error-color;}
-.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus, .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(188, 217, 24, 0.2);border-right-width: 1px;}
+.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus, .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(133, 67, 140, 0.2);border-right-width: 1px;}
.ant-input-status-error .ant-input-prefix {color: @error-color;}
.ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input, .ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {background: #fff;border-color: @warning-color;}
-.ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus, .ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(224, 214, 97, 0.2);border-right-width: 1px;}
+.ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus, .ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(107, 235, 65, 0.2);border-right-width: 1px;}
.ant-input-status-warning .ant-input-prefix {color: @warning-color;}
.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper, .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover {background: #fff;border-color: @error-color;}
-.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus, .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(188, 217, 24, 0.2);border-right-width: 1px;}
+.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus, .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(133, 67, 140, 0.2);border-right-width: 1px;}
.ant-input-affix-wrapper-status-error .ant-input-prefix {color: @error-color;}
.ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper, .ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover {background: #fff;border-color: @warning-color;}
-.ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus, .ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(224, 214, 97, 0.2);border-right-width: 1px;}
+.ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus, .ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(107, 235, 65, 0.2);border-right-width: 1px;}
.ant-input-affix-wrapper-status-warning .ant-input-prefix {color: @warning-color;}
.ant-input-group-wrapper-status-error .ant-input-group-addon {color: @error-color;border-color: @error-color;}
.ant-input-group-wrapper-status-warning .ant-input-group-addon {color: @warning-color;border-color: @warning-color;}
@@ -894,16 +894,16 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.ant-input-number-affix-wrapper > div.ant-input-number {border: none;}
.ant-input-number-affix-wrapper > div.ant-input-number.ant-input-number-focused {box-shadow: none !important;}
.ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number, .ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:hover {background: #fff;border-color: @error-color;}
-.ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:focus, .ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(188, 217, 24, 0.2);border-right-width: 1px;}
+.ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:focus, .ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(133, 67, 140, 0.2);border-right-width: 1px;}
.ant-input-number-status-error .ant-input-number-prefix {color: @error-color;}
.ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number, .ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:hover {background: #fff;border-color: @warning-color;}
-.ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:focus, .ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(224, 214, 97, 0.2);border-right-width: 1px;}
+.ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:focus, .ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(107, 235, 65, 0.2);border-right-width: 1px;}
.ant-input-number-status-warning .ant-input-number-prefix {color: @warning-color;}
.ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper, .ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:hover {background: #fff;border-color: @error-color;}
-.ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:focus, .ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(188, 217, 24, 0.2);border-right-width: 1px;}
+.ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:focus, .ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(133, 67, 140, 0.2);border-right-width: 1px;}
.ant-input-number-affix-wrapper-status-error .ant-input-number-prefix {color: @error-color;}
.ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper, .ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:hover {background: #fff;border-color: @warning-color;}
-.ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:focus, .ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(224, 214, 97, 0.2);border-right-width: 1px;}
+.ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:focus, .ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(107, 235, 65, 0.2);border-right-width: 1px;}
.ant-input-number-affix-wrapper-status-warning .ant-input-number-prefix {color: @warning-color;}
.ant-input-number-group-wrapper-status-error .ant-input-number-group-addon {color: @error-color;border-color: @error-color;}
.ant-input-number-group-wrapper-status-warning .ant-input-number-group-addon {color: @warning-color;border-color: @warning-color;}
@@ -1024,10 +1024,10 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.ant-list-grid .ant-col > .ant-list-item {border-bottom: none;}
.ant-list-bordered {border: 1px solid @border-color-base;border-radius: 2px;}
.ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions, .ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:hover {background: #fff;border-color: @error-color;}
-.ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:focus, .ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(188, 217, 24, 0.2);border-right-width: 1px;}
+.ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:focus, .ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(133, 67, 140, 0.2);border-right-width: 1px;}
.ant-mentions-status-error .ant-input-prefix {color: @error-color;}
.ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions, .ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:hover {background: #fff;border-color: @warning-color;}
-.ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:focus, .ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(224, 214, 97, 0.2);border-right-width: 1px;}
+.ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:focus, .ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(107, 235, 65, 0.2);border-right-width: 1px;}
.ant-mentions-status-warning .ant-input-prefix {color: @warning-color;}
.ant-mentions {color: @text-color;background-color: #fff;background-image: none;border: 1px solid @border-color-base;border-radius: 2px;}
.ant-mentions::placeholder {color: #bfbfbf;}
@@ -1360,9 +1360,9 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.ant-select-multiple .ant-select-selection-item-remove {color: inherit;color: @text-color-secondary;}
.ant-select-multiple .ant-select-selection-item-remove:hover {color: rgba(0, 0, 0, 0.75);}
.ant-select-status-error.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer) .ant-select-selector {background-color: #fff;border-color: @error-color !important;}
-.ant-select-status-error.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-open .ant-select-selector, .ant-select-status-error.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(188, 217, 24, 0.2);border-right-width: 1px;}
+.ant-select-status-error.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-open .ant-select-selector, .ant-select-status-error.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(133, 67, 140, 0.2);border-right-width: 1px;}
.ant-select-status-warning.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer) .ant-select-selector {background-color: #fff;border-color: @warning-color !important;}
-.ant-select-status-warning.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-open .ant-select-selector, .ant-select-status-warning.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(224, 214, 97, 0.2);border-right-width: 1px;}
+.ant-select-status-warning.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-open .ant-select-selector, .ant-select-status-warning.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(107, 235, 65, 0.2);border-right-width: 1px;}
.ant-select {color: @text-color;}
.ant-select:not(.ant-select-customize-input) .ant-select-selector {background-color: #fff;border: 1px solid @border-color-base;border-radius: 2px;}
.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector {border-color: color(~`colorPalette("@{primary-color}", 5)`);box-shadow: 0 0 0 2px fade(@primary-color, 20%);border-right-width: 1px;}
@@ -1658,14 +1658,14 @@ tr.ant-table-expanded-row:hover > td {background: #fbfbfb;}
.ant-tag-green-inverse {color: #fff;background: #52c41a;border-color: #52c41a;}
.ant-tag-blue {color: #096dd9;background: #e6f7ff;border-color: #91d5ff;}
.ant-tag-blue-inverse {color: #fff;background: #1890ff;border-color: #1890ff;}
-.ant-tag-geekblue {color: #1d39c4;background: #f0f5ff;border-color: #adc6ff;}
+.ant-tag-geekblue {color: #1d39c4;background: color(~`colorPalette("@{border-color-base}", 1)`);border-color: #adc6ff;}
.ant-tag-geekblue-inverse {color: #fff;background: #2f54eb;border-color: #2f54eb;}
.ant-tag-purple {color: #531dab;background: #f9f0ff;border-color: #d3adf7;}
.ant-tag-purple-inverse {color: #fff;background: #722ed1;border-color: #722ed1;}
.ant-tag-success {color: @success-color;background: color(~`colorPalette("@{success-color}", 1)`);border-color: color(~`colorPalette("@{success-color}", 3)`);}
.ant-tag-processing {color: @primary-color;background: color(~`colorPalette("@{primary-color}", 1)`);border-color: color(~`colorPalette("@{primary-color}", 3)`);}
.ant-tag-error {color: @error-color;background: color(~`colorPalette("@{error-color}", 1)`);border-color: color(~`colorPalette("@{error-color}", 3)`);}
-.ant-tag-warning {color: @warning-color;background: color(~`colorPalette("@{modal-header-bg}", 1)`);border-color: color(~`colorPalette("@{error-color}", 1)`);}
+.ant-tag-warning {color: @warning-color;background: color(~`colorPalette("@{warning-color}", 1)`);border-color: color(~`colorPalette("@{warning-color}", 3)`);}
.ant-timeline {color: @text-color;}
.ant-timeline-item-tail {border-left: 2px solid #f0f0f0;}
.ant-timeline-item-pending .ant-timeline-item-head {background-color: transparent;}
diff --git a/layouts__SimpleLayouts.async.js b/layouts__SimpleLayouts.async.js
index 3d6994af7c..57d163e018 100644
--- a/layouts__SimpleLayouts.async.js
+++ b/layouts__SimpleLayouts.async.js
@@ -1,19 +1,6 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[37062],{
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
-/***/ }),
-
/***/ 51432:
/*!****************************************************!*\
!*** ./src/layouts/SimpleLayouts.tsx + 16 modules ***!
@@ -1978,33 +1965,6 @@ EyeOutlined_EyeOutlined.displayName = 'EyeOutlined';
/***/ }),
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
-/***/ }),
-
/***/ 81626:
/*!*******************************************************!*\
!*** ./node_modules/rc-pagination/es/locale/zh_CN.js ***!
diff --git a/p__Account__Results__index.async.js b/p__Account__Results__index.async.js
index 93f250781a..f4654738b6 100644
--- a/p__Account__Results__index.async.js
+++ b/p__Account__Results__index.async.js
@@ -1,19 +1,6 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[14514],{
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
-/***/ }),
-
/***/ 55487:
/*!*********************************************************!*\
!*** ./src/pages/Account/Results/index.tsx + 1 modules ***!
@@ -756,33 +743,6 @@ var EyeOutlined_EyeOutlined = function EyeOutlined(props, ref) {
EyeOutlined_EyeOutlined.displayName = 'EyeOutlined';
/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/react.forwardRef(EyeOutlined_EyeOutlined));
-/***/ }),
-
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
/***/ })
}]);
\ No newline at end of file
diff --git a/p__Account__Secure__index.async.js b/p__Account__Secure__index.async.js
index 15a687b542..9d4f379e6b 100644
--- a/p__Account__Secure__index.async.js
+++ b/p__Account__Secure__index.async.js
@@ -1,19 +1,6 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[64520],{
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
-/***/ }),
-
/***/ 29051:
/*!********************************************************!*\
!*** ./src/pages/Account/Secure/index.tsx + 1 modules ***!
@@ -2109,33 +2096,6 @@ EyeOutlined_EyeOutlined.displayName = 'EyeOutlined';
/***/ }),
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
-/***/ }),
-
/***/ 43159:
/*!**************************************************!*\
!*** ./node_modules/rc-tooltip/es/placements.js ***!
diff --git a/p__Classrooms__ExamList__index.async.js b/p__Classrooms__ExamList__index.async.js
index 1eb578da52..a0c43bef1e 100644
--- a/p__Classrooms__ExamList__index.async.js
+++ b/p__Classrooms__ExamList__index.async.js
@@ -25,6 +25,19 @@ var RightOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 8
/* harmony default export */ __webpack_exports__["Z"] = (RightOutlined);
+/***/ }),
+
+/***/ 509:
+/*!*********************************************************************!*\
+ !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
+ \*********************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__) {
+
+// This icon file is generated automatically.
+var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
+/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
+
+
/***/ }),
/***/ 82982:
@@ -2171,6 +2184,33 @@ RightOutlined.displayName = 'RightOutlined';
/***/ }),
+/***/ 25783:
+/*!*************************************************************************************!*\
+ !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
+ \*************************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
+/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
+
+// GENERATE BY ./scripts/generate.ts
+// DON NOT EDIT IT MANUALLY
+
+
+
+var SearchOutlined = function SearchOutlined(props, ref) {
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
+ ref: ref,
+ icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
+ }));
+};
+SearchOutlined.displayName = 'SearchOutlined';
+/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
+
+/***/ }),
+
/***/ 50132:
/*!**********************************************!*\
!*** ./node_modules/rc-checkbox/es/index.js ***!
diff --git a/p__Classrooms__Lists__CommonHomework__Detail__index.async.js b/p__Classrooms__Lists__CommonHomework__Detail__index.async.js
index 3e5de362c7..96b495e5ba 100644
--- a/p__Classrooms__Lists__CommonHomework__Detail__index.async.js
+++ b/p__Classrooms__Lists__CommonHomework__Detail__index.async.js
@@ -172,22 +172,27 @@ var AsyncButton = function AsyncButton(_ref) {
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectSpread2.js */ 42122);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var antd_es_button_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! antd/es/button/style */ 29913);
-/* harmony import */ var antd_es_button__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd/es/button */ 71577);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js */ 17061);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__);
-/* harmony import */ var antd_es_message_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! antd/es/message/style */ 14934);
-/* harmony import */ var antd_es_message__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! antd/es/message */ 12461);
-/* harmony import */ var antd_es_modal_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd/es/modal/style */ 35611);
-/* harmony import */ var antd_es_modal__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! antd/es/modal */ 85402);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/asyncToGenerator.js */ 17156);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_5__);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/slicedToArray.js */ 27424);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_6__);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var jszip__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! jszip */ 55733);
-/* harmony import */ var jszip__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(jszip__WEBPACK_IMPORTED_MODULE_8__);
-/* harmony import */ var _utils_env__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/utils/env */ 59758);
-/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
+/* harmony import */ var antd_es_button__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! antd/es/button */ 71577);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js */ 74704);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_2__);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js */ 17061);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__);
+/* harmony import */ var antd_es_message_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd/es/message/style */ 14934);
+/* harmony import */ var antd_es_message__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd/es/message */ 12461);
+/* harmony import */ var antd_es_modal_style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! antd/es/modal/style */ 35611);
+/* harmony import */ var antd_es_modal__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! antd/es/modal */ 85402);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/asyncToGenerator.js */ 17156);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_6__);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/slicedToArray.js */ 27424);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_7__);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var jszip__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! jszip */ 55733);
+/* harmony import */ var jszip__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(jszip__WEBPACK_IMPORTED_MODULE_9__);
+/* harmony import */ var _utils_env__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/utils/env */ 59758);
+/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/utils/fetch */ 84519);
+/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
+
+
@@ -213,42 +218,42 @@ var ExportZip = function ExportZip(_ref, ref) {
hide = _ref.hide,
_ref$onOk = _ref.onOk,
onOk = _ref$onOk === void 0 ? function () {} : _ref$onOk;
- // const [zip, setZip] = useState(new JSZip());
- var _useState = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(false),
- _useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_6___default()(_useState, 2),
+ var _useState = (0,react__WEBPACK_IMPORTED_MODULE_8__.useState)(false),
+ _useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_7___default()(_useState, 2),
isLoading = _useState2[0],
setIsLoading = _useState2[1];
- var zip = (0,react__WEBPACK_IMPORTED_MODULE_7__.useRef)(new (jszip__WEBPACK_IMPORTED_MODULE_8___default())());
- (0,react__WEBPACK_IMPORTED_MODULE_7__.useImperativeHandle)(ref, function () {
+ var zip = (0,react__WEBPACK_IMPORTED_MODULE_8__.useRef)(new (jszip__WEBPACK_IMPORTED_MODULE_9___default())());
+ (0,react__WEBPACK_IMPORTED_MODULE_8__.useImperativeHandle)(ref, function () {
return {
- exportReport: exportReport
+ exportReport: exportReport,
+ exportAndCreateUserFolder: exportAndCreateUserFolder
};
});
var exportReport = /*#__PURE__*/function () {
- var _ref2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_5___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default()().mark(function _callee4(item) {
+ var _ref2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_6___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().mark(function _callee4(item) {
var fileTypeText,
data,
- modal,
num,
size,
fileNum,
+ modal,
next,
_next,
_args4 = arguments;
- return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default()().wrap(function _callee4$(_context4) {
+ return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
_next = function _next3() {
- _next = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_5___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default()().mark(function _callee3() {
+ _next = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_6___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().mark(function _callee3() {
var _data$num;
- return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default()().wrap(function _callee3$(_context3) {
+ return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
- uploadRequest({}, "".concat(_utils_env__WEBPACK_IMPORTED_MODULE_9__/* ["default"].API_SERVER */ .Z.API_SERVER, "/api/attachments/").concat(data === null || data === void 0 ? void 0 : (_data$num = data[num]) === null || _data$num === void 0 ? void 0 : _data$num.id), /*#__PURE__*/function () {
- var _ref3 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_5___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default()().mark(function _callee2(res, xhr) {
+ uploadRequest({}, "".concat(_utils_env__WEBPACK_IMPORTED_MODULE_10__/* ["default"].API_SERVER */ .Z.API_SERVER, "/api/attachments/").concat(data === null || data === void 0 ? void 0 : (_data$num = data[num]) === null || _data$num === void 0 ? void 0 : _data$num.id), /*#__PURE__*/function () {
+ var _ref3 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_6___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().mark(function _callee2(res, xhr) {
var _res$target$response, _data$num2;
var d, blob, fileName;
- return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default()().wrap(function _callee2$(_context2) {
+ return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
if (!(((_res$target$response = res.target.response) === null || _res$target$response === void 0 ? void 0 : _res$target$response.type) === 'application/json')) {
@@ -263,7 +268,7 @@ var ExportZip = function ExportZip(_ref, ref) {
_context2.next = 8;
break;
}
- antd_es_message__WEBPACK_IMPORTED_MODULE_11__/* ["default"].warn */ .ZP.warn((d === null || d === void 0 ? void 0 : d.message) || '下载出错, 请联系管理员');
+ antd_es_message__WEBPACK_IMPORTED_MODULE_13__/* ["default"].warn */ .ZP.warn((d === null || d === void 0 ? void 0 : d.message) || '下载出错, 请联系管理员');
setIsLoading(false);
return _context2.abrupt("return");
case 8:
@@ -272,17 +277,17 @@ var ExportZip = function ExportZip(_ref, ref) {
});
size = size + blob.size;
fileName = data === null || data === void 0 ? void 0 : (_data$num2 = data[num]) === null || _data$num2 === void 0 ? void 0 : _data$num2.filename;
- setTimeout( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_5___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default()().mark(function _callee() {
- return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default()().wrap(function _callee$(_context) {
+ setTimeout( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_6___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().mark(function _callee() {
+ return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
zip.current.file(fileName, blob);
modal.update({
- content: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)("div", {
- children: ["\u5F53\u524D\u8FDB\u5EA6: ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)("span", {
+ content: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("div", {
+ children: ["\u5F53\u524D\u8FDB\u5EA6: ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("span", {
className: "c-blue",
children: num + 1
- }), "/", data === null || data === void 0 ? void 0 : data.length, fileNum > 0 ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)("span", {
+ }), "/", data === null || data === void 0 ? void 0 : data.length, fileNum > 0 ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("span", {
children: ["(\u5DF2\u62C6\u5206", fileNum, "\u4E2Azip\u5305)"]
}) : '']
})
@@ -336,16 +341,16 @@ var ExportZip = function ExportZip(_ref, ref) {
num = 0;
size = 0;
fileNum = 0;
- modal = antd_es_modal__WEBPACK_IMPORTED_MODULE_12__/* ["default"].info */ .Z.info({
+ modal = antd_es_modal__WEBPACK_IMPORTED_MODULE_14__/* ["default"].info */ .Z.info({
width: 460,
- title: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)("div", {
- children: ["\u6B63\u5728\u5BFC\u51FA", fileTypeText, ",", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)("span", {
+ title: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("div", {
+ children: ["\u6B63\u5728\u5BFC\u51FA", fileTypeText, ",", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("span", {
className: "c-red",
children: "\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3"
})]
}),
- content: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)("div", {
- children: ["\u5F53\u524D\u8FDB\u5EA6: ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)("span", {
+ content: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("div", {
+ children: ["\u5F53\u524D\u8FDB\u5EA6: ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("span", {
className: "c-blue",
children: num + 1
}), "/", data === null || data === void 0 ? void 0 : data.length]
@@ -365,6 +370,166 @@ var ExportZip = function ExportZip(_ref, ref) {
return _ref2.apply(this, arguments);
};
}();
+ var exportAndCreateUserFolder = /*#__PURE__*/function () {
+ var _ref5 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_6___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().mark(function _callee6(data) {
+ var fileTypeText,
+ downloadName,
+ num,
+ totalNum,
+ modal,
+ handleFileItem,
+ _handleFileItem,
+ _iterator,
+ _step,
+ userFiles,
+ folderName,
+ folder,
+ _iterator2,
+ _step2,
+ fileItem,
+ content,
+ link,
+ _args6 = arguments;
+ return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().wrap(function _callee6$(_context6) {
+ while (1) switch (_context6.prev = _context6.next) {
+ case 0:
+ _handleFileItem = function _handleFileItem3() {
+ _handleFileItem = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_6___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().mark(function _callee5(exportItem, userFolder) {
+ var res, blob, fileName;
+ return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().wrap(function _callee5$(_context5) {
+ while (1) switch (_context5.prev = _context5.next) {
+ case 0:
+ _context5.next = 2;
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .ZP)("".concat(_utils_env__WEBPACK_IMPORTED_MODULE_10__/* ["default"].API_SERVER */ .Z.API_SERVER, "/api/attachments/").concat(exportItem.id), {
+ method: 'get'
+ });
+ case 2:
+ res = _context5.sent;
+ blob = new Blob([res], {
+ type: 'application/vnd.ms-excel;charset=utf-8'
+ });
+ fileName = exportItem.filename;
+ userFolder.file(fileName, blob);
+ num += 1;
+ modal.update({
+ content: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("div", {
+ children: ["\u5F53\u524D\u8FDB\u5EA6: ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("span", {
+ className: "c-blue",
+ children: num
+ }), "/", totalNum]
+ })
+ });
+ case 8:
+ case "end":
+ return _context5.stop();
+ }
+ }, _callee5);
+ }));
+ return _handleFileItem.apply(this, arguments);
+ };
+ handleFileItem = function _handleFileItem2(_x5, _x6) {
+ return _handleFileItem.apply(this, arguments);
+ };
+ fileTypeText = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : '附件';
+ downloadName = _args6.length > 2 ? _args6[2] : undefined;
+ setIsLoading(true);
+ num = 0; //暂时先不处理大文件进一步拆分的逻辑,能批注的文件类型基本上不会太大
+ totalNum = data.flat().length;
+ modal = antd_es_modal__WEBPACK_IMPORTED_MODULE_14__/* ["default"].info */ .Z.info({
+ width: 460,
+ title: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("div", {
+ children: ["\u6B63\u5728\u5BFC\u51FA", fileTypeText, ",", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("span", {
+ className: "c-red",
+ children: "\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3"
+ })]
+ }),
+ content: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("div", {
+ children: ["\u5F53\u524D\u8FDB\u5EA6: ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("span", {
+ className: "c-blue",
+ children: num
+ }), "/", totalNum]
+ }),
+ maskClosable: false,
+ okText: '我知道了'
+ });
+ _iterator = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_2___default()(data);
+ _context6.prev = 9;
+ _iterator.s();
+ case 11:
+ if ((_step = _iterator.n()).done) {
+ _context6.next = 34;
+ break;
+ }
+ userFiles = _step.value;
+ folderName = "".concat(userFiles[0].user_name, "-").concat(userFiles[0].student_id);
+ folder = zip.current.folder(folderName);
+ _iterator2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_2___default()(userFiles);
+ _context6.prev = 16;
+ _iterator2.s();
+ case 18:
+ if ((_step2 = _iterator2.n()).done) {
+ _context6.next = 24;
+ break;
+ }
+ fileItem = _step2.value;
+ _context6.next = 22;
+ return handleFileItem(fileItem, folder);
+ case 22:
+ _context6.next = 18;
+ break;
+ case 24:
+ _context6.next = 29;
+ break;
+ case 26:
+ _context6.prev = 26;
+ _context6.t0 = _context6["catch"](16);
+ _iterator2.e(_context6.t0);
+ case 29:
+ _context6.prev = 29;
+ _iterator2.f();
+ return _context6.finish(29);
+ case 32:
+ _context6.next = 11;
+ break;
+ case 34:
+ _context6.next = 39;
+ break;
+ case 36:
+ _context6.prev = 36;
+ _context6.t1 = _context6["catch"](9);
+ _iterator.e(_context6.t1);
+ case 39:
+ _context6.prev = 39;
+ _iterator.f();
+ return _context6.finish(39);
+ case 42:
+ _context6.next = 44;
+ return zip.current.generateAsync({
+ type: 'blob'
+ });
+ case 44:
+ content = _context6.sent;
+ link = document.createElement('a');
+ link.href = window.URL.createObjectURL(content);
+ link.download = "".concat(downloadName || name, ".zip");
+ document.body.appendChild(link);
+ link.click();
+ document.body.removeChild(link);
+ window.URL.revokeObjectURL(link.href);
+ modal.destroy();
+ setIsLoading(false);
+ onOk();
+ zip.current = new (jszip__WEBPACK_IMPORTED_MODULE_9___default())();
+ case 56:
+ case "end":
+ return _context6.stop();
+ }
+ }, _callee6, null, [[9, 36, 39, 42], [16, 26, 29, 32]]);
+ }));
+ return function exportAndCreateUserFolder(_x4) {
+ return _ref5.apply(this, arguments);
+ };
+ }();
function getJson(data) {
return new Promise(function (resolve) {
var reader = new FileReader();
@@ -404,7 +569,7 @@ var ExportZip = function ExportZip(_ref, ref) {
evt.initEvent("click", false, false);
link.dispatchEvent(evt);
document.body.removeChild(link);
- zip.current = new (jszip__WEBPACK_IMPORTED_MODULE_8___default())();
+ zip.current = new (jszip__WEBPACK_IMPORTED_MODULE_9___default())();
cb();
});
};
@@ -427,10 +592,10 @@ var ExportZip = function ExportZip(_ref, ref) {
modal.destroy();
setIsLoading(false);
onOk();
- zip.current = new (jszip__WEBPACK_IMPORTED_MODULE_8___default())();
+ zip.current = new (jszip__WEBPACK_IMPORTED_MODULE_9___default())();
});
};
- return hide ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.Fragment, {}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(antd_es_button__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, buttonProps), {}, {
+ return hide ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.Fragment, {}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(antd_es_button__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, buttonProps), {}, {
onClick: function onClick() {
return exportReport();
},
@@ -438,7 +603,7 @@ var ExportZip = function ExportZip(_ref, ref) {
children: "\u4E0B\u8F7D"
}));
};
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_7__.forwardRef)(ExportZip));
+/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_8__.forwardRef)(ExportZip));
/***/ }),
@@ -1504,7 +1669,8 @@ function _unescape(str) {
_ref$style = _ref.style,
style = _ref$style === void 0 ? {} : _ref$style,
_ref$stylesPrev = _ref.stylesPrev,
- stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev;
+ stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev,
+ highlightKeywords = _ref.highlightKeywords;
var str = String(value);
var _useState = (0,react.useState)(""),
_useState2 = slicedToArray_default()(_useState, 2),
@@ -1554,16 +1720,53 @@ function _unescape(str) {
resetMathExpressions();
// return dompurify.sanitize(rs)
var dom = document.createElement('div');
+ dom.innerHTML = rs;
+ if (highlightKeywords) {
+ var escapedKeywords = highlightKeywords.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
+ findKeyword(dom, escapedKeywords);
+ return dom.innerHTML;
+ }
if (showTextOnly) {
- dom.innerHTML = rs;
return dom.innerText;
}
- dom.innerHTML = rs;
setTimeout(function () {
return onLoad();
}, 500);
return dom.innerHTML;
- }, [str]);
+ }, [str, highlightKeywords]);
+ function findKeyword(node, keyword) {
+ return node.childNodes.forEach(function (childNode) {
+ if (childNode.childNodes.length > 0) {
+ findKeyword(childNode, keyword);
+ } else if (childNode.nodeName !== "IMG") {
+ if (childNode.innerHTML) {
+ var _childNode$innerHTML;
+ childNode.innerHTML = (_childNode$innerHTML = childNode.innerHTML) === null || _childNode$innerHTML === void 0 ? void 0 : _childNode$innerHTML.replace(new RegExp(keyword, "gi"), '$&');
+ } else {
+ var dom = document.createElement("span");
+ dom.innerHTML = childNode.textContent.replace(new RegExp(keyword, "gi"), '$&');
+ childNode.replaceWith(dom);
+ }
+ }
+ });
+
+ // return dom.childNodes.forEach((node:any) => {
+ // console.log("nodeLen:",node.childNodes.length)
+ // if(node.childNodes.length > 0){
+ // debugger
+ // // findKeyword(dom.childNodes,keyword)
+ // }else{
+ // if(node.nodeName !== "#text"){
+ // node.innerHTML = node.innerHTML.replaceAll(keyword,`${keyword}`)
+ // console.log("node:",node,dom,node.nodeName,node.innerHTML,node.childNodes.length)
+ // debugger
+ // }
+ // }
+
+ // return node
+ // });
+ }
+
var el = (0,react.useRef)();
lines.WebkitLineClamp = showLines;
if (showLines) {
@@ -5151,7 +5354,7 @@ var WorkList = function WorkList(_ref) {
res = _context3.sent;
if (res.status === 0) {
if (Array.isArray(res.sub_data) && res.sub_data.length > 0) {
- (_zip$current2 = zip.current) === null || _zip$current2 === void 0 ? void 0 : _zip$current2.exportReport(res.sub_data, '批注附件');
+ (_zip$current2 = zip.current) === null || _zip$current2 === void 0 ? void 0 : _zip$current2.exportAndCreateUserFolder(res.sub_data, '批注附件', "".concat(workList === null || workList === void 0 ? void 0 : workList.homework_name, "-\u4F5C\u54C1\u6279\u6CE8\u9644\u4EF6"));
} else {
message/* default.warning */.ZP.warning('暂无可下载的批注附件');
}
diff --git a/p__Classrooms__Lists__Engineering__Detail__index.async.js b/p__Classrooms__Lists__Engineering__Detail__index.async.js
index e698e43296..3365752476 100644
--- a/p__Classrooms__Lists__Engineering__Detail__index.async.js
+++ b/p__Classrooms__Lists__Engineering__Detail__index.async.js
@@ -252,7 +252,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
marginRight: 15
},
onClick: function onClick() {
- umi__WEBPACK_IMPORTED_MODULE_10__.history.push("/engineering/cursesetting?course=".concat(datas.ec_course_id, "&ec_major_school_id=").concat(datas === null || datas === void 0 ? void 0 : datas.ec_major_school_id, "&ec_year_id=").concat(datas === null || datas === void 0 ? void 0 : datas.ec_year_id));
+ umi__WEBPACK_IMPORTED_MODULE_10__.history.push("/engineering/course/setting?course=".concat(datas.ec_course_id, "&ec_major_school_id=").concat(datas === null || datas === void 0 ? void 0 : datas.ec_major_school_id, "&ec_year_id=").concat(datas === null || datas === void 0 ? void 0 : datas.ec_year_id));
},
children: "\u8BFE\u7A0B\u8BBE\u7F6E"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(antd_es_button__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z, {
diff --git a/p__Classrooms__Lists__Exercise__Add__index.async.js b/p__Classrooms__Lists__Exercise__Add__index.async.js
index 233885c3ac..d1cc17d2e0 100644
--- a/p__Classrooms__Lists__Exercise__Add__index.async.js
+++ b/p__Classrooms__Lists__Exercise__Add__index.async.js
@@ -2096,7 +2096,8 @@ function _unescape(str) {
_ref$style = _ref.style,
style = _ref$style === void 0 ? {} : _ref$style,
_ref$stylesPrev = _ref.stylesPrev,
- stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev;
+ stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev,
+ highlightKeywords = _ref.highlightKeywords;
var str = String(value);
var _useState = (0,react.useState)(""),
_useState2 = slicedToArray_default()(_useState, 2),
@@ -2146,16 +2147,53 @@ function _unescape(str) {
resetMathExpressions();
// return dompurify.sanitize(rs)
var dom = document.createElement('div');
+ dom.innerHTML = rs;
+ if (highlightKeywords) {
+ var escapedKeywords = highlightKeywords.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
+ findKeyword(dom, escapedKeywords);
+ return dom.innerHTML;
+ }
if (showTextOnly) {
- dom.innerHTML = rs;
return dom.innerText;
}
- dom.innerHTML = rs;
setTimeout(function () {
return onLoad();
}, 500);
return dom.innerHTML;
- }, [str]);
+ }, [str, highlightKeywords]);
+ function findKeyword(node, keyword) {
+ return node.childNodes.forEach(function (childNode) {
+ if (childNode.childNodes.length > 0) {
+ findKeyword(childNode, keyword);
+ } else if (childNode.nodeName !== "IMG") {
+ if (childNode.innerHTML) {
+ var _childNode$innerHTML;
+ childNode.innerHTML = (_childNode$innerHTML = childNode.innerHTML) === null || _childNode$innerHTML === void 0 ? void 0 : _childNode$innerHTML.replace(new RegExp(keyword, "gi"), '$&');
+ } else {
+ var dom = document.createElement("span");
+ dom.innerHTML = childNode.textContent.replace(new RegExp(keyword, "gi"), '$&');
+ childNode.replaceWith(dom);
+ }
+ }
+ });
+
+ // return dom.childNodes.forEach((node:any) => {
+ // console.log("nodeLen:",node.childNodes.length)
+ // if(node.childNodes.length > 0){
+ // debugger
+ // // findKeyword(dom.childNodes,keyword)
+ // }else{
+ // if(node.nodeName !== "#text"){
+ // node.innerHTML = node.innerHTML.replaceAll(keyword,`${keyword}`)
+ // console.log("node:",node,dom,node.nodeName,node.innerHTML,node.childNodes.length)
+ // debugger
+ // }
+ // }
+
+ // return node
+ // });
+ }
+
var el = (0,react.useRef)();
lines.WebkitLineClamp = showLines;
if (showLines) {
diff --git a/p__Classrooms__Lists__Exercise__Answer__index.async.js b/p__Classrooms__Lists__Exercise__Answer__index.async.js
index 80cac28848..dc77596539 100644
--- a/p__Classrooms__Lists__Exercise__Answer__index.async.js
+++ b/p__Classrooms__Lists__Exercise__Answer__index.async.js
@@ -692,7 +692,8 @@ function _unescape(str) {
_ref$style = _ref.style,
style = _ref$style === void 0 ? {} : _ref$style,
_ref$stylesPrev = _ref.stylesPrev,
- stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev;
+ stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev,
+ highlightKeywords = _ref.highlightKeywords;
var str = String(value);
var _useState = (0,react.useState)(""),
_useState2 = slicedToArray_default()(_useState, 2),
@@ -742,16 +743,53 @@ function _unescape(str) {
resetMathExpressions();
// return dompurify.sanitize(rs)
var dom = document.createElement('div');
+ dom.innerHTML = rs;
+ if (highlightKeywords) {
+ var escapedKeywords = highlightKeywords.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
+ findKeyword(dom, escapedKeywords);
+ return dom.innerHTML;
+ }
if (showTextOnly) {
- dom.innerHTML = rs;
return dom.innerText;
}
- dom.innerHTML = rs;
setTimeout(function () {
return onLoad();
}, 500);
return dom.innerHTML;
- }, [str]);
+ }, [str, highlightKeywords]);
+ function findKeyword(node, keyword) {
+ return node.childNodes.forEach(function (childNode) {
+ if (childNode.childNodes.length > 0) {
+ findKeyword(childNode, keyword);
+ } else if (childNode.nodeName !== "IMG") {
+ if (childNode.innerHTML) {
+ var _childNode$innerHTML;
+ childNode.innerHTML = (_childNode$innerHTML = childNode.innerHTML) === null || _childNode$innerHTML === void 0 ? void 0 : _childNode$innerHTML.replace(new RegExp(keyword, "gi"), '$&');
+ } else {
+ var dom = document.createElement("span");
+ dom.innerHTML = childNode.textContent.replace(new RegExp(keyword, "gi"), '$&');
+ childNode.replaceWith(dom);
+ }
+ }
+ });
+
+ // return dom.childNodes.forEach((node:any) => {
+ // console.log("nodeLen:",node.childNodes.length)
+ // if(node.childNodes.length > 0){
+ // debugger
+ // // findKeyword(dom.childNodes,keyword)
+ // }else{
+ // if(node.nodeName !== "#text"){
+ // node.innerHTML = node.innerHTML.replaceAll(keyword,`${keyword}`)
+ // console.log("node:",node,dom,node.nodeName,node.innerHTML,node.childNodes.length)
+ // debugger
+ // }
+ // }
+
+ // return node
+ // });
+ }
+
var el = (0,react.useRef)();
lines.WebkitLineClamp = showLines;
if (showLines) {
diff --git a/p__Classrooms__Lists__Exercise__Detail__index.async.js b/p__Classrooms__Lists__Exercise__Detail__index.async.js
index dd8efb320c..571446075d 100644
--- a/p__Classrooms__Lists__Exercise__Detail__index.async.js
+++ b/p__Classrooms__Lists__Exercise__Detail__index.async.js
@@ -852,7 +852,8 @@ function _unescape(str) {
_ref$style = _ref.style,
style = _ref$style === void 0 ? {} : _ref$style,
_ref$stylesPrev = _ref.stylesPrev,
- stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev;
+ stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev,
+ highlightKeywords = _ref.highlightKeywords;
var str = String(value);
var _useState = (0,react.useState)(""),
_useState2 = slicedToArray_default()(_useState, 2),
@@ -902,16 +903,53 @@ function _unescape(str) {
resetMathExpressions();
// return dompurify.sanitize(rs)
var dom = document.createElement('div');
+ dom.innerHTML = rs;
+ if (highlightKeywords) {
+ var escapedKeywords = highlightKeywords.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
+ findKeyword(dom, escapedKeywords);
+ return dom.innerHTML;
+ }
if (showTextOnly) {
- dom.innerHTML = rs;
return dom.innerText;
}
- dom.innerHTML = rs;
setTimeout(function () {
return onLoad();
}, 500);
return dom.innerHTML;
- }, [str]);
+ }, [str, highlightKeywords]);
+ function findKeyword(node, keyword) {
+ return node.childNodes.forEach(function (childNode) {
+ if (childNode.childNodes.length > 0) {
+ findKeyword(childNode, keyword);
+ } else if (childNode.nodeName !== "IMG") {
+ if (childNode.innerHTML) {
+ var _childNode$innerHTML;
+ childNode.innerHTML = (_childNode$innerHTML = childNode.innerHTML) === null || _childNode$innerHTML === void 0 ? void 0 : _childNode$innerHTML.replace(new RegExp(keyword, "gi"), '$&');
+ } else {
+ var dom = document.createElement("span");
+ dom.innerHTML = childNode.textContent.replace(new RegExp(keyword, "gi"), '$&');
+ childNode.replaceWith(dom);
+ }
+ }
+ });
+
+ // return dom.childNodes.forEach((node:any) => {
+ // console.log("nodeLen:",node.childNodes.length)
+ // if(node.childNodes.length > 0){
+ // debugger
+ // // findKeyword(dom.childNodes,keyword)
+ // }else{
+ // if(node.nodeName !== "#text"){
+ // node.innerHTML = node.innerHTML.replaceAll(keyword,`${keyword}`)
+ // console.log("node:",node,dom,node.nodeName,node.innerHTML,node.childNodes.length)
+ // debugger
+ // }
+ // }
+
+ // return node
+ // });
+ }
+
var el = (0,react.useRef)();
lines.WebkitLineClamp = showLines;
if (showLines) {
diff --git a/p__Classrooms__Lists__Exercise__Review__index.async.js b/p__Classrooms__Lists__Exercise__Review__index.async.js
index 0d8f88c3f1..d76263e89c 100644
--- a/p__Classrooms__Lists__Exercise__Review__index.async.js
+++ b/p__Classrooms__Lists__Exercise__Review__index.async.js
@@ -708,7 +708,8 @@ function _unescape(str) {
_ref$style = _ref.style,
style = _ref$style === void 0 ? {} : _ref$style,
_ref$stylesPrev = _ref.stylesPrev,
- stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev;
+ stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev,
+ highlightKeywords = _ref.highlightKeywords;
var str = String(value);
var _useState = (0,react.useState)(""),
_useState2 = slicedToArray_default()(_useState, 2),
@@ -758,16 +759,53 @@ function _unescape(str) {
resetMathExpressions();
// return dompurify.sanitize(rs)
var dom = document.createElement('div');
+ dom.innerHTML = rs;
+ if (highlightKeywords) {
+ var escapedKeywords = highlightKeywords.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
+ findKeyword(dom, escapedKeywords);
+ return dom.innerHTML;
+ }
if (showTextOnly) {
- dom.innerHTML = rs;
return dom.innerText;
}
- dom.innerHTML = rs;
setTimeout(function () {
return onLoad();
}, 500);
return dom.innerHTML;
- }, [str]);
+ }, [str, highlightKeywords]);
+ function findKeyword(node, keyword) {
+ return node.childNodes.forEach(function (childNode) {
+ if (childNode.childNodes.length > 0) {
+ findKeyword(childNode, keyword);
+ } else if (childNode.nodeName !== "IMG") {
+ if (childNode.innerHTML) {
+ var _childNode$innerHTML;
+ childNode.innerHTML = (_childNode$innerHTML = childNode.innerHTML) === null || _childNode$innerHTML === void 0 ? void 0 : _childNode$innerHTML.replace(new RegExp(keyword, "gi"), '$&');
+ } else {
+ var dom = document.createElement("span");
+ dom.innerHTML = childNode.textContent.replace(new RegExp(keyword, "gi"), '$&');
+ childNode.replaceWith(dom);
+ }
+ }
+ });
+
+ // return dom.childNodes.forEach((node:any) => {
+ // console.log("nodeLen:",node.childNodes.length)
+ // if(node.childNodes.length > 0){
+ // debugger
+ // // findKeyword(dom.childNodes,keyword)
+ // }else{
+ // if(node.nodeName !== "#text"){
+ // node.innerHTML = node.innerHTML.replaceAll(keyword,`${keyword}`)
+ // console.log("node:",node,dom,node.nodeName,node.innerHTML,node.childNodes.length)
+ // debugger
+ // }
+ // }
+
+ // return node
+ // });
+ }
+
var el = (0,react.useRef)();
lines.WebkitLineClamp = showLines;
if (showLines) {
@@ -8490,7 +8528,7 @@ var ExeriseReview = function ExeriseReview(_ref) {
case 4:
res = _context4.sent;
sendData = {
- limit: 20,
+ limit: 100,
name: "",
page: 1,
review_type: isCentralizeReview ? "appraise" : "normal",
diff --git a/p__Classrooms__Lists__GroupHomework__Detail__index.async.js b/p__Classrooms__Lists__GroupHomework__Detail__index.async.js
index 7bc15ece4e..0bba23f0d5 100644
--- a/p__Classrooms__Lists__GroupHomework__Detail__index.async.js
+++ b/p__Classrooms__Lists__GroupHomework__Detail__index.async.js
@@ -635,22 +635,27 @@ var CuttOffNow = function CuttOffNow(_ref) {
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectSpread2.js */ 42122);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var antd_es_button_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! antd/es/button/style */ 29913);
-/* harmony import */ var antd_es_button__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd/es/button */ 71577);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js */ 17061);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__);
-/* harmony import */ var antd_es_message_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! antd/es/message/style */ 14934);
-/* harmony import */ var antd_es_message__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! antd/es/message */ 12461);
-/* harmony import */ var antd_es_modal_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd/es/modal/style */ 35611);
-/* harmony import */ var antd_es_modal__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! antd/es/modal */ 85402);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/asyncToGenerator.js */ 17156);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_5__);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/slicedToArray.js */ 27424);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_6__);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var jszip__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! jszip */ 55733);
-/* harmony import */ var jszip__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(jszip__WEBPACK_IMPORTED_MODULE_8__);
-/* harmony import */ var _utils_env__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/utils/env */ 59758);
-/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
+/* harmony import */ var antd_es_button__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! antd/es/button */ 71577);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js */ 74704);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_2__);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js */ 17061);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__);
+/* harmony import */ var antd_es_message_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd/es/message/style */ 14934);
+/* harmony import */ var antd_es_message__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd/es/message */ 12461);
+/* harmony import */ var antd_es_modal_style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! antd/es/modal/style */ 35611);
+/* harmony import */ var antd_es_modal__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! antd/es/modal */ 85402);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/asyncToGenerator.js */ 17156);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_6__);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/slicedToArray.js */ 27424);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_7__);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var jszip__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! jszip */ 55733);
+/* harmony import */ var jszip__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(jszip__WEBPACK_IMPORTED_MODULE_9__);
+/* harmony import */ var _utils_env__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/utils/env */ 59758);
+/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/utils/fetch */ 84519);
+/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
+
+
@@ -676,42 +681,42 @@ var ExportZip = function ExportZip(_ref, ref) {
hide = _ref.hide,
_ref$onOk = _ref.onOk,
onOk = _ref$onOk === void 0 ? function () {} : _ref$onOk;
- // const [zip, setZip] = useState(new JSZip());
- var _useState = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(false),
- _useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_6___default()(_useState, 2),
+ var _useState = (0,react__WEBPACK_IMPORTED_MODULE_8__.useState)(false),
+ _useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_7___default()(_useState, 2),
isLoading = _useState2[0],
setIsLoading = _useState2[1];
- var zip = (0,react__WEBPACK_IMPORTED_MODULE_7__.useRef)(new (jszip__WEBPACK_IMPORTED_MODULE_8___default())());
- (0,react__WEBPACK_IMPORTED_MODULE_7__.useImperativeHandle)(ref, function () {
+ var zip = (0,react__WEBPACK_IMPORTED_MODULE_8__.useRef)(new (jszip__WEBPACK_IMPORTED_MODULE_9___default())());
+ (0,react__WEBPACK_IMPORTED_MODULE_8__.useImperativeHandle)(ref, function () {
return {
- exportReport: exportReport
+ exportReport: exportReport,
+ exportAndCreateUserFolder: exportAndCreateUserFolder
};
});
var exportReport = /*#__PURE__*/function () {
- var _ref2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_5___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default()().mark(function _callee4(item) {
+ var _ref2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_6___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().mark(function _callee4(item) {
var fileTypeText,
data,
- modal,
num,
size,
fileNum,
+ modal,
next,
_next,
_args4 = arguments;
- return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default()().wrap(function _callee4$(_context4) {
+ return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
_next = function _next3() {
- _next = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_5___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default()().mark(function _callee3() {
+ _next = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_6___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().mark(function _callee3() {
var _data$num;
- return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default()().wrap(function _callee3$(_context3) {
+ return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
- uploadRequest({}, "".concat(_utils_env__WEBPACK_IMPORTED_MODULE_9__/* ["default"].API_SERVER */ .Z.API_SERVER, "/api/attachments/").concat(data === null || data === void 0 ? void 0 : (_data$num = data[num]) === null || _data$num === void 0 ? void 0 : _data$num.id), /*#__PURE__*/function () {
- var _ref3 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_5___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default()().mark(function _callee2(res, xhr) {
+ uploadRequest({}, "".concat(_utils_env__WEBPACK_IMPORTED_MODULE_10__/* ["default"].API_SERVER */ .Z.API_SERVER, "/api/attachments/").concat(data === null || data === void 0 ? void 0 : (_data$num = data[num]) === null || _data$num === void 0 ? void 0 : _data$num.id), /*#__PURE__*/function () {
+ var _ref3 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_6___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().mark(function _callee2(res, xhr) {
var _res$target$response, _data$num2;
var d, blob, fileName;
- return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default()().wrap(function _callee2$(_context2) {
+ return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
if (!(((_res$target$response = res.target.response) === null || _res$target$response === void 0 ? void 0 : _res$target$response.type) === 'application/json')) {
@@ -726,7 +731,7 @@ var ExportZip = function ExportZip(_ref, ref) {
_context2.next = 8;
break;
}
- antd_es_message__WEBPACK_IMPORTED_MODULE_11__/* ["default"].warn */ .ZP.warn((d === null || d === void 0 ? void 0 : d.message) || '下载出错, 请联系管理员');
+ antd_es_message__WEBPACK_IMPORTED_MODULE_13__/* ["default"].warn */ .ZP.warn((d === null || d === void 0 ? void 0 : d.message) || '下载出错, 请联系管理员');
setIsLoading(false);
return _context2.abrupt("return");
case 8:
@@ -735,17 +740,17 @@ var ExportZip = function ExportZip(_ref, ref) {
});
size = size + blob.size;
fileName = data === null || data === void 0 ? void 0 : (_data$num2 = data[num]) === null || _data$num2 === void 0 ? void 0 : _data$num2.filename;
- setTimeout( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_5___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default()().mark(function _callee() {
- return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default()().wrap(function _callee$(_context) {
+ setTimeout( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_6___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().mark(function _callee() {
+ return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
zip.current.file(fileName, blob);
modal.update({
- content: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)("div", {
- children: ["\u5F53\u524D\u8FDB\u5EA6: ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)("span", {
+ content: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("div", {
+ children: ["\u5F53\u524D\u8FDB\u5EA6: ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("span", {
className: "c-blue",
children: num + 1
- }), "/", data === null || data === void 0 ? void 0 : data.length, fileNum > 0 ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)("span", {
+ }), "/", data === null || data === void 0 ? void 0 : data.length, fileNum > 0 ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("span", {
children: ["(\u5DF2\u62C6\u5206", fileNum, "\u4E2Azip\u5305)"]
}) : '']
})
@@ -799,16 +804,16 @@ var ExportZip = function ExportZip(_ref, ref) {
num = 0;
size = 0;
fileNum = 0;
- modal = antd_es_modal__WEBPACK_IMPORTED_MODULE_12__/* ["default"].info */ .Z.info({
+ modal = antd_es_modal__WEBPACK_IMPORTED_MODULE_14__/* ["default"].info */ .Z.info({
width: 460,
- title: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)("div", {
- children: ["\u6B63\u5728\u5BFC\u51FA", fileTypeText, ",", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)("span", {
+ title: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("div", {
+ children: ["\u6B63\u5728\u5BFC\u51FA", fileTypeText, ",", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("span", {
className: "c-red",
children: "\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3"
})]
}),
- content: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)("div", {
- children: ["\u5F53\u524D\u8FDB\u5EA6: ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)("span", {
+ content: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("div", {
+ children: ["\u5F53\u524D\u8FDB\u5EA6: ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("span", {
className: "c-blue",
children: num + 1
}), "/", data === null || data === void 0 ? void 0 : data.length]
@@ -828,6 +833,166 @@ var ExportZip = function ExportZip(_ref, ref) {
return _ref2.apply(this, arguments);
};
}();
+ var exportAndCreateUserFolder = /*#__PURE__*/function () {
+ var _ref5 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_6___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().mark(function _callee6(data) {
+ var fileTypeText,
+ downloadName,
+ num,
+ totalNum,
+ modal,
+ handleFileItem,
+ _handleFileItem,
+ _iterator,
+ _step,
+ userFiles,
+ folderName,
+ folder,
+ _iterator2,
+ _step2,
+ fileItem,
+ content,
+ link,
+ _args6 = arguments;
+ return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().wrap(function _callee6$(_context6) {
+ while (1) switch (_context6.prev = _context6.next) {
+ case 0:
+ _handleFileItem = function _handleFileItem3() {
+ _handleFileItem = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_6___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().mark(function _callee5(exportItem, userFolder) {
+ var res, blob, fileName;
+ return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().wrap(function _callee5$(_context5) {
+ while (1) switch (_context5.prev = _context5.next) {
+ case 0:
+ _context5.next = 2;
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .ZP)("".concat(_utils_env__WEBPACK_IMPORTED_MODULE_10__/* ["default"].API_SERVER */ .Z.API_SERVER, "/api/attachments/").concat(exportItem.id), {
+ method: 'get'
+ });
+ case 2:
+ res = _context5.sent;
+ blob = new Blob([res], {
+ type: 'application/vnd.ms-excel;charset=utf-8'
+ });
+ fileName = exportItem.filename;
+ userFolder.file(fileName, blob);
+ num += 1;
+ modal.update({
+ content: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("div", {
+ children: ["\u5F53\u524D\u8FDB\u5EA6: ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("span", {
+ className: "c-blue",
+ children: num
+ }), "/", totalNum]
+ })
+ });
+ case 8:
+ case "end":
+ return _context5.stop();
+ }
+ }, _callee5);
+ }));
+ return _handleFileItem.apply(this, arguments);
+ };
+ handleFileItem = function _handleFileItem2(_x5, _x6) {
+ return _handleFileItem.apply(this, arguments);
+ };
+ fileTypeText = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : '附件';
+ downloadName = _args6.length > 2 ? _args6[2] : undefined;
+ setIsLoading(true);
+ num = 0; //暂时先不处理大文件进一步拆分的逻辑,能批注的文件类型基本上不会太大
+ totalNum = data.flat().length;
+ modal = antd_es_modal__WEBPACK_IMPORTED_MODULE_14__/* ["default"].info */ .Z.info({
+ width: 460,
+ title: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("div", {
+ children: ["\u6B63\u5728\u5BFC\u51FA", fileTypeText, ",", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("span", {
+ className: "c-red",
+ children: "\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3"
+ })]
+ }),
+ content: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("div", {
+ children: ["\u5F53\u524D\u8FDB\u5EA6: ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("span", {
+ className: "c-blue",
+ children: num
+ }), "/", totalNum]
+ }),
+ maskClosable: false,
+ okText: '我知道了'
+ });
+ _iterator = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_2___default()(data);
+ _context6.prev = 9;
+ _iterator.s();
+ case 11:
+ if ((_step = _iterator.n()).done) {
+ _context6.next = 34;
+ break;
+ }
+ userFiles = _step.value;
+ folderName = "".concat(userFiles[0].user_name, "-").concat(userFiles[0].student_id);
+ folder = zip.current.folder(folderName);
+ _iterator2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_2___default()(userFiles);
+ _context6.prev = 16;
+ _iterator2.s();
+ case 18:
+ if ((_step2 = _iterator2.n()).done) {
+ _context6.next = 24;
+ break;
+ }
+ fileItem = _step2.value;
+ _context6.next = 22;
+ return handleFileItem(fileItem, folder);
+ case 22:
+ _context6.next = 18;
+ break;
+ case 24:
+ _context6.next = 29;
+ break;
+ case 26:
+ _context6.prev = 26;
+ _context6.t0 = _context6["catch"](16);
+ _iterator2.e(_context6.t0);
+ case 29:
+ _context6.prev = 29;
+ _iterator2.f();
+ return _context6.finish(29);
+ case 32:
+ _context6.next = 11;
+ break;
+ case 34:
+ _context6.next = 39;
+ break;
+ case 36:
+ _context6.prev = 36;
+ _context6.t1 = _context6["catch"](9);
+ _iterator.e(_context6.t1);
+ case 39:
+ _context6.prev = 39;
+ _iterator.f();
+ return _context6.finish(39);
+ case 42:
+ _context6.next = 44;
+ return zip.current.generateAsync({
+ type: 'blob'
+ });
+ case 44:
+ content = _context6.sent;
+ link = document.createElement('a');
+ link.href = window.URL.createObjectURL(content);
+ link.download = "".concat(downloadName || name, ".zip");
+ document.body.appendChild(link);
+ link.click();
+ document.body.removeChild(link);
+ window.URL.revokeObjectURL(link.href);
+ modal.destroy();
+ setIsLoading(false);
+ onOk();
+ zip.current = new (jszip__WEBPACK_IMPORTED_MODULE_9___default())();
+ case 56:
+ case "end":
+ return _context6.stop();
+ }
+ }, _callee6, null, [[9, 36, 39, 42], [16, 26, 29, 32]]);
+ }));
+ return function exportAndCreateUserFolder(_x4) {
+ return _ref5.apply(this, arguments);
+ };
+ }();
function getJson(data) {
return new Promise(function (resolve) {
var reader = new FileReader();
@@ -867,7 +1032,7 @@ var ExportZip = function ExportZip(_ref, ref) {
evt.initEvent("click", false, false);
link.dispatchEvent(evt);
document.body.removeChild(link);
- zip.current = new (jszip__WEBPACK_IMPORTED_MODULE_8___default())();
+ zip.current = new (jszip__WEBPACK_IMPORTED_MODULE_9___default())();
cb();
});
};
@@ -890,10 +1055,10 @@ var ExportZip = function ExportZip(_ref, ref) {
modal.destroy();
setIsLoading(false);
onOk();
- zip.current = new (jszip__WEBPACK_IMPORTED_MODULE_8___default())();
+ zip.current = new (jszip__WEBPACK_IMPORTED_MODULE_9___default())();
});
};
- return hide ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.Fragment, {}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(antd_es_button__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, buttonProps), {}, {
+ return hide ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.Fragment, {}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(antd_es_button__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, buttonProps), {}, {
onClick: function onClick() {
return exportReport();
},
@@ -901,7 +1066,7 @@ var ExportZip = function ExportZip(_ref, ref) {
children: "\u4E0B\u8F7D"
}));
};
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_7__.forwardRef)(ExportZip));
+/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_8__.forwardRef)(ExportZip));
/***/ }),
@@ -2433,7 +2598,8 @@ function _unescape(str) {
_ref$style = _ref.style,
style = _ref$style === void 0 ? {} : _ref$style,
_ref$stylesPrev = _ref.stylesPrev,
- stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev;
+ stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev,
+ highlightKeywords = _ref.highlightKeywords;
var str = String(value);
var _useState = (0,react.useState)(""),
_useState2 = slicedToArray_default()(_useState, 2),
@@ -2483,16 +2649,53 @@ function _unescape(str) {
resetMathExpressions();
// return dompurify.sanitize(rs)
var dom = document.createElement('div');
+ dom.innerHTML = rs;
+ if (highlightKeywords) {
+ var escapedKeywords = highlightKeywords.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
+ findKeyword(dom, escapedKeywords);
+ return dom.innerHTML;
+ }
if (showTextOnly) {
- dom.innerHTML = rs;
return dom.innerText;
}
- dom.innerHTML = rs;
setTimeout(function () {
return onLoad();
}, 500);
return dom.innerHTML;
- }, [str]);
+ }, [str, highlightKeywords]);
+ function findKeyword(node, keyword) {
+ return node.childNodes.forEach(function (childNode) {
+ if (childNode.childNodes.length > 0) {
+ findKeyword(childNode, keyword);
+ } else if (childNode.nodeName !== "IMG") {
+ if (childNode.innerHTML) {
+ var _childNode$innerHTML;
+ childNode.innerHTML = (_childNode$innerHTML = childNode.innerHTML) === null || _childNode$innerHTML === void 0 ? void 0 : _childNode$innerHTML.replace(new RegExp(keyword, "gi"), '$&');
+ } else {
+ var dom = document.createElement("span");
+ dom.innerHTML = childNode.textContent.replace(new RegExp(keyword, "gi"), '$&');
+ childNode.replaceWith(dom);
+ }
+ }
+ });
+
+ // return dom.childNodes.forEach((node:any) => {
+ // console.log("nodeLen:",node.childNodes.length)
+ // if(node.childNodes.length > 0){
+ // debugger
+ // // findKeyword(dom.childNodes,keyword)
+ // }else{
+ // if(node.nodeName !== "#text"){
+ // node.innerHTML = node.innerHTML.replaceAll(keyword,`${keyword}`)
+ // console.log("node:",node,dom,node.nodeName,node.innerHTML,node.childNodes.length)
+ // debugger
+ // }
+ // }
+
+ // return node
+ // });
+ }
+
var el = (0,react.useRef)();
lines.WebkitLineClamp = showLines;
if (showLines) {
@@ -5823,7 +6026,7 @@ var WorkList = function WorkList(_ref) {
res = _context3.sent;
if (res.status === 0) {
if (Array.isArray(res.sub_data) && res.sub_data.length > 0) {
- (_zip$current2 = zip.current) === null || _zip$current2 === void 0 ? void 0 : _zip$current2.exportReport(res.sub_data, '批注附件');
+ (_zip$current2 = zip.current) === null || _zip$current2 === void 0 ? void 0 : _zip$current2.exportAndCreateUserFolder(res.sub_data, '批注附件', "".concat(workList === null || workList === void 0 ? void 0 : workList.homework_name, "-\u4F5C\u54C1\u6279\u6CE8\u9644\u4EF6"));
} else {
message/* default.warning */.ZP.warning('暂无可下载的批注附件');
}
diff --git a/p__Classrooms__Lists__Statistics__StatisticsQuality__index.async.js b/p__Classrooms__Lists__Statistics__StatisticsQuality__index.async.js
index 925fe1dc8e..f2b4ada070 100644
--- a/p__Classrooms__Lists__Statistics__StatisticsQuality__index.async.js
+++ b/p__Classrooms__Lists__Statistics__StatisticsQuality__index.async.js
@@ -1,6 +1,19 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[17806],{
+/***/ 509:
+/*!*********************************************************************!*\
+ !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
+ \*********************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__) {
+
+// This icon file is generated automatically.
+var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
+/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
+
+
+/***/ }),
+
/***/ 87579:
/*!***************************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Statistics/StatisticsQuality/index.tsx + 1 modules ***!
@@ -1254,6 +1267,33 @@ var style_default = __webpack_require__(43146);
+/***/ }),
+
+/***/ 25783:
+/*!*************************************************************************************!*\
+ !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
+ \*************************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
+/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
+
+// GENERATE BY ./scripts/generate.ts
+// DON NOT EDIT IT MANUALLY
+
+
+
+var SearchOutlined = function SearchOutlined(props, ref) {
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
+ ref: ref,
+ icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
+ }));
+};
+SearchOutlined.displayName = 'SearchOutlined';
+/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
+
/***/ }),
/***/ 48555:
diff --git a/p__Classrooms__Lists__Statistics__index.async.js b/p__Classrooms__Lists__Statistics__index.async.js
index 3d17e6aa2a..26f45d5da8 100644
--- a/p__Classrooms__Lists__Statistics__index.async.js
+++ b/p__Classrooms__Lists__Statistics__index.async.js
@@ -2522,7 +2522,7 @@ var Statistics_ShixunsListPage = function ShixunsListPage(_ref) {
render: function render(text, record, index) {
return "".concat((params.page - 1) * params.limit + index + 1);
},
- width: '16%',
+ width: 60,
align: 'center'
},
// isStudent() && {
@@ -2550,7 +2550,8 @@ var Statistics_ShixunsListPage = function ShixunsListPage(_ref) {
dataIndex: 'student_id',
align: 'center',
sorter: true,
- width: 80
+ width: '16%',
+ ellipsis: true
// sortOrder: params.sort + 'end'
}, (courseTypeList === null || courseTypeList === void 0 ? void 0 : courseTypeList.find(function (item) {
return item === 'course_group';
diff --git a/p__Competitions__Detail__index.async.js b/p__Competitions__Detail__index.async.js
index 6f8700ac4d..9ddf11cf76 100644
--- a/p__Competitions__Detail__index.async.js
+++ b/p__Competitions__Detail__index.async.js
@@ -1033,7 +1033,8 @@ function _unescape(str) {
_ref$style = _ref.style,
style = _ref$style === void 0 ? {} : _ref$style,
_ref$stylesPrev = _ref.stylesPrev,
- stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev;
+ stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev,
+ highlightKeywords = _ref.highlightKeywords;
var str = String(value);
var _useState = (0,react.useState)(""),
_useState2 = slicedToArray_default()(_useState, 2),
@@ -1083,16 +1084,53 @@ function _unescape(str) {
resetMathExpressions();
// return dompurify.sanitize(rs)
var dom = document.createElement('div');
+ dom.innerHTML = rs;
+ if (highlightKeywords) {
+ var escapedKeywords = highlightKeywords.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
+ findKeyword(dom, escapedKeywords);
+ return dom.innerHTML;
+ }
if (showTextOnly) {
- dom.innerHTML = rs;
return dom.innerText;
}
- dom.innerHTML = rs;
setTimeout(function () {
return onLoad();
}, 500);
return dom.innerHTML;
- }, [str]);
+ }, [str, highlightKeywords]);
+ function findKeyword(node, keyword) {
+ return node.childNodes.forEach(function (childNode) {
+ if (childNode.childNodes.length > 0) {
+ findKeyword(childNode, keyword);
+ } else if (childNode.nodeName !== "IMG") {
+ if (childNode.innerHTML) {
+ var _childNode$innerHTML;
+ childNode.innerHTML = (_childNode$innerHTML = childNode.innerHTML) === null || _childNode$innerHTML === void 0 ? void 0 : _childNode$innerHTML.replace(new RegExp(keyword, "gi"), '$&');
+ } else {
+ var dom = document.createElement("span");
+ dom.innerHTML = childNode.textContent.replace(new RegExp(keyword, "gi"), '$&');
+ childNode.replaceWith(dom);
+ }
+ }
+ });
+
+ // return dom.childNodes.forEach((node:any) => {
+ // console.log("nodeLen:",node.childNodes.length)
+ // if(node.childNodes.length > 0){
+ // debugger
+ // // findKeyword(dom.childNodes,keyword)
+ // }else{
+ // if(node.nodeName !== "#text"){
+ // node.innerHTML = node.innerHTML.replaceAll(keyword,`${keyword}`)
+ // console.log("node:",node,dom,node.nodeName,node.innerHTML,node.childNodes.length)
+ // debugger
+ // }
+ // }
+
+ // return node
+ // });
+ }
+
var el = (0,react.useRef)();
lines.WebkitLineClamp = showLines;
if (showLines) {
diff --git a/p__Competitions__Edit__index.async.js b/p__Competitions__Edit__index.async.js
index a42640396c..e0840dac88 100644
--- a/p__Competitions__Edit__index.async.js
+++ b/p__Competitions__Edit__index.async.js
@@ -891,7 +891,8 @@ function _unescape(str) {
_ref$style = _ref.style,
style = _ref$style === void 0 ? {} : _ref$style,
_ref$stylesPrev = _ref.stylesPrev,
- stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev;
+ stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev,
+ highlightKeywords = _ref.highlightKeywords;
var str = String(value);
var _useState = (0,react.useState)(""),
_useState2 = slicedToArray_default()(_useState, 2),
@@ -941,16 +942,53 @@ function _unescape(str) {
resetMathExpressions();
// return dompurify.sanitize(rs)
var dom = document.createElement('div');
+ dom.innerHTML = rs;
+ if (highlightKeywords) {
+ var escapedKeywords = highlightKeywords.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
+ findKeyword(dom, escapedKeywords);
+ return dom.innerHTML;
+ }
if (showTextOnly) {
- dom.innerHTML = rs;
return dom.innerText;
}
- dom.innerHTML = rs;
setTimeout(function () {
return onLoad();
}, 500);
return dom.innerHTML;
- }, [str]);
+ }, [str, highlightKeywords]);
+ function findKeyword(node, keyword) {
+ return node.childNodes.forEach(function (childNode) {
+ if (childNode.childNodes.length > 0) {
+ findKeyword(childNode, keyword);
+ } else if (childNode.nodeName !== "IMG") {
+ if (childNode.innerHTML) {
+ var _childNode$innerHTML;
+ childNode.innerHTML = (_childNode$innerHTML = childNode.innerHTML) === null || _childNode$innerHTML === void 0 ? void 0 : _childNode$innerHTML.replace(new RegExp(keyword, "gi"), '$&');
+ } else {
+ var dom = document.createElement("span");
+ dom.innerHTML = childNode.textContent.replace(new RegExp(keyword, "gi"), '$&');
+ childNode.replaceWith(dom);
+ }
+ }
+ });
+
+ // return dom.childNodes.forEach((node:any) => {
+ // console.log("nodeLen:",node.childNodes.length)
+ // if(node.childNodes.length > 0){
+ // debugger
+ // // findKeyword(dom.childNodes,keyword)
+ // }else{
+ // if(node.nodeName !== "#text"){
+ // node.innerHTML = node.innerHTML.replaceAll(keyword,`${keyword}`)
+ // console.log("node:",node,dom,node.nodeName,node.innerHTML,node.childNodes.length)
+ // debugger
+ // }
+ // }
+
+ // return node
+ // });
+ }
+
var el = (0,react.useRef)();
lines.WebkitLineClamp = showLines;
if (showLines) {
diff --git a/p__Competitions__Update__index.async.js b/p__Competitions__Update__index.async.js
index d1f8bdd8d2..2c08fc05ae 100644
--- a/p__Competitions__Update__index.async.js
+++ b/p__Competitions__Update__index.async.js
@@ -12,19 +12,6 @@ var DownOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 89
/* harmony default export */ __webpack_exports__["Z"] = (DownOutlined);
-/***/ }),
-
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
/***/ }),
/***/ 88306:
@@ -1106,33 +1093,6 @@ EyeOutlined_EyeOutlined.displayName = 'EyeOutlined';
/***/ }),
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
-/***/ }),
-
/***/ 34243:
/*!**********************************************************!*\
!*** ./node_modules/rc-overflow/es/index.js + 4 modules ***!
diff --git a/p__Engineering__Lists__CourseList__index.async.js b/p__Engineering__Lists__CourseList__index.async.js
index 1fc720f9ba..1a0b6cb5d1 100644
--- a/p__Engineering__Lists__CourseList__index.async.js
+++ b/p__Engineering__Lists__CourseList__index.async.js
@@ -789,7 +789,7 @@ var Page = function Page(_ref) {
className: "iconfont icon-piliangshanchubeifen mr15 c-gcrz-primary current"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
onClick: function onClick() {
- return _umi_production_exports.history.push("/engineering/cursesetting?course=".concat(r.id, "&ec_major_school_id=").concat(params === null || params === void 0 ? void 0 : params.ec_major_school_id, "&ec_year_id=").concat(params === null || params === void 0 ? void 0 : params.ec_year_id));
+ return _umi_production_exports.history.push("/engineering/course/setting?course=".concat(r.id, "&ec_major_school_id=").concat(params === null || params === void 0 ? void 0 : params.ec_major_school_id, "&ec_year_id=").concat(params === null || params === void 0 ? void 0 : params.ec_year_id));
},
className: "iconfont icon-anquanshezhi c-gcrz-primary current"
})]
diff --git a/p__Engineering__Lists__GraduatedMatrix__index.async.js b/p__Engineering__Lists__GraduatedMatrix__index.async.js
index 9e2674a477..786a50ee5c 100644
--- a/p__Engineering__Lists__GraduatedMatrix__index.async.js
+++ b/p__Engineering__Lists__GraduatedMatrix__index.async.js
@@ -1,6 +1,19 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[34800],{
+/***/ 509:
+/*!*********************************************************************!*\
+ !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
+ \*********************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__) {
+
+// This icon file is generated automatically.
+var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
+/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
+
+
+/***/ }),
+
/***/ 70309:
/*!***************************************************************************!*\
!*** ./src/pages/Engineering/Lists/GraduatedMatrix/index.tsx + 1 modules ***!
@@ -1089,6 +1102,33 @@ Select.OptGroup = rc_select__WEBPACK_IMPORTED_MODULE_1__/* .OptGroup */ .Xo;
/***/ }),
+/***/ 25783:
+/*!*************************************************************************************!*\
+ !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
+ \*************************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
+/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
+
+// GENERATE BY ./scripts/generate.ts
+// DON NOT EDIT IT MANUALLY
+
+
+
+var SearchOutlined = function SearchOutlined(props, ref) {
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
+ ref: ref,
+ icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
+ }));
+};
+SearchOutlined.displayName = 'SearchOutlined';
+/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
+
+/***/ }),
+
/***/ 50132:
/*!**********************************************!*\
!*** ./node_modules/rc-checkbox/es/index.js ***!
diff --git a/p__Engineering__Lists__GraduationIndex__index.async.js b/p__Engineering__Lists__GraduationIndex__index.async.js
index eae1c49e4e..106f8fe9c0 100644
--- a/p__Engineering__Lists__GraduationIndex__index.async.js
+++ b/p__Engineering__Lists__GraduationIndex__index.async.js
@@ -973,9 +973,7 @@ var Page = function Page(_ref) {
};
datas.push(item);
setDatas(toConsumableArray_default()(datas));
- // history.push(`/engineering/trainingProgram/add`)
},
-
type: "primary",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
@@ -1024,7 +1022,6 @@ var Page = function Page(_ref) {
return onOk;
}()
});
- // history.push(`/engineering/trainingProgram/add`)
case 1:
case "end":
return _context2.stop();
@@ -1042,7 +1039,6 @@ var Page = function Page(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.Z, {
disabled: isdisabled,
onClick: function onClick() {
- // history.push(`/engineering/trainingProgram/add`)
setexport(true);
},
type: "default",
diff --git a/p__Engineering__Lists__TrainingProgram__Add__index.async.js b/p__Engineering__Lists__TrainingProgram__Add__index.async.js
index efbb3451d4..1f74c8c447 100644
--- a/p__Engineering__Lists__TrainingProgram__Add__index.async.js
+++ b/p__Engineering__Lists__TrainingProgram__Add__index.async.js
@@ -275,7 +275,7 @@ var Page = function Page(_ref) {
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default.Item */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
- to: "/engineering/trainingProgram",
+ to: "/engineering/training/program",
children: "\u57F9\u517B\u65B9\u6848"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default.Separator */.Z.Separator, {
@@ -403,7 +403,7 @@ var Page = function Page(_ref) {
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
onClick: function onClick() {
- _umi_production_exports.history.push("/engineering/trainingProgram");
+ _umi_production_exports.history.push("/engineering/training/program");
},
children: "\u8FD4\u56DE"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
@@ -448,7 +448,7 @@ var Page = function Page(_ref) {
res = _context.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
message/* default.info */.ZP.info('添加成功');
- _umi_production_exports.history.push("/engineering/trainingProgram");
+ _umi_production_exports.history.push("/engineering/training/program");
}
case 19:
case "end":
diff --git a/p__Engineering__Lists__TrainingProgram__Edit__index.async.js b/p__Engineering__Lists__TrainingProgram__Edit__index.async.js
index dca8275834..961529f2e4 100644
--- a/p__Engineering__Lists__TrainingProgram__Edit__index.async.js
+++ b/p__Engineering__Lists__TrainingProgram__Edit__index.async.js
@@ -324,7 +324,7 @@ var Page = function Page(_ref) {
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default.Item */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
- to: "/engineering/trainingProgram",
+ to: "/engineering/training/program",
children: "\u57F9\u517B\u65B9\u6848"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default.Separator */.Z.Separator, {
@@ -447,7 +447,7 @@ var Page = function Page(_ref) {
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
onClick: function onClick() {
- _umi_production_exports.history.push("/engineering/trainingProgram");
+ _umi_production_exports.history.push("/engineering/training/program");
},
children: "\u8FD4\u56DE"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
@@ -493,7 +493,7 @@ var Page = function Page(_ref) {
res = _context.sent;
if (res.status === 0) {
message/* default.info */.ZP.info('修改成功');
- _umi_production_exports.history.push("/engineering/trainingProgram");
+ _umi_production_exports.history.push("/engineering/training/program");
}
case 20:
case "end":
diff --git a/p__Engineering__Lists__TrainingProgram__index.async.js b/p__Engineering__Lists__TrainingProgram__index.async.js
index 976020c37a..ee3cce6a31 100644
--- a/p__Engineering__Lists__TrainingProgram__index.async.js
+++ b/p__Engineering__Lists__TrainingProgram__index.async.js
@@ -608,7 +608,7 @@ var Page = function Page(_ref) {
key: 'name',
render: function render(text, record, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
- to: "/engineering/trainingProgram/edit?ec_year_id=".concat(record === null || record === void 0 ? void 0 : record.id),
+ to: "/engineering/training/program/edit?ec_year_id=".concat(record === null || record === void 0 ? void 0 : record.id),
children: text
});
}
@@ -658,7 +658,7 @@ var Page = function Page(_ref) {
dataIndex: 'training_subitem_count',
render: function render(text, record, index) {
return text || /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
- href: "/engineering/trainingObjectives?ids=".concat(record === null || record === void 0 ? void 0 : record.ec_major_school_id, ",").concat(record === null || record === void 0 ? void 0 : record.id),
+ href: "/engineering/training/objectives?ids=".concat(record === null || record === void 0 ? void 0 : record.ec_major_school_id, ",").concat(record === null || record === void 0 ? void 0 : record.id),
children: "\u8BBE\u7F6E"
});
}
@@ -668,7 +668,7 @@ var Page = function Page(_ref) {
dataIndex: 'graduation_requirement_count',
render: function render(text, record, index) {
return text || /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
- href: "/engineering/graduationindex?ec_major_school_id=".concat(record === null || record === void 0 ? void 0 : record.ec_major_school_id, "&ec_year_id=").concat(record === null || record === void 0 ? void 0 : record.id),
+ href: "/engineering/graduated/index?ec_major_school_id=".concat(record === null || record === void 0 ? void 0 : record.ec_major_school_id, "&ec_year_id=").concat(record === null || record === void 0 ? void 0 : record.id),
children: "\u8BBE\u7F6E"
});
}
@@ -685,7 +685,7 @@ var Page = function Page(_ref) {
dataIndex: 'course_count',
render: function render(text, record, index) {
return text || /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
- href: "/engineering/courseList?ec_major_school_id=".concat(record === null || record === void 0 ? void 0 : record.ec_major_school_id, "&ec_year_id=").concat(record === null || record === void 0 ? void 0 : record.id),
+ href: "/engineering/course/list?ec_major_school_id=".concat(record === null || record === void 0 ? void 0 : record.ec_major_school_id, "&ec_year_id=").concat(record === null || record === void 0 ? void 0 : record.id),
children: "\u8BBE\u7F6E"
});
}
@@ -745,7 +745,7 @@ var Page = function Page(_ref) {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
- _umi_production_exports.history.push("/engineering/trainingProgram/edit?ec_year_id=".concat(record === null || record === void 0 ? void 0 : record.id));
+ _umi_production_exports.history.push("/engineering/training/program/edit?ec_year_id=".concat(record === null || record === void 0 ? void 0 : record.id));
case 1:
case "end":
return _context2.stop();
@@ -892,7 +892,7 @@ var Page = function Page(_ref) {
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.Z, {
onClick: function onClick() {
- _umi_production_exports.history.push("/engineering/trainingProgram/add");
+ _umi_production_exports.history.push("/engineering/training/program/add");
},
style: {
height: '30px',
diff --git a/p__Engineering__index.async.js b/p__Engineering__index.async.js
index 933b677ab5..2dad70d8e5 100644
--- a/p__Engineering__index.async.js
+++ b/p__Engineering__index.async.js
@@ -105,13 +105,13 @@ var Engineering = function Engineering(_ref) {
}),
children: [{
title: '培养方案',
- key: '/engineering/trainingProgram',
+ key: '/engineering/training/program',
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-peiyangfangan font14"
})
}, {
title: '培养目标',
- key: '/engineering/trainingObjectives',
+ key: '/engineering/training/objectives',
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-peiyangmubiao font14"
})
@@ -136,13 +136,13 @@ var Engineering = function Engineering(_ref) {
}),
children: [{
title: '毕业指标',
- key: '/engineering/graduationindex',
+ key: '/engineering/graduated/index',
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-biyezhibiao font14"
})
}, {
title: '毕业矩阵',
- key: '/engineering/graduatedMatrix',
+ key: '/engineering/graduated/matrix',
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-biyejuzhen font14"
})
@@ -155,19 +155,19 @@ var Engineering = function Engineering(_ref) {
}),
children: [{
title: '课程列表',
- key: '/engineering/courseList',
+ key: '/engineering/course/list',
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-kechengliebiao font14"
})
}, {
title: '课程设置',
- key: '/engineering/cursesetting',
+ key: '/engineering/course/setting',
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-kechengshezhi font14"
})
}, {
title: '课程矩阵',
- key: '/engineering/courseMatrix',
+ key: '/engineering/course/matrix',
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-kechengjuzhen font14"
})
diff --git a/p__HttpStatus__UserAgents.async.js b/p__HttpStatus__UserAgents.async.js
index 8f0f835fa8..865fe18ffb 100644
--- a/p__HttpStatus__UserAgents.async.js
+++ b/p__HttpStatus__UserAgents.async.js
@@ -25,6 +25,19 @@ var RightOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 8
/* harmony default export */ __webpack_exports__["Z"] = (RightOutlined);
+/***/ }),
+
+/***/ 509:
+/*!*********************************************************************!*\
+ !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
+ \*********************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__) {
+
+// This icon file is generated automatically.
+var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
+/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
+
+
/***/ }),
/***/ 86441:
@@ -374,6 +387,33 @@ RightOutlined.displayName = 'RightOutlined';
/***/ }),
+/***/ 25783:
+/*!*************************************************************************************!*\
+ !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
+ \*************************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
+/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
+
+// GENERATE BY ./scripts/generate.ts
+// DON NOT EDIT IT MANUALLY
+
+
+
+var SearchOutlined = function SearchOutlined(props, ref) {
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
+ ref: ref,
+ icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
+ }));
+};
+SearchOutlined.displayName = 'SearchOutlined';
+/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
+
+/***/ }),
+
/***/ 48555:
/*!*****************************************************************!*\
!*** ./node_modules/rc-resize-observer/es/index.js + 4 modules ***!
diff --git a/p__Messages__Tidings__index.async.js b/p__Messages__Tidings__index.async.js
index 6078deb34b..153bdf3650 100644
--- a/p__Messages__Tidings__index.async.js
+++ b/p__Messages__Tidings__index.async.js
@@ -1,6 +1,19 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[94078,98567],{
+/***/ 509:
+/*!*********************************************************************!*\
+ !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
+ \*********************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__) {
+
+// This icon file is generated automatically.
+var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
+/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
+
+
+/***/ }),
+
/***/ 20315:
/*!**********************************************************!*\
!*** ./src/pages/Messages/Tidings/index.tsx + 1 modules ***!
@@ -903,6 +916,33 @@ var style_default = __webpack_require__(43146);
+/***/ }),
+
+/***/ 25783:
+/*!*************************************************************************************!*\
+ !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
+ \*************************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
+/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
+
+// GENERATE BY ./scripts/generate.ts
+// DON NOT EDIT IT MANUALLY
+
+
+
+var SearchOutlined = function SearchOutlined(props, ref) {
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
+ ref: ref,
+ icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
+ }));
+};
+SearchOutlined.displayName = 'SearchOutlined';
+/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
+
/***/ }),
/***/ 48555:
diff --git a/p__MyProblem__RecordDetail__index.async.js b/p__MyProblem__RecordDetail__index.async.js
index 4818696ef8..0aad103d7c 100644
--- a/p__MyProblem__RecordDetail__index.async.js
+++ b/p__MyProblem__RecordDetail__index.async.js
@@ -12,19 +12,6 @@ var DownOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 89
/* harmony default export */ __webpack_exports__["Z"] = (DownOutlined);
-/***/ }),
-
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
/***/ }),
/***/ 92287:
@@ -2059,33 +2046,6 @@ EyeOutlined_EyeOutlined.displayName = 'EyeOutlined';
/***/ }),
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
-/***/ }),
-
/***/ 43159:
/*!**************************************************!*\
!*** ./node_modules/rc-tooltip/es/placements.js ***!
diff --git a/p__Paperlibrary__Add__index.async.js b/p__Paperlibrary__Add__index.async.js
index ea3ca3db98..7b79abebda 100644
--- a/p__Paperlibrary__Add__index.async.js
+++ b/p__Paperlibrary__Add__index.async.js
@@ -2172,7 +2172,8 @@ function _unescape(str) {
_ref$style = _ref.style,
style = _ref$style === void 0 ? {} : _ref$style,
_ref$stylesPrev = _ref.stylesPrev,
- stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev;
+ stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev,
+ highlightKeywords = _ref.highlightKeywords;
var str = String(value);
var _useState = (0,react.useState)(""),
_useState2 = slicedToArray_default()(_useState, 2),
@@ -2222,16 +2223,53 @@ function _unescape(str) {
resetMathExpressions();
// return dompurify.sanitize(rs)
var dom = document.createElement('div');
+ dom.innerHTML = rs;
+ if (highlightKeywords) {
+ var escapedKeywords = highlightKeywords.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
+ findKeyword(dom, escapedKeywords);
+ return dom.innerHTML;
+ }
if (showTextOnly) {
- dom.innerHTML = rs;
return dom.innerText;
}
- dom.innerHTML = rs;
setTimeout(function () {
return onLoad();
}, 500);
return dom.innerHTML;
- }, [str]);
+ }, [str, highlightKeywords]);
+ function findKeyword(node, keyword) {
+ return node.childNodes.forEach(function (childNode) {
+ if (childNode.childNodes.length > 0) {
+ findKeyword(childNode, keyword);
+ } else if (childNode.nodeName !== "IMG") {
+ if (childNode.innerHTML) {
+ var _childNode$innerHTML;
+ childNode.innerHTML = (_childNode$innerHTML = childNode.innerHTML) === null || _childNode$innerHTML === void 0 ? void 0 : _childNode$innerHTML.replace(new RegExp(keyword, "gi"), '$&');
+ } else {
+ var dom = document.createElement("span");
+ dom.innerHTML = childNode.textContent.replace(new RegExp(keyword, "gi"), '$&');
+ childNode.replaceWith(dom);
+ }
+ }
+ });
+
+ // return dom.childNodes.forEach((node:any) => {
+ // console.log("nodeLen:",node.childNodes.length)
+ // if(node.childNodes.length > 0){
+ // debugger
+ // // findKeyword(dom.childNodes,keyword)
+ // }else{
+ // if(node.nodeName !== "#text"){
+ // node.innerHTML = node.innerHTML.replaceAll(keyword,`${keyword}`)
+ // console.log("node:",node,dom,node.nodeName,node.innerHTML,node.childNodes.length)
+ // debugger
+ // }
+ // }
+
+ // return node
+ // });
+ }
+
var el = (0,react.useRef)();
lines.WebkitLineClamp = showLines;
if (showLines) {
diff --git a/p__Paperlibrary__See__index.async.js b/p__Paperlibrary__See__index.async.js
index fdf833d0bb..04e0f0f341 100644
--- a/p__Paperlibrary__See__index.async.js
+++ b/p__Paperlibrary__See__index.async.js
@@ -432,6 +432,8 @@ var FixedButton = function FixedButton(_ref) {
loading = _ref$loading === void 0 ? false : _ref$loading,
_ref$hasOkBtn = _ref.hasOkBtn,
hasOkBtn = _ref$hasOkBtn === void 0 ? true : _ref$hasOkBtn,
+ _ref$hasCancelBtn = _ref.hasCancelBtn,
+ hasCancelBtn = _ref$hasCancelBtn === void 0 ? true : _ref$hasCancelBtn,
_ref$okButtonProps = _ref.okButtonProps,
okButtonProps = _ref$okButtonProps === void 0 ? {} : _ref$okButtonProps,
_ref$onCancel = _ref.onCancel,
@@ -444,7 +446,7 @@ var FixedButton = function FixedButton(_ref) {
className: classnames_default()(FixedButtonmodules.buttonFixed, className),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: FixedButtonmodules.buttonWrap,
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
+ children: [hasCancelBtn && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
size: "large",
className: "".concat(FixedButtonmodules.button, " mr20")
// 点击取消的返回
diff --git a/p__Paths__Detail__id.async.js b/p__Paths__Detail__id.async.js
index 3759febf4d..fe150dd11f 100644
--- a/p__Paths__Detail__id.async.js
+++ b/p__Paths__Detail__id.async.js
@@ -1928,7 +1928,8 @@ function _unescape(str) {
_ref$style = _ref.style,
style = _ref$style === void 0 ? {} : _ref$style,
_ref$stylesPrev = _ref.stylesPrev,
- stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev;
+ stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev,
+ highlightKeywords = _ref.highlightKeywords;
var str = String(value);
var _useState = (0,react.useState)(""),
_useState2 = slicedToArray_default()(_useState, 2),
@@ -1978,16 +1979,53 @@ function _unescape(str) {
resetMathExpressions();
// return dompurify.sanitize(rs)
var dom = document.createElement('div');
+ dom.innerHTML = rs;
+ if (highlightKeywords) {
+ var escapedKeywords = highlightKeywords.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
+ findKeyword(dom, escapedKeywords);
+ return dom.innerHTML;
+ }
if (showTextOnly) {
- dom.innerHTML = rs;
return dom.innerText;
}
- dom.innerHTML = rs;
setTimeout(function () {
return onLoad();
}, 500);
return dom.innerHTML;
- }, [str]);
+ }, [str, highlightKeywords]);
+ function findKeyword(node, keyword) {
+ return node.childNodes.forEach(function (childNode) {
+ if (childNode.childNodes.length > 0) {
+ findKeyword(childNode, keyword);
+ } else if (childNode.nodeName !== "IMG") {
+ if (childNode.innerHTML) {
+ var _childNode$innerHTML;
+ childNode.innerHTML = (_childNode$innerHTML = childNode.innerHTML) === null || _childNode$innerHTML === void 0 ? void 0 : _childNode$innerHTML.replace(new RegExp(keyword, "gi"), '$&');
+ } else {
+ var dom = document.createElement("span");
+ dom.innerHTML = childNode.textContent.replace(new RegExp(keyword, "gi"), '$&');
+ childNode.replaceWith(dom);
+ }
+ }
+ });
+
+ // return dom.childNodes.forEach((node:any) => {
+ // console.log("nodeLen:",node.childNodes.length)
+ // if(node.childNodes.length > 0){
+ // debugger
+ // // findKeyword(dom.childNodes,keyword)
+ // }else{
+ // if(node.nodeName !== "#text"){
+ // node.innerHTML = node.innerHTML.replaceAll(keyword,`${keyword}`)
+ // console.log("node:",node,dom,node.nodeName,node.innerHTML,node.childNodes.length)
+ // debugger
+ // }
+ // }
+
+ // return node
+ // });
+ }
+
var el = (0,react.useRef)();
lines.WebkitLineClamp = showLines;
if (showLines) {
diff --git a/p__Paths__HigherVocationalEducation__index.async.js b/p__Paths__HigherVocationalEducation__index.async.js
index fc75414c38..4641821ff6 100644
--- a/p__Paths__HigherVocationalEducation__index.async.js
+++ b/p__Paths__HigherVocationalEducation__index.async.js
@@ -1,19 +1,6 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[5572],{
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
-/***/ }),
-
/***/ 82982:
/*!*****************************************!*\
!*** ./src/components/NoData/index.tsx ***!
@@ -1324,33 +1311,6 @@ if (false) {}
/***/ }),
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
-/***/ }),
-
/***/ 43159:
/*!**************************************************!*\
!*** ./node_modules/rc-tooltip/es/placements.js ***!
diff --git a/p__Problemset__Preview__index.async.js b/p__Problemset__Preview__index.async.js
index e0ed6ec2a6..96cca205a7 100644
--- a/p__Problemset__Preview__index.async.js
+++ b/p__Problemset__Preview__index.async.js
@@ -316,6 +316,8 @@ var FixedButton = function FixedButton(_ref) {
loading = _ref$loading === void 0 ? false : _ref$loading,
_ref$hasOkBtn = _ref.hasOkBtn,
hasOkBtn = _ref$hasOkBtn === void 0 ? true : _ref$hasOkBtn,
+ _ref$hasCancelBtn = _ref.hasCancelBtn,
+ hasCancelBtn = _ref$hasCancelBtn === void 0 ? true : _ref$hasCancelBtn,
_ref$okButtonProps = _ref.okButtonProps,
okButtonProps = _ref$okButtonProps === void 0 ? {} : _ref$okButtonProps,
_ref$onCancel = _ref.onCancel,
@@ -328,7 +330,7 @@ var FixedButton = function FixedButton(_ref) {
className: classnames_default()(FixedButtonmodules.buttonFixed, className),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: FixedButtonmodules.buttonWrap,
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
+ children: [hasCancelBtn && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
size: "large",
className: "".concat(FixedButtonmodules.button, " mr20")
// 点击取消的返回
diff --git a/p__Question__OjProblem__RecordDetail__index.async.js b/p__Question__OjProblem__RecordDetail__index.async.js
index 055512bd62..90ae5d5e16 100644
--- a/p__Question__OjProblem__RecordDetail__index.async.js
+++ b/p__Question__OjProblem__RecordDetail__index.async.js
@@ -12,20 +12,6 @@ var DownOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 89
/* harmony default export */ __webpack_exports__["Z"] = (DownOutlined);
-/***/ }),
-
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-"use strict";
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
/***/ }),
/***/ 92287:
@@ -1936,34 +1922,6 @@ EyeOutlined_EyeOutlined.displayName = 'EyeOutlined';
/***/ }),
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
-/***/ }),
-
/***/ 19575:
/*!******************************************!*\
!*** ./node_modules/js-base64/base64.js ***!
diff --git a/p__Question__OjProblem__index.async.js b/p__Question__OjProblem__index.async.js
index 8b15e94c1f..107ac7e6b1 100644
--- a/p__Question__OjProblem__index.async.js
+++ b/p__Question__OjProblem__index.async.js
@@ -576,7 +576,8 @@ function _unescape(str) {
_ref$style = _ref.style,
style = _ref$style === void 0 ? {} : _ref$style,
_ref$stylesPrev = _ref.stylesPrev,
- stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev;
+ stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev,
+ highlightKeywords = _ref.highlightKeywords;
var str = String(value);
var _useState = (0,react.useState)(""),
_useState2 = slicedToArray_default()(_useState, 2),
@@ -626,16 +627,53 @@ function _unescape(str) {
resetMathExpressions();
// return dompurify.sanitize(rs)
var dom = document.createElement('div');
+ dom.innerHTML = rs;
+ if (highlightKeywords) {
+ var escapedKeywords = highlightKeywords.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
+ findKeyword(dom, escapedKeywords);
+ return dom.innerHTML;
+ }
if (showTextOnly) {
- dom.innerHTML = rs;
return dom.innerText;
}
- dom.innerHTML = rs;
setTimeout(function () {
return onLoad();
}, 500);
return dom.innerHTML;
- }, [str]);
+ }, [str, highlightKeywords]);
+ function findKeyword(node, keyword) {
+ return node.childNodes.forEach(function (childNode) {
+ if (childNode.childNodes.length > 0) {
+ findKeyword(childNode, keyword);
+ } else if (childNode.nodeName !== "IMG") {
+ if (childNode.innerHTML) {
+ var _childNode$innerHTML;
+ childNode.innerHTML = (_childNode$innerHTML = childNode.innerHTML) === null || _childNode$innerHTML === void 0 ? void 0 : _childNode$innerHTML.replace(new RegExp(keyword, "gi"), '$&');
+ } else {
+ var dom = document.createElement("span");
+ dom.innerHTML = childNode.textContent.replace(new RegExp(keyword, "gi"), '$&');
+ childNode.replaceWith(dom);
+ }
+ }
+ });
+
+ // return dom.childNodes.forEach((node:any) => {
+ // console.log("nodeLen:",node.childNodes.length)
+ // if(node.childNodes.length > 0){
+ // debugger
+ // // findKeyword(dom.childNodes,keyword)
+ // }else{
+ // if(node.nodeName !== "#text"){
+ // node.innerHTML = node.innerHTML.replaceAll(keyword,`${keyword}`)
+ // console.log("node:",node,dom,node.nodeName,node.innerHTML,node.childNodes.length)
+ // debugger
+ // }
+ // }
+
+ // return node
+ // });
+ }
+
var el = (0,react.useRef)();
lines.WebkitLineClamp = showLines;
if (showLines) {
diff --git a/p__Shixuns__Detail__Challenges__index.async.js b/p__Shixuns__Detail__Challenges__index.async.js
index b2f961cbfd..c831787879 100644
--- a/p__Shixuns__Detail__Challenges__index.async.js
+++ b/p__Shixuns__Detail__Challenges__index.async.js
@@ -130,9 +130,9 @@ var jsx_runtime = __webpack_require__(85893);
/***/ }),
-/***/ 61282:
+/***/ 94309:
/*!*******************************************************************!*\
- !*** ./src/pages/Shixuns/Detail/Challenges/index.tsx + 4 modules ***!
+ !*** ./src/pages/Shixuns/Detail/Challenges/index.tsx + 5 modules ***!
\*******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@@ -165,6 +165,10 @@ var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(70215);
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
+// EXTERNAL MODULE: ./node_modules/antd/es/row/style/index.js
+var row_style = __webpack_require__(13062);
+// EXTERNAL MODULE: ./node_modules/antd/es/row/index.js
+var row = __webpack_require__(71230);
// EXTERNAL MODULE: ./node_modules/antd/es/button/style/index.js + 1 modules
var button_style = __webpack_require__(29913);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
@@ -189,6 +193,10 @@ var RenderHtml = __webpack_require__(12768);
var image_preview = __webpack_require__(75490);
// EXTERNAL MODULE: ./src/pages/Shixuns/Detail/components/Right/index.tsx + 4 modules
var Right = __webpack_require__(93601);
+// EXTERNAL MODULE: ./node_modules/antd/es/dropdown/style/index.js + 1 modules
+var dropdown_style = __webpack_require__(68018);
+// EXTERNAL MODULE: ./node_modules/antd/es/dropdown/index.js
+var dropdown = __webpack_require__(13013);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(42122);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
@@ -204,13 +212,13 @@ var spin = __webpack_require__(11382);
var modal_style = __webpack_require__(35611);
// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 7 modules
var modal = __webpack_require__(85402);
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
-var regeneratorRuntime = __webpack_require__(17061);
-var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/antd/es/message/style/index.js + 1 modules
var message_style = __webpack_require__(14934);
// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 1 modules
var message = __webpack_require__(12461);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
+var regeneratorRuntime = __webpack_require__(17061);
+var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(17156);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
@@ -222,13 +230,52 @@ var statistic = __webpack_require__(74763);
var shixuns = __webpack_require__(56088);
;// CONCATENATED MODULE: ./src/pages/Shixuns/Detail/Challenges/components/Jupyter/index.less?modules
// extracted by mini-css-extract-plugin
-/* harmony default export */ var Jupytermodules = ({"allTaskWrap":"allTaskWrap___5OgCm","titleTip":"titleTip___ygfdn","loading":"loading___QpGaQ","failWrap":"failWrap____s8of","failIcon":"failIcon___f9OxH","failReload":"failReload___q6MdJ","timeWrap":"timeWrap___FKccg","actionWrap":"actionWrap___Ud1IQ","zoom":"zoom___wkYch","iframeZoom":"iframeZoom___H5Nxp"});
+/* harmony default export */ var Jupytermodules = ({"allTaskWrap":"allTaskWrap___5OgCm","titleTip":"titleTip___ygfdn","loading":"loading___QpGaQ","failWrap":"failWrap____s8of","failIcon":"failIcon___f9OxH","failReload":"failReload___q6MdJ","timeWrap":"timeWrap___FKccg","actionWrap":"actionWrap___Ud1IQ","zoom":"zoom___wkYch","iframeZoom":"iframeZoom___H5Nxp","previewWrapper":"previewWrapper___WYNMf","fullScreen":"fullScreen___gm0rF","uploadWrapper":"uploadWrapper___IIOXt"});
// EXTERNAL MODULE: ./src/components/mediator.js
var mediator = __webpack_require__(91562);
+// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/CaretDownOutlined.js
+var CaretDownOutlined = __webpack_require__(95025);
+// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/FormOutlined.js + 1 modules
+var FormOutlined = __webpack_require__(77123);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(7);
+// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 36 modules
+var ui_customization = __webpack_require__(11030);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
+;// CONCATENATED MODULE: ./src/components/HtmlPreview/index.tsx
+
+
+var HtmlPreview = function HtmlPreview(_ref) {
+ var content = _ref.content,
+ useShadowDom = _ref.useShadowDom;
+ (0,react.useEffect)(function () {
+ if (!content) {
+ return;
+ }
+ if (useShadowDom) {
+ var _wrapperRef$current;
+ var shadow = (_wrapperRef$current = wrapperRef.current) === null || _wrapperRef$current === void 0 ? void 0 : _wrapperRef$current.attachShadow({
+ mode: 'closed'
+ });
+ var container = document.createElement('div');
+ container.innerHTML = content;
+ shadow === null || shadow === void 0 ? void 0 : shadow.appendChild(container);
+ return function () {
+ shadow.removeChild(container);
+ };
+ }
+ }, [content, useShadowDom]);
+ var wrapperRef = (0,react.useRef)(null);
+ return useShadowDom ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ ref: wrapperRef
+ }) : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ dangerouslySetInnerHTML: {
+ __html: content
+ }
+ });
+};
+/* harmony default export */ var components_HtmlPreview = (HtmlPreview);
;// CONCATENATED MODULE: ./src/pages/Shixuns/Detail/Challenges/components/Jupyter/index.tsx
@@ -249,7 +296,9 @@ var jsx_runtime = __webpack_require__(85893);
-var _excluded = ["shixunsDetail", "globalSetting", "loading", "user", "dispatch", "match"];
+
+
+
@@ -266,16 +315,13 @@ var Status;
Status[Status["LoadingFail"] = 1] = "LoadingFail";
Status[Status["Loading"] = 2] = "Loading";
Status[Status["Finish"] = 3] = "Finish";
+ Status[Status["Preview"] = 4] = "Preview";
})(Status || (Status = {}));
var Jupyter = function Jupyter(_ref) {
- var _user$userInfo, _user$userInfo2, _shixunsDetail$detail, _shixunsDetail$challe;
+ var _user$userInfo, _user$userInfo2, _shixunsDetail$detail, _shixunsDetail$challe, _shixunsDetail$challe2;
var shixunsDetail = _ref.shixunsDetail,
- globalSetting = _ref.globalSetting,
- loading = _ref.loading,
user = _ref.user,
- dispatch = _ref.dispatch,
- match = _ref.match,
- props = objectWithoutProperties_default()(_ref, _excluded);
+ dispatch = _ref.dispatch;
var params = (0,_umi_production_exports.useParams)();
var _useState = (0,react.useState)(Status.Loading),
_useState2 = slicedToArray_default()(_useState, 2),
@@ -312,9 +358,49 @@ var Jupyter = function Jupyter(_ref) {
_useState16 = slicedToArray_default()(_useState15, 2),
monitoringUrl = _useState16[0],
setMonitoringUrl = _useState16[1];
+ var _useState17 = (0,react.useState)(),
+ _useState18 = slicedToArray_default()(_useState17, 2),
+ previewHtml = _useState18[0],
+ setPreviewHtml = _useState18[1];
+ var getJupyterPreviewHtml = /*#__PURE__*/function () {
+ var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
+ var res;
+ return regeneratorRuntime_default()().wrap(function _callee$(_context) {
+ while (1) switch (_context.prev = _context.next) {
+ case 0:
+ setStatus(Status.Loading);
+ _context.next = 3;
+ return (0,shixuns/* previewJupyter */.SG)({
+ identifier: params.id
+ });
+ case 3:
+ res = _context.sent;
+ if (!(res.status === 0)) {
+ _context.next = 8;
+ break;
+ }
+ setPreviewHtml(res.html_content);
+ setStatus(Status.Preview);
+ return _context.abrupt("return");
+ case 8:
+ setStatus(Status.LoadingFail);
+ case 9:
+ case "end":
+ return _context.stop();
+ }
+ }, _callee);
+ }));
+ return function getJupyterPreviewHtml() {
+ return _ref2.apply(this, arguments);
+ };
+ }();
(0,react.useEffect)(function () {
- handleGetTPMInfo();
- }, []);
+ if (shixunsDetail.hasStartedEnv) {
+ handleGetTPMInfo();
+ } else {
+ getJupyterPreviewHtml();
+ }
+ }, [shixunsDetail]);
(0,react.useEffect)(function () {
window.addEventListener('message', handleJupyterMessage);
return function () {
@@ -322,11 +408,10 @@ var Jupyter = function Jupyter(_ref) {
};
}, []);
var handleJupyterMessage = function handleJupyterMessage(e) {
- var _e$data, _e$data2;
- console.log("message:", e.data, (_e$data = e.data) === null || _e$data === void 0 ? void 0 : _e$data.type);
- if (((_e$data2 = e.data) === null || _e$data2 === void 0 ? void 0 : _e$data2.type) === "editHeight") {
- var _e$data3;
- setIframeHeight(((_e$data3 = e.data) === null || _e$data3 === void 0 ? void 0 : _e$data3.height) + 148);
+ var _e$data;
+ if (((_e$data = e.data) === null || _e$data === void 0 ? void 0 : _e$data.type) === "editHeight") {
+ var _e$data2;
+ setIframeHeight(((_e$data2 = e.data) === null || _e$data2 === void 0 ? void 0 : _e$data2.height) + 148);
}
if ((e === null || e === void 0 ? void 0 : e.data) === "jupytermessage" && jupyterMessageFlag.current) {
jupyterMessageFlag.current = false;
@@ -337,19 +422,19 @@ var Jupyter = function Jupyter(_ref) {
}
};
var handleSaveTPM = /*#__PURE__*/function () {
- var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
+ var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var res;
- return regeneratorRuntime_default()().wrap(function _callee$(_context) {
- while (1) switch (_context.prev = _context.next) {
+ return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
+ while (1) switch (_context2.prev = _context2.next) {
case 0:
- _context.next = 2;
+ _context2.next = 2;
return (0,shixuns/* saveWithTPM */.qA)({
identifier: params.id,
jupyter_port: port.current,
token: token.current
});
case 2:
- res = _context.sent;
+ res = _context2.sent;
if (res.status === 0) {
message/* default.success */.ZP.success('保存成功!');
} else {
@@ -357,45 +442,45 @@ var Jupyter = function Jupyter(_ref) {
}
case 4:
case "end":
- return _context.stop();
+ return _context2.stop();
}
- }, _callee);
+ }, _callee2);
}));
return function handleSaveTPM() {
- return _ref2.apply(this, arguments);
+ return _ref3.apply(this, arguments);
};
}();
var handleGetTPMInfo = /*#__PURE__*/function () {
- var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
+ var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
var _res$data, _res$data$data_list;
var res, _res$data2, _res$data3, _parseUrl;
- return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
- while (1) switch (_context2.prev = _context2.next) {
+ return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
+ while (1) switch (_context3.prev = _context3.next) {
case 0:
setStatus(Status.Loading);
setIsLoading(true);
- _context2.next = 4;
+ _context3.next = 4;
return (0,shixuns/* getInfoWithTPM */.Ui)({
identifier: params.id
})["finally"](function () {
return setIsLoading(false);
});
case 4:
- res = _context2.sent;
+ res = _context3.sent;
setIsLoading(false);
setMonitoringUrl(res === null || res === void 0 ? void 0 : res.monitoring_url);
if (!(res !== null && res !== void 0 && (_res$data = res.data) !== null && _res$data !== void 0 && (_res$data$data_list = _res$data.data_list) !== null && _res$data$data_list !== void 0 && _res$data$data_list.length)) {
- _context2.next = 10;
+ _context3.next = 10;
break;
}
mediator/* default.publish */.Z.publish('pod-restrict-data', {
identifier: res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.identifier,
data_list: res === null || res === void 0 ? void 0 : (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.data_list
});
- return _context2.abrupt("return");
+ return _context3.abrupt("return");
case 10:
if (!(res !== null && res !== void 0 && res.url)) {
- _context2.next = 17;
+ _context3.next = 17;
break;
}
handleGetTPMTimeInfo();
@@ -403,36 +488,36 @@ var Jupyter = function Jupyter(_ref) {
setStatus(Status.Finish);
setJupyterUrl(res.url);
port.current = res.port;
- return _context2.abrupt("return");
+ return _context3.abrupt("return");
case 17:
setStatus(Status.LoadingFail);
case 18:
case "end":
- return _context2.stop();
+ return _context3.stop();
}
- }, _callee2);
+ }, _callee3);
}));
return function handleGetTPMInfo() {
- return _ref3.apply(this, arguments);
+ return _ref4.apply(this, arguments);
};
}();
var handleGetTPMTimeInfo = /*#__PURE__*/function () {
- var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
+ var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
var res;
- return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
- while (1) switch (_context3.prev = _context3.next) {
+ return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
+ while (1) switch (_context4.prev = _context4.next) {
case 0:
- _context3.next = 2;
+ _context4.next = 2;
return (0,shixuns/* getTimeInfoWithTPM */.K_)({
identifier: params.id
});
case 2:
- res = _context3.sent;
+ res = _context4.sent;
if (!((res === null || res === void 0 ? void 0 : res.status) !== 0)) {
- _context3.next = 5;
+ _context4.next = 5;
break;
}
- return _context3.abrupt("return");
+ return _context4.abrupt("return");
case 5:
if (res !== null && res !== void 0 && res.remainingSeconds) {
setTime(Date.now() + res.remainingSeconds * 1000);
@@ -442,12 +527,12 @@ var Jupyter = function Jupyter(_ref) {
}
case 6:
case "end":
- return _context3.stop();
+ return _context4.stop();
}
- }, _callee3);
+ }, _callee4);
}));
return function handleGetTPMTimeInfo() {
- return _ref4.apply(this, arguments);
+ return _ref5.apply(this, arguments);
};
}();
var handleResetEnvModal = function handleResetEnvModal() {
@@ -462,16 +547,16 @@ var Jupyter = function Jupyter(_ref) {
children: "\u662F\u5426\u786E\u5B9A\u91CD\u7F6E\u73AF\u5883\uFF1F"
}),
onOk: function () {
- var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
- return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
- while (1) switch (_context4.prev = _context4.next) {
+ var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() {
+ return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
+ while (1) switch (_context5.prev = _context5.next) {
case 0:
handleResetEnv();
case 1:
case "end":
- return _context4.stop();
+ return _context5.stop();
}
- }, _callee4);
+ }, _callee5);
}));
function onOk() {
return _onOk.apply(this, arguments);
@@ -481,24 +566,24 @@ var Jupyter = function Jupyter(_ref) {
});
};
var handleResetEnv = /*#__PURE__*/function () {
- var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() {
+ var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6() {
var _parseUrl2;
var res;
- return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
- while (1) switch (_context5.prev = _context5.next) {
+ return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
+ while (1) switch (_context6.prev = _context6.next) {
case 0:
setStatus(Status.Loading);
- _context5.next = 3;
+ _context6.next = 3;
return (0,shixuns/* resetWithTPM */.zH)({
identifier: params.id
});
case 3:
- res = _context5.sent;
+ res = _context6.sent;
if (!((res === null || res === void 0 ? void 0 : res.status) !== 0)) {
- _context5.next = 6;
+ _context6.next = 6;
break;
}
- return _context5.abrupt("return");
+ return _context6.abrupt("return");
case 6:
setStatus(Status.Finish);
setJupyterUrl(res.url);
@@ -507,12 +592,12 @@ var Jupyter = function Jupyter(_ref) {
message/* default.success */.ZP.success('重置环境成功!');
case 11:
case "end":
- return _context5.stop();
+ return _context6.stop();
}
- }, _callee5);
+ }, _callee6);
}));
return function handleResetEnv() {
- return _ref5.apply(this, arguments);
+ return _ref6.apply(this, arguments);
};
}();
var handleEndTimeFinish = function handleEndTimeFinish() {
@@ -534,30 +619,30 @@ var Jupyter = function Jupyter(_ref) {
cancelText: '不需要',
zIndex: 9999,
onOk: function () {
- var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6() {
+ var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7() {
var res;
- return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
- while (1) switch (_context6.prev = _context6.next) {
+ return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
+ while (1) switch (_context7.prev = _context7.next) {
case 0:
- _context6.next = 2;
+ _context7.next = 2;
return (0,shixuns/* activeWithTPM */.q9)({
identifier: params.id
});
case 2:
- res = _context6.sent;
+ res = _context7.sent;
if (!(res.status === 0)) {
- _context6.next = 7;
+ _context7.next = 7;
break;
}
- _context6.next = 6;
+ _context7.next = 6;
return handleGetTPMTimeInfo();
case 6:
message/* default.success */.ZP.success('延长成功!');
case 7:
case "end":
- return _context6.stop();
+ return _context7.stop();
}
- }, _callee6);
+ }, _callee7);
}));
function onOk() {
return _onOk2.apply(this, arguments);
@@ -585,7 +670,6 @@ var Jupyter = function Jupyter(_ref) {
};
var handleChangeUpload = function handleChangeUpload(info) {
var _info$file$response;
- console.log(info.file.status, info.file.response, 'info');
var statusList = ["uploading", "done", "removed"];
if (statusList.includes(info.file.status) && ((_info$file$response = info.file.response) === null || _info$file$response === void 0 ? void 0 : _info$file$response.status) === 0) {
message/* default.success */.ZP.success('上传文件成功!');
@@ -593,7 +677,6 @@ var Jupyter = function Jupyter(_ref) {
}
};
var uploadProps = {
- width: 600,
showUploadList: false,
multiple: false,
data: {
@@ -690,23 +773,85 @@ var Jupyter = function Jupyter(_ref) {
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Jupytermodules.actionWrap,
- children: [(0,authority/* isSuperAdmins */.Ny)() && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
- className: "mr20",
- type: "primary",
- target: "_blank",
- href: monitoringUrl,
- children: "\u8D44\u6E90\u76D1\u63A7"
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
- className: "mr20",
- type: "primary",
- onClick: handleResetEnvModal,
- children: "\u91CD\u7F6E\u73AF\u5883"
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(upload/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, uploadProps), {}, {
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
- type: "primary",
- children: "\u5BFC\u5165"
+ children: [status === Status.Finish && /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, {
+ placement: "bottom",
+ trigger: ['click'],
+ menu: {
+ items: [{
+ key: '1',
+ label: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
+ target: "_blank",
+ href: monitoringUrl,
+ children: "\u8D44\u6E90\u76D1\u63A7"
+ }),
+ show: (0,authority/* isSuperAdmins */.Ny)()
+ }, {
+ key: '2',
+ label: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ onClick: handleResetEnvModal,
+ children: "\u91CD\u7F6E\u73AF\u5883"
+ }),
+ show: true
+ }, {
+ key: '3',
+ label: /*#__PURE__*/(0,jsx_runtime.jsx)(upload/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, uploadProps), {}, {
+ className: Jupytermodules.uploadWrapper,
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ children: "\u5BFC\u5165"
+ })
+ })),
+ show: true
+ }, {
+ key: '4',
+ label: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
+ target: "_blank",
+ href: "https://".concat(port.current).concat(env/* default.TERMINAL_URL */.Z.TERMINAL_URL, "/terminals/1"),
+ children: "\u547D\u4EE4\u884C\u7EC8\u7AEF"
+ }),
+ show: (_shixunsDetail$challe2 = shixunsDetail.challenges) === null || _shixunsDetail$challe2 === void 0 ? void 0 : _shixunsDetail$challe2.is_jupyter
+ }].filter(function (item) {
+ return item.show;
+ })
+ },
+ children: /*#__PURE__*/(0,jsx_runtime.jsxs)(ui_customization/* CustomButton */.op, {
+ children: ["\u5DE5\u5177\u680F", /*#__PURE__*/(0,jsx_runtime.jsx)(CaretDownOutlined/* default */.Z, {})]
})
- })), isZoom ? /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
+ }), status === Status.Finish && /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
+ className: "ml20",
+ onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8() {
+ return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
+ while (1) switch (_context8.prev = _context8.next) {
+ case 0:
+ _context8.next = 2;
+ return getJupyterPreviewHtml();
+ case 2:
+ setStatus(Status.Preview);
+ case 3:
+ case "end":
+ return _context8.stop();
+ }
+ }, _callee8);
+ })),
+ children: "\u9000\u51FA\u7F16\u8F91"
+ }), status === Status.Preview && /*#__PURE__*/(0,jsx_runtime.jsxs)(ui_customization/* CustomButton */.op, {
+ className: "ml20",
+ onClick: function onClick() {
+ if (!shixunsDetail.hasStartedEnv) {
+ dispatch({
+ type: 'shixunsDetail/save',
+ payload: {
+ hasStartedEnv: true
+ }
+ });
+ }
+ setStatus(Status.Finish);
+ },
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(FormOutlined/* default */.Z, {
+ style: {
+ marginRight: 6
+ }
+ }), "\u7F16\u8F91\u5B9E\u9A8C\u5185\u5BB9"]
+ }), isZoom ? /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "c-blue current",
onClick: function onClick() {
return setIsZoom(!isZoom);
@@ -731,16 +876,27 @@ var Jupyter = function Jupyter(_ref) {
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- children: [status === Status.LoadingFail && renderLoadingFail(), status === Status.Loading && renderLoading(), status === Status.Finish && renderContent()]
+ children: [status === Status.LoadingFail && renderLoadingFail(), status === Status.Loading && renderLoading(), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ style: {
+ display: status === Status.Finish ? 'block' : 'none'
+ },
+ children: renderContent()
+ }), status === Status.Preview && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ className: "".concat(isZoom ? Jupytermodules.fullScreen : Jupytermodules.previewWrapper),
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(components_HtmlPreview, {
+ content: previewHtml,
+ useShadowDom: false
+ })
+ })]
})]
}) : null]
});
};
-/* harmony default export */ var components_Jupyter = ((0,_umi_production_exports.connect)(function (_ref6) {
- var shixunsDetail = _ref6.shixunsDetail,
- loading = _ref6.loading,
- globalSetting = _ref6.globalSetting,
- user = _ref6.user;
+/* harmony default export */ var components_Jupyter = ((0,_umi_production_exports.connect)(function (_ref8) {
+ var shixunsDetail = _ref8.shixunsDetail,
+ loading = _ref8.loading,
+ globalSetting = _ref8.globalSetting,
+ user = _ref8.user;
return {
shixunsDetail: shixunsDetail,
globalSetting: globalSetting,
@@ -767,7 +923,9 @@ var env_not_started_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUh
-var Challenges_excluded = ["shixunsDetail", "globalSetting", "loading", "user", "dispatch", "match"];
+
+
+var _excluded = ["shixunsDetail", "globalSetting", "loading", "user", "dispatch"];
@@ -798,13 +956,14 @@ var NoData = function NoData(_ref) {
});
};
var PreparePage = function PreparePage(_ref2) {
- var onStart = _ref2.onStart;
+ var onStart = _ref2.onStart,
+ onPreview = _ref2.onPreview;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Challengesmodules.preparePageWrapper,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Title, {
level: 4,
className: Challengesmodules.preparePageTitle,
- children: "\u5B9E\u9A8C\u7F16\u8F91"
+ children: "\u5B9E\u9A8C\u5185\u5BB9"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Challengesmodules.preparePageContent,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
@@ -812,11 +971,19 @@ var PreparePage = function PreparePage(_ref2) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Challengesmodules.preparePageText,
children: "\u5F00\u53D1\u8005\u5728\u6B64\u7F16\u8F91\u8BBE\u8BA1\u5B9E\u9A8C"
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
- type: "primary",
- className: Challengesmodules.startBtn,
- onClick: onStart,
- children: "\u7F16\u8F91\u5B9E\u9A8C\u5185\u5BB9"
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
+ justify: "center",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
+ type: "primary",
+ className: "".concat(Challengesmodules.startBtn, " mr20"),
+ onClick: onPreview,
+ children: "\u67E5\u770B\u5B9E\u9A8C\u5185\u5BB9"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
+ type: "primary",
+ className: Challengesmodules.startBtn,
+ onClick: onStart,
+ children: "\u7F16\u8F91\u5B9E\u9A8C\u5185\u5BB9"
+ })]
})]
})]
});
@@ -828,8 +995,7 @@ var Challenges = function Challenges(_ref3) {
loading = _ref3.loading,
user = _ref3.user,
dispatch = _ref3.dispatch,
- match = _ref3.match,
- props = objectWithoutProperties_default()(_ref3, Challenges_excluded);
+ props = objectWithoutProperties_default()(_ref3, _excluded);
var _useState = (0,react.useState)(true),
_useState2 = slicedToArray_default()(_useState, 2),
showReadFull = _useState2[0],
@@ -989,6 +1155,11 @@ var Challenges = function Challenges(_ref3) {
})]
});
};
+ var _useState5 = (0,react.useState)(false),
+ _useState6 = slicedToArray_default()(_useState5, 2),
+ btnClicked = _useState6[0],
+ setBtnClicked = _useState6[1]; //只要点击过任意一个按钮就不再展示启动环境按钮和预览按钮了
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: Challengesmodules.challenges,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
@@ -1032,7 +1203,16 @@ var Challenges = function Challenges(_ref3) {
})]
})
})
- }), (_shixunsDetail$detail2 = shixunsDetail.detail) !== null && _shixunsDetail$detail2 !== void 0 && _shixunsDetail$detail2.is_jupyter || (_shixunsDetail$detail3 = shixunsDetail.detail) !== null && _shixunsDetail$detail3 !== void 0 && _shixunsDetail$detail3.is_jupyter_lab ? (_shixunsDetail$detail4 = shixunsDetail.detail) !== null && _shixunsDetail$detail4 !== void 0 && _shixunsDetail$detail4.power ? shixunsDetail.hasStartedEnv ? /*#__PURE__*/(0,jsx_runtime.jsx)(components_Jupyter, {}) : /*#__PURE__*/(0,jsx_runtime.jsx)(PreparePage, {
+ }), (_shixunsDetail$detail2 = shixunsDetail.detail) !== null && _shixunsDetail$detail2 !== void 0 && _shixunsDetail$detail2.is_jupyter || (_shixunsDetail$detail3 = shixunsDetail.detail) !== null && _shixunsDetail$detail3 !== void 0 && _shixunsDetail$detail3.is_jupyter_lab ? (_shixunsDetail$detail4 = shixunsDetail.detail) !== null && _shixunsDetail$detail4 !== void 0 && _shixunsDetail$detail4.power ? btnClicked ? /*#__PURE__*/(0,jsx_runtime.jsx)(components_Jupyter, {}) : /*#__PURE__*/(0,jsx_runtime.jsx)(PreparePage, {
+ onPreview: function onPreview() {
+ dispatch({
+ type: 'shixunsDetail/save',
+ payload: {
+ hasStartedEnv: false
+ }
+ });
+ setBtnClicked(true);
+ },
onStart: function onStart() {
dispatch({
type: 'shixunsDetail/save',
@@ -1040,6 +1220,7 @@ var Challenges = function Challenges(_ref3) {
hasStartedEnv: true
}
});
+ setBtnClicked(true);
}
}) : null : renderCustomsPass()]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Right/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(image_preview/* default */.Z, {})]
diff --git a/p__Shixuns__Detail__Challenges__index.chunk.css b/p__Shixuns__Detail__Challenges__index.chunk.css
index eb3ec078fb..ff8f8640ca 100644
--- a/p__Shixuns__Detail__Challenges__index.chunk.css
+++ b/p__Shixuns__Detail__Challenges__index.chunk.css
@@ -1,797 +1,3 @@
-/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./node_modules/antd/es/divider/style/index.less ***!
- \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
-/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
-/* stylelint-disable no-duplicate-selectors */
-/* stylelint-disable */
-/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
-.ant-divider {
- box-sizing: border-box;
- margin: 0;
- padding: 0;
- color: rgba(0, 0, 0, 0.85);
- font-size: 12px;
- font-variant: tabular-nums;
- line-height: 1.66667;
- list-style: none;
- font-feature-settings: tnum, "tnum";
- border-top: 1px solid rgba(0, 0, 0, 0.06);
-}
-.ant-divider-vertical {
- position: relative;
- top: -0.06em;
- display: inline-block;
- height: 0.9em;
- margin: 0 8px;
- vertical-align: middle;
- border-top: 0;
- border-left: 1px solid rgba(0, 0, 0, 0.06);
-}
-.ant-divider-horizontal {
- display: flex;
- clear: both;
- width: 100%;
- min-width: 100%;
- margin: 24px 0;
-}
-.ant-divider-horizontal.ant-divider-with-text {
- display: flex;
- align-items: center;
- margin: 16px 0;
- color: rgba(0, 0, 0, 0.85);
- font-weight: 500;
- font-size: 14px;
- white-space: nowrap;
- text-align: center;
- border-top: 0;
- border-top-color: rgba(0, 0, 0, 0.06);
-}
-.ant-divider-horizontal.ant-divider-with-text::before,
-.ant-divider-horizontal.ant-divider-with-text::after {
- position: relative;
- width: 50%;
- border-top: 1px solid transparent;
- border-top-color: inherit;
- border-bottom: 0;
- transform: translateY(50%);
- content: '';
-}
-.ant-divider-horizontal.ant-divider-with-text-left::before {
- width: 5%;
-}
-.ant-divider-horizontal.ant-divider-with-text-left::after {
- width: 95%;
-}
-.ant-divider-horizontal.ant-divider-with-text-right::before {
- width: 95%;
-}
-.ant-divider-horizontal.ant-divider-with-text-right::after {
- width: 5%;
-}
-.ant-divider-inner-text {
- display: inline-block;
- padding: 0 1em;
-}
-.ant-divider-dashed {
- background: none;
- border-color: rgba(0, 0, 0, 0.06);
- border-style: dashed;
- border-width: 1px 0 0;
-}
-.ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed::before,
-.ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed::after {
- border-style: dashed none none;
-}
-.ant-divider-vertical.ant-divider-dashed {
- border-width: 0 0 0 1px;
-}
-.ant-divider-plain.ant-divider-with-text {
- color: rgba(0, 0, 0, 0.85);
- font-weight: normal;
- font-size: 12px;
-}
-.ant-divider-horizontal.ant-divider-with-text-left.ant-divider-no-default-orientation-margin-left::before {
- width: 0;
-}
-.ant-divider-horizontal.ant-divider-with-text-left.ant-divider-no-default-orientation-margin-left::after {
- width: 100%;
-}
-.ant-divider-horizontal.ant-divider-with-text-left.ant-divider-no-default-orientation-margin-left .ant-divider-inner-text {
- padding-left: 0;
-}
-.ant-divider-horizontal.ant-divider-with-text-right.ant-divider-no-default-orientation-margin-right::before {
- width: 100%;
-}
-.ant-divider-horizontal.ant-divider-with-text-right.ant-divider-no-default-orientation-margin-right::after {
- width: 0;
-}
-.ant-divider-horizontal.ant-divider-with-text-right.ant-divider-no-default-orientation-margin-right .ant-divider-inner-text {
- padding-right: 0;
-}
-.ant-divider-rtl {
- direction: rtl;
-}
-.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-left::before {
- width: 95%;
-}
-.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-left::after {
- width: 5%;
-}
-.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-right::before {
- width: 5%;
-}
-.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-right::after {
- width: 95%;
-}
-/* stylelint-disable no-duplicate-selectors */
-/* stylelint-disable */
-/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
-
-/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./node_modules/antd/es/skeleton/style/index.less ***!
- \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
-/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
-/* stylelint-disable no-duplicate-selectors */
-/* stylelint-disable */
-/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
-.ant-skeleton {
- display: table;
- width: 100%;
-}
-.ant-skeleton-header {
- display: table-cell;
- padding-right: 8px;
- vertical-align: top;
-}
-.ant-skeleton-header .ant-skeleton-avatar {
- display: inline-block;
- vertical-align: top;
- background: rgba(190, 190, 190, 0.2);
- width: 28px;
- height: 28px;
- line-height: 28px;
-}
-.ant-skeleton-header .ant-skeleton-avatar.ant-skeleton-avatar-circle {
- border-radius: 50%;
-}
-.ant-skeleton-header .ant-skeleton-avatar-lg {
- width: 32px;
- height: 32px;
- line-height: 32px;
-}
-.ant-skeleton-header .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle {
- border-radius: 50%;
-}
-.ant-skeleton-header .ant-skeleton-avatar-sm {
- width: 22px;
- height: 22px;
- line-height: 22px;
-}
-.ant-skeleton-header .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle {
- border-radius: 50%;
-}
-.ant-skeleton-content {
- display: table-cell;
- width: 100%;
- vertical-align: top;
-}
-.ant-skeleton-content .ant-skeleton-title {
- width: 100%;
- height: 14px;
- background: rgba(190, 190, 190, 0.2);
- border-radius: 2px;
-}
-.ant-skeleton-content .ant-skeleton-title + .ant-skeleton-paragraph {
- margin-top: 20px;
-}
-.ant-skeleton-content .ant-skeleton-paragraph {
- padding: 0;
-}
-.ant-skeleton-content .ant-skeleton-paragraph > li {
- width: 100%;
- height: 14px;
- list-style: none;
- background: rgba(190, 190, 190, 0.2);
- border-radius: 2px;
-}
-.ant-skeleton-content .ant-skeleton-paragraph > li:last-child:not(:first-child):not(:nth-child(2)) {
- width: 61%;
-}
-.ant-skeleton-content .ant-skeleton-paragraph > li + li {
- margin-top: 12px;
-}
-.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title {
- margin-top: 8px;
-}
-.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title + .ant-skeleton-paragraph {
- margin-top: 20px;
-}
-.ant-skeleton-round .ant-skeleton-content .ant-skeleton-title,
-.ant-skeleton-round .ant-skeleton-content .ant-skeleton-paragraph > li {
- border-radius: 100px;
-}
-.ant-skeleton-active .ant-skeleton-title,
-.ant-skeleton-active .ant-skeleton-paragraph > li,
-.ant-skeleton-active .ant-skeleton-avatar,
-.ant-skeleton-active .ant-skeleton-button,
-.ant-skeleton-active .ant-skeleton-input,
-.ant-skeleton-active .ant-skeleton-image {
- position: relative;
- /* stylelint-disable-next-line property-no-vendor-prefix,value-no-vendor-prefix */
- z-index: 0;
- overflow: hidden;
- background: transparent;
-}
-.ant-skeleton-active .ant-skeleton-title::after,
-.ant-skeleton-active .ant-skeleton-paragraph > li::after,
-.ant-skeleton-active .ant-skeleton-avatar::after,
-.ant-skeleton-active .ant-skeleton-button::after,
-.ant-skeleton-active .ant-skeleton-input::after,
-.ant-skeleton-active .ant-skeleton-image::after {
- position: absolute;
- top: 0;
- right: -150%;
- bottom: 0;
- left: -150%;
- background: linear-gradient(90deg, rgba(190, 190, 190, 0.2) 25%, rgba(129, 129, 129, 0.24) 37%, rgba(190, 190, 190, 0.2) 63%);
- animation: ant-skeleton-loading 1.4s ease infinite;
- content: '';
-}
-.ant-skeleton.ant-skeleton-block {
- width: 100%;
-}
-.ant-skeleton.ant-skeleton-block .ant-skeleton-button {
- width: 100%;
-}
-.ant-skeleton.ant-skeleton-block .ant-skeleton-input {
- width: 100%;
-}
-.ant-skeleton-element {
- display: inline-block;
- width: auto;
-}
-.ant-skeleton-element .ant-skeleton-button {
- display: inline-block;
- vertical-align: top;
- background: rgba(190, 190, 190, 0.2);
- border-radius: 2px;
- width: 56px;
- min-width: 56px;
- height: 28px;
- line-height: 28px;
-}
-.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-square {
- width: 28px;
- min-width: 28px;
-}
-.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-circle {
- width: 28px;
- min-width: 28px;
- border-radius: 50%;
-}
-.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-round {
- border-radius: 28px;
-}
-.ant-skeleton-element .ant-skeleton-button-lg {
- width: 64px;
- min-width: 64px;
- height: 32px;
- line-height: 32px;
-}
-.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-square {
- width: 32px;
- min-width: 32px;
-}
-.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-circle {
- width: 32px;
- min-width: 32px;
- border-radius: 50%;
-}
-.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-round {
- border-radius: 32px;
-}
-.ant-skeleton-element .ant-skeleton-button-sm {
- width: 44px;
- min-width: 44px;
- height: 22px;
- line-height: 22px;
-}
-.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-square {
- width: 22px;
- min-width: 22px;
-}
-.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-circle {
- width: 22px;
- min-width: 22px;
- border-radius: 50%;
-}
-.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-round {
- border-radius: 22px;
-}
-.ant-skeleton-element .ant-skeleton-avatar {
- display: inline-block;
- vertical-align: top;
- background: rgba(190, 190, 190, 0.2);
- width: 28px;
- height: 28px;
- line-height: 28px;
-}
-.ant-skeleton-element .ant-skeleton-avatar.ant-skeleton-avatar-circle {
- border-radius: 50%;
-}
-.ant-skeleton-element .ant-skeleton-avatar-lg {
- width: 32px;
- height: 32px;
- line-height: 32px;
-}
-.ant-skeleton-element .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle {
- border-radius: 50%;
-}
-.ant-skeleton-element .ant-skeleton-avatar-sm {
- width: 22px;
- height: 22px;
- line-height: 22px;
-}
-.ant-skeleton-element .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle {
- border-radius: 50%;
-}
-.ant-skeleton-element .ant-skeleton-input {
- display: inline-block;
- vertical-align: top;
- background: rgba(190, 190, 190, 0.2);
- width: 140px;
- min-width: 140px;
- height: 28px;
- line-height: 28px;
-}
-.ant-skeleton-element .ant-skeleton-input-lg {
- width: 160px;
- min-width: 160px;
- height: 32px;
- line-height: 32px;
-}
-.ant-skeleton-element .ant-skeleton-input-sm {
- width: 110px;
- min-width: 110px;
- height: 22px;
- line-height: 22px;
-}
-.ant-skeleton-element .ant-skeleton-image {
- display: flex;
- align-items: center;
- justify-content: center;
- vertical-align: top;
- background: rgba(190, 190, 190, 0.2);
- width: 96px;
- height: 96px;
- line-height: 96px;
-}
-.ant-skeleton-element .ant-skeleton-image.ant-skeleton-image-circle {
- border-radius: 50%;
-}
-.ant-skeleton-element .ant-skeleton-image-path {
- fill: #bfbfbf;
-}
-.ant-skeleton-element .ant-skeleton-image-svg {
- width: 48px;
- height: 48px;
- line-height: 48px;
- max-width: 192px;
- max-height: 192px;
-}
-.ant-skeleton-element .ant-skeleton-image-svg.ant-skeleton-image-circle {
- border-radius: 50%;
-}
-@keyframes ant-skeleton-loading {
- 0% {
- transform: translateX(-37.5%);
- }
- 100% {
- transform: translateX(37.5%);
- }
-}
-.ant-skeleton-rtl {
- direction: rtl;
-}
-.ant-skeleton-rtl .ant-skeleton-header {
- padding-right: 0;
- padding-left: 16px;
-}
-.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title,
-.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph > li {
- animation-name: ant-skeleton-loading-rtl;
-}
-.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar {
- animation-name: ant-skeleton-loading-rtl;
-}
-@keyframes ant-skeleton-loading-rtl {
- 0% {
- background-position: 0% 50%;
- }
- 100% {
- background-position: 100% 50%;
- }
-}
-/* stylelint-disable no-duplicate-selectors */
-/* stylelint-disable */
-/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
-
-/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./node_modules/antd/es/typography/style/index.less ***!
- \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
-/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
-/* stylelint-disable no-duplicate-selectors */
-/* stylelint-disable */
-/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
-.ant-typography {
- color: rgba(0, 0, 0, 0.85);
- word-break: break-word;
-}
-.ant-typography.ant-typography-secondary {
- color: rgba(0, 0, 0, 0.45);
-}
-.ant-typography.ant-typography-success {
- color: #52c41a;
-}
-.ant-typography.ant-typography-warning {
- color: #faad14;
-}
-.ant-typography.ant-typography-danger {
- color: #ff4d4f;
-}
-a.ant-typography.ant-typography-danger:active,
-a.ant-typography.ant-typography-danger:focus {
- color: #d9363e;
-}
-a.ant-typography.ant-typography-danger:hover {
- color: #ff7875;
-}
-.ant-typography.ant-typography-disabled {
- color: rgba(0, 0, 0, 0.25);
- cursor: not-allowed;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
-}
-div.ant-typography,
-.ant-typography p {
- margin-bottom: 1em;
-}
-h1.ant-typography,
-div.ant-typography-h1,
-div.ant-typography-h1 > textarea,
-.ant-typography h1 {
- margin-bottom: 0.5em;
- color: rgba(0, 0, 0, 0.85);
- font-weight: 600;
- font-size: 33px;
- line-height: 1.23;
-}
-h2.ant-typography,
-div.ant-typography-h2,
-div.ant-typography-h2 > textarea,
-.ant-typography h2 {
- margin-bottom: 0.5em;
- color: rgba(0, 0, 0, 0.85);
- font-weight: 600;
- font-size: 26px;
- line-height: 1.35;
-}
-h3.ant-typography,
-div.ant-typography-h3,
-div.ant-typography-h3 > textarea,
-.ant-typography h3 {
- margin-bottom: 0.5em;
- color: rgba(0, 0, 0, 0.85);
- font-weight: 600;
- font-size: 21px;
- line-height: 1.35;
-}
-h4.ant-typography,
-div.ant-typography-h4,
-div.ant-typography-h4 > textarea,
-.ant-typography h4 {
- margin-bottom: 0.5em;
- color: rgba(0, 0, 0, 0.85);
- font-weight: 600;
- font-size: 18px;
- line-height: 1.4;
-}
-h5.ant-typography,
-div.ant-typography-h5,
-div.ant-typography-h5 > textarea,
-.ant-typography h5 {
- margin-bottom: 0.5em;
- color: rgba(0, 0, 0, 0.85);
- font-weight: 600;
- font-size: 14px;
- line-height: 1.5;
-}
-.ant-typography + h1.ant-typography,
-.ant-typography + h2.ant-typography,
-.ant-typography + h3.ant-typography,
-.ant-typography + h4.ant-typography,
-.ant-typography + h5.ant-typography {
- margin-top: 1.2em;
-}
-.ant-typography div + h1,
-.ant-typography ul + h1,
-.ant-typography li + h1,
-.ant-typography p + h1,
-.ant-typography h1 + h1,
-.ant-typography h2 + h1,
-.ant-typography h3 + h1,
-.ant-typography h4 + h1,
-.ant-typography h5 + h1,
-.ant-typography div + h2,
-.ant-typography ul + h2,
-.ant-typography li + h2,
-.ant-typography p + h2,
-.ant-typography h1 + h2,
-.ant-typography h2 + h2,
-.ant-typography h3 + h2,
-.ant-typography h4 + h2,
-.ant-typography h5 + h2,
-.ant-typography div + h3,
-.ant-typography ul + h3,
-.ant-typography li + h3,
-.ant-typography p + h3,
-.ant-typography h1 + h3,
-.ant-typography h2 + h3,
-.ant-typography h3 + h3,
-.ant-typography h4 + h3,
-.ant-typography h5 + h3,
-.ant-typography div + h4,
-.ant-typography ul + h4,
-.ant-typography li + h4,
-.ant-typography p + h4,
-.ant-typography h1 + h4,
-.ant-typography h2 + h4,
-.ant-typography h3 + h4,
-.ant-typography h4 + h4,
-.ant-typography h5 + h4,
-.ant-typography div + h5,
-.ant-typography ul + h5,
-.ant-typography li + h5,
-.ant-typography p + h5,
-.ant-typography h1 + h5,
-.ant-typography h2 + h5,
-.ant-typography h3 + h5,
-.ant-typography h4 + h5,
-.ant-typography h5 + h5 {
- margin-top: 1.2em;
-}
-a.ant-typography-ellipsis,
-span.ant-typography-ellipsis {
- display: inline-block;
- max-width: 100%;
-}
-a.ant-typography,
-.ant-typography a {
- color: #3061D0;
- outline: none;
- cursor: pointer;
- transition: color 0.3s;
- text-decoration: none;
-}
-a.ant-typography:focus-visible,
-.ant-typography a:focus-visible,
-a.ant-typography:hover,
-.ant-typography a:hover {
- color: #5784de;
-}
-a.ant-typography:active,
-.ant-typography a:active {
- color: #1f44ab;
-}
-a.ant-typography:active,
-.ant-typography a:active,
-a.ant-typography:hover,
-.ant-typography a:hover {
- text-decoration: none;
-}
-a.ant-typography[disabled],
-.ant-typography a[disabled],
-a.ant-typography.ant-typography-disabled,
-.ant-typography a.ant-typography-disabled {
- color: rgba(0, 0, 0, 0.25);
- cursor: not-allowed;
-}
-a.ant-typography[disabled]:active,
-.ant-typography a[disabled]:active,
-a.ant-typography.ant-typography-disabled:active,
-.ant-typography a.ant-typography-disabled:active,
-a.ant-typography[disabled]:hover,
-.ant-typography a[disabled]:hover,
-a.ant-typography.ant-typography-disabled:hover,
-.ant-typography a.ant-typography-disabled:hover {
- color: rgba(0, 0, 0, 0.25);
-}
-a.ant-typography[disabled]:active,
-.ant-typography a[disabled]:active,
-a.ant-typography.ant-typography-disabled:active,
-.ant-typography a.ant-typography-disabled:active {
- pointer-events: none;
-}
-.ant-typography code {
- margin: 0 0.2em;
- padding: 0.2em 0.4em 0.1em;
- font-size: 85%;
- background: rgba(150, 150, 150, 0.1);
- border: 1px solid rgba(100, 100, 100, 0.2);
- border-radius: 3px;
-}
-.ant-typography kbd {
- margin: 0 0.2em;
- padding: 0.15em 0.4em 0.1em;
- font-size: 90%;
- background: rgba(150, 150, 150, 0.06);
- border: 1px solid rgba(100, 100, 100, 0.2);
- border-bottom-width: 2px;
- border-radius: 3px;
-}
-.ant-typography mark {
- padding: 0;
- background-color: #ffe58f;
-}
-.ant-typography u,
-.ant-typography ins {
- text-decoration: underline;
- -webkit-text-decoration-skip: ink;
- text-decoration-skip-ink: auto;
-}
-.ant-typography s,
-.ant-typography del {
- text-decoration: line-through;
-}
-.ant-typography strong {
- font-weight: 600;
-}
-.ant-typography-expand,
-.ant-typography-edit,
-.ant-typography-copy {
- color: #3061D0;
- outline: none;
- cursor: pointer;
- transition: color 0.3s;
- margin-left: 4px;
-}
-.ant-typography-expand:focus-visible,
-.ant-typography-edit:focus-visible,
-.ant-typography-copy:focus-visible,
-.ant-typography-expand:hover,
-.ant-typography-edit:hover,
-.ant-typography-copy:hover {
- color: #5784de;
-}
-.ant-typography-expand:active,
-.ant-typography-edit:active,
-.ant-typography-copy:active {
- color: #1f44ab;
-}
-.ant-typography-copy-success,
-.ant-typography-copy-success:hover,
-.ant-typography-copy-success:focus {
- color: #52c41a;
-}
-.ant-typography-edit-content {
- position: relative;
-}
-div.ant-typography-edit-content {
- left: -8px;
- margin-top: -4px;
- margin-bottom: calc(1em - 3px - 1px);
-}
-.ant-typography-edit-content-confirm {
- position: absolute;
- right: 10px;
- bottom: 8px;
- color: rgba(0, 0, 0, 0.45);
- font-weight: normal;
- font-size: 12px;
- font-style: normal;
- pointer-events: none;
-}
-.ant-typography-edit-content textarea {
- height: 1em;
- margin: 0 !important;
- /* stylelint-disable-next-line property-no-vendor-prefix */
- -moz-transition: none;
-}
-.ant-typography ul,
-.ant-typography ol {
- margin: 0 0 1em;
- padding: 0;
-}
-.ant-typography ul li,
-.ant-typography ol li {
- margin: 0 0 0 20px;
- padding: 0 0 0 4px;
-}
-.ant-typography ul {
- list-style-type: circle;
-}
-.ant-typography ul ul {
- list-style-type: disc;
-}
-.ant-typography ol {
- list-style-type: decimal;
-}
-.ant-typography pre,
-.ant-typography blockquote {
- margin: 1em 0;
-}
-.ant-typography pre {
- padding: 0.4em 0.6em;
- white-space: pre-wrap;
- word-wrap: break-word;
- background: rgba(150, 150, 150, 0.1);
- border: 1px solid rgba(100, 100, 100, 0.2);
- border-radius: 3px;
-}
-.ant-typography pre code {
- display: inline;
- margin: 0;
- padding: 0;
- font-size: inherit;
- font-family: inherit;
- background: transparent;
- border: 0;
-}
-.ant-typography blockquote {
- padding: 0 0 0 0.6em;
- border-left: 4px solid rgba(100, 100, 100, 0.2);
- opacity: 0.85;
-}
-.ant-typography-single-line {
- white-space: nowrap;
-}
-.ant-typography-ellipsis-single-line {
- overflow: hidden;
- text-overflow: ellipsis;
-}
-a.ant-typography-ellipsis-single-line,
-span.ant-typography-ellipsis-single-line {
- vertical-align: bottom;
-}
-.ant-typography-ellipsis-multiple-line {
- /* stylelint-disable-next-line value-no-vendor-prefix */
- display: -webkit-box;
- overflow: hidden;
- -webkit-line-clamp: 3;
- /*! autoprefixer: ignore next */
- -webkit-box-orient: vertical;
-}
-.ant-typography-rtl {
- direction: rtl;
-}
-.ant-typography-rtl .ant-typography-expand,
-.ant-typography-rtl .ant-typography-edit,
-.ant-typography-rtl .ant-typography-copy {
- margin-right: 4px;
- margin-left: 0;
-}
-.ant-typography-rtl .ant-typography-expand {
- float: left;
-}
-div.ant-typography-edit-content.ant-typography-rtl {
- right: -8px;
- left: auto;
-}
-.ant-typography-rtl .ant-typography-edit-content-confirm {
- right: auto;
- left: 10px;
-}
-.ant-typography-rtl.ant-typography ul li,
-.ant-typography-rtl.ant-typography ol li {
- margin: 0 20px 0 0;
- padding: 0 4px 0 0;
-}
-/* stylelint-disable no-duplicate-selectors */
-/* stylelint-disable */
-/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
-
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/PreviewAll/index.less?modules ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@@ -1135,66 +341,6 @@ div.ant-typography-edit-content.ant-typography-rtl {
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
-/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./node_modules/antd/es/statistic/style/index.less ***!
- \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
-/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
-/* stylelint-disable no-duplicate-selectors */
-/* stylelint-disable */
-/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
-.ant-statistic {
- box-sizing: border-box;
- margin: 0;
- padding: 0;
- color: rgba(0, 0, 0, 0.85);
- font-size: 12px;
- font-variant: tabular-nums;
- line-height: 1.66667;
- list-style: none;
- font-feature-settings: tnum, "tnum";
-}
-.ant-statistic-title {
- margin-bottom: 0px;
- color: rgba(0, 0, 0, 0.45);
- font-size: 12px;
-}
-.ant-statistic-skeleton {
- padding-top: 8px;
-}
-.ant-statistic-content {
- color: rgba(0, 0, 0, 0.85);
- font-size: 20px;
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
-}
-.ant-statistic-content-value {
- display: inline-block;
- direction: ltr;
-}
-.ant-statistic-content-prefix,
-.ant-statistic-content-suffix {
- display: inline-block;
-}
-.ant-statistic-content-prefix {
- margin-right: 4px;
-}
-.ant-statistic-content-suffix {
- margin-left: 4px;
-}
-.ant-statistic-rtl {
- direction: rtl;
-}
-.ant-statistic-rtl .ant-statistic-content-prefix {
- margin-right: 0;
- margin-left: 4px;
-}
-.ant-statistic-rtl .ant-statistic-content-suffix {
- margin-right: 4px;
- margin-left: 0;
-}
-/* stylelint-disable no-duplicate-selectors */
-/* stylelint-disable */
-/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
-
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Shixuns/Detail/Challenges/components/Jupyter/index.less?modules ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@@ -1251,6 +397,7 @@ div.ant-typography-edit-content.ant-typography-rtl {
background: white;
z-index: 1009;
right: 0px;
+ overflow: auto;
}
.iframeZoom___H5Nxp {
height: 100%;
@@ -1266,6 +413,25 @@ div.ant-typography-edit-content.ant-typography-rtl {
.iframeZoom___H5Nxp iframe {
height: 100%;
}
+.previewWrapper___WYNMf {
+ background-color: #fff;
+ padding: 25px;
+ overflow: auto;
+ max-height: 500px;
+}
+.fullScreen___gm0rF {
+ background-color: #fff;
+ padding: 25px;
+}
+.uploadWrapper___IIOXt {
+ display: block;
+}
+.uploadWrapper___IIOXt [class~='ant-upload'] {
+ display: block;
+}
+.uploadWrapper___IIOXt span {
+ display: block;
+}
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
diff --git a/p__Shixuns__Detail__Repository__AddFile__index.async.js b/p__Shixuns__Detail__Repository__AddFile__index.async.js
index 5c77ef624e..c51baef6a7 100644
--- a/p__Shixuns__Detail__Repository__AddFile__index.async.js
+++ b/p__Shixuns__Detail__Repository__AddFile__index.async.js
@@ -48,6 +48,8 @@ var FixedButton = function FixedButton(_ref) {
loading = _ref$loading === void 0 ? false : _ref$loading,
_ref$hasOkBtn = _ref.hasOkBtn,
hasOkBtn = _ref$hasOkBtn === void 0 ? true : _ref$hasOkBtn,
+ _ref$hasCancelBtn = _ref.hasCancelBtn,
+ hasCancelBtn = _ref$hasCancelBtn === void 0 ? true : _ref$hasCancelBtn,
_ref$okButtonProps = _ref.okButtonProps,
okButtonProps = _ref$okButtonProps === void 0 ? {} : _ref$okButtonProps,
_ref$onCancel = _ref.onCancel,
@@ -60,7 +62,7 @@ var FixedButton = function FixedButton(_ref) {
className: classnames_default()(FixedButtonmodules.buttonFixed, className),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: FixedButtonmodules.buttonWrap,
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
+ children: [hasCancelBtn && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
size: "large",
className: "".concat(FixedButtonmodules.button, " mr20")
// 点击取消的返回
diff --git a/p__Shixuns__Detail__Repository__UploadFile__index.async.js b/p__Shixuns__Detail__Repository__UploadFile__index.async.js
index 96ba61b2d1..c6022beb9a 100644
--- a/p__Shixuns__Detail__Repository__UploadFile__index.async.js
+++ b/p__Shixuns__Detail__Repository__UploadFile__index.async.js
@@ -12,19 +12,6 @@ var CheckOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 8
/* harmony default export */ __webpack_exports__["Z"] = (CheckOutlined);
-/***/ }),
-
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
-
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
-
-
/***/ }),
/***/ 36845:
@@ -74,6 +61,8 @@ var FixedButton = function FixedButton(_ref) {
loading = _ref$loading === void 0 ? false : _ref$loading,
_ref$hasOkBtn = _ref.hasOkBtn,
hasOkBtn = _ref$hasOkBtn === void 0 ? true : _ref$hasOkBtn,
+ _ref$hasCancelBtn = _ref.hasCancelBtn,
+ hasCancelBtn = _ref$hasCancelBtn === void 0 ? true : _ref$hasCancelBtn,
_ref$okButtonProps = _ref.okButtonProps,
okButtonProps = _ref$okButtonProps === void 0 ? {} : _ref$okButtonProps,
_ref$onCancel = _ref.onCancel,
@@ -86,7 +75,7 @@ var FixedButton = function FixedButton(_ref) {
className: classnames_default()(FixedButtonmodules.buttonFixed, className),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: FixedButtonmodules.buttonWrap,
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
+ children: [hasCancelBtn && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
size: "large",
className: "".concat(FixedButtonmodules.button, " mr20")
// 点击取消的返回
@@ -1731,33 +1720,6 @@ EyeOutlined_EyeOutlined.displayName = 'EyeOutlined';
/***/ }),
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
-/***/ }),
-
/***/ 43159:
/*!**************************************************!*\
!*** ./node_modules/rc-tooltip/es/placements.js ***!
diff --git a/p__Shixuns__Detail__Repository__index.async.js b/p__Shixuns__Detail__Repository__index.async.js
index 38c663c3eb..76392bf6ba 100644
--- a/p__Shixuns__Detail__Repository__index.async.js
+++ b/p__Shixuns__Detail__Repository__index.async.js
@@ -48,6 +48,8 @@ var FixedButton = function FixedButton(_ref) {
loading = _ref$loading === void 0 ? false : _ref$loading,
_ref$hasOkBtn = _ref.hasOkBtn,
hasOkBtn = _ref$hasOkBtn === void 0 ? true : _ref$hasOkBtn,
+ _ref$hasCancelBtn = _ref.hasCancelBtn,
+ hasCancelBtn = _ref$hasCancelBtn === void 0 ? true : _ref$hasCancelBtn,
_ref$okButtonProps = _ref.okButtonProps,
okButtonProps = _ref$okButtonProps === void 0 ? {} : _ref$okButtonProps,
_ref$onCancel = _ref.onCancel,
@@ -60,7 +62,7 @@ var FixedButton = function FixedButton(_ref) {
className: classnames_default()(FixedButtonmodules.buttonFixed, className),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: FixedButtonmodules.buttonWrap,
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
+ children: [hasCancelBtn && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
size: "large",
className: "".concat(FixedButtonmodules.button, " mr20")
// 点击取消的返回
diff --git a/p__Shixuns__Detail__Settings__index.async.js b/p__Shixuns__Detail__Settings__index.async.js
index 59c9ed1ec0..7d32d15d90 100644
--- a/p__Shixuns__Detail__Settings__index.async.js
+++ b/p__Shixuns__Detail__Settings__index.async.js
@@ -48,6 +48,8 @@ var FixedButton = function FixedButton(_ref) {
loading = _ref$loading === void 0 ? false : _ref$loading,
_ref$hasOkBtn = _ref.hasOkBtn,
hasOkBtn = _ref$hasOkBtn === void 0 ? true : _ref$hasOkBtn,
+ _ref$hasCancelBtn = _ref.hasCancelBtn,
+ hasCancelBtn = _ref$hasCancelBtn === void 0 ? true : _ref$hasCancelBtn,
_ref$okButtonProps = _ref.okButtonProps,
okButtonProps = _ref$okButtonProps === void 0 ? {} : _ref$okButtonProps,
_ref$onCancel = _ref.onCancel,
@@ -60,7 +62,7 @@ var FixedButton = function FixedButton(_ref) {
className: classnames_default()(FixedButtonmodules.buttonFixed, className),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: FixedButtonmodules.buttonWrap,
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
+ children: [hasCancelBtn && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
size: "large",
className: "".concat(FixedButtonmodules.button, " mr20")
// 点击取消的返回
@@ -1580,7 +1582,7 @@ var TestCase = function TestCase(_ref) {
}, [active]);
var getData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
- var testSetData, res, _res$data, _res$data2, _res$data3, _res$data4, _res$data5, _res$data6, _res$data7, _res$data8, _res$data9, _res$data10, _res$data10$test_sets, _res$data11, initData;
+ var testSetData, res, _res$data, _res$data2, _res$data3, _res$data4, _res$data5, _res$data6, _res$data7, _res$data8, _res$data9, _res$data10, _res$data11, _res$data11$test_sets, _res$data12, initData;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
@@ -1604,11 +1606,12 @@ var TestCase = function TestCase(_ref) {
test_set_score: (res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.test_set_score) === null ? false : res === null || res === void 0 ? void 0 : (_res$data5 = res.data) === null || _res$data5 === void 0 ? void 0 : _res$data5.test_set_score,
test_set_average: (res === null || res === void 0 ? void 0 : (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.test_set_average) === null ? true : res === null || res === void 0 ? void 0 : (_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : _res$data7.test_set_average,
choice_standard_scripts: (res === null || res === void 0 ? void 0 : (_res$data8 = res.data) === null || _res$data8 === void 0 ? void 0 : _res$data8.choice_standard_scripts) || null,
- evaluate_script: (res === null || res === void 0 ? void 0 : (_res$data9 = res.data) === null || _res$data9 === void 0 ? void 0 : _res$data9.evaluate_script) || ''
+ evaluate_script: (res === null || res === void 0 ? void 0 : (_res$data9 = res.data) === null || _res$data9 === void 0 ? void 0 : _res$data9.evaluate_script) || '',
+ evaluate_method: res === null || res === void 0 ? void 0 : (_res$data10 = res.data) === null || _res$data10 === void 0 ? void 0 : _res$data10.evaluate_method
};
form.setFieldsValue(initData);
setFormValue(initData);
- setTestSetList(res !== null && res !== void 0 && (_res$data10 = res.data) !== null && _res$data10 !== void 0 && (_res$data10$test_sets = _res$data10.test_sets) !== null && _res$data10$test_sets !== void 0 && _res$data10$test_sets.length ? res === null || res === void 0 ? void 0 : (_res$data11 = res.data) === null || _res$data11 === void 0 ? void 0 : _res$data11.test_sets : testSetData);
+ setTestSetList(res !== null && res !== void 0 && (_res$data11 = res.data) !== null && _res$data11 !== void 0 && (_res$data11$test_sets = _res$data11.test_sets) !== null && _res$data11$test_sets !== void 0 && _res$data11$test_sets.length ? res === null || res === void 0 ? void 0 : (_res$data12 = res.data) === null || _res$data12 === void 0 ? void 0 : _res$data12.test_sets : testSetData);
}
case 5:
case "end":
@@ -2051,6 +2054,35 @@ var TestCase = function TestCase(_ref) {
}, key);
})
})
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
+ label: "\u8BC4\u6D4B\u65B9\u5F0F",
+ name: "evaluate_method",
+ style: {
+ flexDirection: 'row',
+ marginTop: 15
+ },
+ rules: [{
+ required: true,
+ message: '请选择评测方式'
+ }],
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default.Group */.ZP.Group, {
+ children: /*#__PURE__*/(0,jsx_runtime.jsxs)(space/* default */.Z, {
+ direction: "vertical",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default */.ZP, {
+ value: 1,
+ children: ["\u6240\u6709\u4EE3\u7801\u5757\u8BC4\u6D4B", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "c-grey-999",
+ children: " \uFF08\u5BF9\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\u7684\u6240\u6709\u975E\u7A7A\u4EE3\u7801\u5757\u8FDB\u884C\u8BC4\u6D4B\uFF09"
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default */.ZP, {
+ value: 2,
+ children: ["\u672B\u5C3E\u4EE3\u7801\u5757\u8BC4\u6D4B", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "c-grey-999",
+ children: " \uFF08\u5BF9\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\u7684\u6700\u540E\u4E00\u4E2A\u975E\u7A7A\u4EE3\u7801\u5757\u8FDB\u884C\u8BC4\u6D4B\uFF09"
+ })]
+ })]
+ })
+ })
}), /*#__PURE__*/(0,jsx_runtime.jsx)("h4", {
className: "font14 mt20 mb10",
children: "\u8BC4\u6D4B\u811A\u672C"
diff --git a/p__Shixuns__Detail__id.async.js b/p__Shixuns__Detail__id.async.js
index fa91b3ea46..8613d704dc 100644
--- a/p__Shixuns__Detail__id.async.js
+++ b/p__Shixuns__Detail__id.async.js
@@ -2606,17 +2606,11 @@ var Detection = function Detection(_ref) {
var params = (0,_umi_production_exports.useParams)();
var setInt = (0,react.useRef)(); //定时器
var getShixunDectects = /*#__PURE__*/function () {
- var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
- var value,
- data,
- res,
- _res$data,
- _res$data2,
- _args2 = arguments;
+ var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(value) {
+ var data, res, _res$data, _res$data2;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
- value = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : "Get";
data = {
method: value.method
};
@@ -2625,9 +2619,9 @@ var Detection = function Detection(_ref) {
} else {
data["body"] = value.data;
}
- _context2.next = 5;
+ _context2.next = 4;
return (0,fetch/* default */.ZP)("/api/shixuns/".concat(params.id, "/shixun_dectects.json"), data);
- case 5:
+ case 4:
res = _context2.sent;
setMenuType(res === null || res === void 0 ? void 0 : res.status);
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
@@ -2648,21 +2642,24 @@ var Detection = function Detection(_ref) {
return _context.stop();
}
}, _callee);
- })), 3 * 1000);
+ })), 5 * 1000);
}
- } else clearInterval(setInt.current);
+ } else {
+ clearInterval(setInt.current);
+ setInt.current = null;
+ }
if ((res === null || res === void 0 ? void 0 : res.status) != 0) {
setDetails(res);
setStrongDetails(((_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.strong_details) || []);
setNormalDetails(((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.normal_details) || []);
}
- case 9:
+ case 8:
case "end":
return _context2.stop();
}
}, _callee2);
}));
- return function getShixunDectects() {
+ return function getShixunDectects(_x) {
return _ref2.apply(this, arguments);
};
}();
diff --git a/p__Shixuns__Edit__body__Level__Challenges__EditPracticeAnswer__index.async.js b/p__Shixuns__Edit__body__Level__Challenges__EditPracticeAnswer__index.async.js
index 0ba270a06e..5426c9430e 100644
--- a/p__Shixuns__Edit__body__Level__Challenges__EditPracticeAnswer__index.async.js
+++ b/p__Shixuns__Edit__body__Level__Challenges__EditPracticeAnswer__index.async.js
@@ -48,6 +48,8 @@ var FixedButton = function FixedButton(_ref) {
loading = _ref$loading === void 0 ? false : _ref$loading,
_ref$hasOkBtn = _ref.hasOkBtn,
hasOkBtn = _ref$hasOkBtn === void 0 ? true : _ref$hasOkBtn,
+ _ref$hasCancelBtn = _ref.hasCancelBtn,
+ hasCancelBtn = _ref$hasCancelBtn === void 0 ? true : _ref$hasCancelBtn,
_ref$okButtonProps = _ref.okButtonProps,
okButtonProps = _ref$okButtonProps === void 0 ? {} : _ref$okButtonProps,
_ref$onCancel = _ref.onCancel,
@@ -60,7 +62,7 @@ var FixedButton = function FixedButton(_ref) {
className: classnames_default()(FixedButtonmodules.buttonFixed, className),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: FixedButtonmodules.buttonWrap,
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
+ children: [hasCancelBtn && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
size: "large",
className: "".concat(FixedButtonmodules.button, " mr20")
// 点击取消的返回
diff --git a/p__Shixuns__Edit__body__Level__Challenges__EditPracticeSetting__index.async.js b/p__Shixuns__Edit__body__Level__Challenges__EditPracticeSetting__index.async.js
index dffbca4405..56515437b9 100644
--- a/p__Shixuns__Edit__body__Level__Challenges__EditPracticeSetting__index.async.js
+++ b/p__Shixuns__Edit__body__Level__Challenges__EditPracticeSetting__index.async.js
@@ -48,6 +48,8 @@ var FixedButton = function FixedButton(_ref) {
loading = _ref$loading === void 0 ? false : _ref$loading,
_ref$hasOkBtn = _ref.hasOkBtn,
hasOkBtn = _ref$hasOkBtn === void 0 ? true : _ref$hasOkBtn,
+ _ref$hasCancelBtn = _ref.hasCancelBtn,
+ hasCancelBtn = _ref$hasCancelBtn === void 0 ? true : _ref$hasCancelBtn,
_ref$okButtonProps = _ref.okButtonProps,
okButtonProps = _ref$okButtonProps === void 0 ? {} : _ref$okButtonProps,
_ref$onCancel = _ref.onCancel,
@@ -60,7 +62,7 @@ var FixedButton = function FixedButton(_ref) {
className: classnames_default()(FixedButtonmodules.buttonFixed, className),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: FixedButtonmodules.buttonWrap,
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
+ children: [hasCancelBtn && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
size: "large",
className: "".concat(FixedButtonmodules.button, " mr20")
// 点击取消的返回
diff --git a/p__Shixuns__Edit__body__Level__Challenges__EditQuestion__index.async.js b/p__Shixuns__Edit__body__Level__Challenges__EditQuestion__index.async.js
index bec3d89b7f..1cb3add2e3 100644
--- a/p__Shixuns__Edit__body__Level__Challenges__EditQuestion__index.async.js
+++ b/p__Shixuns__Edit__body__Level__Challenges__EditQuestion__index.async.js
@@ -354,6 +354,8 @@ var FixedButton = function FixedButton(_ref) {
loading = _ref$loading === void 0 ? false : _ref$loading,
_ref$hasOkBtn = _ref.hasOkBtn,
hasOkBtn = _ref$hasOkBtn === void 0 ? true : _ref$hasOkBtn,
+ _ref$hasCancelBtn = _ref.hasCancelBtn,
+ hasCancelBtn = _ref$hasCancelBtn === void 0 ? true : _ref$hasCancelBtn,
_ref$okButtonProps = _ref.okButtonProps,
okButtonProps = _ref$okButtonProps === void 0 ? {} : _ref$okButtonProps,
_ref$onCancel = _ref.onCancel,
@@ -366,7 +368,7 @@ var FixedButton = function FixedButton(_ref) {
className: classnames_default()(FixedButtonmodules.buttonFixed, className),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: FixedButtonmodules.buttonWrap,
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
+ children: [hasCancelBtn && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
size: "large",
className: "".concat(FixedButtonmodules.button, " mr20")
// 点击取消的返回
diff --git a/p__Shixuns__Edit__body__Level__Challenges__NewPractice__index.async.js b/p__Shixuns__Edit__body__Level__Challenges__NewPractice__index.async.js
index 8e979c392b..8022b181ac 100644
--- a/p__Shixuns__Edit__body__Level__Challenges__NewPractice__index.async.js
+++ b/p__Shixuns__Edit__body__Level__Challenges__NewPractice__index.async.js
@@ -48,6 +48,8 @@ var FixedButton = function FixedButton(_ref) {
loading = _ref$loading === void 0 ? false : _ref$loading,
_ref$hasOkBtn = _ref.hasOkBtn,
hasOkBtn = _ref$hasOkBtn === void 0 ? true : _ref$hasOkBtn,
+ _ref$hasCancelBtn = _ref.hasCancelBtn,
+ hasCancelBtn = _ref$hasCancelBtn === void 0 ? true : _ref$hasCancelBtn,
_ref$okButtonProps = _ref.okButtonProps,
okButtonProps = _ref$okButtonProps === void 0 ? {} : _ref$okButtonProps,
_ref$onCancel = _ref.onCancel,
@@ -60,7 +62,7 @@ var FixedButton = function FixedButton(_ref) {
className: classnames_default()(FixedButtonmodules.buttonFixed, className),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: FixedButtonmodules.buttonWrap,
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
+ children: [hasCancelBtn && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
size: "large",
className: "".concat(FixedButtonmodules.button, " mr20")
// 点击取消的返回
diff --git a/p__Shixuns__Edit__body__Level__Challenges__NewQuestion__index.async.js b/p__Shixuns__Edit__body__Level__Challenges__NewQuestion__index.async.js
index e74e6f3470..36c30683bf 100644
--- a/p__Shixuns__Edit__body__Level__Challenges__NewQuestion__index.async.js
+++ b/p__Shixuns__Edit__body__Level__Challenges__NewQuestion__index.async.js
@@ -48,6 +48,8 @@ var FixedButton = function FixedButton(_ref) {
loading = _ref$loading === void 0 ? false : _ref$loading,
_ref$hasOkBtn = _ref.hasOkBtn,
hasOkBtn = _ref$hasOkBtn === void 0 ? true : _ref$hasOkBtn,
+ _ref$hasCancelBtn = _ref.hasCancelBtn,
+ hasCancelBtn = _ref$hasCancelBtn === void 0 ? true : _ref$hasCancelBtn,
_ref$okButtonProps = _ref.okButtonProps,
okButtonProps = _ref$okButtonProps === void 0 ? {} : _ref$okButtonProps,
_ref$onCancel = _ref.onCancel,
@@ -60,7 +62,7 @@ var FixedButton = function FixedButton(_ref) {
className: classnames_default()(FixedButtonmodules.buttonFixed, className),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: FixedButtonmodules.buttonWrap,
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
+ children: [hasCancelBtn && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
size: "large",
className: "".concat(FixedButtonmodules.button, " mr20")
// 点击取消的返回
diff --git a/p__Shixuns__Edit__body__Level__Challenges__RankingSetting__index.async.js b/p__Shixuns__Edit__body__Level__Challenges__RankingSetting__index.async.js
index 14933e12b9..bc61e85295 100644
--- a/p__Shixuns__Edit__body__Level__Challenges__RankingSetting__index.async.js
+++ b/p__Shixuns__Edit__body__Level__Challenges__RankingSetting__index.async.js
@@ -48,6 +48,8 @@ var FixedButton = function FixedButton(_ref) {
loading = _ref$loading === void 0 ? false : _ref$loading,
_ref$hasOkBtn = _ref.hasOkBtn,
hasOkBtn = _ref$hasOkBtn === void 0 ? true : _ref$hasOkBtn,
+ _ref$hasCancelBtn = _ref.hasCancelBtn,
+ hasCancelBtn = _ref$hasCancelBtn === void 0 ? true : _ref$hasCancelBtn,
_ref$okButtonProps = _ref.okButtonProps,
okButtonProps = _ref$okButtonProps === void 0 ? {} : _ref$okButtonProps,
_ref$onCancel = _ref.onCancel,
@@ -60,7 +62,7 @@ var FixedButton = function FixedButton(_ref) {
className: classnames_default()(FixedButtonmodules.buttonFixed, className),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: FixedButtonmodules.buttonWrap,
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
+ children: [hasCancelBtn && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
size: "large",
className: "".concat(FixedButtonmodules.button, " mr20")
// 点击取消的返回
diff --git a/p__Shixuns__Edit__index.async.js b/p__Shixuns__Edit__index.async.js
index 8668685973..8b2d037ac9 100644
--- a/p__Shixuns__Edit__index.async.js
+++ b/p__Shixuns__Edit__index.async.js
@@ -135,6 +135,8 @@ var FixedButton = function FixedButton(_ref) {
loading = _ref$loading === void 0 ? false : _ref$loading,
_ref$hasOkBtn = _ref.hasOkBtn,
hasOkBtn = _ref$hasOkBtn === void 0 ? true : _ref$hasOkBtn,
+ _ref$hasCancelBtn = _ref.hasCancelBtn,
+ hasCancelBtn = _ref$hasCancelBtn === void 0 ? true : _ref$hasCancelBtn,
_ref$okButtonProps = _ref.okButtonProps,
okButtonProps = _ref$okButtonProps === void 0 ? {} : _ref$okButtonProps,
_ref$onCancel = _ref.onCancel,
@@ -147,7 +149,7 @@ var FixedButton = function FixedButton(_ref) {
className: classnames_default()(FixedButtonmodules.buttonFixed, className),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: FixedButtonmodules.buttonWrap,
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
+ children: [hasCancelBtn && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
size: "large",
className: "".concat(FixedButtonmodules.button, " mr20")
// 点击取消的返回
@@ -464,7 +466,8 @@ function _unescape(str) {
_ref$style = _ref.style,
style = _ref$style === void 0 ? {} : _ref$style,
_ref$stylesPrev = _ref.stylesPrev,
- stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev;
+ stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev,
+ highlightKeywords = _ref.highlightKeywords;
var str = String(value);
var _useState = (0,react.useState)(""),
_useState2 = slicedToArray_default()(_useState, 2),
@@ -514,16 +517,53 @@ function _unescape(str) {
resetMathExpressions();
// return dompurify.sanitize(rs)
var dom = document.createElement('div');
+ dom.innerHTML = rs;
+ if (highlightKeywords) {
+ var escapedKeywords = highlightKeywords.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
+ findKeyword(dom, escapedKeywords);
+ return dom.innerHTML;
+ }
if (showTextOnly) {
- dom.innerHTML = rs;
return dom.innerText;
}
- dom.innerHTML = rs;
setTimeout(function () {
return onLoad();
}, 500);
return dom.innerHTML;
- }, [str]);
+ }, [str, highlightKeywords]);
+ function findKeyword(node, keyword) {
+ return node.childNodes.forEach(function (childNode) {
+ if (childNode.childNodes.length > 0) {
+ findKeyword(childNode, keyword);
+ } else if (childNode.nodeName !== "IMG") {
+ if (childNode.innerHTML) {
+ var _childNode$innerHTML;
+ childNode.innerHTML = (_childNode$innerHTML = childNode.innerHTML) === null || _childNode$innerHTML === void 0 ? void 0 : _childNode$innerHTML.replace(new RegExp(keyword, "gi"), '$&');
+ } else {
+ var dom = document.createElement("span");
+ dom.innerHTML = childNode.textContent.replace(new RegExp(keyword, "gi"), '$&');
+ childNode.replaceWith(dom);
+ }
+ }
+ });
+
+ // return dom.childNodes.forEach((node:any) => {
+ // console.log("nodeLen:",node.childNodes.length)
+ // if(node.childNodes.length > 0){
+ // debugger
+ // // findKeyword(dom.childNodes,keyword)
+ // }else{
+ // if(node.nodeName !== "#text"){
+ // node.innerHTML = node.innerHTML.replaceAll(keyword,`${keyword}`)
+ // console.log("node:",node,dom,node.nodeName,node.innerHTML,node.childNodes.length)
+ // debugger
+ // }
+ // }
+
+ // return node
+ // });
+ }
+
var el = (0,react.useRef)();
lines.WebkitLineClamp = showLines;
if (showLines) {
@@ -700,6 +740,8 @@ var SelectEnvironment = function SelectEnvironment(_ref) {
tags = _ref$tags === void 0 ? [] : _ref$tags,
_ref$onChange = _ref.onChange,
onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange,
+ _ref$onSearchWord = _ref.onSearchWord,
+ onSearchWord = _ref$onSearchWord === void 0 ? function () {} : _ref$onSearchWord,
shixun_type = _ref.shixun_type;
var _useState = (0,react.useState)(''),
_useState2 = slicedToArray_default()(_useState, 2),
@@ -888,16 +930,15 @@ var SelectEnvironment = function SelectEnvironment(_ref) {
};
var onSearch = function onSearch(searchText) {
optionsInit(searchText, 0);
- setInputValue(searchText);
};
var handlePressEnter = function handlePressEnter(v) {
- var _options$listActiveIn, _options$listActiveIn2;
+ var _options$listActiveIn;
if (!options.length) return;
var realId = options === null || options === void 0 ? void 0 : (_options$listActiveIn = options[listActiveIndex]) === null || _options$listActiveIn === void 0 ? void 0 : _options$listActiveIn.id;
onChange(realId);
setOptions([]);
setListActiveIndex(0);
- setInputValue(options === null || options === void 0 ? void 0 : (_options$listActiveIn2 = options[listActiveIndex]) === null || _options$listActiveIn2 === void 0 ? void 0 : _options$listActiveIn2.name);
+ // setInputValue(options?.[listActiveIndex]?.name)
scrollFuc(realId);
inputRef.current.blur();
};
@@ -905,18 +946,20 @@ var SelectEnvironment = function SelectEnvironment(_ref) {
onChange(id);
setOptions([]);
setListActiveIndex(0);
- setInputValue(option === null || option === void 0 ? void 0 : option.name);
+ // setInputValue(option?.name)
scrollFuc(id);
};
var clear = function clear() {
setOptions([]);
setInputValue("");
+ onSearchWord('');
};
var activeClear = function activeClear(id) {
onChange(id);
setOptions([]);
- setInputValue('');
+ // setInputValue('')
};
+
var renderIcon = function renderIcon() {
if (inputValue === '') {
return /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
@@ -976,12 +1019,18 @@ var SelectEnvironment = function SelectEnvironment(_ref) {
size: "large",
onFocus: function onFocus() {
clearTimeout(timer.current);
- onSearch(inputValue);
+ if (inputValue) {
+ onSearch(inputValue);
+ }
setVisible(true);
},
onBlur: onBlur,
onChange: function onChange(e) {
- return onSearch(e.target.value);
+ setInputValue(e.target.value);
+ if (e.target.value) {
+ onSearch(e.target.value);
+ }
+ onSearchWord(e.target.value);
},
placeholder: "\u641C\u7D22\u60A8\u9700\u8981\u7684\u5B9E\u9A8C\u73AF\u5883",
onPressEnter: handlePressEnter
@@ -6471,9 +6520,9 @@ function Setting(_ref) {
/***/ }),
-/***/ 66518:
+/***/ 71375:
/*!*******************************************************!*\
- !*** ./src/pages/Shixuns/Edit/index.tsx + 43 modules ***!
+ !*** ./src/pages/Shixuns/Edit/index.tsx + 44 modules ***!
\*******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@@ -9113,7 +9162,7 @@ var CreateEnvironment = __webpack_require__(88654);
var MirrorModal = function MirrorModal(_ref) {
- var _newShixuns$actionTab;
+ var _newShixuns$actionTab, _ref3;
var newShixuns = _ref.newShixuns,
user = _ref.user,
dispatch = _ref.dispatch,
@@ -9132,6 +9181,10 @@ var MirrorModal = function MirrorModal(_ref) {
_useState4 = slicedToArray_default()(_useState3, 2),
detail = _useState4[0],
setDetail = _useState4[1];
+ var _useState5 = (0,react.useState)(""),
+ _useState6 = slicedToArray_default()(_useState5, 2),
+ keyword = _useState6[0],
+ setKeyword = _useState6[1];
var environmentData = newShixuns.environmentData;
var _environmentData$freq = environmentData.frequence_image,
frequence_image = _environmentData$freq === void 0 ? [] : _environmentData$freq,
@@ -9148,6 +9201,7 @@ var MirrorModal = function MirrorModal(_ref) {
}, []);
(0,react.useEffect)(function () {
if (visible) {
+ setKeyword("");
setActiveId(useId);
}
}, [visible, useId]);
@@ -9211,13 +9265,20 @@ var MirrorModal = function MirrorModal(_ref) {
tags: frequence_image,
onChange: function onChange(id) {
return setActiveId(id);
+ },
+ onSearchWord: function onSearchWord(value) {
+ return setKeyword(value);
}
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: MirrorModalmodules.right,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("header", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: MirrorModalmodules.title,
- children: ["\u5B9E\u9A8C\u73AF\u5883:\xA0", activeId === null ? '— —' : name]
+ children: ["\u5B9E\u9A8C\u73AF\u5883:\xA0", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ dangerouslySetInnerHTML: {
+ __html: activeId === null ? '— —' : (_ref3 = name || "") === null || _ref3 === void 0 ? void 0 : _ref3.replace(new RegExp(keyword === null || keyword === void 0 ? void 0 : keyword.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "gi"), '$&')
+ }
+ })]
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: MirrorModalmodules.content,
@@ -9227,7 +9288,8 @@ var MirrorModal = function MirrorModal(_ref) {
}), activeId !== null && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: MirrorModalmodules.des,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
- value: description
+ value: description,
+ highlightKeywords: keyword
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: MirrorModalmodules.btns,
@@ -9250,10 +9312,10 @@ var MirrorModal = function MirrorModal(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ApplyModal/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(CreateEnvironment/* default */.Z, {})]
});
};
-/* harmony default export */ var Environment_MirrorModal = ((0,_umi_production_exports.connect)(function (_ref3) {
- var newShixuns = _ref3.newShixuns,
- globalSetting = _ref3.globalSetting,
- user = _ref3.user;
+/* harmony default export */ var Environment_MirrorModal = ((0,_umi_production_exports.connect)(function (_ref4) {
+ var newShixuns = _ref4.newShixuns,
+ globalSetting = _ref4.globalSetting,
+ user = _ref4.user;
return {
newShixuns: newShixuns,
globalSetting: globalSetting,
@@ -10020,7 +10082,7 @@ var resetmodules = __webpack_require__(39132);
var Option = es_select/* default.Option */.Z.Option;
var MAX_COUNT = 3;
var Environment = function Environment(_ref) {
- var _cloudList$find, _mirror_repository$ch, _mirror_repository$sh2, _mirror_repository$sh3, _mirror_repository$sh4, _mirror_repository$sh5;
+ var _cloudList$find, _mirror_repository$ch, _mirror_repository$sh2, _mirror_repository$sh3, _mirror_repository$sh4, _mirror_repository$sh5, _data$mirror_reposito2;
var practiceSetting = _ref.practiceSetting,
dispatch = _ref.dispatch,
shixunsDetail = _ref.shixunsDetail,
@@ -10904,7 +10966,7 @@ var Environment = function Environment(_ref) {
var handleConfirm = /*#__PURE__*/function () {
var _ref8 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee10() {
var _tabs$find;
- var _shixun_environment$p, _shixun_environment$p2, _mirror_repository$sh, name, res;
+ var _shixun_environment$p, _shixun_environment$p2, _mirror_repository$sh, regex, name, res;
return regeneratorRuntime_default()().wrap(function _callee10$(_context10) {
while (1) switch (_context10.prev = _context10.next) {
case 0:
@@ -10915,7 +10977,7 @@ var Environment = function Environment(_ref) {
return _context10.abrupt("return");
case 2:
if (!((shixun_environment === null || shixun_environment === void 0 ? void 0 : shixun_environment.resource_type) === 1)) {
- _context10.next = 26;
+ _context10.next = 31;
break;
}
if (mirror_repository !== null && mirror_repository !== void 0 && mirror_repository.id) {
@@ -10969,43 +11031,55 @@ var Environment = function Environment(_ref) {
setError('envs');
return _context10.abrupt("return");
case 26:
+ if (!(shixun_environment !== null && shixun_environment !== void 0 && shixun_environment.webssh_host)) {
+ _context10.next = 31;
+ break;
+ }
+ regex = /^[a-z0-9\-]*$/;
+ if (regex.test(shixun_environment === null || shixun_environment === void 0 ? void 0 : shixun_environment.webssh_host)) {
+ _context10.next = 31;
+ break;
+ }
+ message/* default.warning */.ZP.warning('主机名只能输入数字、小写字母、连字符');
+ return _context10.abrupt("return");
+ case 31:
if (!((shixun_environment === null || shixun_environment === void 0 ? void 0 : shixun_environment.resource_type) === 2)) {
- _context10.next = 39;
+ _context10.next = 44;
break;
}
if (shixun_environment !== null && shixun_environment !== void 0 && shixun_environment.operating_system) {
- _context10.next = 30;
+ _context10.next = 35;
break;
}
setError('system');
return _context10.abrupt("return");
- case 30:
+ case 35:
if (shixun_environment !== null && shixun_environment !== void 0 && shixun_environment.instance_startup_template_id) {
- _context10.next = 33;
+ _context10.next = 38;
break;
}
setError('template');
return _context10.abrupt("return");
- case 33:
+ case 38:
if (!(!(shixun_environment !== null && shixun_environment !== void 0 && shixun_environment.private_is_support_vnc) && !(shixun_environment !== null && shixun_environment !== void 0 && shixun_environment.private_is_support_webssh))) {
- _context10.next = 36;
+ _context10.next = 41;
break;
}
setError('interface');
return _context10.abrupt("return");
- case 36:
+ case 41:
if (!((shixun_environment === null || shixun_environment === void 0 ? void 0 : shixun_environment.operating_system) === 1 && shixun_environment !== null && shixun_environment !== void 0 && shixun_environment.private_is_support_vnc && isAliCloud && !(shixun_environment !== null && shixun_environment !== void 0 && shixun_environment.instance_startup_type))) {
- _context10.next = 39;
+ _context10.next = 44;
break;
}
setError('instance_startup_type');
return _context10.abrupt("return");
- case 39:
+ case 44:
setBtnLoading(true);
name = (_tabs$find = tabs.find(function (e) {
return e.id === tabsActive;
})) === null || _tabs$find === void 0 ? void 0 : _tabs$find.name;
- _context10.next = 43;
+ _context10.next = 48;
return (0,fetch/* default */.ZP)("/api/shixuns/".concat(id, "/update_for_multi.json"), {
method: 'put',
body: {
@@ -11020,7 +11094,7 @@ var Environment = function Environment(_ref) {
new_service_configs: new_service_configs
}
});
- case 43:
+ case 48:
res = _context10.sent;
if (res.status === 0) {
getData(res.shixun_environment_id);
@@ -11029,7 +11103,7 @@ var Environment = function Environment(_ref) {
message/* default.success */.ZP.success('保存成功');
}
setBtnLoading(false);
- case 46:
+ case 51:
case "end":
return _context10.stop();
}
@@ -11630,13 +11704,66 @@ var Environment = function Environment(_ref) {
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(Environment_Label, {
- name: "\u542F\u52A8\u547D\u4EE4",
+ name: "\u542F\u52A8\u8BBE\u7F6E",
align: "start",
required: shixun_environment === null || shixun_environment === void 0 ? void 0 : shixun_environment.open_start_command,
errorKey: "start_command",
errorValue: error,
errorName: "\u8BF7\u8F93\u5165\u542F\u52A8\u547D\u4EE4",
- children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(es_checkbox/* default */.Z, {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ className: "font14 mb5",
+ children: ["\u7528\u6237\u540D", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "c-grey-999",
+ children: "\uFF08\u767B\u5F55\u5BB9\u5668\u65F6\u53EF\u4F7F\u7528\u7684\u7528\u6237\u540D\uFF09"
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select/* default */.Z, {
+ getPopupContainer: function getPopupContainer(trigger) {
+ return trigger.parentNode;
+ },
+ onClick: verifyModal,
+ bordered: false,
+ fieldNames: {
+ label: 'name',
+ value: 'id'
+ },
+ options: data === null || data === void 0 ? void 0 : (_data$mirror_reposito2 = data.mirror_repository) === null || _data$mirror_reposito2 === void 0 ? void 0 : _data$mirror_reposito2.webssh_user_arr,
+ value: (shixun_environment === null || shixun_environment === void 0 ? void 0 : shixun_environment.webssh_user) || 'root',
+ onChange: function onChange(v) {
+ return handleValueChange('shixun_environment', 'webssh_user', v);
+ },
+ style: {
+ minWidth: 400,
+ backgroundColor: '#f5f5f5',
+ height: 50,
+ borderRadius: 4,
+ paddingTop: 10,
+ marginBottom: 20
+ }
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ className: "font14 mb5",
+ children: ["\u4E3B\u673A\u540D", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "c-grey-999",
+ children: "\uFF08\u767B\u5F55\u5BB9\u5668\u65F6\u53EF\u6307\u5B9A\u4E3B\u673A\u540D\uFF09"
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
+ className: "mb20",
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
+ bordered: false,
+ onClick: verifyModal,
+ value: shixun_environment === null || shixun_environment === void 0 ? void 0 : shixun_environment.webssh_host,
+ maxLength: 255,
+ onChange: function onChange(e) {
+ handleValueChange('shixun_environment', 'webssh_host', e.target.value);
+ },
+ style: {
+ width: 400,
+ height: 50,
+ background: '#F5F5F5',
+ borderRadius: 4,
+ marginTop: 5
+ }
+ })
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_checkbox/* default */.Z, {
checked: shixun_environment === null || shixun_environment === void 0 ? void 0 : shixun_environment.open_start_command,
onChange: function onChange(e) {
return handleValueChange('shixun_environment', 'open_start_command', e.target.checked);
@@ -12722,7 +12849,8 @@ var JupyterLabEnvironment_Environment = function Environment(_ref) {
tags: frequence_image,
onChange: function onChange(id) {
return setActiveId(id);
- }
+ },
+ onSearchWord: function onSearchWord() {}
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: JupyterLabEnvironmentmodules.right,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("header", {
@@ -13634,9 +13762,6 @@ var Dataset = function Dataset(_ref) {
var statistic_style = __webpack_require__(14558);
// EXTERNAL MODULE: ./node_modules/antd/es/statistic/index.js + 4 modules
var statistic = __webpack_require__(74763);
-;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/body/Service/index.less?modules
-// extracted by mini-css-extract-plugin
-/* harmony default export */ var Servicemodules = ({});
;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/body/Service/components/SelectFilePathModal/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var SelectFilePathModalmodules = ({"wrap":"wrap___VIvSS","content":"content___pqoZT","mainPathWrap":"mainPathWrap___v3uSU","colorBlue":"colorBlue___AjQlz"});
@@ -13865,6 +13990,647 @@ var SelectFilePathModal = function SelectFilePathModal(_ref) {
loading: loading.models.index
};
})(SelectFilePathModal));
+// EXTERNAL MODULE: ./node_modules/antd/es/space/style/index.js + 1 modules
+var space_style = __webpack_require__(6516);
+// EXTERNAL MODULE: ./node_modules/antd/es/space/index.js + 1 modules
+var space = __webpack_require__(26713);
+// EXTERNAL MODULE: ./node_modules/antd/es/input-number/style/index.js + 1 modules
+var input_number_style = __webpack_require__(25359);
+// EXTERNAL MODULE: ./node_modules/antd/es/input-number/index.js + 9 modules
+var input_number = __webpack_require__(87799);
+// EXTERNAL MODULE: ./src/components/FixedButton/index.tsx + 1 modules
+var FixedButton = __webpack_require__(36845);
+;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/body/Service/components/EvaluateSetting/index.less?modules
+// extracted by mini-css-extract-plugin
+/* harmony default export */ var EvaluateSettingmodules = ({"wrap":"wrap___dbeFl","test-case-name":"test-case-name___AM3sq","btn-remove-case":"btn-remove-case___KW3gs","in":"in___hlelK","se":"se___dRyd5","fourPart":"fourPart___OLRBn","groupWrap":"groupWrap___IOeGo","customInput":"customInput___Um9sN","fixBtn":"fixBtn___HaFLT"});
+;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/body/Service/components/EvaluateSetting/index.tsx
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+var EvaluateSetting_TextArea = input/* default.TextArea */.Z.TextArea;
+var TestCase = function TestCase(_ref) {
+ var _user$userInfo, _user$userInfo$shixun;
+ var user = _ref.user;
+ var shixunId = (0,react.useRef)();
+ var _Form$useForm = es_form/* default.useForm */.Z.useForm(),
+ _Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
+ form = _Form$useForm2[0];
+ var _useState = (0,react.useState)({}),
+ _useState2 = slicedToArray_default()(_useState, 2),
+ formValue = _useState2[0],
+ setFormValue = _useState2[1];
+ var _useState3 = (0,react.useState)(false),
+ _useState4 = slicedToArray_default()(_useState3, 2),
+ btnLoading = _useState4[0],
+ setBtnLoading = _useState4[1];
+ var _useState5 = (0,react.useState)([]),
+ _useState6 = slicedToArray_default()(_useState5, 2),
+ testSetList = _useState6[0],
+ setTestSetList = _useState6[1];
+ var _useState7 = (0,react.useState)([]),
+ _useState8 = slicedToArray_default()(_useState7, 2),
+ list = _useState8[0],
+ setList = _useState8[1]; //评测脚本下拉
+ var editable = (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : (_user$userInfo$shixun = _user$userInfo.shixun) === null || _user$userInfo$shixun === void 0 ? void 0 : _user$userInfo$shixun.editable;
+ (0,react.useEffect)(function () {
+ var _location$pathname, _location$pathname$sp;
+ shixunId.current = (_location$pathname = location.pathname) === null || _location$pathname === void 0 ? void 0 : (_location$pathname$sp = _location$pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[2];
+ }, []);
+ (0,react.useEffect)(function () {
+ getData();
+ }, []);
+ var getData = /*#__PURE__*/function () {
+ var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
+ var testSetData, res, _res$data, _res$data2, _res$data3, _res$data4, _res$data5, _res$data6, _res$data7, _res$data8, _res$data9, _res$data10, _res$data11, _res$data11$test_sets, _res$data12, initData;
+ return regeneratorRuntime_default()().wrap(function _callee$(_context) {
+ while (1) switch (_context.prev = _context.next) {
+ case 0:
+ testSetData = [{
+ hidden: 0,
+ input: "",
+ output: "",
+ score: 100
+ }];
+ _context.next = 3;
+ return (0,fetch/* default */.ZP)("/api/shixuns/".concat(shixunId.current, "/jupyter_evalute_setting.json"), {
+ method: 'get'
+ });
+ case 3:
+ res = _context.sent;
+ if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
+ setList(res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.standard_scripts);
+ initData = {
+ open_evaluate: res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.open_evaluate,
+ exec_time: (res === null || res === void 0 ? void 0 : (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.exec_time) || 3,
+ test_set_score: (res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.test_set_score) === null ? false : res === null || res === void 0 ? void 0 : (_res$data5 = res.data) === null || _res$data5 === void 0 ? void 0 : _res$data5.test_set_score,
+ test_set_average: (res === null || res === void 0 ? void 0 : (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.test_set_average) === null ? true : res === null || res === void 0 ? void 0 : (_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : _res$data7.test_set_average,
+ choice_standard_scripts: (res === null || res === void 0 ? void 0 : (_res$data8 = res.data) === null || _res$data8 === void 0 ? void 0 : _res$data8.choice_standard_scripts) || null,
+ evaluate_script: (res === null || res === void 0 ? void 0 : (_res$data9 = res.data) === null || _res$data9 === void 0 ? void 0 : _res$data9.evaluate_script) || '',
+ evaluate_method: res === null || res === void 0 ? void 0 : (_res$data10 = res.data) === null || _res$data10 === void 0 ? void 0 : _res$data10.evaluate_method
+ };
+ form.setFieldsValue(initData);
+ setFormValue(initData);
+ setTestSetList(res !== null && res !== void 0 && (_res$data11 = res.data) !== null && _res$data11 !== void 0 && (_res$data11$test_sets = _res$data11.test_sets) !== null && _res$data11$test_sets !== void 0 && _res$data11$test_sets.length ? res === null || res === void 0 ? void 0 : (_res$data12 = res.data) === null || _res$data12 === void 0 ? void 0 : _res$data12.test_sets : testSetData);
+ }
+ case 5:
+ case "end":
+ return _context.stop();
+ }
+ }, _callee);
+ }));
+ return function getData() {
+ return _ref2.apply(this, arguments);
+ };
+ }();
+ var handleOk = /*#__PURE__*/function () {
+ var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(values) {
+ var scoreList, sumScore, res;
+ return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
+ while (1) switch (_context2.prev = _context2.next) {
+ case 0:
+ scoreList = testSetList.map(function (item) {
+ return item.score;
+ });
+ sumScore = scoreList.reduce(function (current, next) {
+ return current + next;
+ }, 0);
+ if (!(values.test_set_score && sumScore !== 100 && testSetList !== null && testSetList !== void 0 && testSetList.length)) {
+ _context2.next = 5;
+ break;
+ }
+ message/* default.warn */.ZP.warn('测试用例的评分占比之和必须等于100');
+ return _context2.abrupt("return");
+ case 5:
+ setBtnLoading(true);
+ _context2.next = 8;
+ return (0,fetch/* default */.ZP)("/api/shixuns/".concat(shixunId.current, "/update_jupyter_evaluate_setting.json"), {
+ method: 'post',
+ body: objectSpread2_default()(objectSpread2_default()({}, values), {}, {
+ mirror_script_id: values === null || values === void 0 ? void 0 : values.choice_standard_scripts,
+ open_evaluate: values !== null && values !== void 0 && values.open_evaluate ? 1 : 0,
+ test_set: testSetList.map(function (e) {
+ return objectSpread2_default()(objectSpread2_default()({}, e), {}, {
+ is_file: false
+ });
+ })
+ })
+ });
+ case 8:
+ res = _context2.sent;
+ if (res.status === 0) {
+ message/* default.success */.ZP.success('保存成功');
+ }
+ setBtnLoading(false);
+ case 11:
+ case "end":
+ return _context2.stop();
+ }
+ }, _callee2);
+ }));
+ return function handleOk(_x) {
+ return _ref3.apply(this, arguments);
+ };
+ }();
+ var handleValuesChange = function handleValuesChange(changedValues) {
+ setFormValue(objectSpread2_default()({}, form.getFieldsValue()));
+ if ('test_set_average' in changedValues && changedValues !== null && changedValues !== void 0 && changedValues.test_set_average) {
+ handleShareRatio(testSetList);
+ }
+ if ('test_set_score' in changedValues && changedValues !== null && changedValues !== void 0 && changedValues.test_set_score) {
+ form.setFieldsValue({
+ test_set_average: true
+ });
+ setFormValue(objectSpread2_default()(objectSpread2_default()({}, form.getFieldsValue()), {}, {
+ test_set_average: true
+ }));
+ handleShareRatio(testSetList);
+ }
+ if ('choice_standard_scripts' in changedValues) {
+ modal/* default.confirm */.Z.confirm({
+ centered: true,
+ title: '提示',
+ okText: '确定',
+ cancelText: '取消',
+ content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ className: "tc font16",
+ children: ["\u539F\u6709\u811A\u672C\u5C06\u88AB\u65B0\u7684\u811A\u672C\u8986\u76D6\uFF0C\u65E0\u6CD5\u64A4\u9500", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "\u662F\u5426\u786E\u8BA4\u6267\u884C\u8986\u76D6\u64CD\u4F5C"]
+ }),
+ onOk: function () {
+ var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
+ var res;
+ return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
+ while (1) switch (_context3.prev = _context3.next) {
+ case 0:
+ _context3.next = 2;
+ return (0,fetch/* default */.ZP)("/api/shixuns/".concat(shixunId.current, "/get_script_contents.json"), {
+ method: 'get',
+ params: {
+ id: shixunId.current,
+ script_id: changedValues === null || changedValues === void 0 ? void 0 : changedValues.choice_standard_scripts
+ }
+ });
+ case 2:
+ res = _context3.sent;
+ if (res !== null && res !== void 0 && res.content) {
+ modal/* default.info */.Z.info({
+ centered: true,
+ title: '提示',
+ okText: '知道啦',
+ content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ className: "tc font16",
+ children: "\u8BC4\u6D4B\u811A\u672C\u751F\u6210\u6210\u529F\uFF01"
+ })
+ });
+ form.setFieldsValue({
+ evaluate_script: res === null || res === void 0 ? void 0 : res.content
+ });
+ setFormValue(objectSpread2_default()(objectSpread2_default()({}, form.getFieldsValue()), {}, {
+ evaluate_script: res === null || res === void 0 ? void 0 : res.content
+ }));
+ }
+ case 4:
+ case "end":
+ return _context3.stop();
+ }
+ }, _callee3);
+ }));
+ function onOk() {
+ return _onOk.apply(this, arguments);
+ }
+ return onOk;
+ }()
+ });
+ }
+ };
+ var handleShareRatio = function handleShareRatio(testSetData) {
+ var code_compile_score = 0;
+ var score = Math.floor((100 - code_compile_score) / testSetData.length);
+ var lastScore = score + (100 - code_compile_score) % testSetData.length;
+ testSetData = testSetData.map(function (item, index) {
+ if (index === testSetData.length - 1) {
+ return objectSpread2_default()(objectSpread2_default()({}, item), {}, {
+ score: lastScore
+ });
+ }
+ return objectSpread2_default()(objectSpread2_default()({}, item), {}, {
+ score: score
+ });
+ });
+ setTestSetList(testSetData);
+ };
+ var handleAddTestSet = function handleAddTestSet() {
+ var testSetData = [].concat(toConsumableArray_default()(testSetList), [{
+ hidden: 0,
+ input: "",
+ output: "",
+ score: 0
+ }]);
+ if (form.getFieldValue('test_set_average')) {
+ handleShareRatio(testSetData);
+ } else {
+ setTestSetList(testSetData);
+ }
+ };
+ var test_set_score = formValue.test_set_score,
+ test_set_average = formValue.test_set_average,
+ open_evaluate = formValue.open_evaluate;
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
+ className: EvaluateSettingmodules.wrap,
+ children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
+ form: form,
+ disabled: !open_evaluate,
+ layout: "vertical",
+ onValuesChange: handleValuesChange,
+ onFinish: handleOk,
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
+ name: "open_evaluate",
+ style: {
+ marginTop: 10
+ },
+ valuePropName: "checked",
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
+ disabled: false,
+ children: "\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD"
+ })
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("h4", {
+ className: "font14",
+ children: "\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
+ title: !open_evaluate && "请启用Jupyter评测功能后,进行编辑",
+ placement: "topLeft",
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
+ label: '评测时长(秒):',
+ name: "exec_time",
+ style: {
+ flexDirection: 'row',
+ marginTop: 15
+ },
+ rules: [{
+ required: true,
+ message: '请输入评测时长限制'
+ }, {
+ type: 'number',
+ min: 3,
+ message: '最小限制时间是3秒'
+ }],
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
+ className: EvaluateSettingmodules["in"],
+ min: 3
+ })
+ })
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("h4", {
+ className: "font14 mb10",
+ children: "\u7CFB\u7EDF\u8BC4\u5206\u89C4\u5219"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
+ title: !open_evaluate && "请启用Jupyter评测功能后,进行编辑",
+ placement: "topLeft",
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
+ name: "test_set_score",
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default.Group */.ZP.Group, {
+ children: /*#__PURE__*/(0,jsx_runtime.jsxs)(space/* default */.Z, {
+ direction: "vertical",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default */.ZP, {
+ value: false,
+ children: ["\u901A\u8FC7\u5168\u90E8\u6D4B\u8BD5\u96C6", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "c-grey-999",
+ children: " \uFF08\u5B66\u5458\u8BC4\u6D4B\uFF0C\u4EC5\u5F53\u6240\u6709\u6D4B\u8BD5\u96C6\u90FD\u6B63\u786E\u65F6\uFF0C\u624D\u83B7\u5F97\u4E00\u6B21\u6027\u5956\u52B1\uFF09"
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default */.ZP, {
+ value: true,
+ children: ["\u901A\u8FC7\u90E8\u5206\u6D4B\u8BD5\u96C6", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "c-grey-999",
+ children: " \uFF08\u5B66\u5458\u8BC4\u6D4B\uFF0C\u901A\u8FC7\u6D4B\u8BD5\u96C6\u5373\u53EF\u83B7\u5F97\u5BF9\u5E94\u5956\u52B1\uFF09"
+ })]
+ })]
+ })
+ })
+ })
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)("h4", {
+ className: "flex-container font14 mb10",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "mr30",
+ children: "\u6D4B\u8BD5\u7528\u4F8B"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
+ title: !open_evaluate && "请启用Jupyter评测功能后,进行编辑",
+ placement: "topLeft",
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
+ style: {
+ height: 28,
+ borderRadius: 4
+ },
+ type: "primary",
+ onClick: handleAddTestSet,
+ ghost: true,
+ children: "\u6DFB\u52A0\u6D4B\u8BD5\u7528\u4F8B"
+ })
+ })]
+ }), test_set_score && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
+ name: "test_set_average",
+ children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default.Group */.ZP.Group, {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
+ value: true,
+ children: "\u5747\u5206\u6BD4\u4F8B"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
+ value: false,
+ style: {
+ marginLeft: 50
+ },
+ children: "\u81EA\u5B9A\u4E49\u6BD4\u4F8B"
+ })]
+ })
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
+ title: !open_evaluate && "请启用Jupyter评测功能后,进行编辑",
+ placement: "topLeft",
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ className: EvaluateSettingmodules.fourPart,
+ children: testSetList.map(function (item, key) {
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ className: EvaluateSettingmodules.groupWrap,
+ children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ className: "font16",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
+ className: "mr10",
+ children: ["\u7EC4", key + 1, " : "]
+ }), formValue.test_set_score && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
+ style: {
+ marginRight: 100
+ },
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
+ style: {
+ width: 85
+ }
+ // bordered={false}
+ // className={styles.customInput}
+ ,
+ value: item.score,
+ type: "number",
+ disabled: test_set_average,
+ onChange: function onChange(e) {
+ var testData = testSetList.map(function (test, testIndex) {
+ if (testIndex === key) {
+ return objectSpread2_default()(objectSpread2_default()({}, test), {}, {
+ score: e.target.value ? Number(e.target.value) : 0
+ });
+ }
+ return test;
+ });
+ var data = {
+ test_set_average: false
+ };
+ setFormValue(objectSpread2_default()(objectSpread2_default()({}, formValue), data));
+ form.setFieldsValue(data);
+ setTestSetList(testData);
+ }
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "ml10 mr10",
+ children: "%"
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_checkbox/* default */.Z, {
+ className: "font14 ml5",
+ checked: item.hidden === 1,
+ onChange: function onChange(e) {
+ var testData = testSetList.map(function (test, testIndex) {
+ if (testIndex === key) {
+ return objectSpread2_default()(objectSpread2_default()({}, test), {}, {
+ hidden: e.target.checked ? 1 : 0
+ });
+ }
+ return test;
+ });
+ setTestSetList(testData);
+ },
+ children: ["\u9690\u85CF", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "font12 c-light-black",
+ children: "\uFF08\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7\"print\"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173\uFF09"
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "tr flex1",
+ style: {
+ "float": 'right'
+ },
+ children: key !== 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
+ placement: "bottom",
+ title: "删除",
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "font16 c-red current",
+ onClick: function onClick() {
+ var testData = testSetList.filter(function (_, testIndex) {
+ return testIndex !== key;
+ });
+ handleShareRatio(testData);
+ },
+ children: "\u5220\xA0\u9664"
+ })
+ })
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(EvaluateSetting_TextArea, {
+ bordered: false,
+ className: "mt10",
+ rows: 5,
+ placeholder: "\u8F93\u5165",
+ value: item.input,
+ onChange: function onChange(e) {
+ var testData = testSetList.map(function (test, testIndex) {
+ if (testIndex === key) {
+ return objectSpread2_default()(objectSpread2_default()({}, test), {}, {
+ input: e.target.value
+ });
+ }
+ return test;
+ });
+ setTestSetList(testData);
+ }
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(EvaluateSetting_TextArea, {
+ bordered: false,
+ className: "mt10",
+ rows: 5,
+ placeholder: "\u9884\u671F\u8F93\u51FA",
+ value: item.output,
+ onChange: function onChange(e) {
+ var testData = testSetList.map(function (test, testIndex) {
+ if (testIndex === key) {
+ return objectSpread2_default()(objectSpread2_default()({}, test), {}, {
+ output: e.target.value
+ });
+ }
+ return test;
+ });
+ setTestSetList(testData);
+ }
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ className: "mt10",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "font14 mr20",
+ children: "\u9884\u671F\u8F93\u51FA:"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
+ checked: item.is_invisible,
+ onChange: function onChange(e) {
+ var testData = testSetList.map(function (test, testIndex) {
+ if (testIndex === key) {
+ return objectSpread2_default()(objectSpread2_default()({}, test), {}, {
+ is_invisible: e.target.checked
+ });
+ }
+ return test;
+ });
+ setTestSetList(testData);
+ },
+ children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
+ className: "font14",
+ children: ["\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "font12 c-light-black",
+ children: "\uFF08\u52FE\u9009\u540E\uFF0C\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1\uFF09"
+ })]
+ })
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "font14 mr20",
+ children: "\u7279\u6B8A\u5224\u5B9A:"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
+ checked: item.last_match_rule,
+ onChange: function onChange(e) {
+ var testData = testSetList.map(function (test, testIndex) {
+ if (testIndex === key) {
+ return objectSpread2_default()(objectSpread2_default()({}, test), {}, {
+ last_match_rule: e.target.checked
+ });
+ }
+ return test;
+ });
+ setTestSetList(testData);
+ },
+ children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
+ className: "font14",
+ children: ["\u672B\u5C3E\u5339\u914D", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "font12 c-light-black",
+ children: "\uFF08\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173\uFF09"
+ })]
+ })
+ })]
+ })]
+ }, key);
+ })
+ })
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
+ label: "\u8BC4\u6D4B\u65B9\u5F0F",
+ name: "evaluate_method",
+ style: {
+ flexDirection: 'row',
+ marginTop: 15
+ },
+ rules: [{
+ required: true,
+ message: '请输入评测时长限制'
+ }],
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default.Group */.ZP.Group, {
+ children: /*#__PURE__*/(0,jsx_runtime.jsxs)(space/* default */.Z, {
+ direction: "vertical",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default */.ZP, {
+ value: 1,
+ children: ["\u6240\u6709\u4EE3\u7801\u5757\u8BC4\u6D4B", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "c-grey-999",
+ children: " \uFF08\u5BF9\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\u7684\u6240\u6709\u975E\u7A7A\u4EE3\u7801\u5757\u8FDB\u884C\u8BC4\u6D4B\uFF09"
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default */.ZP, {
+ value: 2,
+ children: ["\u672B\u5C3E\u4EE3\u7801\u5757\u8BC4\u6D4B", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "c-grey-999",
+ children: " \uFF08\u5BF9\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\u7684\u6700\u540E\u4E00\u4E2A\u975E\u7A7A\u4EE3\u7801\u5757\u8FDB\u884C\u8BC4\u6D4B\uFF09"
+ })]
+ })]
+ })
+ })
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("h4", {
+ className: "font14 mt20 mb10",
+ children: "\u8BC4\u6D4B\u811A\u672C"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
+ title: !open_evaluate && "请启用Jupyter评测功能后,进行编辑",
+ placement: "topLeft",
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
+ name: "choice_standard_scripts",
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select/* default */.Z, {
+ className: EvaluateSettingmodules.se,
+ getPopupContainer: function getPopupContainer(trigger) {
+ return trigger.parentNode;
+ },
+ placeholder: "\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C",
+ children: list.map(function (item, index) {
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select/* default.Option */.Z.Option, {
+ value: item.id,
+ children: item.scptname
+ }, index);
+ })
+ })
+ })
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
+ title: !open_evaluate && "请启用Jupyter评测功能后,进行编辑",
+ placement: "topLeft",
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
+ name: "evaluate_script",
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(monaco_editor/* default */.ZP, {
+ height: 450,
+ style: {
+ border: '1px solid #ccc'
+ },
+ language: "shell",
+ theme: "vs-light",
+ options: {
+ readOnly: !open_evaluate
+ }
+ })
+ })
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(FixedButton/* FixedButton */.t, {
+ okText: "\u4FDD\u5B58",
+ hasOkBtn: editable,
+ hasCancelBtn: false,
+ loading: btnLoading,
+ onOk: function onOk() {
+ return form.submit();
+ },
+ className: EvaluateSettingmodules.fixBtn
+ })]
+ });
+};
+/* harmony default export */ var EvaluateSetting = ((0,_umi_production_exports.connect)(function (_ref4) {
+ var user = _ref4.user;
+ return {
+ user: user
+ };
+})(TestCase));
// EXTERNAL MODULE: ./src/components/mediator.js
var mediator = __webpack_require__(91562);
;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/body/Service/index.tsx
@@ -13887,7 +14653,7 @@ var mediator = __webpack_require__(91562);
-var Service_excluded = ["globalSetting", "loading", "dispatch", "practiceSetting", "shixunsDetail"];
+
@@ -13916,8 +14682,7 @@ var Service = function Service(_ref) {
loading = _ref.loading,
dispatch = _ref.dispatch,
practiceSetting = _ref.practiceSetting,
- shixunsDetail = _ref.shixunsDetail,
- props = objectWithoutProperties_default()(_ref, Service_excluded);
+ shixunsDetail = _ref.shixunsDetail;
var _useState = (0,react.useState)(),
_useState2 = slicedToArray_default()(_useState, 2),
codeMirrorValue = _useState2[0],
@@ -13935,24 +14700,18 @@ var Service = function Service(_ref) {
_useState8 = slicedToArray_default()(_useState7, 2),
endTime = _useState8[0],
setEndTime = _useState8[1];
- var _useState9 = (0,react.useState)(),
+ var _useState9 = (0,react.useState)(true),
_useState10 = slicedToArray_default()(_useState9, 2),
- isZoom = _useState10[0],
- setIsZoom = _useState10[1];
- var jupyterMessageFlag = (0,react.useRef)(true);
- var _useState11 = (0,react.useState)(true),
+ isRepository = _useState10[0],
+ setIsRepository = _useState10[1];
+ var _useState11 = (0,react.useState)(700),
_useState12 = slicedToArray_default()(_useState11, 2),
- isRepository = _useState12[0],
- setIsRepository = _useState12[1];
- var _useState13 = (0,react.useState)(700),
+ iframeHeight = _useState12[0],
+ setIframeHeight = _useState12[1];
+ var _useState13 = (0,react.useState)(''),
_useState14 = slicedToArray_default()(_useState13, 2),
- iframeHeight = _useState14[0],
- setIframeHeight = _useState14[1];
- var _useState15 = (0,react.useState)(''),
- _useState16 = slicedToArray_default()(_useState15, 2),
- jupyterUrl = _useState16[0],
- setJupyterUrl = _useState16[1];
- var ref = (0,react.useRef)();
+ jupyterUrl = _useState14[0],
+ setJupyterUrl = _useState14[1];
var params = (0,_umi_production_exports.useParams)();
(0,react.useEffect)(function () {
handleGetTPMInfo();
@@ -14201,9 +14960,7 @@ var Service = function Service(_ref) {
key: 'EditPracticeSetting-SelectFilePath'
}
});
- // setSelectFilePathType(type)
};
-
var handleFinishSelectFilePath = /*#__PURE__*/function () {
var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7(startup_file) {
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
@@ -14230,56 +14987,68 @@ var Service = function Service(_ref) {
return _ref6.apply(this, arguments);
};
}();
- return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- className: Servicemodules.warehouse,
- children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
- className: "mt20 ml20 font14",
- align: "middle",
- children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
- className: "c-red",
- children: "* "
- }), "\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6\uFF1A"]
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
- flex: "300px",
- onClick: function onClick() {
- return handleChangeFilePathModal(PracticeFileType.ExecPath);
- },
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
- value: jupyterUrl
- })
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
- flex: "1",
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
- type: "primary",
- className: "ml10",
- onClick: function onClick() {
- return handleChangeFilePathModal(PracticeFileType.ExecPath);
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(es_tabs/* default */.Z, {
+ tabBarStyle: {
+ paddingLeft: 20
+ },
+ items: [{
+ key: '1',
+ label: '服务设置',
+ children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
+ className: "mt20 ml20 font14",
+ align: "middle",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ className: "c-red",
+ children: "* "
+ }), "\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6\uFF1A"]
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
+ flex: "300px",
+ onClick: function onClick() {
+ return handleChangeFilePathModal(PracticeFileType.ExecPath);
+ },
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
+ value: jupyterUrl
+ })
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
+ flex: "1",
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
+ type: "primary",
+ className: "ml10",
+ onClick: function onClick() {
+ return handleChangeFilePathModal(PracticeFileType.ExecPath);
+ },
+ children: "\u8BBE\u7F6E"
+ })
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("iframe", {
+ onLoad: function onLoad(e) {
+ // setIframeHeight(document.getElementById('frame').contentWindow.document.getElementById("notebook").scrollHeight + 70)
},
- children: "\u8BBE\u7F6E"
- })
- })]
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("iframe", {
- onLoad: function onLoad(e) {
- // setIframeHeight(document.getElementById('frame').contentWindow.document.getElementById("notebook").scrollHeight + 70)
- },
- src: jupyterUrl,
- scrolling: "no",
- style: {
- height: "calc(100vh - 120px)"
- },
- className: "mt10",
- id: "frame",
- name: "framename",
- width: "100%",
- frameBorder: "0"
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(components_SelectFilePathModal, {
- fileType: 'path',
- path: '',
- onFinish: function onFinish(path) {
- return handleFinishSelectFilePath(path);
- }
- })]
+ src: jupyterUrl,
+ scrolling: "no",
+ style: {
+ height: "calc(100vh - 120px)"
+ },
+ className: "mt10",
+ id: "frame",
+ name: "framename",
+ width: "100%",
+ frameBorder: "0"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(components_SelectFilePathModal, {
+ fileType: 'path',
+ path: '',
+ onFinish: function onFinish(path) {
+ return handleFinishSelectFilePath(path);
+ }
+ })]
+ })
+ }, {
+ key: '2',
+ label: '评测设置',
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(EvaluateSetting, {})
+ }]
});
};
/* harmony default export */ var body_Service = ((0,_umi_production_exports.connect)(function (_ref7) {
@@ -14423,7 +15192,7 @@ var sideBarItems = [{
}),
tabId: 'dataset'
}, {
- name: '服务',
+ name: '服务与评测',
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "icon iconfont icon-renwuguanka"
}),
diff --git a/p__Shixuns__Edit__index.chunk.css b/p__Shixuns__Edit__index.chunk.css
index 789339e3b7..21ed2af856 100644
--- a/p__Shixuns__Edit__index.chunk.css
+++ b/p__Shixuns__Edit__index.chunk.css
@@ -7169,13 +7169,6 @@ body {
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
-/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Shixuns/Edit/body/Service/index.less?modules ***!
- \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
-/* stylelint-disable no-duplicate-selectors */
-/* stylelint-disable */
-/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
-
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Shixuns/Edit/body/Service/components/SelectFilePathModal/index.less?modules ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@@ -7208,6 +7201,86 @@ body {
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
+/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
+ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Shixuns/Edit/body/Service/components/EvaluateSetting/index.less?modules ***!
+ \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
+.wrap___dbeFl {
+ padding: 10px 20px 80px 20px;
+ font-size: 14px;
+}
+.wrap___dbeFl div[class~='ant-collapse'] {
+ border-radius: 4px;
+ margin-top: 20px;
+}
+.test-case-name___AM3sq {
+ display: flex;
+ flex-flow: row nowrap;
+ align-items: center;
+ float: left;
+ color: rgba(0, 0, 0, 0.65);
+}
+.test-case-name___AM3sq > div {
+ margin: 0 15px 0 15px;
+}
+.btn-remove-case___KW3gs {
+ position: relative;
+ font-size: 20px;
+ color: #8e8e8e;
+ border-radius: 50%;
+ vertical-align: center;
+}
+.btn-remove-case___KW3gs:hover {
+ color: #fff;
+ background: #e7514f;
+}
+.in___hlelK {
+ width: 400px;
+ height: 40px;
+ border-radius: 4px;
+ border: 1px solid #dedede;
+}
+.in___hlelK input {
+ height: 40px;
+}
+.se___dRyd5 {
+ width: 400px !important;
+ height: 40px;
+ border-radius: 4px;
+}
+.se___dRyd5 div[class~='ant-select-selector'] {
+ height: 40px !important;
+}
+.se___dRyd5 span[class~='ant-select-selection-item'] {
+ line-height: 40px !important;
+}
+.se___dRyd5 span[class~='ant-select-selection-placeholder'] {
+ line-height: 38px !important;
+}
+.fourPart___OLRBn .groupWrap___IOeGo {
+ margin-bottom: 20px;
+}
+.fourPart___OLRBn .groupWrap___IOeGo .customInput___Um9sN {
+ height: 30px;
+ background-color: #f5f5f5;
+ padding: 0 20px;
+}
+.fourPart___OLRBn .groupWrap___IOeGo .customInput___Um9sN > input,
+.fourPart___OLRBn .groupWrap___IOeGo .customInput___Um9sN > span {
+ font-size: 16px;
+ background-color: #f5f5f5;
+}
+.fourPart___OLRBn textarea {
+ background-color: #f5f5f5 !important;
+ padding: 20px;
+ height: 140px;
+}
+.fixBtn___HaFLT {
+ left: 80px;
+}
+/* stylelint-disable no-duplicate-selectors */
+/* stylelint-disable */
+/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
+
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Shixuns/Edit/layout/Sidebar/index.less?modules ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
diff --git a/p__Shixuns__New__index.async.js b/p__Shixuns__New__index.async.js
index 37498591a2..2894eef658 100644
--- a/p__Shixuns__New__index.async.js
+++ b/p__Shixuns__New__index.async.js
@@ -89,6 +89,8 @@ var SelectEnvironment = function SelectEnvironment(_ref) {
tags = _ref$tags === void 0 ? [] : _ref$tags,
_ref$onChange = _ref.onChange,
onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange,
+ _ref$onSearchWord = _ref.onSearchWord,
+ onSearchWord = _ref$onSearchWord === void 0 ? function () {} : _ref$onSearchWord,
shixun_type = _ref.shixun_type;
var _useState = (0,react.useState)(''),
_useState2 = slicedToArray_default()(_useState, 2),
@@ -277,16 +279,15 @@ var SelectEnvironment = function SelectEnvironment(_ref) {
};
var onSearch = function onSearch(searchText) {
optionsInit(searchText, 0);
- setInputValue(searchText);
};
var handlePressEnter = function handlePressEnter(v) {
- var _options$listActiveIn, _options$listActiveIn2;
+ var _options$listActiveIn;
if (!options.length) return;
var realId = options === null || options === void 0 ? void 0 : (_options$listActiveIn = options[listActiveIndex]) === null || _options$listActiveIn === void 0 ? void 0 : _options$listActiveIn.id;
onChange(realId);
setOptions([]);
setListActiveIndex(0);
- setInputValue(options === null || options === void 0 ? void 0 : (_options$listActiveIn2 = options[listActiveIndex]) === null || _options$listActiveIn2 === void 0 ? void 0 : _options$listActiveIn2.name);
+ // setInputValue(options?.[listActiveIndex]?.name)
scrollFuc(realId);
inputRef.current.blur();
};
@@ -294,18 +295,20 @@ var SelectEnvironment = function SelectEnvironment(_ref) {
onChange(id);
setOptions([]);
setListActiveIndex(0);
- setInputValue(option === null || option === void 0 ? void 0 : option.name);
+ // setInputValue(option?.name)
scrollFuc(id);
};
var clear = function clear() {
setOptions([]);
setInputValue("");
+ onSearchWord('');
};
var activeClear = function activeClear(id) {
onChange(id);
setOptions([]);
- setInputValue('');
+ // setInputValue('')
};
+
var renderIcon = function renderIcon() {
if (inputValue === '') {
return /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
@@ -365,12 +368,18 @@ var SelectEnvironment = function SelectEnvironment(_ref) {
size: "large",
onFocus: function onFocus() {
clearTimeout(timer.current);
- onSearch(inputValue);
+ if (inputValue) {
+ onSearch(inputValue);
+ }
setVisible(true);
},
onBlur: onBlur,
onChange: function onChange(e) {
- return onSearch(e.target.value);
+ setInputValue(e.target.value);
+ if (e.target.value) {
+ onSearch(e.target.value);
+ }
+ onSearchWord(e.target.value);
},
placeholder: "\u641C\u7D22\u60A8\u9700\u8981\u7684\u5B9E\u9A8C\u73AF\u5883",
onPressEnter: handlePressEnter
@@ -1153,6 +1162,7 @@ var jsx_runtime = __webpack_require__(85893);
var CommonPractice = function CommonPractice(_ref) {
+ var _ref5;
var newShixuns = _ref.newShixuns,
user = _ref.user,
dispatch = _ref.dispatch,
@@ -1299,6 +1309,10 @@ var CommonPractice = function CommonPractice(_ref) {
return _ref4.apply(this, arguments);
};
}();
+ var _useState11 = (0,react.useState)(""),
+ _useState12 = slicedToArray_default()(_useState11, 2),
+ keyword = _useState12[0],
+ setKeyword = _useState12[1];
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: CommonPracticemodules.practice,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(SelectEnvironment/* default */.Z, {
@@ -1310,13 +1324,20 @@ var CommonPractice = function CommonPractice(_ref) {
onChange: function onChange(id) {
return setActiveId(id);
},
- shixun_type: shixun_type
+ shixun_type: shixun_type,
+ onSearchWord: function onSearchWord(value) {
+ return setKeyword(value);
+ }
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: CommonPracticemodules.right,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("header", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: CommonPracticemodules.title,
- children: ["\u5B9E\u9A8C\u73AF\u5883:\xA0", activeId === null ? '— —' : name]
+ children: ["\u5B9E\u9A8C\u73AF\u5883:\xA0", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
+ dangerouslySetInnerHTML: {
+ __html: activeId === null ? '— —' : (_ref5 = name || "") === null || _ref5 === void 0 ? void 0 : _ref5.replace(new RegExp(keyword === null || keyword === void 0 ? void 0 : keyword.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "gi"), '$&')
+ }
+ })]
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: CommonPracticemodules.content,
@@ -1350,7 +1371,8 @@ var CommonPractice = function CommonPractice(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CommonPracticemodules.mainBody,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
- value: description
+ value: description,
+ highlightKeywords: keyword
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: CommonPracticemodules.btns,
@@ -1510,10 +1532,10 @@ var CommonPractice = function CommonPractice(_ref) {
})]
});
};
-/* harmony default export */ var components_CommonPractice = ((0,_umi_production_exports.connect)(function (_ref5) {
- var newShixuns = _ref5.newShixuns,
- globalSetting = _ref5.globalSetting,
- user = _ref5.user;
+/* harmony default export */ var components_CommonPractice = ((0,_umi_production_exports.connect)(function (_ref6) {
+ var newShixuns = _ref6.newShixuns,
+ globalSetting = _ref6.globalSetting,
+ user = _ref6.user;
return {
newShixuns: newShixuns,
globalSetting: globalSetting,
diff --git a/p__Terminal__index.async.js b/p__Terminal__index.async.js
index c007e67a60..eded32f1c6 100644
--- a/p__Terminal__index.async.js
+++ b/p__Terminal__index.async.js
@@ -14,17 +14,287 @@ var CheckOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 8
/***/ }),
-/***/ 509:
-/*!*********************************************************************!*\
- !*** ./node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__) {
+/***/ 66446:
+/*!******************************************!*\
+ !*** ./src/pages/tasks/service/index.js ***!
+ \******************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "JW": function() { return /* binding */ setUnity3dStatus; },
+/* harmony export */ "Jd": function() { return /* binding */ rebootEsc; },
+/* harmony export */ "Kl": function() { return /* binding */ addVncTime; },
+/* harmony export */ "L5": function() { return /* binding */ saveTaskStar; },
+/* harmony export */ "MH": function() { return /* binding */ getChooseUnlockAnswer; },
+/* harmony export */ "MI": function() { return /* binding */ addMyRepositoryFile; },
+/* harmony export */ "Qo": function() { return /* binding */ getCodeGameStatus; },
+/* harmony export */ "SO": function() { return /* binding */ fetchPathsTaskList; },
+/* harmony export */ "Tf": function() { return /* binding */ resetGitCode; },
+/* harmony export */ "XO": function() { return /* binding */ fetchTaskInfo; },
+/* harmony export */ "Xy": function() { return /* binding */ codeGameBuild; },
+/* harmony export */ "Y0": function() { return /* binding */ plusOrCancelPraise; },
+/* harmony export */ "Ye": function() { return /* binding */ setStartPermanent; },
+/* harmony export */ "Yv": function() { return /* binding */ stopLogOutput; },
+/* harmony export */ "ZH": function() { return /* binding */ commitFiles; },
+/* harmony export */ "am": function() { return /* binding */ resetEnvironment; },
+/* harmony export */ "bD": function() { return /* binding */ deleteMyGitFile; },
+/* harmony export */ "fA": function() { return /* binding */ closeWindowsVnc; },
+/* harmony export */ "fY": function() { return /* binding */ getRemainingTime; },
+/* harmony export */ "g6": function() { return /* binding */ fetchTaskList; },
+/* harmony export */ "g7": function() { return /* binding */ moveMyGitFile; },
+/* harmony export */ "gT": function() { return /* binding */ fetchPictures; },
+/* harmony export */ "gn": function() { return /* binding */ pullFiles; },
+/* harmony export */ "h$": function() { return /* binding */ logOutput; },
+/* harmony export */ "hG": function() { return /* binding */ resetPassedCode; },
+/* harmony export */ "i8": function() { return /* binding */ getRanking; },
+/* harmony export */ "j3": function() { return /* binding */ getUnlockAnswer; },
+/* harmony export */ "lH": function() { return /* binding */ getAnswerInfo; },
+/* harmony export */ "li": function() { return /* binding */ fetchCode; },
+/* harmony export */ "n4": function() { return /* binding */ updateCode; },
+/* harmony export */ "pU": function() { return /* binding */ fetchRepos; },
+/* harmony export */ "qK": function() { return /* binding */ restoreCode; },
+/* harmony export */ "sA": function() { return /* binding */ startInit; },
+/* harmony export */ "sP": function() { return /* binding */ getChooseAnswerInfo; },
+/* harmony export */ "t$": function() { return /* binding */ unlockTestCase; },
+/* harmony export */ "zl": function() { return /* binding */ evalateChooseGame; }
+/* harmony export */ });
+/* unused harmony exports getNoticeDetail, closeSSh, getMyFileContent */
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js */ 17061);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/asyncToGenerator.js */ 17156);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectSpread2.js */ 42122);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__);
+/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/utils/fetch */ 84519);
+/* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/utils/util */ 29427);
+
+
+
-// This icon file is generated automatically.
-var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
-/* harmony default export */ __webpack_exports__["Z"] = (SearchOutlined);
+//判断是否来自教学课堂助教查看实训
+var urlParamsAll = (0,_utils_util__WEBPACK_IMPORTED_MODULE_4__/* .getJsonFromUrl */ .oP)();
+var urlParams = {};
+if (urlParamsAll !== null && urlParamsAll !== void 0 && urlParamsAll.homework_common_id) {
+ urlParams.homework_common_id = urlParamsAll === null || urlParamsAll === void 0 ? void 0 : urlParamsAll.homework_common_id;
+}
+if (urlParamsAll !== null && urlParamsAll !== void 0 && urlParamsAll.exercisesId) {
+ urlParams.exercise_id = urlParamsAll === null || urlParamsAll === void 0 ? void 0 : urlParamsAll.exercisesId;
+}
+function fetchTaskInfo(id) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, ".json"), urlParams);
+}
+function fetchTaskList(id) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/challenges.json"));
+}
+function fetchPathsTaskList(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/subject_challenges.json"), params);
+}
+function saveTaskStar(id, shixunId, star) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/star.json"), {
+ shixun_id: shixunId,
+ star: star
+ });
+}
+function fetchCode(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/rep_content.json"), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams));
+}
+function updateCode(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("myshixuns/".concat(id, "/update_file.json"), params);
+}
+function restoreCode(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/reset_original_code.json"), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams));
+}
+function resetGitCode(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("myshixuns/".concat(id, "/reset_repository.json"), params);
+}
+function resetPassedCode(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/reset_passed_code.json"), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams));
+}
+function codeGameBuild(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/game_build.json"), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams));
+}
+function getCodeGameStatus(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/game_status.json"), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams));
+}
+function evalateChooseGame(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/choose_build.json"), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams));
+}
+
+//获取环境剩余时间
+function getRemainingTime(id) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/get_remaining_time.json"));
+}
+function fetchPictures(id) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/picture_display.json"), urlParams);
+}
+function getNoticeDetail(id, params) {
+ return get("courses/".concat(id, "/inform_detail.json"), params);
+}
+function plusOrCancelPraise(id) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/plus_or_cancel_praise.json"));
+}
+function fetchRepos(id) {
+ var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("myshixuns/".concat(id, "/repository.json"), params);
+}
+
+//添加新方法
+function startInit(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/start.json"), params || {});
+}
+function closeSSh(id) {
+ return get("myshixuns/".concat(id, "/reset_pod.json"));
+}
+function resetEnvironment(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/reset_pod.json"), params);
+}
+
+// 重启云主机
+function rebootEsc(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/tasks/".concat(id, "/reboot_esc.json"), {
+ method: 'post',
+ body: params
+ });
+}
+function unlockTestCase(id) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/check_test_sets.json"));
+}
+function getAnswerInfo(id) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/get_answer_info.json"));
+}
+function getChooseAnswerInfo(id) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/get_choose_answer.json"));
+}
+function getChooseUnlockAnswer(id) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/unlock_choose_answer.json"));
+}
+function getUnlockAnswer(id, aid) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/unlock_answer.json"), {
+ answer_id: aid
+ });
+}
+function setUnity3dStatus(id, result, data) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/set_games_status.json"), {
+ result: result,
+ data: data
+ });
+}
+
+//保留唯一一个方法
+function addVncTime(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/active_pod.json"), params);
+}
+function getRanking(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/rank_list.json"), params);
+}
+function closeWindowsVnc(id, tpi_id) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/close_windows_vnc.json"), {
+ tpi_id: tpi_id
+ });
+}
+function commitFiles(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/commit_files.json"), params);
+}
+function pullFiles(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/pull_files.json"), params);
+}
+function logOutput(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/log_output"), params);
+}
+function stopLogOutput(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/stop_log_output.json"), params);
+}
+
+// myshixuns start
+function addMyRepositoryFile(_x) {
+ return _addMyRepositoryFile.apply(this, arguments);
+}
+function _addMyRepositoryFile() {
+ _addMyRepositoryFile = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee(params) {
+ return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee$(_context) {
+ while (1) switch (_context.prev = _context.next) {
+ case 0:
+ return _context.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/myshixuns/".concat(params.id, "/add_file.json"), {
+ method: 'post',
+ body: params
+ }));
+ case 1:
+ case "end":
+ return _context.stop();
+ }
+ }, _callee);
+ }));
+ return _addMyRepositoryFile.apply(this, arguments);
+}
+function deleteMyGitFile(_x2) {
+ return _deleteMyGitFile.apply(this, arguments);
+}
+function _deleteMyGitFile() {
+ _deleteMyGitFile = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee2(params) {
+ return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee2$(_context2) {
+ while (1) switch (_context2.prev = _context2.next) {
+ case 0:
+ return _context2.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/myshixuns/".concat(params.id, "/delete_git_file.json"), {
+ method: 'Delete',
+ body: params
+ }));
+ case 1:
+ case "end":
+ return _context2.stop();
+ }
+ }, _callee2);
+ }));
+ return _deleteMyGitFile.apply(this, arguments);
+}
+function moveMyGitFile(_x3) {
+ return _moveMyGitFile.apply(this, arguments);
+}
+function _moveMyGitFile() {
+ _moveMyGitFile = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee3(params) {
+ return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee3$(_context3) {
+ while (1) switch (_context3.prev = _context3.next) {
+ case 0:
+ return _context3.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/myshixuns/".concat(params.id, "/mv_file.json"), {
+ method: 'post',
+ body: params
+ }));
+ case 1:
+ case "end":
+ return _context3.stop();
+ }
+ }, _callee3);
+ }));
+ return _moveMyGitFile.apply(this, arguments);
+}
+function getMyFileContent(_x4) {
+ return _getMyFileContent.apply(this, arguments);
+}
+function _getMyFileContent() {
+ _getMyFileContent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(params) {
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
+ while (1) switch (_context4.prev = _context4.next) {
+ case 0:
+ return _context4.abrupt("return", Fetch("/api/tasks/".concat(params.id, "/rep_content.json"), {
+ method: 'get',
+ params: params
+ }));
+ case 1:
+ case "end":
+ return _context4.stop();
+ }
+ }, _callee4);
+ }));
+ return _getMyFileContent.apply(this, arguments);
+}
+function setStartPermanent(id, params) {
+ return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/shixuns/".concat(id, "/set_start_permanent.json"), {
+ method: 'put',
+ body: params
+ });
+}
+
/***/ }),
/***/ 38054:
@@ -72,6 +342,61 @@ var jsx_runtime = __webpack_require__(85893);
});
});
+/***/ }),
+
+/***/ 12264:
+/*!**********************************!*\
+ !*** ./src/components/modal.tsx ***!
+ \**********************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "Z": function() { return /* binding */ Dialog; }
+/* harmony export */ });
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/classCallCheck.js */ 56690);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createClass_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/createClass.js */ 89728);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createClass_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createClass_js__WEBPACK_IMPORTED_MODULE_1__);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_inherits_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/inherits.js */ 61655);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_inherits_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_inherits_js__WEBPACK_IMPORTED_MODULE_2__);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createSuper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/createSuper.js */ 26389);
+/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createSuper_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createSuper_js__WEBPACK_IMPORTED_MODULE_3__);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 67294);
+/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-dom */ 73935);
+
+
+
+
+
+
+var Dialog = /*#__PURE__*/function (_React$Component) {
+ _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_inherits_js__WEBPACK_IMPORTED_MODULE_2___default()(Dialog, _React$Component);
+ var _super = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createSuper_js__WEBPACK_IMPORTED_MODULE_3___default()(Dialog);
+ function Dialog(props) {
+ var _this;
+ _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0___default()(this, Dialog);
+ _this = _super.call(this, props);
+ var doc = window.document;
+ _this.node = doc.createElement('div');
+ doc.body.appendChild(_this.node);
+ return _this;
+ }
+ _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createClass_js__WEBPACK_IMPORTED_MODULE_1___default()(Dialog, [{
+ key: "render",
+ value: function render() {
+ var children = this.props.children;
+ return /*#__PURE__*/(0,react_dom__WEBPACK_IMPORTED_MODULE_5__.createPortal)(children, this.node);
+ }
+ }, {
+ key: "componentWillUnmount",
+ value: function componentWillUnmount() {
+ window.document.body.removeChild(this.node);
+ }
+ }]);
+ return Dialog;
+}(react__WEBPACK_IMPORTED_MODULE_4__.Component);
+
+
/***/ }),
/***/ 52510:
@@ -234,6 +559,1142 @@ var ClassroomListPage = function ClassroomListPage(_ref) {
/***/ }),
+/***/ 27594:
+/*!******************************************************************!*\
+ !*** ./src/pages/tasks/vnc-view/vnc-panel/index.tsx + 2 modules ***!
+ \******************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, {
+ "Z": function() { return /* binding */ vnc_panel; }
+});
+
+// EXTERNAL MODULE: ./node_modules/antd/es/progress/style/index.js + 1 modules
+var style = __webpack_require__(57273);
+// EXTERNAL MODULE: ./node_modules/antd/es/progress/index.js + 10 modules
+var progress = __webpack_require__(97910);
+// EXTERNAL MODULE: ./node_modules/antd/es/message/style/index.js + 1 modules
+var message_style = __webpack_require__(14934);
+// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 1 modules
+var message = __webpack_require__(12461);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
+var regeneratorRuntime = __webpack_require__(17061);
+var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
+// EXTERNAL MODULE: ./node_modules/antd/es/modal/style/index.js + 1 modules
+var modal_style = __webpack_require__(35611);
+// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 7 modules
+var modal = __webpack_require__(85402);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
+var asyncToGenerator = __webpack_require__(17156);
+var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js
+var createForOfIteratorHelper = __webpack_require__(74704);
+var createForOfIteratorHelper_default = /*#__PURE__*/__webpack_require__.n(createForOfIteratorHelper);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
+var slicedToArray = __webpack_require__(27424);
+var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectSpread2.js
+var objectSpread2 = __webpack_require__(42122);
+var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
+// EXTERNAL MODULE: ./node_modules/react/index.js
+var react = __webpack_require__(67294);
+// EXTERNAL MODULE: ./src/components/Spinner/index.tsx + 1 modules
+var Spinner = __webpack_require__(38054);
+// EXTERNAL MODULE: ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
+var ResizeObserver_es = __webpack_require__(91033);
+// EXTERNAL MODULE: ./src/components/modal.tsx
+var components_modal = __webpack_require__(12264);
+// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
+var _umi_production_exports = __webpack_require__(89214);
+// EXTERNAL MODULE: ./src/utils/util.tsx
+var util = __webpack_require__(29427);
+// EXTERNAL MODULE: ./node_modules/antd/es/button/style/index.js + 1 modules
+var button_style = __webpack_require__(29913);
+// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
+var es_button = __webpack_require__(71577);
+// EXTERNAL MODULE: ./node_modules/antd/es/input/style/index.js + 1 modules
+var input_style = __webpack_require__(69463);
+// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 5 modules
+var input = __webpack_require__(75008);
+;// CONCATENATED MODULE: ./src/pages/tasks/vnc-view/clipboard-box/index.less
+// extracted by mini-css-extract-plugin
+
+// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
+var jsx_runtime = __webpack_require__(85893);
+;// CONCATENATED MODULE: ./src/pages/tasks/vnc-view/clipboard-box/index.tsx
+
+
+
+
+
+
+
+
+
+var TextArea = input/* default.TextArea */.Z.TextArea;
+/* harmony default export */ var clipboard_box = (function (_ref) {
+ var onCancel = _ref.onCancel,
+ onSave = _ref.onSave,
+ content = _ref.content;
+ var _useState = (0,react.useState)(content),
+ _useState2 = slicedToArray_default()(_useState, 2),
+ value = _useState2[0],
+ setValue = _useState2[1];
+ function onChangeValue(e) {
+ setValue(e.target.value);
+ }
+ function onSaveContent() {
+ onSave(value);
+ }
+ (0,react.useEffect)(function () {
+ setValue(content);
+ }, [content]);
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ className: "clipboard-box",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("h3", {
+ children: "\u5B9E\u9A8C\u73AF\u5883\u526A\u5207\u677F\uFF1A"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(TextArea, {
+ value: value,
+ onChange: onChangeValue,
+ className: "clipboard"
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
+ children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
+ children: " 1.\u4ECE\u5916\u90E8\u590D\u5236\u5185\u5BB9\u5230\u5B9E\u9A8C\u73AF\u5883\u5185\uFF1A "
+ }), " \u7C98\u8D34\u5185\u5BB9\u5230\u4E0A\u9762\u6587\u672C\u6846\uFF0C\u70B9\u51FB\u4FDD\u5B58\uFF0C\u7136\u540E\u5728\u5B9E\u9A8C\u73AF\u5883\u4E2D\u8FDB\u884C\u7C98\u8D34\u3002 "]
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
+ children: [" ", /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
+ children: " 2.\u83B7\u53D6\u5B9E\u9A8C\u73AF\u5883\u4E2D\u7684\u5185\u5BB9\uFF1A "
+ }), " \u8BF7\u5148\u5728\u73AF\u5883\u4E2D\u590D\u5236\u5185\u5BB9\uFF0C\u590D\u5236\u52A8\u4F5C\u5B8C\u6210\u540E\u5185\u5BB9\u4F1A\u663E\u793A\u5728\u4E0A\u9762\u6587\u672C\u6846\uFF0C\u7136\u540E\u5728\u4E0A\u9762\u6587\u672C\u6846\u4E2D\u518D\u6B21\u590D\u5236\u3002 "]
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ className: "btn-action-container",
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
+ type: "ghost",
+ onClick: onCancel,
+ style: {
+ marginRight: 10
+ },
+ children: "\u53D6\u6D88"
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
+ type: "primary",
+ onClick: onSaveContent,
+ children: "\u4FDD\u5B58"
+ })]
+ })]
+ });
+});
+// EXTERNAL MODULE: ./src/utils/fullscreen.ts
+var fullscreen = __webpack_require__(15994);
+// EXTERNAL MODULE: ./src/pages/tasks/service/index.js
+var service = __webpack_require__(66446);
+// EXTERNAL MODULE: ./node_modules/@novnc/novnc/lib/rfb.js
+var rfb = __webpack_require__(2176);
+// EXTERNAL MODULE: ./src/components/mediator.js
+var mediator = __webpack_require__(91562);
+// EXTERNAL MODULE: ./src/utils/fetch.ts
+var fetch = __webpack_require__(84519);
+;// CONCATENATED MODULE: ./src/pages/tasks/vnc-view/vnc-panel/index.tsx
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+function unicodeUnEscape(str) {
+ return str.replace(/\\u([\dA-Za-z]{4})/g, function (_, m1) {
+ return String.fromCharCode(parseInt("0x" + m1));
+ });
+}
+function getJsonFromUrl(url) {
+ if (!url) url = window.location.search;
+ var query = url.substr(1);
+ var result = {};
+ query.split('&').forEach(function (part) {
+ var item = part.split('=');
+ result[item[0]] = decodeURIComponent(item[1]);
+ });
+ return result;
+}
+var initialState = {
+ loading: true,
+ isLarge: false,
+ showClipBoardBox: false,
+ transferContent: '',
+ mes: '实验环境准备中'
+};
+var Types;
+(function (Types) {
+ Types[Types["SET_LOADING"] = 0] = "SET_LOADING";
+ Types[Types["SET_IS_LARGE"] = 1] = "SET_IS_LARGE";
+ Types[Types["SET_MES"] = 2] = "SET_MES";
+ Types[Types["SET_STATE"] = 3] = "SET_STATE";
+ Types[Types["SHOW_CLIPBOARD_BOX"] = 4] = "SHOW_CLIPBOARD_BOX";
+ Types[Types["SET_TRANSFER_CONTENT"] = 5] = "SET_TRANSFER_CONTENT";
+ Types[Types["UPDATE_ALL"] = 6] = "UPDATE_ALL";
+})(Types || (Types = {}));
+function reducer(state, action) {
+ switch (action.type) {
+ case Types.SET_LOADING:
+ return objectSpread2_default()(objectSpread2_default()({}, state), {}, {
+ loading: action.payload
+ });
+ case Types.SET_IS_LARGE:
+ return objectSpread2_default()({}, objectSpread2_default()(objectSpread2_default()({}, state), {}, {
+ isLarge: action.payload
+ }));
+ case Types.SET_MES:
+ return objectSpread2_default()(objectSpread2_default()({}, state), {}, {
+ mes: action.payload
+ });
+ case Types.SET_STATE:
+ return objectSpread2_default()(objectSpread2_default()({}, state), action.payload);
+ case Types.SET_TRANSFER_CONTENT:
+ return objectSpread2_default()(objectSpread2_default()({}, state), {}, {
+ transferContent: action.payload
+ });
+ case Types.SHOW_CLIPBOARD_BOX:
+ return objectSpread2_default()(objectSpread2_default()({}, state), {}, {
+ showClipBoardBox: action.payload
+ });
+ case Types.UPDATE_ALL:
+ return objectSpread2_default()({
+ loading: state.loading
+ }, action.payload);
+ default:
+ throw new Error();
+ }
+}
+/* harmony default export */ var vnc_panel = (function (_ref) {
+ var vnc_url = _ref.vnc_url,
+ window_vnc_url = _ref.window_vnc_url,
+ linux_vnc = _ref.linux_vnc,
+ virtual_machine = _ref.virtual_machine,
+ taskData = _ref.taskData,
+ shixun_environment_id = _ref.shixun_environment_id,
+ tab_type = _ref.tab_type,
+ instance_startup_type = _ref.instance_startup_type,
+ index_tab = _ref.index_tab,
+ tpi_type = _ref.tpi_type;
+ var el = (0,react.useRef)();
+ var guacaRef = (0,react.useRef)();
+ var rfbRef = (0,react.useRef)();
+ var roRef = (0,react.useRef)();
+ var iframeRef = (0,react.useRef)();
+ var passwordRef = (0,react.useRef)();
+ var socketUrlRef = (0,react.useRef)();
+ var reConnectRef = (0,react.useRef)();
+ var _useReducer = (0,react.useReducer)(reducer, initialState),
+ _useReducer2 = slicedToArray_default()(_useReducer, 2),
+ state = _useReducer2[0],
+ dispatch = _useReducer2[1];
+ var _useState = (0,react.useState)(0),
+ _useState2 = slicedToArray_default()(_useState, 2),
+ linkNum = _useState2[0],
+ setLinkNum = _useState2[1];
+ var mes = state.mes,
+ loading = state.loading,
+ showClipBoardBox = state.showClipBoardBox,
+ isLarge = state.isLarge,
+ transferContent = state.transferContent;
+ var _useState3 = (0,react.useState)(0),
+ _useState4 = slicedToArray_default()(_useState3, 2),
+ percent = _useState4[0],
+ setPercent = _useState4[1];
+ var timeout = (0,react.useRef)();
+ var params = (0,_umi_production_exports.useParams)();
+ (0,react.useEffect)(function () {
+ return function () {
+ var _guacaRef$current, _guacaRef$current$dis;
+ (_guacaRef$current = guacaRef.current) === null || _guacaRef$current === void 0 ? void 0 : (_guacaRef$current$dis = _guacaRef$current.disconnect) === null || _guacaRef$current$dis === void 0 ? void 0 : _guacaRef$current$dis.call(_guacaRef$current);
+ clearTimeout(reConnectRef.current);
+ };
+ }, []);
+ var fullChange = function fullChange() {
+ var _rfbRef$current;
+ if (instance_startup_type === 2) {
+ setTimeout(function () {
+ doResize();
+ }, 1500);
+ } else if ((rfbRef === null || rfbRef === void 0 ? void 0 : (_rfbRef$current = rfbRef.current) === null || _rfbRef$current === void 0 ? void 0 : _rfbRef$current.resizeSession) !== undefined) {
+ if ((0,fullscreen/* IsFull */.vp)()) {
+ rfbRef.current.resizeSession = true;
+ } else {
+ setTimeout(function () {
+ rfbRef.current.resizeSession = false;
+ }, 900);
+ }
+ }
+ };
+ (0,react.useEffect)(function () {
+ document.addEventListener((0,fullscreen/* fullscreenChange */.gH)(), fullChange);
+ return function () {
+ document.removeEventListener((0,fullscreen/* fullscreenChange */.gH)(), fullChange);
+ };
+ }, []);
+ function onCancelClipboardBox() {
+ dispatch({
+ type: Types.SHOW_CLIPBOARD_BOX,
+ payload: false
+ });
+ }
+ function onResizeSet() {
+ dispatch({
+ type: Types.SET_IS_LARGE,
+ payload: !isLarge
+ });
+ }
+ function onLayout(rfb) {
+ if (el.current) {
+ roRef.current = new ResizeObserver_es/* default */.Z(function (entries) {
+ var _iterator = createForOfIteratorHelper_default()(entries),
+ _step;
+ try {
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
+ var entry = _step.value;
+ if (instance_startup_type === 2) {
+ doResize();
+ }
+ if (entry.target.offsetHeight > 0 || entry.target.offsetWidth > 0) {
+ var _rfb$_eventHandlers;
+ rfb === null || rfb === void 0 ? void 0 : (_rfb$_eventHandlers = rfb._eventHandlers) === null || _rfb$_eventHandlers === void 0 ? void 0 : _rfb$_eventHandlers.windowResize();
+ }
+ }
+ } catch (err) {
+ _iterator.e(err);
+ } finally {
+ _iterator.f();
+ }
+ });
+ roRef.current.observe(el.current);
+ }
+ return roRef.current;
+ }
+ var getWindowVnc = /*#__PURE__*/function () {
+ var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
+ var _taskData$myshixun, _res$data, _res$data$data_list;
+ var res, _res$data2, _res$data3, _res$data4, _res$data4$cookie_opt;
+ return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
+ while (1) switch (_context3.prev = _context3.next) {
+ case 0:
+ _context3.next = 2;
+ return (0,service/* startInit */.sA)((_taskData$myshixun = taskData.myshixun) === null || _taskData$myshixun === void 0 ? void 0 : _taskData$myshixun.identifier, objectSpread2_default()(objectSpread2_default()({}, params), {}, {
+ taskId: params.taskId,
+ shixun_environment_id: shixun_environment_id,
+ tab_type: tab_type
+ }));
+ case 2:
+ res = _context3.sent;
+ if (!(res !== null && res !== void 0 && (_res$data = res.data) !== null && _res$data !== void 0 && (_res$data$data_list = _res$data.data_list) !== null && _res$data$data_list !== void 0 && _res$data$data_list.length)) {
+ _context3.next = 6;
+ break;
+ }
+ mediator/* default.publish */.Z.publish('pod-restrict-data', {
+ identifier: res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.identifier,
+ data_list: res === null || res === void 0 ? void 0 : (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.data_list
+ });
+ return _context3.abrupt("return", Promise.reject());
+ case 6:
+ if (!((res === null || res === void 0 ? void 0 : res.status) === -3)) {
+ _context3.next = 8;
+ break;
+ }
+ return _context3.abrupt("return", new Promise( /*#__PURE__*/function () {
+ var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(resolve, reject) {
+ return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
+ while (1) switch (_context2.prev = _context2.next) {
+ case 0:
+ modal/* default.confirm */.Z.confirm({
+ content: "检测到您已经开启了其他实验环境,请先关闭环境后,再连接",
+ okText: "立即关闭",
+ cancelText: "稍后关闭",
+ onOk: function () {
+ var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
+ return regeneratorRuntime_default()().wrap(function _callee$(_context) {
+ while (1) switch (_context.prev = _context.next) {
+ case 0:
+ clearTimeout(timeout.current);
+ setPercent(0);
+ _context.next = 4;
+ return (0,service/* closeWindowsVnc */.fA)(params.taskId, res === null || res === void 0 ? void 0 : res.message);
+ case 4:
+ setLinkNum(linkNum + 1);
+ return _context.abrupt("return");
+ case 6:
+ case "end":
+ return _context.stop();
+ }
+ }, _callee);
+ }));
+ function onOk() {
+ return _onOk.apply(this, arguments);
+ }
+ return onOk;
+ }()
+ });
+ case 1:
+ case "end":
+ return _context2.stop();
+ }
+ }, _callee2);
+ }));
+ return function (_x, _x2) {
+ return _ref3.apply(this, arguments);
+ };
+ }()));
+ case 8:
+ if (!((res === null || res === void 0 ? void 0 : res.status) === -1)) {
+ _context3.next = 10;
+ break;
+ }
+ throw new String(res === null || res === void 0 ? void 0 : res.message);
+ case 10:
+ if (!((res === null || res === void 0 ? void 0 : res.status) === 0)) {
+ _context3.next = 15;
+ break;
+ }
+ if (virtual_machine) {
+ (0,util/* setCookie */.d8)("PVEAuthCookie", res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : (_res$data4$cookie_opt = _res$data4.cookie_options) === null || _res$data4$cookie_opt === void 0 ? void 0 : _res$data4$cookie_opt.cookies_value, 1);
+ (0,util/* setCookie */.d8)("PVELangCookie", "zh_CN", 1);
+ }
+ mediator/* default.publish */.Z.publish('update-windows-time', res === null || res === void 0 ? void 0 : res.data);
+ // mediator.publish('update-windows-time', {remaining_time: 98000})
+ mediator/* default.publish */.Z.publish('send-tabs-result-data', objectSpread2_default()(objectSpread2_default()({}, res === null || res === void 0 ? void 0 : res.data), {}, {
+ index_tab: index_tab
+ }));
+ return _context3.abrupt("return", res);
+ case 15:
+ case "end":
+ return _context3.stop();
+ }
+ }, _callee3);
+ }));
+ return function getWindowVnc() {
+ return _ref2.apply(this, arguments);
+ };
+ }();
+ function onConnect() {
+ setPercent(100);
+ clearTimeout(timeout.current);
+ setTimeout(function () {
+ rfbRef.current.resizeSession = false;
+ dispatch({
+ type: Types.SET_LOADING,
+ payload: false
+ });
+ }, 1300);
+ // mediator.unsubscribe(`send-ctrl-alt-delete-${index_tab}`)
+ // mediator.subscribe(`send-ctrl-alt-delete-${index_tab}`, () => {
+ // rfbRef.current?.sendCtrlAltDel()
+ // message.success('发送成功')
+ // })
+ }
+
+ var toConnect = function toConnect() {
+ rfbRef.current = new rfb/* default */.Z(el.current, socketUrlRef.current, {
+ credentials: {
+ password: passwordRef.current
+ },
+ wsProtocols: ['binary'],
+ resize: "scale",
+ show_dot: true
+ });
+ rfbRef.current.removeEventListener('disconnect', onDisconnect);
+ rfbRef.current.removeEventListener('connect', onConnect);
+ rfbRef.current.removeEventListener('clipboard', onClipboardReceive);
+ roRef.current = onLayout(rfbRef.current);
+ rfbRef.current.viewOnly = params.view_only || false;
+ if (window_vnc_url) {
+ rfbRef.current.scaleViewport = true;
+ } else {
+ rfbRef.current.scaleViewport = params.scale || false;
+ }
+ rfbRef.current.scaleViewport = params.scale || true;
+ rfbRef.current.showDotCursor = true;
+ rfbRef.current.resizeSession = true;
+ rfbRef.current.addEventListener('disconnect', onDisconnect);
+ rfbRef.current.addEventListener('connect', onConnect);
+ rfbRef.current.addEventListener('clipboard', onClipboardReceive);
+ };
+ function onClipboardReceive(e) {
+ var rs = unicodeUnEscape(e.detail.text);
+ dispatch({
+ type: Types.SET_TRANSFER_CONTENT,
+ payload: rs
+ });
+ }
+ function onDisconnect() {
+ if (window_vnc_url) {
+ dispatch({
+ type: Types.SET_LOADING,
+ payload: true
+ });
+ setLinkNum(linkNum + 1);
+ } else {
+ clearTimeout(reConnectRef.current);
+ if (loading) return;
+ reConnectRef.current = setTimeout(function () {
+ setLinkNum(linkNum + 1);
+ }, 6000);
+ }
+ }
+ (0,react.useEffect)(function () {
+ mediator/* default.subscribe */.Z.subscribe("reset-linux-windows-vnc-".concat(index_tab), function () {
+ setLinkNum(linkNum + 1);
+ });
+ if ((window_vnc_url || vnc_url || linux_vnc || virtual_machine) && el.current) {
+ clearTimeout(timeout.current);
+ if (instance_startup_type === 2) {
+ doResize();
+ }
+ new Promise( /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
+ var params, res, _res$data5, _res$data5$link_url, _res$data6, character, _res$data7, _res$data8, urlParser, protocol, searchParams, host;
+ return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
+ while (1) switch (_context4.prev = _context4.next) {
+ case 0:
+ params = getJsonFromUrl();
+ _context4.next = 3;
+ return getWindowVnc();
+ case 3:
+ res = _context4.sent;
+ if (!(linux_vnc || virtual_machine)) {
+ _context4.next = 11;
+ break;
+ }
+ character = res !== null && res !== void 0 && (_res$data5 = res.data) !== null && _res$data5 !== void 0 && (_res$data5$link_url = _res$data5.link_url) !== null && _res$data5$link_url !== void 0 && _res$data5$link_url.includes('?') ? "&" : "?";
+ iframeRef.current.src = (res === null || res === void 0 ? void 0 : (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.link_url) + character + 'time=' + Date.now();
+ dispatch({
+ type: Types.SET_LOADING,
+ payload: false
+ });
+ return _context4.abrupt("return");
+ case 11:
+ if (window_vnc_url) {
+ passwordRef.current = 'Edu123';
+ socketUrlRef.current = decodeURIComponent(res === null || res === void 0 ? void 0 : (_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : _res$data7.link_url);
+ } else {
+ urlParser = new URL(decodeURIComponent(res === null || res === void 0 ? void 0 : (_res$data8 = res.data) === null || _res$data8 === void 0 ? void 0 : _res$data8.link_url)); //no IE11 support
+ protocol = urlParser.protocol, searchParams = urlParser.searchParams, host = urlParser.host;
+ passwordRef.current = searchParams.get('password');
+ socketUrlRef.current = "".concat(protocol === 'https:' ? 'wss' : 'ws', "://").concat(host, "/").concat(params.path || 'websockify');
+ }
+ case 12:
+ if (!(instance_startup_type === 2)) {
+ _context4.next = 15;
+ break;
+ }
+ setTimeout(function () {
+ var _taskData$myshixun2;
+ onLayout();
+ iframeRef.current.style.cssText = iframeRef.current.style.cssText + "width:1920px;height:1080px;position:initial";
+ iframeRef.current.src = "/rdp.html?tpiId=".concat(taskData === null || taskData === void 0 ? void 0 : (_taskData$myshixun2 = taskData.myshixun) === null || _taskData$myshixun2 === void 0 ? void 0 : _taskData$myshixun2.id, "&envId=").concat(shixun_environment_id, "&tpiType=").concat(tpi_type);
+ dispatch({
+ type: Types.SET_LOADING,
+ payload: false
+ });
+ }, 5000);
+ return _context4.abrupt("return");
+ case 15:
+ toConnect();
+ case 16:
+ case "end":
+ return _context4.stop();
+ }
+ }, _callee4);
+ })));
+ var unsub = mediator/* default.subscribe */.Z.subscribe("vnc-reset-".concat(index_tab), function (text) {
+ if (text === '取消') {
+ dispatch({
+ type: Types.SET_LOADING,
+ payload: false
+ });
+ return;
+ }
+ setPercent(0);
+ dispatch({
+ type: Types.SET_STATE,
+ payload: {
+ loading: true,
+ mes: text || '实验环境重置中'
+ }
+ });
+ });
+ var unsub2 = mediator/* default.subscribe */.Z.subscribe("send-ctrl-alt-delete-".concat(index_tab), function () {
+ var _rfbRef$current2;
+ (_rfbRef$current2 = rfbRef.current) === null || _rfbRef$current2 === void 0 ? void 0 : _rfbRef$current2.sendCtrlAltDel();
+ message/* default.success */.ZP.success('发送成功');
+ });
+ var unSub3 = mediator/* default.subscribe */.Z.subscribe("show-clipboard-box-".concat(index_tab), function () {
+ dispatch({
+ type: Types.SHOW_CLIPBOARD_BOX,
+ payload: true
+ });
+ });
+ setPercent(0);
+ return function () {
+ var _rfbRef$current3, _rfbRef$current4, _rfbRef$current5, _roRef$current;
+ (_rfbRef$current3 = rfbRef.current) === null || _rfbRef$current3 === void 0 ? void 0 : _rfbRef$current3.removeEventListener('disconnect', onDisconnect);
+ (_rfbRef$current4 = rfbRef.current) === null || _rfbRef$current4 === void 0 ? void 0 : _rfbRef$current4.removeEventListener('connect', onConnect);
+ (_rfbRef$current5 = rfbRef.current) === null || _rfbRef$current5 === void 0 ? void 0 : _rfbRef$current5.removeEventListener('clipboard', onClipboardReceive);
+ unsub();
+ unsub2();
+ unSub3();
+ el.current && ((_roRef$current = roRef.current) === null || _roRef$current === void 0 ? void 0 : _roRef$current.unobserve(el.current));
+ };
+ }
+ }, [vnc_url, window_vnc_url, linux_vnc, linkNum, shixun_environment_id, tab_type]);
+ function clipboardSend(_x3) {
+ return _clipboardSend.apply(this, arguments);
+ }
+ function _clipboardSend() {
+ _clipboardSend = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5(content) {
+ var s, res, _rfbRef$current6;
+ return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
+ while (1) switch (_context5.prev = _context5.next) {
+ case 0:
+ if (!vnc_url) {
+ _context5.next = 8;
+ break;
+ }
+ s = content;
+ _context5.next = 4;
+ return (0,fetch/* default */.ZP)("/api/tasks/".concat(params.taskId, "/vnc_paste.json"), {
+ method: "post",
+ body: {
+ content: Base64.encode(s),
+ shixun_environment_id: shixun_environment_id
+ }
+ });
+ case 4:
+ res = _context5.sent;
+ if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
+ dispatch({
+ type: Types.SET_TRANSFER_CONTENT,
+ payload: content
+ });
+ message/* default.success */.ZP.success('保存成功!你可以在实验环境中粘贴该内容');
+ onCancelClipboardBox();
+ }
+ _context5.next = 12;
+ break;
+ case 8:
+ (_rfbRef$current6 = rfbRef.current) === null || _rfbRef$current6 === void 0 ? void 0 : _rfbRef$current6.clipboardPasteFrom(content);
+ dispatch({
+ type: Types.SET_TRANSFER_CONTENT,
+ payload: content
+ });
+ message/* default.success */.ZP.success('保存成功!你可以在实验环境中粘贴该内容');
+ onCancelClipboardBox();
+ case 12:
+ case "end":
+ return _context5.stop();
+ }
+ }, _callee5);
+ }));
+ return _clipboardSend.apply(this, arguments);
+ }
+ function doResize() {
+ // function doResize(event, ui) {
+ var scale, origin;
+ scale = Math.min(document.getElementById("task-right-panel").clientWidth / 1920, document.getElementById("task-right-panel").clientHeight / 1260);
+ iframeRef.current.parentElement.className = "wh1080p";
+ iframeRef.current.parentElement.style.cssText = "transform:scale(".concat(scale, ");transform-origin:center center");
+ el.current.style.cssText = "translate(-50%, -50%) " + "scale(" + scale + ")";
+ }
+ (0,react.useEffect)(function () {
+ if (percent == 0) {
+ clearTimeout(timeout.current);
+ increase();
+ }
+ }, [percent]);
+ var increase = function increase() {
+ if (percent > 99) {
+ percent = 99;
+ } else {
+ percent = percent + 1;
+ timeout.current = setTimeout(function () {
+ increase();
+ }, 1500);
+ }
+ if (percent < 100) setPercent(percent);
+ };
+ var showIframe = (0,react.useMemo)(function () {
+ if (loading) {
+ return 'none';
+ }
+ if (linux_vnc || virtual_machine || window_vnc_url && instance_startup_type === 2) {
+ return 'block';
+ } else {
+ return 'none';
+ }
+ }, [linux_vnc, loading, virtual_machine, window_vnc_url]);
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)(react.Fragment, {
+ children: [isLarge && /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
+ className: "btn-vnc-resize",
+ onClick: onResizeSet,
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
+ className: "iconfont icon-tuichuquanping"
+ })
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ style: {
+ width: "100%",
+ height: "100%",
+ overflow: "hidden",
+ position: "absolute",
+ display: showIframe === "block" ? "flex" : "none",
+ alignItems: "center",
+ justifyContent: "center",
+ zIndex: 6
+ },
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("iframe", {
+ style: {
+ position: isLarge ? "fixed" : "absolute",
+ left: 0,
+ top: isLarge ? 40 : 0,
+ width: "100%",
+ height: "calc(100% - ".concat(isLarge ? "100px" : "0px", ")")
+ },
+ frameBorder: "0",
+ ref: iframeRef,
+ allowFullScreen: true
+ })
+ })
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
+ style: {
+ position: isLarge ? "fixed" : "absolute",
+ left: 0,
+ top: isLarge ? 40 : 0,
+ zIndex: 5,
+ width: "100%",
+ height: "calc(100% - ".concat(isLarge ? "100px" : "0px", ")")
+ },
+ className: "".concat(window_vnc_url ? "vnc-panel-wrapper-windows" : "vnc-panel-wrapper", " ").concat(isLarge ? 'full-screen' : ''),
+ children: [loading ? /*#__PURE__*/(0,jsx_runtime.jsx)(Spinner/* default */.Z, {
+ message: mes,
+ style: {
+ color: '#0152d9'
+ },
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ className: "tc",
+ style: {
+ width: 500,
+ margin: "0 auto",
+ color: "#FFF"
+ },
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(progress/* default */.Z, {
+ percent: percent,
+ format: function format(p) {
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
+ className: "c-white",
+ children: [p, "%"]
+ });
+ }
+ })
+ })
+ }) : null, /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ ref: el,
+ className: "vnc-panel ".concat(loading ? "hidden zIndexf1" : "animated fadeIn")
+ })]
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(components_modal/* default */.Z, {
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
+ title: "\u590D\u5236\u7C98\u8D34",
+ centered: true,
+ maskClosable: false,
+ open: showClipBoardBox,
+ onCancel: onCancelClipboardBox,
+ footer: null,
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(clipboard_box, {
+ onCancel: onCancelClipboardBox,
+ onSave: clipboardSend,
+ content: transferContent
+ })
+ })
+ })]
+ });
+});
+
+/***/ }),
+
+/***/ 77441:
+/*!***********************************************************!*\
+ !*** ./src/pages/tasks/xterm-panel/index.jsx + 1 modules ***!
+ \***********************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, {
+ "Z": function() { return /* binding */ xterm_panel; }
+});
+
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
+var regeneratorRuntime = __webpack_require__(17061);
+var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectSpread2.js
+var objectSpread2 = __webpack_require__(42122);
+var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
+var asyncToGenerator = __webpack_require__(17156);
+var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js
+var createForOfIteratorHelper = __webpack_require__(74704);
+var createForOfIteratorHelper_default = /*#__PURE__*/__webpack_require__.n(createForOfIteratorHelper);
+// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
+var slicedToArray = __webpack_require__(27424);
+var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
+// EXTERNAL MODULE: ./node_modules/react/index.js
+var react = __webpack_require__(67294);
+// EXTERNAL MODULE: ./node_modules/js-base64/base64.js
+var base64 = __webpack_require__(19575);
+// EXTERNAL MODULE: ./node_modules/xterm/lib/xterm.js
+var xterm = __webpack_require__(12320);
+// EXTERNAL MODULE: ./node_modules/xterm/css/xterm.css
+var css_xterm = __webpack_require__(89629);
+;// CONCATENATED MODULE: ./src/pages/tasks/xterm-panel/index.less?modules
+// extracted by mini-css-extract-plugin
+/* harmony default export */ var xterm_panelmodules = ({"xterm-panel":"xterm-panel___XA0p9"});
+// EXTERNAL MODULE: ./src/components/mediator.js
+var mediator = __webpack_require__(91562);
+// EXTERNAL MODULE: ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
+var ResizeObserver_es = __webpack_require__(91033);
+// EXTERNAL MODULE: ./src/pages/tasks/service/index.js
+var service = __webpack_require__(66446);
+// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
+var _umi_production_exports = __webpack_require__(89214);
+// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
+var jsx_runtime = __webpack_require__(85893);
+;// CONCATENATED MODULE: ./src/pages/tasks/xterm-panel/index.jsx
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+var TimeTicket = 30000;
+
+//建立 websockt 来交互
+//根据容器大小计算行数和列数并做到自适应
+//socket 与 term 需要分开初始化 因为socket 可能重置连接
+//mediator 监听消息,如果和id匹配,则建立连接,重置,或关闭连接
+
+/* harmony default export */ var xterm_panel = (function (_ref) {
+ var _ref$itemData = _ref.itemData,
+ itemData = _ref$itemData === void 0 ? {} : _ref$itemData,
+ game = _ref.game,
+ myshixun = _ref.myshixun;
+ var params = (0,_umi_production_exports.useParams)();
+ var _useState = (0,react.useState)(null),
+ _useState2 = slicedToArray_default()(_useState, 2),
+ term = _useState2[0],
+ setTerm = _useState2[1];
+ var _useState3 = (0,react.useState)({}),
+ _useState4 = slicedToArray_default()(_useState3, 2),
+ sshConfigData = _useState4[0],
+ setSshConfigData = _useState4[1];
+ var link_url = sshConfigData.link_url,
+ password = sshConfigData.password,
+ port = sshConfigData.port;
+ var el = (0,react.useRef)();
+ var socket = (0,react.useRef)();
+ var isFirstConnected = (0,react.useRef)(false);
+ var shixun_environment_id = itemData.shixun_environment_id,
+ position = itemData.position,
+ tab_type = itemData.tab_type,
+ index_tab = itemData.index_tab;
+ (0,react.useEffect)(function () {
+ getInitData();
+ }, []);
+ function getColsAndRows(width, height, term) {
+ var w = term._core._renderService.dimensions.actualCellWidth || 9.5;
+ var h = term._core._renderService.dimensions.actualCellHeight || 18;
+ var rows = Math.floor(height / h);
+ var cols = Math.floor(width / w);
+ return [cols, rows];
+ }
+ function onLayout(term, el) {
+ var ro = new ResizeObserver_es/* default */.Z(function (entries) {
+ var _iterator = createForOfIteratorHelper_default()(entries),
+ _step;
+ try {
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
+ var entry = _step.value;
+ if (entry.target.offsetHeight > 0 || entry.target.offsetWidth > 0) {
+ var _getColsAndRows = getColsAndRows(entry.target.offsetWidth, entry.target.offsetHeight, term),
+ _getColsAndRows2 = slicedToArray_default()(_getColsAndRows, 2),
+ cols = _getColsAndRows2[0],
+ rows = _getColsAndRows2[1];
+ console.log('cols, rows', cols, rows);
+ mediator/* default.publish */.Z.publish("ssh-xterm-resize-".concat(index_tab), {
+ columns: cols,
+ rows: rows,
+ width: entry.target.offsetWidth,
+ height: entry.target.offsetHeight
+ });
+ term.resize(cols, rows);
+ var data1 = base64.Base64.decode('IA==');
+ var data = base64.Base64.decode('CBtbSw==');
+ term.write(data1);
+ term.write(data);
+ }
+ }
+ } catch (err) {
+ _iterator.e(err);
+ } finally {
+ _iterator.f();
+ }
+ });
+ ro.observe(el);
+ return ro;
+ }
+ function getInitData() {
+ return _getInitData.apply(this, arguments);
+ } //term init
+ function _getInitData() {
+ _getInitData = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
+ var _response$data, _response$data$data_l;
+ var response, _response$data2, _response$data3;
+ return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
+ while (1) switch (_context3.prev = _context3.next) {
+ case 0:
+ _context3.next = 2;
+ return (0,service/* startInit */.sA)(myshixun === null || myshixun === void 0 ? void 0 : myshixun.identifier, {
+ shixun_environment_id: shixun_environment_id,
+ tab_type: tab_type,
+ game_id: game.id
+ });
+ case 2:
+ response = _context3.sent;
+ if (!(response !== null && response !== void 0 && (_response$data = response.data) !== null && _response$data !== void 0 && (_response$data$data_l = _response$data.data_list) !== null && _response$data$data_l !== void 0 && _response$data$data_l.length)) {
+ _context3.next = 6;
+ break;
+ }
+ mediator/* default.publish */.Z.publish('pod-restrict-data', {
+ identifier: response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.identifier,
+ data_list: response === null || response === void 0 ? void 0 : (_response$data3 = response.data) === null || _response$data3 === void 0 ? void 0 : _response$data3.data_list
+ });
+ return _context3.abrupt("return");
+ case 6:
+ if (!((response === null || response === void 0 ? void 0 : response.status) === -3)) {
+ _context3.next = 8;
+ break;
+ }
+ return _context3.abrupt("return", new Promise( /*#__PURE__*/function () {
+ var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(resolve, reject) {
+ return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
+ while (1) switch (_context2.prev = _context2.next) {
+ case 0:
+ Modal.confirm({
+ content: '检测到您已经开启了其他实验环境,请先关闭环境后,再连接',
+ okText: '立即关闭',
+ cancelText: '稍后关闭',
+ onOk: function () {
+ var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
+ return regeneratorRuntime_default()().wrap(function _callee$(_context) {
+ while (1) switch (_context.prev = _context.next) {
+ case 0:
+ _context.next = 2;
+ return closeWindowsVnc(params.taskId, response === null || response === void 0 ? void 0 : response.message);
+ case 2:
+ init();
+ return _context.abrupt("return");
+ case 4:
+ case "end":
+ return _context.stop();
+ }
+ }, _callee);
+ }));
+ function onOk() {
+ return _onOk.apply(this, arguments);
+ }
+ return onOk;
+ }()
+ });
+ case 1:
+ case "end":
+ return _context2.stop();
+ }
+ }, _callee2);
+ }));
+ return function (_x, _x2) {
+ return _ref2.apply(this, arguments);
+ };
+ }()));
+ case 8:
+ if ((response === null || response === void 0 ? void 0 : response.status) === 0) {
+ mediator/* default.publish */.Z.publish('update-windows-time', response === null || response === void 0 ? void 0 : response.data);
+ mediator/* default.publish */.Z.publish('send-tabs-result-data', objectSpread2_default()(objectSpread2_default()({}, response === null || response === void 0 ? void 0 : response.data), {}, {
+ index_tab: index_tab
+ }));
+ setSshConfigData(response.data);
+ setTimeout(function () {
+ return mediator/* default.publish */.Z.publish("create-socket-".concat(index_tab));
+ }, 300);
+ }
+ case 9:
+ case "end":
+ return _context3.stop();
+ }
+ }, _callee3);
+ }));
+ return _getInitData.apply(this, arguments);
+ }
+ (0,react.useEffect)(function () {
+ if (el.current && link_url) {
+ var _term = new xterm.Terminal({
+ fontSize: 16,
+ rendererType: 'dom'
+ });
+ _term.open(el.current);
+ _term.onData(function (data) {
+ if (socket.current) {
+ if (socket.current.readyState === 1) {
+ socket.current.send(JSON.stringify({
+ tp: 'client',
+ data: data
+ }));
+ }
+ }
+ });
+ _term.write('Connecting...');
+ setTerm(_term);
+ var ro = onLayout(_term, el.current);
+ return function () {
+ _term.dispose();
+ el.current && (ro === null || ro === void 0 ? void 0 : ro.unobserve(el.current));
+ };
+ }
+ }, [link_url, el.current]);
+ (0,react.useEffect)(function () {
+ if (term && link_url) {
+ var createSocket = function createSocket() {
+ var socketInstance = new WebSocket(link_url);
+ socket.current = socketInstance;
+ socketInstance.onopen = function () {
+ var container = term.element.parentElement;
+ if (container) {
+ var width = container.offsetWidth;
+ var height = container.offsetHeight;
+ console.log('init', {
+ tp: 'init',
+ data: objectSpread2_default()(objectSpread2_default()({}, sshConfigData), {}, {
+ secret: password,
+ width: width,
+ height: height,
+ rows: term.rows,
+ columns: term.cols
+ })
+ });
+ socketInstance.send(JSON.stringify({
+ tp: 'init',
+ data: objectSpread2_default()(objectSpread2_default()({}, sshConfigData), {}, {
+ secret: password,
+ width: width,
+ height: height,
+ rows: term.rows,
+ columns: term.cols
+ })
+ }));
+ }
+ term.focus();
+ };
+ socketInstance.onerror = function (error) {
+ console.log('------in socket error----', error, socketInstance, link_url);
+ };
+ socketInstance.onmessage = function (event) {
+ if (!isFirstConnected.current) {
+ term.write('\r');
+ // term.focus()
+ setTimeout(function () {
+ // term.clear();
+ }, 1000);
+ }
+ isFirstConnected.current = true;
+ console.log('event:', event);
+ var data = base64.Base64.decode(event.data.toString());
+ var w = term._core._renderService.dimensions.actualCellWidth || 9.5;
+ console.log('data:', data, w, term);
+ term.write(data);
+ };
+ var tid = setInterval(function () {
+ if (socket.current) {
+ var _socket$current;
+ (_socket$current = socket.current) === null || _socket$current === void 0 ? void 0 : _socket$current.send(JSON.stringify({
+ tp: 'h'
+ }));
+ }
+ }, TimeTicket);
+ socketInstance.onclose = function (evt) {
+ if (tid) {
+ clearInterval(tid);
+ }
+ console.log(tid, 'tid', index_tab);
+ term.write('\r\nconnection closed');
+ };
+ };
+ var unSubCreate = mediator/* default.subscribe */.Z.subscribe("create-socket-".concat(index_tab), function () {
+ createSocket();
+ });
+ var unSubResize = mediator/* default.subscribe */.Z.subscribe("ssh-xterm-resize-".concat(index_tab), function (option) {
+ if (socket.current && socket.current.readyState === 1) {
+ socket.current.send(JSON.stringify({
+ tp: 'resize',
+ data: objectSpread2_default()({}, option)
+ }));
+ }
+ });
+ return function () {
+ unSubCreate();
+ unSubResize();
+ if (socket.current) {
+ socket.current.close();
+ isFirstConnected.current = false;
+ }
+ };
+ }
+ }, [term, link_url, port]);
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
+ ref: el,
+ className: xterm_panelmodules["xterm-panel"],
+ children: !link_url ? /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
+ style: {
+ color: '#fff'
+ },
+ children: "\u6B63\u5728\u8FDE\u63A5\u547D\u4EE4\u884C\u670D\u52A1..."
+ }) : null
+ });
+});
+
+/***/ }),
+
/***/ 15994:
/*!*********************************!*\
!*** ./src/utils/fullscreen.ts ***!
@@ -336,6 +1797,17 @@ function IsFull() {
// }
// });
+/***/ }),
+
+/***/ 45954:
+/*!*********************************************!*\
+ !*** ./src/pages/tasks/vnc-view/index.less ***!
+ \*********************************************/
+/***/ (function() {
+
+// extracted by mini-css-extract-plugin
+
+
/***/ }),
/***/ 75008:
@@ -779,33 +2251,6 @@ var EyeOutlined_EyeOutlined = function EyeOutlined(props, ref) {
EyeOutlined_EyeOutlined.displayName = 'EyeOutlined';
/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/react.forwardRef(EyeOutlined_EyeOutlined));
-/***/ }),
-
-/***/ 25783:
-/*!*************************************************************************************!*\
- !*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/icons-svg/es/asn/SearchOutlined */ 509);
-/* harmony import */ var _components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/AntdIcon */ 93771);
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-var SearchOutlined = function SearchOutlined(props, ref) {
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_AntdIcon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, props), {}, {
- ref: ref,
- icon: _ant_design_icons_svg_es_asn_SearchOutlined__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
- }));
-};
-SearchOutlined.displayName = 'SearchOutlined';
-/* harmony default export */ __webpack_exports__["Z"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(SearchOutlined));
-
/***/ })
}]);
\ No newline at end of file
diff --git a/p__User__Detail__Topics__Detail__index.async.js b/p__User__Detail__Topics__Detail__index.async.js
index 3d800552ff..14496f7221 100644
--- a/p__User__Detail__Topics__Detail__index.async.js
+++ b/p__User__Detail__Topics__Detail__index.async.js
@@ -670,7 +670,7 @@ var _excluded = ["userDetail", "globalSetting", "loading", "user", "dispatch"];
var SendToClassModal = function SendToClassModal(_ref) {
- var _userDetail$actionTab6, _userDetail$actionTab7, _user$userInfo2;
+ var _userDetail$actionTab6, _userDetail$actionTab7, _user$userInfo2, _userDetail$actionTab8, _userDetail$actionTab9;
var userDetail = _ref.userDetail,
globalSetting = _ref.globalSetting,
loading = _ref.loading,
@@ -899,7 +899,8 @@ var SendToClassModal = function SendToClassModal(_ref) {
className: SendToClassModalmodules.colorFF0000,
children: "\u8BF7\u5148\u9009\u62E9\u8BFE\u5802"
})]
- })
+ }),
+ show: true
}, {
label: '实践课程',
key: 'subject',
@@ -909,8 +910,11 @@ var SendToClassModal = function SendToClassModal(_ref) {
setStages: setStages,
hasError: hasError,
setHasError: setHasError
- })
- }]
+ }),
+ show: ((_userDetail$actionTab8 = userDetail.actionTabs) === null || _userDetail$actionTab8 === void 0 ? void 0 : (_userDetail$actionTab9 = _userDetail$actionTab8.params) === null || _userDetail$actionTab9 === void 0 ? void 0 : _userDetail$actionTab9.object_type) === 'videos'
+ }].filter(function (item) {
+ return item.show;
+ })
})
});
};
diff --git a/p__User__Detail__Topics__Exercise__Detail__index.async.js b/p__User__Detail__Topics__Exercise__Detail__index.async.js
index d54535711b..383131dece 100644
--- a/p__User__Detail__Topics__Exercise__Detail__index.async.js
+++ b/p__User__Detail__Topics__Exercise__Detail__index.async.js
@@ -3728,7 +3728,7 @@ var _excluded = ["userDetail", "globalSetting", "loading", "user", "dispatch"];
var SendToClassModal = function SendToClassModal(_ref) {
- var _userDetail$actionTab6, _userDetail$actionTab7, _user$userInfo2;
+ var _userDetail$actionTab6, _userDetail$actionTab7, _user$userInfo2, _userDetail$actionTab8, _userDetail$actionTab9;
var userDetail = _ref.userDetail,
globalSetting = _ref.globalSetting,
loading = _ref.loading,
@@ -3957,7 +3957,8 @@ var SendToClassModal = function SendToClassModal(_ref) {
className: SendToClassModalmodules.colorFF0000,
children: "\u8BF7\u5148\u9009\u62E9\u8BFE\u5802"
})]
- })
+ }),
+ show: true
}, {
label: '实践课程',
key: 'subject',
@@ -3967,8 +3968,11 @@ var SendToClassModal = function SendToClassModal(_ref) {
setStages: setStages,
hasError: hasError,
setHasError: setHasError
- })
- }]
+ }),
+ show: ((_userDetail$actionTab8 = userDetail.actionTabs) === null || _userDetail$actionTab8 === void 0 ? void 0 : (_userDetail$actionTab9 = _userDetail$actionTab8.params) === null || _userDetail$actionTab9 === void 0 ? void 0 : _userDetail$actionTab9.object_type) === 'videos'
+ }].filter(function (item) {
+ return item.show;
+ })
})
});
};
diff --git a/p__User__Detail__Topics__Poll__Detail__index.async.js b/p__User__Detail__Topics__Poll__Detail__index.async.js
index 2fc023163b..1f6873972f 100644
--- a/p__User__Detail__Topics__Poll__Detail__index.async.js
+++ b/p__User__Detail__Topics__Poll__Detail__index.async.js
@@ -2163,7 +2163,7 @@ var _excluded = ["userDetail", "globalSetting", "loading", "user", "dispatch"];
var SendToClassModal = function SendToClassModal(_ref) {
- var _userDetail$actionTab6, _userDetail$actionTab7, _user$userInfo2;
+ var _userDetail$actionTab6, _userDetail$actionTab7, _user$userInfo2, _userDetail$actionTab8, _userDetail$actionTab9;
var userDetail = _ref.userDetail,
globalSetting = _ref.globalSetting,
loading = _ref.loading,
@@ -2392,7 +2392,8 @@ var SendToClassModal = function SendToClassModal(_ref) {
className: SendToClassModalmodules.colorFF0000,
children: "\u8BF7\u5148\u9009\u62E9\u8BFE\u5802"
})]
- })
+ }),
+ show: true
}, {
label: '实践课程',
key: 'subject',
@@ -2402,8 +2403,11 @@ var SendToClassModal = function SendToClassModal(_ref) {
setStages: setStages,
hasError: hasError,
setHasError: setHasError
- })
- }]
+ }),
+ show: ((_userDetail$actionTab8 = userDetail.actionTabs) === null || _userDetail$actionTab8 === void 0 ? void 0 : (_userDetail$actionTab9 = _userDetail$actionTab8.params) === null || _userDetail$actionTab9 === void 0 ? void 0 : _userDetail$actionTab9.object_type) === 'videos'
+ }].filter(function (item) {
+ return item.show;
+ })
})
});
};
diff --git a/p__User__Detail__Topics__index.async.js b/p__User__Detail__Topics__index.async.js
index 0a18785ecf..6bb57f98a7 100644
--- a/p__User__Detail__Topics__index.async.js
+++ b/p__User__Detail__Topics__index.async.js
@@ -290,7 +290,7 @@ var _excluded = ["userDetail", "globalSetting", "loading", "user", "dispatch"];
var SendToClassModal = function SendToClassModal(_ref) {
- var _userDetail$actionTab6, _userDetail$actionTab7, _user$userInfo2;
+ var _userDetail$actionTab6, _userDetail$actionTab7, _user$userInfo2, _userDetail$actionTab8, _userDetail$actionTab9;
var userDetail = _ref.userDetail,
globalSetting = _ref.globalSetting,
loading = _ref.loading,
@@ -519,7 +519,8 @@ var SendToClassModal = function SendToClassModal(_ref) {
className: SendToClassModalmodules.colorFF0000,
children: "\u8BF7\u5148\u9009\u62E9\u8BFE\u5802"
})]
- })
+ }),
+ show: true
}, {
label: '实践课程',
key: 'subject',
@@ -529,8 +530,11 @@ var SendToClassModal = function SendToClassModal(_ref) {
setStages: setStages,
hasError: hasError,
setHasError: setHasError
- })
- }]
+ }),
+ show: ((_userDetail$actionTab8 = userDetail.actionTabs) === null || _userDetail$actionTab8 === void 0 ? void 0 : (_userDetail$actionTab9 = _userDetail$actionTab8.params) === null || _userDetail$actionTab9 === void 0 ? void 0 : _userDetail$actionTab9.object_type) === 'videos'
+ }].filter(function (item) {
+ return item.show;
+ })
})
});
};
diff --git a/p__User__Detail__Videos__index.async.js b/p__User__Detail__Videos__index.async.js
index f8c697d964..6fb976ada1 100644
--- a/p__User__Detail__Videos__index.async.js
+++ b/p__User__Detail__Videos__index.async.js
@@ -420,7 +420,7 @@ var _excluded = ["userDetail", "globalSetting", "loading", "user", "dispatch"];
var SendToClassModal = function SendToClassModal(_ref) {
- var _userDetail$actionTab6, _userDetail$actionTab7, _user$userInfo2;
+ var _userDetail$actionTab6, _userDetail$actionTab7, _user$userInfo2, _userDetail$actionTab8, _userDetail$actionTab9;
var userDetail = _ref.userDetail,
globalSetting = _ref.globalSetting,
loading = _ref.loading,
@@ -649,7 +649,8 @@ var SendToClassModal = function SendToClassModal(_ref) {
className: SendToClassModalmodules.colorFF0000,
children: "\u8BF7\u5148\u9009\u62E9\u8BFE\u5802"
})]
- })
+ }),
+ show: true
}, {
label: '实践课程',
key: 'subject',
@@ -659,8 +660,11 @@ var SendToClassModal = function SendToClassModal(_ref) {
setStages: setStages,
hasError: hasError,
setHasError: setHasError
- })
- }]
+ }),
+ show: ((_userDetail$actionTab8 = userDetail.actionTabs) === null || _userDetail$actionTab8 === void 0 ? void 0 : (_userDetail$actionTab9 = _userDetail$actionTab8.params) === null || _userDetail$actionTab9 === void 0 ? void 0 : _userDetail$actionTab9.object_type) === 'videos'
+ }].filter(function (item) {
+ return item.show;
+ })
})
});
};
diff --git a/p__tasks__Jupyter__index.async.js b/p__tasks__Jupyter__index.async.js
index 8ed230f21f..03b068e0f8 100644
--- a/p__tasks__Jupyter__index.async.js
+++ b/p__tasks__Jupyter__index.async.js
@@ -1,1720 +1,6 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[20700],{
-/***/ 66446:
-/*!******************************************!*\
- !*** ./src/pages/tasks/service/index.js ***!
- \******************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "JW": function() { return /* binding */ setUnity3dStatus; },
-/* harmony export */ "Jd": function() { return /* binding */ rebootEsc; },
-/* harmony export */ "Kl": function() { return /* binding */ addVncTime; },
-/* harmony export */ "L5": function() { return /* binding */ saveTaskStar; },
-/* harmony export */ "MH": function() { return /* binding */ getChooseUnlockAnswer; },
-/* harmony export */ "MI": function() { return /* binding */ addMyRepositoryFile; },
-/* harmony export */ "Qo": function() { return /* binding */ getCodeGameStatus; },
-/* harmony export */ "SO": function() { return /* binding */ fetchPathsTaskList; },
-/* harmony export */ "Tf": function() { return /* binding */ resetGitCode; },
-/* harmony export */ "XO": function() { return /* binding */ fetchTaskInfo; },
-/* harmony export */ "Xy": function() { return /* binding */ codeGameBuild; },
-/* harmony export */ "Y0": function() { return /* binding */ plusOrCancelPraise; },
-/* harmony export */ "Ye": function() { return /* binding */ setStartPermanent; },
-/* harmony export */ "Yv": function() { return /* binding */ stopLogOutput; },
-/* harmony export */ "ZH": function() { return /* binding */ commitFiles; },
-/* harmony export */ "am": function() { return /* binding */ resetEnvironment; },
-/* harmony export */ "bD": function() { return /* binding */ deleteMyGitFile; },
-/* harmony export */ "fA": function() { return /* binding */ closeWindowsVnc; },
-/* harmony export */ "fY": function() { return /* binding */ getRemainingTime; },
-/* harmony export */ "g6": function() { return /* binding */ fetchTaskList; },
-/* harmony export */ "g7": function() { return /* binding */ moveMyGitFile; },
-/* harmony export */ "gT": function() { return /* binding */ fetchPictures; },
-/* harmony export */ "gn": function() { return /* binding */ pullFiles; },
-/* harmony export */ "h$": function() { return /* binding */ logOutput; },
-/* harmony export */ "hG": function() { return /* binding */ resetPassedCode; },
-/* harmony export */ "i8": function() { return /* binding */ getRanking; },
-/* harmony export */ "j3": function() { return /* binding */ getUnlockAnswer; },
-/* harmony export */ "lH": function() { return /* binding */ getAnswerInfo; },
-/* harmony export */ "li": function() { return /* binding */ fetchCode; },
-/* harmony export */ "n4": function() { return /* binding */ updateCode; },
-/* harmony export */ "pU": function() { return /* binding */ fetchRepos; },
-/* harmony export */ "qK": function() { return /* binding */ restoreCode; },
-/* harmony export */ "sA": function() { return /* binding */ startInit; },
-/* harmony export */ "sP": function() { return /* binding */ getChooseAnswerInfo; },
-/* harmony export */ "t$": function() { return /* binding */ unlockTestCase; },
-/* harmony export */ "zl": function() { return /* binding */ evalateChooseGame; }
-/* harmony export */ });
-/* unused harmony exports getNoticeDetail, closeSSh, getMyFileContent */
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js */ 17061);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/asyncToGenerator.js */ 17156);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectSpread2.js */ 42122);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__);
-/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/utils/fetch */ 84519);
-/* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/utils/util */ 29427);
-
-
-
-
-
-
-//判断是否来自教学课堂助教查看实训
-var urlParamsAll = (0,_utils_util__WEBPACK_IMPORTED_MODULE_4__/* .getJsonFromUrl */ .oP)();
-var urlParams = {};
-if (urlParamsAll !== null && urlParamsAll !== void 0 && urlParamsAll.homework_common_id) {
- urlParams.homework_common_id = urlParamsAll === null || urlParamsAll === void 0 ? void 0 : urlParamsAll.homework_common_id;
-}
-if (urlParamsAll !== null && urlParamsAll !== void 0 && urlParamsAll.exercisesId) {
- urlParams.exercise_id = urlParamsAll === null || urlParamsAll === void 0 ? void 0 : urlParamsAll.exercisesId;
-}
-function fetchTaskInfo(id) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, ".json"), urlParams);
-}
-function fetchTaskList(id) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/challenges.json"));
-}
-function fetchPathsTaskList(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/subject_challenges.json"), params);
-}
-function saveTaskStar(id, shixunId, star) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/star.json"), {
- shixun_id: shixunId,
- star: star
- });
-}
-function fetchCode(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/rep_content.json"), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams));
-}
-function updateCode(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("myshixuns/".concat(id, "/update_file.json"), params);
-}
-function restoreCode(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/reset_original_code.json"), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams));
-}
-function resetGitCode(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("myshixuns/".concat(id, "/reset_repository.json"), params);
-}
-function resetPassedCode(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/reset_passed_code.json"), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams));
-}
-function codeGameBuild(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/game_build.json"), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams));
-}
-function getCodeGameStatus(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/game_status.json"), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams));
-}
-function evalateChooseGame(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/choose_build.json"), _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams));
-}
-
-//获取环境剩余时间
-function getRemainingTime(id) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/get_remaining_time.json"));
-}
-function fetchPictures(id) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/picture_display.json"), urlParams);
-}
-function getNoticeDetail(id, params) {
- return get("courses/".concat(id, "/inform_detail.json"), params);
-}
-function plusOrCancelPraise(id) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/plus_or_cancel_praise.json"));
-}
-function fetchRepos(id) {
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("myshixuns/".concat(id, "/repository.json"), params);
-}
-
-//添加新方法
-function startInit(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/start.json"), params || {});
-}
-function closeSSh(id) {
- return get("myshixuns/".concat(id, "/reset_pod.json"));
-}
-function resetEnvironment(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/reset_pod.json"), params);
-}
-
-// 重启云主机
-function rebootEsc(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/tasks/".concat(id, "/reboot_esc.json"), {
- method: 'post',
- body: params
- });
-}
-function unlockTestCase(id) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/check_test_sets.json"));
-}
-function getAnswerInfo(id) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/get_answer_info.json"));
-}
-function getChooseAnswerInfo(id) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/get_choose_answer.json"));
-}
-function getChooseUnlockAnswer(id) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/unlock_choose_answer.json"));
-}
-function getUnlockAnswer(id, aid) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/unlock_answer.json"), {
- answer_id: aid
- });
-}
-function setUnity3dStatus(id, result, data) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/set_games_status.json"), {
- result: result,
- data: data
- });
-}
-
-//保留唯一一个方法
-function addVncTime(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/active_pod.json"), params);
-}
-function getRanking(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/rank_list.json"), params);
-}
-function closeWindowsVnc(id, tpi_id) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/close_windows_vnc.json"), {
- tpi_id: tpi_id
- });
-}
-function commitFiles(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/commit_files.json"), params);
-}
-function pullFiles(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/pull_files.json"), params);
-}
-function logOutput(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/log_output"), params);
-}
-function stopLogOutput(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/stop_log_output.json"), params);
-}
-
-// myshixuns start
-function addMyRepositoryFile(_x) {
- return _addMyRepositoryFile.apply(this, arguments);
-}
-function _addMyRepositoryFile() {
- _addMyRepositoryFile = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee(params) {
- return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee$(_context) {
- while (1) switch (_context.prev = _context.next) {
- case 0:
- return _context.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/myshixuns/".concat(params.id, "/add_file.json"), {
- method: 'post',
- body: params
- }));
- case 1:
- case "end":
- return _context.stop();
- }
- }, _callee);
- }));
- return _addMyRepositoryFile.apply(this, arguments);
-}
-function deleteMyGitFile(_x2) {
- return _deleteMyGitFile.apply(this, arguments);
-}
-function _deleteMyGitFile() {
- _deleteMyGitFile = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee2(params) {
- return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee2$(_context2) {
- while (1) switch (_context2.prev = _context2.next) {
- case 0:
- return _context2.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/myshixuns/".concat(params.id, "/delete_git_file.json"), {
- method: 'Delete',
- body: params
- }));
- case 1:
- case "end":
- return _context2.stop();
- }
- }, _callee2);
- }));
- return _deleteMyGitFile.apply(this, arguments);
-}
-function moveMyGitFile(_x3) {
- return _moveMyGitFile.apply(this, arguments);
-}
-function _moveMyGitFile() {
- _moveMyGitFile = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee3(params) {
- return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee3$(_context3) {
- while (1) switch (_context3.prev = _context3.next) {
- case 0:
- return _context3.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/myshixuns/".concat(params.id, "/mv_file.json"), {
- method: 'post',
- body: params
- }));
- case 1:
- case "end":
- return _context3.stop();
- }
- }, _callee3);
- }));
- return _moveMyGitFile.apply(this, arguments);
-}
-function getMyFileContent(_x4) {
- return _getMyFileContent.apply(this, arguments);
-}
-function _getMyFileContent() {
- _getMyFileContent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(params) {
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
- while (1) switch (_context4.prev = _context4.next) {
- case 0:
- return _context4.abrupt("return", Fetch("/api/tasks/".concat(params.id, "/rep_content.json"), {
- method: 'get',
- params: params
- }));
- case 1:
- case "end":
- return _context4.stop();
- }
- }, _callee4);
- }));
- return _getMyFileContent.apply(this, arguments);
-}
-function setStartPermanent(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/shixuns/".concat(id, "/set_start_permanent.json"), {
- method: 'put',
- body: params
- });
-}
-
-/***/ }),
-
-/***/ 31590:
-/*!**********************************************************!*\
- !*** ./src/components/MultiUpload/index.tsx + 1 modules ***!
- \**********************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "z": function() { return /* binding */ coverToFileList; },
- "Z": function() { return /* binding */ MultiUpload; }
-});
-
-// EXTERNAL MODULE: ./node_modules/antd/es/button/style/index.js + 1 modules
-var style = __webpack_require__(29913);
-// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
-var es_button = __webpack_require__(71577);
-// EXTERNAL MODULE: ./node_modules/antd/es/modal/style/index.js + 1 modules
-var modal_style = __webpack_require__(35611);
-// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 7 modules
-var modal = __webpack_require__(85402);
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
-var regeneratorRuntime = __webpack_require__(17061);
-var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
-var asyncToGenerator = __webpack_require__(17156);
-var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectSpread2.js
-var objectSpread2 = __webpack_require__(42122);
-var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
-// EXTERNAL MODULE: ./node_modules/antd/es/message/style/index.js + 1 modules
-var message_style = __webpack_require__(14934);
-// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 1 modules
-var message = __webpack_require__(12461);
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/toConsumableArray.js
-var toConsumableArray = __webpack_require__(861);
-var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
-var slicedToArray = __webpack_require__(27424);
-var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
-// EXTERNAL MODULE: ./node_modules/antd/es/upload/style/index.js + 1 modules
-var upload_style = __webpack_require__(13759);
-// EXTERNAL MODULE: ./node_modules/antd/es/upload/index.js + 20 modules
-var upload = __webpack_require__(7426);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
-var env = __webpack_require__(59758);
-// EXTERNAL MODULE: ./src/pages/MoopCases/FormPanel/service.ts
-var service = __webpack_require__(39507);
-// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
-var jsx_runtime = __webpack_require__(85893);
-;// CONCATENATED MODULE: ./src/components/SingleUpload/index.tsx
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-var uploadNameSizeSeperator = ' ';
-function bytesToSize(bytes) {
- var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
- if (bytes == 0) return '0 Byte';
- var i = parseInt('' + Math.floor(Math.log(bytes) / Math.log(1024)), 10);
- return (bytes / Math.pow(1024, i)).toFixed(1) + ' ' + sizes[i];
-}
-/* harmony default export */ var SingleUpload = (function (_ref) {
- var _ref$value = _ref.value,
- value = _ref$value === void 0 ? [] : _ref$value,
- action = _ref.action,
- _onChange = _ref.onChange,
- className = _ref.className,
- _ref$maxSize = _ref.maxSize,
- maxSize = _ref$maxSize === void 0 ? 150 : _ref$maxSize,
- _ref$title = _ref.title,
- title = _ref$title === void 0 ? '文件上传' : _ref$title,
- _ref$accept = _ref.accept,
- accept = _ref$accept === void 0 ? null : _ref$accept;
- var uploadProps = {
- multiple: false,
- fileList: value,
- accept: accept,
- withCredentials: true,
- beforeUpload: function beforeUpload(file) {
- var fileSize = file.size / 1024 / 1024;
- if (!(fileSize < maxSize)) {
- _message.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(maxSize, "MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20"));
- return Promise.reject();
- }
- return true;
- },
- action: "".concat(ENV.API_SERVER, "/api/attachments.json"),
- // ?debug=student&randomcode=undefined&client_key=6d57f8c3dd186c5ada392546ace9620a
- onChange: function onChange(info) {
- var _info$file, _info$file$response;
- var fileList = _toConsumableArray(info.fileList);
- fileList = fileList.map(function (file) {
- if (file.name.indexOf(uploadNameSizeSeperator) === -1) {
- file.name = "".concat(file.name).concat(uploadNameSizeSeperator).concat(bytesToSize(file.size));
- }
- return _objectSpread({}, file);
- });
- if (info.file.status === 'done' && ((_info$file = info.file) === null || _info$file === void 0 ? void 0 : (_info$file$response = _info$file.response) === null || _info$file$response === void 0 ? void 0 : _info$file$response.status) === -1) {
- var _info$file2, _info$file2$response;
- _message.error((_info$file2 = info.file) === null || _info$file2 === void 0 ? void 0 : (_info$file2$response = _info$file2.response) === null || _info$file2$response === void 0 ? void 0 : _info$file2$response.message);
- _onChange([]);
- return;
- }
- _onChange(fileList);
- },
- onRemove: function () {
- var _onRemove = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
- var fileSize, id, rs;
- return _regeneratorRuntime().wrap(function _callee$(_context) {
- while (1) switch (_context.prev = _context.next) {
- case 0:
- fileSize = file.size / 1024 / 1024;
- if (!(file.status === 'uploading')) {
- _context.next = 3;
- break;
- }
- return _context.abrupt("return", true);
- case 3:
- if (fileSize < maxSize) {
- _context.next = 7;
- break;
- }
- return _context.abrupt("return", true);
- case 7:
- id = file.response ? file.response.id : file.uid;
- if (!id) {
- _context.next = 15;
- break;
- }
- _context.next = 11;
- return removeAttachment(file.response ? file.response.id : file.id);
- case 11:
- rs = _context.sent;
- return _context.abrupt("return", rs);
- case 15:
- return _context.abrupt("return", true);
- case 16:
- case "end":
- return _context.stop();
- }
- }, _callee);
- }));
- function onRemove(_x) {
- return _onRemove.apply(this, arguments);
- }
- return onRemove;
- }()
- };
- function onCancel(e) {
- e.preventDefault();
- e.stopPropagation();
- }
- return /*#__PURE__*/_jsx("div", {
- className: "single-upload ".concat(className ? className : ''),
- children: /*#__PURE__*/_jsxs(_Upload, _objectSpread(_objectSpread({}, uploadProps), {}, {
- children: [/*#__PURE__*/_jsx(_Button, {
- type: "primary",
- title: value.length > 0 ? '每次只能上传一个资源, 删除下面资源可重新上传 ' : '',
- disabled: value.length > 0,
- ghost: true,
- children: title
- }), /*#__PURE__*/_jsxs("span", {
- onClick: onCancel,
- style: {
- marginLeft: 10
- },
- children: ["(\u5355\u4E2A\u6587\u4EF6\u6700\u5927", maxSize, "M)", ' ']
- })]
- }))
- });
-});
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/InboxOutlined.js + 1 modules
-var InboxOutlined = __webpack_require__(64082);
-// EXTERNAL MODULE: ./node_modules/lodash/lodash.js
-var lodash = __webpack_require__(96486);
-;// CONCATENATED MODULE: ./src/components/MultiUpload/index.tsx
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-var Dragger = upload/* default.Dragger */.Z.Dragger;
-function coverToFileList(data) {
- var rs = [];
- if (data && data.length > 0) {
- rs = data.map(function (item) {
- return {
- uid: item.id,
- id: item.id,
- name: item.title + uploadNameSizeSeperator + item.filesize,
- url: item.url,
- filesize: item.filesize,
- status: 'done',
- response: {
- id: item.id
- }
- };
- });
- }
- return rs;
-}
-/* harmony default export */ var MultiUpload = (function (_ref) {
- var value = _ref.value,
- _onChange = _ref.onChange,
- action = _ref.action,
- data = _ref.data,
- className = _ref.className,
- _ref$maxSize = _ref.maxSize,
- maxSize = _ref$maxSize === void 0 ? 150 : _ref$maxSize,
- _ref$title = _ref.title,
- title = _ref$title === void 0 ? '上传附件' : _ref$title,
- _ref$showRemoveModal = _ref.showRemoveModal,
- showRemoveModal = _ref$showRemoveModal === void 0 ? false : _ref$showRemoveModal,
- _ref$accept = _ref.accept,
- accept = _ref$accept === void 0 ? '' : _ref$accept,
- additionalText = _ref.additionalText,
- isDragger = _ref.isDragger,
- _ref$number = _ref.number,
- number = _ref$number === void 0 ? 1000 : _ref$number,
- _ref$aloneClear = _ref.aloneClear,
- aloneClear = _ref$aloneClear === void 0 ? false : _ref$aloneClear;
- var _useState = (0,react.useState)(false),
- _useState2 = slicedToArray_default()(_useState, 2),
- disabled = _useState2[0],
- setDisabled = _useState2[1];
- var _useState3 = (0,react.useState)(value || []),
- _useState4 = slicedToArray_default()(_useState3, 2),
- fileList = _useState4[0],
- setFileList = _useState4[1];
- var _useState5 = (0,react.useState)(1),
- _useState6 = slicedToArray_default()(_useState5, 2),
- nums = _useState6[0],
- setnums = _useState6[1];
- (0,react.useEffect)(function () {
- if (value) {
- if (nums === 1) {
- setFileList(toConsumableArray_default()(value));
- }
- setnums(2);
- if (number === (value === null || value === void 0 ? void 0 : value.length)) {
- setDisabled(true);
- }
- }
- }, [value]);
- var clearLastFile = function clearLastFile() {
- setTimeout(function () {
- fileList.pop();
- setFileList(toConsumableArray_default()(fileList));
- }, 500);
- };
- var uploadProps = {
- multiple: true,
- disabled: disabled,
- accept: accept,
- withCredentials: true,
- fileList: fileList,
- // fileList: fileList?.length ? fileList : value,
- beforeUpload: function beforeUpload(file, fileArr) {
- var fileSize = file.size / 1024 / 1024;
- if (fileList.concat(fileArr).length > number) {
- fileList.pop();
- setFileList(toConsumableArray_default()(fileList));
- message/* default.error */.ZP.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(number, "\u4E2A\u6587\u4EF6"));
- if (aloneClear) {
- return Promise.reject();
- }
- clearLastFile();
- return false;
- }
- if (!(fileSize < maxSize)) {
- message/* default.error */.ZP.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(maxSize, "MB)."));
- if (aloneClear) {
- return Promise.reject();
- }
- clearLastFile();
- return false;
- }
- return true;
- },
- data: data,
- action: action || "".concat(env/* default.API_SERVER */.Z.API_SERVER, "/api/attachments.json"),
- // ?debug=student&randomcode=undefined&client_key=6d57f8c3dd186c5ada392546ace9620a
- onChange: function onChange(info) {
- var _info$file, _info$file$response;
- if (info.file.status === "removed") {
- fileList = info.fileList;
- } else {
- fileList = (0,lodash.uniqBy)([].concat(toConsumableArray_default()(info.fileList), toConsumableArray_default()(fileList)), 'uid');
- }
- if (info.file.status === 'done' && ((_info$file = info.file) === null || _info$file === void 0 ? void 0 : (_info$file$response = _info$file.response) === null || _info$file$response === void 0 ? void 0 : _info$file$response.status) === -1) {
- var _info$file2, _info$file2$response;
- message/* default.error */.ZP.error((_info$file2 = info.file) === null || _info$file2 === void 0 ? void 0 : (_info$file2$response = _info$file2.response) === null || _info$file2$response === void 0 ? void 0 : _info$file2$response.message);
- return;
- }
- if (fileList.length >= number) setDisabled(true);else setDisabled(false);
- setFileList(toConsumableArray_default()(fileList));
- fileList = fileList.map(function (file) {
- var _file$response;
- if (file !== null && file !== void 0 && (_file$response = file.response) !== null && _file$response !== void 0 && _file$response.id) {
- var _file$response2;
- file.url = "/api/attachments/".concat(file === null || file === void 0 ? void 0 : (_file$response2 = file.response) === null || _file$response2 === void 0 ? void 0 : _file$response2.id);
- }
- if (file.name.indexOf(uploadNameSizeSeperator) === -1) {
- file.name = "".concat(file.name).concat(uploadNameSizeSeperator).concat(bytesToSize(file.size));
- }
- return objectSpread2_default()({}, file);
- });
- console.log('info:', info, fileList);
- _onChange(fileList);
- },
- onRemove: function () {
- var _onRemove = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(file) {
- var remove;
- return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
- while (1) switch (_context3.prev = _context3.next) {
- case 0:
- remove = /*#__PURE__*/function () {
- var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
- var id, rs;
- return regeneratorRuntime_default()().wrap(function _callee$(_context) {
- while (1) switch (_context.prev = _context.next) {
- case 0:
- id = file.response ? file.response.id : file.id;
- if (!id) {
- _context.next = 8;
- break;
- }
- _context.next = 4;
- return (0,service/* removeAttachment */.JZ)(file.response ? file.response.id : file.uid);
- case 4:
- rs = _context.sent;
- return _context.abrupt("return", Promise.resolve(rs));
- case 8:
- return _context.abrupt("return", true);
- case 9:
- case "end":
- return _context.stop();
- }
- }, _callee);
- }));
- return function remove() {
- return _ref2.apply(this, arguments);
- };
- }();
- if (!showRemoveModal) {
- _context3.next = 5;
- break;
- }
- return _context3.abrupt("return", new Promise(function (resolve, reject) {
- modal/* default.confirm */.Z.confirm({
- centered: true,
- width: 530,
- okText: '确定',
- cancelText: '取消',
- title: '提示',
- content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
- className: "tc font16",
- children: "\u662F\u5426\u786E\u8BA4\u5220\u9664?"
- }),
- onOk: function () {
- var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
- var res;
- return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
- while (1) switch (_context2.prev = _context2.next) {
- case 0:
- _context2.next = 2;
- return remove();
- case 2:
- res = _context2.sent;
- message/* default.success */.ZP.success('删除成功');
- resolve(true);
- case 5:
- case "end":
- return _context2.stop();
- }
- }, _callee2);
- }));
- function onOk() {
- return _onOk.apply(this, arguments);
- }
- return onOk;
- }(),
- onCancel: function onCancel() {
- return resolve(false);
- }
- });
- }));
- case 5:
- _context3.next = 7;
- return remove();
- case 7:
- return _context3.abrupt("return", _context3.sent);
- case 8:
- case "end":
- return _context3.stop();
- }
- }, _callee3);
- }));
- function onRemove(_x) {
- return _onRemove.apply(this, arguments);
- }
- return onRemove;
- }()
- };
- function onCancel(e) {
- e.preventDefault();
- e.stopPropagation();
- }
- return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- className: "multi-upload ".concat(className ? className : ''),
- children: [isDragger && /*#__PURE__*/(0,jsx_runtime.jsxs)(Dragger, objectSpread2_default()(objectSpread2_default()({}, uploadProps), {}, {
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
- className: "ant-upload-drag-icon",
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(InboxOutlined/* default */.Z, {})
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
- className: "ant-upload-text",
- children: ["\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A", maxSize, "MB)", ' ']
- }), additionalText]
- })), !isDragger && /*#__PURE__*/(0,jsx_runtime.jsxs)(upload/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, uploadProps), {}, {
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
- disabled: disabled,
- children: title
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
- onClick: onCancel,
- style: {
- marginLeft: 10,
- color: '#FA6400'
- },
- children: ["(\u5355\u4E2A\u6587\u4EF6\u6700\u5927", maxSize, "MB)", ' ']
- })]
- }))]
- });
-});
-
-/***/ }),
-
-/***/ 12264:
-/*!**********************************!*\
- !*** ./src/components/modal.tsx ***!
- \**********************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "Z": function() { return /* binding */ Dialog; }
-/* harmony export */ });
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/classCallCheck.js */ 56690);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createClass_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/createClass.js */ 89728);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createClass_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createClass_js__WEBPACK_IMPORTED_MODULE_1__);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_inherits_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/inherits.js */ 61655);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_inherits_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_inherits_js__WEBPACK_IMPORTED_MODULE_2__);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createSuper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/createSuper.js */ 26389);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createSuper_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createSuper_js__WEBPACK_IMPORTED_MODULE_3__);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 67294);
-/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-dom */ 73935);
-
-
-
-
-
-
-var Dialog = /*#__PURE__*/function (_React$Component) {
- _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_inherits_js__WEBPACK_IMPORTED_MODULE_2___default()(Dialog, _React$Component);
- var _super = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createSuper_js__WEBPACK_IMPORTED_MODULE_3___default()(Dialog);
- function Dialog(props) {
- var _this;
- _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0___default()(this, Dialog);
- _this = _super.call(this, props);
- var doc = window.document;
- _this.node = doc.createElement('div');
- doc.body.appendChild(_this.node);
- return _this;
- }
- _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_createClass_js__WEBPACK_IMPORTED_MODULE_1___default()(Dialog, [{
- key: "render",
- value: function render() {
- var children = this.props.children;
- return /*#__PURE__*/(0,react_dom__WEBPACK_IMPORTED_MODULE_5__.createPortal)(children, this.node);
- }
- }, {
- key: "componentWillUnmount",
- value: function componentWillUnmount() {
- window.document.body.removeChild(this.node);
- }
- }]);
- return Dialog;
-}(react__WEBPACK_IMPORTED_MODULE_4__.Component);
-
-
-/***/ }),
-
-/***/ 32171:
-/*!**********************************************************!*\
- !*** ./src/components/vnc-setting/index.tsx + 1 modules ***!
- \**********************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ vnc_setting; }
-});
-
-// EXTERNAL MODULE: ./node_modules/antd/es/row/style/index.js
-var style = __webpack_require__(13062);
-// EXTERNAL MODULE: ./node_modules/antd/es/row/index.js
-var row = __webpack_require__(71230);
-// EXTERNAL MODULE: ./node_modules/antd/es/col/style/index.js
-var col_style = __webpack_require__(89032);
-// EXTERNAL MODULE: ./node_modules/antd/es/col/index.js
-var col = __webpack_require__(15746);
-// EXTERNAL MODULE: ./node_modules/antd/es/input/style/index.js + 1 modules
-var input_style = __webpack_require__(69463);
-// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 5 modules
-var input = __webpack_require__(75008);
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
-var regeneratorRuntime = __webpack_require__(17061);
-var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
-var asyncToGenerator = __webpack_require__(17156);
-var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
-// EXTERNAL MODULE: ./node_modules/antd/es/message/style/index.js + 1 modules
-var message_style = __webpack_require__(14934);
-// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 1 modules
-var message = __webpack_require__(12461);
-// EXTERNAL MODULE: ./node_modules/antd/es/modal/style/index.js + 1 modules
-var modal_style = __webpack_require__(35611);
-// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 7 modules
-var modal = __webpack_require__(85402);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-// EXTERNAL MODULE: ./src/components/tpi-code-setting/index.less
-var tpi_code_setting = __webpack_require__(12867);
-// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/PoweroffOutlined.js + 1 modules
-var PoweroffOutlined = __webpack_require__(81088);
-// EXTERNAL MODULE: ./node_modules/react-copy-to-clipboard/lib/index.js
-var lib = __webpack_require__(74855);
-// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
-var _umi_production_exports = __webpack_require__(89214);
-// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 1 modules
-var MultiUpload = __webpack_require__(31590);
-// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
-var env = __webpack_require__(59758);
-// EXTERNAL MODULE: ./src/utils/fetch.ts
-var fetch = __webpack_require__(84519);
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
-var slicedToArray = __webpack_require__(27424);
-var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
-// EXTERNAL MODULE: ./src/utils/util.tsx
-var util = __webpack_require__(29427);
-// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
-var jsx_runtime = __webpack_require__(85893);
-;// CONCATENATED MODULE: ./src/components/vnc-setting/record.tsx
-
-
-
-
-
-
-
-
-var ScreenRecord = /*#__PURE__*/(0,react.forwardRef)(function (_ref, ref) {
- var time = _ref.time;
- console.log("ScreenRecord:", ref);
- var previewRef = (0,react.useRef)();
- var _useState = (0,react.useState)(),
- _useState2 = slicedToArray_default()(_useState, 2),
- recorder = _useState2[0],
- setRecorder = _useState2[1];
- var recorderRef = (0,react.useRef)();
- var recordingTimeMS = 2000;
- var recordingArr = [];
- (0,react.useImperativeHandle)(ref, function () {
- return {
- startScreenRecord: startScreenRecord,
- downloadFile: downloadFile
- };
- });
- function startRecording(_x, _x2) {
- return _startRecording.apply(this, arguments);
- }
- function _startRecording() {
- _startRecording = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(stream, lengthInMS) {
- var data, re;
- return regeneratorRuntime_default()().wrap(function _callee$(_context) {
- while (1) switch (_context.prev = _context.next) {
- case 0:
- data = [];
- _context.next = 3;
- return new MediaRecorder(stream);
- case 3:
- re = _context.sent;
- re.ondataavailable = function (event) {
- data.push(event.data);
- };
- re.start();
- recorderRef.current = re;
- window.recorderRefs = re;
- re.addEventListener('stop', function (event) {
- var videoUrl = URL.createObjectURL(data[0], {
- type: 'video/mp4'
- });
- (0,util/* downLoadLink */.Nd)("xxx.webm", videoUrl);
- });
- case 9:
- case "end":
- return _context.stop();
- }
- }, _callee);
- }));
- return _startRecording.apply(this, arguments);
- }
- function downloadFile() {
- if (!window.recorderRefs) {
- message/* default.warn */.ZP.warn("您还没有开启视频录制,请先去录制视频吧!");
- return;
- }
- var tracks = previewRef.current.srcObject.getTracks();
- tracks.forEach(function (track) {
- track.stop();
- });
- window.recorderRefs.addEventListener('dataavailable', function (event) {
- var videoUrl = URL.createObjectURL(event.data, {
- type: 'video/mp4'
- });
- (0,util/* downLoadLink */.Nd)("屏幕录制视频.webm", videoUrl);
- });
- }
- ;
- function startScreenRecord() {
- navigator.mediaDevices.getDisplayMedia({
- video: true,
- audio: true
- }).then(function (stream) {
- previewRef.current.srcObject = stream;
- // downloadButton.href = stream;
- recordingArr.push(stream);
- previewRef.current.captureStream = previewRef.current.captureStream || previewRef.current.mozCaptureStream;
- return new Promise(function (resolve) {
- return previewRef.current.onplaying = resolve;
- });
- }).then(function () {
- return startRecording(previewRef.current.captureStream(), recordingTimeMS);
- }).then(function (recordedChunks) {})["catch"](function (error) {
- if (error.name === "NotFoundError") {
- message/* default.warn */.ZP.warn("找不到摄像头或麦克风。无法录制.");
- } else if (error.name === "UnknownError") {
- message/* default.warn */.ZP.warn('录制失败');
- }
- });
- }
-
- // stop(previewRef.current.srcObject);
-
- return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
- style: {
- position: "absolute",
- top: "0",
- zIndex: -1
- },
- children: /*#__PURE__*/(0,jsx_runtime.jsx)("video", {
- onPause: function onPause() {},
- width: "60",
- height: "120",
- autoPlay: true,
- muted: true,
- ref: previewRef
- })
- });
-});
-/* harmony default export */ var record = (ScreenRecord);
-// EXTERNAL MODULE: ./node_modules/lodash/lodash.js
-var lodash = __webpack_require__(96486);
-// EXTERNAL MODULE: ./src/pages/Shixuns/Edit/body/Environment/MarkdownModal/index.tsx + 1 modules
-var MarkdownModal = __webpack_require__(33508);
-// EXTERNAL MODULE: ./src/components/ui-customization/reset.less?modules
-var resetmodules = __webpack_require__(39132);
-// EXTERNAL MODULE: ./src/utils/authority.ts
-var authority = __webpack_require__(7);
-;// CONCATENATED MODULE: ./src/components/vnc-setting/index.tsx
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-var difficultyDesc = {
- 1: '简单',
- 2: '中等',
- 3: '困难'
-};
-/* harmony default export */ var vnc_setting = (function (_ref) {
- var className = _ref.className,
- git_url = _ref.git_url,
- difficulty = _ref.difficulty,
- task_pass = _ref.task_pass,
- test_set_permission = _ref.test_set_permission,
- onVncAction = _ref.onVncAction,
- windows_vnc = _ref.windows_vnc,
- linux_vnc = _ref.linux_vnc,
- vnc_url = _ref.vnc_url,
- unity_3d_routes = _ref.unity_3d_routes,
- index_tab = _ref.index_tab,
- shixun_environment_id = _ref.shixun_environment_id,
- tab_type = _ref.tab_type,
- reboot_cloud = _ref.reboot_cloud,
- cloud_type = _ref.cloud_type,
- resData = _ref.resData,
- instance_startup_type = _ref.instance_startup_type,
- mirror_description_multi = _ref.mirror_description_multi,
- is_jupyter_notebook = _ref.is_jupyter_notebook,
- is_jupyter_lab = _ref.is_jupyter_lab,
- jupyterData = _ref.jupyterData,
- is_jupyter = _ref.is_jupyter,
- onHideToolBar = _ref.onHideToolBar,
- monitoring_url = _ref.monitoring_url;
- var params = (0,_umi_production_exports.useParams)();
- var recordRef = (0,react.useRef)();
-
- //params.taskId 普通实训 params.identifier jupyter实训
-
- var uploadWorkspace = windows_vnc ? "C:\/Windows\/AppReadiness\/userfiles" : "/data/workspace/userfiles";
- var downloadWorkspace = windows_vnc ? "C:\/Windows\/AppReadiness\/downloadfiles" : "/data/workspace/downloadfiles";
- var isLoadData = !(0,lodash.isEmpty)(resData) || !(0,lodash.isEmpty)(jupyterData);
- var mirror_description = jupyterData ? {
- name: jupyterData === null || jupyterData === void 0 ? void 0 : jupyterData.main_mirror_name,
- description: jupyterData === null || jupyterData === void 0 ? void 0 : jupyterData.main_mirror_description
- } : mirror_description_multi === null || mirror_description_multi === void 0 ? void 0 : mirror_description_multi.find(function (e) {
- return e.shixun_environment_id === shixun_environment_id;
- });
- var uploadFile = function uploadFile() {
- onHideToolBar();
- modal/* default.info */.Z.info({
- title: "文件上传",
- icon: null,
- okText: "关闭",
- width: 600,
- centered: true,
- content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
- className: "pt10",
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {
- isDragger: true,
- maxSize: 20,
- additionalText: "\u9ED8\u8BA4\u5B58\u653E\u76EE\u5F55\u8DEF\u5F84\u4E3A\"".concat(uploadWorkspace, "\""),
- action: "".concat(env/* default.API_SERVER */.Z.API_SERVER, "/api/tasks/").concat(params.taskId || params.identifier, "/upload_file?debug=admin&shixun_environment_id=").concat(shixun_environment_id || null, "&tab_type=").concat(tab_type || null, "&is_jupyter=").concat(is_jupyter || false),
- onChange: function onChange(fileList) {
- if (fileList.every(function (item) {
- var _item$response;
- return ((_item$response = item.response) === null || _item$response === void 0 ? void 0 : _item$response.status) === 0;
- })) {
- modal/* default.destroyAll */.Z.destroyAll();
- message/* default.info */.ZP.info("文件上传成功");
- }
- console.log("fileList:", fileList);
- }
- })
- })
- });
- };
- var downloadFile = function downloadFile() {
- onHideToolBar();
- modal/* default.confirm */.Z.confirm({
- title: "下载代码",
- centered: true,
- width: 600,
- content: "\u4EE3\u7801\u4E0B\u8F7D\u529F\u80FD\uFF1A\u5C06\u201C".concat(downloadWorkspace, "\u201D\u76EE\u5F55\u8FDB\u884C\u6253\u5305\u5E76\u4E0B\u8F7D"),
- onOk: function () {
- var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
- return regeneratorRuntime_default()().wrap(function _callee$(_context) {
- while (1) switch (_context.prev = _context.next) {
- case 0:
- _context.next = 2;
- return (0,fetch/* default */.ZP)("/api/tasks/".concat(params.taskId || params.identifier, "/download_file?debug=admin"), {
- method: 'post',
- body: {
- autoDownload: true,
- shixun_environment_id: shixun_environment_id || null,
- tab_type: tab_type || null,
- is_jupyter: is_jupyter || false
- },
- headers: {
- responseType: 'arraybuffer',
- Accept: 'application/vnd.ms-excel;charset=utf-8'
- }
- });
- case 2:
- return _context.abrupt("return", true);
- case 3:
- case "end":
- return _context.stop();
- }
- }, _callee);
- }));
- function onOk() {
- return _onOk.apply(this, arguments);
- }
- return onOk;
- }()
- });
- };
- var onStartRecord = function onStartRecord() {
- var _recordRef$current, _recordRef$current$st;
- // onHideToolBar();
- (_recordRef$current = recordRef.current) === null || _recordRef$current === void 0 ? void 0 : (_recordRef$current$st = _recordRef$current.startScreenRecord) === null || _recordRef$current$st === void 0 ? void 0 : _recordRef$current$st.call(_recordRef$current);
- };
- var serverPreview = /*#__PURE__*/function () {
- var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
- var value, domId;
- return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
- while (1) switch (_context3.prev = _context3.next) {
- case 0:
- onHideToolBar();
- value = '';
- domId = String(Math.random());
- modal/* default.confirm */.Z.confirm({
- icon: null,
- className: resetmodules/* default.CustomTipsModalCss */.Z.CustomTipsModalCss,
- okButtonProps: {
- type: 'primary'
- },
- centered: true,
- width: 460,
- okText: '预览',
- cancelText: '取消',
- title: '服务预览',
- content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- style: {
- height: 95
- },
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
- className: "mb5 c-grey-333 font14 mb10",
- children: "\u670D\u52A1\u9884\u89C8\u5C06\u4E3A\u5B9E\u9A8C\u73AF\u5883\u5185\u90E8\u670D\u52A1\u6620\u5C04\u5230\u4E34\u65F6\u57DF\u540D\uFF0C\u4EC5\u4F9B\u9884\u89C8\u6D4B\u8BD5\u4F7F\u7528\u3002\u8BF7\u586B\u5199\u5185\u90E8\u670D\u52A1\u7AEF\u53E3\uFF0C\u5E76\u786E\u8BA4\u670D\u52A1\u6B63\u5E38\u542F\u52A8\u3002"
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
- className: "c-grey-999 font14 mr10",
- children: "\u7AEF\u53E3\u53F7"
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
- defaultValue: value,
- onChange: function onChange(e) {
- var dom = document.getElementById(domId);
- dom.style.display = 'none';
- value = e.target.value;
- },
- maxLength: 5,
- style: {
- width: 326
- }
- })]
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
- style: {
- display: 'none',
- marginTop: 4,
- marginLeft: 52
- },
- id: domId,
- className: "c-red"
- })]
- }),
- onOk: function () {
- var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
- var _res$data;
- var dom, res, _res$data2;
- return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
- while (1) switch (_context2.prev = _context2.next) {
- case 0:
- dom = document.getElementById(domId);
- if (value) {
- _context2.next = 5;
- break;
- }
- dom.style.display = 'block';
- dom.innerText = '端口号不能为空';
- return _context2.abrupt("return", Promise.reject());
- case 5:
- if (!value.includes(" ")) {
- _context2.next = 9;
- break;
- }
- dom.style.display = 'block';
- dom.innerText = '端口号不能有空格';
- return _context2.abrupt("return", Promise.reject());
- case 9:
- if (!(value && (value.includes('.') || isNaN(Number(value)) || Number(value) > 65535 || Number(value) <= 0 || value.length > 1 && value[0] === "0"))) {
- _context2.next = 13;
- break;
- }
- dom.style.display = 'block';
- dom.innerText = '请输入正确的端口号';
- return _context2.abrupt("return", Promise.reject());
- case 13:
- _context2.next = 15;
- return (0,fetch/* default */.ZP)("/api/tasks/".concat(params.taskId || params.identifier, "/port_proxy"), {
- method: "post",
- body: {
- port: Number(value),
- shixun_environment_id: shixun_environment_id || null,
- tab_type: tab_type || null,
- is_jupyter: is_jupyter || false
- }
- });
- case 15:
- res = _context2.sent;
- _context2.next = 18;
- return new Promise(function (resolve, reject) {
- setTimeout(function () {
- resolve('');
- }, 1000);
- });
- case 18:
- if (res !== null && res !== void 0 && (_res$data = res.data) !== null && _res$data !== void 0 && _res$data.url) {
- (0,util/* openNewWindow */.xg)(res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.url);
- }
- case 19:
- case "end":
- return _context2.stop();
- }
- }, _callee2);
- }));
- function onOk() {
- return _onOk2.apply(this, arguments);
- }
- return onOk;
- }()
- });
- case 4:
- case "end":
- return _context3.stop();
- }
- }, _callee3);
- }));
- return function serverPreview() {
- return _ref2.apply(this, arguments);
- };
- }();
- var getSSH = function getSSH() {
- onHideToolBar();
- modal/* default.info */.Z.info({
- title: 'SSH直连',
- width: 600,
- centered: true,
- content: /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
- children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
- flex: "50px",
- children: "\u8D26\u53F7"
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
- children: resData === null || resData === void 0 ? void 0 : resData.username
- })]
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
- flex: "50px",
- children: "\u5730\u5740"
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
- children: resData === null || resData === void 0 ? void 0 : resData.ssh_address
- })]
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
- flex: "50px",
- children: "\u7AEF\u53E3"
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
- children: resData === null || resData === void 0 ? void 0 : resData.port
- })]
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
- flex: "50px",
- children: "\u5BC6\u7801"
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
- children: resData === null || resData === void 0 ? void 0 : resData.password
- })]
- })]
- })
- });
- };
- var getRDP = function getRDP() {
- onHideToolBar();
- modal/* default.info */.Z.info({
- title: 'RDP直连',
- icon: null,
- className: resetmodules/* default.CustomTipsModalCss */.Z.CustomTipsModalCss,
- okButtonProps: {
- type: 'primary'
- },
- okText: '我知道啦',
- width: 600,
- centered: true,
- content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
- className: "c-grey-999",
- flex: "50px",
- children: "\u8D26\u53F7"
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
- className: "c-grey-333",
- children: resData === null || resData === void 0 ? void 0 : resData.username
- })]
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
- className: "mt10",
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
- className: "c-grey-999",
- flex: "50px",
- children: "\u5730\u5740"
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
- className: "c-grey-333",
- children: resData === null || resData === void 0 ? void 0 : resData.host
- })]
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
- className: "mt10",
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
- className: "c-grey-999",
- flex: "50px",
- children: "\u7AEF\u53E3"
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
- className: "c-grey-333",
- children: resData === null || resData === void 0 ? void 0 : resData.port
- })]
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
- className: "mt10",
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
- className: "c-grey-999",
- flex: "50px",
- children: "\u5BC6\u7801"
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
- className: "c-grey-333",
- children: resData === null || resData === void 0 ? void 0 : resData.password
- })]
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
- style: {
- textDecoration: 'underline',
- display: 'inline-block'
- },
- href: "https://www.educoder.net/forums/36696",
- target: "_blank",
- className: "mt10 font14 current c-light-primary",
- children: "\u64CD\u4F5C\u8BF4\u660E"
- })]
- })
- });
- };
- return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- className: "tpi-code-setting ".concat(className),
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("h3", {
- children: "\u529F\u80FD"
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
- children: [(unity_3d_routes || is_jupyter_notebook || is_jupyter_lab) && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
- title: "\u5168\u5C4F",
- className: "file-item action",
- onClick: function onClick() {
- onVncAction('full-screen');
- },
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
- className: "iconfont icon-quanping"
- }), "\u5F00\u542F / \u9000\u51FA\u5168\u5C4F"]
- }), (tab_type === 2 || tab_type === 3 || tab_type === 4 || is_jupyter_notebook || is_jupyter_lab) && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
- onClick: function onClick() {
- return onVncAction('reset-task');
- },
- className: "file-item action",
- title: "\u91CD\u7F6E\u73AF\u5883",
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
- className: "iconfont icon-zhongzhishixun1"
- }), "\u91CD\u7F6E\u73AF\u5883"]
- }), (tab_type === 2 || tab_type === 3 || tab_type === 5 || is_jupyter_lab) && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
- onClick: function onClick() {
- return onVncAction('reset-git-code');
- },
- className: "file-item action",
- title: "\u91CD\u7F6E\u4EE3\u7801\u4ED3\u5E93",
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
- className: "iconfont icon-zhongzhishixun"
- }), "\u91CD\u7F6E\u4EE3\u7801\u4ED3\u5E93"]
- }), (tab_type === 3 || is_jupyter_notebook || is_jupyter_lab) && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
- onClick: function onClick() {
- return uploadFile();
- },
- className: "file-item action",
- title: "\u4E0A\u4F20\u6587\u4EF6",
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
- className: "iconfont icon-shangchuanwenjian"
- }), "\u4E0A\u4F20\u6587\u4EF6"]
- }), (tab_type === 3 || is_jupyter_notebook || is_jupyter_lab) && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
- onClick: function onClick() {
- return downloadFile();
- },
- className: "file-item action",
- title: "\u4E0B\u8F7D\u6587\u4EF6",
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
- className: "iconfont icon-xiazai3"
- }), "\u4E0B\u8F7D\u6587\u4EF6"]
- }), (tab_type === 3 || tab_type === 5) && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
- onClick: function onClick() {
- return onStartRecord();
- },
- className: "file-item action",
- title: "\u5C4F\u5E55\u5F55\u5236",
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
- className: "iconfont icon-jiaruketang1"
- }), "\u5C4F\u5E55\u5F55\u5236"]
- }), ((tab_type === 2 || tab_type === 3 || tab_type === 4) && (cloud_type === 0 || cloud_type === 1) || is_jupyter_notebook || is_jupyter_lab) && isLoadData && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
- onClick: function onClick() {
- return serverPreview();
- },
- className: "file-item action w100",
- title: "\u670D\u52A1\u9884\u89C8",
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
- className: "iconfont icon-suanfasheji"
- }), "\u670D\u52A1\u9884\u89C8"]
- }), reboot_cloud && isLoadData && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
- onClick: function onClick() {
- return onVncAction('restart-reboot');
- },
- className: "file-item action",
- title: "\u91CD\u542F\u4E91\u4E3B\u673A",
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(PoweroffOutlined/* default */.Z, {
- style: {
- marginRight: 21,
- color: "#FFF"
- },
- className: "c-white font16"
- }), "\u91CD\u542F\u4E91\u4E3B\u673A "]
- }), (tab_type === 3 || tab_type === 5 || is_jupyter_notebook || is_jupyter_lab) && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
- onClick: function onClick() {
- return onVncAction('reset-code');
- },
- className: "file-item action",
- title: "\u6062\u590D\u521D\u59CB\u4EE3\u7801",
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
- className: "iconfont icon-zhongzhi font20",
- style: {
- marginRight: 19
- }
- }), "\u6062\u590D\u521D\u59CB\u4EE3\u7801"]
- }), git_url && /*#__PURE__*/(0,jsx_runtime.jsx)(lib.CopyToClipboard, {
- text: git_url,
- onCopy: function onCopy() {
- return message/* default.success */.ZP.success('复制成功');
- },
- children: /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
- title: "\u590D\u5236\u7248\u672C\u5E93\u5730\u5740",
- className: "file-item action",
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
- className: "iconfont icon-fuzhibanbenkudizhi1"
- }), "\u590D\u5236\u7248\u672C\u5E93\u5730\u5740"]
- })
- }), tab_type === 3 && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
- className: "file-item action",
- onClick: function onClick() {
- onVncAction('show-clipboard-box');
- },
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
- className: "iconfont icon-fuzhiniantie"
- }), "\u590D\u5236\u7C98\u8D34"]
- }), (0,authority/* isSuperAdmins */.Ny)() && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
- className: "file-item action",
- href: monitoring_url || (jupyterData === null || jupyterData === void 0 ? void 0 : jupyterData.monitoring_url),
- target: "_blank",
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
- className: "iconfont icon-jiankongfuwu2"
- }), "\u76D1\u63A7\u670D\u52A1"]
- }), tab_type === 4 && isLoadData && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
- className: "file-item action",
- onClick: getSSH,
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
- className: "iconfont icon-congshulianjie"
- }), "SSH\u76F4\u8FDE"]
- }), instance_startup_type === 2 && isLoadData && /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
- className: "file-item action",
- onClick: getRDP,
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
- className: "iconfont icon-RDPzhilian"
- }), "RDP\u76F4\u8FDE"]
- })]
- }), !!tab_type && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("h3", {
- children: "\u5173\u5361\u914D\u7F6E\u4FE1\u606F"
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
- children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
- className: "file-item",
- title: task_pass ? '允许学员跳关挑战' : '不允许学员跳关挑战',
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
- children: "\u8DF3\u5173"
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
- children: task_pass ? '允许' : '不允许'
- })]
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
- className: "file-item",
- title: test_set_permission ? '允许学员通过金币解锁查看测试集内容' : '不允许学员通过金币解锁查看测试集内容',
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
- children: "\u6D4B\u8BD5\u96C6\u89E3\u9501"
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
- children: test_set_permission ? '允许' : '不允许'
- })]
- })]
- })]
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("h3", {
- children: "\u5B9E\u8BAD\u57FA\u672C\u4FE1\u606F"
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
- children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- className: "file-item",
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
- children: "\u5B9E\u8BAD\u96BE\u6613\u5EA6"
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
- children: (jupyterData === null || jupyterData === void 0 ? void 0 : jupyterData.difficulty) || difficultyDesc[difficulty]
- })]
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- className: "file-item",
- style: {
- alignItems: 'flex-start'
- },
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
- children: "\u5B9E\u9A8C\u73AF\u5883"
- }), unity_3d_routes ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
- className: "multi_ellipsis1",
- children: "\u6682\u65E0"
- }) : mirror_description && /*#__PURE__*/(0,jsx_runtime.jsx)(MarkdownModal/* default */.Z, {
- value: [mirror_description],
- title: "\u5B9E\u9A8C\u73AF\u5883\u8BF4\u660E",
- children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
- title: mirror_description === null || mirror_description === void 0 ? void 0 : mirror_description.name,
- className: "multi_ellipsis1 current",
- children: mirror_description === null || mirror_description === void 0 ? void 0 : mirror_description.name
- })
- })]
- })]
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(record, {
- ref: recordRef
- })]
- });
-});
-
-/***/ }),
-
-/***/ 39507:
-/*!**************************************************!*\
- !*** ./src/pages/MoopCases/FormPanel/service.ts ***!
- \**************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "$J": function() { return /* binding */ getMoopCase; },
-/* harmony export */ "JZ": function() { return /* binding */ removeAttachment; },
-/* harmony export */ "bN": function() { return /* binding */ updateMoopCase; },
-/* harmony export */ "jP": function() { return /* binding */ addMoopCase; },
-/* harmony export */ "rO": function() { return /* binding */ getLibraryTags; }
-/* harmony export */ });
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js */ 17061);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/asyncToGenerator.js */ 17156);
-/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__);
-/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/utils/fetch */ 84519);
-
-
-
-function getMoopCase(id) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_2__/* .get */ .U2)("libraries/".concat(id, ".json"));
-}
-function getLibraryTags() {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_2__/* .get */ .U2)('library_tags.json');
-}
-function removeAttachment(_x) {
- return _removeAttachment.apply(this, arguments);
-}
-function _removeAttachment() {
- _removeAttachment = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee(id) {
- var response;
- return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee$(_context) {
- while (1) switch (_context.prev = _context.next) {
- case 0:
- _context.next = 2;
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_2__/* .del */ .IV)("attachments/".concat(id, ".json"));
- case 2:
- response = _context.sent;
- return _context.abrupt("return", response.status === 0);
- case 4:
- case "end":
- return _context.stop();
- }
- }, _callee);
- }));
- return _removeAttachment.apply(this, arguments);
-}
-function addMoopCase(params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_2__/* .post */ .v_)("libraries.json", params);
-}
-function updateMoopCase(id, params) {
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_2__/* .put */ .gz)("libraries/".concat(id, ".json"), params);
-}
-
-/***/ }),
-
-/***/ 33508:
-/*!*************************************************************************************!*\
- !*** ./src/pages/Shixuns/Edit/body/Environment/MarkdownModal/index.tsx + 1 modules ***!
- \*************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- "Z": function() { return /* binding */ Environment_MarkdownModal; }
-});
-
-// EXTERNAL MODULE: ./node_modules/antd/es/modal/style/index.js + 1 modules
-var style = __webpack_require__(35611);
-// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 7 modules
-var modal = __webpack_require__(85402);
-// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
-var slicedToArray = __webpack_require__(27424);
-var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
-// EXTERNAL MODULE: ./node_modules/react/index.js
-var react = __webpack_require__(67294);
-;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/body/Environment/MarkdownModal/index.less?modules
-// extracted by mini-css-extract-plugin
-/* harmony default export */ var MarkdownModalmodules = ({"mirrorModal":"mirrorModal___Pi3tF","right":"right___Hot5f","title":"title___jjMKh","content":"content___BmOkD","des":"des___oGTUM","modal":"modal___yy3VB"});
-// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx + 1 modules
-var RenderHtml = __webpack_require__(12768);
-// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
-var jsx_runtime = __webpack_require__(85893);
-;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/body/Environment/MarkdownModal/index.tsx
-
-
-
-
-
-
-
-
-
-var MarkdownModal = function MarkdownModal(_ref) {
- var title = _ref.title,
- children = _ref.children,
- value = _ref.value;
- var _useState = (0,react.useState)(false),
- _useState2 = slicedToArray_default()(_useState, 2),
- visible = _useState2[0],
- setVisible = _useState2[1];
- return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
- onClick: function onClick() {
- return setVisible(true);
- },
- children: children
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
- title: title,
- open: visible,
- width: 1000,
- destroyOnClose: true,
- centered: true,
- onCancel: function onCancel() {
- return setVisible(false);
- },
- className: MarkdownModalmodules.modal,
- footer: null,
- closeIcon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
- style: {
- color: '#979797'
- },
- className: "iconfont icon-danchuangguanbi font18"
- }),
- children: [typeof value === 'string' && /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
- value: value || ''
- }), Object.prototype.toString.call(value) === '[object Array]' && /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
- children: value === null || value === void 0 ? void 0 : value.map(function (e, i) {
- return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
- children: e.name || e.type_name
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
- value: e.description || ''
- })]
- }, i);
- })
- })]
- })]
- });
-};
-/* harmony default export */ var Environment_MarkdownModal = (MarkdownModal);
-
-/***/ }),
-
/***/ 80133:
/*!********************************************************!*\
!*** ./src/pages/tasks/Jupyter/index.tsx + 13 modules ***!
@@ -1737,6 +23,10 @@ var spin = __webpack_require__(11382);
var drawer_style = __webpack_require__(11400);
// EXTERNAL MODULE: ./node_modules/antd/es/drawer/index.js + 6 modules
var drawer = __webpack_require__(63463);
+// EXTERNAL MODULE: ./node_modules/antd/es/checkbox/style/index.js + 1 modules
+var checkbox_style = __webpack_require__(82000);
+// EXTERNAL MODULE: ./node_modules/antd/es/checkbox/index.js + 2 modules
+var es_checkbox = __webpack_require__(32808);
// EXTERNAL MODULE: ./node_modules/antd/es/button/style/index.js + 1 modules
var button_style = __webpack_require__(29913);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
@@ -2331,6 +621,9 @@ function TestCaseItem(_ref) {
_useState2 = slicedToArray_default()(_useState, 2),
rawOutput = _useState2[0],
setRawOutput = _useState2[1];
+ if (!output && output !== '') {
+ output = '该预期输出不可查看';
+ }
return /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
className: Casemodules["test-case-item"],
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
@@ -2339,7 +632,7 @@ function TestCaseItem(_ref) {
borderWidth: isActive ? 1 : 0
},
onClick: function onClick() {
- if (!(0,authority/* isSuperAdmins */.Ny)() && !is_public) {
+ if (!(0,authority/* getRoleAuth */.I2)([authority/* RoleType.CertifiedTeacher */.GD.CertifiedTeacher, authority/* RoleType.SuperAdmin */.GD.SuperAdmin, authority/* RoleType.Operation */.GD.Operation]) && !is_public) {
message/* default.info */.ZP.info('本测试集不可解锁');
return;
}
@@ -2361,7 +654,7 @@ function TestCaseItem(_ref) {
className: Casemodules.description,
children: [" \u4EE3\u7801\u6267\u884C\u65F6\u957F\uFF1A", ts_time, "\u79D2 "]
}), !is_public ? /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
- className: "iconfont icon-jiesuo"
+ className: "iconfont icon-suo1"
}) : null, compile_success > 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
width: 16,
src: result ? success/* default */.Z : failer/* default */.Z
@@ -2625,6 +918,8 @@ var vnc_setting = __webpack_require__(32171);
var fullscreen = __webpack_require__(15994);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/ExclamationCircleOutlined.js
var ExclamationCircleOutlined = __webpack_require__(87588);
+// EXTERNAL MODULE: ./src/service/exercise.ts
+var exercise = __webpack_require__(51412);
;// CONCATENATED MODULE: ./src/pages/tasks/Jupyter/index.tsx
@@ -2643,6 +938,8 @@ var ExclamationCircleOutlined = __webpack_require__(87588);
+
+
var _excluded = ["globalSetting", "loading", "dispatch"];
@@ -2668,6 +965,7 @@ var _excluded = ["globalSetting", "loading", "dispatch"];
+
var Countdown = statistic/* default.Countdown */.Z.Countdown;
@@ -2686,7 +984,7 @@ var Jupyter_initialState = {
showDragMask: false
};
var TaskJupyterPage = function TaskJupyterPage(_ref) {
- var _jupyterData$user, _jupyterData$user2, _url$active;
+ var _url$, _jupyterData$user, _jupyterData$user2, _url$active;
var globalSetting = _ref.globalSetting,
loading = _ref.loading,
dispatch = _ref.dispatch,
@@ -2771,7 +1069,13 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
_useState32 = slicedToArray_default()(_useState31, 2),
showTool = _useState32[0],
setShowTool = _useState32[1];
- console.log("---------jupyterData", jupyterData);
+ var _useState33 = (0,react.useState)(false),
+ _useState34 = slicedToArray_default()(_useState33, 2),
+ checkboxData = _useState34[0],
+ setcheckboxData = _useState34[1];
+ var countRef = (0,react.useRef)(checkboxData);
+ countRef.current = checkboxData;
+ console.log("---------jupyterDat11111a", jupyterData);
(0,react.useEffect)(function () {
dispatch({
type: 'globalSetting/headerFooterToggle',
@@ -3331,10 +1635,10 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
payload: status
});
};
- var _useState33 = (0,react.useState)(),
- _useState34 = slicedToArray_default()(_useState33, 2),
- answerData = _useState34[0],
- setAnswerData = _useState34[1];
+ var _useState35 = (0,react.useState)(),
+ _useState36 = slicedToArray_default()(_useState35, 2),
+ answerData = _useState36[0],
+ setAnswerData = _useState36[1];
var getAnswerData = /*#__PURE__*/function () {
var _ref9 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee10(identifier) {
var res;
@@ -3469,7 +1773,8 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
is_jupyter_lab: (jupyterData === null || jupyterData === void 0 ? void 0 : jupyterData.is_jupyter) === false,
jupyterData: jupyterData,
onVncAction: onVncAction,
- onHideToolBar: onHideToolBar
+ onHideToolBar: onHideToolBar,
+ port: url === null || url === void 0 ? void 0 : (_url$ = url[0]) === null || _url$ === void 0 ? void 0 : _url$.port
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)(spin/* default */.Z, {
spinning: spinning,
@@ -3543,21 +1848,42 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
className: "".concat(Jupytermodules.colorGray, " font14"),
type: "link",
onClick: function onClick() {
- // Modal.confirm({
- // title: '退出实训',
- // icon: