ydb-embedded-ui 6.18.0 → 6.19.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/ComponentsProvider/ComponentsProvider.d.ts +2 -2
- package/dist/components/GroupInfo/GroupInfo.js +3 -3
- package/dist/components/MetricChart/reducer.d.ts +2 -2
- package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/PaginatedTable/PaginatedTable.scss +4 -0
- package/dist/components/PaginatedTable/TableChunk.js +5 -2
- package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
- package/dist/components/PaginatedTable/TableRow.js +1 -1
- package/dist/components/PaginatedTable/TableRow.js.map +1 -1
- package/dist/containers/AppWithClusters/ExtendedNode/ExtendedNode.js +4 -2
- package/dist/containers/AppWithClusters/ExtendedNode/ExtendedNode.js.map +1 -1
- package/dist/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.js +4 -3
- package/dist/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.js.map +1 -1
- package/dist/containers/AppWithClusters/useClusterData.d.ts +7 -1
- package/dist/containers/AppWithClusters/useClusterData.js +8 -8
- package/dist/containers/AppWithClusters/useClusterData.js.map +1 -1
- package/dist/containers/AsideNavigation/AsideNavigation.d.ts +3 -0
- package/dist/containers/AsideNavigation/AsideNavigation.js +6 -10
- package/dist/containers/AsideNavigation/AsideNavigation.js.map +1 -1
- package/dist/containers/AsideNavigation/Navigation.js +4 -1
- package/dist/containers/AsideNavigation/Navigation.js.map +1 -1
- package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.d.ts +3 -1
- package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js +2 -4
- package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js.map +1 -1
- package/dist/containers/Cluster/Cluster.js +5 -13
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Cluster/Cluster.scss +1 -0
- package/dist/containers/Header/Header.js +3 -7
- package/dist/containers/Header/Header.js.map +1 -1
- package/dist/containers/Node/Node.js +1 -5
- package/dist/containers/Node/Node.js.map +1 -1
- package/dist/containers/Node/NodePages.js +5 -4
- package/dist/containers/Node/NodePages.js.map +1 -1
- package/dist/containers/Node/NodeStructure/NodeStructure.js +9 -3
- package/dist/containers/Node/NodeStructure/NodeStructure.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +16 -7
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskGroups/utils.d.ts +2 -0
- package/dist/containers/PDiskPage/PDiskGroups/utils.js +14 -0
- package/dist/containers/PDiskPage/PDiskGroups/utils.js.map +1 -0
- package/dist/containers/PDiskPage/PDiskPage.js +1 -1
- package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
- package/dist/containers/Storage/Storage.js +9 -9
- package/dist/containers/Storage/Storage.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js +7 -2
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.d.ts +1 -1
- package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js +7 -20
- package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/getGroups.d.ts +3 -1
- package/dist/containers/Storage/StorageGroups/getGroups.js +27 -24
- package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js +1 -1
- package/dist/containers/Storage/utils/index.js +3 -4
- package/dist/containers/Storage/utils/index.js.map +1 -1
- package/dist/containers/Tablets/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Configs/Configs.d.ts +6 -0
- package/dist/containers/Tenant/Diagnostics/Configs/Configs.js +79 -0
- package/dist/containers/Tenant/Diagnostics/Configs/Configs.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Configs/Configs.scss +8 -0
- package/dist/containers/Tenant/Diagnostics/Configs/i18n/en.json +11 -0
- package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.js +5 -0
- package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +4 -0
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +3 -0
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +5 -0
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +21 -4
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.d.ts +2 -0
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.js +7 -0
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.js.map +1 -0
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js +8 -3
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js.map +1 -1
- package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.d.ts +7 -0
- package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.js +17 -0
- package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.js.map +1 -0
- package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.scss +9 -0
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.d.ts +5 -9
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +7 -7
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +0 -12
- package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.d.ts +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js +9 -24
- package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +0 -1
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.d.ts +4 -12
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +7 -5
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js.map +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.scss +0 -6
- package/dist/containers/Tenant/Query/ExplainResult/i18n/en.json +1 -2
- package/dist/containers/Tenant/Query/ExplainResult/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/Query.js +14 -2
- package/dist/containers/Tenant/Query/Query.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.d.ts +3 -2
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +18 -36
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
- package/dist/containers/Tenant/Query/i18n/en.json +1 -0
- package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/utils/queryTemplates.js +1 -1
- package/dist/containers/Tenant/utils/queryTemplates.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.d.ts +3 -4
- package/dist/containers/VDiskPage/VDiskPage.js +33 -10
- package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
- package/dist/containers/VDiskPage/utils.d.ts +2 -0
- package/dist/containers/VDiskPage/utils.js +7 -0
- package/dist/containers/VDiskPage/utils.js.map +1 -0
- package/dist/lib.d.ts +1 -0
- package/dist/lib.js +1 -0
- package/dist/lib.js.map +1 -1
- package/dist/services/api.d.ts +17 -10
- package/dist/services/api.js +62 -16
- package/dist/services/api.js.map +1 -1
- package/dist/services/parsers/parseMetaCluster.d.ts +14 -0
- package/dist/services/parsers/parseMetaCluster.js +17 -31
- package/dist/services/parsers/parseMetaCluster.js.map +1 -1
- package/dist/store/configureStore.d.ts +4 -4
- package/dist/store/defaultStore.d.ts +2 -2
- package/dist/store/getUrlData.js +9 -6
- package/dist/store/getUrlData.js.map +1 -1
- package/dist/store/reducers/api.d.ts +1 -1
- package/dist/store/reducers/api.js +1 -1
- package/dist/store/reducers/api.js.map +1 -1
- package/dist/store/reducers/authentication/authentication.d.ts +4 -4
- package/dist/store/reducers/cancelQuery.d.ts +2 -2
- package/dist/store/reducers/cancelQuery.js.map +1 -1
- package/dist/store/reducers/capabilities/capabilities.d.ts +6 -6
- package/dist/store/reducers/capabilities/hooks.d.ts +2 -0
- package/dist/store/reducers/capabilities/hooks.js +8 -1
- package/dist/store/reducers/capabilities/hooks.js.map +1 -1
- package/dist/store/reducers/cluster/cluster.d.ts +230 -2
- package/dist/store/reducers/cluster/cluster.js +36 -3
- package/dist/store/reducers/cluster/cluster.js.map +1 -1
- package/dist/store/reducers/cluster/utils.d.ts +1 -0
- package/dist/store/reducers/cluster/utils.js +7 -0
- package/dist/store/reducers/cluster/utils.js.map +1 -1
- package/dist/store/reducers/clusters/clusters.d.ts +2 -2
- package/dist/store/reducers/describe.d.ts +2 -2
- package/dist/store/reducers/executeQuery.d.ts +8 -4
- package/dist/store/reducers/executeQuery.js +34 -1
- package/dist/store/reducers/executeQuery.js.map +1 -1
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +2 -2
- package/dist/store/reducers/explainQuery/explainQuery.d.ts +2 -3
- package/dist/store/reducers/explainQuery/explainQuery.js +23 -2
- package/dist/store/reducers/explainQuery/explainQuery.js.map +1 -1
- package/dist/store/reducers/explainQuery/types.d.ts +1 -0
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +58 -58
- package/dist/store/reducers/heatmap.d.ts +2 -2
- package/dist/store/reducers/hotKeys/hotKeys.d.ts +2 -2
- package/dist/store/reducers/index.d.ts +3 -3
- package/dist/store/reducers/network/network.d.ts +2 -2
- package/dist/store/reducers/node/node.d.ts +3 -3
- package/dist/store/reducers/node/selectors.d.ts +1 -1
- package/dist/store/reducers/nodes/nodes.d.ts +3 -3
- package/dist/store/reducers/nodes/nodes.js +1 -2
- package/dist/store/reducers/nodes/nodes.js.map +1 -1
- package/dist/store/reducers/nodesList.d.ts +3 -3
- package/dist/store/reducers/overview/overview.d.ts +2 -2
- package/dist/store/reducers/partitions/partitions.d.ts +2 -2
- package/dist/store/reducers/pdisk/pdisk.d.ts +2 -3
- package/dist/store/reducers/pdisk/pdisk.js +1 -21
- package/dist/store/reducers/pdisk/pdisk.js.map +1 -1
- package/dist/store/reducers/pdisk/utils.d.ts +0 -3
- package/dist/store/reducers/pdisk/utils.js +0 -22
- package/dist/store/reducers/pdisk/utils.js.map +1 -1
- package/dist/store/reducers/preview.d.ts +2 -2
- package/dist/store/reducers/schema/schema.d.ts +3 -3
- package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +2 -2
- package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +2 -2
- package/dist/store/reducers/storage/requestStorageData.d.ts +5 -0
- package/dist/store/reducers/storage/requestStorageData.js +12 -0
- package/dist/store/reducers/storage/requestStorageData.js.map +1 -0
- package/dist/store/reducers/storage/selectors.js +1 -1
- package/dist/store/reducers/storage/storage.d.ts +6 -4
- package/dist/store/reducers/storage/storage.js +6 -6
- package/dist/store/reducers/storage/storage.js.map +1 -1
- package/dist/store/reducers/storage/types.d.ts +11 -23
- package/dist/store/reducers/storage/utils.d.ts +3 -2
- package/dist/store/reducers/storage/utils.js +52 -26
- package/dist/store/reducers/storage/utils.js.map +1 -1
- package/dist/store/reducers/tableData.d.ts +1 -1
- package/dist/store/reducers/tablet.d.ts +7 -7
- package/dist/store/reducers/tablets.d.ts +13 -13
- package/dist/store/reducers/tenant/constants.d.ts +1 -0
- package/dist/store/reducers/tenant/constants.js +1 -0
- package/dist/store/reducers/tenant/constants.js.map +1 -1
- package/dist/store/reducers/tenant/tenant.d.ts +5 -2
- package/dist/store/reducers/tenant/tenant.js +12 -0
- package/dist/store/reducers/tenant/tenant.js.map +1 -1
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +2 -2
- package/dist/store/reducers/tenants/selectors.d.ts +27 -27
- package/dist/store/reducers/tenants/tenants.d.ts +2 -2
- package/dist/store/reducers/topic.d.ts +44 -44
- package/dist/store/reducers/trace.d.ts +4 -5
- package/dist/store/reducers/trace.js +5 -8
- package/dist/store/reducers/trace.js.map +1 -1
- package/dist/store/reducers/vdisk/utils.d.ts +0 -2
- package/dist/store/reducers/vdisk/utils.js +0 -10
- package/dist/store/reducers/vdisk/utils.js.map +1 -1
- package/dist/store/reducers/vdisk/vdisk.d.ts +8 -5
- package/dist/store/reducers/vdisk/vdisk.js +17 -32
- package/dist/store/reducers/vdisk/vdisk.js.map +1 -1
- package/dist/store/reducers/viewSchema/viewSchema.d.ts +2 -2
- package/dist/types/api/capabilities.d.ts +1 -1
- package/dist/types/api/compute.d.ts +1 -4
- package/dist/types/api/compute.js +1 -5
- package/dist/types/api/compute.js.map +1 -1
- package/dist/types/api/featureFlags.d.ts +13 -0
- package/dist/types/api/featureFlags.js +2 -0
- package/dist/types/api/featureFlags.js.map +1 -0
- package/dist/types/api/meta.d.ts +4 -2
- package/dist/types/api/pdisk.d.ts +1 -1
- package/dist/types/api/storage.d.ts +132 -6
- package/dist/types/api/storage.js +1 -5
- package/dist/types/api/storage.js.map +1 -1
- package/dist/types/api/trace.d.ts +16 -6
- package/dist/types/api/trace.js +7 -1
- package/dist/types/api/trace.js.map +1 -1
- package/dist/types/api/vdisk.d.ts +1 -1
- package/dist/types/store/executeQuery.d.ts +25 -3
- package/dist/types/store/executeQuery.js +5 -1
- package/dist/types/store/executeQuery.js.map +1 -1
- package/dist/utils/disks/helpers.d.ts +4 -1
- package/dist/utils/disks/helpers.js +7 -1
- package/dist/utils/disks/helpers.js.map +1 -1
- package/dist/utils/monaco/yql/generateSuggestions.js +8 -3
- package/dist/utils/monaco/yql/generateSuggestions.js.map +1 -1
- package/dist/utils/storage.d.ts +2 -21
- package/dist/utils/storage.js +14 -19
- package/dist/utils/storage.js.map +1 -1
- package/package.json +1 -6
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.d.ts +0 -9
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js +0 -9
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js.map +0 -1
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.scss +0 -3
- package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +0 -4
- package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.js +0 -29
- package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.js.map +0 -1
- package/dist/store/reducers/tenantOverview/topStorageGroups/types.d.ts +0 -4
- package/dist/store/reducers/tenantOverview/topStorageGroups/types.js +0 -2
- package/dist/store/reducers/tenantOverview/topStorageGroups/types.js.map +0 -1
- package/dist/store/reducers/tenantOverview/topStorageGroups/utils.d.ts +0 -3
- package/dist/store/reducers/tenantOverview/topStorageGroups/utils.js +0 -13
- package/dist/store/reducers/tenantOverview/topStorageGroups/utils.js.map +0 -1
@@ -8,13 +8,13 @@ export declare function ComponentsProvider({ children, registry }: ComponentsPro
|
|
8
8
|
export declare function useComponent<T extends Parameters<ComponentsRegistry['get']>[0]>(id: T): ({
|
9
9
|
StaffCard: typeof import("../User/StaffCard").StaffCard;
|
10
10
|
} & {
|
11
|
-
AsideNavigation: typeof import("../../
|
11
|
+
AsideNavigation: typeof import("../../lib").AsideNavigation;
|
12
12
|
} & {
|
13
13
|
ErrorBoundary: typeof import("../ErrorBoundary/ErrorBoundary").ErrorBoundaryInner;
|
14
14
|
})[T] extends infer T_1 ? T_1 extends ({
|
15
15
|
StaffCard: typeof import("../User/StaffCard").StaffCard;
|
16
16
|
} & {
|
17
|
-
AsideNavigation: typeof import("../../
|
17
|
+
AsideNavigation: typeof import("../../lib").AsideNavigation;
|
18
18
|
} & {
|
19
19
|
ErrorBoundary: typeof import("../ErrorBoundary/ErrorBoundary").ErrorBoundaryInner;
|
20
20
|
})[T] ? T_1 extends React.ComponentType<any> ? React.ComponentType<React.PropsWithoutRef<React.ComponentProps<T_1>>> : never : never : never;
|
@@ -5,10 +5,10 @@ import { InfoViewer } from '../InfoViewer';
|
|
5
5
|
import { ProgressViewer } from '../ProgressViewer/ProgressViewer';
|
6
6
|
import { groupInfoKeyset } from './i18n';
|
7
7
|
export function GroupInfo({ data, ...infoViewerProps }) {
|
8
|
-
const {
|
8
|
+
const { GroupId, PoolName, Used, Limit, ErasureSpecies } = data;
|
9
9
|
const groupInfo = [];
|
10
|
-
if (valueIsDefined(
|
11
|
-
groupInfo.push({ label: groupInfoKeyset('group-id'), value:
|
10
|
+
if (valueIsDefined(GroupId)) {
|
11
|
+
groupInfo.push({ label: groupInfoKeyset('group-id'), value: GroupId });
|
12
12
|
}
|
13
13
|
if (valueIsDefined(PoolName)) {
|
14
14
|
groupInfo.push({ label: groupInfoKeyset('pool-name'), value: PoolName });
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import type { GetChartDataParams } from './getChartData';
|
2
2
|
export declare const chartApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../store/reducers/api")._NEVER, unknown, {}>, {
|
3
|
-
getChartData: import("@reduxjs/toolkit/query").QueryDefinition<GetChartDataParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../store/reducers/api")._NEVER, unknown, {}>, "All" | "PDiskData" | "
|
4
|
-
}, "api", "All" | "PDiskData" | "
|
3
|
+
getChartData: import("@reduxjs/toolkit/query").QueryDefinition<GetChartDataParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../store/reducers/api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("./types").PreparedMetricsData | undefined, "api">;
|
4
|
+
}, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const pDiskInfoKeyset: (key: "
|
1
|
+
export declare const pDiskInfoKeyset: (key: "path" | "space" | "type" | "state" | "yes" | "links" | "guid" | "serial-number" | "shared-with-os" | "drive-status" | "device" | "realtime" | "slots" | "log-size" | "system-size" | "developer-ui" | "pdisk-page", params?: import("@gravity-ui/i18n").Params) => string;
|
@@ -6,7 +6,10 @@ import { useAutoRefreshInterval } from '../../utils/hooks';
|
|
6
6
|
import { ResponseError } from '../Errors/ResponseError';
|
7
7
|
import { EmptyTableRow, LoadingTableRow, TableRow } from './TableRow';
|
8
8
|
const DEBOUNCE_TIMEOUT = 200;
|
9
|
-
|
9
|
+
// With original memo generic types are lost
|
10
|
+
const typedMemo = React.memo;
|
11
|
+
// Memoisation prevents chunks rerenders that could cause perfomance issues on big tables
|
12
|
+
export const TableChunk = typedMemo(function TableChunk({ id, limit, rowHeight, columns, fetchData, tableName, filters, sortParams, observer, getRowClassName, renderErrorMessage, onDataFetched, isActive, }) {
|
10
13
|
var _a;
|
11
14
|
const ref = React.useRef(null);
|
12
15
|
const [isTimeoutActive, setIsTimeoutActive] = React.useState(true);
|
@@ -76,5 +79,5 @@ export const TableChunk = ({ id, limit, rowHeight, columns, fetchData, tableName
|
|
76
79
|
// Hack to make it work in all cases
|
77
80
|
display: isActive ? 'table-row-group' : 'block',
|
78
81
|
}, children: renderContent() }));
|
79
|
-
};
|
82
|
+
});
|
80
83
|
//# sourceMappingURL=TableChunk.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TableChunk.js","sourceRoot":"","sources":["../../../src/components/PaginatedTable/TableChunk.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,YAAY,EAAC,MAAM,gCAAgC,CAAC;AAE5D,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;AACrC,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAC,aAAa,EAAE,eAAe,EAAE,QAAQ,EAAC,MAAM,YAAY,CAAC;AAGpE,MAAM,gBAAgB,GAAG,GAAG,CAAC;
|
1
|
+
{"version":3,"file":"TableChunk.js","sourceRoot":"","sources":["../../../src/components/PaginatedTable/TableChunk.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,YAAY,EAAC,MAAM,gCAAgC,CAAC;AAE5D,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;AACrC,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAC,aAAa,EAAE,eAAe,EAAE,QAAQ,EAAC,MAAM,YAAY,CAAC;AAGpE,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAE7B,4CAA4C;AAC5C,MAAM,SAAS,GAA2B,KAAK,CAAC,IAAI,CAAC;AAmBrD,yFAAyF;AACzF,MAAM,CAAC,MAAM,UAAU,GAAG,SAAS,CAAC,SAAS,UAAU,CAAO,EAC1D,EAAE,EACF,KAAK,EACL,SAAS,EACT,OAAO,EACP,SAAS,EACT,SAAS,EACT,OAAO,EACP,UAAU,EACV,QAAQ,EACR,eAAe,EACf,kB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AAE,KAAK,IAHP,KAAK,CAIZ,CACL,CAAC,CAAC;YACP,CAAC;QACL,CAAC;QAED,OAAO,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5C,KAAC,QAAQ,IAEL,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,OAAY,EACjB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,EACjB,eAAe,EAAE,eAAe,IAL3B,KAAK,CAMZ,CACL,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,UAAU,CAAC,CAAC,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG,SAAS,CAAC;IAE5E,OAAO,CACH,gBACI,GAAG,EAAE,GAAG,EACR,EAAE,EAAE,EAAE,CAAC,QAAQ,EAAE,EACjB,KAAK,EAAE;YACH,MAAM,EAAE,GAAG,WAAW,IAAI;YAC1B,+EAA+E;YAC/E,6EAA6E;YAC7E,oCAAoC;YACpC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,OAAO;SAClD,YAEA,aAAa,EAAE,GACZ,CACX,CAAC;AACN,CAAC,CAAC,CAAC"}
|
@@ -14,7 +14,7 @@ export const LoadingTableRow = ({ index, columns, height }) => {
|
|
14
14
|
return (_jsx("tr", { className: b('row', { loading: true }), children: columns.map((column) => {
|
15
15
|
var _a;
|
16
16
|
const resizeable = (_a = column.resizeable) !== null && _a !== void 0 ? _a : DEFAULT_RESIZEABLE;
|
17
|
-
return (_jsx(TableRowCell, { height: height, width: column.width, align: column.align, className: column.className, resizeable: resizeable, children: _jsx(Skeleton, { style: { width: '80%', height: '50%' } }) }, `${column.name}${index}`));
|
17
|
+
return (_jsx(TableRowCell, { height: height, width: column.width, align: column.align, className: column.className, resizeable: resizeable, children: _jsx(Skeleton, { className: b('row-skeleton'), style: { width: '80%', height: '50%' } }) }, `${column.name}${index}`));
|
18
18
|
}) }));
|
19
19
|
};
|
20
20
|
export const TableRow = ({ row, index, columns, getRowClassName, height }) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TableRow.js","sourceRoot":"","sources":["../../../src/components/PaginatedTable/TableRow.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAC,aAAa,EAAE,kBAAkB,EAAC,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAC,CAAC,EAAC,MAAM,UAAU,CAAC;AAY3B,MAAM,YAAY,GAAG,CAAC,EAClB,QAAQ,EACR,SAAS,EACT,MAAM,EACN,KAAK,EACL,KAAK,GAAG,aAAa,EACrB,UAAU,GACG,EAAE,EAAE;IACjB,OAAO,CACH,aACI,SAAS,EAAE,CAAC,CAAC,UAAU,EAAE,EAAC,KAAK,EAAE,KAAK,EAAC,EAAE,SAAS,CAAC,EACnD,KAAK,EAAE;YACH,MAAM,EAAE,GAAG,MAAM,IAAI;YACrB,KAAK,EAAE,GAAG,KAAK,IAAI;YACnB,gFAAgF;YAChF,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS;SAClD,YAEA,QAAQ,GACR,CACR,CAAC;AACN,CAAC,CAAC;AAQF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAK,EAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAA0B,EAAE,EAAE;IACrF,OAAO,CACH,aAAI,SAAS,EAAE,CAAC,CAAC,KAAK,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,YACnC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;;YACpB,MAAM,UAAU,GAAG,MAAA,MAAM,CAAC,UAAU,mCAAI,kBAAkB,CAAC;YAE3D,OAAO,CACH,KAAC,YAAY,IAET,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,CAAC,KAAK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,EAAE;IAC5E,OAAO,CACH,aAAI,SAAS,EAAE,CAAC,CAAC,KAAK,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,YAClC,aAAI,OAAO,EAAE,OAAO,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,YAC1C,QAAQ,GACR,GACJ,CACR,CAAC;AACN,CAAC,CAAC"}
|
@@ -1,7 +1,9 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import {
|
2
|
+
import { useClusterBaseInfo } from '../../../store/reducers/cluster/cluster';
|
3
|
+
import { useAdditionalNodeProps } from '../useClusterData';
|
3
4
|
export function ExtendedNode({ component: NodeComponent }) {
|
4
|
-
const {
|
5
|
+
const { balancer } = useClusterBaseInfo();
|
6
|
+
const { additionalNodesProps } = useAdditionalNodeProps({ balancer });
|
5
7
|
return _jsx(NodeComponent, { additionalNodesProps: additionalNodesProps });
|
6
8
|
}
|
7
9
|
//# sourceMappingURL=ExtendedNode.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ExtendedNode.js","sourceRoot":"","sources":["../../../../src/containers/AppWithClusters/ExtendedNode/ExtendedNode.tsx"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"ExtendedNode.js","sourceRoot":"","sources":["../../../../src/containers/AppWithClusters/ExtendedNode/ExtendedNode.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,yCAAyC,CAAC;AAE3E,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AAEzD,MAAM,UAAU,YAAY,CAAC,EAAC,SAAS,EAAE,aAAa,EAA2B;IAC7E,MAAM,EAAC,QAAQ,EAAC,GAAG,kBAAkB,EAAE,CAAC;IACxC,MAAM,EAAC,oBAAoB,EAAC,GAAG,sBAAsB,CAAC,EAAC,QAAQ,EAAC,CAAC,CAAC;IAElE,OAAO,KAAC,aAAa,IAAC,oBAAoB,EAAE,oBAAoB,GAAI,CAAC;AACzE,CAAC"}
|
@@ -1,8 +1,10 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
import { MonitoringButton } from '../../../components/MonitoringButton/MonitoringButton';
|
3
|
-
import {
|
3
|
+
import { useClusterBaseInfo } from '../../../store/reducers/cluster/cluster';
|
4
|
+
import { useAdditionalNodeProps } from '../useClusterData';
|
4
5
|
export function ExtendedTenant({ component: TenantComponent, getMonitoringLink, }) {
|
5
|
-
const {
|
6
|
+
const { balancer, monitoring } = useClusterBaseInfo();
|
7
|
+
const { additionalNodesProps } = useAdditionalNodeProps({ balancer });
|
6
8
|
const additionalTenantProps = {
|
7
9
|
getMonitoringLink: (dbName, dbType) => {
|
8
10
|
if (monitoring && dbName && dbType && getMonitoringLink) {
|
@@ -10,7 +12,6 @@ export function ExtendedTenant({ component: TenantComponent, getMonitoringLink,
|
|
10
12
|
monitoring,
|
11
13
|
dbName,
|
12
14
|
dbType,
|
13
|
-
clusterName: cluster === null || cluster === void 0 ? void 0 : cluster.Name,
|
14
15
|
});
|
15
16
|
return href ? _jsx(MonitoringButton, { href: href, visible: true }) : null;
|
16
17
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ExtendedTenant.js","sourceRoot":"","sources":["../../../../src/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,uDAAuD,CAAC;
|
1
|
+
{"version":3,"file":"ExtendedTenant.js","sourceRoot":"","sources":["../../../../src/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,uDAAuD,CAAC;AACvF,OAAO,EAAC,kBAAkB,EAAC,MAAM,yCAAyC,CAAC;AAI3E,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AAOzD,MAAM,UAAU,cAAc,CAAC,EAC3B,SAAS,EAAE,eAAe,EAC1B,iBAAiB,GACC;IAClB,MAAM,EAAC,QAAQ,EAAE,UAAU,EAAC,GAAG,kBAAkB,EAAE,CAAC;IACpD,MAAM,EAAC,oBAAoB,EAAC,GAAG,sBAAsB,CAAC,EAAC,QAAQ,EAAC,CAAC,CAAC;IAElE,MAAM,qBAAqB,GAAG;QAC1B,iBAAiB,EAAE,CAAC,MAAe,EAAE,MAAoB,EAAE,EAAE;YACzD,IAAI,UAAU,IAAI,MAAM,IAAI,MAAM,IAAI,iBAAiB,EAAE,CAAC;gBACtD,MAAM,IAAI,GAAG,iBAAiB,CAAC;oBAC3B,UAAU;oBACV,MAAM;oBACN,MAAM;iBACT,CAAC,CAAC;gBACH,OAAO,IAAI,CAAC,CAAC,CAAC,KAAC,gBAAgB,IAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC;YACzE,CAAC;YAED,OAAO,IAAI,CAAC;QAChB,CAAC;KACJ,CAAC;IAEF,OAAO,CACH,KAAC,eAAe,IACZ,qBAAqB,EAAE,qBAAqB,EAC5C,oBAAoB,EAAE,oBAAoB,GAC5C,CACL,CAAC;AACN,CAAC"}
|
@@ -1,8 +1,14 @@
|
|
1
1
|
export declare function useClusterData(): {
|
2
|
+
additionalNodesProps: import("../../types/additionalProps").AdditionalNodesProps;
|
3
|
+
useClusterBalancerAsBackend: boolean;
|
2
4
|
monitoring: string | undefined;
|
3
5
|
balancer: string | undefined;
|
4
6
|
versions: import("../../types/api/meta").MetaClusterVersion[] | undefined;
|
5
7
|
cluster: import("../../types/api/meta").MetaViewerClusterInfo | undefined;
|
6
|
-
|
8
|
+
};
|
9
|
+
export declare function useAdditionalNodeProps({ balancer }: {
|
10
|
+
balancer?: string;
|
11
|
+
}): {
|
7
12
|
additionalNodesProps: import("../../types/additionalProps").AdditionalNodesProps;
|
13
|
+
useClusterBalancerAsBackend: boolean;
|
8
14
|
};
|
@@ -1,28 +1,28 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import {
|
3
|
-
import { parseQuery } from '../../routes';
|
2
|
+
import { StringParam, useQueryParam } from 'use-query-params';
|
4
3
|
import { clustersApi } from '../../store/reducers/clusters/clusters';
|
5
4
|
import { getAdditionalNodesProps } from '../../utils/additionalProps';
|
6
5
|
import { USE_CLUSTER_BALANCER_AS_BACKEND_KEY } from '../../utils/constants';
|
7
6
|
import { useSetting } from '../../utils/hooks';
|
8
7
|
export function useClusterData() {
|
9
|
-
const
|
10
|
-
const { clusterName } = parseQuery(location);
|
8
|
+
const [clusterName] = useQueryParam('clusterName', StringParam);
|
11
9
|
const { data } = clustersApi.useGetClustersListQuery(undefined);
|
12
10
|
const info = React.useMemo(() => {
|
13
11
|
const clusters = data || [];
|
14
12
|
return clusters.find((cluster) => cluster.name === clusterName);
|
15
13
|
}, [data, clusterName]);
|
16
14
|
const { solomon: monitoring, balancer, versions, cluster } = info || {};
|
17
|
-
const [useClusterBalancerAsBackend] = useSetting(USE_CLUSTER_BALANCER_AS_BACKEND_KEY);
|
18
|
-
const additionalNodesProps = getAdditionalNodesProps(balancer, useClusterBalancerAsBackend);
|
19
15
|
return {
|
20
16
|
monitoring,
|
21
17
|
balancer,
|
22
18
|
versions,
|
23
19
|
cluster,
|
24
|
-
|
25
|
-
additionalNodesProps,
|
20
|
+
...useAdditionalNodeProps({ balancer }),
|
26
21
|
};
|
27
22
|
}
|
23
|
+
export function useAdditionalNodeProps({ balancer }) {
|
24
|
+
const [useClusterBalancerAsBackend] = useSetting(USE_CLUSTER_BALANCER_AS_BACKEND_KEY);
|
25
|
+
const additionalNodesProps = getAdditionalNodesProps(balancer, useClusterBalancerAsBackend);
|
26
|
+
return { additionalNodesProps, useClusterBalancerAsBackend };
|
27
|
+
}
|
28
28
|
//# sourceMappingURL=useClusterData.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useClusterData.js","sourceRoot":"","sources":["../../../src/containers/AppWithClusters/useClusterData.ts"],"names":[],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B;IAClE,MAAM,CAAC,2BAA2B,CAAC,GAAG,UAAU,CAAU,mCAAmC,CAAC,CAAC;IAE/F,MAAM,oBAAoB,GAAG,uBAAuB,CAAC,QAAQ,EAAE,2BAA2B,CAAC,CAAC;IAE5F,OAAO,EAAC,oBAAoB,EAAE,2BAA2B,EAAC,CAAC;AAC/D,CAAC"}
|
@@ -6,5 +6,8 @@ export interface AsideNavigationProps {
|
|
6
6
|
ydbInternalUser: JSX.Element;
|
7
7
|
menuItems?: MenuItem[];
|
8
8
|
content: React.ReactNode;
|
9
|
+
user?: {
|
10
|
+
login: string;
|
11
|
+
};
|
9
12
|
}
|
10
13
|
export declare function AsideNavigation(props: AsideNavigationProps): import("react/jsx-runtime").JSX.Element;
|
@@ -3,24 +3,23 @@ import React from 'react';
|
|
3
3
|
import { CircleQuestion, Gear, Person } from '@gravity-ui/icons';
|
4
4
|
import { AsideHeader, FooterItem } from '@gravity-ui/navigation';
|
5
5
|
import { useHistory } from 'react-router-dom';
|
6
|
-
import { selectUser } from '../../store/reducers/authentication/authentication';
|
7
6
|
import { cn } from '../../utils/cn';
|
8
7
|
import { ASIDE_HEADER_COMPACT_KEY } from '../../utils/constants';
|
9
|
-
import { useSetting
|
8
|
+
import { useSetting } from '../../utils/hooks';
|
10
9
|
import i18n from './i18n';
|
11
10
|
import userSecret from '../../assets/icons/user-secret.svg';
|
12
11
|
import ydbLogoIcon from '../../assets/icons/ydb.svg';
|
13
12
|
import './AsideNavigation.scss';
|
14
13
|
const b = cn('kv-navigation');
|
15
|
-
function
|
14
|
+
function UserDropdown({ isCompact, popupAnchor, user, children }) {
|
16
15
|
const [isUserDropdownVisible, setIsUserDropdownVisible] = React.useState(false);
|
17
|
-
const iconData =
|
16
|
+
const iconData = user ? Person : userSecret;
|
18
17
|
return (_jsx(FooterItem, { compact: isCompact, item: {
|
19
18
|
id: 'user-popup',
|
20
|
-
title:
|
19
|
+
title: (user === null || user === void 0 ? void 0 : user.login) ? user.login : i18n('navigation-item.account'),
|
21
20
|
current: isUserDropdownVisible,
|
22
21
|
icon: iconData,
|
23
|
-
onItemClick: () => setIsUserDropdownVisible(
|
22
|
+
onItemClick: () => setIsUserDropdownVisible((v) => !v),
|
24
23
|
}, enableTooltip: !isUserDropdownVisible, popupAnchor: popupAnchor, popupVisible: isUserDropdownVisible, onClosePopup: () => setIsUserDropdownVisible(false), renderPopupContent: () => _jsx("div", { className: b('ydb-user-wrapper'), children: children }) }));
|
25
24
|
}
|
26
25
|
var Panel;
|
@@ -30,7 +29,6 @@ var Panel;
|
|
30
29
|
export function AsideNavigation(props) {
|
31
30
|
const history = useHistory();
|
32
31
|
const [visiblePanel, setVisiblePanel] = React.useState();
|
33
|
-
const ydbUser = useTypedSelector(selectUser);
|
34
32
|
const [compact, setIsCompact] = useSetting(ASIDE_HEADER_COMPACT_KEY);
|
35
33
|
return (_jsx(React.Fragment, { children: _jsx(AsideHeader, { logo: {
|
36
34
|
text: 'YDB',
|
@@ -53,9 +51,7 @@ export function AsideNavigation(props) {
|
|
53
51
|
? undefined
|
54
52
|
: Panel.UserSettings);
|
55
53
|
},
|
56
|
-
}, compact: compact }), _jsx(
|
57
|
-
login: ydbUser,
|
58
|
-
}, children: props.ydbInternalUser })] })), panelItems: [
|
54
|
+
}, compact: compact }), _jsx(UserDropdown, { isCompact: compact, popupAnchor: asideRef, user: props.user, children: props.ydbInternalUser })] })), panelItems: [
|
59
55
|
{
|
60
56
|
id: 'user-settings',
|
61
57
|
visible: visiblePanel === Panel.UserSettings,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AsideNavigation.js","sourceRoot":"","sources":["../../../src/containers/AsideNavigation/AsideNavigation.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,cAAc,EAAE,IAAI,EAAE,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAC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E,CAAC,CACnC,MAAC,KAAK,CAAC,QAAQ,eACX,KAAC,UAAU,IACP,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE;4BACF,EAAE,EAAE,eAAe;4BACnB,KAAK,EAAE,IAAI,CAAC,+BAA+B,CAAC;4BAC5C,IAAI,EAAE,cAAc;4BACpB,WAAW,EAAE,GAAG,EAAE;gCACd,MAAM,CAAC,IAAI,CAAC,uBAAuB,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;4BACjE,CAAC;yBACJ,GACH,EAEF,KAAC,UAAU,IACP,IAAI,EAAE;4BACF,EAAE,EAAE,eAAe;4BACnB,KAAK,EAAE,IAAI,CAAC,0BAA0B,CAAC;4BACvC,IAAI,EAAE,IAAI;4BACV,OAAO,EAAE,YAAY,KAAK,KAAK,CAAC,YAAY;4BAC5C,WAAW,EAAE,GAAG,EAAE;gCACd,eAAe,CACX,YAAY,KAAK,KAAK,CAAC,YAAY;oCAC/B,CAAC,CAAC,SAAS;oCACX,CAAC,CAAC,KAAK,CAAC,YAAY,CAC3B,CAAC;4BACN,CAAC;yBACJ,EACD,OAAO,EAAE,OAAO,GAClB,EAEF,KAAC,YAAY,IAAC,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,YACpE,KAAK,CAAC,eAAe,GACX,IACF,CACpB,EACD,UAAU,EAAE;gBACR;oBACI,EAAE,EAAE,eAAe;oBACnB,OAAO,EAAE,YAAY,KAAK,KAAK,CAAC,YAAY;oBAC5C,OAAO,EAAE,KAAK,CAAC,QAAQ;iBAC1B;aACJ,EACD,YAAY,EAAE,GAAG,EAAE;gBACf,eAAe,CAAC,SAAS,CAAC,CAAC;YAC/B,CAAC,GACH,GACW,CACpB,CAAC;AACN,CAAC"}
|
@@ -1,9 +1,12 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
import { useComponent } from '../../components/ComponentsProvider/ComponentsProvider';
|
3
|
+
import { selectUser } from '../../store/reducers/authentication/authentication';
|
4
|
+
import { useTypedSelector } from '../../utils/hooks';
|
3
5
|
import { UserSettings } from '../UserSettings/UserSettings';
|
4
6
|
import { YdbInternalUser } from './YdbInternalUser/YdbInternalUser';
|
5
7
|
export function Navigation({ children, userSettings }) {
|
6
8
|
const AsideNavigation = useComponent('AsideNavigation');
|
7
|
-
|
9
|
+
const ydbUser = useTypedSelector(selectUser);
|
10
|
+
return (_jsx(AsideNavigation, { settings: _jsx(UserSettings, { settings: userSettings }), ydbInternalUser: _jsx(YdbInternalUser, { login: ydbUser }), user: ydbUser ? { login: ydbUser } : undefined, content: children }));
|
8
11
|
}
|
9
12
|
//# sourceMappingURL=Navigation.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Navigation.js","sourceRoot":"","sources":["../../../src/containers/AsideNavigation/Navigation.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,wDAAwD,CAAC;AACpF,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAG1D,OAAO,EAAC,eAAe,EAAC,MAAM,mCAAmC,CAAC;AAMlE,MAAM,UAAU,UAAU,CAAC,EAAC,QAAQ,EAAE,YAAY,EAAkB;IAChE,MAAM,eAAe,GAAG,YAAY,CAAC,iBAAiB,CAAC,CAAC;IAExD,OAAO,CACH,KAAC,eAAe,IACZ,QAAQ,EAAE,KAAC,YAAY,IAAC,QAAQ,EAAE,YAAY,GAAI,EAClD,eAAe,EAAE,KAAC,eAAe,
|
1
|
+
{"version":3,"file":"Navigation.js","sourceRoot":"","sources":["../../../src/containers/AsideNavigation/Navigation.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,wDAAwD,CAAC;AACpF,OAAO,EAAC,UAAU,EAAC,MAAM,oDAAoD,CAAC;AAC9E,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAG1D,OAAO,EAAC,eAAe,EAAC,MAAM,mCAAmC,CAAC;AAMlE,MAAM,UAAU,UAAU,CAAC,EAAC,QAAQ,EAAE,YAAY,EAAkB;IAChE,MAAM,eAAe,GAAG,YAAY,CAAC,iBAAiB,CAAC,CAAC;IAExD,MAAM,OAAO,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC;IAE7C,OAAO,CACH,KAAC,eAAe,IACZ,QAAQ,EAAE,KAAC,YAAY,IAAC,QAAQ,EAAE,YAAY,GAAI,EAClD,eAAe,EAAE,KAAC,eAAe,IAAC,KAAK,EAAE,OAAO,GAAI,EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAAC,KAAK,EAAE,OAAO,EAAC,CAAC,CAAC,CAAC,SAAS,EAC5C,OAAO,EAAE,QAAQ,GACnB,CACL,CAAC;AACN,CAAC"}
|
@@ -5,12 +5,10 @@ import { useHistory } from 'react-router-dom';
|
|
5
5
|
import routes, { createHref } from '../../../routes';
|
6
6
|
import { authenticationApi } from '../../../store/reducers/authentication/authentication';
|
7
7
|
import { cn } from '../../../utils/cn';
|
8
|
-
import { useTypedSelector } from '../../../utils/hooks';
|
9
8
|
import i18n from '../i18n';
|
10
9
|
import './YdbInternalUser.scss';
|
11
10
|
const b = cn('kv-ydb-internal-user');
|
12
|
-
export function YdbInternalUser() {
|
13
|
-
const { user: ydbUser } = useTypedSelector((state) => state.authentication);
|
11
|
+
export function YdbInternalUser({ login }) {
|
14
12
|
const [logout] = authenticationApi.useLogoutMutation();
|
15
13
|
const history = useHistory();
|
16
14
|
const handleLoginClick = () => {
|
@@ -19,6 +17,6 @@ export function YdbInternalUser() {
|
|
19
17
|
const handleLogout = () => {
|
20
18
|
logout(undefined);
|
21
19
|
};
|
22
|
-
return (_jsxs("div", { className: b(), children: [_jsxs("div", { className: b('user-info-wrapper'), children: [_jsx("div", { className: b('ydb-internal-user-title'), children: i18n('account.user') }),
|
20
|
+
return (_jsxs("div", { className: b(), children: [_jsxs("div", { className: b('user-info-wrapper'), children: [_jsx("div", { className: b('ydb-internal-user-title'), children: i18n('account.user') }), login && _jsx("div", { className: b('username'), children: login })] }), login ? (_jsx(Button, { view: "flat-secondary", title: i18n('account.logout'), onClick: handleLogout, children: _jsx(Icon, { data: ArrowRightFromSquare }) })) : (_jsx(Button, { view: "flat-secondary", title: i18n('account.login'), onClick: handleLoginClick, children: _jsx(Icon, { data: ArrowRightToSquare }) }))] }));
|
23
21
|
}
|
24
22
|
//# sourceMappingURL=YdbInternalUser.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"YdbInternalUser.js","sourceRoot":"","sources":["../../../../src/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,oBAAoB,EAAE,kBAAkB,EAAC,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAC,MAAM,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAE5C,OAAO,MAAM,EAAE,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAC,iBAAiB,EAAC,MAAM,uDAAuD,CAAC;AACxF,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AACrC,OAAO,
|
1
|
+
{"version":3,"file":"YdbInternalUser.js","sourceRoot":"","sources":["../../../../src/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,oBAAoB,EAAE,kBAAkB,EAAC,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAC,MAAM,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAE5C,OAAO,MAAM,EAAE,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAC,iBAAiB,EAAC,MA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AC,EAC5B,OAAO,EAAE,gBAAgB,YAEzB,KAAC,IAAI,IAAC,IAAI,EAAE,kBAAkB,GAAI,GAC7B,CACZ,IACC,CACT,CAAC;AACN,CAAC"}
|
@@ -8,10 +8,9 @@ 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 { clusterApi, updateDefaultClusterTab } from '../../store/reducers/cluster/cluster';
|
11
|
+
import { clusterApi, selectClusterTitle, updateDefaultClusterTab, } from '../../store/reducers/cluster/cluster';
|
12
12
|
import { setHeaderBreadcrumbs } from '../../store/reducers/header/header';
|
13
13
|
import { cn } from '../../utils/cn';
|
14
|
-
import { CLUSTER_DEFAULT_TITLE } from '../../utils/constants';
|
15
14
|
import { useTypedDispatch, useTypedSelector } from '../../utils/hooks';
|
16
15
|
import { parseVersionsToVersionToColorMap } from '../../utils/versions';
|
17
16
|
import { NodesWrapper } from '../Nodes/NodesWrapper';
|
@@ -23,7 +22,6 @@ import { clusterTabs, clusterTabsIds, getClusterPath, isClusterTab } from './uti
|
|
23
22
|
import './Cluster.scss';
|
24
23
|
const b = cn('cluster');
|
25
24
|
export function Cluster({ additionalClusterProps, additionalTenantsProps, additionalNodesProps, additionalVersionsProps, }) {
|
26
|
-
var _a, _b;
|
27
25
|
const container = React.useRef(null);
|
28
26
|
const dispatch = useTypedDispatch();
|
29
27
|
const activeTabId = useClusterTab();
|
@@ -31,12 +29,12 @@ export function Cluster({ additionalClusterProps, additionalTenantsProps, additi
|
|
31
29
|
clusterName: StringParam,
|
32
30
|
backend: StringParam,
|
33
31
|
});
|
32
|
+
const clusterTitle = useTypedSelector((state) => selectClusterTitle(state, clusterName !== null && clusterName !== void 0 ? clusterName : undefined));
|
34
33
|
const { data: { clusterData: cluster = {}, groupsStats } = {}, isLoading: infoLoading, error, } = clusterApi.useGetClusterInfoQuery(clusterName !== null && clusterName !== void 0 ? clusterName : undefined);
|
35
34
|
const clusterError = error && typeof error === 'object' ? error : undefined;
|
36
|
-
const { Name } = cluster;
|
37
35
|
React.useEffect(() => {
|
38
36
|
dispatch(setHeaderBreadcrumbs('cluster', {}));
|
39
|
-
}, [dispatch
|
37
|
+
}, [dispatch]);
|
40
38
|
const versionToColor = React.useMemo(() => {
|
41
39
|
if (additionalVersionsProps === null || additionalVersionsProps === void 0 ? void 0 : additionalVersionsProps.getVersionToColorMap) {
|
42
40
|
return additionalVersionsProps === null || additionalVersionsProps === void 0 ? void 0 : additionalVersionsProps.getVersionToColorMap();
|
@@ -44,24 +42,18 @@ export function Cluster({ additionalClusterProps, additionalTenantsProps, additi
|
|
44
42
|
return parseVersionsToVersionToColorMap(cluster === null || cluster === void 0 ? void 0 : cluster.Versions);
|
45
43
|
}, [additionalVersionsProps, cluster]);
|
46
44
|
const getClusterTitle = () => {
|
47
|
-
var _a;
|
48
45
|
if (infoLoading) {
|
49
46
|
return _jsx(Skeleton, { className: b('title-skeleton') });
|
50
47
|
}
|
51
|
-
return (_jsx(EntityStatus, { size: "m", status: cluster === null || cluster === void 0 ? void 0 : cluster.Overall, name:
|
48
|
+
return (_jsx(EntityStatus, { size: "m", status: cluster === null || cluster === void 0 ? void 0 : cluster.Overall, name: clusterTitle, className: b('title') }));
|
52
49
|
};
|
53
|
-
const clusterTitle = (_b = (_a = cluster === null || cluster === void 0 ? void 0 : cluster.Name) !== null && _a !== void 0 ? _a : clusterName) !== null && _b !== void 0 ? _b : CLUSTER_DEFAULT_TITLE;
|
54
50
|
const activeTab = React.useMemo(() => clusterTabs.find(({ id }) => id === activeTabId), [activeTabId]);
|
55
51
|
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('tabs'), children: _jsx(Tabs, { size: "l", allowNotSelected: true, activeTab: activeTabId, items: clusterTabs, wrapTo: ({ id }, node) => {
|
56
52
|
const path = getClusterPath(id, { clusterName, backend });
|
57
53
|
return (_jsx(InternalLink, { to: path, onClick: () => {
|
58
54
|
dispatch(updateDefaultClusterTab(id));
|
59
55
|
}, children: node }, id));
|
60
|
-
} }) }),
|
61
|
-
.pathname, children: _jsx(ClusterInfo, { cluster: cluster, groupsStats: groupsStats, versionToColor: versionToColor, loading: infoLoading, error: clusterError, additionalClusterProps: additionalClusterProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.tenants))
|
62
|
-
.pathname, children: _jsx(Tenants, { additionalTenantsProps: additionalTenantsProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.nodes)).pathname, children: _jsx(NodesWrapper, { parentContainer: container.current, additionalNodesProps: additionalNodesProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.storage))
|
63
|
-
.pathname, children: _jsx(StorageWrapper, { parentContainer: container.current, additionalNodesProps: additionalNodesProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.versions))
|
64
|
-
.pathname, children: _jsx(Versions, { versionToColor: versionToColor }) }), _jsx(Route, { render: () => (_jsx(Redirect, { to: getLocationObjectFromHref(getClusterPath(activeTabId)) })) })] })] })] }));
|
56
|
+
} }) }), _jsx("div", { className: b('sticky-wrapper'), children: _jsx(AutoRefreshControl, { className: b('auto-refresh-control') }) }), _jsxs(Switch, { children: [_jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.overview)).pathname, children: _jsx(ClusterInfo, { cluster: cluster, groupsStats: groupsStats, versionToColor: versionToColor, loading: infoLoading, error: clusterError, additionalClusterProps: additionalClusterProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.tenants)).pathname, children: _jsx(Tenants, { additionalTenantsProps: additionalTenantsProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.nodes)).pathname, children: _jsx(NodesWrapper, { parentContainer: container.current, additionalNodesProps: additionalNodesProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.storage)).pathname, children: _jsx(StorageWrapper, { parentContainer: container.current, additionalNodesProps: additionalNodesProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.versions)).pathname, children: _jsx(Versions, { versionToColor: versionToColor }) }), _jsx(Route, { render: () => (_jsx(Redirect, { to: getLocationObjectFromHref(getClusterPath(activeTabId)) })) })] })] }));
|
65
57
|
}
|
66
58
|
function useClusterTab() {
|
67
59
|
const dispatch = useTypedDispatch();
|
@@ -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,
|
1
|
+
{"version":3,"file":"Cluster.js","sourceRoot":"","sources":["../../../src/containers/Cluster/Cluster.tsx"],"names":[],"mappings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C,SAAS,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEtC,OAAO,SAAS,CAAC;AACrB,CAAC"}
|
@@ -1,12 +1,10 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import React from 'react';
|
3
3
|
import { Breadcrumbs } from '@gravity-ui/uikit';
|
4
|
-
import { get } from 'lodash';
|
5
|
-
import { StringParam, useQueryParams } from 'use-query-params';
|
6
4
|
import { InternalLink } from '../../components/InternalLink';
|
7
5
|
import { LinkWithIcon } from '../../components/LinkWithIcon/LinkWithIcon';
|
8
6
|
import { backend, customBackend } from '../../store';
|
9
|
-
import {
|
7
|
+
import { useClusterBaseInfo } from '../../store/reducers/cluster/cluster';
|
10
8
|
import { cn } from '../../utils/cn';
|
11
9
|
import { DEVELOPER_UI_TITLE } from '../../utils/constants';
|
12
10
|
import { useTypedSelector } from '../../utils/hooks';
|
@@ -20,12 +18,10 @@ const getInternalLink = (singleClusterMode) => {
|
|
20
18
|
return backend + '/internal';
|
21
19
|
};
|
22
20
|
function Header({ mainPage }) {
|
23
|
-
var _a;
|
24
|
-
const [queryParams] = useQueryParams({ clusterName: StringParam });
|
25
21
|
const singleClusterMode = useTypedSelector((state) => state.singleClusterMode);
|
26
22
|
const { page, pageBreadcrumbsOptions } = useTypedSelector((state) => state.header);
|
27
|
-
const clusterInfo =
|
28
|
-
const clusterName =
|
23
|
+
const clusterInfo = useClusterBaseInfo();
|
24
|
+
const clusterName = clusterInfo.title || clusterInfo.name;
|
29
25
|
const breadcrumbItems = React.useMemo(() => {
|
30
26
|
const rawBreadcrumbs = [];
|
31
27
|
let options = pageBreadcrumbsOptions;
|
@@ -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,CAA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C,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,aAE/B,IAAI,CAAC,CAAC,CAAC,CACJ,eAAM,SAAS,EAAE,CAAC,CAAC,kBAAkB,CAAC,YAAG,IAAI,GAAQ,CACxD,CAAC,CAAC,CAAC,IAAI,EACR,yBAAO,IAAI,GAAQ,IACR,CAClB,CAAC;oBACN,CAAC,GACH,EAEF,KAAC,YAAY,IAAC,KAAK,EAAE,kBAAkB,EAAE,GAAG,EAAE,eAAe,CAAC,iBAAiB,CAAC,GAAI,IAC/E,CACZ,CAAC;IACN,CAAC,CAAC;IACF,OAAO,YAAY,EAAE,CAAC;AAC1B,CAAC;AAED,eAAe,MAAM,CAAC"}
|
@@ -15,8 +15,7 @@ import { cn } from '../../utils/cn';
|
|
15
15
|
import { useAutoRefreshInterval, useTypedDispatch } from '../../utils/hooks';
|
16
16
|
import { StorageWrapper } from '../Storage/StorageWrapper';
|
17
17
|
import { Tablets } from '../Tablets';
|
18
|
-
import { NODE_PAGES, OVERVIEW, STORAGE,
|
19
|
-
import NodeStructure from './NodeStructure/NodeStructure';
|
18
|
+
import { NODE_PAGES, OVERVIEW, STORAGE, TABLETS } from './NodePages';
|
20
19
|
import './Node.scss';
|
21
20
|
const b = cn('node');
|
22
21
|
export const STORAGE_ROLE = 'Storage';
|
@@ -76,9 +75,6 @@ export function Node(props) {
|
|
76
75
|
case OVERVIEW: {
|
77
76
|
return _jsx(FullNodeViewer, { node: node, className: b('overview-wrapper') });
|
78
77
|
}
|
79
|
-
case STRUCTURE: {
|
80
|
-
return _jsx(NodeStructure, { className: b('node-page-wrapper'), nodeId: nodeId });
|
81
|
-
}
|
82
78
|
default:
|
83
79
|
return false;
|
84
80
|
}
|
@@ -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,mBAAm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