From d42dc5c9d0ff39c5feff249b09947273dc87b4af Mon Sep 17 00:00:00 2001 From: autosubmit Date: Wed, 1 Nov 2023 21:42:39 +0800 Subject: [PATCH] Auto Submit --- ...uns__Edit__body__Warehouse__index.async.js | 143 +-- ...ns__Edit__body__Warehouse__index.chunk.css | 22 +- p__Shixuns__Edit__index.async.js | 1014 +++++++---------- p__Shixuns__Edit__index.chunk.css | 265 +++-- umi.js | 2 +- 5 files changed, 571 insertions(+), 875 deletions(-) diff --git a/p__Shixuns__Edit__body__Warehouse__index.async.js b/p__Shixuns__Edit__body__Warehouse__index.async.js index 811bf6e0ad..e864b37988 100644 --- a/p__Shixuns__Edit__body__Warehouse__index.async.js +++ b/p__Shixuns__Edit__body__Warehouse__index.async.js @@ -1006,16 +1006,12 @@ var tooltip = __webpack_require__(6848); var message = __webpack_require__(8591); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/menu/index.js + 11 modules var es_menu = __webpack_require__(20834); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules +var spin = __webpack_require__(71418); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js var row = __webpack_require__(95237); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js var col = __webpack_require__(43604); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules -var dropdown = __webpack_require__(38854); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules -var modal = __webpack_require__(43418); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules -var spin = __webpack_require__(71418); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js var es_button = __webpack_require__(3113); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/toConsumableArray.js @@ -1023,6 +1019,10 @@ var toConsumableArray = __webpack_require__(93923); var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/index.js + 8 modules var tree = __webpack_require__(51218); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules +var dropdown = __webpack_require__(38854); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules +var modal = __webpack_require__(43418); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/switch/index.js + 2 modules var es_switch = __webpack_require__(78673); // EXTERNAL MODULE: ./node_modules/_react-copy-to-clipboard@5.0.2@react-copy-to-clipboard/lib/index.js @@ -3410,14 +3410,13 @@ var Warehouse_excluded = ["globalSetting", "loading", "dispatch", "practiceSetti - // import Complete from '../../components/Complete'; var TabPane = tabs/* default */.Z.TabPane; var Warehouse = function Warehouse(_ref) { - var _shixunsDetail$fileCo10, _practiceSetting$side2, _practiceSetting$side6, _shixunsDetail$detail4, _shixunsDetail$detail5, _shixunsDetail$reposi, _shixunsDetail$secret, _shixunsDetail$reposi2, _shixunsDetail$secret2, _shixunsDetail$reposi3, _shixunsDetail$secret3, _practiceSetting$side8, _shixunsDetail$fileCo12, _shixunsDetail$fileCo13, _shixunsDetail$fileCo14, _shixunsDetail$fileCo15, _shixunsDetail$fileCo16, _practiceSetting$side9, _shixunsDetail$detail6; + var _shixunsDetail$fileCo10, _practiceSetting$side2, _practiceSetting$side6, _practiceSetting$side7, _shixunsDetail$fileCo12, _shixunsDetail$fileCo13, _shixunsDetail$fileCo14, _shixunsDetail$fileCo15, _shixunsDetail$fileCo16, _practiceSetting$side8, _shixunsDetail$detail4; var globalSetting = _ref.globalSetting, loading = _ref.loading, dispatch = _ref.dispatch, @@ -3647,116 +3646,9 @@ var Warehouse = function Warehouse(_ref) { return _ref3.apply(this, arguments); }; }(); - return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + return /*#__PURE__*/(0,jsx_runtime.jsx)("div", { className: Warehousemodules.warehouse, - children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: Warehousemodules.header, - children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, { - align: "middle", - className: "w100 c-white", - style: { - height: 60 - }, - children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { - flex: "1", - children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, { - align: "middle", - children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { - children: /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, { - dropdownRender: function dropdownRender() { - return menu; - }, - className: Warehousemodules.menu, - children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", { - className: "font16 c-white current ml20", - children: [menuData.find(function (item) { - return item.id === activeKey; - })["name"], " ", /*#__PURE__*/(0,jsx_runtime.jsx)("span", { - style: { - color: "#B0B5D6" - }, - className: "iconfont icon-sanjiaoxing font12" - })] - }) - }) - }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { - flex: "81px", - children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: Warehousemodules.line - }) - }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { - children: /*#__PURE__*/(0,jsx_runtime.jsxs)(tabs/* default */.Z, { - className: Warehousemodules.tabs, - activeKey: tabKey, - onChange: function onChange(key) { - var _practiceSetting$side7; - if (practiceSetting !== null && practiceSetting !== void 0 && (_practiceSetting$side7 = practiceSetting.sideBar) !== null && _practiceSetting$side7 !== void 0 && _practiceSetting$side7.confirmLeave) { - modal/* default */.Z.confirm({ - title: "离开此页提示", - content: "系统可能不会保存您所做的更改。", - okText: "离开", - cancelText: "取消", - onOk: function onOk() { - setTabKey(key); - dispatch({ - type: 'practiceSetting/setSideBarTabs', - payload: { - confirmLeave: false, - selectPath: "" - } - }); - } - }); - } else { - setTabKey(key); - dispatch({ - type: 'practiceSetting/setSideBarTabs', - payload: { - confirmLeave: false, - selectPath: "" - } - }); - } - }, - children: [/*#__PURE__*/(0,jsx_runtime.jsx)(TabPane, { - tab: /*#__PURE__*/(0,jsx_runtime.jsx)("span", { - className: "leaveClick", - children: "\u4EE3\u7801\u6587\u4EF6" - }) - }, "1"), isRepository && (shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$detail4 = shixunsDetail.detail) === null || _shixunsDetail$detail4 === void 0 ? void 0 : _shixunsDetail$detail4.init_repository) && /*#__PURE__*/(0,jsx_runtime.jsx)(TabPane, { - tab: "\u63D0\u4EA4\u8BB0\u5F55", - className: "leaveClick" - }, "2"), !isRepository && (shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$detail5 = shixunsDetail.detail) === null || _shixunsDetail$detail5 === void 0 ? void 0 : _shixunsDetail$detail5.secret_repository) && /*#__PURE__*/(0,jsx_runtime.jsx)(TabPane, { - tab: "\u63D0\u4EA4\u8BB0\u5F55", - className: "leaveClick" - }, "2")] - }) - })] - }) - }), (isRepository && (shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$reposi = shixunsDetail.repository) === null || _shixunsDetail$reposi === void 0 ? void 0 : _shixunsDetail$reposi.git_url) || !isRepository && (shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$secret = shixunsDetail.secretRepository) === null || _shixunsDetail$secret === void 0 ? void 0 : _shixunsDetail$secret.git_url)) && /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, { - children: /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, { - children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", { - className: Warehousemodules.title, - children: "\u4ED3\u5E93\u5730\u5740:" - }), /*#__PURE__*/(0,jsx_runtime.jsx)("input", { - value: isRepository ? shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$reposi2 = shixunsDetail.repository) === null || _shixunsDetail$reposi2 === void 0 ? void 0 : _shixunsDetail$reposi2.git_url : shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$secret2 = shixunsDetail.secretRepository) === null || _shixunsDetail$secret2 === void 0 ? void 0 : _shixunsDetail$secret2.git_url - }), /*#__PURE__*/(0,jsx_runtime.jsx)(lib.CopyToClipboard, { - text: isRepository ? shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$reposi3 = shixunsDetail.repository) === null || _shixunsDetail$reposi3 === void 0 ? void 0 : _shixunsDetail$reposi3.git_url : shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$secret3 = shixunsDetail.secretRepository) === null || _shixunsDetail$secret3 === void 0 ? void 0 : _shixunsDetail$secret3.git_url, - onCopy: function onCopy() { - return message/* default */.ZP.success('复制成功'); - }, - children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, { - placement: "topLeft", - title: "\u70B9\u51FB\u590D\u5236\u7248\u672C\u5E93", - children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { - className: "iconfont icon-fuzhi2 current ml5 mr40" - }) - }) - })] - }) - })] - }) - }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { className: Warehousemodules.content, style: { overflow: 'auto' @@ -3777,7 +3669,7 @@ var Warehouse = function Warehouse(_ref) { }), /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", { className: Warehousemodules.right, ref: ref, - children: [(practiceSetting === null || practiceSetting === void 0 || (_practiceSetting$side8 = practiceSetting.sideBar) === null || _practiceSetting$side8 === void 0 ? void 0 : _practiceSetting$side8.selectPath) !== '' && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, { + children: [(practiceSetting === null || practiceSetting === void 0 || (_practiceSetting$side7 = practiceSetting.sideBar) === null || _practiceSetting$side7 === void 0 ? void 0 : _practiceSetting$side7.selectPath) !== '' && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, { children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(spin/* default */.Z, { spinning: !!loading.effects['shixunsDetail/getFileContent'], wrapperClassName: Warehousemodules.loading, @@ -3788,7 +3680,7 @@ var Warehouse = function Warehouse(_ref) { className: "w100", children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", { - className: "iconfont icon-daimacangku2 c-white" + className: "iconfont icon-daimacangku2" }) }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { flex: "40px", @@ -3810,18 +3702,21 @@ var Warehouse = function Warehouse(_ref) { }) }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { className: !!loading.effects['shixunsDetail/getFileContent'] ? "hide" : "show", - children: /*#__PURE__*/(0,jsx_runtime.jsx)(PreviewAll/* default */.Z, { - className: "darkBlue", + children: /*#__PURE__*/(0,jsx_runtime.jsx)(PreviewAll/* default */.Z + // className={`darkBlue`} + , { style: { top: 66, height: "calc(100% - 60px)", position: 'absolute', - zIndex: 1 + zIndex: 1, + backgroundColor: "#fff" }, filename: shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$fileCo12 = shixunsDetail.fileContent) === null || _shixunsDetail$fileCo12 === void 0 ? void 0 : _shixunsDetail$fileCo12.filename, type: (shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$fileCo13 = shixunsDetail.fileContent) === null || _shixunsDetail$fileCo13 === void 0 ? void 0 : _shixunsDetail$fileCo13.file_type) === "office" ? "download" : shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$fileCo14 = shixunsDetail.fileContent) === null || _shixunsDetail$fileCo14 === void 0 ? void 0 : _shixunsDetail$fileCo14.file_type, data: codeMirrorValue, monacoEditor: { + theme: 'vs-light', value: codeMirrorValue, language: shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$fileCo15 = shixunsDetail.fileContent) === null || _shixunsDetail$fileCo15 === void 0 ? void 0 : _shixunsDetail$fileCo15.language, onChange: function onChange(value) { @@ -3856,7 +3751,7 @@ var Warehouse = function Warehouse(_ref) { })] }) })] - }), (practiceSetting === null || practiceSetting === void 0 || (_practiceSetting$side9 = practiceSetting.sideBar) === null || _practiceSetting$side9 === void 0 ? void 0 : _practiceSetting$side9.selectPath) == '' && (shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$detail6 = shixunsDetail.detail) === null || _shixunsDetail$detail6 === void 0 ? void 0 : _shixunsDetail$detail6.init_repository) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + }), (practiceSetting === null || practiceSetting === void 0 || (_practiceSetting$side8 = practiceSetting.sideBar) === null || _practiceSetting$side8 === void 0 ? void 0 : _practiceSetting$side8.selectPath) == '' && (shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$detail4 = shixunsDetail.detail) === null || _shixunsDetail$detail4 === void 0 ? void 0 : _shixunsDetail$detail4.init_repository) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { className: Warehousemodules.empty, children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", { src: ImagesIcon/* emptyIcon */.x7, @@ -3873,7 +3768,7 @@ var Warehouse = function Warehouse(_ref) { isRepository: isRepository }) })] - })] + }) }); }; /* harmony default export */ var body_Warehouse = ((0,_umi_production_exports.connect)(function (_ref4) { diff --git a/p__Shixuns__Edit__body__Warehouse__index.chunk.css b/p__Shixuns__Edit__body__Warehouse__index.chunk.css index c536bb66d0..83ad31f113 100644 --- a/p__Shixuns__Edit__body__Warehouse__index.chunk.css +++ b/p__Shixuns__Edit__body__Warehouse__index.chunk.css @@ -85,7 +85,7 @@ width: 25%; max-width: 440px; height: 100%; - background-color: #0a143d; + background-color: #fafafa; overflow: auto; display: box; display: flex; @@ -114,7 +114,7 @@ display: flex; align-items: flex-end; height: 100%; - background: #0a0e2e; + background-color: #fff; position: relative; } .warehouse___SVzfZ .content___pGWUf .right___RbSHM div[class~='my-codemirror-container'] { @@ -193,7 +193,7 @@ } .footer___xymfv { height: 70px; - background: #282e55; + background: #fafafa; width: 100%; z-index: 5; } @@ -231,7 +231,7 @@ } .filePath___qkzoJ span:after { content: '/'; - color: #fff; + color: black; margin: 0 2px; display: inline-block; } @@ -239,7 +239,7 @@ color: #0152d9; } .filePath___qkzoJ span:nth-last-child(1) { - color: #fff; + color: black; } .filePath___qkzoJ span:nth-last-child(1):after { display: none; @@ -754,7 +754,7 @@ span.CodeMirror-selectedtext { background: none; } box-orient: block-axis; } .headLeft___CFA1O { - color: #fff; + color: #555a88; font-size: 14px; padding: 20px; } @@ -793,11 +793,11 @@ span.CodeMirror-selectedtext { background: none; } width: 100%; } .content___nlH4h [class~='ant-tree-treenode-selected']::before { - background: #2f3662 !important; + background: #f5f5f5 !important; } .content___nlH4h [class~='ant-tree-node-content-wrapper'] { background: none !important; - color: #fff !important; + color: #2f3662 !important; } .content___nlH4h [class~='ant-tree-node-content-wrapper']:hover { background: none !important; @@ -828,7 +828,7 @@ span.CodeMirror-selectedtext { background: none; } transition: none !important; } .content___nlH4h [class~='ant-tree-treenode']:hover::before { - background: #2f3662 !important; + background: #f5f5f5 !important; bottom: 0 !important; } .content___nlH4h [class~='ant-tree-treenode']:hover [class~='icon-gengduo2'] { @@ -851,7 +851,7 @@ span.CodeMirror-selectedtext { background: none; } line-height: 24px !important; } .gitCode___jaHbo { - color: #fff; + color: #555a88; padding: 32px 14px 0 20px; font-size: 14px; } @@ -896,7 +896,7 @@ ul.menu___E01hA [class~='ant-dropdown-menu-item-active'] { .tips___XoHVF { width: 100%; padding: 0 20px; - color: #fff; + color: #555a88; margin-bottom: 10px; line-height: 22px; text-align: justify; diff --git a/p__Shixuns__Edit__index.async.js b/p__Shixuns__Edit__index.async.js index 5dd2cc81ec..801189ef97 100644 --- a/p__Shixuns__Edit__index.async.js +++ b/p__Shixuns__Edit__index.async.js @@ -7326,7 +7326,8 @@ function Setting(_ref) { children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)("div", { style: { height: '100%', - background: '#0A143D', + // background: '#0A143D', + background: "rgb(250,250,250)", width: '25%', maxWidth: '440px', padding: '20px 20px', @@ -7335,14 +7336,15 @@ function Setting(_ref) { children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", { style: { padding: '0px 15px', - fontSize: '16px' + fontSize: '16px', + color: "#0A143D" }, children: "\u8BBE\u7F6E" }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, { selectedKeys: [MenuSelectKey], - theme: "dark", + theme: "light", style: { - background: '#0A143D', + background: 'rgb(250,250,250)', marginTop: '30px', fontSize: '14px' }, @@ -7984,16 +7986,12 @@ var tooltip = __webpack_require__(6848); var message = __webpack_require__(8591); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/menu/index.js + 11 modules var es_menu = __webpack_require__(20834); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules +var spin = __webpack_require__(71418); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js var row = __webpack_require__(95237); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js var col = __webpack_require__(43604); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules -var dropdown = __webpack_require__(38854); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules -var modal = __webpack_require__(43418); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules -var spin = __webpack_require__(71418); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js var es_button = __webpack_require__(3113); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/toConsumableArray.js @@ -8001,6 +7999,10 @@ var toConsumableArray = __webpack_require__(93923); var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/index.js + 8 modules var tree = __webpack_require__(51218); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules +var dropdown = __webpack_require__(38854); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules +var modal = __webpack_require__(43418); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/switch/index.js + 2 modules var es_switch = __webpack_require__(78673); // EXTERNAL MODULE: ./node_modules/_react-copy-to-clipboard@5.0.2@react-copy-to-clipboard/lib/index.js @@ -10388,14 +10390,13 @@ var Warehouse_excluded = ["globalSetting", "loading", "dispatch", "practiceSetti - // import Complete from '../../components/Complete'; var TabPane = tabs/* default */.Z.TabPane; var Warehouse = function Warehouse(_ref) { - var _shixunsDetail$fileCo10, _practiceSetting$side2, _practiceSetting$side6, _shixunsDetail$detail4, _shixunsDetail$detail5, _shixunsDetail$reposi, _shixunsDetail$secret, _shixunsDetail$reposi2, _shixunsDetail$secret2, _shixunsDetail$reposi3, _shixunsDetail$secret3, _practiceSetting$side8, _shixunsDetail$fileCo12, _shixunsDetail$fileCo13, _shixunsDetail$fileCo14, _shixunsDetail$fileCo15, _shixunsDetail$fileCo16, _practiceSetting$side9, _shixunsDetail$detail6; + var _shixunsDetail$fileCo10, _practiceSetting$side2, _practiceSetting$side6, _practiceSetting$side7, _shixunsDetail$fileCo12, _shixunsDetail$fileCo13, _shixunsDetail$fileCo14, _shixunsDetail$fileCo15, _shixunsDetail$fileCo16, _practiceSetting$side8, _shixunsDetail$detail4; var globalSetting = _ref.globalSetting, loading = _ref.loading, dispatch = _ref.dispatch, @@ -10625,116 +10626,9 @@ var Warehouse = function Warehouse(_ref) { return _ref3.apply(this, arguments); }; }(); - return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + return /*#__PURE__*/(0,jsx_runtime.jsx)("div", { className: Warehousemodules.warehouse, - children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: Warehousemodules.header, - children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, { - align: "middle", - className: "w100 c-white", - style: { - height: 60 - }, - children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { - flex: "1", - children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, { - align: "middle", - children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { - children: /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, { - dropdownRender: function dropdownRender() { - return menu; - }, - className: Warehousemodules.menu, - children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", { - className: "font16 c-white current ml20", - children: [menuData.find(function (item) { - return item.id === activeKey; - })["name"], " ", /*#__PURE__*/(0,jsx_runtime.jsx)("span", { - style: { - color: "#B0B5D6" - }, - className: "iconfont icon-sanjiaoxing font12" - })] - }) - }) - }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { - flex: "81px", - children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: Warehousemodules.line - }) - }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { - children: /*#__PURE__*/(0,jsx_runtime.jsxs)(tabs/* default */.Z, { - className: Warehousemodules.tabs, - activeKey: tabKey, - onChange: function onChange(key) { - var _practiceSetting$side7; - if (practiceSetting !== null && practiceSetting !== void 0 && (_practiceSetting$side7 = practiceSetting.sideBar) !== null && _practiceSetting$side7 !== void 0 && _practiceSetting$side7.confirmLeave) { - modal/* default */.Z.confirm({ - title: "离开此页提示", - content: "系统可能不会保存您所做的更改。", - okText: "离开", - cancelText: "取消", - onOk: function onOk() { - setTabKey(key); - dispatch({ - type: 'practiceSetting/setSideBarTabs', - payload: { - confirmLeave: false, - selectPath: "" - } - }); - } - }); - } else { - setTabKey(key); - dispatch({ - type: 'practiceSetting/setSideBarTabs', - payload: { - confirmLeave: false, - selectPath: "" - } - }); - } - }, - children: [/*#__PURE__*/(0,jsx_runtime.jsx)(TabPane, { - tab: /*#__PURE__*/(0,jsx_runtime.jsx)("span", { - className: "leaveClick", - children: "\u4EE3\u7801\u6587\u4EF6" - }) - }, "1"), isRepository && (shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$detail4 = shixunsDetail.detail) === null || _shixunsDetail$detail4 === void 0 ? void 0 : _shixunsDetail$detail4.init_repository) && /*#__PURE__*/(0,jsx_runtime.jsx)(TabPane, { - tab: "\u63D0\u4EA4\u8BB0\u5F55", - className: "leaveClick" - }, "2"), !isRepository && (shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$detail5 = shixunsDetail.detail) === null || _shixunsDetail$detail5 === void 0 ? void 0 : _shixunsDetail$detail5.secret_repository) && /*#__PURE__*/(0,jsx_runtime.jsx)(TabPane, { - tab: "\u63D0\u4EA4\u8BB0\u5F55", - className: "leaveClick" - }, "2")] - }) - })] - }) - }), (isRepository && (shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$reposi = shixunsDetail.repository) === null || _shixunsDetail$reposi === void 0 ? void 0 : _shixunsDetail$reposi.git_url) || !isRepository && (shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$secret = shixunsDetail.secretRepository) === null || _shixunsDetail$secret === void 0 ? void 0 : _shixunsDetail$secret.git_url)) && /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, { - children: /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, { - children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", { - className: Warehousemodules.title, - children: "\u4ED3\u5E93\u5730\u5740:" - }), /*#__PURE__*/(0,jsx_runtime.jsx)("input", { - value: isRepository ? shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$reposi2 = shixunsDetail.repository) === null || _shixunsDetail$reposi2 === void 0 ? void 0 : _shixunsDetail$reposi2.git_url : shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$secret2 = shixunsDetail.secretRepository) === null || _shixunsDetail$secret2 === void 0 ? void 0 : _shixunsDetail$secret2.git_url - }), /*#__PURE__*/(0,jsx_runtime.jsx)(lib.CopyToClipboard, { - text: isRepository ? shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$reposi3 = shixunsDetail.repository) === null || _shixunsDetail$reposi3 === void 0 ? void 0 : _shixunsDetail$reposi3.git_url : shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$secret3 = shixunsDetail.secretRepository) === null || _shixunsDetail$secret3 === void 0 ? void 0 : _shixunsDetail$secret3.git_url, - onCopy: function onCopy() { - return message/* default */.ZP.success('复制成功'); - }, - children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, { - placement: "topLeft", - title: "\u70B9\u51FB\u590D\u5236\u7248\u672C\u5E93", - children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { - className: "iconfont icon-fuzhi2 current ml5 mr40" - }) - }) - })] - }) - })] - }) - }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { className: Warehousemodules.content, style: { overflow: 'auto' @@ -10755,7 +10649,7 @@ var Warehouse = function Warehouse(_ref) { }), /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", { className: Warehousemodules.right, ref: ref, - children: [(practiceSetting === null || practiceSetting === void 0 || (_practiceSetting$side8 = practiceSetting.sideBar) === null || _practiceSetting$side8 === void 0 ? void 0 : _practiceSetting$side8.selectPath) !== '' && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, { + children: [(practiceSetting === null || practiceSetting === void 0 || (_practiceSetting$side7 = practiceSetting.sideBar) === null || _practiceSetting$side7 === void 0 ? void 0 : _practiceSetting$side7.selectPath) !== '' && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, { children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(spin/* default */.Z, { spinning: !!loading.effects['shixunsDetail/getFileContent'], wrapperClassName: Warehousemodules.loading, @@ -10766,7 +10660,7 @@ var Warehouse = function Warehouse(_ref) { className: "w100", children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", { - className: "iconfont icon-daimacangku2 c-white" + className: "iconfont icon-daimacangku2" }) }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { flex: "40px", @@ -10788,18 +10682,21 @@ var Warehouse = function Warehouse(_ref) { }) }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { className: !!loading.effects['shixunsDetail/getFileContent'] ? "hide" : "show", - children: /*#__PURE__*/(0,jsx_runtime.jsx)(PreviewAll/* default */.Z, { - className: "darkBlue", + children: /*#__PURE__*/(0,jsx_runtime.jsx)(PreviewAll/* default */.Z + // className={`darkBlue`} + , { style: { top: 66, height: "calc(100% - 60px)", position: 'absolute', - zIndex: 1 + zIndex: 1, + backgroundColor: "#fff" }, filename: shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$fileCo12 = shixunsDetail.fileContent) === null || _shixunsDetail$fileCo12 === void 0 ? void 0 : _shixunsDetail$fileCo12.filename, type: (shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$fileCo13 = shixunsDetail.fileContent) === null || _shixunsDetail$fileCo13 === void 0 ? void 0 : _shixunsDetail$fileCo13.file_type) === "office" ? "download" : shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$fileCo14 = shixunsDetail.fileContent) === null || _shixunsDetail$fileCo14 === void 0 ? void 0 : _shixunsDetail$fileCo14.file_type, data: codeMirrorValue, monacoEditor: { + theme: 'vs-light', value: codeMirrorValue, language: shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$fileCo15 = shixunsDetail.fileContent) === null || _shixunsDetail$fileCo15 === void 0 ? void 0 : _shixunsDetail$fileCo15.language, onChange: function onChange(value) { @@ -10834,7 +10731,7 @@ var Warehouse = function Warehouse(_ref) { })] }) })] - }), (practiceSetting === null || practiceSetting === void 0 || (_practiceSetting$side9 = practiceSetting.sideBar) === null || _practiceSetting$side9 === void 0 ? void 0 : _practiceSetting$side9.selectPath) == '' && (shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$detail6 = shixunsDetail.detail) === null || _shixunsDetail$detail6 === void 0 ? void 0 : _shixunsDetail$detail6.init_repository) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + }), (practiceSetting === null || practiceSetting === void 0 || (_practiceSetting$side8 = practiceSetting.sideBar) === null || _practiceSetting$side8 === void 0 ? void 0 : _practiceSetting$side8.selectPath) == '' && (shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$detail4 = shixunsDetail.detail) === null || _shixunsDetail$detail4 === void 0 ? void 0 : _shixunsDetail$detail4.init_repository) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { className: Warehousemodules.empty, children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", { src: ImagesIcon/* emptyIcon */.x7, @@ -10851,7 +10748,7 @@ var Warehouse = function Warehouse(_ref) { isRepository: isRepository }) })] - })] + }) }); }; /* harmony default export */ var body_Warehouse = ((0,_umi_production_exports.connect)(function (_ref4) { @@ -10869,9 +10766,9 @@ var Warehouse = function Warehouse(_ref) { /***/ }), -/***/ 30636: +/***/ 36076: /*!*******************************************************!*\ - !*** ./src/pages/Shixuns/Edit/index.tsx + 45 modules ***! + !*** ./src/pages/Shixuns/Edit/index.tsx + 44 modules ***! \*******************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { @@ -10906,8 +10803,6 @@ var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerat /* harmony default export */ var Headermodules = ({"flex_box_center":"flex_box_center___XeTw7","flex_space_between":"flex_space_between___Hfc9g","flex_box_vertical_center":"flex_box_vertical_center___JWkfv","flex_box_center_end":"flex_box_center_end___bKF19","flex_box_column":"flex_box_column___XWcdc","header":"header___HkrmL","flex-center":"flex-center___Xqcdj","title":"title___rc2FS","schedule":"schedule___MloKP","clickWarp":"clickWarp___yvMMm","num":"num___etFJa","subject":"subject___ZbcjS","btns":"btns___R7eGw","btn":"btn___NLvn4","simulate":"simulate___kVrJQ","exit":"exit___CTNC5"}); // EXTERNAL MODULE: ./src/utils/util.tsx var util = __webpack_require__(27291); -;// CONCATENATED MODULE: ./src/assets/images/icons/fl.png -var fl_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAACL0lEQVRIS72WvU9TURTAf4e+qBUritRXoYkaB0w0alz4B3RQExTSbjpooouiddGVxf0hTjKQ+MkANhiVwYTNwcHFRuNgdIHGYiMmVWnja6+5La8ttq99Vesd3/n4nXPuOec+ocHpu6nCecVJFCcUHBDo0eoK0gKvEZ76hNnFy7Lg5kbqCXrGVa8vzyhwVsBoFIQCG5jM+xhNj0jyd90agGmpQVHcQwg0clwjU2SUcDoVk8fVsjUAc0yNiMICOlpyXlEuKCGWuiLjzqcyoBg5xP/CueOzoGDIyaQI0DU3bN61XBa3NBUZ22CvvpMiwLTUbYHzf1gWDpmw9B2S3yoeFEykYnJBdCvaBT4265Z6cEMgNgBn9sPQNHz4ugZgGx3sltCYuojiVqvRd/th4jjsC0J0BhKf63gQLknIUs+AY60A+rfB3UEIboTIDLz65Go9J6alFgT6vAIOboeHp2CrH64+h6m37pYKFnUGWWB9tZrfAOso5Gy4Ng/ZfEl62ISpYQisgzsJuD7fNKxcXUCoE+JR2NUFiSU49wQ2GDAbBV3798tw5D7kVsENMDnXEoUDEI9AeDN8WYGsDb0B0FM0PA0va7ZOLcYpkesl7+wqQXZsqhh7LI1jMNe0TfdsKUGCnfDjJwxMQnqlae1LCrpNvQxafzc8isCDN3DjhTfneo0XB83rqtADlczAsu45D6e8Kv7LslvNon3r2sm4rQ9OGdLOJ9OBtPXRr26Qf/Hb8gvtaezbqqd4vgAAAABJRU5ErkJggg=="; // EXTERNAL MODULE: ./src/service/shixuns.ts var shixuns = __webpack_require__(90935); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules @@ -10916,16 +10811,80 @@ var modal = __webpack_require__(43418); var message = __webpack_require__(8591); // EXTERNAL MODULE: ./src/utils/fetch.ts var fetch = __webpack_require__(97174); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js +var slicedToArray = __webpack_require__(11006); +var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules +var tooltip = __webpack_require__(6848); +;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/layout/Sidebar/index.less?modules +// extracted by mini-css-extract-plugin +/* harmony default export */ var Sidebarmodules = ({"flex_box_center":"flex_box_center___FN240","flex_space_between":"flex_space_between___wjShI","flex_box_vertical_center":"flex_box_vertical_center___HbcwC","flex_box_center_end":"flex_box_center_end___gj_ks","flex_box_column":"flex_box_column___zxJPU","sidebar":"sidebar___OW5LG","items":"items___j856O","item":"item___Zn_qr","name":"name___ZfhoC","itemActive":"itemActive___sW_Ri","question":"question___yfIcY"}); +;// CONCATENATED MODULE: ./src/assets/images/icons/tips.svg +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 SvgTips = function SvgTips(props) { + return /* @__PURE__ */React.createElement("svg", __spreadValues({ + width: 16, + height: 16, + xmlns: "http://www.w3.org/2000/svg" + }, props), /* @__PURE__ */React.createElement("title", null, "\u63D0\u793A\u4FE1\u606F"), /* @__PURE__ */React.createElement("g", { + fillRule: "nonzero", + fill: "none" + }, /* @__PURE__ */React.createElement("path", { + d: "M8 0a8 8 0 1 1-8 8 8.01 8.01 0 0 1 8-8Z", + fill: "#FEB300" + }), /* @__PURE__ */React.createElement("path", { + d: "M8.111 12a.78.78 0 1 0 .006-1.56.78.78 0 0 0-.006 1.56ZM7.556 4a.21.21 0 0 0-.212.218l.244 5.133a.117.117 0 0 0 .116.11h.815a.118.118 0 0 0 .117-.11l.243-5.133A.208.208 0 0 0 8.666 4h-1.11Z", + fill: "#FFF" + }))); +}; + +/* harmony default export */ var tips = ("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNOCAwYTggOCAwIDEgMS04IDggOC4wMSA4LjAxIDAgMCAxIDgtOFoiIGZpbGw9IiNGRUIzMDAiLz48cGF0aCBkPSJNOC4xMTEgMTJhLjc4Ljc4IDAgMSAwIC4wMDYtMS41Ni43OC43OCAwIDAgMC0uMDA2IDEuNTZaTTcuNTU2IDRhLjIxLjIxIDAgMCAwLS4yMTIuMjE4bC4yNDQgNS4xMzNhLjExNy4xMTcgMCAwIDAgLjExNi4xMWguODE1YS4xMTguMTE4IDAgMCAwIC4xMTctLjExbC4yNDMtNS4xMzNBLjIwOC4yMDggMCAwIDAgOC42NjYgNGgtMS4xMVoiIGZpbGw9IiNGRkYiLz48L2c+PC9zdmc+"); +// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules +var ImagesIcon = __webpack_require__(19770); // EXTERNAL MODULE: ./src/.umi-production/exports.ts var _umi_production_exports = __webpack_require__(51649); +// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules +var env = __webpack_require__(47015); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js var jsx_runtime = __webpack_require__(37712); -;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/layout/Header/index.tsx - +;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/layout/Sidebar/index.tsx -var _excluded = ["globalSetting", "loading", "dispatch", "practiceSetting", "shixunsDetail"]; +var _excluded = ["globalSetting", "loading", "dispatch", "shixunsDetail", "practiceSetting"]; @@ -10935,57 +10894,323 @@ var _excluded = ["globalSetting", "loading", "dispatch", "practiceSetting", "shi -var Header = function Header(_ref) { - var _shixunsDetail$detail3, _shixunsDetail$detail4; +var sideBarItems = [{ + name: '基本信息', + icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { + className: "icon iconfont icon-jibenxinxi1" + }), + tabId: 'information' +}, { + name: '代码仓库', + icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { + className: "icon iconfont icon-daimacangku" + }), + tabId: 'warehouse' +}, { + name: '任务关卡', + icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { + className: "icon iconfont icon-renwuguanka" + }), + tabId: 'level' +}, { + name: '实验环境', + icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { + className: "icon iconfont icon-shiyanhuanjing" + }), + tabId: 'environment' +}, { + name: '数据集', + icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { + className: "icon iconfont icon-shujuji", + style: { + fontSize: 25 + } + }), + tabId: 'dataset' +}, { + name: '服务与评测', + icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { + className: "icon iconfont icon-renwuguanka" + }), + tabId: 'service' +}, { + name: '合作人员', + icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { + className: "icon iconfont icon-hezuochengyuan" + }), + tabId: 'collaborate' +}, { + name: '设置', + icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { + className: "icon iconfont icon-shezhi5" + }), + tabId: 'setting' +}]; +var Sidebar = function Sidebar(_ref) { + var _shixunsDetail$detail2; var globalSetting = _ref.globalSetting, loading = _ref.loading, dispatch = _ref.dispatch, - practiceSetting = _ref.practiceSetting, shixunsDetail = _ref.shixunsDetail, + practiceSetting = _ref.practiceSetting, props = objectWithoutProperties_default()(_ref, _excluded); - var location = (0,_umi_production_exports.useLocation)(); - var shixunId = (0,_react_17_0_2_react.useRef)(''); - var params = (0,_umi_production_exports.useParams)(); - var title = practiceSetting.title, - base_info_warning = practiceSetting.base_info_warning, + var base_info_warning = practiceSetting.base_info_warning, challenges_warning = practiceSetting.challenges_warning, - service_warning = practiceSetting.service_warning, + id = practiceSetting.id, repository_warning = practiceSetting.repository_warning, - mirror_warning = practiceSetting.mirror_warning; - (0,_react_17_0_2_react.useEffect)(function () { - var _location$pathname$sp; - shixunId.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[2]; - dispatch({ - type: 'practiceSetting/setParams', - payload: { - id: shixunId.current - } - }); - dispatch({ - type: 'practiceSetting/getCommonData', - payload: { - id: shixunId.current - } - }); - }, [location.pathname]); + sideBar = practiceSetting.sideBar, + service_warning = practiceSetting.service_warning; + var location = (0,_umi_production_exports.useLocation)(); + var params = (0,_umi_production_exports.useParams)(); + var _useSearchParams = (0,_umi_production_exports.useSearchParams)(), + _useSearchParams2 = slicedToArray_default()(_useSearchParams, 1), + searchParams = _useSearchParams2[0]; + // const shixunId = useRef('') + // useEffect(() => { + // shixunId.current = location.pathname.split('/')?.[2] + // dispatch({ + // type: 'practiceSetting/setParams', + // payload: { id: shixunId.current } + // }); + // dispatch({ + // type: 'practiceSetting/getCommonData', + // payload: { id: shixunId.current } + // }); + // }, [location.pathname]) + (0,_react_17_0_2_react.useEffect)(function () { - (0,util/* setDocumentTitle */.Dk)(title || '实践项目名称-未填写'); - return function () { - (0,util/* setDocumentTitle */.Dk)(); - }; - }); - var goBack = /*#__PURE__*/function () { - var _ref2 = 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 confirmTip(); - case 2: - _umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/challenges")); - case 3: - case "end": - return _context.stop(); + var _shixunsDetail$detail; + var tabId = searchParams.get("tabId") || 'information'; + var pathLength = location.pathname.split('/').length; + var newList = shixunsDetail !== null && shixunsDetail !== void 0 && (_shixunsDetail$detail = shixunsDetail.detail) !== null && _shixunsDetail$detail !== void 0 && _shixunsDetail$detail.windows_vnc ? sideBarItems.filter(function (e) { + return e.tabId !== 'dataset'; + }) : sideBarItems; + var isBool = newList.map(function (e) { + return e.tabId; + }).includes(tabId); + if (tabId && isBool) { + dispatch({ + type: 'practiceSetting/setSideBarTabs', + payload: { + tabsActive: tabId + } + }); + return; + } + if (pathLength > 4) { + dispatch({ + type: 'practiceSetting/setSideBarTabs', + payload: { + tabsActive: 'level' + } + }); + return; + } + if (!tabId || tabId && !isBool) { + dispatch({ + type: 'practiceSetting/setSideBarTabs', + payload: { + tabsActive: 'information' + } + }); + return; + } + }, [shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$detail2 = shixunsDetail.detail) === null || _shixunsDetail$detail2 === void 0 ? void 0 : _shixunsDetail$detail2.windows_vnc]); + (0,_react_17_0_2_react.useEffect)(function () { + return function () { + dispatch({ + type: 'practiceSetting/setSideBarTabs', + payload: objectSpread2_default()(objectSpread2_default()({}, practiceSetting.sideBar), {}, { + selectPath: "" + }) + }); + }; + }, [params.id]); + var handleClick = function handleClick(tabId) { + var _practiceSetting$side; + if (tabId === sideBar.tabsActive) return; //阻止重复点击 + var toNext = function toNext() { + _umi_production_exports.history.push("/shixuns/".concat(id, "/edit?tabId=").concat(tabId)); //路由恢复最初始状态 + dispatch({ + type: 'practiceSetting/setSideBarTabs', + payload: { + tabsActive: tabId, + selectPath: "", + confirmLeave: false + } + }); + }; + if (practiceSetting !== null && practiceSetting !== void 0 && (_practiceSetting$side = practiceSetting.sideBar) !== null && _practiceSetting$side !== void 0 && _practiceSetting$side.confirmLeave) { + modal/* default */.Z.confirm({ + title: "离开此页提示", + content: "系统可能不会保存您所做的更改。", + okText: "离开", + cancelText: "取消", + onOk: function onOk() { + toNext(); + } + }); + } else { + toNext(); + } + }; + var renderSideBar = function renderSideBar() { + var _shixunsDetail$detail3; + console.log("hhh--", "renderSideBar"); + var newList = shixunsDetail !== null && shixunsDetail !== void 0 && (_shixunsDetail$detail3 = shixunsDetail.detail) !== null && _shixunsDetail$detail3 !== void 0 && _shixunsDetail$detail3.windows_vnc ? sideBarItems.filter(function (e) { + return e.tabId !== 'dataset'; + }) : sideBarItems; + return newList.filter(function (item) { + var _shixunsDetail$detail4; + if (shixunsDetail !== null && shixunsDetail !== void 0 && (_shixunsDetail$detail4 = shixunsDetail.detail) !== null && _shixunsDetail$detail4 !== void 0 && _shixunsDetail$detail4.is_jupyter_lab) { + return item.tabId !== 'level'; + } + return item.tabId !== 'service'; + }).map(function (param) { + var name = param.name, + icon = param.icon, + tabId = param.tabId; + return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + className: "".concat(practiceSetting.sideBar.tabsActive === tabId ? Sidebarmodules.itemActive : Sidebarmodules.item, " font12"), + onClick: function onClick() { + return handleClick(tabId); + }, + children: [icon, tabId === 'information' && base_info_warning && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, { + title: "\u8BF7\u5B8C\u5584\u57FA\u672C\u4FE1\u606F", + children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", { + src: tips, + alt: "" + }) + }), tabId === 'level' && challenges_warning && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, { + title: "\u8BF7\u521B\u5EFA\u4EFB\u52A1\u5173\u5361", + children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", { + src: tips, + alt: "" + }) + }), tabId === 'service' && service_warning && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, { + title: "\u8BF7\u8BBE\u7F6E\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6", + children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", { + src: tips, + alt: "" + }) + }), tabId === 'warehouse' && repository_warning && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, { + title: "\u8BF7\u5F00\u542F\u4EE3\u7801\u4ED3\u5E93", + children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", { + src: tips, + alt: "" + }) + }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", { + className: Sidebarmodules.name, + children: name + })] + }, tabId); + }); + }; + return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + className: Sidebarmodules.sidebar, + children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", { + className: Sidebarmodules.items, + children: renderSideBar() + }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + className: Sidebarmodules.question, + children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, { + placement: "right", + title: "\u5E38\u89C1\u95EE\u9898", + children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", { + style: { + cursor: 'pointer' + }, + onClick: function onClick() { + return window.open("".concat(env/* default */.Z.API_SERVER, "/pdf/\u5B9E\u8BAD\u5236\u4F5C\u5E38\u89C1\u95EE\u9898.pdf")); + }, + children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", { + src: ImagesIcon/* questionIcon */.Pt, + height: 44, + width: 44, + alt: "" + }) + }) + }) + })] + }); +}; +/* harmony default export */ var layout_Sidebar = ((0,_umi_production_exports.connect)(function (_ref2) { + var loading = _ref2.loading, + globalSetting = _ref2.globalSetting, + shixunsDetail = _ref2.shixunsDetail, + practiceSetting = _ref2.practiceSetting; + return { + globalSetting: globalSetting, + loading: loading, + practiceSetting: practiceSetting, + shixunsDetail: shixunsDetail + }; +})(Sidebar)); +;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/layout/Header/index.tsx + + + +var Header_excluded = ["globalSetting", "loading", "dispatch", "practiceSetting", "shixunsDetail"]; + + + + + + + + + + +var Header = function Header(_ref) { + var globalSetting = _ref.globalSetting, + loading = _ref.loading, + dispatch = _ref.dispatch, + practiceSetting = _ref.practiceSetting, + shixunsDetail = _ref.shixunsDetail, + props = objectWithoutProperties_default()(_ref, Header_excluded); + var location = (0,_umi_production_exports.useLocation)(); + var shixunId = (0,_react_17_0_2_react.useRef)(''); + var params = (0,_umi_production_exports.useParams)(); + var title = practiceSetting.title, + base_info_warning = practiceSetting.base_info_warning, + challenges_warning = practiceSetting.challenges_warning, + service_warning = practiceSetting.service_warning, + repository_warning = practiceSetting.repository_warning, + mirror_warning = practiceSetting.mirror_warning; + (0,_react_17_0_2_react.useEffect)(function () { + var _location$pathname$sp; + shixunId.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[2]; + dispatch({ + type: 'practiceSetting/setParams', + payload: { + id: shixunId.current + } + }); + dispatch({ + type: 'practiceSetting/getCommonData', + payload: { + id: shixunId.current + } + }); + }, [location.pathname]); + (0,_react_17_0_2_react.useEffect)(function () { + (0,util/* setDocumentTitle */.Dk)(title || '实践项目名称-未填写'); + return function () { + (0,util/* setDocumentTitle */.Dk)(); + }; + }); + var goBack = /*#__PURE__*/function () { + var _ref2 = 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 confirmTip(); + case 2: + _umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/challenges")); + case 3: + case "end": + return _context.stop(); } }, _callee); })); @@ -11261,111 +11486,9 @@ var Header = function Header(_ref) { onClick: skip, className: "icon iconfont icon-xiugai1" })] - }), /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", { - className: Headermodules.schedule, - children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", { - children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", { - style: borderBottomColor('information'), - className: Headermodules.clickWarp, - onClick: function onClick() { - return handleClick('information'); - }, - children: [base_info_warning ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", { - className: Headermodules.num, - children: "1" - }) : /*#__PURE__*/(0,jsx_runtime.jsx)("img", { - src: fl_namespaceObject - }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", { - className: Headermodules.subject, - children: "\u57FA\u672C\u4FE1\u606F" - })] - }), /*#__PURE__*/(0,jsx_runtime.jsx)("i", { - className: "iconfont icon-lujing" - })] - }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { - children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", { - style: borderBottomColor('warehouse'), - className: Headermodules.clickWarp, - onClick: function onClick() { - return handleClick('warehouse'); - }, - children: [repository_warning ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", { - className: Headermodules.num, - children: "2" - }) : /*#__PURE__*/(0,jsx_runtime.jsx)("img", { - src: fl_namespaceObject - }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", { - className: Headermodules.subject, - children: "\u4EE3\u7801\u4ED3\u5E93" - })] - }), /*#__PURE__*/(0,jsx_runtime.jsx)("i", { - className: "iconfont icon-lujing" - })] - }), (shixunsDetail === null || shixunsDetail === void 0 ? void 0 : shixunsDetail.detail) && !(shixunsDetail !== null && shixunsDetail !== void 0 && (_shixunsDetail$detail3 = shixunsDetail.detail) !== null && _shixunsDetail$detail3 !== void 0 && _shixunsDetail$detail3.is_jupyter_lab) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { - children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", { - style: borderBottomColor('level'), - className: Headermodules.clickWarp, - onClick: function onClick() { - return handleClick('level'); - }, - children: [challenges_warning ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", { - className: Headermodules.num, - children: "3" - }) : /*#__PURE__*/(0,jsx_runtime.jsx)("img", { - src: fl_namespaceObject - }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", { - className: Headermodules.subject, - children: "\u4EFB\u52A1\u5173\u5361" - })] - }), /*#__PURE__*/(0,jsx_runtime.jsx)("i", { - className: "iconfont icon-lujing" - })] - }), (shixunsDetail === null || shixunsDetail === void 0 ? void 0 : shixunsDetail.detail) && (shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$detail4 = shixunsDetail.detail) === null || _shixunsDetail$detail4 === void 0 ? void 0 : _shixunsDetail$detail4.is_jupyter_lab) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { - children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", { - style: borderBottomColor('service'), - className: Headermodules.clickWarp, - onClick: function onClick() { - return handleClick('service'); - }, - children: [service_warning ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", { - className: Headermodules.num, - children: "3" - }) : /*#__PURE__*/(0,jsx_runtime.jsx)("img", { - src: fl_namespaceObject - }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", { - className: Headermodules.subject, - children: "\u670D\u52A1" - })] - }), /*#__PURE__*/(0,jsx_runtime.jsx)("i", { - className: "iconfont icon-lujing" - })] - }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { - children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", { - style: borderBottomColor('environment'), - className: Headermodules.clickWarp, - onClick: function onClick() { - return handleClick('environment'); - }, - children: [mirror_warning ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", { - className: Headermodules.num, - children: "4" - }) : /*#__PURE__*/(0,jsx_runtime.jsx)("img", { - src: fl_namespaceObject - }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", { - className: Headermodules.subject, - children: "\u5B9E\u9A8C\u73AF\u5883" - })] - }) - })] }), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", { - className: Headermodules.btns, - children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: Headermodules.simulate, - onClick: function onClick() { - return toShixun(shixunId.current, false); - }, - children: "\u6A21\u62DF\u5B9E\u6218" - }) + className: Headermodules.schedule, + children: /*#__PURE__*/(0,jsx_runtime.jsx)(layout_Sidebar, {}) })] }); }; @@ -11381,9 +11504,6 @@ var Header = function Header(_ref) { shixunsDetail: shixunsDetail }; })(Header)); -// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js -var slicedToArray = __webpack_require__(11006); -var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray); ;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/body/Information/index.less?modules // extracted by mini-css-extract-plugin /* harmony default export */ var Informationmodules = ({"information":"information___HnFAg","scroll":"scroll___SzyY_","formWrap":"formWrap___dlZEW","img":"img___ESi1t"}); @@ -11496,8 +11616,6 @@ var AddTags = function AddTags(_ref) { /* harmony default export */ var Information_AddTags = (AddTags); // EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/lodash.js var lodash = __webpack_require__(89392); -// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules -var env = __webpack_require__(47015); ;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/components/Complete/index.less?modules // extracted by mini-css-extract-plugin /* harmony default export */ var Completemodules = ({"flex_box_center":"flex_box_center___hBEA9","flex_space_between":"flex_space_between___rMB3f","flex_box_vertical_center":"flex_box_vertical_center___XT_7U","flex_box_center_end":"flex_box_center_end___ayQhe","flex_box_column":"flex_box_column___Yqif8","complete":"complete___zRKx3","cancel":"cancel___D5r7A","save":"save___sa92o"}); @@ -13319,8 +13437,6 @@ var Collaborators = function Collaborators(_ref) { var Setting = __webpack_require__(75063); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js var es_select = __webpack_require__(57809); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules -var tooltip = __webpack_require__(6848); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/switch/index.js + 2 modules var es_switch = __webpack_require__(78673); // EXTERNAL MODULE: ./src/pages/Shixuns/Edit/body/Environment/Label/index.tsx + 1 modules @@ -17433,8 +17549,6 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min); /* harmony default export */ var Datasetmodules = ({"flex_box_center":"flex_box_center___l5eTc","flex_space_between":"flex_space_between___k0OR7","flex_box_vertical_center":"flex_box_vertical_center___OKlIC","flex_box_center_end":"flex_box_center_end___hN9A6","flex_box_column":"flex_box_column___ijTq_","dataset":"dataset___dSWAV","header":"header___BzxI4","title":"title___cPEyN","dataPath":"dataPath___wJ6mR","pathTitle":"pathTitle___TOS2Z","btns":"btns___jGE8o","content":"content___s4ep8","customTable":"customTable___OG3_9","row":"row___ONd7r","empty":"empty___CgtTE","path":"path___Cg5rX","text":"text___SCLRV","actionsBtns":"actionsBtns___L5tdC","customModal":"customModal___qVeG3","shareModal":"shareModal___HedYo","fileName":"fileName___x56US","renameModal":"renameModal___SmCAd","errorDes":"errorDes___VLR_5","uploadFileModal":"uploadFileModal___pYYDB"}); // EXTERNAL MODULE: ./src/pages/Shixuns/Edit/body/Dataset/components/UploadFile/index.tsx + 1 modules var UploadFile = __webpack_require__(40882); -// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules -var ImagesIcon = __webpack_require__(19770); ;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/body/Dataset/index.tsx @@ -19477,314 +19591,6 @@ var Content = function Content(_ref) { }); }; /* harmony default export */ var layout_Content = (Content); -;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/layout/Sidebar/index.less?modules -// extracted by mini-css-extract-plugin -/* harmony default export */ var Sidebarmodules = ({"flex_box_center":"flex_box_center___FN240","flex_space_between":"flex_space_between___wjShI","flex_box_vertical_center":"flex_box_vertical_center___HbcwC","flex_box_center_end":"flex_box_center_end___gj_ks","flex_box_column":"flex_box_column___zxJPU","sidebar":"sidebar___OW5LG","items":"items___j856O","item":"item___Zn_qr","name":"name___ZfhoC","itemActive":"itemActive___sW_Ri","question":"question___yfIcY"}); -;// CONCATENATED MODULE: ./src/assets/images/icons/tips.svg -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 SvgTips = function SvgTips(props) { - return /* @__PURE__ */React.createElement("svg", __spreadValues({ - width: 16, - height: 16, - xmlns: "http://www.w3.org/2000/svg" - }, props), /* @__PURE__ */React.createElement("title", null, "\u63D0\u793A\u4FE1\u606F"), /* @__PURE__ */React.createElement("g", { - fillRule: "nonzero", - fill: "none" - }, /* @__PURE__ */React.createElement("path", { - d: "M8 0a8 8 0 1 1-8 8 8.01 8.01 0 0 1 8-8Z", - fill: "#FEB300" - }), /* @__PURE__ */React.createElement("path", { - d: "M8.111 12a.78.78 0 1 0 .006-1.56.78.78 0 0 0-.006 1.56ZM7.556 4a.21.21 0 0 0-.212.218l.244 5.133a.117.117 0 0 0 .116.11h.815a.118.118 0 0 0 .117-.11l.243-5.133A.208.208 0 0 0 8.666 4h-1.11Z", - fill: "#FFF" - }))); -}; - -/* harmony default export */ var tips = ("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNOCAwYTggOCAwIDEgMS04IDggOC4wMSA4LjAxIDAgMCAxIDgtOFoiIGZpbGw9IiNGRUIzMDAiLz48cGF0aCBkPSJNOC4xMTEgMTJhLjc4Ljc4IDAgMSAwIC4wMDYtMS41Ni43OC43OCAwIDAgMC0uMDA2IDEuNTZaTTcuNTU2IDRhLjIxLjIxIDAgMCAwLS4yMTIuMjE4bC4yNDQgNS4xMzNhLjExNy4xMTcgMCAwIDAgLjExNi4xMWguODE1YS4xMTguMTE4IDAgMCAwIC4xMTctLjExbC4yNDMtNS4xMzNBLjIwOC4yMDggMCAwIDAgOC42NjYgNGgtMS4xMVoiIGZpbGw9IiNGRkYiLz48L2c+PC9zdmc+"); -;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/layout/Sidebar/index.tsx - - - -var Sidebar_excluded = ["globalSetting", "loading", "dispatch", "shixunsDetail", "practiceSetting"]; - - - - - - - - - -var sideBarItems = [{ - name: '基本信息', - icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { - className: "icon iconfont icon-jibenxinxi1" - }), - tabId: 'information' -}, { - name: '代码仓库', - icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { - className: "icon iconfont icon-daimacangku" - }), - tabId: 'warehouse' -}, { - name: '任务关卡', - icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { - className: "icon iconfont icon-renwuguanka" - }), - tabId: 'level' -}, { - name: '实验环境', - icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { - className: "icon iconfont icon-shiyanhuanjing" - }), - tabId: 'environment' -}, { - name: '数据集', - icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { - className: "icon iconfont icon-shujuji", - style: { - fontSize: 25 - } - }), - tabId: 'dataset' -}, { - name: '服务与评测', - icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { - className: "icon iconfont icon-renwuguanka" - }), - tabId: 'service' -}, { - name: '合作人员', - icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { - className: "icon iconfont icon-hezuochengyuan" - }), - tabId: 'collaborate' -}, { - name: '设置', - icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { - className: "icon iconfont icon-shezhi5" - }), - tabId: 'setting' -}]; -var Sidebar = function Sidebar(_ref) { - var _shixunsDetail$detail2; - var globalSetting = _ref.globalSetting, - loading = _ref.loading, - dispatch = _ref.dispatch, - shixunsDetail = _ref.shixunsDetail, - practiceSetting = _ref.practiceSetting, - props = objectWithoutProperties_default()(_ref, Sidebar_excluded); - var base_info_warning = practiceSetting.base_info_warning, - challenges_warning = practiceSetting.challenges_warning, - id = practiceSetting.id, - repository_warning = practiceSetting.repository_warning, - sideBar = practiceSetting.sideBar, - service_warning = practiceSetting.service_warning; - var location = (0,_umi_production_exports.useLocation)(); - var params = (0,_umi_production_exports.useParams)(); - var _useSearchParams = (0,_umi_production_exports.useSearchParams)(), - _useSearchParams2 = slicedToArray_default()(_useSearchParams, 1), - searchParams = _useSearchParams2[0]; - (0,_react_17_0_2_react.useEffect)(function () { - var _shixunsDetail$detail; - var tabId = searchParams.get("tabId"); - var pathLength = location.pathname.split('/').length; - var newList = shixunsDetail !== null && shixunsDetail !== void 0 && (_shixunsDetail$detail = shixunsDetail.detail) !== null && _shixunsDetail$detail !== void 0 && _shixunsDetail$detail.windows_vnc ? sideBarItems.filter(function (e) { - return e.tabId !== 'dataset'; - }) : sideBarItems; - var isBool = newList.map(function (e) { - return e.tabId; - }).includes(tabId); - if (tabId && isBool) { - dispatch({ - type: 'practiceSetting/setSideBarTabs', - payload: { - tabsActive: tabId - } - }); - return; - } - if (pathLength > 4) { - dispatch({ - type: 'practiceSetting/setSideBarTabs', - payload: { - tabsActive: 'level' - } - }); - return; - } - if (!tabId || tabId && !isBool) { - dispatch({ - type: 'practiceSetting/setSideBarTabs', - payload: { - tabsActive: 'information' - } - }); - return; - } - }, [shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$detail2 = shixunsDetail.detail) === null || _shixunsDetail$detail2 === void 0 ? void 0 : _shixunsDetail$detail2.windows_vnc]); - (0,_react_17_0_2_react.useEffect)(function () { - return function () { - dispatch({ - type: 'practiceSetting/setSideBarTabs', - payload: objectSpread2_default()(objectSpread2_default()({}, practiceSetting.sideBar), {}, { - selectPath: "" - }) - }); - }; - }, [params.id]); - var handleClick = function handleClick(tabId) { - var _practiceSetting$side; - if (tabId === sideBar.tabsActive) return; //阻止重复点击 - var toNext = function toNext() { - _umi_production_exports.history.push("/shixuns/".concat(id, "/edit?tabId=").concat(tabId)); //路由恢复最初始状态 - dispatch({ - type: 'practiceSetting/setSideBarTabs', - payload: { - tabsActive: tabId, - selectPath: "", - confirmLeave: false - } - }); - }; - if (practiceSetting !== null && practiceSetting !== void 0 && (_practiceSetting$side = practiceSetting.sideBar) !== null && _practiceSetting$side !== void 0 && _practiceSetting$side.confirmLeave) { - modal/* default */.Z.confirm({ - title: "离开此页提示", - content: "系统可能不会保存您所做的更改。", - okText: "离开", - cancelText: "取消", - onOk: function onOk() { - toNext(); - } - }); - } else { - toNext(); - } - }; - var renderSideBar = function renderSideBar() { - var _shixunsDetail$detail3; - var newList = shixunsDetail !== null && shixunsDetail !== void 0 && (_shixunsDetail$detail3 = shixunsDetail.detail) !== null && _shixunsDetail$detail3 !== void 0 && _shixunsDetail$detail3.windows_vnc ? sideBarItems.filter(function (e) { - return e.tabId !== 'dataset'; - }) : sideBarItems; - return newList.filter(function (item) { - var _shixunsDetail$detail4; - if (shixunsDetail !== null && shixunsDetail !== void 0 && (_shixunsDetail$detail4 = shixunsDetail.detail) !== null && _shixunsDetail$detail4 !== void 0 && _shixunsDetail$detail4.is_jupyter_lab) { - return item.tabId !== 'level'; - } - return item.tabId !== 'service'; - }).map(function (param) { - var name = param.name, - icon = param.icon, - tabId = param.tabId; - return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { - className: "".concat(practiceSetting.sideBar.tabsActive === tabId ? Sidebarmodules.itemActive : Sidebarmodules.item, " font12"), - onClick: function onClick() { - return handleClick(tabId); - }, - children: [icon, /*#__PURE__*/(0,jsx_runtime.jsx)("span", { - className: Sidebarmodules.name, - children: name - }), tabId === 'information' && base_info_warning && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, { - title: "\u8BF7\u5B8C\u5584\u57FA\u672C\u4FE1\u606F", - children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", { - src: tips, - alt: "" - }) - }), tabId === 'level' && challenges_warning && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, { - title: "\u8BF7\u521B\u5EFA\u4EFB\u52A1\u5173\u5361", - children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", { - src: tips, - alt: "" - }) - }), tabId === 'service' && service_warning && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, { - title: "\u8BF7\u8BBE\u7F6E\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6", - children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", { - src: tips, - alt: "" - }) - }), tabId === 'warehouse' && repository_warning && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, { - title: "\u8BF7\u5F00\u542F\u4EE3\u7801\u4ED3\u5E93", - children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", { - src: tips, - alt: "" - }) - })] - }, tabId); - }); - }; - return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { - className: Sidebarmodules.sidebar, - children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: Sidebarmodules.items, - children: renderSideBar() - }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: Sidebarmodules.question, - children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, { - placement: "right", - title: "\u5E38\u89C1\u95EE\u9898", - children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", { - style: { - cursor: 'pointer' - }, - onClick: function onClick() { - return window.open("".concat(env/* default */.Z.API_SERVER, "/pdf/\u5B9E\u8BAD\u5236\u4F5C\u5E38\u89C1\u95EE\u9898.pdf")); - }, - children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", { - src: ImagesIcon/* questionIcon */.Pt, - height: 44, - width: 44, - alt: "" - }) - }) - }) - })] - }); -}; -/* harmony default export */ var layout_Sidebar = ((0,_umi_production_exports.connect)(function (_ref2) { - var loading = _ref2.loading, - globalSetting = _ref2.globalSetting, - shixunsDetail = _ref2.shixunsDetail, - practiceSetting = _ref2.practiceSetting; - return { - globalSetting: globalSetting, - loading: loading, - practiceSetting: practiceSetting, - shixunsDetail: shixunsDetail - }; -})(Sidebar)); ;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/index.tsx @@ -19796,7 +19602,6 @@ var Edit_excluded = ["globalSetting", "loading", "dispatch", "practiceSetting"]; - var PracticeSetting = function PracticeSetting(_ref) { var globalSetting = _ref.globalSetting, loading = _ref.loading, @@ -19833,17 +19638,14 @@ var PracticeSetting = function PracticeSetting(_ref) { children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", { className: Editmodules.wrapHeader, children: /*#__PURE__*/(0,jsx_runtime.jsx)(layout_Header, {}) - }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { className: Editmodules.wrapLayout, - children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: Editmodules.wrapSidebar, - children: /*#__PURE__*/(0,jsx_runtime.jsx)(layout_Sidebar, {}) - }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", { className: Editmodules.wrapContent, children: /*#__PURE__*/(0,jsx_runtime.jsx)(layout_Content, objectSpread2_default()(objectSpread2_default()({}, props), {}, { tabsActive: practiceSetting.sideBar.tabsActive })) - })] + }) })] }); }; diff --git a/p__Shixuns__Edit__index.chunk.css b/p__Shixuns__Edit__index.chunk.css index 158148f667..13fb20fca0 100644 --- a/p__Shixuns__Edit__index.chunk.css +++ b/p__Shixuns__Edit__index.chunk.css @@ -5,7 +5,7 @@ height: 100vh; } .practiceSetting___duHIg .wrapHeader___vb3NV { - height: 60px; + height: 70px; } .practiceSetting___duHIg .wrapLayout___z6EgF { height: calc(100vh - 60px); @@ -62,7 +62,7 @@ display: flex; justify-content: space-between; align-items: center; - background-color: #121731; + background-color: #3e4571; } .header___HkrmL .flex-center___Xqcdj { display: flex; @@ -172,6 +172,117 @@ margin-left: 20px; } +/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Shixuns/Edit/layout/Sidebar/index.less?modules ***! + \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +.flex_box_center___FN240 { + justify-content: center; + align-items: center; + -webkit-justify-content: center; + box-align: center; +} +.flex_space_between___wjShI { + justify-content: space-between; + -webkit-box-pack: justify; +} +.flex_box_vertical_center___HbcwC { + align-items: center; + box-align: center; +} +.flex_box_center_end___gj_ks { + justify-content: flex-end; + align-items: center; + -webkit-justify-content: flex-end; + -webkit-align-items: center; + -webkit-box-align: center; + -webkit-box-pack: end; + box-align: center; + box-pack: end; +} +.flex_box_column___zxJPU { + flex-direction: column; + box-orient: block-axis; +} +.sidebar___OW5LG { + width: 100%; + height: 100%; + background-color: #3e4571; + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: center; +} +.sidebar___OW5LG .items___j856O { + display: flex; +} +.sidebar___OW5LG .items___j856O .ant-tooltip-inner { + color: #333; +} +.sidebar___OW5LG .items___j856O .item___Zn_qr { + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + width: 80px; + height: 70px; + cursor: pointer; + position: relative; +} +.sidebar___OW5LG .items___j856O .item___Zn_qr .name___ZfhoC { + color: #fff; +} +.sidebar___OW5LG .items___j856O .item___Zn_qr i { + font-size: 22px; + color: #fff; + margin-bottom: 5px; +} +.sidebar___OW5LG .items___j856O .item___Zn_qr img { + position: absolute; + z-index: 1; + left: 42px; + width: 18px; + height: 18px; + top: 10px; +} +.sidebar___OW5LG .items___j856O .item___Zn_qr:hover { + background-color: rgba(24, 144, 255, 0.2); +} +.sidebar___OW5LG .items___j856O .itemActive___sW_Ri { + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + width: 80px; + height: 70px; + cursor: pointer; + position: relative; + background-color: #0152d9 !important; +} +.sidebar___OW5LG .items___j856O .itemActive___sW_Ri .name___ZfhoC { + color: #fff; +} +.sidebar___OW5LG .items___j856O .itemActive___sW_Ri i { + font-size: 22px; + color: #fff; + margin-bottom: 5px; +} +.sidebar___OW5LG .items___j856O .itemActive___sW_Ri img { + position: absolute; + z-index: 1; + left: 42px; + width: 18px; + height: 18px; + top: 10px; +} +.sidebar___OW5LG .items___j856O .itemActive___sW_Ri:hover { + background-color: rgba(24, 144, 255, 0.2); +} +.sidebar___OW5LG .question___yfIcY { + width: 100%; + position: relative; + text-align: center; +} + /*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Shixuns/Edit/body/Information/index.less?modules ***! \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ @@ -1704,7 +1815,7 @@ span.CodeMirror-selectedtext { width: 25%; max-width: 440px; height: 100%; - background-color: #0a143d; + background-color: #fafafa; overflow: auto; display: box; display: flex; @@ -1733,7 +1844,7 @@ span.CodeMirror-selectedtext { display: flex; align-items: flex-end; height: 100%; - background: #0a0e2e; + background-color: #fff; position: relative; } .warehouse___SVzfZ .content___pGWUf .right___RbSHM div[class~='my-codemirror-container'] { @@ -1812,7 +1923,7 @@ span.CodeMirror-selectedtext { } .footer___xymfv { height: 70px; - background: #282e55; + background: #fafafa; width: 100%; z-index: 5; } @@ -1850,7 +1961,7 @@ span.CodeMirror-selectedtext { } .filePath___qkzoJ span:after { content: '/'; - color: #fff; + color: black; margin: 0 2px; display: inline-block; } @@ -1858,7 +1969,7 @@ span.CodeMirror-selectedtext { color: #0152d9; } .filePath___qkzoJ span:nth-last-child(1) { - color: #fff; + color: black; } .filePath___qkzoJ span:nth-last-child(1):after { display: none; @@ -1998,7 +2109,7 @@ span.CodeMirror-selectedtext { box-orient: block-axis; } .headLeft___CFA1O { - color: #fff; + color: #555a88; font-size: 14px; padding: 20px; } @@ -2037,11 +2148,11 @@ span.CodeMirror-selectedtext { width: 100%; } .content___nlH4h [class~='ant-tree-treenode-selected']::before { - background: #2f3662 !important; + background: #f5f5f5 !important; } .content___nlH4h [class~='ant-tree-node-content-wrapper'] { background: none !important; - color: #fff !important; + color: #2f3662 !important; } .content___nlH4h [class~='ant-tree-node-content-wrapper']:hover { background: none !important; @@ -2072,7 +2183,7 @@ span.CodeMirror-selectedtext { transition: none !important; } .content___nlH4h [class~='ant-tree-treenode']:hover::before { - background: #2f3662 !important; + background: #f5f5f5 !important; bottom: 0 !important; } .content___nlH4h [class~='ant-tree-treenode']:hover [class~='icon-gengduo2'] { @@ -2095,7 +2206,7 @@ span.CodeMirror-selectedtext { line-height: 24px !important; } .gitCode___jaHbo { - color: #fff; + color: #555a88; padding: 32px 14px 0 20px; font-size: 14px; } @@ -2140,7 +2251,7 @@ ul.menu___E01hA [class~='ant-dropdown-menu-item-active'] { .tips___XoHVF { width: 100%; padding: 0 20px; - color: #fff; + color: #555a88; margin-bottom: 10px; line-height: 22px; text-align: justify; @@ -2304,7 +2415,6 @@ ul.menu___E01hA [class~='ant-dropdown-menu-item-active'] { width: 25%; height: 100%; max-width: 440px; - background-color: #0a143d; position: relative; } .level___W39_7 .left___xugM0 .container___MnoCi { @@ -2319,7 +2429,7 @@ ul.menu___E01hA [class~='ant-dropdown-menu-item-active'] { } .level___W39_7 .left___xugM0 .container___MnoCi .title___HNuSO { font-size: 14px; - color: #ffffff; + color: #686f9a; padding: 30px 0 10px 20px; } .level___W39_7 .left___xugM0 .container___MnoCi .listWrap___Oz5IK { @@ -2349,7 +2459,7 @@ ul.menu___E01hA [class~='ant-dropdown-menu-item-active'] { justify-content: flex-start; align-items: center; font-size: 14px; - color: #fff; + color: #686f9a; cursor: pointer; padding-left: 20px; } @@ -2378,10 +2488,10 @@ ul.menu___E01hA [class~='ant-dropdown-menu-item-active'] { justify-content: flex-start; align-items: center; font-size: 14px; - color: #fff; + color: #686f9a; cursor: pointer; padding-left: 20px; - background: rgba(62, 69, 113) !important; + background-color: #f5f5f5; } .level___W39_7 .left___xugM0 .container___MnoCi .listWrap___Oz5IK .listActive___e7FOo:hover { background: rgba(62, 69, 113, 0.4); @@ -4922,6 +5032,10 @@ button[class~='ant-btn-default']:disabled.btn___In02G { align-items: center; padding: 0px 20px; } +[class~='ant-menu-vertical'] { + -webkit-border-end: none !important; + border-inline-end: none !important; +} /*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/FixedButton/index.less?modules ***! @@ -7155,118 +7269,3 @@ button[class~='ant-btn-default']:disabled.btn___In02G { left: 80px; } -/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Shixuns/Edit/layout/Sidebar/index.less?modules ***! - \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ -.flex_box_center___FN240 { - justify-content: center; - align-items: center; - -webkit-justify-content: center; - box-align: center; -} -.flex_space_between___wjShI { - justify-content: space-between; - -webkit-box-pack: justify; -} -.flex_box_vertical_center___HbcwC { - align-items: center; - box-align: center; -} -.flex_box_center_end___gj_ks { - justify-content: flex-end; - align-items: center; - -webkit-justify-content: flex-end; - -webkit-align-items: center; - -webkit-box-align: center; - -webkit-box-pack: end; - box-align: center; - box-pack: end; -} -.flex_box_column___zxJPU { - flex-direction: column; - box-orient: block-axis; -} -.sidebar___OW5LG { - width: 100%; - height: 100%; - background-color: #3e4571; - display: flex; - flex-direction: column; - justify-content: space-between; - align-items: center; -} -.sidebar___OW5LG .items___j856O { - flex: 1 1; - overflow: auto; -} -.sidebar___OW5LG .items___j856O .ant-tooltip-inner { - color: #333; -} -.sidebar___OW5LG .items___j856O .item___Zn_qr { - display: flex; - justify-content: center; - align-items: center; - flex-direction: column; - width: 80px; - height: 70px; - margin-bottom: 12px; - cursor: pointer; - position: relative; -} -.sidebar___OW5LG .items___j856O .item___Zn_qr .name___ZfhoC { - color: #fff; -} -.sidebar___OW5LG .items___j856O .item___Zn_qr i { - font-size: 22px; - color: #fff; - margin-bottom: 5px; -} -.sidebar___OW5LG .items___j856O .item___Zn_qr img { - position: absolute; - z-index: 1; - left: 42px; - width: 18px; - height: 18px; - top: 10px; -} -.sidebar___OW5LG .items___j856O .item___Zn_qr:hover { - background-color: rgba(24, 144, 255, 0.2); -} -.sidebar___OW5LG .items___j856O .itemActive___sW_Ri { - display: flex; - justify-content: center; - align-items: center; - flex-direction: column; - width: 80px; - height: 70px; - margin-bottom: 12px; - cursor: pointer; - position: relative; - background-color: #0152d9 !important; -} -.sidebar___OW5LG .items___j856O .itemActive___sW_Ri .name___ZfhoC { - color: #fff; -} -.sidebar___OW5LG .items___j856O .itemActive___sW_Ri i { - font-size: 22px; - color: #fff; - margin-bottom: 5px; -} -.sidebar___OW5LG .items___j856O .itemActive___sW_Ri img { - position: absolute; - z-index: 1; - left: 42px; - width: 18px; - height: 18px; - top: 10px; -} -.sidebar___OW5LG .items___j856O .itemActive___sW_Ri:hover { - background-color: rgba(24, 144, 255, 0.2); -} -.sidebar___OW5LG .question___yfIcY { - width: 100%; - height: 61px; - position: relative; - text-align: center; -} - diff --git a/umi.js b/umi.js index 72d59e052d..78e0255ca1 100644 --- a/umi.js +++ b/umi.js @@ -129457,7 +129457,7 @@ function _getRoutes() { return Promise.all(/*! import() | p__Shixuns__Detail__Merge__index */[__webpack_require__.e(28647), __webpack_require__.e(34666), __webpack_require__.e(6848), __webpack_require__.e(46573), __webpack_require__.e(26588), __webpack_require__.e(50812), __webpack_require__.e(65342), __webpack_require__.e(24665), __webpack_require__.e(65607), __webpack_require__.e(88652), __webpack_require__.e(20834), __webpack_require__.e(91857), __webpack_require__.e(41867), __webpack_require__.e(62778), __webpack_require__.e(4977), __webpack_require__.e(55573)]).then(__webpack_require__.bind(__webpack_require__, /*! @/pages/Shixuns/Detail/Merge/index.tsx */ 45384)); }), '180': /*#__PURE__*/_react_17_0_2_react.lazy(function () { - return Promise.all(/*! import() | p__Shixuns__Edit__index */[__webpack_require__.e(28647), __webpack_require__.e(34666), __webpack_require__.e(6848), __webpack_require__.e(46573), __webpack_require__.e(26588), __webpack_require__.e(50812), __webpack_require__.e(65342), __webpack_require__.e(24665), __webpack_require__.e(65607), __webpack_require__.e(88652), __webpack_require__.e(20834), __webpack_require__.e(91857), __webpack_require__.e(5112), __webpack_require__.e(78241), __webpack_require__.e(41867), __webpack_require__.e(78782), __webpack_require__.e(32796), __webpack_require__.e(27695), __webpack_require__.e(59981), __webpack_require__.e(36775), __webpack_require__.e(18986), __webpack_require__.e(72315), __webpack_require__.e(96875), __webpack_require__.e(69532), __webpack_require__.e(93948), __webpack_require__.e(6557), __webpack_require__.e(5440), __webpack_require__.e(2360), __webpack_require__.e(99313), __webpack_require__.e(52409), __webpack_require__.e(19842), __webpack_require__.e(47927), __webpack_require__.e(75149), __webpack_require__.e(63240), __webpack_require__.e(86171), __webpack_require__.e(55351), __webpack_require__.e(53114), __webpack_require__.e(25728), __webpack_require__.e(39030), __webpack_require__.e(29043), __webpack_require__.e(44296), __webpack_require__.e(56277)]).then(__webpack_require__.bind(__webpack_require__, /*! @/pages/Shixuns/Edit/index.tsx */ 30636)); + return Promise.all(/*! import() | p__Shixuns__Edit__index */[__webpack_require__.e(28647), __webpack_require__.e(34666), __webpack_require__.e(6848), __webpack_require__.e(46573), __webpack_require__.e(26588), __webpack_require__.e(50812), __webpack_require__.e(65342), __webpack_require__.e(24665), __webpack_require__.e(65607), __webpack_require__.e(88652), __webpack_require__.e(20834), __webpack_require__.e(91857), __webpack_require__.e(5112), __webpack_require__.e(78241), __webpack_require__.e(41867), __webpack_require__.e(78782), __webpack_require__.e(32796), __webpack_require__.e(27695), __webpack_require__.e(59981), __webpack_require__.e(36775), __webpack_require__.e(18986), __webpack_require__.e(72315), __webpack_require__.e(96875), __webpack_require__.e(69532), __webpack_require__.e(93948), __webpack_require__.e(6557), __webpack_require__.e(5440), __webpack_require__.e(2360), __webpack_require__.e(99313), __webpack_require__.e(52409), __webpack_require__.e(19842), __webpack_require__.e(47927), __webpack_require__.e(75149), __webpack_require__.e(63240), __webpack_require__.e(86171), __webpack_require__.e(55351), __webpack_require__.e(53114), __webpack_require__.e(25728), __webpack_require__.e(39030), __webpack_require__.e(29043), __webpack_require__.e(44296), __webpack_require__.e(56277)]).then(__webpack_require__.bind(__webpack_require__, /*! @/pages/Shixuns/Edit/index.tsx */ 36076)); }), '181': /*#__PURE__*/_react_17_0_2_react.lazy(function () { return Promise.all(/*! import() | p__Shixuns__Edit__body__Warehouse__index */[__webpack_require__.e(28647), __webpack_require__.e(34666), __webpack_require__.e(6848), __webpack_require__.e(46573), __webpack_require__.e(26588), __webpack_require__.e(50812), __webpack_require__.e(65342), __webpack_require__.e(24665), __webpack_require__.e(65607), __webpack_require__.e(88652), __webpack_require__.e(20834), __webpack_require__.e(91857), __webpack_require__.e(78241), __webpack_require__.e(78782), __webpack_require__.e(32796), __webpack_require__.e(27695), __webpack_require__.e(93948), __webpack_require__.e(6557), __webpack_require__.e(5440), __webpack_require__.e(99313), __webpack_require__.e(78892), __webpack_require__.e(4977), __webpack_require__.e(86171), __webpack_require__.e(55351), __webpack_require__.e(53114), __webpack_require__.e(25728), __webpack_require__.e(39030), __webpack_require__.e(16328)]).then(__webpack_require__.bind(__webpack_require__, /*! @/pages/Shixuns/Edit/body/Warehouse/index.tsx */ 50509));