ydb-embedded-ui 6.6.1 → 6.8.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/package.json +31 -30
- package/dist/src/components/InfoViewer/InfoViewer.d.ts +1 -1
- package/dist/src/components/InfoViewer/InfoViewer.js +2 -1
- package/dist/src/components/InfoViewer/i18n/en.json +2 -1
- package/dist/src/components/InfoViewer/i18n/index.d.ts +1 -1
- package/dist/src/components/InfoViewer/i18n/index.js +1 -2
- package/dist/src/containers/App/App.d.ts +1 -1
- package/dist/src/containers/App/Content.js +1 -1
- package/dist/src/containers/App/appSlots.d.ts +1 -1
- package/dist/src/containers/AppWithClusters/AppWithClusters.js +1 -1
- package/dist/src/containers/AsideNavigation/Navigation.js +1 -3
- package/dist/src/containers/AsideNavigation/i18n/en.json +0 -2
- package/dist/src/containers/AsideNavigation/i18n/index.d.ts +1 -1
- package/dist/src/containers/AsideNavigation/i18n/index.js +1 -2
- package/dist/src/containers/Cluster/i18n/index.d.ts +1 -1
- package/dist/src/containers/Clusters/constants.d.ts +1 -1
- package/dist/src/containers/Header/Header.js +17 -21
- package/dist/src/containers/Header/Header.scss +14 -5
- package/dist/src/containers/Header/breadcrumbs.js +65 -71
- package/dist/src/containers/Heatmap/Heatmap.js +3 -3
- package/dist/src/containers/Nodes/Nodes.js +4 -4
- package/dist/src/containers/Nodes/VirtualNodes.js +2 -2
- package/dist/src/containers/Storage/Storage.js +2 -2
- package/dist/src/containers/Storage/StorageGroups/getStorageGroupsColumns.js +4 -3
- package/dist/src/containers/Tablets/Tablets.js +8 -8
- package/dist/src/containers/TabletsFilters/TabletsFilters.d.ts +2 -57
- package/dist/src/containers/TabletsFilters/TabletsFilters.js +70 -180
- package/dist/src/containers/Tenant/Acl/Acl.d.ts +3 -1
- package/dist/src/containers/Tenant/Acl/Acl.js +85 -69
- package/dist/src/containers/Tenant/Acl/Acl.scss +14 -9
- package/dist/src/containers/Tenant/Diagnostics/Autorefresh/AutorefreshControl.js +4 -5
- package/dist/src/containers/Tenant/Diagnostics/Consumers/Consumers.js +3 -3
- package/dist/src/containers/Tenant/Diagnostics/Describe/Describe.d.ts +2 -2
- package/dist/src/containers/Tenant/Diagnostics/Describe/Describe.js +5 -6
- package/dist/src/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.d.ts +1 -0
- package/dist/src/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.js +3 -5
- package/dist/src/containers/Tenant/Diagnostics/Diagnostics.d.ts +2 -0
- package/dist/src/containers/Tenant/Diagnostics/Diagnostics.js +26 -50
- package/dist/src/containers/Tenant/Diagnostics/Diagnostics.scss +1 -1
- package/dist/src/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +19 -58
- package/dist/src/containers/Tenant/Diagnostics/Network/Network.d.ts +2 -2
- package/dist/src/containers/Tenant/Diagnostics/Network/Network.js +5 -5
- package/dist/src/containers/Tenant/Diagnostics/Overview/AsyncReplicationInfo/AsyncReplicationInfo.js +1 -6
- package/dist/src/containers/Tenant/Diagnostics/Overview/ChangefeedInfo/ChangefeedInfo.d.ts +2 -1
- package/dist/src/containers/Tenant/Diagnostics/Overview/ChangefeedInfo/ChangefeedInfo.js +3 -8
- package/dist/src/containers/Tenant/Diagnostics/Overview/Overview.d.ts +2 -2
- package/dist/src/containers/Tenant/Diagnostics/Overview/Overview.js +19 -21
- package/dist/src/containers/Tenant/Diagnostics/Overview/TableInfo/TableInfo.js +3 -3
- package/dist/src/containers/Tenant/Diagnostics/Overview/TableInfo/TableInfo.scss +0 -2
- package/dist/src/containers/Tenant/Diagnostics/Overview/TopicInfo/TopicInfo.d.ts +2 -1
- package/dist/src/containers/Tenant/Diagnostics/Overview/TopicInfo/TopicInfo.js +3 -8
- package/dist/src/containers/Tenant/Diagnostics/Overview/TopicStats/TopicStats.d.ts +3 -1
- package/dist/src/containers/Tenant/Diagnostics/Overview/TopicStats/TopicStats.js +5 -5
- package/dist/src/containers/Tenant/Diagnostics/Partitions/Partitions.js +4 -12
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/Healthcheck.scss +48 -57
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckDetails.d.ts +2 -5
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckDetails.js +7 -2
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.d.ts +1 -6
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.js +22 -16
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/MetricsCards/MetricsCards.d.ts +2 -8
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/MetricsCards/MetricsCards.js +2 -2
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TenantCpu.d.ts +2 -2
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TenantCpu.js +2 -2
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.d.ts +2 -2
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +4 -4
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.d.ts +2 -2
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +4 -4
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.d.ts +2 -2
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +4 -4
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.d.ts +2 -1
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.js +5 -5
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantDashboard/TenantDashboard.js +3 -3
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TenantMemory.d.ts +2 -2
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TenantMemory.js +2 -2
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.d.ts +2 -2
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +4 -4
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +7 -9
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +3 -3
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopTables.js +3 -3
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/useHealthcheck.js +1 -1
- package/dist/src/containers/Tenant/Diagnostics/TopQueries/TopQueries.d.ts +2 -2
- package/dist/src/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +5 -5
- package/dist/src/containers/Tenant/Diagnostics/TopShards/TopShards.d.ts +3 -2
- package/dist/src/containers/Tenant/Diagnostics/TopShards/TopShards.js +8 -8
- package/dist/src/containers/Tenant/EntityTitle/EntityTitle.d.ts +6 -0
- package/dist/src/containers/Tenant/EntityTitle/EntityTitle.js +11 -0
- package/dist/src/containers/Tenant/Info/ExternalDataSource/ExternalDataSource.js +0 -6
- package/dist/src/containers/Tenant/Info/ExternalTable/ExternalTable.js +0 -6
- package/dist/src/containers/Tenant/Info/View/View.js +0 -6
- package/dist/src/containers/Tenant/ObjectGeneral/ObjectGeneral.d.ts +2 -1
- package/dist/src/containers/Tenant/ObjectGeneral/ObjectGeneral.js +7 -13
- package/dist/src/containers/Tenant/ObjectSummary/ObjectSummary.d.ts +4 -4
- package/dist/src/containers/Tenant/ObjectSummary/ObjectSummary.js +159 -63
- package/dist/src/containers/Tenant/Query/Issues/Issues.js +6 -5
- package/dist/src/containers/Tenant/Query/Preview/Preview.d.ts +2 -1
- package/dist/src/containers/Tenant/Query/Preview/Preview.js +6 -6
- package/dist/src/containers/Tenant/Query/Query.d.ts +1 -0
- package/dist/src/containers/Tenant/Query/Query.scss +1 -1
- package/dist/src/containers/Tenant/Query/QueryEditor/QueryEditor.d.ts +2 -0
- package/dist/src/containers/Tenant/Query/QueryEditor/QueryEditor.js +9 -22
- package/dist/src/containers/Tenant/Query/i18n/en.json +1 -1
- package/dist/src/containers/Tenant/Schema/SchemaTree/SchemaTree.d.ts +1 -0
- package/dist/src/containers/Tenant/Schema/SchemaTree/SchemaTree.js +11 -19
- package/dist/src/containers/Tenant/Schema/SchemaViewer/SchemaViewer.d.ts +2 -2
- package/dist/src/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +13 -8
- package/dist/src/containers/Tenant/Schema/SchemaViewer/columns.d.ts +2 -1
- package/dist/src/containers/Tenant/Schema/SchemaViewer/columns.js +21 -2
- package/dist/src/containers/Tenant/Schema/SchemaViewer/i18n/en.json +1 -0
- package/dist/src/containers/Tenant/Schema/SchemaViewer/i18n/index.d.ts +1 -1
- package/dist/src/containers/Tenant/Schema/SchemaViewer/prepareData.js +2 -1
- package/dist/src/containers/Tenant/Schema/SchemaViewer/types.d.ts +1 -0
- package/dist/src/containers/Tenant/Tenant.js +20 -36
- package/dist/src/containers/Tenant/Tenant.scss +4 -0
- package/dist/src/containers/Tenant/TenantNavigation/TenantNavigation.d.ts +2 -0
- package/dist/src/containers/Tenant/TenantNavigation/TenantNavigation.js +19 -0
- package/dist/src/containers/Tenant/TenantNavigation/TenantNavigation.scss +18 -0
- package/dist/src/containers/Tenant/TenantNavigation/useTenantNavigation.d.ts +9 -0
- package/dist/src/containers/Tenant/TenantNavigation/useTenantNavigation.js +44 -0
- package/dist/src/containers/Tenant/i18n/en.json +22 -1
- package/dist/src/containers/Tenant/i18n/index.d.ts +1 -1
- package/dist/src/containers/Tenant/utils/index.d.ts +1 -0
- package/dist/src/containers/Tenant/utils/index.js +6 -0
- package/dist/src/containers/Tenant/utils/queryTemplates.d.ts +4 -0
- package/dist/src/containers/Tenant/utils/queryTemplates.js +32 -0
- package/dist/src/containers/Tenant/utils/schemaActions.js +18 -2
- package/dist/src/containers/UserSettings/Setting.d.ts +7 -9
- package/dist/src/containers/UserSettings/Setting.js +13 -28
- package/dist/src/containers/UserSettings/UserSettings.d.ts +0 -2
- package/dist/src/containers/UserSettings/UserSettings.js +3 -6
- package/dist/src/containers/UserSettings/i18n/en.json +2 -2
- package/dist/src/containers/UserSettings/settings.js +3 -3
- package/dist/src/lib.d.ts +1 -1
- package/dist/src/lib.js +1 -1
- package/dist/src/routes.d.ts +1 -1
- package/dist/src/routes.js +3 -1
- package/dist/src/services/api.d.ts +6 -1
- package/dist/src/services/api.js +24 -3
- package/dist/src/services/settings.d.ts +1 -0
- package/dist/src/services/settings.js +3 -2
- package/dist/src/store/configureStore.d.ts +36 -134
- package/dist/src/store/configureStore.js +2 -15
- package/dist/src/store/defaultStore.d.ts +17 -81
- package/dist/src/store/reducers/api.js +0 -1
- package/dist/src/store/reducers/authentication/authentication.d.ts +51 -243
- package/dist/src/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +196 -849
- package/dist/src/store/reducers/healthcheckInfo/healthcheckInfo.js +3 -3
- package/dist/src/store/reducers/hotKeys/hotKeys.d.ts +6 -25
- package/dist/src/store/reducers/hotKeys/hotKeys.js +36 -49
- package/dist/src/store/reducers/index.d.ts +23 -100
- package/dist/src/store/reducers/index.js +0 -8
- package/dist/src/store/reducers/node/selectors.d.ts +0 -40
- package/dist/src/store/reducers/nodesList.d.ts +0 -40
- package/dist/src/store/reducers/schema/schema.d.ts +13 -149
- package/dist/src/store/reducers/schema/schema.js +45 -90
- package/dist/src/store/reducers/schema/types.d.ts +2 -21
- package/dist/src/store/reducers/schemaAcl/schemaAcl.d.ts +8 -135
- package/dist/src/store/reducers/schemaAcl/schemaAcl.js +18 -44
- package/dist/src/store/reducers/settings/settings.d.ts +17 -23
- package/dist/src/store/reducers/settings/settings.js +40 -33
- package/dist/src/store/reducers/settings/types.d.ts +1 -12
- package/dist/src/store/reducers/tablets.d.ts +288 -41
- package/dist/src/store/reducers/tablets.js +8 -4
- package/dist/src/store/reducers/tabletsFilters.d.ts +11 -164
- package/dist/src/store/reducers/tabletsFilters.js +14 -76
- package/dist/src/store/reducers/tenants/selectors.d.ts +8 -362
- package/dist/src/store/reducers/topic.d.ts +0 -600
- package/dist/src/store/state-url-mapping.js +0 -3
- package/dist/src/styles/mixins.scss +5 -0
- package/dist/src/styles/themes.scss +1 -1
- package/dist/src/types/api/acl.d.ts +2 -1
- package/dist/src/types/api/schema/schema.d.ts +5 -0
- package/dist/src/utils/constants.d.ts +1 -1
- package/dist/src/utils/constants.js +1 -1
- package/dist/src/utils/dataFormatters/dataFormatters.d.ts +2 -1
- package/dist/src/utils/dataFormatters/dataFormatters.js +7 -3
- package/dist/src/utils/hooks/index.d.ts +1 -0
- package/dist/src/utils/hooks/index.js +1 -0
- package/dist/src/utils/hooks/useAutoRefreshInterval.d.ts +1 -0
- package/dist/src/utils/hooks/useAutoRefreshInterval.js +5 -0
- package/dist/src/utils/utils.js +2 -1
- package/package.json +31 -30
- package/dist/src/components/InfoViewer/i18n/ru.json +0 -4
- package/dist/src/components/InfoViewer/schemaOverview/CDCStreamOverview.d.ts +0 -6
- package/dist/src/components/InfoViewer/schemaOverview/CDCStreamOverview.js +0 -17
- package/dist/src/components/InfoViewer/schemaOverview/PersQueueGroupOverview.d.ts +0 -6
- package/dist/src/components/InfoViewer/schemaOverview/PersQueueGroupOverview.js +0 -20
- package/dist/src/components/InfoViewer/schemaOverview/index.d.ts +0 -2
- package/dist/src/components/InfoViewer/schemaOverview/index.js +0 -2
- package/dist/src/containers/AsideNavigation/i18n/ru.json +0 -10
- package/dist/src/containers/AsideNavigation/useNavigationMenuItems.d.ts +0 -2
- package/dist/src/containers/AsideNavigation/useNavigationMenuItems.js +0 -54
- package/dist/src/containers/UserSettings/UserSettings.scss +0 -9
- package/dist/src/store/reducers/host.d.ts +0 -130
- package/dist/src/store/reducers/host.js +0 -26
- package/dist/src/store/reducers/hotKeys/types.d.ts +0 -10
- package/dist/src/store/reducers/hotKeys/types.js +0 -1
- package/dist/src/store/reducers/schemaAcl/types.d.ts +0 -12
- package/dist/src/store/reducers/schemaAcl/types.js +0 -1
- package/dist/src/types/store/host.d.ts +0 -15
- package/dist/src/types/store/host.js +0 -1
@@ -1,10 +1,7 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
import { Settings } from '@gravity-ui/navigation';
|
3
|
-
import {
|
4
|
-
import { Setting, SettingsInfoField } from './Setting';
|
3
|
+
import { Setting } from './Setting';
|
5
4
|
import { settings } from './settings';
|
6
|
-
import './UserSettings.scss';
|
7
|
-
export const b = cn('ydb-user-settings');
|
8
5
|
export const UserSettings = ({ settings: userSettings = settings }) => {
|
9
6
|
return (_jsx(Settings, { children: userSettings.map((page) => {
|
10
7
|
const { id, title, icon, sections = [] } = page;
|
@@ -12,9 +9,9 @@ export const UserSettings = ({ settings: userSettings = settings }) => {
|
|
12
9
|
const { title: sectionTitle, settings: sectionSettings = [] } = section;
|
13
10
|
return (_jsx(Settings.Section, { title: sectionTitle, children: sectionSettings.map((setting) => {
|
14
11
|
if (setting.type === 'info') {
|
15
|
-
return (_jsx(
|
12
|
+
return (_jsx(Settings.Item, Object.assign({}, setting, { children: setting.content }), setting.title));
|
16
13
|
}
|
17
|
-
return _jsx(Setting, Object.assign({}, setting), setting.
|
14
|
+
return (_jsx(Settings.Item, Object.assign({}, setting, { children: _jsx(Setting, Object.assign({}, setting)) }), setting.title));
|
18
15
|
}) }, id));
|
19
16
|
}) }, id));
|
20
17
|
}) }));
|
@@ -22,10 +22,10 @@
|
|
22
22
|
"settings.binaryDataInPlainTextDisplay.description": "Available starting from version 24.1",
|
23
23
|
"settings.invertedDisks.title": "Inverted disks space indicators",
|
24
24
|
"settings.useNodesEndpoint.title": "Break the Nodes tab in Diagnostics",
|
25
|
-
"settings.useNodesEndpoint.popover": "Use /viewer/json/nodes endpoint for Nodes
|
25
|
+
"settings.useNodesEndpoint.popover": "Use /viewer/json/nodes endpoint for Nodes tab in diagnostics. It could return incorrect data on versions before 24-1",
|
26
26
|
"settings.useVirtualTables.title": "Use table with data load on scroll for Nodes and Storage tabs",
|
27
27
|
"settings.useVirtualTables.popover": "It will increase performance, but could work unstable",
|
28
28
|
"settings.queryUseMultiSchema.title": "Allow queries with multiple result sets",
|
29
|
-
"settings.queryUseMultiSchema.popover": "Use 'multi' schema for queries
|
29
|
+
"settings.queryUseMultiSchema.popover": "Use 'multi' schema for queries. It enables queries with multiple result sets. It returns nothing on versions 23-3 and older",
|
30
30
|
"settings.about.interfaceVersionInfoField.title": "Interface version"
|
31
31
|
}
|
@@ -57,17 +57,17 @@ export const invertedDisksSetting = {
|
|
57
57
|
export const useNodesEndpointSetting = {
|
58
58
|
settingKey: USE_NODES_ENDPOINT_IN_DIAGNOSTICS_KEY,
|
59
59
|
title: i18n('settings.useNodesEndpoint.title'),
|
60
|
-
|
60
|
+
description: i18n('settings.useNodesEndpoint.popover'),
|
61
61
|
};
|
62
62
|
export const useVirtualTables = {
|
63
63
|
settingKey: USE_BACKEND_PARAMS_FOR_TABLES_KEY,
|
64
64
|
title: i18n('settings.useVirtualTables.title'),
|
65
|
-
|
65
|
+
description: i18n('settings.useVirtualTables.popover'),
|
66
66
|
};
|
67
67
|
export const queryUseMultiSchemaSetting = {
|
68
68
|
settingKey: QUERY_USE_MULTI_SCHEMA_KEY,
|
69
69
|
title: i18n('settings.queryUseMultiSchema.title'),
|
70
|
-
|
70
|
+
description: i18n('settings.queryUseMultiSchema.popover'),
|
71
71
|
};
|
72
72
|
export const enableAutocompleteSetting = {
|
73
73
|
settingKey: ENABLE_AUTOCOMPLETE,
|
package/dist/src/lib.d.ts
CHANGED
@@ -6,7 +6,7 @@ export { default as appRoutes } from './routes';
|
|
6
6
|
export { createApi, YdbEmbeddedAPI, YdbWebVersionAPI } from './services/api';
|
7
7
|
export { settingsManager } from './services/settings';
|
8
8
|
export { settings as userSettings } from './containers/UserSettings/settings';
|
9
|
-
export {
|
9
|
+
export { setSettingValue, getSettingValue } from './store/reducers/settings/settings';
|
10
10
|
export { componentsRegistry } from './components/ComponentsProvider/componentsRegistry';
|
11
11
|
export { useSetting, useTypedSelector } from './utils/hooks';
|
12
12
|
export { getMonitoringLink, getMonitoringClusterLink } from './utils/monitoring';
|
package/dist/src/lib.js
CHANGED
@@ -6,7 +6,7 @@ export { default as appRoutes } from './routes';
|
|
6
6
|
export { createApi, YdbEmbeddedAPI, YdbWebVersionAPI } from './services/api';
|
7
7
|
export { settingsManager } from './services/settings';
|
8
8
|
export { settings as userSettings } from './containers/UserSettings/settings';
|
9
|
-
export {
|
9
|
+
export { setSettingValue, getSettingValue } from './store/reducers/settings/settings';
|
10
10
|
export { componentsRegistry } from './components/ComponentsProvider/componentsRegistry';
|
11
11
|
export { useSetting, useTypedSelector } from './utils/hooks';
|
12
12
|
export { getMonitoringLink, getMonitoringClusterLink } from './utils/monitoring';
|
package/dist/src/routes.d.ts
CHANGED
@@ -20,7 +20,7 @@ declare const routes: {
|
|
20
20
|
};
|
21
21
|
export default routes;
|
22
22
|
export declare const parseQuery: (location: Location) => qs.ParsedQs;
|
23
|
-
export type Query =
|
23
|
+
export type Query = AnyRecord;
|
24
24
|
export declare function createHref(route: string, params?: Record<string, string | number>, query?: Query): string;
|
25
25
|
export declare const createExternalUILink: (query?: {}) => string;
|
26
26
|
export declare function getLocationObjectFromHref(href: string): {
|
package/dist/src/routes.js
CHANGED
@@ -50,7 +50,9 @@ export function createHref(route, params, query = {}) {
|
|
50
50
|
if (clusterName && !isClusterNameInQuery && webVersion) {
|
51
51
|
extendedQuery = Object.assign(Object.assign({}, extendedQuery), { clusterName });
|
52
52
|
}
|
53
|
-
const search = isEmpty(extendedQuery)
|
53
|
+
const search = isEmpty(extendedQuery)
|
54
|
+
? ''
|
55
|
+
: `?${qs.stringify(extendedQuery, { encode: false, arrayFormat: 'repeat' })}`;
|
54
56
|
const preparedRoute = prepareRoute(route);
|
55
57
|
return `${compile(preparedRoute)(params)}${search}`;
|
56
58
|
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import AxiosWrapper from '@gravity-ui/axios-wrapper';
|
2
|
+
import type { AxiosWrapperOptions } from '@gravity-ui/axios-wrapper';
|
2
3
|
import type { ComputeApiRequestParams, NodesApiRequestParams } from '../store/reducers/nodes/types';
|
3
4
|
import type { StorageApiRequestParams } from '../store/reducers/storage/types';
|
4
5
|
import type { TMetaInfo } from '../types/api/acl';
|
@@ -31,6 +32,7 @@ type AxiosOptions = {
|
|
31
32
|
signal?: AbortSignal;
|
32
33
|
};
|
33
34
|
export declare class YdbEmbeddedAPI extends AxiosWrapper {
|
35
|
+
constructor(options?: AxiosWrapperOptions);
|
34
36
|
getPath(path: string): string;
|
35
37
|
getClusterInfo(clusterName?: string, { concurrentId, signal }?: AxiosOptions): Promise<TClusterInfo>;
|
36
38
|
getClusterNodes({ concurrentId, signal }?: AxiosOptions): Promise<TEvSystemStateResponse>;
|
@@ -98,7 +100,10 @@ export declare class YdbEmbeddedAPI extends AxiosWrapper {
|
|
98
100
|
getExplainQuery<Action extends ExplainActions>(query: string, database: string, action: Action, syntax?: QuerySyntax): Promise<ErrorResponse | ExplainResponse<Action>>;
|
99
101
|
getExplainQueryAst(query: string, database: string): Promise<import("../types/api/query").ExplainQueryResponse>;
|
100
102
|
getHotKeys(path: string, enableSampling: boolean, { concurrentId, signal }?: AxiosOptions): Promise<JsonHotKeysResponse>;
|
101
|
-
getHealthcheckInfo(
|
103
|
+
getHealthcheckInfo({ database, maxLevel }: {
|
104
|
+
database: string;
|
105
|
+
maxLevel?: number;
|
106
|
+
}, { concurrentId, signal }?: AxiosOptions): Promise<HealthCheckAPIResponse>;
|
102
107
|
evictVDisk({ groupId, groupGeneration, failRealmIdx, failDomainIdx, vDiskIdx, }: {
|
103
108
|
groupId: string | number;
|
104
109
|
groupGeneration: string | number;
|
package/dist/src/services/api.js
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
2
|
import AxiosWrapper from '@gravity-ui/axios-wrapper';
|
3
|
+
import axiosRetry from 'axios-retry';
|
3
4
|
import { backend as BACKEND, metaBackend as META_BACKEND } from '../store';
|
4
5
|
import { BINARY_DATA_IN_PLAIN_TEXT_DISPLAY } from '../utils/constants';
|
5
6
|
import { createPDiskDeveloperUILink } from '../utils/developerUI/developerUI';
|
@@ -8,6 +9,25 @@ import { parseMetaCluster } from './parsers/parseMetaCluster';
|
|
8
9
|
import { parseMetaTenants } from './parsers/parseMetaTenants';
|
9
10
|
import { settingsManager } from './settings';
|
10
11
|
export class YdbEmbeddedAPI extends AxiosWrapper {
|
12
|
+
constructor(options) {
|
13
|
+
super(options);
|
14
|
+
axiosRetry(this._axios, {
|
15
|
+
retries: 3,
|
16
|
+
retryDelay: axiosRetry.exponentialDelay,
|
17
|
+
});
|
18
|
+
// Interceptor to process OIDC auth
|
19
|
+
this._axios.interceptors.response.use(null, function (error) {
|
20
|
+
var _a;
|
21
|
+
const response = error.response;
|
22
|
+
// OIDC proxy returns 401 response with authUrl in it
|
23
|
+
// authUrl - external auth service link, after successful auth additional cookies will be appended
|
24
|
+
// that will allow access to clusters where OIDC proxy is a balancer
|
25
|
+
if (response && response.status === 401 && ((_a = response.data) === null || _a === void 0 ? void 0 : _a.authUrl)) {
|
26
|
+
return window.location.assign(response.data.authUrl);
|
27
|
+
}
|
28
|
+
return Promise.reject(error);
|
29
|
+
});
|
30
|
+
}
|
11
31
|
getPath(path) {
|
12
32
|
return `${BACKEND !== null && BACKEND !== void 0 ? BACKEND : ''}${path}`;
|
13
33
|
}
|
@@ -95,7 +115,7 @@ export class YdbEmbeddedAPI extends AxiosWrapper {
|
|
95
115
|
partition_stats: true,
|
96
116
|
partitioning_info: true,
|
97
117
|
subs: 1,
|
98
|
-
}, { concurrentId
|
118
|
+
}, { concurrentId, requestConfig: { signal } });
|
99
119
|
}
|
100
120
|
getDescribe({ path }, { concurrentId, signal } = {}) {
|
101
121
|
return this.get(this.getPath('/viewer/json/describe'), {
|
@@ -108,6 +128,7 @@ export class YdbEmbeddedAPI extends AxiosWrapper {
|
|
108
128
|
getSchemaAcl({ path }, { concurrentId, signal } = {}) {
|
109
129
|
return this.get(this.getPath('/viewer/json/acl'), {
|
110
130
|
path,
|
131
|
+
merge_rules: true,
|
111
132
|
}, { concurrentId: concurrentId || `getSchemaAcl`, requestConfig: { signal } });
|
112
133
|
}
|
113
134
|
getHeatmapData({ path }, { concurrentId, signal } = {}) {
|
@@ -221,8 +242,8 @@ export class YdbEmbeddedAPI extends AxiosWrapper {
|
|
221
242
|
enable_sampling: enableSampling,
|
222
243
|
}, { concurrentId: concurrentId || 'getHotKeys', requestConfig: { signal } });
|
223
244
|
}
|
224
|
-
getHealthcheckInfo(database, { concurrentId, signal } = {}) {
|
225
|
-
return this.get(this.getPath('/viewer/json/healthcheck?merge_records=true'), { tenant: database }, { concurrentId, requestConfig: { signal } });
|
245
|
+
getHealthcheckInfo({ database, maxLevel }, { concurrentId, signal } = {}) {
|
246
|
+
return this.get(this.getPath('/viewer/json/healthcheck?merge_records=true'), { tenant: database, max_level: maxLevel }, { concurrentId, requestConfig: { signal } });
|
226
247
|
}
|
227
248
|
evictVDisk({ groupId, groupGeneration, failRealmIdx, failDomainIdx, vDiskIdx, }) {
|
228
249
|
// BSC Id is constant for all ydb clusters
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { TENANT_PAGES_IDS } from '../store/reducers/tenant/constants';
|
2
|
-
import { ASIDE_HEADER_COMPACT_KEY, AUTOCOMPLETE_ON_ENTER, BINARY_DATA_IN_PLAIN_TEXT_DISPLAY, ENABLE_AUTOCOMPLETE, INVERTED_DISKS_KEY,
|
2
|
+
import { ASIDE_HEADER_COMPACT_KEY, AUTOCOMPLETE_ON_ENTER, AUTO_REFRESH_INTERVAL, BINARY_DATA_IN_PLAIN_TEXT_DISPLAY, ENABLE_AUTOCOMPLETE, INVERTED_DISKS_KEY, IS_HOTKEYS_HELP_HIDDEN_KEY, LANGUAGE_KEY, LAST_USED_QUERY_ACTION_KEY, PARTITIONS_HIDDEN_COLUMNS_KEY, QUERY_INITIAL_MODE_KEY, QUERY_USE_MULTI_SCHEMA_KEY, SAVED_QUERIES_KEY, TENANT_INITIAL_PAGE_KEY, THEME_KEY, USE_BACKEND_PARAMS_FOR_TABLES_KEY, USE_CLUSTER_BALANCER_AS_BACKEND_KEY, USE_NODES_ENDPOINT_IN_DIAGNOSTICS_KEY, } from '../utils/constants';
|
3
3
|
import { QUERY_ACTIONS, QUERY_MODES } from '../utils/query';
|
4
4
|
import { parseJson } from '../utils/utils';
|
5
5
|
/** User settings keys and their default values */
|
@@ -20,7 +20,8 @@ export const DEFAULT_USER_SETTINGS = {
|
|
20
20
|
[USE_CLUSTER_BALANCER_AS_BACKEND_KEY]: true,
|
21
21
|
[ENABLE_AUTOCOMPLETE]: true,
|
22
22
|
[AUTOCOMPLETE_ON_ENTER]: true,
|
23
|
-
[
|
23
|
+
[IS_HOTKEYS_HELP_HIDDEN_KEY]: false,
|
24
|
+
[AUTO_REFRESH_INTERVAL]: 0,
|
24
25
|
};
|
25
26
|
class SettingsManager {
|
26
27
|
constructor() {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Reducer, UnknownAction } from '@reduxjs/toolkit';
|
1
|
+
import type { Action, Reducer, UnknownAction } from '@reduxjs/toolkit';
|
2
2
|
import type { History } from 'history';
|
3
3
|
export declare let backend: string | undefined, basename: string, clusterName: string | undefined;
|
4
4
|
export declare const webVersion: boolean | undefined;
|
@@ -13,59 +13,35 @@ export declare function configureStore({ aRootReducer, singleClusterMode, api, }
|
|
13
13
|
tooltip: import("../types/store/tooltip").ITooltipState;
|
14
14
|
tablets: import("../types/store/tablets").TabletsState;
|
15
15
|
schema: import("./reducers/schema/types").SchemaState;
|
16
|
-
host: import("../types/store/host").IHostState;
|
17
16
|
tenants: import("./reducers/tenants/types").TenantsState;
|
18
17
|
partitions: import("./reducers/partitions/types").PartitionsState;
|
19
18
|
executeQuery: import("../types/store/executeQuery").ExecuteQueryState;
|
20
|
-
tabletsFilters: {
|
21
|
-
loading: boolean;
|
22
|
-
requestTime: number;
|
23
|
-
data: undefined;
|
24
|
-
wasLoaded: boolean;
|
25
|
-
stateFilter: never[];
|
26
|
-
typeFilter: never[];
|
27
|
-
} | {
|
28
|
-
tabletsData: any;
|
29
|
-
nodes: any;
|
30
|
-
loading: boolean;
|
31
|
-
wasLoaded: boolean;
|
32
|
-
timeoutForRequest: number;
|
33
|
-
error: undefined;
|
34
|
-
data: undefined;
|
35
|
-
stateFilter: never[];
|
36
|
-
typeFilter: never[];
|
37
|
-
} | {
|
38
|
-
error: any;
|
39
|
-
loading: boolean;
|
40
|
-
data: undefined;
|
41
|
-
wasLoaded: boolean;
|
42
|
-
stateFilter: never[];
|
43
|
-
typeFilter: never[];
|
44
|
-
} | {
|
45
|
-
stateFilter: any;
|
46
|
-
data: undefined;
|
47
|
-
loading: boolean;
|
48
|
-
wasLoaded: boolean;
|
49
|
-
typeFilter: never[];
|
50
|
-
} | {
|
51
|
-
typeFilter: any;
|
52
|
-
data: undefined;
|
53
|
-
loading: boolean;
|
54
|
-
wasLoaded: boolean;
|
55
|
-
stateFilter: never[];
|
56
|
-
};
|
57
19
|
heatmap: import("../types/store/heatmap").IHeatmapState;
|
58
20
|
settings: import("./reducers/settings/types").SettingsState;
|
59
|
-
schemaAcl: import("./reducers/schemaAcl/types").SchemaAclState;
|
60
21
|
executeTopQueries: import("./reducers/executeTopQueries/types").TopQueriesFilters;
|
61
22
|
shardsWorkload: import("./reducers/shardsWorkload/types").ShardsWorkloadFilters;
|
62
|
-
hotKeys: import("./reducers/hotKeys/types").HotKeysState;
|
63
23
|
authentication: import("./reducers/authentication/types").AuthenticationState;
|
64
24
|
header: import("./reducers/header/types").HeaderState;
|
65
25
|
saveQuery: string | null;
|
66
26
|
fullscreen: boolean;
|
67
27
|
clusters: import("./reducers/clusters/types").ClustersFilters;
|
68
|
-
},
|
28
|
+
}, UnknownAction | import("../types/store/tooltip").ITooltipAction | {
|
29
|
+
readonly type: "schema/SET_SHOW_PREVIEW";
|
30
|
+
readonly data: boolean;
|
31
|
+
} | import("../types/store/executeQuery").ExecuteQueryAction | import("./reducers/authentication/types").AuthenticationAction | {
|
32
|
+
readonly type: "header/SET_HEADER_BREADCRUMBS";
|
33
|
+
readonly page: import("./reducers/header/types").Page;
|
34
|
+
readonly options: {} | import("./reducers/header/types").TabletsBreadcrumbsOptions | import("./reducers/header/types").TenantBreadcrumbsOptions | import("./reducers/header/types").ClusterBreadcrumbsOptions | import("./reducers/header/types").TabletBreadcrumbsOptions | import("./reducers/header/types").NodeBreadcrumbsOptions;
|
35
|
+
} | ({
|
36
|
+
readonly type: "SET_QUERY_NAME_TO_EDIT";
|
37
|
+
readonly data: string;
|
38
|
+
} | {
|
39
|
+
readonly type: "CLEAR_QUERY_NAME_TO_EDIT";
|
40
|
+
}) | {
|
41
|
+
readonly type: "ENABLE_FULLSCREEN_MODE";
|
42
|
+
} | {
|
43
|
+
readonly type: "DISABLE_FULLSCREEN_MODE";
|
44
|
+
} | Action<string>, Partial<{
|
69
45
|
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api"> | undefined;
|
70
46
|
singleClusterMode: boolean | undefined;
|
71
47
|
cluster: import("./reducers/cluster/types").ClusterState | undefined;
|
@@ -73,23 +49,13 @@ export declare function configureStore({ aRootReducer, singleClusterMode, api, }
|
|
73
49
|
tooltip: never;
|
74
50
|
tablets: import("../types/store/tablets").TabletsState | undefined;
|
75
51
|
schema: never;
|
76
|
-
host: never;
|
77
52
|
tenants: import("./reducers/tenants/types").TenantsState | undefined;
|
78
53
|
partitions: import("./reducers/partitions/types").PartitionsState | undefined;
|
79
54
|
executeQuery: never;
|
80
|
-
tabletsFilters: {
|
81
|
-
data: undefined;
|
82
|
-
loading: boolean;
|
83
|
-
wasLoaded: boolean;
|
84
|
-
stateFilter: never[];
|
85
|
-
typeFilter: never[];
|
86
|
-
} | undefined;
|
87
55
|
heatmap: import("../types/store/heatmap").IHeatmapState | undefined;
|
88
|
-
settings:
|
89
|
-
schemaAcl: never;
|
56
|
+
settings: import("./reducers/settings/types").SettingsState | undefined;
|
90
57
|
executeTopQueries: import("./reducers/executeTopQueries/types").TopQueriesFilters | undefined;
|
91
58
|
shardsWorkload: import("./reducers/shardsWorkload/types").ShardsWorkloadFilters | undefined;
|
92
|
-
hotKeys: never;
|
93
59
|
authentication: never;
|
94
60
|
header: never;
|
95
61
|
saveQuery: never;
|
@@ -108,59 +74,35 @@ export declare function configureStore({ aRootReducer, singleClusterMode, api, }
|
|
108
74
|
tooltip: import("../types/store/tooltip").ITooltipState;
|
109
75
|
tablets: import("../types/store/tablets").TabletsState;
|
110
76
|
schema: import("./reducers/schema/types").SchemaState;
|
111
|
-
host: import("../types/store/host").IHostState;
|
112
77
|
tenants: import("./reducers/tenants/types").TenantsState;
|
113
78
|
partitions: import("./reducers/partitions/types").PartitionsState;
|
114
79
|
executeQuery: import("../types/store/executeQuery").ExecuteQueryState;
|
115
|
-
tabletsFilters: {
|
116
|
-
loading: boolean;
|
117
|
-
requestTime: number;
|
118
|
-
data: undefined;
|
119
|
-
wasLoaded: boolean;
|
120
|
-
stateFilter: never[];
|
121
|
-
typeFilter: never[];
|
122
|
-
} | {
|
123
|
-
tabletsData: any;
|
124
|
-
nodes: any;
|
125
|
-
loading: boolean;
|
126
|
-
wasLoaded: boolean;
|
127
|
-
timeoutForRequest: number;
|
128
|
-
error: undefined;
|
129
|
-
data: undefined;
|
130
|
-
stateFilter: never[];
|
131
|
-
typeFilter: never[];
|
132
|
-
} | {
|
133
|
-
error: any;
|
134
|
-
loading: boolean;
|
135
|
-
data: undefined;
|
136
|
-
wasLoaded: boolean;
|
137
|
-
stateFilter: never[];
|
138
|
-
typeFilter: never[];
|
139
|
-
} | {
|
140
|
-
stateFilter: any;
|
141
|
-
data: undefined;
|
142
|
-
loading: boolean;
|
143
|
-
wasLoaded: boolean;
|
144
|
-
typeFilter: never[];
|
145
|
-
} | {
|
146
|
-
typeFilter: any;
|
147
|
-
data: undefined;
|
148
|
-
loading: boolean;
|
149
|
-
wasLoaded: boolean;
|
150
|
-
stateFilter: never[];
|
151
|
-
};
|
152
80
|
heatmap: import("../types/store/heatmap").IHeatmapState;
|
153
81
|
settings: import("./reducers/settings/types").SettingsState;
|
154
|
-
schemaAcl: import("./reducers/schemaAcl/types").SchemaAclState;
|
155
82
|
executeTopQueries: import("./reducers/executeTopQueries/types").TopQueriesFilters;
|
156
83
|
shardsWorkload: import("./reducers/shardsWorkload/types").ShardsWorkloadFilters;
|
157
|
-
hotKeys: import("./reducers/hotKeys/types").HotKeysState;
|
158
84
|
authentication: import("./reducers/authentication/types").AuthenticationState;
|
159
85
|
header: import("./reducers/header/types").HeaderState;
|
160
86
|
saveQuery: string | null;
|
161
87
|
fullscreen: boolean;
|
162
88
|
clusters: import("./reducers/clusters/types").ClustersFilters;
|
163
|
-
},
|
89
|
+
}, UnknownAction | import("../types/store/tooltip").ITooltipAction | {
|
90
|
+
readonly type: "schema/SET_SHOW_PREVIEW";
|
91
|
+
readonly data: boolean;
|
92
|
+
} | import("../types/store/executeQuery").ExecuteQueryAction | import("./reducers/authentication/types").AuthenticationAction | {
|
93
|
+
readonly type: "header/SET_HEADER_BREADCRUMBS";
|
94
|
+
readonly page: import("./reducers/header/types").Page;
|
95
|
+
readonly options: {} | import("./reducers/header/types").TabletsBreadcrumbsOptions | import("./reducers/header/types").TenantBreadcrumbsOptions | import("./reducers/header/types").ClusterBreadcrumbsOptions | import("./reducers/header/types").TabletBreadcrumbsOptions | import("./reducers/header/types").NodeBreadcrumbsOptions;
|
96
|
+
} | ({
|
97
|
+
readonly type: "SET_QUERY_NAME_TO_EDIT";
|
98
|
+
readonly data: string;
|
99
|
+
} | {
|
100
|
+
readonly type: "CLEAR_QUERY_NAME_TO_EDIT";
|
101
|
+
}) | {
|
102
|
+
readonly type: "ENABLE_FULLSCREEN_MODE";
|
103
|
+
} | {
|
104
|
+
readonly type: "DISABLE_FULLSCREEN_MODE";
|
105
|
+
} | Action<string>, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
164
106
|
dispatch: import("redux-thunk").ThunkDispatch<{
|
165
107
|
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
|
166
108
|
singleClusterMode: boolean;
|
@@ -169,53 +111,13 @@ export declare function configureStore({ aRootReducer, singleClusterMode, api, }
|
|
169
111
|
tooltip: import("../types/store/tooltip").ITooltipState;
|
170
112
|
tablets: import("../types/store/tablets").TabletsState;
|
171
113
|
schema: import("./reducers/schema/types").SchemaState;
|
172
|
-
host: import("../types/store/host").IHostState;
|
173
114
|
tenants: import("./reducers/tenants/types").TenantsState;
|
174
115
|
partitions: import("./reducers/partitions/types").PartitionsState;
|
175
116
|
executeQuery: import("../types/store/executeQuery").ExecuteQueryState;
|
176
|
-
tabletsFilters: {
|
177
|
-
loading: boolean;
|
178
|
-
requestTime: number;
|
179
|
-
data: undefined;
|
180
|
-
wasLoaded: boolean;
|
181
|
-
stateFilter: never[];
|
182
|
-
typeFilter: never[];
|
183
|
-
} | {
|
184
|
-
tabletsData: any;
|
185
|
-
nodes: any;
|
186
|
-
loading: boolean;
|
187
|
-
wasLoaded: boolean;
|
188
|
-
timeoutForRequest: number;
|
189
|
-
error: undefined;
|
190
|
-
data: undefined;
|
191
|
-
stateFilter: never[];
|
192
|
-
typeFilter: never[];
|
193
|
-
} | {
|
194
|
-
error: any;
|
195
|
-
loading: boolean;
|
196
|
-
data: undefined;
|
197
|
-
wasLoaded: boolean;
|
198
|
-
stateFilter: never[];
|
199
|
-
typeFilter: never[];
|
200
|
-
} | {
|
201
|
-
stateFilter: any;
|
202
|
-
data: undefined;
|
203
|
-
loading: boolean;
|
204
|
-
wasLoaded: boolean;
|
205
|
-
typeFilter: never[];
|
206
|
-
} | {
|
207
|
-
typeFilter: any;
|
208
|
-
data: undefined;
|
209
|
-
loading: boolean;
|
210
|
-
wasLoaded: boolean;
|
211
|
-
stateFilter: never[];
|
212
|
-
};
|
213
117
|
heatmap: import("../types/store/heatmap").IHeatmapState;
|
214
118
|
settings: import("./reducers/settings/types").SettingsState;
|
215
|
-
schemaAcl: import("./reducers/schemaAcl/types").SchemaAclState;
|
216
119
|
executeTopQueries: import("./reducers/executeTopQueries/types").TopQueriesFilters;
|
217
120
|
shardsWorkload: import("./reducers/shardsWorkload/types").ShardsWorkloadFilters;
|
218
|
-
hotKeys: import("./reducers/hotKeys/types").HotKeysState;
|
219
121
|
authentication: import("./reducers/authentication/types").AuthenticationState;
|
220
122
|
header: import("./reducers/header/types").HeaderState;
|
221
123
|
saveQuery: string | null;
|
@@ -5,6 +5,7 @@ import { createApi } from '../services/api';
|
|
5
5
|
import { getUrlData } from './getUrlData';
|
6
6
|
import rootReducer from './reducers';
|
7
7
|
import { api as storeApi } from './reducers/api';
|
8
|
+
import { syncUserSettingsFromLS } from './reducers/settings/settings';
|
8
9
|
import { UPDATE_REF } from './reducers/tooltip';
|
9
10
|
import getLocationMiddleware from './state-url-mapping';
|
10
11
|
export let backend, basename, clusterName;
|
@@ -23,6 +24,7 @@ function _configureStore(aRootReducer, history, preloadedState, middleware) {
|
|
23
24
|
},
|
24
25
|
}).concat(locationMiddleware, ...middleware),
|
25
26
|
});
|
27
|
+
syncUserSettingsFromLS(store);
|
26
28
|
return store;
|
27
29
|
}
|
28
30
|
export const webVersion = window.web_version;
|
@@ -40,21 +42,6 @@ export function configureStore({ aRootReducer = rootReducer, singleClusterMode =
|
|
40
42
|
storeApi.middleware,
|
41
43
|
]);
|
42
44
|
listenForHistoryChange(store, history);
|
43
|
-
// Interceptor to process OIDC auth
|
44
|
-
// @ts-expect-error
|
45
|
-
api._axios.interceptors.response.use(function (response) {
|
46
|
-
return Promise.resolve(response);
|
47
|
-
}, function (error) {
|
48
|
-
var _a;
|
49
|
-
const response = error.response;
|
50
|
-
// OIDC proxy returns 401 response with authUrl in it
|
51
|
-
// authUrl - external auth service link, after successful auth additional cookies will be appended
|
52
|
-
// that will allow access to clusters where OIDC proxy is a balancer
|
53
|
-
if (response && response.status === 401 && ((_a = response.data) === null || _a === void 0 ? void 0 : _a.authUrl)) {
|
54
|
-
return window.location.assign(response.data.authUrl);
|
55
|
-
}
|
56
|
-
return Promise.reject(error);
|
57
|
-
});
|
58
45
|
window.api = api;
|
59
46
|
return { history, store };
|
60
47
|
}
|
@@ -6,59 +6,35 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
6
6
|
tooltip: import("../types/store/tooltip").ITooltipState;
|
7
7
|
tablets: import("../types/store/tablets").TabletsState;
|
8
8
|
schema: import("./reducers/schema/types").SchemaState;
|
9
|
-
host: import("../types/store/host").IHostState;
|
10
9
|
tenants: import("./reducers/tenants/types").TenantsState;
|
11
10
|
partitions: import("./reducers/partitions/types").PartitionsState;
|
12
11
|
executeQuery: import("../types/store/executeQuery").ExecuteQueryState;
|
13
|
-
tabletsFilters: {
|
14
|
-
loading: boolean;
|
15
|
-
requestTime: number;
|
16
|
-
data: undefined;
|
17
|
-
wasLoaded: boolean;
|
18
|
-
stateFilter: never[];
|
19
|
-
typeFilter: never[];
|
20
|
-
} | {
|
21
|
-
tabletsData: any;
|
22
|
-
nodes: any;
|
23
|
-
loading: boolean;
|
24
|
-
wasLoaded: boolean;
|
25
|
-
timeoutForRequest: number;
|
26
|
-
error: undefined;
|
27
|
-
data: undefined;
|
28
|
-
stateFilter: never[];
|
29
|
-
typeFilter: never[];
|
30
|
-
} | {
|
31
|
-
error: any;
|
32
|
-
loading: boolean;
|
33
|
-
data: undefined;
|
34
|
-
wasLoaded: boolean;
|
35
|
-
stateFilter: never[];
|
36
|
-
typeFilter: never[];
|
37
|
-
} | {
|
38
|
-
stateFilter: any;
|
39
|
-
data: undefined;
|
40
|
-
loading: boolean;
|
41
|
-
wasLoaded: boolean;
|
42
|
-
typeFilter: never[];
|
43
|
-
} | {
|
44
|
-
typeFilter: any;
|
45
|
-
data: undefined;
|
46
|
-
loading: boolean;
|
47
|
-
wasLoaded: boolean;
|
48
|
-
stateFilter: never[];
|
49
|
-
};
|
50
12
|
heatmap: import("../types/store/heatmap").IHeatmapState;
|
51
13
|
settings: import("./reducers/settings/types").SettingsState;
|
52
|
-
schemaAcl: import("./reducers/schemaAcl/types").SchemaAclState;
|
53
14
|
executeTopQueries: import("./reducers/executeTopQueries/types").TopQueriesFilters;
|
54
15
|
shardsWorkload: import("./reducers/shardsWorkload/types").ShardsWorkloadFilters;
|
55
|
-
hotKeys: import("./reducers/hotKeys/types").HotKeysState;
|
56
16
|
authentication: import("./reducers/authentication/types").AuthenticationState;
|
57
17
|
header: import("./reducers/header/types").HeaderState;
|
58
18
|
saveQuery: string | null;
|
59
19
|
fullscreen: boolean;
|
60
20
|
clusters: import("./reducers/clusters/types").ClustersFilters;
|
61
|
-
},
|
21
|
+
}, import("redux").UnknownAction | import("../types/store/tooltip").ITooltipAction | {
|
22
|
+
readonly type: "schema/SET_SHOW_PREVIEW";
|
23
|
+
readonly data: boolean;
|
24
|
+
} | import("../types/store/executeQuery").ExecuteQueryAction | import("./reducers/authentication/types").AuthenticationAction | {
|
25
|
+
readonly type: "header/SET_HEADER_BREADCRUMBS";
|
26
|
+
readonly page: import("./reducers/header/types").Page;
|
27
|
+
readonly options: {} | import("./reducers/header/types").TabletsBreadcrumbsOptions | import("./reducers/header/types").TenantBreadcrumbsOptions | import("./reducers/header/types").ClusterBreadcrumbsOptions | import("./reducers/header/types").TabletBreadcrumbsOptions | import("./reducers/header/types").NodeBreadcrumbsOptions;
|
28
|
+
} | ({
|
29
|
+
readonly type: "SET_QUERY_NAME_TO_EDIT";
|
30
|
+
readonly data: string;
|
31
|
+
} | {
|
32
|
+
readonly type: "CLEAR_QUERY_NAME_TO_EDIT";
|
33
|
+
}) | {
|
34
|
+
readonly type: "ENABLE_FULLSCREEN_MODE";
|
35
|
+
} | {
|
36
|
+
readonly type: "DISABLE_FULLSCREEN_MODE";
|
37
|
+
} | import("redux").Action<string>, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
62
38
|
dispatch: import("redux-thunk").ThunkDispatch<{
|
63
39
|
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
|
64
40
|
singleClusterMode: boolean;
|
@@ -67,53 +43,13 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
67
43
|
tooltip: import("../types/store/tooltip").ITooltipState;
|
68
44
|
tablets: import("../types/store/tablets").TabletsState;
|
69
45
|
schema: import("./reducers/schema/types").SchemaState;
|
70
|
-
host: import("../types/store/host").IHostState;
|
71
46
|
tenants: import("./reducers/tenants/types").TenantsState;
|
72
47
|
partitions: import("./reducers/partitions/types").PartitionsState;
|
73
48
|
executeQuery: import("../types/store/executeQuery").ExecuteQueryState;
|
74
|
-
tabletsFilters: {
|
75
|
-
loading: boolean;
|
76
|
-
requestTime: number;
|
77
|
-
data: undefined;
|
78
|
-
wasLoaded: boolean;
|
79
|
-
stateFilter: never[];
|
80
|
-
typeFilter: never[];
|
81
|
-
} | {
|
82
|
-
tabletsData: any;
|
83
|
-
nodes: any;
|
84
|
-
loading: boolean;
|
85
|
-
wasLoaded: boolean;
|
86
|
-
timeoutForRequest: number;
|
87
|
-
error: undefined;
|
88
|
-
data: undefined;
|
89
|
-
stateFilter: never[];
|
90
|
-
typeFilter: never[];
|
91
|
-
} | {
|
92
|
-
error: any;
|
93
|
-
loading: boolean;
|
94
|
-
data: undefined;
|
95
|
-
wasLoaded: boolean;
|
96
|
-
stateFilter: never[];
|
97
|
-
typeFilter: never[];
|
98
|
-
} | {
|
99
|
-
stateFilter: any;
|
100
|
-
data: undefined;
|
101
|
-
loading: boolean;
|
102
|
-
wasLoaded: boolean;
|
103
|
-
typeFilter: never[];
|
104
|
-
} | {
|
105
|
-
typeFilter: any;
|
106
|
-
data: undefined;
|
107
|
-
loading: boolean;
|
108
|
-
wasLoaded: boolean;
|
109
|
-
stateFilter: never[];
|
110
|
-
};
|
111
49
|
heatmap: import("../types/store/heatmap").IHeatmapState;
|
112
50
|
settings: import("./reducers/settings/types").SettingsState;
|
113
|
-
schemaAcl: import("./reducers/schemaAcl/types").SchemaAclState;
|
114
51
|
executeTopQueries: import("./reducers/executeTopQueries/types").TopQueriesFilters;
|
115
52
|
shardsWorkload: import("./reducers/shardsWorkload/types").ShardsWorkloadFilters;
|
116
|
-
hotKeys: import("./reducers/hotKeys/types").HotKeysState;
|
117
53
|
authentication: import("./reducers/authentication/types").AuthenticationState;
|
118
54
|
header: import("./reducers/header/types").HeaderState;
|
119
55
|
saveQuery: string | null;
|