ydb-embedded-ui 6.33.0 → 6.34.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/ConfirmationDialog/ConfirmationDialog.d.ts +21 -0
- package/dist/components/ConfirmationDialog/ConfirmationDialog.js +31 -0
- package/dist/components/ConfirmationDialog/ConfirmationDialog.js.map +1 -0
- package/dist/components/ConfirmationDialog/ConfirmationDialog.scss +6 -0
- package/dist/components/ConfirmationDialog/i18n/en.json +3 -0
- package/dist/components/ConfirmationDialog/i18n/index.d.ts +1 -0
- package/dist/components/ConfirmationDialog/i18n/index.js +5 -0
- package/dist/components/ConfirmationDialog/i18n/index.js.map +1 -0
- package/dist/components/EntityStatus/EntityStatus.js +1 -1
- package/dist/components/EntityStatus/EntityStatus.js.map +1 -1
- package/dist/components/MemoryViewer/MemoryViewer.d.ts +14 -0
- package/dist/components/MemoryViewer/MemoryViewer.js +84 -0
- package/dist/components/MemoryViewer/MemoryViewer.js.map +1 -0
- package/dist/components/MemoryViewer/MemoryViewer.scss +104 -0
- package/dist/components/MemoryViewer/i18n/en.json +11 -0
- package/dist/components/MemoryViewer/i18n/index.d.ts +2 -0
- package/dist/components/MemoryViewer/i18n/index.js +5 -0
- package/dist/components/MemoryViewer/i18n/index.js.map +1 -0
- package/dist/components/MemoryViewer/utils.d.ts +10 -0
- package/dist/components/MemoryViewer/utils.js +71 -0
- package/dist/components/MemoryViewer/utils.js.map +1 -0
- package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/ProgressViewer/ProgressViewer.d.ts +1 -1
- package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/nodesColumns/columns.d.ts +4 -7
- package/dist/components/nodesColumns/columns.js +9 -17
- package/dist/components/nodesColumns/columns.js.map +1 -1
- package/dist/components/nodesColumns/constants.d.ts +4 -5
- package/dist/components/nodesColumns/constants.js +78 -11
- package/dist/components/nodesColumns/constants.js.map +1 -1
- package/dist/components/nodesColumns/i18n/en.json +8 -5
- package/dist/components/nodesColumns/i18n/index.d.ts +1 -1
- package/dist/containers/App/App.d.ts +1 -1
- package/dist/containers/App/Providers.js +2 -1
- package/dist/containers/App/Providers.js.map +1 -1
- package/dist/containers/AsideNavigation/AsideNavigation.d.ts +2 -0
- package/dist/containers/AsideNavigation/AsideNavigation.js +2 -1
- package/dist/containers/AsideNavigation/AsideNavigation.js.map +1 -1
- package/dist/containers/Clusters/constants.d.ts +1 -1
- package/dist/containers/Nodes/columns/columns.js +2 -2
- package/dist/containers/Nodes/columns/columns.js.map +1 -1
- package/dist/containers/Nodes/columns/constants.js +2 -2
- package/dist/containers/Nodes/columns/constants.js.map +1 -1
- package/dist/containers/Nodes/getNodes.js +4 -5
- package/dist/containers/Nodes/getNodes.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/columns.js +3 -3
- package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/constants.d.ts +3 -7
- package/dist/containers/Storage/StorageGroups/columns/constants.js +54 -10
- package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/getGroups.js +3 -5
- package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/columns.js +2 -3
- package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/constants.js +2 -2
- package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/getNodes.js +4 -5
- package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
- package/dist/containers/Storage/utils/index.d.ts +1 -1
- package/dist/containers/Tablets/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +3 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +2 -7
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +3 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.js +5 -1
- package/dist/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +5 -2
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/PlanToSvgButton.d.ts +7 -0
- package/dist/containers/Tenant/Query/ExecuteResult/PlanToSvgButton.js +40 -0
- package/dist/containers/Tenant/Query/ExecuteResult/PlanToSvgButton.js.map +1 -0
- package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +4 -1
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/NewSQL/NewSQL.js +8 -1
- package/dist/containers/Tenant/Query/NewSQL/NewSQL.js.map +1 -1
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +3 -1
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.d.ts +2 -27
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +32 -51
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js.map +1 -1
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.d.ts +9 -3
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js +23 -12
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js.map +1 -1
- package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.js +8 -3
- package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.js.map +1 -1
- package/dist/containers/Tenant/utils/newSQLQueryActions.d.ts +1 -1
- package/dist/containers/Tenant/utils/newSQLQueryActions.js +2 -3
- package/dist/containers/Tenant/utils/newSQLQueryActions.js.map +1 -1
- package/dist/containers/Tenant/utils/schemaActions.d.ts +1 -0
- package/dist/containers/Tenant/utils/schemaActions.js +59 -40
- package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
- package/dist/containers/Tenant/utils/schemaQueryTemplates.js +1 -1
- package/dist/containers/UserSettings/i18n/en.json +2 -0
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.d.ts +1 -0
- package/dist/containers/UserSettings/settings.js +7 -2
- package/dist/containers/UserSettings/settings.js.map +1 -1
- package/dist/services/api.d.ts +4 -0
- package/dist/services/api.js +11 -0
- package/dist/services/api.js.map +1 -1
- package/dist/services/settings.d.ts +1 -0
- package/dist/services/settings.js +2 -1
- package/dist/services/settings.js.map +1 -1
- package/dist/store/configureStore.d.ts +25 -11
- package/dist/store/defaultStore.d.ts +12 -5
- package/dist/store/reducers/capabilities/capabilities.d.ts +48 -8
- package/dist/store/reducers/cluster/cluster.d.ts +36 -6
- package/dist/store/reducers/executeQuery.d.ts +41 -51
- package/dist/store/reducers/executeQuery.js +64 -160
- package/dist/store/reducers/executeQuery.js.map +1 -1
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +120 -20
- package/dist/store/reducers/index.d.ts +19 -10
- package/dist/store/reducers/node/selectors.d.ts +6 -1
- package/dist/store/reducers/nodes/utils.d.ts +1 -1
- package/dist/store/reducers/nodesList.d.ts +6 -1
- package/dist/store/reducers/planToSvg.d.ts +8 -0
- package/dist/store/reducers/planToSvg.js +21 -0
- package/dist/store/reducers/planToSvg.js.map +1 -0
- package/dist/store/reducers/queryActions/queryActions.d.ts +0 -27
- package/dist/store/reducers/queryActions/queryActions.js +1 -1
- package/dist/store/reducers/queryActions/queryActions.js.map +1 -1
- package/dist/store/reducers/schema/schema.d.ts +22 -7
- package/dist/store/reducers/schema/schema.js +16 -20
- package/dist/store/reducers/schema/schema.js.map +1 -1
- package/dist/store/reducers/tablets.d.ts +30 -5
- package/dist/store/reducers/tenantOverview/topShards/utils.d.ts +1 -1
- package/dist/store/reducers/tenants/selectors.d.ts +54 -9
- package/dist/store/reducers/tooltip.d.ts +1 -1
- package/dist/store/reducers/topic.d.ts +90 -15
- package/dist/store/reducers/trace.d.ts +1 -1
- package/dist/store/reducers/trace.js +1 -1
- package/dist/store/reducers/trace.js.map +1 -1
- package/dist/types/api/nodes.d.ts +18 -4
- package/dist/types/api/nodes.js.map +1 -1
- package/dist/types/store/executeQuery.d.ts +3 -6
- package/dist/types/store/executeQuery.js.map +1 -1
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/constants.js +1 -0
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/hooks/withConfirmation/i18n/en.json +4 -0
- package/dist/utils/hooks/withConfirmation/i18n/index.d.ts +2 -0
- package/dist/utils/hooks/withConfirmation/i18n/index.js +5 -0
- package/dist/utils/hooks/withConfirmation/i18n/index.js.map +1 -0
- package/dist/utils/hooks/withConfirmation/useChangeInputWithConfirmation.d.ts +3 -0
- package/dist/utils/hooks/withConfirmation/useChangeInputWithConfirmation.js +53 -0
- package/dist/utils/hooks/withConfirmation/useChangeInputWithConfirmation.js.map +1 -0
- package/dist/utils/nodes.d.ts +1 -4
- package/dist/utils/nodes.js +0 -36
- package/dist/utils/nodes.js.map +1 -1
- package/dist/utils/query.d.ts +1 -1
- package/dist/utils/storage.d.ts +1 -3
- package/dist/utils/storage.js +0 -17
- package/dist/utils/storage.js.map +1 -1
- package/package.json +2 -1
@@ -0,0 +1,53 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import React from 'react';
|
3
|
+
import NiceModal from '@ebay/nice-modal-react';
|
4
|
+
import { useTypedSelector } from '..';
|
5
|
+
import { CONFIRMATION_DIALOG } from '../../../components/ConfirmationDialog/ConfirmationDialog';
|
6
|
+
import { SaveQueryButton, SaveQueryDialog, } from '../../../containers/Tenant/Query/SaveQuery/SaveQuery';
|
7
|
+
import { selectUserInput } from '../../../store/reducers/executeQuery';
|
8
|
+
import i18n from './i18n';
|
9
|
+
function ExtendedSaveQueryButton() {
|
10
|
+
const modal = NiceModal.useModal(CONFIRMATION_DIALOG);
|
11
|
+
const closeModal = () => {
|
12
|
+
modal.hide();
|
13
|
+
modal.remove();
|
14
|
+
};
|
15
|
+
const handleSaveQuerySuccess = () => {
|
16
|
+
modal.resolve(true);
|
17
|
+
closeModal();
|
18
|
+
};
|
19
|
+
const handleCancelQuerySave = () => {
|
20
|
+
modal.resolve(false);
|
21
|
+
closeModal();
|
22
|
+
};
|
23
|
+
return (_jsxs(React.Fragment, { children: [_jsx(SaveQueryDialog, { onSuccess: handleSaveQuerySuccess, onCancel: handleCancelQuerySave }), _jsx(SaveQueryButton, { view: "action", size: "l" })] }));
|
24
|
+
}
|
25
|
+
export async function getConfirmation() {
|
26
|
+
return await NiceModal.show(CONFIRMATION_DIALOG, {
|
27
|
+
id: CONFIRMATION_DIALOG,
|
28
|
+
caption: i18n('context_unsaved-changes-warning'),
|
29
|
+
textButtonApply: i18n('action_apply'),
|
30
|
+
propsButtonApply: { view: 'l' },
|
31
|
+
renderButtons: (buttonApply, buttonCancel) => {
|
32
|
+
return (_jsxs(React.Fragment, { children: [buttonCancel, _jsx(ExtendedSaveQueryButton, {}), buttonApply] }));
|
33
|
+
},
|
34
|
+
});
|
35
|
+
}
|
36
|
+
export function changeInputWithConfirmation(callback) {
|
37
|
+
return async (args) => {
|
38
|
+
const confirmed = await getConfirmation();
|
39
|
+
if (!confirmed) {
|
40
|
+
return;
|
41
|
+
}
|
42
|
+
callback(args);
|
43
|
+
};
|
44
|
+
}
|
45
|
+
export function useChangeInputWithConfirmation(callback) {
|
46
|
+
const userInput = useTypedSelector(selectUserInput);
|
47
|
+
const callbackWithConfirmation = React.useMemo(() => changeInputWithConfirmation(callback), [callback]);
|
48
|
+
if (!userInput) {
|
49
|
+
return callback;
|
50
|
+
}
|
51
|
+
return callbackWithConfirmation;
|
52
|
+
}
|
53
|
+
//# sourceMappingURL=useChangeInputWithConfirmation.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useChangeInputWithConfirmation.js","sourceRoot":"","sources":["../../../../src/utils/hooks/withConfirmation/useChangeInputWithConfirmation.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAE/C,OAAO,EAAC,gBAAgB,EAAC,MAAM,IAAI,CAAC;AACpC,OAAO,EAAC,mBAAmB,EAAC,MAAM,2DAA2D,CAAC;AAC9F,OAAO,EACH,eAAe,EACf,eAAe,GAClB,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAC,MAAM,sCAAsC,CAAC;AAErE,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,SAAS,uBAAuB;IAC5B,MAAM,KAAK,GAAG,SAAS,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;IAEtD,MAAM,UAAU,GAAG,GAAG,EAAE;QACpB,KAAK,CAAC,IAAI,EAAE,CAAC;QACb,KAAK,CAAC,MAAM,EAAE,CAAC;IACnB,CAAC,CAAC;IACF,MAAM,sBAAsB,GAAG,GAAG,EAAE;QAChC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACpB,UAAU,EAAE,CAAC;IACjB,CAAC,CAAC;IACF,MAAM,qBAAqB,GAAG,GAAG,EAAE;QAC/B,KAAK,CAAC,OAAO,CA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ACF,IAAI,CAAC,SAAS,EAAE,CAAC;QACb,OAAO,QAAQ,CAAC;IACpB,CAAC;IACD,OAAO,wBAAwB,CAAC;AACpC,CAAC"}
|
package/dist/utils/nodes.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
import type { ProblemFilterValue } from '../store/reducers/settings/types';
|
3
|
-
import type {
|
3
|
+
import type { TSystemStateInfo } from '../types/api/nodes';
|
4
4
|
import type { TNodeInfo } from '../types/api/nodesList';
|
5
5
|
import type { NodeHostsMap } from '../types/store/nodesList';
|
6
6
|
export declare enum NodesUptimeFilterValues {
|
@@ -27,6 +27,3 @@ export interface PreparedNodeSystemState extends TSystemStateInfo {
|
|
27
27
|
export declare const prepareNodeSystemState: (systemState?: TSystemStateInfo) => PreparedNodeSystemState;
|
28
28
|
export declare const getProblemParamValue: (problemFilter: ProblemFilterValue | undefined) => problemFilter is "With problems";
|
29
29
|
export declare const getUptimeParamValue: (nodesUptimeFilter: NodesUptimeFilterValues | undefined) => number | undefined;
|
30
|
-
export declare const NODES_SORT_VALUES: NodesSortValue[];
|
31
|
-
export declare const NODES_SORT_VALUE_TO_FIELD: Record<NodesSortValue, NodesSortValue>;
|
32
|
-
export declare const isSortableNodesProperty: (value: unknown) => value is NodesSortValue;
|
package/dist/utils/nodes.js
CHANGED
@@ -64,40 +64,4 @@ export const getProblemParamValue = (problemFilter) => {
|
|
64
64
|
export const getUptimeParamValue = (nodesUptimeFilter) => {
|
65
65
|
return nodesUptimeFilter === NodesUptimeFilterValues.SmallUptime ? HOUR_IN_SECONDS : undefined;
|
66
66
|
};
|
67
|
-
export const NODES_SORT_VALUES = [
|
68
|
-
'NodeId',
|
69
|
-
'Host',
|
70
|
-
'NodeName',
|
71
|
-
'DC',
|
72
|
-
'Rack',
|
73
|
-
'Version',
|
74
|
-
'Uptime',
|
75
|
-
'CPU',
|
76
|
-
'LoadAverage',
|
77
|
-
'Memory',
|
78
|
-
`Missing`,
|
79
|
-
`DiskSpaceUsage`,
|
80
|
-
`Database`,
|
81
|
-
'Pools',
|
82
|
-
'RAM',
|
83
|
-
];
|
84
|
-
// Maps column names to actual fields on backend for sorting.
|
85
|
-
export const NODES_SORT_VALUE_TO_FIELD = {
|
86
|
-
NodeId: 'NodeId',
|
87
|
-
Host: 'Host',
|
88
|
-
NodeName: 'NodeName',
|
89
|
-
DC: 'DC',
|
90
|
-
Rack: 'Rack',
|
91
|
-
Version: 'Version',
|
92
|
-
Uptime: 'Uptime',
|
93
|
-
CPU: 'CPU',
|
94
|
-
LoadAverage: 'LoadAverage',
|
95
|
-
Memory: 'Memory',
|
96
|
-
Missing: 'Missing',
|
97
|
-
DiskSpaceUsage: 'DiskSpaceUsage',
|
98
|
-
Database: 'Database',
|
99
|
-
Pools: 'CPU',
|
100
|
-
RAM: 'Memory',
|
101
|
-
};
|
102
|
-
export const isSortableNodesProperty = (value) => NODES_SORT_VALUES.includes(value);
|
103
67
|
//# sourceMappingURL=nodes.js.map
|
package/dist/utils/nodes.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../src/utils/nodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAC,mBAAmB,EAAC,MAAM,qCAAqC,CAAC;AAExE,OAAO,EAAC,KAAK,EAAC,MAAM,oBAAoB,CAAC;AAKzC,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAC,UAAU,EAAC,MAAM,iCAAiC,CAAC;AAE3D,OAAO,EAAC,cAAc,EAAC,MAAM,GAAG,CAAC;AAEjC,MAAM,CAAN,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAC/B,sCAAa,CAAA;IACb,sDAA6B,CAAA;AACjC,CAAC,EAHW,uBAAuB,KAAvB,uBAAuB,QAGlC;AAED,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC;KAC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C,gBAAgB,0CAAE,SAAS,CAAC;QAC3E,CAAC,CAAC,MAAM,CAAC,MAAA,WAAW,CAAC,gBAAgB,0CAAE,SAAS,CAAC;QACjD,CAAC,CAAC,SAAS,CAAC;IAEhB,OAAO;QACH,GAAG,WAAW;QACd,IAAI;QACJ,EAAE;QACF,MAAM;QACN,mBAAmB;QACnB,UAAU;QACV,gBAAgB;QAChB,eAAe;KAClB,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,aAA6C,EAAE,EAAE;IAClF,OAAO,aAAa,KAAK,mBAAmB,CAAC,QAAQ,CAAC;AAC1D,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,iBAAsD,EAAE,EAAE;IAC1F,OAAO,iBAAiB,KAAK,uBAAuB,CAAC,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;AACnG,CAAC,CAAC"}
|
package/dist/utils/query.d.ts
CHANGED
@@ -41,7 +41,7 @@ export declare const QUERY_SYNTAX: {
|
|
41
41
|
readonly yql: "yql_v1";
|
42
42
|
readonly pg: "pg";
|
43
43
|
};
|
44
|
-
export declare const getColumnType: (type: string) => "
|
44
|
+
export declare const getColumnType: (type: string) => "boolean" | "number" | "string" | "date" | undefined;
|
45
45
|
type UnsupportedQueryResponseFormat = Array<unknown> | string | null | undefined | {
|
46
46
|
result: string | Record<string, unknown>;
|
47
47
|
};
|
package/dist/utils/storage.d.ts
CHANGED
@@ -1,9 +1,7 @@
|
|
1
|
-
import type { StorageV2SortValue } from '../types/api/storage';
|
2
1
|
interface EntityWithUsage {
|
3
2
|
Used: number;
|
4
3
|
Limit: number;
|
5
4
|
}
|
6
5
|
export declare const getUsage: <T extends EntityWithUsage>(data: T, step?: number) => number;
|
7
|
-
export declare const getSpaceUsageSeverity: (value: number) => "
|
8
|
-
export declare const isSortableStorageProperty: (value: unknown) => value is StorageV2SortValue;
|
6
|
+
export declare const getSpaceUsageSeverity: (value: number) => "warning" | "danger" | "success" | undefined;
|
9
7
|
export {};
|
package/dist/utils/storage.js
CHANGED
@@ -5,21 +5,4 @@ export const getUsage = (data, step = 1) => {
|
|
5
5
|
return Math.floor(usage / step) * step;
|
6
6
|
};
|
7
7
|
export const getSpaceUsageSeverity = generateEvaluator(80, 85, ['success', 'warning', 'danger']);
|
8
|
-
const STORAGE_SORT_VALUES = [
|
9
|
-
'PoolName',
|
10
|
-
'Kind',
|
11
|
-
'MediaType',
|
12
|
-
'Erasure',
|
13
|
-
'Degraded',
|
14
|
-
'Usage',
|
15
|
-
'GroupId',
|
16
|
-
'Used',
|
17
|
-
'Limit',
|
18
|
-
'Read',
|
19
|
-
'Write',
|
20
|
-
'AllocationUnits',
|
21
|
-
'Latency',
|
22
|
-
'DiskSpaceUsage',
|
23
|
-
];
|
24
|
-
export const isSortableStorageProperty = (value) => STORAGE_SORT_VALUES.includes(value);
|
25
8
|
//# sourceMappingURL=storage.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../src/utils/storage.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../src/utils/storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAOtD,MAAM,CAAC,MAAM,QAAQ,GAAG,CAA4B,IAAO,EAAE,IAAI,GAAG,CAAC,EAAE,EAAE;IACrE,2BAA2B;IAC3B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAE9D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;AAC3C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,iBAAiB,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ydb-embedded-ui",
|
3
|
-
"version": "6.
|
3
|
+
"version": "6.34.0",
|
4
4
|
"files": [
|
5
5
|
"dist"
|
6
6
|
],
|
@@ -119,6 +119,7 @@
|
|
119
119
|
"devDependencies": {
|
120
120
|
"@commitlint/cli": "^19.3.0",
|
121
121
|
"@commitlint/config-conventional": "^19.2.2",
|
122
|
+
"@ebay/nice-modal-react": "^1.2.13",
|
122
123
|
"@gravity-ui/browserslist-config": "^4.3.0",
|
123
124
|
"@gravity-ui/eslint-config": "^3.2.0",
|
124
125
|
"@gravity-ui/prettier-config": "^1.1.0",
|