ydb-embedded-ui 6.9.1 → 6.10.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/NodeHostWrapper/NodeHostWrapper.scss +1 -1
- package/dist/components/{VirtualTable/VirtualTable.d.ts → PaginatedTable/PaginatedTable.d.ts} +3 -3
- package/dist/components/{VirtualTable/VirtualTable.js → PaginatedTable/PaginatedTable.js} +4 -4
- package/dist/components/{VirtualTable/VirtualTable.scss → PaginatedTable/PaginatedTable.scss} +11 -11
- package/dist/components/PaginatedTable/ResizeablePaginatedTable.d.ts +6 -0
- package/dist/components/{VirtualTable/ResizeableVirtualTable.js → PaginatedTable/ResizeablePaginatedTable.js} +3 -3
- package/dist/components/{VirtualTable → PaginatedTable}/i18n/index.js +1 -1
- package/dist/components/PaginatedTable/index.d.ts +4 -0
- package/dist/components/PaginatedTable/index.js +4 -0
- package/dist/components/{VirtualTable → PaginatedTable}/reducer.d.ts +3 -3
- package/dist/components/{VirtualTable → PaginatedTable}/reducer.js +1 -1
- package/dist/components/PaginatedTable/shared.js +2 -0
- package/dist/components/{VirtualTable → PaginatedTable}/types.d.ts +2 -2
- package/dist/components/TableWithControlsLayout/TableWithControlsLayout.scss +1 -1
- package/dist/components/VDisk/VDisk.js +19 -6
- package/dist/containers/App/App.d.ts +1 -1
- package/dist/containers/App/App.js +2 -2
- package/dist/containers/App/App.scss +1 -1
- package/dist/containers/AppWithClusters/AppWithClusters.js +1 -10
- package/dist/containers/AsideNavigation/Navigation.d.ts +1 -1
- package/dist/containers/Header/Header.js +5 -2
- package/dist/containers/Heatmap/Histogram/Histogram.js +3 -3
- package/dist/containers/Heatmap/util.js +2 -1
- package/dist/containers/Nodes/NodesWrapper.js +5 -5
- package/dist/containers/Nodes/{VirtualNodes.d.ts → PaginatedNodes.d.ts} +1 -1
- package/dist/containers/Nodes/{VirtualNodes.js → PaginatedNodes.js} +3 -3
- package/dist/containers/Nodes/getNodesColumns.d.ts +2 -2
- package/dist/containers/Storage/PDisk/PDisk.js +10 -2
- package/dist/containers/Storage/{VirtualStorage.d.ts → PaginatedStorage.d.ts} +2 -2
- package/dist/containers/Storage/{VirtualStorage.js → PaginatedStorage.js} +5 -5
- package/dist/containers/Storage/Storage.js +3 -12
- package/dist/containers/Storage/StorageGroups/{VirtualStorageGroups.d.ts → PaginatedStorageGroups.d.ts} +3 -3
- package/dist/containers/Storage/StorageGroups/{VirtualStorageGroups.js → PaginatedStorageGroups.js} +3 -3
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.d.ts +2 -2
- package/dist/containers/Storage/StorageNodes/{VirtualStorageNodes.d.ts → PaginatedStorageNodes.d.ts} +3 -3
- package/dist/containers/Storage/StorageNodes/{VirtualStorageNodes.js → PaginatedStorageNodes.js} +3 -3
- package/dist/containers/Storage/StorageWrapper.js +5 -5
- package/dist/containers/Tenant/Diagnostics/Diagnostics.scss +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.scss +1 -2
- package/dist/containers/Tenant/Query/Query.js +2 -8
- package/dist/containers/Tenant/Query/Query.scss +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.d.ts +2 -0
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +23 -36
- package/dist/containers/Tenant/Query/QueryEditor/keybindings.d.ts +9 -0
- package/dist/containers/Tenant/Query/QueryEditor/keybindings.js +13 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.d.ts +1 -3
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +3 -3
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.d.ts +7 -6
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js +55 -47
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.scss +2 -32
- package/dist/containers/Tenant/Query/SaveQuery/i18n/en.json +13 -0
- package/dist/containers/Tenant/Query/SaveQuery/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Query/SaveQuery/i18n/index.js +4 -0
- package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.d.ts +1 -4
- package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.js +5 -3
- package/dist/containers/Tenant/Query/i18n/en.json +2 -1
- package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/utils/useSavedQueries.d.ts +2 -0
- package/dist/containers/Tenant/Query/utils/useSavedQueries.js +5 -0
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +6 -2
- package/dist/containers/Tenant/utils/schemaActions.d.ts +1 -1
- package/dist/containers/Tenant/utils/schemaActions.js +10 -4
- package/dist/containers/UserSettings/UserSettings.d.ts +1 -1
- package/dist/containers/UserSettings/UserSettings.js +1 -2
- package/dist/containers/UserSettings/i18n/en.json +9 -4
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.d.ts +7 -2
- package/dist/containers/UserSettings/settings.js +38 -14
- package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.scss +1 -2
- package/dist/lib.d.ts +1 -1
- package/dist/lib.js +1 -1
- package/dist/services/settings.d.ts +2 -0
- package/dist/services/settings.js +4 -2
- package/dist/store/configureStore.d.ts +4 -14
- package/dist/store/defaultStore.d.ts +2 -7
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +20 -20
- package/dist/store/reducers/index.d.ts +3 -13
- package/dist/store/reducers/index.js +2 -2
- package/dist/store/reducers/node/selectors.d.ts +1 -1
- package/dist/store/reducers/nodesList.d.ts +1 -1
- package/dist/store/reducers/queryActions/queryActions.d.ts +34 -0
- package/dist/store/reducers/queryActions/queryActions.js +58 -0
- package/dist/store/reducers/queryActions/types.d.ts +5 -0
- package/dist/store/reducers/queryActions/types.js +1 -0
- package/dist/store/reducers/storage/storage.js +1 -1
- package/dist/store/reducers/tablets.d.ts +5 -5
- package/dist/store/reducers/tabletsFilters.d.ts +1 -1
- package/dist/store/reducers/tenants/selectors.d.ts +9 -9
- package/dist/store/reducers/topic.d.ts +15 -15
- package/dist/utils/constants.d.ts +3 -1
- package/dist/utils/constants.js +5 -2
- package/dist/utils/disks/prepareDisks.js +4 -2
- package/dist/utils/hooks/index.d.ts +0 -2
- package/dist/utils/hooks/index.js +0 -2
- package/package.json +1 -1
- package/dist/components/VirtualTable/ResizeableVirtualTable.d.ts +0 -6
- package/dist/components/VirtualTable/index.d.ts +0 -3
- package/dist/components/VirtualTable/index.js +0 -3
- package/dist/components/VirtualTable/shared.js +0 -2
- package/dist/containers/AppWithClusters/i18n/en.json +0 -4
- package/dist/containers/AppWithClusters/i18n/index.d.ts +0 -2
- package/dist/containers/AppWithClusters/i18n/index.js +0 -5
- package/dist/containers/AppWithClusters/i18n/ru.json +0 -4
- package/dist/store/reducers/saveQuery.d.ts +0 -12
- package/dist/store/reducers/saveQuery.js +0 -25
- package/dist/utils/hooks/useNodesRequestParams.d.ts +0 -15
- package/dist/utils/hooks/useNodesRequestParams.js +0 -23
- package/dist/utils/hooks/useStorageRequestParams.d.ts +0 -8
- package/dist/utils/hooks/useStorageRequestParams.js +0 -20
- /package/dist/components/{VirtualTable → PaginatedTable}/ResizeHandler.d.ts +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/ResizeHandler.js +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/TableChunk.d.ts +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/TableChunk.js +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/TableHead.d.ts +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/TableHead.js +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/TableRow.d.ts +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/TableRow.js +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/constants.d.ts +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/constants.js +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/i18n/en.json +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/i18n/index.d.ts +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/i18n/ru.json +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/shared.d.ts +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/types.js +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/useIntersectionObserver.d.ts +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/useIntersectionObserver.js +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/utils.d.ts +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/utils.js +0 -0
@@ -23,12 +23,7 @@ export declare const rootReducer: {
|
|
23
23
|
readonly page: import("./header/types").Page;
|
24
24
|
readonly options: {} | import("./header/types").TabletsBreadcrumbsOptions | import("./header/types").TenantBreadcrumbsOptions | import("./header/types").ClusterBreadcrumbsOptions | import("./header/types").TabletBreadcrumbsOptions | import("./header/types").NodeBreadcrumbsOptions;
|
25
25
|
}>;
|
26
|
-
|
27
|
-
readonly type: "SET_QUERY_NAME_TO_EDIT";
|
28
|
-
readonly data: string;
|
29
|
-
} | {
|
30
|
-
readonly type: "CLEAR_QUERY_NAME_TO_EDIT";
|
31
|
-
}>;
|
26
|
+
queryActions: import("redux").Reducer<import("./queryActions/types").QueryActionsState>;
|
32
27
|
fullscreen: (state: boolean | undefined, action: ReturnType<typeof import("./fullscreen").enableFullscreen> | ReturnType<typeof import("./fullscreen").disableFullscreen>) => boolean;
|
33
28
|
clusters: import("redux").Reducer<import("./clusters/types").ClustersFilters>;
|
34
29
|
};
|
@@ -49,7 +44,7 @@ declare const combinedReducer: import("redux").Reducer<{
|
|
49
44
|
shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
|
50
45
|
authentication: import("./authentication/types").AuthenticationState;
|
51
46
|
header: import("./header/types").HeaderState;
|
52
|
-
|
47
|
+
queryActions: import("./queryActions/types").QueryActionsState;
|
53
48
|
fullscreen: boolean;
|
54
49
|
clusters: import("./clusters/types").ClustersFilters;
|
55
50
|
}, import("redux").UnknownAction | import("../../types/store/tooltip").ITooltipAction | {
|
@@ -59,12 +54,7 @@ declare const combinedReducer: import("redux").Reducer<{
|
|
59
54
|
readonly type: "header/SET_HEADER_BREADCRUMBS";
|
60
55
|
readonly page: import("./header/types").Page;
|
61
56
|
readonly options: {} | import("./header/types").TabletsBreadcrumbsOptions | import("./header/types").TenantBreadcrumbsOptions | import("./header/types").ClusterBreadcrumbsOptions | import("./header/types").TabletBreadcrumbsOptions | import("./header/types").NodeBreadcrumbsOptions;
|
62
|
-
} | ({
|
63
|
-
readonly type: "SET_QUERY_NAME_TO_EDIT";
|
64
|
-
readonly data: string;
|
65
57
|
} | {
|
66
|
-
readonly type: "CLEAR_QUERY_NAME_TO_EDIT";
|
67
|
-
}) | {
|
68
58
|
readonly type: "ENABLE_FULLSCREEN_MODE";
|
69
59
|
} | {
|
70
60
|
readonly type: "DISABLE_FULLSCREEN_MODE";
|
@@ -85,7 +75,7 @@ declare const combinedReducer: import("redux").Reducer<{
|
|
85
75
|
shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters | undefined;
|
86
76
|
authentication: never;
|
87
77
|
header: never;
|
88
|
-
|
78
|
+
queryActions: import("./queryActions/types").QueryActionsState | undefined;
|
89
79
|
fullscreen: never;
|
90
80
|
clusters: import("./clusters/types").ClustersFilters | undefined;
|
91
81
|
}>>;
|
@@ -9,7 +9,7 @@ import fullscreen from './fullscreen';
|
|
9
9
|
import header from './header/header';
|
10
10
|
import heatmap from './heatmap';
|
11
11
|
import partitions from './partitions/partitions';
|
12
|
-
import
|
12
|
+
import queryActions from './queryActions/queryActions';
|
13
13
|
import schema from './schema/schema';
|
14
14
|
import settings from './settings/settings';
|
15
15
|
import shardsWorkload from './shardsWorkload/shardsWorkload';
|
@@ -35,7 +35,7 @@ export const rootReducer = {
|
|
35
35
|
shardsWorkload,
|
36
36
|
authentication,
|
37
37
|
header,
|
38
|
-
|
38
|
+
queryActions,
|
39
39
|
fullscreen,
|
40
40
|
clusters,
|
41
41
|
};
|
@@ -17,7 +17,7 @@ export declare const selectNodeStructure: ((state: {
|
|
17
17
|
shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
|
18
18
|
authentication: import("../authentication/types").AuthenticationState;
|
19
19
|
header: import("../header/types").HeaderState;
|
20
|
-
|
20
|
+
queryActions: import("../queryActions/types").QueryActionsState;
|
21
21
|
fullscreen: boolean;
|
22
22
|
clusters: import("../clusters/types").ClustersFilters;
|
23
23
|
}, nodeId: string) => PreparedNodeStructure) & {
|
@@ -19,7 +19,7 @@ export declare const selectNodesMap: ((state: {
|
|
19
19
|
shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
|
20
20
|
authentication: import("./authentication/types").AuthenticationState;
|
21
21
|
header: import("./header/types").HeaderState;
|
22
|
-
|
22
|
+
queryActions: import("./queryActions/types").QueryActionsState;
|
23
23
|
fullscreen: boolean;
|
24
24
|
clusters: import("./clusters/types").ClustersFilters;
|
25
25
|
}) => import("../../types/store/nodesList").NodesMap | undefined) & {
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import type { PayloadAction } from '@reduxjs/toolkit';
|
2
|
+
import type { AppDispatch, GetState } from '../../defaultStore';
|
3
|
+
import type { QueryActions, QueryActionsState } from './types';
|
4
|
+
export declare const slice: import("@reduxjs/toolkit").Slice<QueryActionsState, {
|
5
|
+
setQueryNameToEdit: (state: {
|
6
|
+
queryName: string | null;
|
7
|
+
queryAction: QueryActions;
|
8
|
+
}, action: PayloadAction<string>) => void;
|
9
|
+
clearQueryNameToEdit: (state: {
|
10
|
+
queryName: string | null;
|
11
|
+
queryAction: QueryActions;
|
12
|
+
}) => void;
|
13
|
+
setQueryAction: (state: {
|
14
|
+
queryName: string | null;
|
15
|
+
queryAction: QueryActions;
|
16
|
+
}, action: PayloadAction<QueryActions>) => void;
|
17
|
+
}, "queryActions", "queryActions", {
|
18
|
+
selectQueryName: (state: QueryActionsState) => string | null;
|
19
|
+
selectQueryAction: (state: QueryActionsState) => QueryActions;
|
20
|
+
}>;
|
21
|
+
declare const _default: import("redux").Reducer<QueryActionsState>;
|
22
|
+
export default _default;
|
23
|
+
export declare const setQueryNameToEdit: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "queryActions/setQueryNameToEdit">, clearQueryNameToEdit: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"queryActions/clearQueryNameToEdit">, setQueryAction: import("@reduxjs/toolkit").ActionCreatorWithPayload<QueryActions, "queryActions/setQueryAction">;
|
24
|
+
export declare const selectQueryName: import("reselect").Selector<{
|
25
|
+
queryActions: QueryActionsState;
|
26
|
+
}, string | null, []> & {
|
27
|
+
unwrapped: (state: QueryActionsState) => string | null;
|
28
|
+
}, selectQueryAction: import("reselect").Selector<{
|
29
|
+
queryActions: QueryActionsState;
|
30
|
+
}, QueryActions, []> & {
|
31
|
+
unwrapped: (state: QueryActionsState) => QueryActions;
|
32
|
+
};
|
33
|
+
export declare function deleteSavedQuery(queryName: string): (dispatch: AppDispatch, getState: GetState) => void;
|
34
|
+
export declare function saveQuery(queryName: string | null): (dispatch: AppDispatch, getState: GetState) => void;
|
@@ -0,0 +1,58 @@
|
|
1
|
+
import { createSlice } from '@reduxjs/toolkit';
|
2
|
+
import { SAVED_QUERIES_KEY } from '../../../utils/constants';
|
3
|
+
import { getSettingValue, setSettingValue } from '../settings/settings';
|
4
|
+
const initialState = {
|
5
|
+
queryName: null,
|
6
|
+
queryAction: 'idle',
|
7
|
+
};
|
8
|
+
export const slice = createSlice({
|
9
|
+
name: 'queryActions',
|
10
|
+
initialState,
|
11
|
+
reducers: {
|
12
|
+
setQueryNameToEdit: (state, action) => {
|
13
|
+
state.queryName = action.payload;
|
14
|
+
},
|
15
|
+
clearQueryNameToEdit: (state) => {
|
16
|
+
state.queryName = null;
|
17
|
+
},
|
18
|
+
setQueryAction: (state, action) => {
|
19
|
+
state.queryAction = action.payload;
|
20
|
+
},
|
21
|
+
},
|
22
|
+
selectors: {
|
23
|
+
selectQueryName: (state) => state.queryName,
|
24
|
+
selectQueryAction: (state) => state.queryAction,
|
25
|
+
},
|
26
|
+
});
|
27
|
+
export default slice.reducer;
|
28
|
+
export const { setQueryNameToEdit, clearQueryNameToEdit, setQueryAction } = slice.actions;
|
29
|
+
export const { selectQueryName, selectQueryAction } = slice.selectors;
|
30
|
+
export function deleteSavedQuery(queryName) {
|
31
|
+
return function deleteSavedQueryThunk(dispatch, getState) {
|
32
|
+
var _a;
|
33
|
+
const state = getState();
|
34
|
+
const savedQueries = (_a = getSettingValue(state, SAVED_QUERIES_KEY)) !== null && _a !== void 0 ? _a : [];
|
35
|
+
const newSavedQueries = savedQueries.filter((el) => el.name.toLowerCase() !== queryName.toLowerCase());
|
36
|
+
dispatch(setSettingValue(SAVED_QUERIES_KEY, newSavedQueries));
|
37
|
+
};
|
38
|
+
}
|
39
|
+
export function saveQuery(queryName) {
|
40
|
+
return function saveQueryThunk(dispatch, getState) {
|
41
|
+
var _a;
|
42
|
+
const state = getState();
|
43
|
+
const savedQueries = (_a = getSettingValue(state, SAVED_QUERIES_KEY)) !== null && _a !== void 0 ? _a : [];
|
44
|
+
const queryBody = state.executeQuery.input;
|
45
|
+
if (queryName === null) {
|
46
|
+
return;
|
47
|
+
}
|
48
|
+
const nextSavedQueries = [...savedQueries];
|
49
|
+
const query = nextSavedQueries.find((el) => el.name.toLowerCase() === queryName.toLowerCase());
|
50
|
+
if (query) {
|
51
|
+
query.body = queryBody;
|
52
|
+
}
|
53
|
+
else {
|
54
|
+
nextSavedQueries.push({ name: queryName, body: queryBody });
|
55
|
+
}
|
56
|
+
dispatch(setSettingValue(SAVED_QUERIES_KEY, nextSavedQueries));
|
57
|
+
};
|
58
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -6,7 +6,7 @@ export const storageApi = api.injectEndpoints({
|
|
6
6
|
getStorageNodesInfo: builder.query({
|
7
7
|
queryFn: async (params, { signal }) => {
|
8
8
|
try {
|
9
|
-
const result = await window.api.getNodes({ storage: true, type: 'static', ...params }, { signal });
|
9
|
+
const result = await window.api.getNodes({ storage: true, type: 'static', tablets: false, ...params }, { signal });
|
10
10
|
return { data: prepareStorageNodesResponse(result) };
|
11
11
|
}
|
12
12
|
catch (error) {
|
@@ -24,7 +24,7 @@ export declare const selectGetTabletsInfo: ((state: {
|
|
24
24
|
shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
|
25
25
|
authentication: import("./authentication/types").AuthenticationState;
|
26
26
|
header: import("./header/types").HeaderState;
|
27
|
-
|
27
|
+
queryActions: import("./queryActions/types").QueryActionsState;
|
28
28
|
fullscreen: boolean;
|
29
29
|
clusters: import("./clusters/types").ClustersFilters;
|
30
30
|
}, params: TabletsApiRequestParams) => import("../../types/api/tablet").TEvTabletStateResponse | undefined) & {
|
@@ -49,7 +49,7 @@ export declare const selectGetTabletsInfo: ((state: {
|
|
49
49
|
shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
|
50
50
|
authentication: import("./authentication/types").AuthenticationState;
|
51
51
|
header: import("./header/types").HeaderState;
|
52
|
-
|
52
|
+
queryActions: import("./queryActions/types").QueryActionsState;
|
53
53
|
fullscreen: boolean;
|
54
54
|
clusters: import("./clusters/types").ClustersFilters;
|
55
55
|
}, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
|
@@ -72,7 +72,7 @@ export declare const selectGetTabletsInfo: ((state: {
|
|
72
72
|
shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
|
73
73
|
authentication: import("./authentication/types").AuthenticationState;
|
74
74
|
header: import("./header/types").HeaderState;
|
75
|
-
|
75
|
+
queryActions: import("./queryActions/types").QueryActionsState;
|
76
76
|
fullscreen: boolean;
|
77
77
|
clusters: import("./clusters/types").ClustersFilters;
|
78
78
|
}, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
|
@@ -100,7 +100,7 @@ export declare const selectGetTabletsInfo: ((state: {
|
|
100
100
|
shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
|
101
101
|
authentication: import("./authentication/types").AuthenticationState;
|
102
102
|
header: import("./header/types").HeaderState;
|
103
|
-
|
103
|
+
queryActions: import("./queryActions/types").QueryActionsState;
|
104
104
|
fullscreen: boolean;
|
105
105
|
clusters: import("./clusters/types").ClustersFilters;
|
106
106
|
}, (_state: RootState, params: TabletsApiRequestParams) => (state: import("@reduxjs/toolkit/query").RootState<{
|
@@ -131,7 +131,7 @@ export declare const selectTabletsWithFqdn: ((state: {
|
|
131
131
|
shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
|
132
132
|
authentication: import("./authentication/types").AuthenticationState;
|
133
133
|
header: import("./header/types").HeaderState;
|
134
|
-
|
134
|
+
queryActions: import("./queryActions/types").QueryActionsState;
|
135
135
|
fullscreen: boolean;
|
136
136
|
clusters: import("./clusters/types").ClustersFilters;
|
137
137
|
}, params: TabletsApiRequestParams) => (TTabletStateInfo & {
|
@@ -19,7 +19,7 @@ export declare const getFilteredTablets: ((state: {
|
|
19
19
|
shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
|
20
20
|
authentication: import("./authentication/types").AuthenticationState;
|
21
21
|
header: import("./header/types").HeaderState;
|
22
|
-
|
22
|
+
queryActions: import("./queryActions/types").QueryActionsState;
|
23
23
|
fullscreen: boolean;
|
24
24
|
clusters: import("./clusters/types").ClustersFilters;
|
25
25
|
}, _params: TabletsApiRequestParams, _stateFilter: string[], typeFilter: string[]) => TTabletStateInfo[]) & {
|
@@ -18,7 +18,7 @@ export declare const selectTenants: ((state: {
|
|
18
18
|
shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
|
19
19
|
authentication: import("../authentication/types").AuthenticationState;
|
20
20
|
header: import("../header/types").HeaderState;
|
21
|
-
|
21
|
+
queryActions: import("../queryActions/types").QueryActionsState;
|
22
22
|
fullscreen: boolean;
|
23
23
|
clusters: import("../clusters/types").ClustersFilters;
|
24
24
|
}, clusterName: string | undefined) => PreparedTenant[]) & {
|
@@ -43,7 +43,7 @@ export declare const selectTenants: ((state: {
|
|
43
43
|
shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
|
44
44
|
authentication: import("../authentication/types").AuthenticationState;
|
45
45
|
header: import("../header/types").HeaderState;
|
46
|
-
|
46
|
+
queryActions: import("../queryActions/types").QueryActionsState;
|
47
47
|
fullscreen: boolean;
|
48
48
|
clusters: import("../clusters/types").ClustersFilters;
|
49
49
|
}, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
|
@@ -70,7 +70,7 @@ export declare const selectTenants: ((state: {
|
|
70
70
|
shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
|
71
71
|
authentication: import("../authentication/types").AuthenticationState;
|
72
72
|
header: import("../header/types").HeaderState;
|
73
|
-
|
73
|
+
queryActions: import("../queryActions/types").QueryActionsState;
|
74
74
|
fullscreen: boolean;
|
75
75
|
clusters: import("../clusters/types").ClustersFilters;
|
76
76
|
}, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
|
@@ -102,7 +102,7 @@ export declare const selectTenants: ((state: {
|
|
102
102
|
shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
|
103
103
|
authentication: import("../authentication/types").AuthenticationState;
|
104
104
|
header: import("../header/types").HeaderState;
|
105
|
-
|
105
|
+
queryActions: import("../queryActions/types").QueryActionsState;
|
106
106
|
fullscreen: boolean;
|
107
107
|
clusters: import("../clusters/types").ClustersFilters;
|
108
108
|
}, (_state: RootState, clusterName: string | undefined) => (state: import("@reduxjs/toolkit/query").RootState<{
|
@@ -138,7 +138,7 @@ export declare const selectFilteredTenants: ((state: {
|
|
138
138
|
shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
|
139
139
|
authentication: import("../authentication/types").AuthenticationState;
|
140
140
|
header: import("../header/types").HeaderState;
|
141
|
-
|
141
|
+
queryActions: import("../queryActions/types").QueryActionsState;
|
142
142
|
fullscreen: boolean;
|
143
143
|
clusters: import("../clusters/types").ClustersFilters;
|
144
144
|
} & {
|
@@ -172,7 +172,7 @@ export declare const selectFilteredTenants: ((state: {
|
|
172
172
|
shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
|
173
173
|
authentication: import("../authentication/types").AuthenticationState;
|
174
174
|
header: import("../header/types").HeaderState;
|
175
|
-
|
175
|
+
queryActions: import("../queryActions/types").QueryActionsState;
|
176
176
|
fullscreen: boolean;
|
177
177
|
clusters: import("../clusters/types").ClustersFilters;
|
178
178
|
}, clusterName: string | undefined) => PreparedTenant[]) & {
|
@@ -197,7 +197,7 @@ export declare const selectFilteredTenants: ((state: {
|
|
197
197
|
shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
|
198
198
|
authentication: import("../authentication/types").AuthenticationState;
|
199
199
|
header: import("../header/types").HeaderState;
|
200
|
-
|
200
|
+
queryActions: import("../queryActions/types").QueryActionsState;
|
201
201
|
fullscreen: boolean;
|
202
202
|
clusters: import("../clusters/types").ClustersFilters;
|
203
203
|
}, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
|
@@ -224,7 +224,7 @@ export declare const selectFilteredTenants: ((state: {
|
|
224
224
|
shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
|
225
225
|
authentication: import("../authentication/types").AuthenticationState;
|
226
226
|
header: import("../header/types").HeaderState;
|
227
|
-
|
227
|
+
queryActions: import("../queryActions/types").QueryActionsState;
|
228
228
|
fullscreen: boolean;
|
229
229
|
clusters: import("../clusters/types").ClustersFilters;
|
230
230
|
}, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
|
@@ -256,7 +256,7 @@ export declare const selectFilteredTenants: ((state: {
|
|
256
256
|
shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
|
257
257
|
authentication: import("../authentication/types").AuthenticationState;
|
258
258
|
header: import("../header/types").HeaderState;
|
259
|
-
|
259
|
+
queryActions: import("../queryActions/types").QueryActionsState;
|
260
260
|
fullscreen: boolean;
|
261
261
|
clusters: import("../clusters/types").ClustersFilters;
|
262
262
|
}, (_state: RootState, clusterName: string | undefined) => (state: import("@reduxjs/toolkit/query").RootState<{
|
@@ -21,7 +21,7 @@ export declare const selectConsumersNames: ((state: {
|
|
21
21
|
shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
|
22
22
|
authentication: import("./authentication/types").AuthenticationState;
|
23
23
|
header: import("./header/types").HeaderState;
|
24
|
-
|
24
|
+
queryActions: import("./queryActions/types").QueryActionsState;
|
25
25
|
fullscreen: boolean;
|
26
26
|
clusters: import("./clusters/types").ClustersFilters;
|
27
27
|
}, path?: string | undefined) => string[] | undefined) & {
|
@@ -53,7 +53,7 @@ export declare const selectConsumersNames: ((state: {
|
|
53
53
|
shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
|
54
54
|
authentication: import("./authentication/types").AuthenticationState;
|
55
55
|
header: import("./header/types").HeaderState;
|
56
|
-
|
56
|
+
queryActions: import("./queryActions/types").QueryActionsState;
|
57
57
|
fullscreen: boolean;
|
58
58
|
clusters: import("./clusters/types").ClustersFilters;
|
59
59
|
}, path?: string | undefined) => import("../../types/api/consumer").Consumer[] | undefined) & {
|
@@ -78,7 +78,7 @@ export declare const selectConsumersNames: ((state: {
|
|
78
78
|
shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
|
79
79
|
authentication: import("./authentication/types").AuthenticationState;
|
80
80
|
header: import("./header/types").HeaderState;
|
81
|
-
|
81
|
+
queryActions: import("./queryActions/types").QueryActionsState;
|
82
82
|
fullscreen: boolean;
|
83
83
|
clusters: import("./clusters/types").ClustersFilters;
|
84
84
|
}, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
|
@@ -105,7 +105,7 @@ export declare const selectConsumersNames: ((state: {
|
|
105
105
|
shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
|
106
106
|
authentication: import("./authentication/types").AuthenticationState;
|
107
107
|
header: import("./header/types").HeaderState;
|
108
|
-
|
108
|
+
queryActions: import("./queryActions/types").QueryActionsState;
|
109
109
|
fullscreen: boolean;
|
110
110
|
clusters: import("./clusters/types").ClustersFilters;
|
111
111
|
}, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
|
@@ -137,7 +137,7 @@ export declare const selectConsumersNames: ((state: {
|
|
137
137
|
shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
|
138
138
|
authentication: import("./authentication/types").AuthenticationState;
|
139
139
|
header: import("./header/types").HeaderState;
|
140
|
-
|
140
|
+
queryActions: import("./queryActions/types").QueryActionsState;
|
141
141
|
fullscreen: boolean;
|
142
142
|
clusters: import("./clusters/types").ClustersFilters;
|
143
143
|
}, (_state: RootState, path?: string) => (state: import("@reduxjs/toolkit/query").RootState<{
|
@@ -180,7 +180,7 @@ export declare const selectPreparedTopicStats: ((state: {
|
|
180
180
|
shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
|
181
181
|
authentication: import("./authentication/types").AuthenticationState;
|
182
182
|
header: import("./header/types").HeaderState;
|
183
|
-
|
183
|
+
queryActions: import("./queryActions/types").QueryActionsState;
|
184
184
|
fullscreen: boolean;
|
185
185
|
clusters: import("./clusters/types").ClustersFilters;
|
186
186
|
}, path?: string | undefined) => {
|
@@ -232,7 +232,7 @@ export declare const selectPreparedTopicStats: ((state: {
|
|
232
232
|
shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
|
233
233
|
authentication: import("./authentication/types").AuthenticationState;
|
234
234
|
header: import("./header/types").HeaderState;
|
235
|
-
|
235
|
+
queryActions: import("./queryActions/types").QueryActionsState;
|
236
236
|
fullscreen: boolean;
|
237
237
|
clusters: import("./clusters/types").ClustersFilters;
|
238
238
|
}, path?: string | undefined) => import("../../types/api/topic").TopicStats | undefined) & {
|
@@ -257,7 +257,7 @@ export declare const selectPreparedTopicStats: ((state: {
|
|
257
257
|
shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
|
258
258
|
authentication: import("./authentication/types").AuthenticationState;
|
259
259
|
header: import("./header/types").HeaderState;
|
260
|
-
|
260
|
+
queryActions: import("./queryActions/types").QueryActionsState;
|
261
261
|
fullscreen: boolean;
|
262
262
|
clusters: import("./clusters/types").ClustersFilters;
|
263
263
|
}, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
|
@@ -284,7 +284,7 @@ export declare const selectPreparedTopicStats: ((state: {
|
|
284
284
|
shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
|
285
285
|
authentication: import("./authentication/types").AuthenticationState;
|
286
286
|
header: import("./header/types").HeaderState;
|
287
|
-
|
287
|
+
queryActions: import("./queryActions/types").QueryActionsState;
|
288
288
|
fullscreen: boolean;
|
289
289
|
clusters: import("./clusters/types").ClustersFilters;
|
290
290
|
}, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
|
@@ -316,7 +316,7 @@ export declare const selectPreparedTopicStats: ((state: {
|
|
316
316
|
shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
|
317
317
|
authentication: import("./authentication/types").AuthenticationState;
|
318
318
|
header: import("./header/types").HeaderState;
|
319
|
-
|
319
|
+
queryActions: import("./queryActions/types").QueryActionsState;
|
320
320
|
fullscreen: boolean;
|
321
321
|
clusters: import("./clusters/types").ClustersFilters;
|
322
322
|
}, (_state: RootState, path?: string) => (state: import("@reduxjs/toolkit/query").RootState<{
|
@@ -359,7 +359,7 @@ export declare const selectPreparedConsumersData: ((state: {
|
|
359
359
|
shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
|
360
360
|
authentication: import("./authentication/types").AuthenticationState;
|
361
361
|
header: import("./header/types").HeaderState;
|
362
|
-
|
362
|
+
queryActions: import("./queryActions/types").QueryActionsState;
|
363
363
|
fullscreen: boolean;
|
364
364
|
clusters: import("./clusters/types").ClustersFilters;
|
365
365
|
}, path?: string | undefined) => {
|
@@ -415,7 +415,7 @@ export declare const selectPreparedConsumersData: ((state: {
|
|
415
415
|
shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
|
416
416
|
authentication: import("./authentication/types").AuthenticationState;
|
417
417
|
header: import("./header/types").HeaderState;
|
418
|
-
|
418
|
+
queryActions: import("./queryActions/types").QueryActionsState;
|
419
419
|
fullscreen: boolean;
|
420
420
|
clusters: import("./clusters/types").ClustersFilters;
|
421
421
|
}, path?: string | undefined) => import("../../types/api/consumer").Consumer[] | undefined) & {
|
@@ -440,7 +440,7 @@ export declare const selectPreparedConsumersData: ((state: {
|
|
440
440
|
shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
|
441
441
|
authentication: import("./authentication/types").AuthenticationState;
|
442
442
|
header: import("./header/types").HeaderState;
|
443
|
-
|
443
|
+
queryActions: import("./queryActions/types").QueryActionsState;
|
444
444
|
fullscreen: boolean;
|
445
445
|
clusters: import("./clusters/types").ClustersFilters;
|
446
446
|
}, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
|
@@ -467,7 +467,7 @@ export declare const selectPreparedConsumersData: ((state: {
|
|
467
467
|
shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
|
468
468
|
authentication: import("./authentication/types").AuthenticationState;
|
469
469
|
header: import("./header/types").HeaderState;
|
470
|
-
|
470
|
+
queryActions: import("./queryActions/types").QueryActionsState;
|
471
471
|
fullscreen: boolean;
|
472
472
|
clusters: import("./clusters/types").ClustersFilters;
|
473
473
|
}, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
|
@@ -499,7 +499,7 @@ export declare const selectPreparedConsumersData: ((state: {
|
|
499
499
|
shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
|
500
500
|
authentication: import("./authentication/types").AuthenticationState;
|
501
501
|
header: import("./header/types").HeaderState;
|
502
|
-
|
502
|
+
queryActions: import("./queryActions/types").QueryActionsState;
|
503
503
|
fullscreen: boolean;
|
504
504
|
clusters: import("./clusters/types").ClustersFilters;
|
505
505
|
}, (_state: RootState, path?: string) => (state: import("@reduxjs/toolkit/query").RootState<{
|
@@ -98,9 +98,11 @@ export declare const QUERY_INITIAL_MODE_KEY = "query_initial_mode";
|
|
98
98
|
export declare const LAST_USED_QUERY_ACTION_KEY = "last_used_query_action";
|
99
99
|
export declare const PARTITIONS_HIDDEN_COLUMNS_KEY = "partitionsHiddenColumns";
|
100
100
|
export declare const TENANT_INITIAL_PAGE_KEY = "saved_tenant_initial_tab";
|
101
|
-
export declare const
|
101
|
+
export declare const USE_PAGINATED_TABLES_KEY = "useBackendParamsForTables";
|
102
102
|
export declare const QUERY_USE_MULTI_SCHEMA_KEY = "queryUseMultiSchema";
|
103
103
|
export declare const USE_CLUSTER_BALANCER_AS_BACKEND_KEY = "useClusterBalancerAsBacked";
|
104
104
|
export declare const ENABLE_AUTOCOMPLETE = "enableAutocomplete";
|
105
105
|
export declare const AUTOCOMPLETE_ON_ENTER = "autocompleteOnEnter";
|
106
106
|
export declare const IS_HOTKEYS_HELP_HIDDEN_KEY = "isHotKeysHelpHidden";
|
107
|
+
export declare const USE_SEPARATE_DISKS_PAGES_KEY = "useSeparateDisksPages";
|
108
|
+
export declare const USE_DIRECTORY_OPERATIONS = "useDirectoryOperations";
|
package/dist/utils/constants.js
CHANGED
@@ -99,11 +99,14 @@ export const LAST_USED_QUERY_ACTION_KEY = 'last_used_query_action';
|
|
99
99
|
export const PARTITIONS_HIDDEN_COLUMNS_KEY = 'partitionsHiddenColumns';
|
100
100
|
// Remain "tab" in key name for backward compatibility
|
101
101
|
export const TENANT_INITIAL_PAGE_KEY = 'saved_tenant_initial_tab';
|
102
|
-
//
|
103
|
-
|
102
|
+
// Setting to use paginated tables
|
103
|
+
// Old key value for backward compatibility
|
104
|
+
export const USE_PAGINATED_TABLES_KEY = 'useBackendParamsForTables';
|
104
105
|
// Enable schema that supports multiple resultsets
|
105
106
|
export const QUERY_USE_MULTI_SCHEMA_KEY = 'queryUseMultiSchema';
|
106
107
|
export const USE_CLUSTER_BALANCER_AS_BACKEND_KEY = 'useClusterBalancerAsBacked';
|
107
108
|
export const ENABLE_AUTOCOMPLETE = 'enableAutocomplete';
|
108
109
|
export const AUTOCOMPLETE_ON_ENTER = 'autocompleteOnEnter';
|
109
110
|
export const IS_HOTKEYS_HELP_HIDDEN_KEY = 'isHotKeysHelpHidden';
|
111
|
+
export const USE_SEPARATE_DISKS_PAGES_KEY = 'useSeparateDisksPages';
|
112
|
+
export const USE_DIRECTORY_OPERATIONS = 'useDirectoryOperations';
|
@@ -3,17 +3,19 @@ import { calculatePDiskSeverity } from './calculatePDiskSeverity';
|
|
3
3
|
import { calculateVDiskSeverity } from './calculateVDiskSeverity';
|
4
4
|
import { getPDiskType } from './getPDiskType';
|
5
5
|
export function prepareVDiskData(vdiskState = {}) {
|
6
|
-
var _a;
|
6
|
+
var _a, _b;
|
7
7
|
// Prepare PDisk only if it is present
|
8
8
|
const PDisk = vdiskState.PDisk ? preparePDiskData(vdiskState.PDisk) : undefined;
|
9
|
+
const PDiskId = (_a = vdiskState.PDiskId) !== null && _a !== void 0 ? _a : PDisk === null || PDisk === void 0 ? void 0 : PDisk.PDiskId;
|
9
10
|
const AllocatedPercent = calculateVDiskAllocatedPercent(vdiskState.AllocatedSize, vdiskState.AvailableSize, PDisk === null || PDisk === void 0 ? void 0 : PDisk.AvailableSize);
|
10
|
-
const Donors = (
|
11
|
+
const Donors = (_b = vdiskState.Donors) === null || _b === void 0 ? void 0 : _b.map((donor) => {
|
11
12
|
return prepareVDiskData({ ...donor, DonorMode: true });
|
12
13
|
});
|
13
14
|
const Severity = calculateVDiskSeverity(vdiskState);
|
14
15
|
return {
|
15
16
|
...vdiskState,
|
16
17
|
PDisk,
|
18
|
+
PDiskId,
|
17
19
|
AllocatedPercent,
|
18
20
|
Donors,
|
19
21
|
Severity,
|
package/package.json
CHANGED
@@ -1,6 +0,0 @@
|
|
1
|
-
import type { VirtualTableProps } from './VirtualTable';
|
2
|
-
interface ResizeableVirtualTableProps<T> extends Omit<VirtualTableProps<T>, 'onColumnsResize'> {
|
3
|
-
columnsWidthLSKey: string;
|
4
|
-
}
|
5
|
-
export declare function ResizeableVirtualTable<T>({ columnsWidthLSKey, columns, ...props }: ResizeableVirtualTableProps<T>): import("react/jsx-runtime").JSX.Element;
|
6
|
-
export {};
|
@@ -1,4 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"settings.useClusterBalancerAsBackend.title": "Use cluster balancer as backend",
|
3
|
-
"settings.useClusterBalancerAsBackend.popover": "By default random cluster node is used as backend. It causes saved links to become invalid after some time, when node is restarted. Using balancer as backend fixes it"
|
4
|
-
}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"settings.useClusterBalancerAsBackend.title": "Использовать балансер кластера как бэкенд",
|
3
|
-
"settings.useClusterBalancerAsBackend.popover": "По умолчанию в качестве бэкенда используется случайный узел кластера. Это приводит к тому, что сохраненные ссылки становятся невалидными спустя некоторое время, когда узел перезапускается. Использование балансера исправляет это"
|
4
|
-
}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import type { Reducer } from '@reduxjs/toolkit';
|
2
|
-
type IAction = ReturnType<typeof setQueryNameToEdit> | ReturnType<typeof clearQueryNameToEdit>;
|
3
|
-
type ISaveQueryState = string | null;
|
4
|
-
declare const saveQuery: Reducer<ISaveQueryState, IAction>;
|
5
|
-
export declare function setQueryNameToEdit(name: string): {
|
6
|
-
readonly type: "SET_QUERY_NAME_TO_EDIT";
|
7
|
-
readonly data: string;
|
8
|
-
};
|
9
|
-
export declare function clearQueryNameToEdit(): {
|
10
|
-
readonly type: "CLEAR_QUERY_NAME_TO_EDIT";
|
11
|
-
};
|
12
|
-
export default saveQuery;
|