ydb-embedded-ui 6.29.3 → 6.30.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js +1 -1
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js.map +1 -1
- package/dist/components/Tablet/Tablet.d.ts +2 -2
- package/dist/components/Tablet/Tablet.js +3 -3
- package/dist/components/Tablet/Tablet.js.map +1 -1
- package/dist/components/TabletNameWrapper/TabletNameWrapper.js +1 -3
- package/dist/components/TabletNameWrapper/TabletNameWrapper.js.map +1 -1
- package/dist/components/TabletsStatistic/TabletsStatistic.d.ts +2 -3
- package/dist/components/TabletsStatistic/TabletsStatistic.js +4 -8
- package/dist/components/TabletsStatistic/TabletsStatistic.js.map +1 -1
- package/dist/components/TenantNameWrapper/TenantNameWrapper.js +1 -1
- package/dist/components/TenantNameWrapper/TenantNameWrapper.js.map +1 -1
- package/dist/components/nodesColumns/columns.js +1 -1
- package/dist/components/nodesColumns/columns.js.map +1 -1
- package/dist/containers/App/Content.js +2 -2
- package/dist/containers/App/Content.js.map +1 -1
- package/dist/containers/Cluster/Cluster.js +3 -1
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.d.ts +4 -5
- package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.js +7 -14
- package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.js.map +1 -1
- package/dist/containers/Header/breadcrumbs.js +2 -2
- package/dist/containers/Header/breadcrumbs.js.map +1 -1
- package/dist/containers/Node/Node.js +8 -6
- package/dist/containers/Node/Node.js.map +1 -1
- package/dist/containers/Node/NodePages.d.ts +7 -2
- package/dist/containers/Node/NodePages.js +4 -0
- package/dist/containers/Node/NodePages.js.map +1 -1
- package/dist/containers/Tablet/Tablet.js +4 -9
- package/dist/containers/Tablet/Tablet.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Consumers/columns/columns.js +2 -3
- package/dist/containers/Tenant/Diagnostics/Consumers/columns/columns.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +3 -4
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/CreateDirectoryDialog/CreateDirectoryDialog.js.map +1 -0
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +7 -6
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +4 -2
- package/dist/containers/Tenant/ObjectSummary/ObjectTree.js +1 -1
- package/dist/containers/Tenant/ObjectSummary/ObjectTree.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/SchemaTree/RefreshTreeButton.d.ts +1 -0
- package/dist/containers/Tenant/ObjectSummary/SchemaTree/RefreshTreeButton.js +12 -0
- package/dist/containers/Tenant/ObjectSummary/SchemaTree/RefreshTreeButton.js.map +1 -0
- package/dist/containers/Tenant/{Schema → ObjectSummary}/SchemaTree/SchemaTree.js +3 -1
- package/dist/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.js.map +1 -0
- package/dist/containers/Tenant/ObjectSummary/UpdateTreeContext.d.ts +8 -0
- package/dist/containers/Tenant/ObjectSummary/UpdateTreeContext.js +23 -0
- package/dist/containers/Tenant/ObjectSummary/UpdateTreeContext.js.map +1 -0
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.d.ts +2 -1
- package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js +10 -12
- package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js.map +1 -1
- package/dist/containers/Tenant/Tenant.js +13 -1
- package/dist/containers/Tenant/Tenant.js.map +1 -1
- package/dist/containers/Tenant/TenantPages.d.ts +1 -0
- package/dist/containers/Tenant/TenantPages.js.map +1 -1
- package/dist/containers/Tenant/utils/paneVisibilityToggleHelpers.js +6 -6
- package/dist/containers/Tenant/utils/paneVisibilityToggleHelpers.js.map +1 -1
- package/dist/routes.d.ts +11 -1
- package/dist/routes.js +6 -0
- package/dist/routes.js.map +1 -1
- package/dist/services/api.d.ts +3 -1
- package/dist/services/api.js +7 -6
- package/dist/services/api.js.map +1 -1
- package/dist/store/reducers/capabilities/capabilities.d.ts +387 -9
- package/dist/store/reducers/capabilities/capabilities.js +7 -6
- package/dist/store/reducers/capabilities/capabilities.js.map +1 -1
- package/dist/store/reducers/capabilities/hooks.d.ts +2 -0
- package/dist/store/reducers/capabilities/hooks.js +18 -3
- package/dist/store/reducers/capabilities/hooks.js.map +1 -1
- package/dist/store/reducers/executeQuery.d.ts +3 -0
- package/dist/store/reducers/executeQuery.js +18 -0
- package/dist/store/reducers/executeQuery.js.map +1 -1
- package/dist/store/reducers/pdisk/pdisk.js +1 -1
- package/dist/store/reducers/pdisk/pdisk.js.map +1 -1
- package/dist/store/reducers/trace.d.ts +1 -1
- package/dist/store/reducers/trace.js +4 -2
- package/dist/store/reducers/trace.js.map +1 -1
- package/dist/types/api/capabilities.d.ts +1 -1
- package/dist/types/store/executeQuery.d.ts +3 -2
- package/dist/types/store/executeQuery.js.map +1 -1
- package/package.json +1 -1
- package/dist/containers/Tenant/Schema/CreateDirectoryDialog/CreateDirectoryDialog.js.map +0 -1
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js.map +0 -1
- /package/dist/containers/Tenant/{Schema → ObjectSummary}/CreateDirectoryDialog/CreateDirectoryDialog.d.ts +0 -0
- /package/dist/containers/Tenant/{Schema → ObjectSummary}/CreateDirectoryDialog/CreateDirectoryDialog.js +0 -0
- /package/dist/containers/Tenant/{Schema → ObjectSummary}/CreateDirectoryDialog/CreateDirectoryDialog.scss +0 -0
- /package/dist/containers/Tenant/{Schema → ObjectSummary}/SchemaTree/SchemaTree.d.ts +0 -0
@@ -20,7 +20,7 @@ export const NodeHostWrapper = ({ node, getNodeRef, database }) => {
|
|
20
20
|
}
|
21
21
|
const nodePath = isNodeAvailable
|
22
22
|
? getDefaultNodePath(node.NodeId, {
|
23
|
-
|
23
|
+
database: database !== null && database !== void 0 ? database : node.TenantName,
|
24
24
|
})
|
25
25
|
: undefined;
|
26
26
|
return (_jsx(CellWithPopover, { disabled: !isNodeAvailable, content: _jsx(NodeEndpointsTooltipContent, { data: node, nodeHref: nodeHref }), placement: ['top', 'bottom'], behavior: PopoverBehavior.Immediate, children: _jsx(EntityStatus, { name: node.Host, status: node.SystemState, path: nodePath, hasClipboardButton: true }) }));
|
@@ -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,EAAC,+BAA+B,EAAC,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAC,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAC,eAAe,EAAC,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAC,2BAA2B,EAAC,MAAM,oBAAoB,CAAC;AAc/D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAuB,EAAE,EAAE;IAClF,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QACb,OAAO,oCAAc,CAAC;IAC1B,CAAC;IAED,MAAM,eAAe,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAEjD,IAAI,QAA4B,CAAC;IACjC,IAAI,UAAU,EAAE,CAAC;QACb,QAAQ,GAAG,UAAU,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC;IAC9C,CAAC;SAAM,IAAI,IAAI,CAAC,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AAkB,CAAC,IAAI,CAAC,MAAM,EAAE;YAC5B,QAAQ,EAAE,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,IAAI,CAAC,UAAU;SACxC,CAAC;QACJ,CAAC,CAAC,SAAS,CAAC;IAEhB,OAAO,CACH,KAAC,eAAe,IACZ,QAAQ,EAAE,CAAC,eAAe,EAC1B,OAAO,EAAE,KAAC,2BAA2B,IAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,GAAI,EACxE,SAAS,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,EAC5B,QAAQ,EAAE,eAAe,CAAC,SAAS,YAEnC,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"}
|
@@ -2,7 +2,7 @@ import type { TTabletStateInfo } from '../../types/api/tablet';
|
|
2
2
|
import './Tablet.scss';
|
3
3
|
interface TabletProps {
|
4
4
|
tablet?: TTabletStateInfo;
|
5
|
-
|
5
|
+
database?: string;
|
6
6
|
}
|
7
|
-
export declare const Tablet: ({ tablet,
|
7
|
+
export declare const Tablet: ({ tablet, database }: TabletProps) => import("react/jsx-runtime").JSX.Element;
|
8
8
|
export {};
|
@@ -8,11 +8,11 @@ import { TabletIcon } from '../TabletIcon/TabletIcon';
|
|
8
8
|
import { TabletTooltipContent } from '../TooltipsContent';
|
9
9
|
import './Tablet.scss';
|
10
10
|
const b = cn('tablet');
|
11
|
-
export const Tablet = ({ tablet = {},
|
11
|
+
export const Tablet = ({ tablet = {}, database }) => {
|
12
12
|
var _a;
|
13
|
-
const { TabletId: id
|
13
|
+
const { TabletId: id } = tablet;
|
14
14
|
const status = (_a = tablet.Overall) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
15
|
-
const tabletPath = id && getTabletPagePath(id, {
|
15
|
+
const tabletPath = id && getTabletPagePath(id, { database });
|
16
16
|
return (_jsx(ContentWithPopup, { className: b('wrapper'), content: _jsx(TabletTooltipContent, { data: tablet, className: b('popup-content') }), children: _jsx(InternalLink, { to: tabletPath, children: _jsx(TabletIcon, { className: b({ status }), text: getTabletLabel(tablet.Type) }) }) }));
|
17
17
|
};
|
18
18
|
//# sourceMappingURL=Tablet.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Tablet.js","sourceRoot":"","sources":["../../../src/components/Tablet/Tablet.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,cAAc,EAAC,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAC,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAC,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAExD,OAAO,eAAe,CAAC;AAEvB,MAAM,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC;AAOvB,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EAAC,MAAM,GAAG,EAAE,EAAE,
|
1
|
+
{"version":3,"file":"Tablet.js","sourceRoot":"","sources":["../../../src/components/Tablet/Tablet.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,cAAc,EAAC,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAC,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAC,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAExD,OAAO,eAAe,CAAC;AAEvB,MAAM,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC;AAOvB,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EAAC,MAAM,GAAG,EAAE,EAAE,QAAQ,EAAc,EAAE,EAAE;;IAC3D,MAAM,EAAC,QAAQ,EAAE,EAAE,EAAC,GAAG,MAAM,CAAC;IAC9B,MAAM,MAAM,GAAG,MAAA,MAAM,CAAC,OAAO,0CAAE,WAAW,EAAE,CAAC;IAE7C,MAAM,UAAU,GAAG,EAAE,IAAI,iBAAiB,CAAC,EAAE,EAAE,EAAC,QAAQ,EAAC,CAAC,CAAC;IAE3D,OAAO,CACH,KAAC,gBAAgB,IACb,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,EACvB,OAAO,EAAE,KAAC,oBAAoB,IAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC,GAAI,YAE9E,KAAC,YAAY,IAAC,EAAE,EAAE,UAAU,YACxB,KAAC,UAAU,IAAC,SAAS,EAAE,CAAC,CAAC,EAAC,MAAM,EAAC,CAAC,EAAE,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,GAAI,GAC9D,GACA,CACtB,CAAC;AACN,CAAC,CAAC"}
|
@@ -10,9 +10,7 @@ import { LinkWithIcon } from '../LinkWithIcon/LinkWithIcon';
|
|
10
10
|
import i18n from './i18n';
|
11
11
|
export function TabletNameWrapper({ tabletId, database }) {
|
12
12
|
const isUserAllowedToMakeChanges = useTypedSelector(selectIsUserAllowedToMakeChanges);
|
13
|
-
const tabletPath = getTabletPagePath(tabletId, {
|
14
|
-
tenantName: database,
|
15
|
-
});
|
13
|
+
const tabletPath = getTabletPagePath(tabletId, { database });
|
16
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 }) }));
|
17
15
|
}
|
18
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,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
|
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,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';
|
3
3
|
interface TabletsStatisticProps {
|
4
4
|
tablets: TTabletStateInfo[];
|
5
|
-
|
5
|
+
database: string | undefined;
|
6
6
|
nodeId: string | number;
|
7
|
-
backend?: string;
|
8
7
|
}
|
9
|
-
export declare const TabletsStatistic: ({ tablets,
|
8
|
+
export declare const TabletsStatistic: ({ tablets, database, nodeId }: TabletsStatisticProps) => import("react/jsx-runtime").JSX.Element;
|
10
9
|
export {};
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
import { Link } from 'react-router-dom';
|
3
|
-
import { TABLETS } from '../../containers/Node/NodePages';
|
4
|
-
import routes, { createHref } from '../../routes';
|
3
|
+
import { TABLETS, getDefaultNodePath } from '../../containers/Node/NodePages';
|
5
4
|
import { cn } from '../../utils/cn';
|
6
5
|
import { getTabletLabel } from '../../utils/constants';
|
7
6
|
import { mapTabletStateToColorState } from '../../utils/tablet';
|
@@ -18,16 +17,13 @@ const prepareTablets = (tablets) => {
|
|
18
17
|
});
|
19
18
|
return res.sort((x, y) => String(x.label).localeCompare(String(y.label)));
|
20
19
|
};
|
21
|
-
export const TabletsStatistic = ({ tablets = [],
|
20
|
+
export const TabletsStatistic = ({ tablets = [], database, nodeId }) => {
|
22
21
|
const renderTabletInfo = (item, index) => {
|
23
22
|
var _a;
|
24
|
-
const tabletsPath =
|
25
|
-
tenantName,
|
26
|
-
backend,
|
27
|
-
});
|
23
|
+
const tabletsPath = getDefaultNodePath(nodeId, { database }, TABLETS);
|
28
24
|
const label = `${item.label}: ${item.count}`;
|
29
25
|
const className = b('tablet', { state: (_a = item.state) === null || _a === void 0 ? void 0 : _a.toLowerCase() });
|
30
|
-
return
|
26
|
+
return (_jsx(Link, { to: tabletsPath, className: className, children: label }, index));
|
31
27
|
};
|
32
28
|
const preparedTablets = prepareTablets(tablets);
|
33
29
|
return _jsx("div", { className: b(), children: preparedTablets.map(renderTabletInfo) });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TabletsStatistic.js","sourceRoot":"","sources":["../../../src/components/TabletsStatistic/TabletsStatistic.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAC;AAEtC,OAAO,EAAC,OAAO,
|
1
|
+
{"version":3,"file":"TabletsStatistic.js","sourceRoot":"","sources":["../../../src/components/TabletsStatistic/TabletsStatistic.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAC;AAEtC,OAAO,EAAC,OAAO,EAAE,kBAAkB,EAAC,MAAM,iCAAiC,CAAC;AAE5E,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,cAAc,EAAC,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAC,0BAA0B,EAAC,MAAM,oBAAoB,CAAC;AAE9D,OAAO,yBAAyB,CAAC;AAEjC,MAAM,CAAC,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC;AAElC,MAAM,cAAc,GAAG,CAAC,OAA2B,EAAE,EAAE;IACnD,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QAC/B,OAAO;YACH,KAAK,EAAE,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC;YAClC,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,KAAK,EAAE,0BAA0B,CAAC,MAAM,CAAC,KAAK,CAAC;SAClD,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAC9E,CAAC,CAAC;AAQF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAAC,OAAO,GAAG,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAwB,EAAE,EAAE;IACxF,MAAM,gBAAgB,GAAG,CAAC,IAA+C,EAAE,KAAa,EAAE,EAAE;;QACxF,MAAM,WAAW,GAAG,kBAAkB,CAAC,MAAM,EAAE,EAAC,QAAQ,EAAC,EAAE,OAAO,CAAC,CAAC;QAEpE,MAAM,KAAK,GAAG,GAAG,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,EAAE,CAAC;QAC7C,MAAM,SAAS,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAC,KAAK,EAAE,MAAA,IAAI,CAAC,KAAK,0CAAE,WAAW,EAAE,EAAC,CAAC,CAAC;QAElE,OAAO,CACH,KAAC,IAAI,IAAC,EAAE,EAAE,WAAW,EAAc,SAAS,EAAE,SAAS,YAClD,KAAK,IADkB,KAAK,CAE1B,CACV,CAAC;IACN,CAAC,CAAC;IACF,MAAM,eAAe,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;IAEhD,OAAO,cAAK,SAAS,EAAE,CAAC,EAAE,YAAG,eAAe,CAAC,GAAG,CAAC,gBAAgB,CAAC,GAAO,CAAC;AAC9E,CAAC,CAAC"}
|
@@ -27,7 +27,7 @@ export function TenantNameWrapper({ 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
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({
|
30
|
-
|
30
|
+
database: tenant.Name,
|
31
31
|
backend,
|
32
32
|
}) }) }));
|
33
33
|
}
|
@@ -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,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAE1D,OAAO,IAAI,MAAM,QAAQ,CAAC;AAO1B,MAAM,gBAAgB,GAAG,CACrB,MAAsB,EACtB,sBAA+C,EACjD,EAAE;;IACA,IAAI,OAAO,CAAA,sBAAsB,aAAtB,sBAAsB,uBAAtB,sBAAsB,CAAE,oBAAoB,CAAA,KAAK,UAAU,EAAE,CAAC;QACrE,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,IAAI,OAAO,GAAqC,MAAA,MAAM,CAAC,kBAAkB,mCAAI,MAAM,CAAC,OAAO,CAAC;IAC5F,MAAM,OAAO,GAAG,MAAA,MAAM,CAAC,OAAO,mCAAI,MAAM,CAAC,aAAa,CAAC;IACvD,IAAI,CAAC,OAAO,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC5C,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GA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 @@ export function getTabletsColumn({ database }) {
|
|
169
169
|
width: 500,
|
170
170
|
resizeMinWidth: 500,
|
171
171
|
render: ({ row }) => {
|
172
|
-
return row.Tablets ? (_jsx(TabletsStatistic, {
|
172
|
+
return row.Tablets ? (_jsx(TabletsStatistic, { database: database !== null && database !== void 0 ? database : row.TenantName, nodeId: row.NodeId, tablets: row.Tablets })) : (EMPTY_DATA_PLACEHOLDER);
|
173
173
|
},
|
174
174
|
align: DataTable.LEFT,
|
175
175
|
sortable: false,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../src/components/nodesColumns/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAErD,OAAO,EAAC,sBAAsB,EAAC,MAAM,kCAAkC,CAAC;AAGxE,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAC,sBAAsB,EAAC,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAC,uBAAuB,EAAC,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAC,qBAAqB,EAAC,MAAM,qBAAqB,CAAC;AAE1D,OAAO,EAAC,eAAe,EAAC,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAC,eAAe,EAAC,MAAM,oCAAoC,CAAC;AAEnE,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAC,cAAc,EAAC,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAC,iBAAiB,EAAE,oBAAoB,EAAC,MAAM,aAAa,CAAC;AAGpE,MAAM,UAAU,eAAe;IAC3B,OAAO;QACH,IAAI,EAAE,iBAAiB,CAAC,MAAM;QAC9B,MAAM,EAAE,GAAG;QACX,KAAK,EAAE,EAAE;QACT,MAAM,EAA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AK,EAAE,GAAG;QACV,cAAc,EAAE,GAAG;QACnB,MAAM,EAAE,CAAC,EAAC,GAAG,EAAC,EAAE,EAAE;YACd,OAAO,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CACjB,KAAC,gBAAgB,IACb,QAAQ,EAAE,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,GAAG,CAAC,UAAU,EACpC,MAAM,EAAE,GAAG,CAAC,MAAM,EAClB,OAAO,EAAE,GAAG,CAAC,OAAO,GACtB,CACL,CAAC,CAAC,CAAC,CACA,sBAAsB,CACzB,CAAC;QACN,CAAC;QACD,KAAK,EAAE,SAAS,CAAC,IAAI;QACrB,QAAQ,EAAE,KAAK;KAClB,CAAC;AACN,CAAC;AACD,MAAM,UAAU,qBAAqB;IACjC,OAAO;QACH,IAAI,EAAE,iBAAiB,CAAC,OAAO;QAC/B,MAAM,EAAE,oBAAoB,CAAC,OAAO;QACpC,MAAM,EAAE,CAAC,EAAC,GAAG,EAAC,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO;QAC9B,KAAK,EAAE,SAAS,CAAC,MAAM;QACvB,YAAY,EAAE,SAAS,CAAC,UAAU;KACrC,CAAC;AACN,CAAC"}
|
@@ -7,7 +7,7 @@ import { LoaderWrapper } from '../../components/LoaderWrapper/LoaderWrapper';
|
|
7
7
|
import { useSlots } from '../../components/slots';
|
8
8
|
import routes from '../../routes';
|
9
9
|
import { authenticationApi } from '../../store/reducers/authentication/authentication';
|
10
|
-
import {
|
10
|
+
import { useCapabilitiesQuery } from '../../store/reducers/capabilities/hooks';
|
11
11
|
import { nodesListApi } from '../../store/reducers/nodesList';
|
12
12
|
import { cn } from '../../utils/cn';
|
13
13
|
import { lazyComponent } from '../../utils/lazyComponent';
|
@@ -116,7 +116,7 @@ function GetNodesList() {
|
|
116
116
|
return null;
|
117
117
|
}
|
118
118
|
function GetCapabilities() {
|
119
|
-
|
119
|
+
useCapabilitiesQuery();
|
120
120
|
return null;
|
121
121
|
}
|
122
122
|
function ContentWrapper(props) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../src/containers/App/Content.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAEzD,OAAO,EAAC,SAAS,EAAC,MAAM,6CAA6C,CAAC;AACtE,OAAO,EAAC,aAAa,EAAC,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAGhD,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,OAAO,EAAC,iBAAiB,EAAC,MAAM,oDAAoD,CAAC;AACrF,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../src/containers/App/Content.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAEzD,OAAO,EAAC,SAAS,EAAC,MAAM,6CAA6C,CAAC;AACtE,OAAO,EAAC,aAAa,EAAC,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAGhD,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,OAAO,EAAC,iBAAiB,EAAC,MAAM,oDAAoD,CAAC;AACrF,OAAO,EAAC,oBAAoB,EAAC,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAC,YAAY,EAAC,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,aAAa,EAAC,MAAM,2BAA2B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;AAChB,CAAC;AAED,SAAS,eAAe;IACpB,oBAAoB,EAAE,CAAC;IACvB,OAAO,IAAI,CAAC;AAChB,CAAC;AAQD,SAAS,cAAc,CAAC,KAA0B;IAC9C,MAAM,EAAC,iBAAiB,EAAE,eAAe,EAAC,GAAG,KAAK,CAAC;IAEnD,OAAO,CACH,MAAC,MAAM,eACH,KAAC,KAAK,IAAC,IAAI,EAAE,MAAM,CAAC,IAAI,YACpB,KAAC,cAAc,IAAC,QAAQ,SAAG,GACvB,EACR,KAAC,KAAK,cACF,cAAK,SAAS,EAAE,CAAC,CAAC,EAAC,QAAQ,EAAE,iBAAiB,EAAC,CAAC,YAC3C,eAAe,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAC,cAAc,KAAG,GACpD,GACF,IACH,CACZ,CAAC;AACN,CAAC;AAED,SAAS,eAAe,CAAC,KAAgB;IACrC,OAAO;QACH,eAAe,EAAE,KAAK,CAAC,cAAc,CAAC,eAAe;QACrD,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;KAC7C,CAAC;AACN,CAAC;AAED,eAAe,OAAO,CAAC,eAAe,CAAC,CAAC,cAAc,CAAC,CAAC"}
|
@@ -8,6 +8,7 @@ import { AutoRefreshControl } from '../../components/AutoRefreshControl/AutoRefr
|
|
8
8
|
import { EntityStatus } from '../../components/EntityStatus/EntityStatus';
|
9
9
|
import { InternalLink } from '../../components/InternalLink';
|
10
10
|
import routes, { getLocationObjectFromHref } from '../../routes';
|
11
|
+
import { useClusterDashboardAvailable } from '../../store/reducers/capabilities/hooks';
|
11
12
|
import { clusterApi, selectClusterTabletsWithFqdn, selectClusterTitle, updateDefaultClusterTab, } from '../../store/reducers/cluster/cluster';
|
12
13
|
import { setHeaderBreadcrumbs } from '../../store/reducers/header/header';
|
13
14
|
import { cn } from '../../utils/cn';
|
@@ -25,6 +26,7 @@ import './Cluster.scss';
|
|
25
26
|
const b = cn('ydb-cluster');
|
26
27
|
export function Cluster({ additionalClusterProps, additionalTenantsProps, additionalNodesProps, additionalVersionsProps, }) {
|
27
28
|
const container = React.useRef(null);
|
29
|
+
const isClusterDashboardAvailable = useClusterDashboardAvailable();
|
28
30
|
const dispatch = useTypedDispatch();
|
29
31
|
const activeTabId = useClusterTab();
|
30
32
|
const [{ clusterName, backend }] = useQueryParams({
|
@@ -51,7 +53,7 @@ export function Cluster({ additionalClusterProps, additionalTenantsProps, additi
|
|
51
53
|
return (_jsx(EntityStatus, { size: "m", status: cluster === null || cluster === void 0 ? void 0 : cluster.Overall, name: clusterTitle, className: b('title') }));
|
52
54
|
};
|
53
55
|
const activeTab = React.useMemo(() => clusterTabs.find(({ id }) => id === activeTabId), [activeTabId]);
|
54
|
-
return (_jsxs("div", { className: b(), ref: container, children: [_jsx(Helmet, { defaultTitle: `${clusterTitle} — YDB Monitoring`, titleTemplate: `%s — ${clusterTitle} — YDB Monitoring`, children: activeTab ? _jsx("title", { children: activeTab.title }) : null }), _jsx("div", { className: b('header'), children: getClusterTitle() }), _jsx("div", { className: b('sticky-wrapper'), children: _jsx(AutoRefreshControl, { className: b('auto-refresh-control') }) }), _jsx(ClusterDashboard, { cluster: cluster, groupStats: groupsStats, loading: infoLoading, error: clusterError || (cluster === null || cluster === void 0 ? void 0 : cluster.error) }), _jsx("div", { className: b('tabs-sticky-wrapper'), children: _jsx(Tabs, { size: "l", allowNotSelected: true, activeTab: activeTabId, items: clusterTabs, wrapTo: ({ id }, node) => {
|
56
|
+
return (_jsxs("div", { className: b(), ref: container, children: [_jsx(Helmet, { defaultTitle: `${clusterTitle} — YDB Monitoring`, titleTemplate: `%s — ${clusterTitle} — YDB Monitoring`, children: activeTab ? _jsx("title", { children: activeTab.title }) : null }), _jsx("div", { className: b('header'), children: getClusterTitle() }), _jsx("div", { className: b('sticky-wrapper'), children: _jsx(AutoRefreshControl, { className: b('auto-refresh-control') }) }), isClusterDashboardAvailable && (_jsx(ClusterDashboard, { cluster: cluster, groupStats: groupsStats, loading: infoLoading, error: clusterError || (cluster === null || cluster === void 0 ? void 0 : cluster.error) })), _jsx("div", { className: b('tabs-sticky-wrapper'), children: _jsx(Tabs, { size: "l", allowNotSelected: true, activeTab: activeTabId, items: clusterTabs, wrapTo: ({ id }, node) => {
|
55
57
|
const path = getClusterPath(id, { clusterName, backend });
|
56
58
|
return (_jsx(InternalLink, { to: path, onClick: () => {
|
57
59
|
dispatch(updateDefaultClusterTab(id));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Cluster.js","sourceRoot":"","sources":["../../../src/containers/Cluster/Cluster.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,QAAQ,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAC,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,kBAAkB,EAAC,MAAM,wDAAwD,CAAC;AAC1F,OAAO,EAAC,YAAY,EAAC,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,MAAM,EAAE,EAAC,yBAAyB,EAAC,MAAM,cAAc,CAAC;AAC/D,OAAO,EACH,UAAU,EACV,4BAA4B,EAC5B,kBAAkB,EAClB,uBAAuB,GAC1B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAC,oBAAoB,EAAC,MAAM,oCAAoC,CAAC;AAOxE,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAC,gCAAgC,EAAC,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAA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CAAC;IAC1B,IAAI,YAAY,CAAC,mBAAmB,CAAC,EAAE,CAAC;QACpC,SAAS,GAAG,mBAAmB,CAAC;IACpC,CAAC;SAAM,CAAC;QACJ,SAAS,GAAG,UAAU,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,IAAI,SAAS,KAAK,UAAU,EAAE,CAAC;YAC3B,QAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC,CAAC;QACjD,CAAC;IACL,CAAC,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEtC,OAAO,SAAS,CAAC;AACrB,CAAC"}
|
@@ -1,13 +1,12 @@
|
|
1
1
|
import type { ClusterGroupsStats } from '../../../store/reducers/cluster/types';
|
2
|
-
import type { TClusterInfo
|
2
|
+
import type { TClusterInfo } from '../../../types/api/cluster';
|
3
3
|
import type { IResponseError } from '../../../types/api/error';
|
4
4
|
import './ClusterDashboard.scss';
|
5
|
-
|
6
|
-
|
7
|
-
cluster: T;
|
5
|
+
interface ClusterDashboardProps {
|
6
|
+
cluster: TClusterInfo;
|
8
7
|
groupStats?: ClusterGroupsStats;
|
9
8
|
loading?: boolean;
|
10
9
|
error?: IResponseError | string;
|
11
10
|
}
|
12
|
-
export declare function ClusterDashboard({ cluster, ...props }: ClusterDashboardProps): import("react/jsx-runtime").JSX.Element
|
11
|
+
export declare function ClusterDashboard({ cluster, ...props }: ClusterDashboardProps): import("react/jsx-runtime").JSX.Element;
|
13
12
|
export {};
|
@@ -2,6 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Flex, Text } from '@gravity-ui/uikit';
|
3
3
|
import { ResponseError } from '../../../components/Errors/ResponseError';
|
4
4
|
import { Tags } from '../../../components/Tags';
|
5
|
+
import { isClusterInfoV2 } from '../../../types/api/cluster';
|
5
6
|
import { valueIsDefined } from '../../../utils';
|
6
7
|
import { formatNumber } from '../../../utils/dataFormatters/dataFormatters';
|
7
8
|
import i18n from '../i18n';
|
@@ -12,12 +13,6 @@ import { ClusterMetricsStorage } from './components/ClusterMetricsStorage';
|
|
12
13
|
import { b } from './shared';
|
13
14
|
import { getDCInfo, getNodesRolesInfo, getStorageGroupStats, getTotalStorageGroupsUsed, } from './utils';
|
14
15
|
import './ClusterDashboard.scss';
|
15
|
-
// fixed CPU calculation
|
16
|
-
export function isClusterInfoV5(info) {
|
17
|
-
return info
|
18
|
-
? 'Version' in info && typeof info.Version === 'number' && info.Version >= 5
|
19
|
-
: false;
|
20
|
-
}
|
21
16
|
function Amount({ value }) {
|
22
17
|
if (!valueIsDefined(value)) {
|
23
18
|
return null;
|
@@ -25,10 +20,6 @@ function Amount({ value }) {
|
|
25
20
|
return (_jsx(Text, { variant: "subheader-3", color: "secondary", children: formatNumber(value) }));
|
26
21
|
}
|
27
22
|
export function ClusterDashboard({ cluster, ...props }) {
|
28
|
-
const isSupportedClusterResponse = isClusterInfoV5(cluster);
|
29
|
-
if (!isSupportedClusterResponse) {
|
30
|
-
return null;
|
31
|
-
}
|
32
23
|
if (props.error) {
|
33
24
|
return _jsx(ResponseError, { error: props.error, className: b('error') });
|
34
25
|
}
|
@@ -39,10 +30,12 @@ function ClusterDoughnuts({ cluster, loading }) {
|
|
39
30
|
return _jsx(ClusterDashboardSkeleton, {});
|
40
31
|
}
|
41
32
|
const metricsCards = [];
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
33
|
+
if (isClusterInfoV2(cluster)) {
|
34
|
+
const { CoresUsed, NumberOfCpus, CoresTotal } = cluster;
|
35
|
+
const total = CoresTotal !== null && CoresTotal !== void 0 ? CoresTotal : NumberOfCpus;
|
36
|
+
if (valueIsDefined(CoresUsed) && valueIsDefined(total)) {
|
37
|
+
metricsCards.push(_jsx(ClusterMetricsCores, { value: CoresUsed, capacity: total }, "cores"));
|
38
|
+
}
|
46
39
|
}
|
47
40
|
const { StorageTotal, StorageUsed } = cluster;
|
48
41
|
if (valueIsDefined(StorageTotal) && valueIsDefined(StorageUsed)) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ClusterDashboard.js","sourceRoot":"","sources":["../../../../src/containers/Cluster/ClusterDashboard/ClusterDashboard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAC,aAAa,EAAC,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAC,IAAI,EAAC,MAAM,0BAA0B,CAAC;
|
1
|
+
{"version":3,"file":"ClusterDashboard.js","sourceRoot":"","sources":["../../../../src/containers/Cluster/ClusterDashboard/ClusterDashboard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAC,aAAa,EAAC,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAC,IAAI,EAAC,MAAM,0BAA0B,CAAC;AAE9C,OAAO,EAAC,eAAe,EAAC,MAAM,4BAA4B,CAAC;AAG3D,OAAO,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAC,YAAY,EAAC,MAAM,8CAA8C,CAAC;AAC1E,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,EAAC,wBAAwB,EAAE,kBAAkB,EAAC,MAAM,iCAAiC,CAAC;AAC7F,OAAO,EAAC,mBAAmB,EAAC,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAC,oBAAoB,EAAC,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAC,qBAAqB,EAAC,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAC,CAAC,EAAC,MAAM,UAAU,CAAC;AAC3B,OAAO,EACH,SAAS,EACT,iBAAiB,EACjB,oBAAoB,EACpB,yBAAyB,GAC5B,MAAM,SAAS,CAAC;AAEjB,OAAO,yBAAyB,CAAC;AAMjC,SAAS,MAAM,CAA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I,EAAE,WAAW,EAAE,GAAG,EAAE,CAAC,GAAI,IAChC,IAJuB,OAAO,CAKpB,CACxB,CAAC;IACN,CAAC;IAED,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;QAClB,KAAK,CAAC,IAAI,CACN,KAAC,kBAAkB,IAAC,IAAI,EAAC,GAAG,EAAe,KAAK,EAAE,IAAI,CAAC,iBAAiB,CAAC,YACrE,KAAC,MAAM,IAAC,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,GAAI,IADN,SAAS,CAErB,CACxB,CAAC;IACN,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC"}
|
@@ -29,7 +29,7 @@ const getTenantBreadcrumbs = (options, query = {}) => {
|
|
29
29
|
const { tenantName } = options;
|
30
30
|
const breadcrumbs = getClusterBreadcrumbs(options, query);
|
31
31
|
const text = tenantName ? prepareTenantName(tenantName) : headerKeyset('breadcrumbs.tenant');
|
32
|
-
const link = tenantName ? getTenantPath({ ...query,
|
32
|
+
const link = tenantName ? getTenantPath({ ...query, database: tenantName }) : undefined;
|
33
33
|
const lastItem = { text, link, icon: _jsx(DatabaseIcon, {}) };
|
34
34
|
breadcrumbs.push(lastItem);
|
35
35
|
return breadcrumbs;
|
@@ -47,7 +47,7 @@ const getNodeBreadcrumbs = (options, query = {}) => {
|
|
47
47
|
const lastItem = {
|
48
48
|
text,
|
49
49
|
link: nodeId
|
50
|
-
? getDefaultNodePath(nodeId, { tenantName, ...query }, nodeActiveTab)
|
50
|
+
? getDefaultNodePath(nodeId, { database: tenantName, ...query }, nodeActiveTab)
|
51
51
|
: undefined,
|
52
52
|
icon: getNodeIcon(nodeRole),
|
53
53
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"breadcrumbs.js","sourceRoot":"","sources":["../../../src/containers/Header/breadcrumbs.tsx"],"names":[],"mappings":";AAAA,OAAO,EACH,UAAU,IAAI,WAAW,EACzB,GAAG,IAAI,eAAe,EACtB,QAA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,KAAK,EAAE,mBAAmB;IAC1B,YAAY,EAAE,0BAA0B;CAClC,CAAC;AAEX,MAAM,CAAC,MAAM,cAAc,GAAG,CAC1B,IAAU,EACV,OAA2B,EAC3B,iBAAsC,EAAE,EACxC,KAAK,GAAG,EAAE,EACZ,EAAE;IACA,IAAI,CAAC,IAAI,EAAE,CAAC;QACR,OAAO,cAAc,CAAC;IAC1B,CAAC;IAED,MAAM,MAAM,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IAErC,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAE/C,OAAO,CAAC,GAAG,cAAc,EAAE,GAAG,eAAe,CAAC,CAAC;AACnD,CAAC,CAAC"}
|
@@ -2,13 +2,14 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
3
3
|
import { Tabs } from '@gravity-ui/uikit';
|
4
4
|
import { Helmet } from 'react-helmet-async';
|
5
|
-
import { Link,
|
5
|
+
import { Link, useRouteMatch } from 'react-router-dom';
|
6
|
+
import { useQueryParams } from 'use-query-params';
|
6
7
|
import { AutoRefreshControl } from '../../components/AutoRefreshControl/AutoRefreshControl';
|
7
8
|
import { BasicNodeViewer } from '../../components/BasicNodeViewer';
|
8
9
|
import { ResponseError } from '../../components/Errors/ResponseError';
|
9
10
|
import { FullNodeViewer } from '../../components/FullNodeViewer/FullNodeViewer';
|
10
11
|
import { Loader } from '../../components/Loader';
|
11
|
-
import routes
|
12
|
+
import routes from '../../routes';
|
12
13
|
import { useCapabilitiesLoaded, useDiskPagesAvailable, } from '../../store/reducers/capabilities/hooks';
|
13
14
|
import { setHeaderBreadcrumbs } from '../../store/reducers/header/header';
|
14
15
|
import { nodeApi } from '../../store/reducers/node/node';
|
@@ -16,7 +17,7 @@ import { cn } from '../../utils/cn';
|
|
16
17
|
import { useAutoRefreshInterval, useTypedDispatch } from '../../utils/hooks';
|
17
18
|
import { StorageWrapper } from '../Storage/StorageWrapper';
|
18
19
|
import { Tablets } from '../Tablets';
|
19
|
-
import { NODE_PAGES, OVERVIEW, STORAGE, STRUCTURE, TABLETS } from './NodePages';
|
20
|
+
import { NODE_PAGES, OVERVIEW, STORAGE, STRUCTURE, TABLETS, getDefaultNodePath, nodePageQueryParams, } from './NodePages';
|
20
21
|
import NodeStructure from './NodeStructure/NodeStructure';
|
21
22
|
import './Node.scss';
|
22
23
|
const b = cn('node');
|
@@ -25,10 +26,9 @@ export function Node(props) {
|
|
25
26
|
var _a, _b, _c;
|
26
27
|
const container = React.useRef(null);
|
27
28
|
const dispatch = useTypedDispatch();
|
28
|
-
const location = useLocation();
|
29
29
|
const match = (_a = useRouteMatch(routes.node)) !== null && _a !== void 0 ? _a : Object.create(null);
|
30
30
|
const { id: nodeId, activeTab } = match.params;
|
31
|
-
const {
|
31
|
+
const [{ database: tenantNameFromQuery }] = useQueryParams(nodePageQueryParams);
|
32
32
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
33
33
|
const { currentData, isFetching, error } = nodeApi.useGetNodeInfoQuery({ nodeId }, { pollingInterval: autoRefreshInterval });
|
34
34
|
const loading = isFetching && currentData === undefined;
|
@@ -69,7 +69,9 @@ export function Node(props) {
|
|
69
69
|
}));
|
70
70
|
}, [dispatch, tenantName, nodeId, nodeRole]);
|
71
71
|
const renderTabs = () => {
|
72
|
-
return (_jsxs("div", { className: b('tabs'), children: [_jsx(Tabs, { size: "l", items: nodeTabs, activeTab: activeTabVerified.id, wrapTo: ({ id }, tabNode) => (_jsx(Link, { to:
|
72
|
+
return (_jsxs("div", { className: b('tabs'), children: [_jsx(Tabs, { size: "l", items: nodeTabs, activeTab: activeTabVerified.id, wrapTo: ({ id }, tabNode) => (_jsx(Link, { to: getDefaultNodePath(nodeId, {
|
73
|
+
database: tenantName,
|
74
|
+
}, id), className: b('tab'), children: tabNode }, id)), allowNotSelected: true }), _jsx(AutoRefreshControl, {})] }));
|
73
75
|
};
|
74
76
|
const renderTabContent = () => {
|
75
77
|
switch (activeTabVerified.id) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Node.js","sourceRoot":"","sources":["../../../src/containers/Node/Node.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,IAAI,EAAE,
|
1
|
+
{"version":3,"file":"Node.js","sourceRoot":"","sources":["../../../src/containers/Node/Node.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,IAAI,EAAE,aAAa,EAAC,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAEhD,OAAO,EAAC,kBAAkB,EAAC,MAAM,wDAAwD,CAAC;AAC1F,OAAO,EAAC,eAAe,EAAC,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,cAAc,EAAC,MAAM,gDAAgD,CAAC;AAC9E,OAAO,EAAC,MAAM,EAAC,MAAM,yBAAyB,CAAC;AAC/C,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EACH,qBAAqB,EACrB,qBAAqB,GACxB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAC,oBAAoB,EAAC,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAC,OAAO,EAAC,MAAM,gCAAgC,CAAC;AAEvD,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,sBAAsB,EAAE,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EA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E,CAAC,CAAC,QAAQ,CAAC,GACxB,EACD,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,GAAI,CAAC,CAAC,CAAC,IAAI,EACrE,UAAU,EAAE,EACb,cAAK,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,YAAG,gBAAgB,EAAE,GAAO,IACtD,CACT,CAAC;IACN,CAAC;IAED,IAAI,KAAK,EAAE,CAAC;QACR,OAAO,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC;IAC3C,CAAC;IAED,OAAO,cAAK,SAAS,EAAC,OAAO,6BAAmB,CAAC;AACrD,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { QueryParamsTypeFromQueryObject } from '../../routes';
|
2
2
|
export declare const STORAGE = "storage";
|
3
3
|
export declare const TABLETS = "tablets";
|
4
4
|
export declare const OVERVIEW = "overview";
|
@@ -8,4 +8,9 @@ export declare const NODE_PAGES: {
|
|
8
8
|
id: string;
|
9
9
|
name: string;
|
10
10
|
}[];
|
11
|
-
export declare
|
11
|
+
export declare const nodePageQueryParams: {
|
12
|
+
database: import("use-query-params").QueryParamConfig<string | null | undefined, string | null | undefined>;
|
13
|
+
};
|
14
|
+
type NodePageQuery = QueryParamsTypeFromQueryObject<typeof nodePageQueryParams>;
|
15
|
+
export declare function getDefaultNodePath(nodeId: string | number, query?: NodePageQuery, activeTab?: NodeTab): string;
|
16
|
+
export {};
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { StringParam } from 'use-query-params';
|
1
2
|
import routes, { createHref } from '../../routes';
|
2
3
|
export const STORAGE = 'storage';
|
3
4
|
export const TABLETS = 'tablets';
|
@@ -21,6 +22,9 @@ export const NODE_PAGES = [
|
|
21
22
|
name: 'Tablets',
|
22
23
|
},
|
23
24
|
];
|
25
|
+
export const nodePageQueryParams = {
|
26
|
+
database: StringParam,
|
27
|
+
};
|
24
28
|
export function getDefaultNodePath(nodeId, query = {}, activeTab = OVERVIEW) {
|
25
29
|
return createHref(routes.node, {
|
26
30
|
id: nodeId,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NodePages.js","sourceRoot":"","sources":["../../../src/containers/Node/NodePages.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"NodePages.js","sourceRoot":"","sources":["../../../src/containers/Node/NodePages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAG7C,OAAO,MAAM,EAAE,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAEhD,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;AACjC,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;AACjC,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC;AACnC,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAC;AAIrC,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB;QACI,EAAE,EAAE,QAAQ;QACZ,IAAI,EAAE,UAAU;KACnB;IACD;QACI,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,SAAS;KAClB;IACD;QACI,EAAE,EAAE,SAAS;QACb,IAAI,EAAE,WAAW;KACpB;IACD;QACI,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,SAAS;KAClB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,QAAQ,EAAE,WAAW;CACxB,CAAC;AAIF,MAAM,UAAU,kBAAkB,CAC9B,MAAuB,EACvB,QAAuB,EAAE,EACzB,YAAqB,QAAQ;IAE7B,OAAO,UAAU,CACb,MAAM,CAAC,IAAI,EACX;QACI,EAAE,EAAE,MAAM;QACV,SAAS;KACZ,EACD,KAAK,CACR,CAAC;AACN,CAAC"}
|