|
|
|
|
@ -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) {
|
|
|
|
|
|