hc-busin-components 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +53 -0
  3. package/dist/Actions/index.d.ts +20 -0
  4. package/dist/Actions/index.js +142 -0
  5. package/dist/Actions/index.less +9 -0
  6. package/dist/AuthComponents/authDivider.d.ts +15 -0
  7. package/dist/AuthComponents/authDivider.js +104 -0
  8. package/dist/AuthComponents/index.d.ts +4 -0
  9. package/dist/AuthComponents/index.js +14 -0
  10. package/dist/BasicFilesRead/images/back.png +0 -0
  11. package/dist/BasicFilesRead/images/excel.png +0 -0
  12. package/dist/BasicFilesRead/images/folder.png +0 -0
  13. package/dist/BasicFilesRead/images/image.png +0 -0
  14. package/dist/BasicFilesRead/images/jpeg.png +0 -0
  15. package/dist/BasicFilesRead/images/jpg.png +0 -0
  16. package/dist/BasicFilesRead/images/normal.png +0 -0
  17. package/dist/BasicFilesRead/images/png.png +0 -0
  18. package/dist/BasicFilesRead/images/tar.png +0 -0
  19. package/dist/BasicFilesRead/images/text.png +0 -0
  20. package/dist/BasicFilesRead/images/zip.png +0 -0
  21. package/dist/BasicFilesRead/index.d.ts +31 -0
  22. package/dist/BasicFilesRead/index.js +286 -0
  23. package/dist/BasicFilesRead/styles/index.d.ts +3 -0
  24. package/dist/BasicFilesRead/styles/index.js +9 -0
  25. package/dist/CombinTable/components/RenderContent.d.ts +9 -0
  26. package/dist/CombinTable/components/RenderContent.js +201 -0
  27. package/dist/CombinTable/hooks/useTableParams.d.ts +20 -0
  28. package/dist/CombinTable/hooks/useTableParams.js +75 -0
  29. package/dist/CombinTable/hooks/useTableState.d.ts +5 -0
  30. package/dist/CombinTable/hooks/useTableState.js +22 -0
  31. package/dist/CombinTable/index.d.ts +4 -0
  32. package/dist/CombinTable/index.js +225 -0
  33. package/dist/CombinTable/styles/index.d.ts +3 -0
  34. package/dist/CombinTable/styles/index.js +11 -0
  35. package/dist/CombinTable/types/index.d.ts +21 -0
  36. package/dist/CombinTable/types/index.js +1 -0
  37. package/dist/CombineSearch/components/Content.d.ts +13 -0
  38. package/dist/CombineSearch/components/Content.js +249 -0
  39. package/dist/CombineSearch/components/Tags.d.ts +14 -0
  40. package/dist/CombineSearch/components/Tags.js +115 -0
  41. package/dist/CombineSearch/hooks/useCombineState.d.ts +5 -0
  42. package/dist/CombineSearch/hooks/useCombineState.js +17 -0
  43. package/dist/CombineSearch/index.d.ts +4 -0
  44. package/dist/CombineSearch/index.js +168 -0
  45. package/dist/CombineSearch/style/edit.svg +1 -0
  46. package/dist/CombineSearch/style/index.d.ts +14 -0
  47. package/dist/CombineSearch/style/index.js +26 -0
  48. package/dist/CombineSearch/types/index.d.ts +46 -0
  49. package/dist/CombineSearch/types/index.js +0 -0
  50. package/dist/ComponentUninstalled/assets/comp-unintall-background.png +0 -0
  51. package/dist/ComponentUninstalled/assets/comp-unintall-bg.png +0 -0
  52. package/dist/ComponentUninstalled/index.d.ts +32 -0
  53. package/dist/ComponentUninstalled/index.js +164 -0
  54. package/dist/ComponentUninstalled/index.less +108 -0
  55. package/dist/ComponentUninstalled/locale.d.ts +14 -0
  56. package/dist/ComponentUninstalled/locale.js +21 -0
  57. package/dist/DataCountPopover/index.d.ts +23 -0
  58. package/dist/DataCountPopover/index.js +121 -0
  59. package/dist/DataCountPopover/index.less +62 -0
  60. package/dist/DateRangePicker/index.d.ts +38 -0
  61. package/dist/DateRangePicker/index.js +483 -0
  62. package/dist/DateRangePicker/index.less +196 -0
  63. package/dist/DeleteConfirm/index.d.ts +23 -0
  64. package/dist/DeleteConfirm/index.js +109 -0
  65. package/dist/DeleteConfirm/index.less +44 -0
  66. package/dist/DeleteConfirm/locale.d.ts +7 -0
  67. package/dist/DeleteConfirm/locale.js +7 -0
  68. package/dist/DisplayButton/index.d.ts +7 -0
  69. package/dist/DisplayButton/index.js +23 -0
  70. package/dist/FileRead/images/back.png +0 -0
  71. package/dist/FileRead/images/excel.png +0 -0
  72. package/dist/FileRead/images/folder.png +0 -0
  73. package/dist/FileRead/images/image.png +0 -0
  74. package/dist/FileRead/images/jpeg.png +0 -0
  75. package/dist/FileRead/images/jpg.png +0 -0
  76. package/dist/FileRead/images/normal.png +0 -0
  77. package/dist/FileRead/images/png.png +0 -0
  78. package/dist/FileRead/images/tar.png +0 -0
  79. package/dist/FileRead/images/text.png +0 -0
  80. package/dist/FileRead/images/zip.png +0 -0
  81. package/dist/FileRead/index.d.ts +31 -0
  82. package/dist/FileRead/index.js +417 -0
  83. package/dist/FileRead/styles/index.d.ts +3 -0
  84. package/dist/FileRead/styles/index.js +9 -0
  85. package/dist/Icon/iconfont.d.ts +1 -0
  86. package/dist/Icon/iconfont.js +1 -0
  87. package/dist/Icon/index.d.ts +10 -0
  88. package/dist/Icon/index.js +20 -0
  89. package/dist/Icon/index.less +11 -0
  90. package/dist/IconPopTips/index.d.ts +10 -0
  91. package/dist/IconPopTips/index.js +26 -0
  92. package/dist/IconPopTips/index.less +33 -0
  93. package/dist/IconText/index.d.ts +15 -0
  94. package/dist/IconText/index.js +19 -0
  95. package/dist/IconText/index.less +38 -0
  96. package/dist/LogCenter/assets/empty.png +0 -0
  97. package/dist/LogCenter/context.d.ts +24 -0
  98. package/dist/LogCenter/context.js +66 -0
  99. package/dist/LogCenter/history-log.d.ts +35 -0
  100. package/dist/LogCenter/history-log.js +1214 -0
  101. package/dist/LogCenter/index.d.ts +8 -0
  102. package/dist/LogCenter/index.js +130 -0
  103. package/dist/LogCenter/index.less +577 -0
  104. package/dist/LogCenter/locale.d.ts +3 -0
  105. package/dist/LogCenter/locale.js +81 -0
  106. package/dist/LogCenter/realtime-log.d.ts +35 -0
  107. package/dist/LogCenter/realtime-log.js +641 -0
  108. package/dist/LogCenter/select-with-all.d.ts +28 -0
  109. package/dist/LogCenter/select-with-all.js +337 -0
  110. package/dist/LogCenter/select-with-all.less +81 -0
  111. package/dist/LogCenter/services.d.ts +27 -0
  112. package/dist/LogCenter/services.js +93 -0
  113. package/dist/LogCenter/tools.d.ts +9 -0
  114. package/dist/LogCenter/tools.js +137 -0
  115. package/dist/LogCenter/types.d.ts +133 -0
  116. package/dist/LogCenter/types.js +1 -0
  117. package/dist/LogicalResourceFilter/index.d.ts +7 -0
  118. package/dist/LogicalResourceFilter/index.js +426 -0
  119. package/dist/LogicalResourceFilter/index.less +139 -0
  120. package/dist/LogicalResourceFilter/locale.d.ts +2 -0
  121. package/dist/LogicalResourceFilter/locale.js +10 -0
  122. package/dist/LogicalResourceFilter/types.d.ts +58 -0
  123. package/dist/LogicalResourceFilter/types.js +1 -0
  124. package/dist/MetadataCount/index.d.ts +16 -0
  125. package/dist/MetadataCount/index.js +97 -0
  126. package/dist/MetadataCount/index.less +40 -0
  127. package/dist/MetadataForm/index.d.ts +18 -0
  128. package/dist/MetadataForm/index.js +85 -0
  129. package/dist/MetadataForm/index.less +108 -0
  130. package/dist/MetadataForm/label.d.ts +13 -0
  131. package/dist/MetadataForm/label.js +447 -0
  132. package/dist/MetadataPopoverList/fetchArray.d.ts +3 -0
  133. package/dist/MetadataPopoverList/fetchArray.js +74 -0
  134. package/dist/MetadataPopoverList/index.d.ts +13 -0
  135. package/dist/MetadataPopoverList/index.js +98 -0
  136. package/dist/MetadataPopoverList/index.less +74 -0
  137. package/dist/MetadataTags/index.d.ts +17 -0
  138. package/dist/MetadataTags/index.js +109 -0
  139. package/dist/MetadataTags/index.less +26 -0
  140. package/dist/OverFlow/index.d.ts +4 -0
  141. package/dist/OverFlow/index.js +66 -0
  142. package/dist/OverFlow/types/index.d.ts +11 -0
  143. package/dist/OverFlow/types/index.js +1 -0
  144. package/dist/PageHeader/index.d.ts +16 -0
  145. package/dist/PageHeader/index.js +41 -0
  146. package/dist/PageHeader/index.less +89 -0
  147. package/dist/ResourceProgress/index.d.ts +6 -0
  148. package/dist/ResourceProgress/index.js +102 -0
  149. package/dist/ResourceProgress/index.less +86 -0
  150. package/dist/ResourceProgress/types/index.d.ts +15 -0
  151. package/dist/ResourceProgress/types/index.js +1 -0
  152. package/dist/Terminal/index.d.ts +44 -0
  153. package/dist/Terminal/index.js +390 -0
  154. package/dist/Terminal/index.less +39 -0
  155. package/dist/TextCopy/index.d.ts +21 -0
  156. package/dist/TextCopy/index.js +38 -0
  157. package/dist/TextCopy/index.less +51 -0
  158. package/dist/TextEllipsis/index.d.ts +18 -0
  159. package/dist/TextEllipsis/index.js +31 -0
  160. package/dist/TextEllipsis/index.less +3 -0
  161. package/dist/ThemeForm/index.d.ts +6 -0
  162. package/dist/ThemeForm/index.js +15 -0
  163. package/dist/ThemeForm/index.less +15 -0
  164. package/dist/ThemeSubmit/index.d.ts +16 -0
  165. package/dist/ThemeSubmit/index.js +60 -0
  166. package/dist/ThemeSubmit/index.less +30 -0
  167. package/dist/TooltipSpan/index.d.ts +6 -0
  168. package/dist/TooltipSpan/index.js +72 -0
  169. package/dist/UsageCycle/index.d.ts +12 -0
  170. package/dist/UsageCycle/index.js +71 -0
  171. package/dist/UsageCycle/index.less +56 -0
  172. package/dist/Yaml/CodeMirrorWrapper.d.ts +14 -0
  173. package/dist/Yaml/CodeMirrorWrapper.js +106 -0
  174. package/dist/Yaml/index.d.ts +6 -0
  175. package/dist/Yaml/index.js +470 -0
  176. package/dist/Yaml/index.less +190 -0
  177. package/dist/Yaml/types.d.ts +38 -0
  178. package/dist/Yaml/types.js +1 -0
  179. package/dist/index.d.ts +52 -0
  180. package/dist/index.js +32 -0
  181. package/dist/metadata/locale.d.ts +52 -0
  182. package/dist/metadata/locale.js +69 -0
  183. package/dist/showMore/index.d.ts +6 -0
  184. package/dist/showMore/index.js +40 -0
  185. package/package.json +121 -0
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import type { LogCenterProps } from './types';
3
+ import './index.less';
4
+ export type { LogCenterProps, LogCenterRequest, LogCenterStorage, LogCenterLocale, } from './types';
5
+ export { logCenterLocaleZhCN } from './locale';
6
+ export { LOG_CENTER_API, createLogCenterServices } from './services';
7
+ declare const LogCenter: React.FC<LogCenterProps>;
8
+ export default LogCenter;
@@ -0,0 +1,130 @@
1
+ var _excluded = ["request", "storage"];
2
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
3
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
4
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
5
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
6
+ 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); }
7
+ 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; }
8
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
9
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
10
+ import { Alert } from 'antd';
11
+ import React, { useEffect, useState } from 'react';
12
+ import ComponentUninstalled from "../ComponentUninstalled";
13
+ import { LogCenterProvider, useLogCenterContext, useLogCenterLocale } from "./context";
14
+ import HistoryLog from "./history-log";
15
+ import RealtimeLog from "./realtime-log";
16
+ import "./index.less";
17
+ export { logCenterLocaleZhCN } from "./locale";
18
+ export { LOG_CENTER_API, createLogCenterServices } from "./services";
19
+ var LogCenterInner = function LogCenterInner(props) {
20
+ var _props$type = props.type,
21
+ type = _props$type === void 0 ? 'realtimeLog' : _props$type,
22
+ _props$space = props.space,
23
+ space = _props$space === void 0 ? 'cluster' : _props$space,
24
+ clusterId = props.clusterId,
25
+ toSearchAnalysis = props.toSearchAnalysis,
26
+ _props$isEmbed = props.isEmbed,
27
+ isEmbed = _props$isEmbed === void 0 ? false : _props$isEmbed,
28
+ embedParams = props.embedParams,
29
+ _props$wsClose = props.wsClose,
30
+ wsClose = _props$wsClose === void 0 ? false : _props$wsClose,
31
+ menuData = props.menuData,
32
+ clusterAliasName = props.clusterAliasName;
33
+ var locale = useLogCenterLocale();
34
+ var _useLogCenterContext = useLogCenterContext(),
35
+ services = _useLogCenterContext.services,
36
+ storage = _useLogCenterContext.storage;
37
+ var _useState = useState(false),
38
+ _useState2 = _slicedToArray(_useState, 2),
39
+ isFullScreen = _useState2[0],
40
+ setIsFullScreen = _useState2[1];
41
+ var _useState3 = useState(false),
42
+ _useState4 = _slicedToArray(_useState3, 2),
43
+ isHasUninstalledCompo = _useState4[0],
44
+ setIsHasUninstalledCompo = _useState4[1];
45
+ var logTips = {
46
+ realtimeLog: locale.log['实时日志Tips'],
47
+ stdoutLog: locale.log['标准日志Tips'],
48
+ filesLog: locale.log['日志文件Tips']
49
+ };
50
+ var handleFullScreen = function handleFullScreen(e) {
51
+ var _parentElement;
52
+ var fullScreenEle = (_parentElement = e.currentTarget.parentElement) === null || _parentElement === void 0 || (_parentElement = _parentElement.parentElement) === null || _parentElement === void 0 ? void 0 : _parentElement.parentElement;
53
+ if (!fullScreenEle) return;
54
+ if (document.fullscreenElement) {
55
+ setIsFullScreen(false);
56
+ document.exitFullscreen();
57
+ return;
58
+ }
59
+ setIsFullScreen(true);
60
+ fullScreenEle.requestFullscreen();
61
+ };
62
+ useEffect(function () {
63
+ var handleKeyDown = function handleKeyDown(e) {
64
+ if (e.key === 'Escape' && isFullScreen) {
65
+ setIsFullScreen(false);
66
+ if (document.fullscreenElement) {
67
+ document.exitFullscreen();
68
+ }
69
+ }
70
+ };
71
+ var handleFullscreenChange = function handleFullscreenChange() {
72
+ if (!document.fullscreenElement && isFullScreen) {
73
+ setIsFullScreen(false);
74
+ }
75
+ };
76
+ if (isFullScreen) {
77
+ document.addEventListener('keydown', handleKeyDown);
78
+ document.addEventListener('fullscreenchange', handleFullscreenChange);
79
+ }
80
+ return function () {
81
+ document.removeEventListener('keydown', handleKeyDown);
82
+ document.removeEventListener('fullscreenchange', handleFullscreenChange);
83
+ };
84
+ }, [isFullScreen]);
85
+ return /*#__PURE__*/React.createElement("div", {
86
+ className: "log-center-wrapper"
87
+ }, type !== 'componentLog' && !isHasUninstalledCompo && logTips[type] && /*#__PURE__*/React.createElement(Alert, {
88
+ message: logTips[type],
89
+ type: "info",
90
+ showIcon: true,
91
+ closable: true
92
+ }), type === 'realtimeLog' ? /*#__PURE__*/React.createElement(RealtimeLog, {
93
+ type: type,
94
+ space: space,
95
+ clusterId: clusterId,
96
+ isFullScreen: isFullScreen,
97
+ onFullScreen: handleFullScreen,
98
+ isEmbed: isEmbed,
99
+ embedParams: embedParams,
100
+ wsClose: wsClose
101
+ }) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ComponentUninstalled, {
102
+ clusterName: clusterId,
103
+ clusterAliasName: clusterAliasName,
104
+ menuData: menuData,
105
+ getClusterAddons: services.getClusterAddons,
106
+ storage: storage,
107
+ onCallback: function onCallback(flag) {
108
+ setIsHasUninstalledCompo(flag);
109
+ }
110
+ }), !isHasUninstalledCompo && /*#__PURE__*/React.createElement(HistoryLog, {
111
+ type: type,
112
+ space: space,
113
+ clusterId: clusterId,
114
+ toSearchAnalysis: toSearchAnalysis,
115
+ isFullScreen: isFullScreen,
116
+ onFullScreen: handleFullScreen,
117
+ isEmbed: isEmbed,
118
+ embedParams: embedParams
119
+ })));
120
+ };
121
+ var LogCenter = function LogCenter(_ref) {
122
+ var request = _ref.request,
123
+ storage = _ref.storage,
124
+ rest = _objectWithoutProperties(_ref, _excluded);
125
+ return /*#__PURE__*/React.createElement(LogCenterProvider, {
126
+ request: request,
127
+ storage: storage
128
+ }, /*#__PURE__*/React.createElement(LogCenterInner, rest));
129
+ };
130
+ export default LogCenter;
@@ -0,0 +1,577 @@
1
+ .log-center-wrapper {
2
+ box-sizing: border-box;
3
+ max-width: 100%;
4
+ overflow-x: hidden;
5
+
6
+ .ant-alert-info {
7
+ margin-bottom: 12px;
8
+ border: none;
9
+
10
+ .ant-alert-icon {
11
+ color: #226ee7;
12
+ font-size: 14px;
13
+ }
14
+ }
15
+
16
+ .query-condition-wrap {
17
+ .ant-form {
18
+ padding-left: 0 !important;
19
+ }
20
+
21
+ .ant-form-item {
22
+ margin: 0;
23
+ }
24
+
25
+ .basic-query-box {
26
+ padding: 6px 16px 0;
27
+ background: linear-gradient(180deg,
28
+ rgba(40, 105, 246, 0.1) 0%,
29
+ rgba(40, 105, 246, 0) 104.99%);
30
+ border-radius: 4px 4px 0 0;
31
+
32
+ header {
33
+ display: flex;
34
+ align-items: center;
35
+ justify-content: space-between;
36
+ height: 32px;
37
+ margin: 0 0 10px;
38
+
39
+ .anticon {
40
+ font-size: 16px;
41
+ }
42
+
43
+ h5 {
44
+ display: flex;
45
+ align-items: center;
46
+ margin: 0;
47
+ color: rgba(0, 0, 0, 0.65);
48
+ font-size: 13px;
49
+
50
+ .anticon {
51
+ margin-right: 4px;
52
+ }
53
+ }
54
+
55
+ .ant-btn {
56
+ align-items: center;
57
+
58
+ .anticon {
59
+ margin-left: 4px;
60
+ }
61
+ }
62
+ }
63
+
64
+ .query-items {
65
+ padding: 0 0 16px;
66
+ border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
67
+
68
+ .items {
69
+ display: flex;
70
+ gap: 16px;
71
+ width: 100%;
72
+ }
73
+
74
+ .error {
75
+ display: flex;
76
+ align-items: center;
77
+ width: 100%;
78
+ padding-top: 16px;
79
+ color: #ff4d4f;
80
+ font-size: 12px;
81
+
82
+ .anticon {
83
+ margin-right: 2px;
84
+ font-size: 14px;
85
+ }
86
+ }
87
+
88
+ .ant-form-item {
89
+ flex: 0 0 auto;
90
+ width: 22%;
91
+
92
+ &.workload-form-item {
93
+ flex: 1 1 auto;
94
+
95
+ .ant-form-item-control-input-content {
96
+ display: flex;
97
+
98
+ .ant-form-item {
99
+ &:first-child {
100
+ width: 45%;
101
+
102
+ .ant-select:not(.ant-select-customize-input) .ant-select-selector {
103
+ border-right: none;
104
+ border-radius: 4px 0 0 4px;
105
+ }
106
+ }
107
+
108
+ &:last-child {
109
+ width: 55%;
110
+
111
+ .ant-select:not(.ant-select-customize-input) .ant-select-selector {
112
+ border-radius: 0 4px 4px 0;
113
+ }
114
+ }
115
+ }
116
+ }
117
+ }
118
+ }
119
+
120
+ &.columns-3 {
121
+ .ant-form-item {
122
+ width: 33.33%;
123
+ }
124
+ }
125
+
126
+ &.columns-5 {
127
+ .ant-form-item {
128
+ width: 17%;
129
+ }
130
+ }
131
+
132
+ &.history-log-query-items {
133
+ display: flex;
134
+ gap: 16px;
135
+
136
+ .ant-select-selection-overflow {
137
+ flex-wrap: nowrap;
138
+ }
139
+ }
140
+ }
141
+ }
142
+
143
+ .self-query-box {
144
+ position: relative;
145
+ padding: 8px 16px;
146
+
147
+ dl,
148
+ dt,
149
+ dd {
150
+ margin: 0;
151
+ padding: 0;
152
+ }
153
+
154
+ dl {
155
+ display: flex;
156
+ align-items: center;
157
+ padding: 8px 0;
158
+
159
+ dt {
160
+ padding-right: 16px;
161
+ color: rgba(0, 0, 0, 0.5);
162
+ font-weight: 400;
163
+ white-space: nowrap;
164
+ }
165
+
166
+ dd {
167
+ display: flex;
168
+ gap: 8px;
169
+ align-items: center;
170
+ }
171
+ }
172
+
173
+ .group {
174
+ display: flex;
175
+ gap: 16px;
176
+
177
+ dl {
178
+ width: calc(33.33% - 10.66px);
179
+
180
+ dd {
181
+ flex: 1 1 auto;
182
+ }
183
+ }
184
+
185
+ .ant-form-item {
186
+ width: 100%;
187
+ }
188
+ }
189
+
190
+ .oper {
191
+ position: absolute;
192
+ right: 0;
193
+ bottom: 16px;
194
+
195
+ .ant-btn {
196
+ margin-right: 16px;
197
+
198
+ img {
199
+ display: none;
200
+ height: 11px;
201
+ margin-left: 4px;
202
+ }
203
+
204
+ &.ant-btn-loading {
205
+ .ant-btn-loading-icon {
206
+ display: none;
207
+ }
208
+
209
+ img {
210
+ display: inline-flex;
211
+ }
212
+ }
213
+ }
214
+ }
215
+
216
+ .ant-form-item {
217
+ &.group-form-item {
218
+ .ant-form-item-control-input-content {
219
+ display: flex;
220
+
221
+ &>.ant-form-item {
222
+ margin-left: -1px;
223
+
224
+ * {
225
+ border-radius: 0;
226
+ }
227
+
228
+ &:first-child {
229
+ * {
230
+ border-radius: 4px 0 0 4px;
231
+ }
232
+ }
233
+
234
+ &:last-child {
235
+ * {
236
+ border-radius: 0 4px 4px 0;
237
+ }
238
+
239
+ .ant-input-number {
240
+ border-top-right-radius: 0;
241
+ border-bottom-right-radius: 0;
242
+
243
+ * {
244
+ border-top-right-radius: 0;
245
+ border-bottom-right-radius: 0;
246
+ }
247
+ }
248
+ }
249
+ }
250
+ }
251
+ }
252
+
253
+ .ant-form-item-label>label {
254
+ color: rgba(0, 0, 0, 0.65);
255
+ }
256
+ }
257
+
258
+ .ant-radio-group {
259
+ display: inline-flex;
260
+ flex-wrap: nowrap;
261
+ gap: 3px;
262
+ margin: 0;
263
+ padding: 3px;
264
+ background: rgba(40, 105, 246, 0.1);
265
+ border-radius: 4px;
266
+
267
+ .ant-radio-button-wrapper {
268
+ height: 26px;
269
+ padding: 0 12px;
270
+ line-height: 26px;
271
+ background: none;
272
+ border: none;
273
+ border-radius: 4px;
274
+
275
+ &::before {
276
+ display: none;
277
+ }
278
+
279
+ &:not(.ant-radio-button-wrapper-disabled):focus,
280
+ &:not(.ant-radio-button-wrapper-disabled):hover {
281
+ color: #2869f6;
282
+ }
283
+
284
+ &.ant-radio-button-wrapper-checked {
285
+ color: #2869f6;
286
+ font-weight: 500;
287
+ background: #fff;
288
+ box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.08);
289
+
290
+ &.ant-radio-button-wrapper-disabled {
291
+ color: rgba(0, 0, 0, 0.25);
292
+ background: #f4f4f4;
293
+ }
294
+ }
295
+ }
296
+ }
297
+
298
+ .ant-input-number-group-wrapper {
299
+ width: 100px;
300
+ }
301
+ }
302
+ }
303
+
304
+ .files-wrap {
305
+ h4 {
306
+ display: flex;
307
+ align-items: center;
308
+ width: 100%;
309
+ height: 20px;
310
+ margin-bottom: 16px;
311
+ color: rgba(0, 0, 0, 0.65);
312
+ font-weight: 500;
313
+ font-size: 14px;
314
+ line-height: 20px;
315
+
316
+ &::before {
317
+ display: block;
318
+ width: 0;
319
+ height: 14px;
320
+ padding-left: 8px;
321
+ border-left: 2px solid #2869f6;
322
+ content: '';
323
+ }
324
+ }
325
+
326
+ .ant-tabs {
327
+ &.ant-tabs-top {
328
+ &.ant-tabs-card {
329
+ &>.ant-tabs-nav {
330
+ .ant-tabs-tab {
331
+ border-radius: 4px;
332
+ }
333
+ }
334
+ }
335
+
336
+ &>.ant-tabs-nav::before {
337
+ border: none;
338
+ }
339
+ }
340
+
341
+ &>.ant-tabs-nav {
342
+ .ant-tabs-nav-list {
343
+ gap: 20px;
344
+ }
345
+ }
346
+
347
+ .ant-tabs-tab {
348
+ padding: 12px;
349
+ background: rgba(0, 0, 0, 0.02);
350
+ border: 1px solid transparent;
351
+ border-radius: 4px;
352
+
353
+ h5 {
354
+ min-width: 220px;
355
+ margin-bottom: 8px;
356
+ color: rgba(0, 0, 0, 0.65);
357
+ font-weight: 500;
358
+ font-size: 13px;
359
+ }
360
+
361
+ p {
362
+ margin-bottom: 4px;
363
+ color: rgba(0, 0, 0, 0.5);
364
+
365
+ span {
366
+ color: rgba(0, 0, 0, 0.65);
367
+ }
368
+
369
+ &:last-child {
370
+ margin-bottom: 0;
371
+ }
372
+ }
373
+
374
+ &+.ant-tabs-tab {
375
+ margin: 0 0 0 20px;
376
+ }
377
+
378
+ &.ant-tabs-tab-active {
379
+ background: linear-gradient(90deg,
380
+ rgba(40, 105, 246, 0.1) 0%,
381
+ rgba(40, 105, 246, 0) 100%);
382
+ border-color: #2869f6;
383
+
384
+ .ant-tabs-tab-btn {
385
+ text-shadow: none;
386
+ }
387
+ }
388
+ }
389
+ }
390
+ }
391
+
392
+ .content-wrap {
393
+
394
+ ul,
395
+ li {
396
+ margin: 0;
397
+ list-style: none;
398
+ }
399
+
400
+ .header {
401
+ box-sizing: border-box;
402
+ display: flex;
403
+ align-items: center;
404
+ justify-content: space-between;
405
+ min-height: 36px;
406
+ padding: 8px;
407
+ color: #fafafa;
408
+ background: #333;
409
+ border-bottom: 0.5px solid #595959;
410
+ border-radius: 2px 2px 0 0;
411
+
412
+ li {
413
+ display: flex;
414
+ gap: 5px;
415
+ align-items: center;
416
+
417
+ .ant-btn {
418
+ border: none;
419
+
420
+ .anticon {
421
+ color: #fafafa;
422
+ font-size: 14px;
423
+ }
424
+ }
425
+ }
426
+ }
427
+
428
+ .history-content {
429
+ height: 480px;
430
+ min-height: calc(100% - 45px);
431
+ overflow: auto;
432
+ background: #252e42;
433
+
434
+ &::-webkit-scrollbar-track,
435
+ &::-webkit-scrollbar-corner {
436
+ background-color: #252e42;
437
+ }
438
+
439
+ &::-webkit-scrollbar-thumb {
440
+ background: rgba(255, 255, 255, 0.3);
441
+ }
442
+
443
+ p {
444
+ position: relative;
445
+ padding: 8px 4px;
446
+ color: #b7c4d1;
447
+ white-space: pre;
448
+ cursor: pointer;
449
+
450
+ &.active {
451
+ color: #5baae1;
452
+ }
453
+ }
454
+ }
455
+
456
+ .history-more {
457
+ height: 24px;
458
+ color: rgba(255, 255, 255, 0.3);
459
+ font-weight: 500;
460
+ text-align: center;
461
+ background: #252e42;
462
+ border-radius: 0 0 2px 2px;
463
+ cursor: pointer;
464
+
465
+ .anticon {
466
+ transform: rotate(-90deg);
467
+ }
468
+
469
+ &:hover,
470
+ &:focus {
471
+ color: rgba(255, 255, 255, 0.6);
472
+ }
473
+ }
474
+
475
+ .qkd-terminal-container {
476
+ min-height: 480px;
477
+ background: #272822;
478
+
479
+ .operate {
480
+ display: none;
481
+ }
482
+ }
483
+ }
484
+
485
+ .log-center-input-addon {
486
+ display: inline-flex;
487
+ align-items: center;
488
+ padding: 0 11px;
489
+ color: rgba(0, 0, 0, 0.88);
490
+ font-size: 14px;
491
+ background: #fafafa;
492
+ border: 1px solid #d9d9d9;
493
+ border-left: 0;
494
+ border-radius: 0 6px 6px 0;
495
+ }
496
+
497
+ .empty-wrap {
498
+ padding: 100px;
499
+ color: rgba(0, 0, 0, 0.3);
500
+ text-align: center;
501
+
502
+ .ant-empty-image {
503
+ height: 80px;
504
+ }
505
+ }
506
+ }
507
+
508
+ .ant-tabs-dropdown {
509
+ &.log-file-list-popup {
510
+ .ant-tabs-dropdown-menu-item {
511
+ border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
512
+
513
+ h5 {
514
+ margin-bottom: 4px;
515
+ color: rgba(0, 0, 0, 0.65);
516
+ font-weight: 500;
517
+ font-size: 13px;
518
+ }
519
+
520
+ p {
521
+ margin-bottom: 2px;
522
+ color: rgba(0, 0, 0, 0.5);
523
+
524
+ span {
525
+ color: rgba(0, 0, 0, 0.65);
526
+ }
527
+
528
+ &:last-child {
529
+ margin-bottom: 0;
530
+ }
531
+ }
532
+ }
533
+ }
534
+ }
535
+
536
+ .ant-modal {
537
+ &.log-download-modal {
538
+ .ant-modal-body {
539
+ color: rgba(0, 0, 0, 0.65);
540
+ font-size: 13px;
541
+
542
+ h5 {
543
+ margin-bottom: 25px;
544
+ font-weight: 400;
545
+ font-size: 13px;
546
+ }
547
+
548
+ p {
549
+ margin-bottom: 8px;
550
+ }
551
+
552
+ dl {
553
+ margin: 0;
554
+
555
+ dt {
556
+ margin: 0;
557
+ padding: 1px 0;
558
+ font-weight: 400;
559
+ }
560
+
561
+ dd {
562
+ margin: 0;
563
+ padding: 1px 0;
564
+ color: rgba(0, 0, 0, 0.3);
565
+ font-size: 12px;
566
+ }
567
+ }
568
+
569
+ .ant-checkbox-wrapper,
570
+ .ant-radio-wrapper {
571
+ align-items: flex-start;
572
+ width: 100%;
573
+ margin: 0 0 12px;
574
+ }
575
+ }
576
+ }
577
+ }
@@ -0,0 +1,3 @@
1
+ import type { LogCenterLocale } from './types';
2
+ /** LogCenter 默认中文文案,可合并进 ConfigProvider locale */
3
+ export declare const logCenterLocaleZhCN: LogCenterLocale;