ydb-embedded-ui 6.31.0 → 6.32.0-hotfix.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/AutoRefreshControl/AutoRefreshControl.js +1 -1
- package/dist/components/AutoRefreshControl/AutoRefreshControl.js.map +1 -1
- package/dist/components/BasicNodeViewer/BasicNodeViewer.js +9 -5
- package/dist/components/BasicNodeViewer/BasicNodeViewer.js.map +1 -1
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js +9 -5
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js.map +1 -1
- package/dist/components/PDiskPopup/PDiskPopup.js +9 -9
- package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
- package/dist/components/PaginatedTable/types.d.ts +1 -1
- package/dist/components/Search/Search.d.ts +3 -1
- package/dist/components/Search/Search.js +2 -2
- package/dist/components/Search/Search.js.map +1 -1
- package/dist/components/TabletNameWrapper/TabletNameWrapper.js +1 -1
- package/dist/components/TabletNameWrapper/TabletNameWrapper.js.map +1 -1
- package/dist/components/TenantNameWrapper/TenantNameWrapper.js +1 -1
- package/dist/components/TenantNameWrapper/TenantNameWrapper.js.map +1 -1
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.js +10 -10
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.js.map +1 -1
- package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/VDiskPopup/VDiskPopup.js +1 -9
- package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
- package/dist/components/nodesColumns/constants.d.ts +4 -0
- package/dist/components/nodesColumns/constants.js +10 -0
- package/dist/components/nodesColumns/constants.js.map +1 -1
- package/dist/components/nodesColumns/i18n/en.json +2 -0
- package/dist/components/nodesColumns/i18n/index.d.ts +1 -1
- package/dist/containers/Clusters/i18n/index.d.ts +1 -1
- package/dist/containers/Header/Header.js +2 -9
- package/dist/containers/Header/Header.js.map +1 -1
- package/dist/containers/Nodes/Nodes.js +11 -33
- package/dist/containers/Nodes/Nodes.js.map +1 -1
- package/dist/containers/Nodes/Nodes.scss +4 -0
- package/dist/containers/Nodes/NodesControls/NodesControls.d.ts +11 -0
- package/dist/containers/Nodes/NodesControls/NodesControls.js +24 -0
- package/dist/containers/Nodes/NodesControls/NodesControls.js.map +1 -0
- package/dist/containers/Nodes/PaginatedNodes.d.ts +2 -2
- package/dist/containers/Nodes/PaginatedNodes.js +78 -54
- package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
- package/dist/containers/Nodes/PaginatedNodesTable.d.ts +22 -0
- package/dist/containers/Nodes/PaginatedNodesTable.js +30 -0
- package/dist/containers/Nodes/PaginatedNodesTable.js.map +1 -0
- package/dist/containers/Nodes/columns/constants.d.ts +4 -0
- package/dist/containers/Nodes/columns/constants.js +28 -0
- package/dist/containers/Nodes/columns/constants.js.map +1 -1
- package/dist/containers/Nodes/getNodes.js +4 -5
- package/dist/containers/Nodes/getNodes.js.map +1 -1
- package/dist/containers/Nodes/i18n/en.json +5 -1
- package/dist/containers/Nodes/i18n/index.d.ts +1 -1
- package/dist/containers/Nodes/i18n/index.js +1 -2
- package/dist/containers/Nodes/i18n/index.js.map +1 -1
- package/dist/containers/Nodes/shared.d.ts +5 -0
- package/dist/containers/Nodes/shared.js +16 -0
- package/dist/containers/Nodes/shared.js.map +1 -0
- package/dist/containers/Nodes/useNodesPageQueryParams.d.ts +9 -0
- package/dist/containers/Nodes/useNodesPageQueryParams.js +34 -0
- package/dist/containers/Nodes/useNodesPageQueryParams.js.map +1 -0
- package/dist/containers/Storage/Disks/Disks.js +1 -2
- package/dist/containers/Storage/Disks/Disks.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageNodes.js +1 -2
- package/dist/containers/Storage/PaginatedStorageNodes.js.map +1 -1
- package/dist/containers/Storage/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/utils/index.d.ts +1 -1
- package/dist/containers/Tenant/ObjectSummary/SchemaTree/RefreshTreeButton.js +2 -2
- package/dist/containers/Tenant/Query/NewSQL/i18n/en.json +1 -1
- package/dist/containers/Tenant/i18n/en.json +1 -0
- package/dist/containers/Tenant/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/utils/schemaActions.js +5 -1
- package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
- package/dist/containers/Tenant/utils/schemaQueryTemplates.js +5 -1
- package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -1
- package/dist/store/reducers/capabilities/hooks.d.ts +1 -0
- package/dist/store/reducers/capabilities/hooks.js +3 -0
- package/dist/store/reducers/capabilities/hooks.js.map +1 -1
- package/dist/store/reducers/node/selectors.js +5 -5
- package/dist/store/reducers/node/selectors.js.map +1 -1
- package/dist/store/reducers/node/types.d.ts +3 -4
- package/dist/store/reducers/nodes/types.d.ts +3 -1
- package/dist/store/reducers/nodes/utils.d.ts +1 -1
- package/dist/store/reducers/nodes/utils.js +9 -4
- package/dist/store/reducers/nodes/utils.js.map +1 -1
- package/dist/store/reducers/pdisk/utils.js +6 -3
- package/dist/store/reducers/pdisk/utils.js.map +1 -1
- package/dist/store/reducers/settings/hooks.d.ts +5 -0
- package/dist/store/reducers/settings/hooks.js +14 -0
- package/dist/store/reducers/settings/hooks.js.map +1 -0
- package/dist/store/reducers/storage/__test__/prepareGroupsDisks.test.d.ts +1 -0
- package/dist/store/reducers/storage/__test__/prepareGroupsDisks.test.js +354 -0
- package/dist/store/reducers/storage/__test__/prepareGroupsDisks.test.js.map +1 -0
- package/dist/store/reducers/storage/prepareGroupsDisks.d.ts +37 -0
- package/dist/store/reducers/storage/prepareGroupsDisks.js +72 -0
- package/dist/store/reducers/storage/prepareGroupsDisks.js.map +1 -0
- package/dist/store/reducers/storage/utils.js +7 -28
- package/dist/store/reducers/storage/utils.js.map +1 -1
- package/dist/store/reducers/tenantOverview/topShards/utils.d.ts +1 -1
- package/dist/store/reducers/vdisk/utils.js +3 -3
- package/dist/store/reducers/vdisk/utils.js.map +1 -1
- package/dist/types/api/nodes.d.ts +1 -1
- package/dist/types/api/pdisk.d.ts +1 -1
- package/dist/types/api/storage.d.ts +2 -2
- package/dist/utils/developerUI/__test__/developerUI.test.js +21 -1
- package/dist/utils/developerUI/__test__/developerUI.test.js.map +1 -1
- package/dist/utils/developerUI/developerUI.d.ts +1 -0
- package/dist/utils/developerUI/developerUI.js +3 -0
- package/dist/utils/developerUI/developerUI.js.map +1 -1
- package/dist/utils/disks/__test__/calculatePDiskSeverity.test.js +10 -7
- package/dist/utils/disks/__test__/calculatePDiskSeverity.test.js.map +1 -1
- package/dist/utils/disks/__test__/calculateVDiskSeverity.test.js +8 -23
- package/dist/utils/disks/__test__/calculateVDiskSeverity.test.js.map +1 -1
- package/dist/utils/disks/__test__/prepareDisks.test.d.ts +1 -0
- package/dist/utils/disks/__test__/prepareDisks.test.js +200 -0
- package/dist/utils/disks/__test__/prepareDisks.test.js.map +1 -0
- package/dist/utils/disks/calculatePDiskSeverity.d.ts +5 -2
- package/dist/utils/disks/calculatePDiskSeverity.js +2 -2
- package/dist/utils/disks/calculatePDiskSeverity.js.map +1 -1
- package/dist/utils/disks/calculateVDiskSeverity.d.ts +8 -2
- package/dist/utils/disks/calculateVDiskSeverity.js +0 -4
- package/dist/utils/disks/calculateVDiskSeverity.js.map +1 -1
- package/dist/utils/disks/helpers.d.ts +2 -1
- package/dist/utils/disks/helpers.js.map +1 -1
- package/dist/utils/disks/prepareDisks.d.ts +22 -4
- package/dist/utils/disks/prepareDisks.js +75 -28
- package/dist/utils/disks/prepareDisks.js.map +1 -1
- package/dist/utils/disks/types.d.ts +9 -2
- package/dist/utils/storage.d.ts +1 -1
- package/package.json +3 -2
- package/dist/containers/Nodes/i18n/ru.json +0 -3
@@ -10,7 +10,7 @@ const b = cn('auto-refresh-control');
|
|
10
10
|
export function AutoRefreshControl({ className }) {
|
11
11
|
const dispatch = useTypedDispatch();
|
12
12
|
const [autoRefreshInterval, setAutoRefreshInterval] = useAutoRefreshInterval();
|
13
|
-
return (_jsxs("div", { className: b(null, className), children: [_jsx(Button, { view: "flat", onClick: () => {
|
13
|
+
return (_jsxs("div", { className: b(null, className), children: [_jsx(Button, { view: "flat-secondary", onClick: () => {
|
14
14
|
dispatch(api.util.invalidateTags(['All']));
|
15
15
|
}, extraProps: { 'aria-label': i18n('Refresh') }, children: _jsx(Button.Icon, { children: _jsx(ArrowsRotateLeft, {}) }) }), _jsxs(Select, { value: [String(autoRefreshInterval)], onUpdate: (v) => {
|
16
16
|
setAutoRefreshInterval(Number(v));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AutoRefreshControl.js","sourceRoot":"","sources":["../../../src/components/AutoRefreshControl/AutoRefreshControl.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAC,MAAM,EAAE,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAAC,GAAG,EAAC,MAAM,0BAA0B,CAAC;AAC7C,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,sBAAsB,EAAE,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAE3E,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAAO,2BAA2B,CAAC;AAEnC,MAAM,CAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC,CAAC;AAMrC,MAAM,UAAU,kBAAkB,CAAC,EAAC,SAAS,EAA0B;IACnE,MAAM,QAAQ,GAAG,gBAAgB,EAAE,CAAC;IACpC,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,GAAG,sBAAsB,EAAE,CAAC;IAC/E,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,SAAS,CAAC,aAC9B,KAAC,MAAM,IACH,IAAI,EAAC,
|
1
|
+
{"version":3,"file":"AutoRefreshControl.js","sourceRoot":"","sources":["../../../src/components/AutoRefreshControl/AutoRefreshControl.tsx"],"names":[],"mappings":";AAAA,OAAO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AC,MAAM,CAAC,GAAiB,EACvD,KAAC,MAAM,CAAC,MAAM,IAAC,KAAK,EAAC,OAAO,YAAE,IAAI,CAAC,QAAQ,CAAC,GAAiB,EAC7D,KAAC,MAAM,CAAC,MAAM,IAAC,KAAK,EAAC,OAAO,YAAE,IAAI,CAAC,OAAO,CAAC,GAAiB,EAC5D,KAAC,MAAM,CAAC,MAAM,IAAC,KAAK,EAAC,QAAQ,YAAE,IAAI,CAAC,OAAO,CAAC,GAAiB,EAC7D,KAAC,MAAM,CAAC,MAAM,IAAC,KAAK,EAAC,QAAQ,YAAE,IAAI,CAAC,OAAO,CAAC,GAAiB,IACxD,IACP,CACT,CAAC;AACN,CAAC"}
|
@@ -3,19 +3,23 @@ import React from 'react';
|
|
3
3
|
import { ArrowUpRightFromSquare } from '@gravity-ui/icons';
|
4
4
|
import { Icon } from '@gravity-ui/uikit';
|
5
5
|
import { cn } from '../../utils/cn';
|
6
|
-
import { createDeveloperUILinkWithNodeId } from '../../utils/developerUI/developerUI';
|
6
|
+
import { createDeveloperUIInternalPageHref, createDeveloperUILinkWithNodeId, } from '../../utils/developerUI/developerUI';
|
7
7
|
import { EntityStatus } from '../EntityStatus/EntityStatus';
|
8
8
|
import { Tags } from '../Tags';
|
9
9
|
import './BasicNodeViewer.scss';
|
10
10
|
const b = cn('basic-node-viewer');
|
11
11
|
export const BasicNodeViewer = ({ node, additionalNodesProps, className }) => {
|
12
|
-
let
|
12
|
+
let developerUIInternalHref;
|
13
13
|
if (additionalNodesProps === null || additionalNodesProps === void 0 ? void 0 : additionalNodesProps.getNodeRef) {
|
14
|
-
|
14
|
+
const developerUIHref = additionalNodesProps.getNodeRef(node);
|
15
|
+
developerUIInternalHref = developerUIHref
|
16
|
+
? createDeveloperUIInternalPageHref(developerUIHref)
|
17
|
+
: undefined;
|
15
18
|
}
|
16
19
|
else if (node.NodeId) {
|
17
|
-
|
20
|
+
const developerUIHref = createDeveloperUILinkWithNodeId(node.NodeId);
|
21
|
+
developerUIInternalHref = createDeveloperUIInternalPageHref(developerUIHref);
|
18
22
|
}
|
19
|
-
return (_jsx("div", { className: b(null, className), children: node ? (_jsxs(React.Fragment, { children: [_jsx("div", { className: b('title'), children: "Node" }), _jsx(EntityStatus, { status: node.SystemState, name: node.Host }),
|
23
|
+
return (_jsx("div", { className: b(null, className), children: node ? (_jsxs(React.Fragment, { children: [_jsx("div", { className: b('title'), children: "Node" }), _jsx(EntityStatus, { status: node.SystemState, name: node.Host }), developerUIInternalHref && (_jsx("a", { rel: "noopener noreferrer", className: b('link', { external: true }), href: developerUIInternalHref, target: "_blank", children: _jsx(Icon, { data: ArrowUpRightFromSquare }) })), _jsxs("div", { className: b('id'), children: [_jsx("label", { className: b('label'), children: "NodeID" }), _jsx("label", { children: node.NodeId })] }), node.DC && _jsx(Tags, { tags: [node.DC] }), node.Roles && _jsx(Tags, { tags: node.Roles, tagsType: "blue" })] })) : (_jsx("div", { className: "error", children: "no data" })) }));
|
20
24
|
};
|
21
25
|
//# sourceMappingURL=BasicNodeViewer.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BasicNodeViewer.js","sourceRoot":"","sources":["../../../src/components/BasicNodeViewer/BasicNodeViewer.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAIvC,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,
|
1
|
+
{"version":3,"file":"BasicNodeViewer.js","sourceRoot":"","sources":["../../../src/components/BasicNodeViewer/BasicNodeViewer.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAIvC,OAAO,E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AAC,QAAQ,EAAE,IAAI,EAAC,CAAC,EACtC,IAAI,EAAE,uBAAuB,EAC7B,MAAM,EAAC,QAAQ,YAEf,KAAC,IAAI,IAAC,IAAI,EAAE,sBAAsB,GAAI,GACtC,CACP,EAED,eAAK,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,aACnB,gBAAO,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,uBAAgB,EAC5C,0BAAQ,IAAI,CAAC,MAAM,GAAS,IAC1B,EAEL,IAAI,CAAC,EAAE,IAAI,KAAC,IAAI,IAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,GAAI,EACpC,IAAI,CAAC,KAAK,IAAI,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAC,MAAM,GAAG,IAC5C,CACpB,CAAC,CAAC,CAAC,CACA,cAAK,SAAS,EAAC,OAAO,wBAAc,CACvC,GACC,CACT,CAAC;AACN,CAAC,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
import { PopoverBehavior } from '@gravity-ui/uikit';
|
3
3
|
import { getDefaultNodePath } from '../../containers/Node/NodePages';
|
4
|
-
import { createDeveloperUILinkWithNodeId } from '../../utils/developerUI/developerUI';
|
4
|
+
import { createDeveloperUIInternalPageHref, createDeveloperUILinkWithNodeId, } from '../../utils/developerUI/developerUI';
|
5
5
|
import { isUnavailableNode } from '../../utils/nodes';
|
6
6
|
import { CellWithPopover } from '../CellWithPopover/CellWithPopover';
|
7
7
|
import { EntityStatus } from '../EntityStatus/EntityStatus';
|
@@ -11,18 +11,22 @@ export const NodeHostWrapper = ({ node, getNodeRef, database }) => {
|
|
11
11
|
return _jsx("span", { children: "\u2014" });
|
12
12
|
}
|
13
13
|
const isNodeAvailable = !isUnavailableNode(node);
|
14
|
-
let
|
14
|
+
let developerUIInternalHref;
|
15
15
|
if (getNodeRef) {
|
16
|
-
|
16
|
+
const developerUIHref = getNodeRef(node);
|
17
|
+
developerUIInternalHref = developerUIHref
|
18
|
+
? createDeveloperUIInternalPageHref(developerUIHref)
|
19
|
+
: undefined;
|
17
20
|
}
|
18
21
|
else if (node.NodeId) {
|
19
|
-
|
22
|
+
const developerUIHref = createDeveloperUILinkWithNodeId(node.NodeId);
|
23
|
+
developerUIInternalHref = createDeveloperUIInternalPageHref(developerUIHref);
|
20
24
|
}
|
21
25
|
const nodePath = isNodeAvailable
|
22
26
|
? getDefaultNodePath(node.NodeId, {
|
23
27
|
database: database !== null && database !== void 0 ? database : node.TenantName,
|
24
28
|
})
|
25
29
|
: undefined;
|
26
|
-
return (_jsx(CellWithPopover, { disabled: !isNodeAvailable, content: _jsx(NodeEndpointsTooltipContent, { data: node, nodeHref:
|
30
|
+
return (_jsx(CellWithPopover, { disabled: !isNodeAvailable, content: _jsx(NodeEndpointsTooltipContent, { data: node, nodeHref: developerUIInternalHref }), placement: ['top', 'bottom'], behavior: PopoverBehavior.Immediate, delayClosing: 200, children: _jsx(EntityStatus, { name: node.Host, status: node.SystemState, path: nodePath, hasClipboardButton: true }) }));
|
27
31
|
};
|
28
32
|
//# sourceMappingURL=NodeHostWrapper.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NodeHostWrapper.js","sourceRoot":"","sources":["../../../src/components/NodeHostWrapper/NodeHostWrapper.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAC,kBAAkB,EAAC,MAAM,iCAAiC,CAAC;AAGnE,OAAO,
|
1
|
+
{"version":3,"file":"NodeHostWrapper.js","sourceRoot":"","sources":["../../../src/components/NodeHostWrapper/NodeHostWrapper.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAC,kBAAkB,EAAC,MAAM,iCAAiC,CAAC;AAGnE,OAAO,EACH,iCAAiC,EACjC,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AAE,uBAAuB,GAAI,EACvF,SAAS,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,EAC5B,QAAQ,EAAE,eAAe,CAAC,SAAS,EACnC,YAAY,EAAE,GAAG,YAEjB,KAAC,YAAY,IACT,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,MAAM,EAAE,IAAI,CAAC,WAAW,EACxB,IAAI,EAAE,QAAQ,EACd,kBAAkB,SACpB,GACY,CACrB,CAAC;AACN,CAAC,CAAC"}
|
@@ -6,19 +6,17 @@ import { EFlag } from '../../types/api/enums';
|
|
6
6
|
import { valueIsDefined } from '../../utils';
|
7
7
|
import { EMPTY_DATA_PLACEHOLDER } from '../../utils/constants';
|
8
8
|
import { createPDiskDeveloperUILink } from '../../utils/developerUI/developerUI';
|
9
|
-
import { getPDiskId } from '../../utils/disks/helpers';
|
10
9
|
import { useTypedSelector } from '../../utils/hooks';
|
11
|
-
import { bytesToGB } from '../../utils/utils';
|
10
|
+
import { bytesToGB, isNumeric } from '../../utils/utils';
|
12
11
|
import { InfoViewer } from '../InfoViewer';
|
13
12
|
import { LinkWithIcon } from '../LinkWithIcon/LinkWithIcon';
|
14
13
|
const errorColors = [EFlag.Orange, EFlag.Red, EFlag.Yellow];
|
15
14
|
export const preparePDiskData = (data, nodeHost, withDeveloperUILink) => {
|
16
|
-
|
17
|
-
const { AvailableSize, TotalSize, State, PDiskId, NodeId, Path, Realtime, Type, Device } = data;
|
15
|
+
const { AvailableSize, TotalSize, State, PDiskId, NodeId, StringifiedId, Path, Realtime, Type, Device, } = data;
|
18
16
|
const pdiskData = [
|
19
17
|
{
|
20
18
|
label: 'PDisk',
|
21
|
-
value:
|
19
|
+
value: StringifiedId !== null && StringifiedId !== void 0 ? StringifiedId : EMPTY_DATA_PLACEHOLDER,
|
22
20
|
},
|
23
21
|
{ label: 'State', value: State || 'not available' },
|
24
22
|
{ label: 'Type', value: Type || 'unknown' },
|
@@ -32,10 +30,12 @@ export const preparePDiskData = (data, nodeHost, withDeveloperUILink) => {
|
|
32
30
|
if (Path) {
|
33
31
|
pdiskData.push({ label: 'Path', value: Path });
|
34
32
|
}
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
33
|
+
if (isNumeric(TotalSize)) {
|
34
|
+
pdiskData.push({
|
35
|
+
label: 'Available',
|
36
|
+
value: `${bytesToGB(AvailableSize)} of ${bytesToGB(TotalSize)}`,
|
37
|
+
});
|
38
|
+
}
|
39
39
|
if (Realtime && errorColors.includes(Realtime)) {
|
40
40
|
pdiskData.push({ label: 'Realtime', value: Realtime });
|
41
41
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PDiskPopup.js","sourceRoot":"","sources":["../../../src/components/PDiskPopup/PDiskPopup.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,gCAAgC,EAAC,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAC,kBAAkB,EAAC,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAC,KAAK,EAAC,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAC,sBAAsB,EAAC,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAC,0BAA0B,EAAC,MAAM,qCAAqC,CAAC;
|
1
|
+
{"version":3,"file":"PDiskPopup.js","sourceRoot":"","sources":["../../../src/components/PDiskPopup/PDiskPopup.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,gCAAgC,EAAC,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAC,kBAAkB,EAAC,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAC,KAAK,EAAC,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAC,sBAAsB,EAAC,MAAM,uBAAuB,CAAC;AAC7D,OAAO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B,CAAC,CAAC;IAC1D,MAAM,QAAQ,GAAG,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC1F,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CACtB,GAAG,EAAE,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,0BAA0B,CAAC,EAClE,CAAC,IAAI,EAAE,QAAQ,EAAE,0BAA0B,CAAC,CAC/C,CAAC;IAEF,OAAO,KAAC,UAAU,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,GAAG,GAAG,CAAC;AAC7D,CAAC,CAAC"}
|
@@ -56,5 +56,5 @@ interface ControlsParams {
|
|
56
56
|
export type RenderControls = (params: ControlsParams) => React.ReactNode;
|
57
57
|
export type RenderEmptyDataMessage = () => React.ReactNode;
|
58
58
|
export type RenderErrorMessage = (error: IResponseError) => React.ReactNode;
|
59
|
-
export type GetRowClassName<T> = (row: T) => string
|
59
|
+
export type GetRowClassName<T> = (row: T) => string;
|
60
60
|
export {};
|
@@ -1,10 +1,12 @@
|
|
1
|
+
import React from 'react';
|
1
2
|
import './Search.scss';
|
2
3
|
interface SearchProps {
|
3
4
|
onChange: (value: string) => void;
|
4
5
|
value?: string;
|
6
|
+
width?: React.CSSProperties['width'];
|
5
7
|
className?: string;
|
6
8
|
debounce?: number;
|
7
9
|
placeholder?: string;
|
8
10
|
}
|
9
|
-
export declare const Search: ({ onChange, value, className, debounce, placeholder, }: SearchProps) => import("react/jsx-runtime").JSX.Element;
|
11
|
+
export declare const Search: ({ onChange, value, width, className, debounce, placeholder, }: SearchProps) => import("react/jsx-runtime").JSX.Element;
|
10
12
|
export {};
|
@@ -4,7 +4,7 @@ import { TextInput } from '@gravity-ui/uikit';
|
|
4
4
|
import { cn } from '../../utils/cn';
|
5
5
|
import './Search.scss';
|
6
6
|
const b = cn('ydb-search');
|
7
|
-
export const Search = ({ onChange, value = '', className, debounce = 200, placeholder, }) => {
|
7
|
+
export const Search = ({ onChange, value = '', width, className, debounce = 200, placeholder, }) => {
|
8
8
|
const [searchValue, setSearchValue] = React.useState(value);
|
9
9
|
const timer = React.useRef();
|
10
10
|
React.useEffect(() => {
|
@@ -22,6 +22,6 @@ export const Search = ({ onChange, value = '', className, debounce = 200, placeh
|
|
22
22
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
23
23
|
}, debounce);
|
24
24
|
};
|
25
|
-
return (_jsx(TextInput, { hasClear: true, autoFocus: true, className: b(null, className), placeholder: placeholder, value: searchValue, onUpdate: onSearchValueChange }));
|
25
|
+
return (_jsx(TextInput, { hasClear: true, autoFocus: true, style: { width }, className: b(null, className), placeholder: placeholder, value: searchValue, onUpdate: onSearchValueChange }));
|
26
26
|
};
|
27
27
|
//# sourceMappingURL=Search.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Search.js","sourceRoot":"","sources":["../../../src/components/Search/Search.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,OAAO,eAAe,CAAC;AAEvB,MAAM,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"Search.js","sourceRoot":"","sources":["../../../src/components/Search/Search.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,OAAO,eAAe,CAAC;AAEvB,MAAM,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,CAA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12
|
const isUserAllowedToMakeChanges = useTypedSelector(selectIsUserAllowedToMakeChanges);
|
13
13
|
const tabletPath = getTabletPagePath(tabletId, { database });
|
14
|
-
return (_jsx(CellWithPopover, { disabled: !isUserAllowedToMakeChanges, content: _jsx(DefinitionList, { responsive: true, children: _jsx(DefinitionList.Item, { name: i18n('field_links'), children: _jsx(LinkWithIcon, { title: i18n('context_developer-ui'), url: createTabletDeveloperUIHref(tabletId) }) }) }), placement: ['top', 'bottom'], behavior: PopoverBehavior.Immediate, children: _jsx(EntityStatus, { name: tabletId.toString(), path: tabletPath, hasClipboardButton: true, showStatus: false }) }));
|
14
|
+
return (_jsx(CellWithPopover, { disabled: !isUserAllowedToMakeChanges, delayClosing: 200, content: _jsx(DefinitionList, { responsive: true, children: _jsx(DefinitionList.Item, { name: i18n('field_links'), children: _jsx(LinkWithIcon, { title: i18n('context_developer-ui'), url: createTabletDeveloperUIHref(tabletId) }) }) }), placement: ['top', 'bottom'], behavior: PopoverBehavior.Immediate, children: _jsx(EntityStatus, { name: tabletId.toString(), path: tabletPath, hasClipboardButton: true, showStatus: false }) }));
|
15
15
|
}
|
16
16
|
//# sourceMappingURL=TabletNameWrapper.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TabletNameWrapper.js","sourceRoot":"","sources":["../../../src/components/TabletNameWrapper/TabletNameWrapper.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,cAAc,EAAE,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAElE,OAAO,EAAC,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAC,gCAAgC,EAAC,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAC,2BAA2B,EAAC,MAAM,qCAAqC,CAAC;AAChF,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAC,eAAe,EAAC,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CA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CAAC;AACnD,OAAO,EAAC,eAAe,EAAC,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAE1D,OAAO,IAAI,MAAM,QAAQ,CAAC;AAO1B,MAAM,UAAU,iBAAiB,CAAC,EAAC,QAAQ,EAAE,QAAQ,EAAyB;IAC1E,MAAM,0BAA0B,GAAG,gBAAgB,CAAC,gCAAgC,CAAC,CAAC;IAEtF,MAAM,UAAU,GAAG,iBAAiB,CAAC,QAAQ,EAAE,EAAC,QAAQ,EAAC,CAAC,CAAC;IAE3D,OAAO,CACH,KAAC,eAAe,IACZ,QAAQ,EAAE,CAAC,0BAA0B,EACrC,YAAY,EAAE,GAAG,EACjB,OAAO,EACH,KAAC,cAAc,IAAC,UAAU,kBACtB,KAAC,cAAc,CAAC,IAAI,IAAC,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,YAC1C,KAAC,YAAY,IACT,KAAK,EAAE,IAAI,CAAC,sBAAsB,CAAC,EACnC,GAAG,EAAE,2BAA2B,CAAC,QAAQ,CAAC,GAC5C,GACgB,GACT,EAErB,SAAS,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,EAC5B,QAAQ,EAAE,eAAe,CAAC,SAAS,YAEnC,KAAC,YAAY,IACT,IAAI,EAAE,QAAQ,CAAC,QAAQ,EAAE,EACzB,IAAI,EAAE,UAAU,EAChB,kBAAkB,QAClB,UAAU,EAAE,KAAK,GACnB,GACY,CACrB,CAAC;AACN,CAAC"}
|
@@ -26,7 +26,7 @@ export function TenantNameWrapper({ tenant, additionalTenantsProps }) {
|
|
26
26
|
const backend = getTenantBackend(tenant, additionalTenantsProps);
|
27
27
|
const isExternalLink = Boolean(backend);
|
28
28
|
const monitoringLink = (_a = additionalTenantsProps === null || additionalTenantsProps === void 0 ? void 0 : additionalTenantsProps.getMonitoringLink) === null || _a === void 0 ? void 0 : _a.call(additionalTenantsProps, tenant.Name, tenant.Type);
|
29
|
-
return (_jsx(CellWithPopover, { disabled: !isUserAllowedToMakeChanges || !monitoringLink, content: monitoringLink ? (_jsx(DefinitionList, { responsive: true, children: _jsx(DefinitionList.Item, { name: i18n('field_links'), children: _jsx(LinkWithIcon, { title: i18n('field_monitoring-link'), url: monitoringLink }) }) })) : null, placement: ['top', 'bottom'], behavior: PopoverBehavior.Immediate, children: _jsx(EntityStatus, { externalLink: isExternalLink, name: tenant.Name || i18n('context_unknown'), withLeftTrim: true, status: tenant.Overall, hasClipboardButton: true, path: getTenantPath({
|
29
|
+
return (_jsx(CellWithPopover, { disabled: !isUserAllowedToMakeChanges || !monitoringLink, delayClosing: 200, content: monitoringLink ? (_jsx(DefinitionList, { responsive: true, children: _jsx(DefinitionList.Item, { name: i18n('field_links'), children: _jsx(LinkWithIcon, { title: i18n('field_monitoring-link'), url: monitoringLink }) }) })) : null, placement: ['top', 'bottom'], behavior: PopoverBehavior.Immediate, children: _jsx(EntityStatus, { externalLink: isExternalLink, name: tenant.Name || i18n('context_unknown'), withLeftTrim: true, status: tenant.Overall, hasClipboardButton: true, path: getTenantPath({
|
30
30
|
database: tenant.Name,
|
31
31
|
backend,
|
32
32
|
}) }) }));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TenantNameWrapper.js","sourceRoot":"","sources":["../../../src/components/TenantNameWrapper/TenantNameWrapper.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,cAAc,EAAE,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAElE,OAAO,EAAC,aAAa,EAAC,MAAM,qCAAqC,CAAC;AAClE,OAAO,EAAC,gCAAgC,EAAC,MAAM,oDAAoD,CAAC;AAGpG,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAC,eAAe,EAAC,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAC1D,OAAO,E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c,EACxD,YAAY,EAAE,GAAG,EACjB,OAAO,EACH,cAAc,CAAC,CAAC,CAAC,CACb,KAAC,cAAc,IAAC,UAAU,kBACtB,KAAC,cAAc,CAAC,IAAI,IAAC,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,YAC1C,KAAC,YAAY,IACT,KAAK,EAAE,IAAI,CAAC,uBAAuB,CAAC,EACpC,GAAG,EAAE,cAAc,GACrB,GACgB,GACT,CACpB,CAAC,CAAC,CAAC,IAAI,EAEZ,SAAS,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,EAC5B,QAAQ,EAAE,eAAe,CAAC,SAAS,YAEnC,KAAC,YAAY,IACT,YAAY,EAAE,cAAc,EAC5B,IAAI,EAAE,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC,iBAAiB,CAAC,EAC5C,YAAY,EAAE,IAAI,EAClB,MAAM,EAAE,MAAM,CAAC,OAAO,EACtB,kBAAkB,QAClB,IAAI,EAAE,aAAa,CAAC;gBAChB,QAAQ,EAAE,MAAM,CAAC,IAAI;gBACrB,OAAO;aACV,CAAC,GACJ,GACY,CACrB,CAAC;AACN,CAAC"}
|
package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.js
CHANGED
@@ -11,26 +11,26 @@ export const NodeEndpointsTooltipContent = ({ data, nodeHref }) => {
|
|
11
11
|
var _a, _b;
|
12
12
|
const isUserAllowedToMakeChanges = useTypedSelector(selectIsUserAllowedToMakeChanges);
|
13
13
|
const info = [];
|
14
|
-
if (data === null || data === void 0 ? void 0 : data.
|
14
|
+
if ((_a = data === null || data === void 0 ? void 0 : data.Roles) === null || _a === void 0 ? void 0 : _a.length) {
|
15
15
|
info.push({
|
16
|
-
name: i18n('
|
17
|
-
children: data.
|
18
|
-
|
19
|
-
key: 'Host',
|
16
|
+
name: i18n('field_roles'),
|
17
|
+
children: data.Roles.join(', '),
|
18
|
+
key: 'Roles',
|
20
19
|
});
|
21
20
|
}
|
22
|
-
if ((
|
21
|
+
if ((_b = data === null || data === void 0 ? void 0 : data.Tenants) === null || _b === void 0 ? void 0 : _b[0]) {
|
23
22
|
info.push({
|
24
23
|
name: i18n('field_database'),
|
25
24
|
children: data.Tenants[0],
|
26
25
|
key: 'Database',
|
27
26
|
});
|
28
27
|
}
|
29
|
-
if (
|
28
|
+
if (data === null || data === void 0 ? void 0 : data.Host) {
|
30
29
|
info.push({
|
31
|
-
name: i18n('
|
32
|
-
children: data.
|
33
|
-
|
30
|
+
name: i18n('field_host'),
|
31
|
+
children: data.Host,
|
32
|
+
copyText: data.Host,
|
33
|
+
key: 'Host',
|
34
34
|
});
|
35
35
|
}
|
36
36
|
if (data === null || data === void 0 ? void 0 : data.Rack) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NodeEndpointsTooltipContent.js","sourceRoot":"","sources":["../../../../src/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAAC,gCAAgC,EAAC,MAAM,uDAAuD,CAAC;AAEvG,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AACrC,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAC,YAAY,EAAC,MAAM,iCAAiC,CAAC;AAE7D,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAAO,oCAAoC,CAAC;AAE5C,MAAM,CAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC,CAAC;AAOnD,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,EAAC,IAAI,EAAE,QAAQ,EAA2B,EAAE,EAAE;;IACtF,MAAM,0BAA0B,GAAG,gBAAgB,CAAC,gCAAgC,CAAC,CAAC;IACtF,MAAM,IAAI,GAAgD,EAAE,CAAC;
|
1
|
+
{"version":3,"file":"NodeEndpointsTooltipContent.js","sourceRoot":"","sources":["../../../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ACrB,IAAI,CAAC,GAAG,CAAC,CAAC,EAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,IAAI,EAAC,EAAE,EAAE;gBACnC,OAAO,CACH,KAAC,cAAc,CAAC,IAAI,OAAe,IAAI,YACnC,cAAK,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,YAAG,QAAQ,GAAO,IAD3B,GAAG,CAEP,CACzB,CAAC;YACN,CAAC,CAAC,GACW,GACf,CACT,CAAC;AACN,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
export declare const vDiskInfoKeyset: (key: "size" | "yes" | "no" | "
|
1
|
+
export declare const vDiskInfoKeyset: (key: "size" | "yes" | "no" | "kind" | "links" | "pool-name" | "guid" | "developer-ui" | "slot-id" | "incarnation-guid" | "instance-guid" | "replication-status" | "state-status" | "space-status" | "fresh-rank-satisfaction" | "level-rank-satisfaction" | "front-queues" | "has-unreadable-blobs" | "read-throughput" | "write-throughput" | "vdisk-page" | "vdiks-title", params?: import("@gravity-ui/i18n").Params) => string;
|
@@ -7,7 +7,6 @@ import { EFlag } from '../../types/api/enums';
|
|
7
7
|
import { valueIsDefined } from '../../utils';
|
8
8
|
import { cn } from '../../utils/cn';
|
9
9
|
import { EMPTY_DATA_PLACEHOLDER } from '../../utils/constants';
|
10
|
-
import { stringifyVdiskId } from '../../utils/dataFormatters/dataFormatters';
|
11
10
|
import { createVDiskDeveloperUILink } from '../../utils/developerUI/developerUI';
|
12
11
|
import { isFullVDiskData } from '../../utils/disks/helpers';
|
13
12
|
import { useTypedSelector } from '../../utils/hooks';
|
@@ -135,16 +134,9 @@ export const VDiskPopup = ({ data }) => {
|
|
135
134
|
if ('Donors' in data && data.Donors) {
|
136
135
|
const donors = data.Donors;
|
137
136
|
for (const donor of donors) {
|
138
|
-
const isFullDonorData = isFullVDiskData(donor);
|
139
137
|
donorsInfo.push({
|
140
138
|
label: 'VDisk',
|
141
|
-
value:
|
142
|
-
? donor.VDiskId
|
143
|
-
: {
|
144
|
-
NodeId: donor.NodeId,
|
145
|
-
PDiskId: donor.PDiskId,
|
146
|
-
VSlotId: donor.VSlotId,
|
147
|
-
}) })),
|
139
|
+
value: _jsx(InternalLink, { to: getVDiskLink(donor), children: donor.StringifiedId }),
|
148
140
|
});
|
149
141
|
}
|
150
142
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VDiskPopup.js","sourceRoot":"","sources":["../../../src/components/VDiskPopup/VDiskPopup.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,gCAAgC,EAAC,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAC,kBAAkB,EAAC,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAC,KAAK,EAAC,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,sBAAsB,EAAC,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"VDiskPopup.js","sourceRoot":"","sources":["../../../src/components/VDiskPopup/VDiskPopup.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,gCAAgC,EAAC,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAC,kBAAkB,EAAC,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAC,KAAK,EAAC,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,sBAAsB,EAAC,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAA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aACrF,CAAC,CAAC;QACP,CAAC;IACL,CAAC;IAED,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,EAAE,aACd,IAAI,CAAC,SAAS,IAAI,KAAC,KAAK,IAAC,SAAS,EAAE,CAAC,CAAC,aAAa,CAAC,sBAAe,EACpE,KAAC,UAAU,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAC,GAAG,GAAG,EACrD,SAAS,IAAI,KAAC,UAAU,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAC,GAAG,GAAG,EACnE,UAAU,CAAC,MAAM,GAAG,CAAC,IAAI,KAAC,UAAU,IAAC,KAAK,EAAC,QAAQ,EAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAC,GAAG,GAAG,IAChF,CACT,CAAC;AACN,CAAC,CAAC"}
|
@@ -3,7 +3,9 @@ import type { ValueOf } from '../../types/common';
|
|
3
3
|
export declare const NODES_COLUMNS_WIDTH_LS_KEY = "nodesTableColumnsWidth";
|
4
4
|
export declare const NODES_COLUMNS_IDS: {
|
5
5
|
readonly NodeId: "NodeId";
|
6
|
+
readonly SystemState: "SystemState";
|
6
7
|
readonly Host: "Host";
|
8
|
+
readonly Database: "Database";
|
7
9
|
readonly NodeName: "NodeName";
|
8
10
|
readonly DC: "DC";
|
9
11
|
readonly Rack: "Rack";
|
@@ -25,7 +27,9 @@ export declare const NODES_COLUMNS_IDS: {
|
|
25
27
|
export type NodesColumnId = ValueOf<typeof NODES_COLUMNS_IDS>;
|
26
28
|
export declare const NODES_COLUMNS_TITLES: {
|
27
29
|
readonly NodeId: string;
|
30
|
+
readonly SystemState: string;
|
28
31
|
readonly Host: string;
|
32
|
+
readonly Database: string;
|
29
33
|
readonly NodeName: string;
|
30
34
|
readonly DC: string;
|
31
35
|
readonly Rack: string;
|
@@ -2,7 +2,9 @@ import i18n from './i18n';
|
|
2
2
|
export const NODES_COLUMNS_WIDTH_LS_KEY = 'nodesTableColumnsWidth';
|
3
3
|
export const NODES_COLUMNS_IDS = {
|
4
4
|
NodeId: 'NodeId',
|
5
|
+
SystemState: 'SystemState',
|
5
6
|
Host: 'Host',
|
7
|
+
Database: 'Database',
|
6
8
|
NodeName: 'NodeName',
|
7
9
|
DC: 'DC',
|
8
10
|
Rack: 'Rack',
|
@@ -27,9 +29,15 @@ export const NODES_COLUMNS_TITLES = {
|
|
27
29
|
get NodeId() {
|
28
30
|
return i18n('node-id');
|
29
31
|
},
|
32
|
+
get SystemState() {
|
33
|
+
return i18n('system-state');
|
34
|
+
},
|
30
35
|
get Host() {
|
31
36
|
return i18n('host');
|
32
37
|
},
|
38
|
+
get Database() {
|
39
|
+
return i18n('database');
|
40
|
+
},
|
33
41
|
get NodeName() {
|
34
42
|
return i18n('node-name');
|
35
43
|
},
|
@@ -86,7 +94,9 @@ export const NODES_COLUMNS_TITLES = {
|
|
86
94
|
// Also for some columns we may use more than one field
|
87
95
|
export const NODES_COLUMNS_TO_DATA_FIELDS = {
|
88
96
|
NodeId: ['NodeId'],
|
97
|
+
SystemState: ['SystemState'],
|
89
98
|
Host: ['Host', 'Rack', 'Database', 'SystemState'],
|
99
|
+
Database: ['Database'],
|
90
100
|
NodeName: ['NodeName'],
|
91
101
|
DC: ['DC'],
|
92
102
|
Rack: ['Rack'],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/nodesColumns/constants.ts"],"names":[],"mappings":"AAGA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,MAAM,CAAC,MAAM,0BAA0B,GAAG,wBAAwB,CAAC;AAEnE,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ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,MAAM,CAAC,MAAM,4BAA4B,GAAgD;IACrF,MAAM,EAAE,CAAC,QAAQ,CAAC;IAClB,WAAW,EAAE,CAAC,aAAa,CAAC;IAC5B,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,CAAC;IACjD,QAAQ,EAAE,CAAC,UAAU,CAAC;IACtB,QAAQ,EAAE,CAAC,UAAU,CAAC;IACtB,EAAE,EAAE,CAAC,IAAI,CAAC;IACV,IAAI,EAAE,CAAC,MAAM,CAAC;IACd,OAAO,EAAE,CAAC,SAAS,CAAC;IACpB,MAAM,EAAE,CAAC,QAAQ,CAAC;IAClB,MAAM,EAAE,CAAC,QAAQ,CAAC;IAClB,GAAG,EAAE,CAAC,QAAQ,CAAC;IACf,KAAK,EAAE,CAAC,KAAK,CAAC;IACd,GAAG,EAAE,CAAC,KAAK,CAAC;IACZ,WAAW,EAAE,CAAC,aAAa,CAAC;IAC5B,IAAI,EAAE,CAAC,aAAa,CAAC;IACrB,cAAc,EAAE,CAAC,gBAAgB,CAAC;IAClC,gBAAgB,EAAE,CAAC,aAAa,CAAC;IACjC,aAAa,EAAE,CAAC,aAAa,CAAC;IAC9B,OAAO,EAAE,CAAC,SAAS,CAAC;IACpB,OAAO,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;IAChC,MAAM,EAAE,CAAC,QAAQ,CAAC;CACrB,CAAC"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: (key: "missing" | "version" | "host" | "tablets" | "cpu" | "memory" | "uptime" | "load" | "node-id" | "node-name" | "dc" | "rack" | "ram" | "pools" | "disk-usage" | "load-average" | "caches" | "sessions" | "pdisks" | "field_memory-used" | "field_memory-limit", params?: import("@gravity-ui/i18n").Params) => string;
|
1
|
+
declare const _default: (key: "missing" | "version" | "host" | "tablets" | "cpu" | "memory" | "database" | "uptime" | "load" | "node-id" | "system-state" | "node-name" | "dc" | "rack" | "ram" | "pools" | "disk-usage" | "load-average" | "caches" | "sessions" | "pdisks" | "field_memory-used" | "field_memory-limit", params?: import("@gravity-ui/i18n").Params) => string;
|
2
2
|
export default _default;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: (key: "controls_status-select-label" | "controls_service-select-label" | "controls_version-select-label" | "
|
1
|
+
declare const _default: (key: "controls_search-placeholder" | "controls_status-select-label" | "controls_service-select-label" | "controls_version-select-label" | "controls_select-placeholder" | "statistics_clusters" | "statistics_hosts" | "statistics_tenants" | "statistics_nodes" | "statistics_load" | "statistics_storage" | "tooltip_no-cluster-data" | "page_title", params?: import("@gravity-ui/i18n").Params) => string;
|
2
2
|
export default _default;
|
@@ -3,22 +3,15 @@ import React from 'react';
|
|
3
3
|
import { Breadcrumbs } from '@gravity-ui/uikit';
|
4
4
|
import { InternalLink } from '../../components/InternalLink';
|
5
5
|
import { LinkWithIcon } from '../../components/LinkWithIcon/LinkWithIcon';
|
6
|
-
import { backend, customBackend } from '../../store';
|
7
6
|
import { useClusterBaseInfo } from '../../store/reducers/cluster/cluster';
|
8
7
|
import { cn } from '../../utils/cn';
|
9
8
|
import { DEVELOPER_UI_TITLE } from '../../utils/constants';
|
9
|
+
import { createDeveloperUIInternalPageHref } from '../../utils/developerUI/developerUI';
|
10
10
|
import { useTypedSelector } from '../../utils/hooks';
|
11
11
|
import { getBreadcrumbs } from './breadcrumbs';
|
12
12
|
import './Header.scss';
|
13
13
|
const b = cn('header');
|
14
|
-
const getInternalLink = (singleClusterMode) => {
|
15
|
-
if (singleClusterMode && !customBackend) {
|
16
|
-
return `/internal`;
|
17
|
-
}
|
18
|
-
return backend + '/internal';
|
19
|
-
};
|
20
14
|
function Header({ mainPage }) {
|
21
|
-
const singleClusterMode = useTypedSelector((state) => state.singleClusterMode);
|
22
15
|
const { page, pageBreadcrumbsOptions } = useTypedSelector((state) => state.header);
|
23
16
|
const clusterInfo = useClusterBaseInfo();
|
24
17
|
const clusterName = clusterInfo.title || clusterInfo.name;
|
@@ -46,7 +39,7 @@ function Header({ mainPage }) {
|
|
46
39
|
active: isCurrent,
|
47
40
|
link: !isCurrent,
|
48
41
|
}), to: isCurrent ? undefined : link, children: [icon ? (_jsx("span", { className: b('breadcrumbs-icon'), children: icon })) : null, _jsx("span", { children: text })] }));
|
49
|
-
} }), _jsx(LinkWithIcon, { title: DEVELOPER_UI_TITLE, url:
|
42
|
+
} }), _jsx(LinkWithIcon, { title: DEVELOPER_UI_TITLE, url: createDeveloperUIInternalPageHref() })] }));
|
50
43
|
};
|
51
44
|
return renderHeader();
|
52
45
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/containers/Header/Header.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAC,YAAY,EAAC,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/containers/Header/Header.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAC,YAAY,EAAC,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAC,kBAAkB,EAAC,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAC,iCAAiC,EAAC,MAAM,qCAAqC,CAAC;AACtF,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAGnD,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAE7C,O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