|
|
|
|
@ -2361,6 +2361,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
|
|
Z: function() { return /* binding */ Cards_CourseList; }
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
|
|
|
|
|
var slicedToArray = __webpack_require__(79800);
|
|
|
|
|
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
|
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/components/ui-customization/Cards/CourseList/index.less?modules
|
|
|
|
|
@ -2425,6 +2428,7 @@ var jsx_runtime = __webpack_require__(37712);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var CourseListIcons = [{
|
|
|
|
|
@ -2466,8 +2470,26 @@ var CourseList = function CourseList(_ref) {
|
|
|
|
|
_ref$wrapWidth = _ref.wrapWidth,
|
|
|
|
|
wrapWidth = _ref$wrapWidth === void 0 ? 1200 : _ref$wrapWidth,
|
|
|
|
|
trackEventItems = _ref.trackEventItems,
|
|
|
|
|
loading = _ref.loading;
|
|
|
|
|
loading = _ref.loading,
|
|
|
|
|
wrapClassName = _ref.wrapClassName,
|
|
|
|
|
imgClassName = _ref.imgClassName,
|
|
|
|
|
_ref$isArrow = _ref.isArrow,
|
|
|
|
|
isArrow = _ref$isArrow === void 0 ? false : _ref$isArrow;
|
|
|
|
|
var width = Math.floor((wrapWidth - (col - 1) * right) / col);
|
|
|
|
|
var _useState = (0,_react_17_0_2_react.useState)(),
|
|
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
|
|
nameIndex = _useState2[0],
|
|
|
|
|
setNameIndex = _useState2[1];
|
|
|
|
|
var _useState3 = (0,_react_17_0_2_react.useState)(),
|
|
|
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
|
|
|
arrIndex = _useState4[0],
|
|
|
|
|
setArrIndex = _useState4[1];
|
|
|
|
|
var handleNameMouseEnter = function handleNameMouseEnter(index) {
|
|
|
|
|
return setNameIndex(index);
|
|
|
|
|
};
|
|
|
|
|
var handleNameMouseLeave = function handleNameMouseLeave() {
|
|
|
|
|
return setNameIndex(-1);
|
|
|
|
|
};
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
|
|
|
|
|
spinning: loading,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
@ -2483,7 +2505,7 @@ var CourseList = function CourseList(_ref) {
|
|
|
|
|
excellent = item.excellent,
|
|
|
|
|
is_plan = item.is_plan;
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: CourseListmodules.wrap,
|
|
|
|
|
className: _classnames_2_5_1_classnames_default()(CourseListmodules.wrap, wrapClassName),
|
|
|
|
|
style: {
|
|
|
|
|
width: width,
|
|
|
|
|
marginRight: (1 + index) % col === 0 ? 0 : right + precision,
|
|
|
|
|
@ -2501,7 +2523,7 @@ var CourseList = function CourseList(_ref) {
|
|
|
|
|
(0,util/* openNewWindow */.xg)("/paths/".concat(identifier));
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: CourseListmodules.img,
|
|
|
|
|
className: _classnames_2_5_1_classnames_default()(CourseListmodules.img, imgClassName),
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
className: CourseListmodules.cover,
|
|
|
|
|
src: "".concat(env/* default */.Z.IMG_SERVER, "/").concat(image_url)
|
|
|
|
|
@ -2547,12 +2569,19 @@ var CourseList = function CourseList(_ref) {
|
|
|
|
|
title: name,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: CourseListmodules.e,
|
|
|
|
|
style: {
|
|
|
|
|
color: isArrow && nameIndex === index ? '#145DFF' : '#000000'
|
|
|
|
|
},
|
|
|
|
|
onMouseEnter: function onMouseEnter() {
|
|
|
|
|
handleNameMouseEnter(index);
|
|
|
|
|
},
|
|
|
|
|
onMouseLeave: handleNameMouseLeave,
|
|
|
|
|
children: name
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: CourseListmodules.tags,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
placement: "bottom",
|
|
|
|
|
title: "\u7AE0\u8282\u6570",
|
|
|
|
|
@ -2574,7 +2603,18 @@ var CourseList = function CourseList(_ref) {
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
}), isArrow && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
src: __webpack_require__(arrIndex === index ? /*! @/assets/images/index/arrowhover.png */ 17756 : /*! @/assets/images/index/arrow.png */ 13310),
|
|
|
|
|
onMouseEnter: function onMouseEnter() {
|
|
|
|
|
setArrIndex(index);
|
|
|
|
|
},
|
|
|
|
|
onMouseLeave: function onMouseLeave() {
|
|
|
|
|
setArrIndex(-1);
|
|
|
|
|
},
|
|
|
|
|
width: 67
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
}, id);
|
|
|
|
|
@ -3099,7 +3139,7 @@ var ShixunList = function ShixunList(_ref) {
|
|
|
|
|
title: "\u5173\u5361\u6570",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-shixunguanqia font14 mr2"
|
|
|
|
|
className: "iconfont icon-shixunguanqia font14 mr3"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: item.challenges_count
|
|
|
|
|
})]
|
|
|
|
|
@ -3109,7 +3149,7 @@ var ShixunList = function ShixunList(_ref) {
|
|
|
|
|
title: "\u5B66\u4E60\u4EBA\u6570",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-chengyuan font14 mr2"
|
|
|
|
|
className: "iconfont icon-chengyuan font14 mr3"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: item.myshixuns_count
|
|
|
|
|
})]
|
|
|
|
|
@ -12824,7 +12864,7 @@ var RenderHtml = __webpack_require__(78458);
|
|
|
|
|
var SelectEnvironment = __webpack_require__(6344);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/body/Environment/MirrorModal/index.less?modules
|
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
/* harmony default export */ var MirrorModalmodules = ({"mirrorModal":"mirrorModal___z1tEP","right":"right___ZlGrr","title":"title___lWaS3","content":"content___bCC9x","des":"des___ujB5y","btns":"btns___L4vgc","confirm":"confirm___RFRg4","cancel":"cancel___F1WB_","modal":"modal___A5dbG"});
|
|
|
|
|
/* harmony default export */ var MirrorModalmodules = ({"mirrorModal":"mirrorModal___z1tEP","selSpanSty":"selSpanSty___z5X9Y","right":"right___ZlGrr","title":"title___lWaS3","content":"content___bCC9x","des":"des___ujB5y","btns":"btns___L4vgc","confirm":"confirm___RFRg4","cancel":"cancel___F1WB_","modal":"modal___A5dbG"});
|
|
|
|
|
// EXTERNAL MODULE: ./src/pages/Shixuns/New/components/ApplyModal/index.tsx + 1 modules
|
|
|
|
|
var ApplyModal = __webpack_require__(89367);
|
|
|
|
|
// EXTERNAL MODULE: ./src/pages/Shixuns/New/components/CreateEnvironment/index.tsx
|
|
|
|
|
@ -12846,8 +12886,10 @@ var CreateEnvironment = __webpack_require__(9465);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var MirrorModal = function MirrorModal(_ref) {
|
|
|
|
|
var _newShixuns$actionTab, _ref3;
|
|
|
|
|
var _newShixuns$actionTab, _ref5;
|
|
|
|
|
var newShixuns = _ref.newShixuns,
|
|
|
|
|
user = _ref.user,
|
|
|
|
|
dispatch = _ref.dispatch,
|
|
|
|
|
@ -12880,16 +12922,84 @@ var MirrorModal = function MirrorModal(_ref) {
|
|
|
|
|
other_image = _environmentData$othe === void 0 ? [] : _environmentData$othe;
|
|
|
|
|
var name = detail.name,
|
|
|
|
|
description = detail.description;
|
|
|
|
|
var _useState7 = (0,_react_17_0_2_react.useState)({
|
|
|
|
|
mirror_types: [],
|
|
|
|
|
mirror_cloud_types: []
|
|
|
|
|
}),
|
|
|
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
|
|
|
mirrtypeInfo = _useState8[0],
|
|
|
|
|
setMirrorTypeInfo = _useState8[1];
|
|
|
|
|
var _useState9 = (0,_react_17_0_2_react.useState)({
|
|
|
|
|
mirror_type_id: '',
|
|
|
|
|
mirror_cloud_type_id: ''
|
|
|
|
|
}),
|
|
|
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
|
|
|
mirrorTypeIds = _useState10[0],
|
|
|
|
|
setMirrTypeIds = _useState10[1];
|
|
|
|
|
var getMirrorData = /*#__PURE__*/function () {
|
|
|
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(mirror_type_id, mirror_cloud_type_id) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
dispatch({
|
|
|
|
|
type: 'newShixuns/getEnvironmentData',
|
|
|
|
|
payload: {
|
|
|
|
|
tab_type: tab_type,
|
|
|
|
|
mirror_type_id: mirror_type_id,
|
|
|
|
|
mirror_cloud_type_id: mirror_cloud_type_id
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee);
|
|
|
|
|
}));
|
|
|
|
|
return function getMirrorData(_x, _x2) {
|
|
|
|
|
return _ref2.apply(this, arguments);
|
|
|
|
|
};
|
|
|
|
|
}();
|
|
|
|
|
var getMirrorTypes = /*#__PURE__*/function () {
|
|
|
|
|
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
|
|
|
|
var res, _res$data, _res$data2;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
|
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context2.next = 2;
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/shixuns/get_mirror_types.json", {
|
|
|
|
|
method: 'get'
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context2.sent;
|
|
|
|
|
if (res.status === 0) {
|
|
|
|
|
mirrtypeInfo.mirror_types = (res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.mirror_types) || [];
|
|
|
|
|
mirrtypeInfo.mirror_cloud_types = (res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.mirror_cloud_types) || [];
|
|
|
|
|
setMirrorTypeInfo(objectSpread2_default()({}, mirrtypeInfo));
|
|
|
|
|
}
|
|
|
|
|
case 4:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context2.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee2);
|
|
|
|
|
}));
|
|
|
|
|
return function getMirrorTypes() {
|
|
|
|
|
return _ref3.apply(this, arguments);
|
|
|
|
|
};
|
|
|
|
|
}();
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
if (visible) {
|
|
|
|
|
dispatch({
|
|
|
|
|
type: 'newShixuns/getEnvironmentData',
|
|
|
|
|
payload: {
|
|
|
|
|
tab_type: tab_type
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
// dispatch({
|
|
|
|
|
// type: 'newShixuns/getEnvironmentData',
|
|
|
|
|
// payload:{
|
|
|
|
|
// tab_type
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
getMirrorData();
|
|
|
|
|
setKeyword("");
|
|
|
|
|
setActiveId(useId);
|
|
|
|
|
if (tab_type === 'public') {
|
|
|
|
|
getMirrorTypes();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, [visible, useId]);
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
@ -12902,28 +13012,28 @@ var MirrorModal = function MirrorModal(_ref) {
|
|
|
|
|
getData();
|
|
|
|
|
}, [activeId]);
|
|
|
|
|
var getData = /*#__PURE__*/function () {
|
|
|
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
|
|
|
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
|
|
|
|
|
var res;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
|
|
|
|
|
while (1) switch (_context3.prev = _context3.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context.next = 2;
|
|
|
|
|
_context3.next = 2;
|
|
|
|
|
return (0,shixuns/* getEnvironmentDetail */.Q1)({
|
|
|
|
|
mirror_repository_id: activeId,
|
|
|
|
|
identifier: identifier,
|
|
|
|
|
shixun_environment_id: shixun_environment_id
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context.sent;
|
|
|
|
|
res = _context3.sent;
|
|
|
|
|
setDetail(res.data);
|
|
|
|
|
case 4:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context.stop();
|
|
|
|
|
return _context3.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee);
|
|
|
|
|
}, _callee3);
|
|
|
|
|
}));
|
|
|
|
|
return function getData() {
|
|
|
|
|
return _ref2.apply(this, arguments);
|
|
|
|
|
return _ref4.apply(this, arguments);
|
|
|
|
|
};
|
|
|
|
|
}();
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
|
|
@ -12950,7 +13060,64 @@ var MirrorModal = function MirrorModal(_ref) {
|
|
|
|
|
onSearchWord: function onSearchWord(value) {
|
|
|
|
|
return setKeyword(value);
|
|
|
|
|
},
|
|
|
|
|
tab_type: tab_type
|
|
|
|
|
tab_type: tab_type,
|
|
|
|
|
extraContent: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: tab_type === 'public' && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
display: "flex"
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
marginRight: '10px',
|
|
|
|
|
display: 'flex'
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: MirrorModalmodules.selSpanSty,
|
|
|
|
|
children: "\u955C\u50CF\u5206\u7C7B"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
|
|
allowClear: true,
|
|
|
|
|
value: mirrorTypeIds.mirror_type_id,
|
|
|
|
|
style: {
|
|
|
|
|
width: 77
|
|
|
|
|
},
|
|
|
|
|
options: mirrtypeInfo.mirror_types,
|
|
|
|
|
fieldNames: {
|
|
|
|
|
label: 'name',
|
|
|
|
|
value: 'id'
|
|
|
|
|
},
|
|
|
|
|
onChange: function onChange(value) {
|
|
|
|
|
getMirrorData(value, mirrorTypeIds.mirror_cloud_type_id);
|
|
|
|
|
mirrorTypeIds.mirror_type_id = value;
|
|
|
|
|
setMirrTypeIds(objectSpread2_default()({}, mirrorTypeIds));
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
display: 'flex'
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: MirrorModalmodules.selSpanSty,
|
|
|
|
|
children: "\u8DE8\u4E91\u5206\u7C7B"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
|
|
allowClear: true,
|
|
|
|
|
value: mirrorTypeIds.mirror_cloud_type_id,
|
|
|
|
|
style: {
|
|
|
|
|
width: 77
|
|
|
|
|
},
|
|
|
|
|
options: mirrtypeInfo.mirror_cloud_types,
|
|
|
|
|
fieldNames: {
|
|
|
|
|
label: 'name',
|
|
|
|
|
value: 'id'
|
|
|
|
|
},
|
|
|
|
|
onChange: function onChange(value) {
|
|
|
|
|
getMirrorData(mirrorTypeIds.mirror_type_id, value);
|
|
|
|
|
mirrorTypeIds.mirror_cloud_type_id = value;
|
|
|
|
|
setMirrTypeIds(objectSpread2_default()({}, mirrorTypeIds));
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: MirrorModalmodules.right,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("header", {
|
|
|
|
|
@ -12958,7 +13125,7 @@ var MirrorModal = function MirrorModal(_ref) {
|
|
|
|
|
className: MirrorModalmodules.title,
|
|
|
|
|
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"), '<span style="color:#0152d9;background-color:#1890ff33">$&</span>')
|
|
|
|
|
__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"), '<span style="color:#0152d9;background-color:#1890ff33">$&</span>')
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
@ -12998,10 +13165,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 (_ref4) {
|
|
|
|
|
var newShixuns = _ref4.newShixuns,
|
|
|
|
|
globalSetting = _ref4.globalSetting,
|
|
|
|
|
user = _ref4.user;
|
|
|
|
|
/* harmony default export */ var Environment_MirrorModal = ((0,_umi_production_exports.connect)(function (_ref6) {
|
|
|
|
|
var newShixuns = _ref6.newShixuns,
|
|
|
|
|
globalSetting = _ref6.globalSetting,
|
|
|
|
|
user = _ref6.user;
|
|
|
|
|
return {
|
|
|
|
|
newShixuns: newShixuns,
|
|
|
|
|
globalSetting: globalSetting,
|
|
|
|
|
@ -13661,7 +13828,7 @@ var resetmodules = __webpack_require__(32185);
|
|
|
|
|
var Option = es_select["default"].Option;
|
|
|
|
|
var MAX_COUNT = 3;
|
|
|
|
|
var Environment = function Environment(_ref) {
|
|
|
|
|
var _cloudList$find, _cloudList$find2, _mirror_repository$ch, _mirror_repository$sh2, _mirror_repository$sh3, _mirror_repository$sh4, _mirror_repository$sh5, _boosters$find, _network_mode_list$fi, _mirrorItems$Number2;
|
|
|
|
|
var _cloudList$find, _mirror_repository$ch, _mirror_repository$sh2, _mirror_repository$sh3, _mirror_repository$sh4, _mirror_repository$sh5, _boosters$find, _network_mode_list$fi, _mirrorItems$Number2;
|
|
|
|
|
var practiceSetting = _ref.practiceSetting,
|
|
|
|
|
dispatch = _ref.dispatch,
|
|
|
|
|
shixunsDetail = _ref.shixunsDetail,
|
|
|
|
|
@ -13817,9 +13984,6 @@ var Environment = function Environment(_ref) {
|
|
|
|
|
var isAliCloud = (cloudList === null || cloudList === void 0 || (_cloudList$find = cloudList.find(function (e) {
|
|
|
|
|
return e.id === (shixun_environment === null || shixun_environment === void 0 ? void 0 : shixun_environment.private_cloud_id);
|
|
|
|
|
})) === null || _cloudList$find === void 0 ? void 0 : _cloudList$find.cloud_type) === 1;
|
|
|
|
|
var isCoderCloud = (cloudList === null || cloudList === void 0 || (_cloudList$find2 = cloudList.find(function (e) {
|
|
|
|
|
return e.id === (shixun_environment === null || shixun_environment === void 0 ? void 0 : shixun_environment.private_cloud_id);
|
|
|
|
|
})) === null || _cloudList$find2 === void 0 ? void 0 : _cloudList$find2.cloud_type) === 4;
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
window.addEventListener("click", handleClick);
|
|
|
|
|
return function () {
|
|
|
|
|
@ -15833,7 +15997,7 @@ var Environment = function Environment(_ref) {
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
}), renderInterface(false), (shixun_environment === null || shixun_environment === void 0 ? void 0 : shixun_environment.operating_system) === 1 && (shixun_environment === null || shixun_environment === void 0 ? void 0 : shixun_environment.private_is_support_vnc) && (isAliCloud || isCoderCloud && virt_type === 1) && /*#__PURE__*/(0,jsx_runtime.jsx)(Label/* default */.Z, {
|
|
|
|
|
}), renderInterface(false), (shixun_environment === null || shixun_environment === void 0 ? void 0 : shixun_environment.operating_system) === 1 && (shixun_environment === null || shixun_environment === void 0 ? void 0 : shixun_environment.private_is_support_vnc) && isAliCloud && /*#__PURE__*/(0,jsx_runtime.jsx)(Label/* default */.Z, {
|
|
|
|
|
required: true,
|
|
|
|
|
name: "\u5B9E\u4F8B\u542F\u52A8\u65B9\u5F0F",
|
|
|
|
|
errorKey: "instance_startup_type",
|
|
|
|
|
@ -19229,6 +19393,28 @@ var ShixunStatusModel = function ShixunStatusModel(dispatch) {
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 13310:
|
|
|
|
|
/*!*******************************************!*\
|
|
|
|
|
!*** ./src/assets/images/index/arrow.png ***!
|
|
|
|
|
\*******************************************/
|
|
|
|
|
/***/ (function(module) {
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIYAAAAeCAYAAADpTGa/AAAAAXNSR0IArs4c6QAAAsBJREFUaEPtmk+IjVEYxn9PJBv/lWw0jIWysLRWYqukrK0GRZLVhPxdKWMxsRlsFBYsrGTYiYTFbJQyFtb+SyEe99RN33zudO/3fef75k73nOW97/u8z33O07nnzyvS6FsFbD8AtmcIPpO0tQnCaqJIqlFOAdu3gT2Z7LeSNpRDK5aVjFFMr0ajbV8GRjJFv0la0gSJZIwmVC5Zw/ZZYDSXvljSj5KQPaclY/QsVfOBtg8DY7nK6yS9q5tNMkbdClfAt70NeJSD2C3pTgXYnlKTMXqSaW6CbC8FPgHZeboiaX/djJIx6la4Ir7tV8CmDMy0pOGKsF3TkzG6SjS3AbYngH05FsOSputkloxRp7oRsG3vAO7noE5IOhMBflaIZIw61Y2AbXsBEE4hazNwYd8xJOlzhBIdIZIx6lI2Iq7tC8DRHORpSScjlpkBlYxRl7IRcW2Ha/CwCV2Ugf0CrJf0IWKpf1DJGHWoWgOm7UvAoRz0LUl7ayg343xcB37CjKSA7dXAGyDcbWTHqKTzkcqkFSO2kE3gzXJF/gfYJeleTA7prySmmg1g2b4bjJAr9RXYKelJLArJGLGUbAjH9jLgJZDvywgvriOSrsegkowRQ8WGMVqrxpb249rKDqUvAsck/a5CKxmjinpzmNs2xyQQNqX58RA4IOl1WYrJGGWV64M825uBYII1Hej8an0eOsBOlbnrSMbogwmuQsH2UOv19SYwW5PwRyB0go0X6fxKxqgyK32S22oBXAicC3uLXO9GluF74AYwIWmqG/VkjG4KzaPv2y+x48DGLrSfA1fDSiMprCj/jWSMeTTxvVC1Hd5TDgLHgRVdcsLJ5UX7hBNaCB9L+h5yZPtILwVTzLxTYFXbIMsLMP8JPAUmgzFcIDGFDoYCU8kYgzHRRX/ltWSMopINRvxYMsZgTHTRXzn2FxIhqRpxDpJmAAAAAElFTkSuQmCC";
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 17756:
|
|
|
|
|
/*!************************************************!*\
|
|
|
|
|
!*** ./src/assets/images/index/arrowhover.png ***!
|
|
|
|
|
\************************************************/
|
|
|
|
|
/***/ (function(module) {
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIYAAAAeCAYAAADpTGa/AAAAAXNSR0IArs4c6QAAA0ZJREFUaEPtmk9IFGEYxp93tG0J0q1m1TqEqYeoQ8eOFUSdAiGMLrsbHsSSighPUllZpyAjxBD8N0tgBnXwFOnSJYqoDhIIkQoZgrtrbhmJf3beWCib3dZ2Z+ebcWW/ve77/t5nnu/hY/58BPnLWwdUPz8H4+iqQMKbqEYHnRBMTgyRM3JzwOvjQQbq/nQTMBkJUlVuNHNdMhjm/HK0Wg1wJ3Q0GoLxIxKkrU6IkMFwwuUcZ3gD3MY6WoztHg/cn+7TYo7IrNtkMLK2yvlCr58vMqPdONlVjN3TvTRltxoZDLsdtsCv8PORFUbIiFCAk+EgPbGAzapVBiMrm9anqOY8l8RiiAH4u04KHkT76azdimQw7HbYIl/18xgYew03oBORIFVbxGZsl8HIaNH6Fnj93M2MeqOKok2onumhCTuVyWDY6a4AdlmAj+k6niWhCFejGt0UgF8TIYNhp7sC2HWDXPRiCFMM7FzFEWIlblROdNE3ASPSImQw7HJWIFcN8B3ouJz0dKLgRrifrgkck7Ip2UWWXGEOlNdzVXwZYwBcBuh3twt7vnTTV2GDDCC5Y9jhqg1Mr4/vMXDBiCbCo4hGp20YZ3g+toMumcIc2NXA6tICxgGUpISjJaLRbWGDfoPkjiHaURt56V6Rg6AXKaid6aMhkaNlMES66QBL9fFTALUpd4rzCnA8rNErURJkMEQ56RCnqoFL5xfwnoGkcxlEWISCxkgf9YmQIoMhwkWHGWX1fEBfQQiM7amjFeDuoRNofnyK4lZkyWBYcW8dexPh4GUMM6D+I4MwAuBcVKOPuUqUwcjVuTzoqwjw/riOEQbK04RjmRidm124nsu7DhmMPFhgKxIqznDlShwDANY6JDwHQpunFB1mTn7JYFhZlTzpPdzKxR/GcQtAc9LZDYM+IsyC8ZAI3WGNRjNJl8HI5NAG+j/xJZZ1dDBQ81/ZhLcKoce9BQOfO2kuXa0MxgZa+Gyk7mtlV3gSTdBxBcC2DD1xEN4RECIFoWIXXk530c9ED6kBvpTNQFmzsRwgYAczmsDwmFC+RITXDAyT6mM20ShLC8ABIozKYBTAQpu9RCL0ymCYda0A6klBuwxGASy02UtMBOMXm5/YZBd52JAAAAAASUVORK5CYII=";
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 96908:
|
|
|
|
|
/*!**************************************************************************!*\
|
|
|
|
|
!*** ./src/components/ui-customization/Cards/ShixunList/img/Jupyter.png ***!
|