|
|
|
|
@ -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
|
|
|
|
|
@ -2260,8 +2260,6 @@ var shixuns = __webpack_require__(90935);
|
|
|
|
|
var util = __webpack_require__(27291);
|
|
|
|
|
// EXTERNAL MODULE: ./src/utils/verifyLogin.tsx + 2 modules
|
|
|
|
|
var verifyLogin = __webpack_require__(72031);
|
|
|
|
|
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
|
|
|
|
|
var ImagesIcon = __webpack_require__(19770);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/body/Warehouse/components/Tree.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2289,7 +2287,6 @@ var Tree_excluded = ["shixunsDetail", "globalSetting", "loading", "user", "activ
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var DirectoryTree = tree/* default */.Z.DirectoryTree;
|
|
|
|
|
var Repository = function Repository(_ref) {
|
|
|
|
|
var _shixunsDetail$detail5, _shixunsDetail$detail6, _shixunsDetail$detail7, _shixunsDetail$detail8, _shixunsDetail$detail9, _shixunsDetail$detail10, _shixunsDetail$detail11;
|
|
|
|
|
@ -3091,12 +3088,9 @@ var Repository = function Repository(_ref) {
|
|
|
|
|
children: "\u5B9E\u8BAD\u8BC4\u6D4B\u7684\u65F6\u5019\uFF0C\u7CFB\u7EDF\u4F1A\u4E34\u65F6\u5C06\u79C1\u5BC6\u4EE3\u7801\u5E93\u79FB\u52A8\u666E\u901A\u4EE3\u7801\u5E93\u7684secret\u76EE\u5F55\u4E0B\u9762\uFF0C\u8BC4\u6D4B\u7ED3\u675F\u4F1A\u6E05\u7A7Asecret\u76EE\u5F55\u5185\u5BB9\u3002\u5982\u679C\u79C1\u5BC6\u4EE3\u7801\u5E93\u4E2D\u5B58\u5728\u6587\u4EF6src/test.sh\uFF0C\u5728\u666E\u901A\u4EE3\u7801\u5E93\u8C03\u7528\u8BE5\u6587\u4EF6\u5219\u4F7F\u7528\u8DEF\u5F84\uFF1Asecret/src/test.sh"
|
|
|
|
|
})
|
|
|
|
|
}), treeData.length ? /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Treemodules.content,
|
|
|
|
|
children: [activeKey === '1' && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Treemodules.tips,
|
|
|
|
|
children: ["\u63D0\u793A\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "\u4EE3\u7801\u8FD0\u884C\u5728\u670D\u52A1\u5668/data/workspace/myshixun/\u4E0B\uFF0C\u5982\u679C\u4EE3\u7801 \u9700\u8981\u7528\u5230\u6587\u4EF6\u8DEF\u5F84\u65F6\uFF0C\u60A8\u5C06\u9F20\u6807\u79FB\u5165\u4ED3\u5E93\u6587\u4EF6\u6216\u76EE\u5F55\u53F3\u4FA7\u7684\"...\" \u56FE\u6807\uFF0C\u9009\u62E9\u590D\u5236\u8DEF\u5F84\u5F97\u5230\u6587\u4EF6\u7684\u7EDD\u5BF9\u8DEF\u5F84\u3002"]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(DirectoryTree
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(DirectoryTree
|
|
|
|
|
// checkable={editable}
|
|
|
|
|
, {
|
|
|
|
|
disabled: !!loading.effects['shixunsDetail/getFileContent'],
|
|
|
|
|
@ -3129,7 +3123,7 @@ var Repository = function Repository(_ref) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
// onCheck={handleCheckTree}
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}) : '', !treeData.length && isRepository && (shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$detail10 = shixunsDetail.detail) === null || _shixunsDetail$detail10 === void 0 ? void 0 : _shixunsDetail$detail10.init_repository) && /*#__PURE__*/(0,jsx_runtime.jsx)(NoData, {}), !treeData.length && !isRepository && (shixunsDetail === null || shixunsDetail === void 0 || (_shixunsDetail$detail11 = shixunsDetail.detail) === null || _shixunsDetail$detail11 === void 0 ? void 0 : _shixunsDetail$detail11.secret_repository) && /*#__PURE__*/(0,jsx_runtime.jsx)(NoData, {})]
|
|
|
|
|
})
|
|
|
|
|
@ -3226,19 +3220,8 @@ var Repository = function Repository(_ref) {
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
var NoData = function NoData() {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "mt20 pb50 ".concat(Treemodules.nodata),
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Treemodules.headLeft,
|
|
|
|
|
children: ["\u63D0\u793A\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "\u6B64\u5904\u5B58\u653E\u672C\u5B9E\u8BAD\u6240\u9700\u7684\u6240\u6709\u4EE3\u7801\u7B49\u76F8\u5173\u6587\u4EF6\uFF0C\u4F60\u53EF\u4EE5\u901A\u8FC7\u4EE5\u4E0B", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "\u4E24\u79CD\u65B9\u5F0F\u6765\u4F7F\u7528\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "1\u3001", /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
|
|
href: "/forums/2784",
|
|
|
|
|
target: "_blank",
|
|
|
|
|
children: "Git\u5BA2\u6237\u7AEF"
|
|
|
|
|
}), " \u4E0A\u4F20\u5DF2\u6709\u6587\u4EF6\u6765\u5F00\u59CB\u4F7F\u7528\u3002", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "2\u3001\u76F4\u63A5\u5728\u5E73\u53F0\u4E0A\u521B\u5EFA\u6587\u4EF6\u76EE\u5F55\u4EE5\u53CA\u76F8\u5173\u4EE3\u7801\u6587\u4EF6\u3002"]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
width: "100%",
|
|
|
|
|
src: ImagesIcon/* repositoryNoneDataIcon */.Oe
|
|
|
|
|
})]
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "mt20 pb50 ".concat(Treemodules.nodata)
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
/* harmony default export */ var Tree = ((0,_umi_production_exports.connect)(function (_ref15) {
|
|
|
|
|
@ -3260,6 +3243,8 @@ var NoData = function NoData() {
|
|
|
|
|
/* harmony default export */ var Commitmodules = ({"flex_box_center":"flex_box_center___JYIA5","flex_space_between":"flex_space_between___OOSa6","flex_box_vertical_center":"flex_box_vertical_center___s1AAj","flex_box_center_end":"flex_box_center_end___Ou9x8","flex_box_column":"flex_box_column___fXhOh","commitWrap":"commitWrap___xJGHF","wrap":"wrap___OEGuw","colorGray":"colorGray___nocDG","content":"content___Cvvjf","itemTime":"itemTime___wIggD","imageUrl":"imageUrl___C3Dsm","blueLight":"blueLight___qEiQB","divider":"divider___G5Y2d","empty":"empty___L1pRU"});
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/divider/index.js + 1 modules
|
|
|
|
|
var divider = __webpack_require__(28103);
|
|
|
|
|
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
|
|
|
|
|
var ImagesIcon = __webpack_require__(19770);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/body/Warehouse/components/Commit.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -3411,13 +3396,12 @@ var Warehouse_excluded = ["globalSetting", "loading", "dispatch", "practiceSetti
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// import Complete from '../../components/Complete';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 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, _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,
|
|
|
|
|
@ -3647,116 +3631,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'
|
|
|
|
|
@ -3764,20 +3641,42 @@ 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.jsxs)("aside", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("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 +3687,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 +3709,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,16 +3758,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", {
|
|
|
|
|
className: Warehousemodules.empty,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
src: ImagesIcon/* emptyIcon */.x7,
|
|
|
|
|
width: "258"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
className: "c-grey-c",
|
|
|
|
|
children: [!!(treeData !== null && treeData !== void 0 && treeData.length) && '在左侧代码仓库区域点击目录打开文件', !(treeData !== null && treeData !== void 0 && treeData.length) && '请先在左侧上传文件或新建文件!']
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), tabKey === '2' && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Warehousemodules.commit,
|
|
|
|
|
@ -3873,7 +3766,7 @@ var Warehouse = function Warehouse(_ref) {
|
|
|
|
|
isRepository: isRepository
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
/* harmony default export */ var body_Warehouse = ((0,_umi_production_exports.connect)(function (_ref4) {
|
|
|
|
|
|