diff --git a/p__Shixuns__Edit__body__Warehouse__index.async.js b/p__Shixuns__Edit__body__Warehouse__index.async.js index 8e552cb0f1..51af2f54c7 100644 --- a/p__Shixuns__Edit__body__Warehouse__index.async.js +++ b/p__Shixuns__Edit__body__Warehouse__index.async.js @@ -3396,11 +3396,12 @@ 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, _practiceSetting$side7, _shixunsDetail$fileCo12, _shixunsDetail$fileCo13, _shixunsDetail$fileCo14, _shixunsDetail$fileCo15, _shixunsDetail$fileCo16; + var _shixunsDetail$fileCo10, _practiceSetting$side2, _practiceSetting$side6, _shixunsDetail$reposi, _shixunsDetail$secret, _shixunsDetail$reposi2, _shixunsDetail$secret2, _shixunsDetail$reposi3, _shixunsDetail$secret3, _practiceSetting$side7, _shixunsDetail$fileCo12, _shixunsDetail$fileCo13, _shixunsDetail$fileCo14, _shixunsDetail$fileCo15, _shixunsDetail$fileCo16; var globalSetting = _ref.globalSetting, loading = _ref.loading, dispatch = _ref.dispatch, @@ -3640,15 +3641,37 @@ var Warehouse = function Warehouse(_ref) { children: [tabKey === '1' && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, { children: [/*#__PURE__*/(0,jsx_runtime.jsx)("aside", { className: Warehousemodules.left, - children: /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, { + children: /*#__PURE__*/(0,jsx_runtime.jsxs)(spin/* default */.Z, { spinning: !!loading.effects['shixunsDetail/getRepository'], wrapperClassName: "".concat(Warehousemodules.loading, " ").concat(Warehousemodules.bottom0), - children: /*#__PURE__*/(0,jsx_runtime.jsx)(Tree, { + children: [(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.jsxs)("div", { + style: { + marginTop: "20px" + }, + 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" + }) + }) + })] + }), /*#__PURE__*/(0,jsx_runtime.jsx)(Tree, { setTreeData: setTreeData, treeData: treeData, activeKey: activeKey, isRepository: isRepository - }) + })] }) }), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", { className: Warehousemodules.right, diff --git a/p__Shixuns__Edit__body__Warehouse__index.chunk.css b/p__Shixuns__Edit__body__Warehouse__index.chunk.css index 83ad31f113..9ac5a978bb 100644 --- a/p__Shixuns__Edit__body__Warehouse__index.chunk.css +++ b/p__Shixuns__Edit__body__Warehouse__index.chunk.css @@ -100,6 +100,18 @@ bottom: 0; right: 0; } +.warehouse___SVzfZ .content___pGWUf .left___eYHD7 .title___y2IOb { + margin: 0 20px; +} +.warehouse___SVzfZ .content___pGWUf .left___eYHD7 input { + width: 290px; + height: 34px; + color: #999; + border-radius: 4px; + border: 0; + margin-right: 14px; + padding: 0 14px; +} .warehouse___SVzfZ .content___pGWUf .left___eYHD7 .ant-tabs .ant-tabs-nav { color: #fff; margin-left: 20px; diff --git a/p__Shixuns__Edit__index.async.js b/p__Shixuns__Edit__index.async.js index 74825c4ac4..f2d1587017 100644 --- a/p__Shixuns__Edit__index.async.js +++ b/p__Shixuns__Edit__index.async.js @@ -10376,11 +10376,12 @@ 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, _practiceSetting$side7, _shixunsDetail$fileCo12, _shixunsDetail$fileCo13, _shixunsDetail$fileCo14, _shixunsDetail$fileCo15, _shixunsDetail$fileCo16; + var _shixunsDetail$fileCo10, _practiceSetting$side2, _practiceSetting$side6, _shixunsDetail$reposi, _shixunsDetail$secret, _shixunsDetail$reposi2, _shixunsDetail$secret2, _shixunsDetail$reposi3, _shixunsDetail$secret3, _practiceSetting$side7, _shixunsDetail$fileCo12, _shixunsDetail$fileCo13, _shixunsDetail$fileCo14, _shixunsDetail$fileCo15, _shixunsDetail$fileCo16; var globalSetting = _ref.globalSetting, loading = _ref.loading, dispatch = _ref.dispatch, @@ -10620,15 +10621,37 @@ var Warehouse = function Warehouse(_ref) { children: [tabKey === '1' && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, { children: [/*#__PURE__*/(0,jsx_runtime.jsx)("aside", { className: Warehousemodules.left, - children: /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, { + children: /*#__PURE__*/(0,jsx_runtime.jsxs)(spin/* default */.Z, { spinning: !!loading.effects['shixunsDetail/getRepository'], wrapperClassName: "".concat(Warehousemodules.loading, " ").concat(Warehousemodules.bottom0), - children: /*#__PURE__*/(0,jsx_runtime.jsx)(Tree, { + children: [(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.jsxs)("div", { + style: { + marginTop: "20px" + }, + 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" + }) + }) + })] + }), /*#__PURE__*/(0,jsx_runtime.jsx)(Tree, { setTreeData: setTreeData, treeData: treeData, activeKey: activeKey, isRepository: isRepository - }) + })] }) }), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", { className: Warehousemodules.right, diff --git a/p__Shixuns__Edit__index.chunk.css b/p__Shixuns__Edit__index.chunk.css index e9088e67dd..5e34369075 100644 --- a/p__Shixuns__Edit__index.chunk.css +++ b/p__Shixuns__Edit__index.chunk.css @@ -1830,6 +1830,18 @@ span.CodeMirror-selectedtext { bottom: 0; right: 0; } +.warehouse___SVzfZ .content___pGWUf .left___eYHD7 .title___y2IOb { + margin: 0 20px; +} +.warehouse___SVzfZ .content___pGWUf .left___eYHD7 input { + width: 290px; + height: 34px; + color: #999; + border-radius: 4px; + border: 0; + margin-right: 14px; + padding: 0 14px; +} .warehouse___SVzfZ .content___pGWUf .left___eYHD7 .ant-tabs .ant-tabs-nav { color: #fff; margin-left: 20px;