ydb-embedded-ui 6.16.0 → 6.17.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/ContentWithPopup/ContentWithPopup.d.ts +2 -1
- package/dist/components/ContentWithPopup/ContentWithPopup.js +9 -2
- package/dist/components/ContentWithPopup/ContentWithPopup.js.map +1 -1
- package/dist/components/ErrorBoundary/ErrorBoundary.scss +2 -0
- package/dist/components/FullNodeViewer/FullNodeViewer.js +1 -1
- package/dist/components/FullNodeViewer/FullNodeViewer.js.map +1 -1
- package/dist/components/InfoViewer/InfoViewer.d.ts +0 -1
- package/dist/components/InfoViewer/InfoViewer.js +0 -1
- package/dist/components/InfoViewer/InfoViewer.js.map +1 -1
- package/dist/components/InfoViewer/index.d.ts +1 -1
- package/dist/components/InfoViewer/index.js +1 -1
- package/dist/components/InfoViewer/index.js.map +1 -1
- package/dist/components/NodeHostWrapper/NodeHostWrapper.d.ts +2 -1
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js +2 -2
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js.map +1 -1
- package/dist/components/PaginatedTable/PaginatedTable.scss +8 -0
- package/dist/components/PaginatedTable/TableChunk.js +2 -1
- package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
- package/dist/components/PaginatedTable/TableHead.js +1 -1
- package/dist/components/PaginatedTable/TableHead.js.map +1 -1
- package/dist/components/TabletsStatistic/TabletsStatistic.d.ts +2 -2
- package/dist/components/TabletsStatistic/TabletsStatistic.js +4 -6
- package/dist/components/TabletsStatistic/TabletsStatistic.js.map +1 -1
- package/dist/components/YDBDefinitionList/YDBDefinitionList.d.ts +9 -0
- package/dist/components/YDBDefinitionList/YDBDefinitionList.js +23 -0
- package/dist/components/YDBDefinitionList/YDBDefinitionList.js.map +1 -0
- package/dist/{containers/Tenant/Info/View/View.scss → components/YDBDefinitionList/YDBDefinitionList.scss} +6 -6
- package/dist/components/YDBDefinitionList/i18n/en.json +3 -0
- package/dist/components/YDBDefinitionList/i18n/index.d.ts +2 -0
- package/dist/components/YDBDefinitionList/i18n/index.js +5 -0
- package/dist/components/YDBDefinitionList/i18n/index.js.map +1 -0
- package/dist/containers/App/Content.js +1 -7
- package/dist/containers/App/Content.js.map +1 -1
- package/dist/containers/App/appSlots.d.ts +0 -6
- package/dist/containers/App/appSlots.js +0 -1
- package/dist/containers/App/appSlots.js.map +1 -1
- package/dist/containers/Cluster/Cluster.js +4 -13
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.d.ts +3 -3
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +18 -2
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js.map +1 -1
- package/dist/containers/Header/Header.js +6 -7
- package/dist/containers/Header/Header.js.map +1 -1
- package/dist/containers/Header/breadcrumbs.js +26 -30
- package/dist/containers/Header/breadcrumbs.js.map +1 -1
- package/dist/containers/Node/Node.js +12 -6
- package/dist/containers/Node/Node.js.map +1 -1
- package/dist/containers/Node/NodePages.d.ts +2 -1
- package/dist/containers/Node/NodePages.js +2 -2
- package/dist/containers/Node/NodePages.js.map +1 -1
- package/dist/containers/Nodes/Nodes.js +1 -0
- package/dist/containers/Nodes/Nodes.js.map +1 -1
- package/dist/containers/Nodes/PaginatedNodes.js +1 -0
- package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
- package/dist/containers/Nodes/getNodesColumns.d.ts +3 -3
- package/dist/containers/Nodes/getNodesColumns.js +9 -9
- package/dist/containers/Nodes/getNodesColumns.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +2 -2
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js.map +1 -1
- package/dist/containers/Storage/Storage.js +1 -1
- package/dist/containers/Storage/Storage.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.d.ts +1 -1
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.js +1 -1
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js +2 -2
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/StorageNodes.d.ts +2 -1
- package/dist/containers/Storage/StorageNodes/StorageNodes.js +2 -2
- package/dist/containers/Storage/StorageNodes/StorageNodes.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.d.ts +1 -1
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js +4 -4
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js.map +1 -1
- package/dist/containers/Tablet/Tablet.js +33 -12
- package/dist/containers/Tablet/Tablet.js.map +1 -1
- package/dist/containers/Tablets/Tablets.d.ts +2 -1
- package/dist/containers/Tablets/Tablets.js +89 -85
- package/dist/containers/Tablets/Tablets.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +1 -1
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationInfo/AsyncReplicationInfo.js +39 -20
- package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationInfo/AsyncReplicationInfo.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorage.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorage.js.map +1 -1
- package/dist/containers/Tenant/Info/View/View.d.ts +0 -1
- package/dist/containers/Tenant/Info/View/View.js +3 -5
- package/dist/containers/Tenant/Info/View/View.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +1 -1
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +3 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/KeysView.d.ts +8 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/KeysView.js +15 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/KeysView.js.map +1 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +7 -13
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.scss +62 -3
- package/dist/containers/Tenant/Schema/SchemaViewer/columns.js +2 -20
- package/dist/containers/Tenant/Schema/SchemaViewer/columns.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/i18n/en.json +3 -2
- package/dist/containers/Tenant/Schema/SchemaViewer/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js +11 -21
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/types.d.ts +1 -2
- package/dist/containers/Tenant/Schema/SchemaViewer/utils.d.ts +3 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/utils.js +9 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/utils.js.map +1 -0
- package/dist/containers/Tenants/Tenants.js +2 -2
- package/dist/containers/Tenants/Tenants.js.map +1 -1
- package/dist/containers/UserSettings/i18n/en.json +0 -1
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.js +0 -3
- package/dist/containers/UserSettings/settings.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.d.ts +4 -0
- package/dist/containers/VDiskPage/VDiskPage.js +14 -10
- package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.scss +9 -0
- package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.d.ts +2 -2
- package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.js.map +1 -1
- package/dist/containers/Versions/NodesTable/NodesTable.d.ts +2 -2
- package/dist/containers/Versions/NodesTable/NodesTable.js.map +1 -1
- package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.d.ts +2 -2
- package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.js.map +1 -1
- package/dist/containers/Versions/Versions.js +3 -2
- package/dist/containers/Versions/Versions.js.map +1 -1
- package/dist/containers/Versions/groupNodes.d.ts +4 -4
- package/dist/containers/Versions/groupNodes.js.map +1 -1
- package/dist/containers/Versions/types.d.ts +2 -2
- package/dist/services/api.d.ts +8 -7
- package/dist/services/api.js +20 -11
- package/dist/services/api.js.map +1 -1
- package/dist/store/configureStore.d.ts +2 -2
- package/dist/store/defaultStore.d.ts +1 -1
- package/dist/store/reducers/header/types.d.ts +7 -7
- package/dist/store/reducers/heatmap.js +2 -2
- package/dist/store/reducers/heatmap.js.map +1 -1
- package/dist/store/reducers/index.d.ts +2 -2
- package/dist/store/reducers/nodes/types.d.ts +6 -0
- package/dist/store/reducers/nodes/utils.js +6 -0
- package/dist/store/reducers/nodes/utils.js.map +1 -1
- package/dist/store/reducers/tablet.d.ts +1 -0
- package/dist/store/reducers/tablet.js +3 -3
- package/dist/store/reducers/tablet.js.map +1 -1
- package/dist/store/reducers/tenants/selectors.d.ts +9 -10
- package/dist/store/reducers/tenants/selectors.js +8 -7
- package/dist/store/reducers/tenants/selectors.js.map +1 -1
- package/dist/store/reducers/vdisk/types.d.ts +1 -1
- package/dist/store/reducers/vdisk/vdisk.d.ts +1 -1
- package/dist/store/state-url-mapping.d.ts +0 -8
- package/dist/store/state-url-mapping.js +0 -8
- package/dist/store/state-url-mapping.js.map +1 -1
- package/dist/styles/mixins.scss +5 -0
- package/dist/types/api/nodes.d.ts +5 -0
- package/dist/types/api/nodes.js.map +1 -1
- package/dist/types/store/heatmap.d.ts +0 -1
- package/dist/types/store/tablets.d.ts +1 -1
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/constants.js +1 -0
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/versions/parseNodesToVersionsValues.d.ts +7 -0
- package/dist/utils/versions/parseNodesToVersionsValues.js +10 -0
- package/dist/utils/versions/parseNodesToVersionsValues.js.map +1 -1
- package/package.json +1 -1
- package/dist/containers/TabletsFilters/TabletsFilters.d.ts +0 -2
- package/dist/containers/TabletsFilters/TabletsFilters.js +0 -91
- package/dist/containers/TabletsFilters/TabletsFilters.js.map +0 -1
- package/dist/containers/TabletsFilters/TabletsFilters.scss +0 -80
- package/dist/containers/TabletsFilters/i18n/en.json +0 -3
- package/dist/containers/TabletsFilters/i18n/index.d.ts +0 -2
- package/dist/containers/TabletsFilters/i18n/index.js +0 -6
- package/dist/containers/TabletsFilters/i18n/index.js.map +0 -1
- package/dist/containers/TabletsFilters/i18n/ru.json +0 -3
- package/dist/store/reducers/clusterNodes/clusterNodes.d.ts +0 -5
- package/dist/store/reducers/clusterNodes/clusterNodes.js +0 -22
- package/dist/store/reducers/clusterNodes/clusterNodes.js.map +0 -1
- package/dist/store/reducers/tabletsFilters.d.ts +0 -44
- package/dist/store/reducers/tabletsFilters.js +0 -20
- package/dist/store/reducers/tabletsFilters.js.map +0 -1
@@ -1,3 +1,10 @@
|
|
1
|
+
import type { NodesGroup } from '../../store/reducers/nodes/types';
|
1
2
|
import type { TSystemStateInfo } from '../../types/api/nodes';
|
2
3
|
import type { VersionToColorMap, VersionValue } from '../../types/versions';
|
3
4
|
export declare const parseNodesToVersionsValues: (nodes?: TSystemStateInfo[], versionsToColor?: VersionToColorMap) => VersionValue[];
|
5
|
+
export declare function parseNodeGroupsToVersionsValues(groups: NodesGroup[], versionsToColor?: VersionToColorMap): {
|
6
|
+
title: string;
|
7
|
+
version: string;
|
8
|
+
color: string | undefined;
|
9
|
+
value: number;
|
10
|
+
}[];
|
@@ -20,4 +20,14 @@ export const parseNodesToVersionsValues = (nodes = [], versionsToColor) => {
|
|
20
20
|
};
|
21
21
|
});
|
22
22
|
};
|
23
|
+
export function parseNodeGroupsToVersionsValues(groups, versionsToColor) {
|
24
|
+
return groups.map((group) => {
|
25
|
+
return {
|
26
|
+
title: group.name,
|
27
|
+
version: group.name,
|
28
|
+
color: versionsToColor === null || versionsToColor === void 0 ? void 0 : versionsToColor.get(group.name),
|
29
|
+
value: group.count,
|
30
|
+
};
|
31
|
+
});
|
32
|
+
}
|
23
33
|
//# sourceMappingURL=parseNodesToVersionsValues.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parseNodesToVersionsValues.js","sourceRoot":"","sources":["../../../src/utils/versions/parseNodesToVersionsValues.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"parseNodesToVersionsValues.js","sourceRoot":"","sources":["../../../src/utils/versions/parseNodesToVersionsValues.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAE/C,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACtC,QAA4B,EAAE,EAC9B,eAAmC,EACrB,EAAE;IAChB,MAAM,aAAa,GAAG,KAAK,CAAC,MAAM,CAAyB,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;QACrE,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACf,IAAI,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;gBACpB,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;YAC9C,CAAC;iBAAM,CAAC;gBACJ,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;YAC1B,CAAC;QACL,CAAC;QACD,OAAO,GAAG,CAAC;IACf,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;QAC9C,OAAO;YACH,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,OAAO;YAChB,KAAK,EAAE,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,GAAG,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;YACrD,KAAK,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,GAAG;SACvD,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,MAAM,UAAU,+BAA+B,CAC3C,MAAoB,EACpB,eAAmC;IAEnC,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QACxB,OAAO;YACH,KAAK,EAAE,KAAK,CAAC,IAAI;YACjB,OAAO,EAAE,KAAK,CAAC,IAAI;YACnB,KAAK,EAAE,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC;YACvC,KAAK,EAAE,KAAK,CAAC,KAAK;SACrB,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC"}
|
package/package.json
CHANGED
@@ -1,91 +0,0 @@
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
import React from 'react';
|
3
|
-
import { Loader, Select } from '@gravity-ui/uikit';
|
4
|
-
import map from 'lodash/map';
|
5
|
-
import { Helmet } from 'react-helmet-async';
|
6
|
-
import ReactList from 'react-list';
|
7
|
-
import { ArrayParam, StringParam, useQueryParams } from 'use-query-params';
|
8
|
-
import { z } from 'zod';
|
9
|
-
import { AccessDenied } from '../../components/Errors/403';
|
10
|
-
import { ResponseError } from '../../components/Errors/ResponseError';
|
11
|
-
import { Tablet } from '../../components/Tablet';
|
12
|
-
import { setHeaderBreadcrumbs } from '../../store/reducers/header/header';
|
13
|
-
import { nodesListApi } from '../../store/reducers/nodesList';
|
14
|
-
import { tabletsApi } from '../../store/reducers/tablets';
|
15
|
-
import { getFilteredTablets } from '../../store/reducers/tabletsFilters';
|
16
|
-
import { cn } from '../../utils/cn';
|
17
|
-
import { AUTO_RELOAD_INTERVAL, CLUSTER_DEFAULT_TITLE } from '../../utils/constants';
|
18
|
-
import { useTypedDispatch, useTypedSelector } from '../../utils/hooks';
|
19
|
-
import { tabletColorToTabletState, tabletStates } from '../../utils/tablet';
|
20
|
-
import i18n from './i18n';
|
21
|
-
import './TabletsFilters.scss';
|
22
|
-
const b = cn('tablets-filters');
|
23
|
-
const stringArrayParam = z.preprocess((arg) => {
|
24
|
-
if (Array.isArray(arg)) {
|
25
|
-
return arg.filter(Boolean).sort();
|
26
|
-
}
|
27
|
-
return [];
|
28
|
-
}, z.string().array());
|
29
|
-
const stateArrayParam = z.preprocess((arg) => {
|
30
|
-
if (Array.isArray(arg)) {
|
31
|
-
return arg
|
32
|
-
.flatMap((item) => tabletColorToTabletState[item] || item)
|
33
|
-
.filter(Boolean);
|
34
|
-
}
|
35
|
-
return [];
|
36
|
-
}, z.string().array());
|
37
|
-
const CONTROL_WIDTH = 220;
|
38
|
-
const POPUP_WIDTH = 300;
|
39
|
-
export function TabletsFilters() {
|
40
|
-
var _a;
|
41
|
-
const [params, setParams] = useQueryParams({
|
42
|
-
nodeIds: ArrayParam,
|
43
|
-
type: ArrayParam,
|
44
|
-
state: ArrayParam,
|
45
|
-
path: StringParam,
|
46
|
-
clusterName: StringParam,
|
47
|
-
});
|
48
|
-
const path = (_a = params.path) !== null && _a !== void 0 ? _a : undefined;
|
49
|
-
const dispatch = useTypedDispatch();
|
50
|
-
React.useEffect(() => {
|
51
|
-
dispatch(setHeaderBreadcrumbs('tablets', {
|
52
|
-
tenantName: path,
|
53
|
-
}));
|
54
|
-
}, [dispatch, path]);
|
55
|
-
const nodeIds = stringArrayParam.parse(params.nodeIds);
|
56
|
-
const { currentData, isFetching, error } = tabletsApi.useGetTabletsInfoQuery({ nodes: nodeIds, path }, {
|
57
|
-
pollingInterval: AUTO_RELOAD_INTERVAL,
|
58
|
-
});
|
59
|
-
const { data: nodes } = nodesListApi.useGetNodesListQuery({}, { pollingInterval: AUTO_RELOAD_INTERVAL });
|
60
|
-
const loading = isFetching && currentData === undefined;
|
61
|
-
const stateFilter = stateArrayParam.parse(params.state);
|
62
|
-
const states = tabletStates.map((item) => ({ value: item, content: item }));
|
63
|
-
const typeFilter = stringArrayParam.parse(params.type);
|
64
|
-
const types = Array.from(new Set(...[map(currentData === null || currentData === void 0 ? void 0 : currentData.TabletStateInfo, (tblt) => tblt.Type)])).map((item) => ({
|
65
|
-
value: String(item),
|
66
|
-
content: item,
|
67
|
-
}));
|
68
|
-
const filteredTablets = useTypedSelector((state) => getFilteredTablets(state, { nodes: nodeIds, path }, stateFilter, typeFilter));
|
69
|
-
const renderTablet = (index, key) => (_jsx(Tablet, { tablet: filteredTablets[index], tenantName: path }, key));
|
70
|
-
const nodesForSelect = map(nodes, (node) => ({
|
71
|
-
content: node.Id,
|
72
|
-
value: String(node.Id),
|
73
|
-
data: node.Host,
|
74
|
-
}));
|
75
|
-
const renderView = () => {
|
76
|
-
if (loading) {
|
77
|
-
return (_jsx("div", { className: 'loader', children: _jsx(Loader, { size: "l" }) }));
|
78
|
-
}
|
79
|
-
if (error && typeof error === 'object' && 'status' in error && error.status === 403) {
|
80
|
-
return _jsx(AccessDenied, {});
|
81
|
-
}
|
82
|
-
return (_jsxs("div", { className: b(), children: [path ? (_jsxs("div", { className: b('tenant'), children: [_jsx("span", { className: b('label'), children: "Database: " }), " ", path] })) : null, _jsx(Filters, { nodesForSelect: nodesForSelect, nodeFilter: nodeIds, onChangeNodes: (n) => setParams({ nodeIds: n }), states: states, stateFilter: stateFilter, onChangeStates: (s) => setParams({ state: s }), types: types, typeFilter: typeFilter, onChangeTypes: (t) => setParams({ type: t }) }), error ? _jsx(ResponseError, { error: error }) : null, filteredTablets.length > 0 ? (_jsx("div", { className: b('items'), children: _jsx(ReactList, { itemRenderer: renderTablet, length: filteredTablets.length, type: "uniform" }) })) : (!error && _jsx("div", { className: b('empty-message'), children: "no tablets" }))] }));
|
83
|
-
};
|
84
|
-
return (_jsxs(React.Fragment, { children: [_jsx(Helmet, { children: _jsx("title", { children: `${i18n('page.title')} — ${path || params.clusterName || CLUSTER_DEFAULT_TITLE}` }) }), renderView()] }));
|
85
|
-
}
|
86
|
-
function Filters({ nodesForSelect, nodeFilter, onChangeNodes, states, stateFilter, onChangeStates, types, typeFilter, onChangeTypes, }) {
|
87
|
-
return (_jsxs("div", { className: b('filters'), children: [_jsx("div", { className: b('filter-wrapper'), children: _jsx(Select, { multiple: true, label: "Node ID", width: CONTROL_WIDTH, popupWidth: POPUP_WIDTH, placeholder: "All", options: nodesForSelect, value: nodeFilter, onUpdate: onChangeNodes, renderOption: (option) => {
|
88
|
-
return (_jsxs("div", { className: b('node'), children: [_jsx("div", { children: option.content }), _jsx("div", { className: b('node-meta'), title: option.data, children: option.data })] }));
|
89
|
-
}, getOptionHeight: () => 40 }) }), _jsx("div", { className: b('filter-wrapper'), children: _jsx(Select, { multiple: true, label: "multiple", width: CONTROL_WIDTH, placeholder: "All", options: states, value: stateFilter, onUpdate: onChangeStates }) }), _jsx("div", { className: b('filter-wrapper'), children: _jsx(Select, { multiple: true, label: "Types", width: CONTROL_WIDTH, placeholder: "All", options: types, value: typeFilter, onUpdate: onChangeTypes }) })] }));
|
90
|
-
}
|
91
|
-
//# sourceMappingURL=TabletsFilters.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"TabletsFilters.js","sourceRoot":"","sources":["../../../src/containers/TabletsFilters/TabletsFilters.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,MAAM,EAAE,MAAM,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,GAAG,MAAM,YAAY,CAAC;AAC7B,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,UAAU,EAAE,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAC,aAAa,EAAC,M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ACA,EAEN,cAAK,SAAS,EAAE,CAAC,CAAC,gBAAgB,CAAC,YAC/B,KAAC,MAAM,IACH,QAAQ,QACR,KAAK,EAAC,UAAU,EAChB,KAAK,EAAE,aAAa,EACpB,WAAW,EAAC,KAAK,EACjB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,WAAW,EAClB,QAAQ,EAAE,cAAc,GAC1B,GACA,EAEN,cAAK,SAAS,EAAE,CAAC,CAAC,gBAAgB,CAAC,YAC/B,KAAC,MAAM,IACH,QAAQ,QACR,KAAK,EAAC,OAAO,EACb,KAAK,EAAE,aAAa,EACpB,WAAW,EAAC,KAAK,EACjB,OAAO,EAAE,KAAK,EACd,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,aAAa,GACzB,GACA,IACJ,CACT,CAAC;AACN,CAAC"}
|
@@ -1,80 +0,0 @@
|
|
1
|
-
@import '../../styles/mixins';
|
2
|
-
|
3
|
-
.tablets-filters {
|
4
|
-
overflow: auto;
|
5
|
-
|
6
|
-
@include flex-container();
|
7
|
-
|
8
|
-
&__node {
|
9
|
-
overflow: hidden;
|
10
|
-
|
11
|
-
@include body-1-typography();
|
12
|
-
}
|
13
|
-
|
14
|
-
&__node-meta {
|
15
|
-
overflow: hidden;
|
16
|
-
|
17
|
-
white-space: nowrap;
|
18
|
-
text-overflow: ellipsis;
|
19
|
-
|
20
|
-
color: var(--g-color-text-secondary);
|
21
|
-
}
|
22
|
-
|
23
|
-
&__items {
|
24
|
-
overflow: auto;
|
25
|
-
flex: 1 1 auto;
|
26
|
-
|
27
|
-
padding: 5px 20px;
|
28
|
-
}
|
29
|
-
|
30
|
-
&__filters {
|
31
|
-
display: flex;
|
32
|
-
align-items: center;
|
33
|
-
|
34
|
-
margin: 10px 0;
|
35
|
-
padding: 0 20px;
|
36
|
-
}
|
37
|
-
|
38
|
-
&__filter-label {
|
39
|
-
margin-right: 15px;
|
40
|
-
|
41
|
-
white-space: nowrap;
|
42
|
-
}
|
43
|
-
|
44
|
-
&__filter-wrapper {
|
45
|
-
display: flex;
|
46
|
-
align-items: center;
|
47
|
-
|
48
|
-
margin-right: 15px;
|
49
|
-
}
|
50
|
-
|
51
|
-
&__filter-control {
|
52
|
-
min-width: 100px;
|
53
|
-
max-width: 200px;
|
54
|
-
margin-right: 10px;
|
55
|
-
|
56
|
-
&:last-child {
|
57
|
-
margin-right: 0;
|
58
|
-
}
|
59
|
-
}
|
60
|
-
|
61
|
-
&__tablet {
|
62
|
-
margin-bottom: 2px;
|
63
|
-
}
|
64
|
-
|
65
|
-
&__empty-message {
|
66
|
-
display: flex;
|
67
|
-
justify-content: center;
|
68
|
-
}
|
69
|
-
|
70
|
-
&__tenant {
|
71
|
-
padding: 20px 20px 10px;
|
72
|
-
}
|
73
|
-
|
74
|
-
.tablet {
|
75
|
-
display: inline-block;
|
76
|
-
|
77
|
-
line-height: 18px;
|
78
|
-
text-align: center;
|
79
|
-
}
|
80
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/containers/TabletsFilters/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,MAAM,WAAW,CAAC;AAC3B,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,0BAA0B,CAAC;AAE7C,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAE,EAAE,EAAC,CAAC,CAAC"}
|
@@ -1,5 +0,0 @@
|
|
1
|
-
import type { PreparedNodeSystemState } from '../../../utils/nodes';
|
2
|
-
export type PreparedClusterNode = PreparedNodeSystemState;
|
3
|
-
export declare const clusterNodesApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, {
|
4
|
-
getClusterNodes: import("@reduxjs/toolkit/query").QueryDefinition<any, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", PreparedNodeSystemState[] | undefined, "api">;
|
5
|
-
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import { prepareNodeSystemState } from '../../../utils/nodes';
|
2
|
-
import { api } from '../api';
|
3
|
-
export const clusterNodesApi = api.injectEndpoints({
|
4
|
-
endpoints: (builder) => ({
|
5
|
-
getClusterNodes: builder.query({
|
6
|
-
queryFn: async () => {
|
7
|
-
try {
|
8
|
-
const result = await window.api.getClusterNodes();
|
9
|
-
const { SystemStateInfo: nodes = [] } = result;
|
10
|
-
const data = nodes.map(prepareNodeSystemState);
|
11
|
-
return { data };
|
12
|
-
}
|
13
|
-
catch (error) {
|
14
|
-
return { error };
|
15
|
-
}
|
16
|
-
},
|
17
|
-
providesTags: ['All'],
|
18
|
-
}),
|
19
|
-
}),
|
20
|
-
overrideExisting: 'throw',
|
21
|
-
});
|
22
|
-
//# sourceMappingURL=clusterNodes.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"clusterNodes.js","sourceRoot":"","sources":["../../../../src/store/reducers/clusterNodes/clusterNodes.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,sBAAsB,EAAC,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAI3B,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAC,eAAe,CAAC;IAC/C,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACrB,eAAe,EAAE,OAAO,CAAC,KAAK,CAAC;YAC3B,OAAO,EAAE,KAAK,IAAI,EAAE;gBAChB,IAAI,CAAC;oBACD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC;oBAClD,MAAM,EAAC,eAAe,EAAE,KAAK,GAAG,EAAE,EAAC,GAAG,MAAM,CAAC;oBAC7C,MAAM,IAAI,GAA0B,KAAK,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;oBACtE,OAAO,EAAC,IAAI,EAAC,CAAC;gBAClB,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;YACD,YAAY,EAAE,CAAC,KAAK,CAAC;SACxB,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,CAAC,CAAC"}
|
@@ -1,44 +0,0 @@
|
|
1
|
-
import { lruMemoize } from '@reduxjs/toolkit';
|
2
|
-
import type { TTabletStateInfo } from '../../types/api/tablet';
|
3
|
-
import type { TabletsApiRequestParams } from '../../types/store/tablets';
|
4
|
-
import type { RootState } from '../defaultStore';
|
5
|
-
export declare const getFilteredTablets: ((state: {
|
6
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", "api">;
|
7
|
-
singleClusterMode: boolean;
|
8
|
-
cluster: import("./cluster/types").ClusterState;
|
9
|
-
tenant: import("./tenant/types").TenantState;
|
10
|
-
tooltip: import("../../types/store/tooltip").ITooltipState;
|
11
|
-
schema: import("./schema/types").SchemaState;
|
12
|
-
tenants: import("./tenants/types").TenantsState;
|
13
|
-
partitions: import("./partitions/types").PartitionsState;
|
14
|
-
executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
|
15
|
-
heatmap: import("../../types/store/heatmap").IHeatmapState;
|
16
|
-
settings: import("./settings/types").SettingsState;
|
17
|
-
executeTopQueries: import("./executeTopQueries/types").TopQueriesFilters;
|
18
|
-
shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
|
19
|
-
authentication: import("./authentication/types").AuthenticationState;
|
20
|
-
header: import("./header/types").HeaderState;
|
21
|
-
queryActions: import("./queryActions/types").QueryActionsState;
|
22
|
-
fullscreen: boolean;
|
23
|
-
clusters: import("./clusters/types").ClustersFilters;
|
24
|
-
}, _params: TabletsApiRequestParams, _stateFilter: string[], typeFilter: string[]) => TTabletStateInfo[]) & {
|
25
|
-
clearCache: () => void;
|
26
|
-
resultsCount: () => number;
|
27
|
-
resetResultsCount: () => void;
|
28
|
-
} & {
|
29
|
-
resultFunc: (resultFuncArgs_0: TTabletStateInfo[] | undefined, resultFuncArgs_1: string[], resultFuncArgs_2: string[]) => TTabletStateInfo[];
|
30
|
-
memoizedResultFunc: ((resultFuncArgs_0: TTabletStateInfo[] | undefined, resultFuncArgs_1: string[], resultFuncArgs_2: string[]) => TTabletStateInfo[]) & {
|
31
|
-
clearCache: () => void;
|
32
|
-
resultsCount: () => number;
|
33
|
-
resetResultsCount: () => void;
|
34
|
-
};
|
35
|
-
lastResult: () => TTabletStateInfo[];
|
36
|
-
dependencies: [(state: RootState, params: TabletsApiRequestParams) => TTabletStateInfo[] | undefined, (_: RootState, _params: TabletsApiRequestParams, stateFilter: string[]) => string[], (_: RootState, _params: TabletsApiRequestParams, _stateFilter: string[], typeFilter: string[]) => string[]];
|
37
|
-
recomputations: () => number;
|
38
|
-
resetRecomputations: () => void;
|
39
|
-
dependencyRecomputations: () => number;
|
40
|
-
resetDependencyRecomputations: () => void;
|
41
|
-
} & {
|
42
|
-
argsMemoize: typeof lruMemoize;
|
43
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
44
|
-
};
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { createSelector, lruMemoize } from '@reduxjs/toolkit';
|
2
|
-
import { shallowEqual } from 'react-redux';
|
3
|
-
import { selectGetTabletsInfo } from './tablets';
|
4
|
-
const EMPTY_ARRAY = [];
|
5
|
-
export const getFilteredTablets = createSelector((state, params) => { var _a; return (_a = selectGetTabletsInfo(state, params)) === null || _a === void 0 ? void 0 : _a.TabletStateInfo; }, (_, _params, stateFilter) => stateFilter, (_, _params, _stateFilter, typeFilter) => typeFilter, (tablets, stateFilter, typeFilter) => {
|
6
|
-
let filteredTablets = tablets !== null && tablets !== void 0 ? tablets : EMPTY_ARRAY;
|
7
|
-
if (typeFilter.length > 0) {
|
8
|
-
filteredTablets = filteredTablets === null || filteredTablets === void 0 ? void 0 : filteredTablets.filter((tblt) => typeFilter.some((filter) => tblt.Type === filter));
|
9
|
-
}
|
10
|
-
if (stateFilter.length > 0) {
|
11
|
-
filteredTablets = filteredTablets === null || filteredTablets === void 0 ? void 0 : filteredTablets.filter((tblt) => stateFilter.some((filter) => tblt.State === filter));
|
12
|
-
}
|
13
|
-
return filteredTablets.length > 0 ? filteredTablets : EMPTY_ARRAY;
|
14
|
-
}, {
|
15
|
-
argsMemoize: lruMemoize,
|
16
|
-
argsMemoizeOptions: {
|
17
|
-
equalityCheck: shallowEqual,
|
18
|
-
},
|
19
|
-
});
|
20
|
-
//# sourceMappingURL=tabletsFilters.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"tabletsFilters.js","sourceRoot":"","sources":["../../../src/store/reducers/tabletsFilters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAE,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;AAMzC,OAAO,EAAC,oBAAoB,EAAC,MAAM,WAAW,CAAC;AAE/C,MAAM,WAAW,GAAuB,EAAE,CAAC;AAE3C,MAAM,CAAC,MAAM,kBAAkB,GAAG,cAAc,CAC5C,CAAC,KAAgB,EAAE,MAA+B,EAAE,EAAE,WAClD,OAAA,MAAA,oBAAoB,CAAC,KAAK,EAAE,MAAM,CAAC,0CAAE,eAAe,CAAA,EAAA,EACxD,CAAC,CAAY,EAAE,OAAgC,EAAE,WAAqB,EAAE,EAAE,CAAC,WAAW,EACtF,CACI,CAAY,EACZ,OAAgC,EAChC,YAAsB,EACtB,UAAoB,EACtB,EAAE,CAAC,UAAU,EACf,C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