ydb-embedded-ui 8.0.0 → 8.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/CellWithPopover/CellWithPopover.js +1 -1
- package/dist/components/CellWithPopover/CellWithPopover.js.map +1 -1
- package/dist/components/CellWithPopover/CellWithPopover.scss +5 -1
- package/dist/components/FullNodeViewer/FullNodeViewer.js +5 -1
- package/dist/components/FullNodeViewer/FullNodeViewer.js.map +1 -1
- package/dist/components/Stack/Stack.scss +1 -1
- package/dist/components/Table/Table.scss +1 -1
- package/dist/components/TooltipsContent/TabletTooltipContent/TabletTooltipContent.js +4 -2
- package/dist/components/TooltipsContent/TabletTooltipContent/TabletTooltipContent.js.map +1 -1
- package/dist/components/UptimeViewer/UptimeViewer.d.ts +10 -0
- package/dist/components/UptimeViewer/UptimeViewer.js +30 -0
- package/dist/components/UptimeViewer/UptimeViewer.js.map +1 -0
- package/dist/components/UptimeViewer/i18n/en.json +5 -0
- package/dist/components/UptimeViewer/i18n/index.d.ts +2 -0
- package/dist/components/UptimeViewer/i18n/index.js +5 -0
- package/dist/components/UptimeViewer/i18n/index.js.map +1 -0
- package/dist/components/nodesColumns/columns.d.ts +1 -1
- package/dist/components/nodesColumns/columns.js +4 -1
- package/dist/components/nodesColumns/columns.js.map +1 -1
- package/dist/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.js +4 -2
- package/dist/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.js.map +1 -1
- package/dist/containers/AppWithClusters/useClusterData.d.ts +0 -1
- package/dist/containers/AppWithClusters/useClusterData.js +1 -2
- package/dist/containers/AppWithClusters/useClusterData.js.map +1 -1
- package/dist/containers/Cluster/Cluster.js +4 -2
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Clusters/constants.d.ts +1 -1
- package/dist/containers/Storage/Disks/Disks.scss +1 -1
- package/dist/containers/Storage/PDisk/PDisk.d.ts +2 -1
- package/dist/containers/Storage/PDisk/PDisk.js +7 -2
- package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
- package/dist/containers/Storage/PDisk/PDisk.scss +21 -7
- package/dist/containers/Storage/StorageNodes/columns/StorageNodesColumns.scss +5 -11
- package/dist/containers/Storage/StorageNodes/columns/columns.js +1 -1
- package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -1
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js +2 -2
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js.map +1 -1
- package/dist/containers/Tablet/components/TabletTable/TabletTable.js +5 -2
- package/dist/containers/Tablet/components/TabletTable/TabletTable.js.map +1 -1
- package/dist/containers/Tablets/TabletsTable.js +3 -2
- package/dist/containers/Tablets/TabletsTable.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/HotKeys/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/columns/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/columns.js +2 -2
- package/dist/containers/Tenant/utils/schemaQueryTemplates.js +1 -1
- package/dist/services/api/meta.d.ts +0 -1
- package/dist/services/api/meta.js +0 -6
- package/dist/services/api/meta.js.map +1 -1
- package/dist/services/parsers/parseMetaCluster.d.ts +0 -3
- package/dist/services/parsers/parseMetaCluster.js +0 -16
- package/dist/services/parsers/parseMetaCluster.js.map +1 -1
- package/dist/store/reducers/cluster/cluster.js +7 -5
- package/dist/store/reducers/cluster/cluster.js.map +1 -1
- package/dist/store/reducers/nodes/types.d.ts +0 -1
- package/dist/store/reducers/storage/types.d.ts +1 -0
- package/dist/store/reducers/storage/utils.d.ts +2 -1
- package/dist/store/reducers/storage/utils.js +12 -3
- package/dist/store/reducers/storage/utils.js.map +1 -1
- package/dist/types/api/cluster.d.ts +0 -6
- package/dist/types/api/cluster.js.map +1 -1
- package/dist/types/api/nodes.d.ts +2 -0
- package/dist/types/api/nodes.js.map +1 -1
- package/dist/utils/dataFormatters/__test__/formatUptime.test.js +6 -4
- package/dist/utils/dataFormatters/__test__/formatUptime.test.js.map +1 -1
- package/dist/utils/dataFormatters/dataFormatters.d.ts +8 -5
- package/dist/utils/dataFormatters/dataFormatters.js +8 -5
- package/dist/utils/dataFormatters/dataFormatters.js.map +1 -1
- package/dist/utils/monaco/insertSnippet.d.ts +1 -1
- package/dist/utils/monaco/insertSnippet.js +20 -2
- package/dist/utils/monaco/insertSnippet.js.map +1 -1
- package/dist/utils/monaco/yql/generateSuggestions.d.ts +8 -0
- package/dist/utils/monaco/yql/generateSuggestions.js +28 -11
- package/dist/utils/monaco/yql/generateSuggestions.js.map +1 -1
- package/dist/utils/monaco/yql/yqlSuggestions.js +6 -1
- package/dist/utils/monaco/yql/yqlSuggestions.js.map +1 -1
- package/dist/utils/nodes.d.ts +0 -1
- package/dist/utils/nodes.js +0 -9
- package/dist/utils/nodes.js.map +1 -1
- package/package.json +2 -2
- package/dist/store/reducers/storage/__test__/prepareGroupsDisks.test.d.ts +0 -1
- package/dist/store/reducers/storage/__test__/prepareGroupsDisks.test.js +0 -354
- package/dist/store/reducers/storage/__test__/prepareGroupsDisks.test.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TabletInfo.js","sourceRoot":"","sources":["../../../../../src/containers/Tablet/components/TabletInfo/TabletInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAC;AAGtC,OAAO,EAAC,UAAU,EAAC,MAAM,mCAAmC,CAAC;AAC7D,OAAO,EAAC,YAAY,EAAC,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAC,WAAW,EAAC,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"TabletInfo.js","sourceRoot":"","sources":["../../../../../src/containers/Tablet/components/TabletInfo/TabletInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,IAAI,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IACL,CACT,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,MAAC,IAAI,IAAC,GAAG,EAAE,EAAE,EAAE,IAAI,EAAC,QAAQ,aACvB,gBAAgB,EAAE,EAClB,WAAW,EAAE,IACX,CACV,CAAC;AACN,CAAC,CAAC"}
|
@@ -4,7 +4,7 @@ import { EntityStatus } from '../../../../components/EntityStatus/EntityStatus';
|
|
4
4
|
import { InternalLink } from '../../../../components/InternalLink/InternalLink';
|
5
5
|
import { ResizeableDataTable } from '../../../../components/ResizeableDataTable/ResizeableDataTable';
|
6
6
|
import { TabletState } from '../../../../components/TabletState/TabletState';
|
7
|
-
import {
|
7
|
+
import { TabletUptime } from '../../../../components/UptimeViewer/UptimeViewer';
|
8
8
|
import { getDefaultNodePath } from '../../../Node/NodePages';
|
9
9
|
const TABLET_COLUMNS_WIDTH_LS_KEY = 'tabletTableColumnsWidth';
|
10
10
|
const columns = [
|
@@ -17,7 +17,10 @@ const columns = [
|
|
17
17
|
name: 'Change time',
|
18
18
|
align: DataTable.RIGHT,
|
19
19
|
sortable: false,
|
20
|
-
render: ({ row }) =>
|
20
|
+
render: ({ row }) => {
|
21
|
+
return _jsx(TabletUptime, { ChangeTime: row.changeTime });
|
22
|
+
},
|
23
|
+
width: 120,
|
21
24
|
},
|
22
25
|
{
|
23
26
|
name: 'State',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TabletTable.js","sourceRoot":"","sources":["../../../../../src/containers/Tablet/components/TabletTable/TabletTable.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAErD,OAAO,EAAC,YAAY,EAAC,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAC,YAAY,EAAC,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAC,mBAAmB,EAAC,MAAM,gEAAgE,CAAC;AACnG,OAAO,EAAC,WAAW,EAAC,MAAM,gDAAgD,CAAC;
|
1
|
+
{"version":3,"file":"TabletTable.js","sourceR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C,GAAG,CAAC,UAAU,CAAC;QAClD,CAAC;KACJ;IACD;QACI,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,SAAS,CAAC,KAAK;QACtB,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,CAAC,EAAC,GAAG,EAAC,EAAE,EAAE;YACd,OAAO,KAAC,YAAY,IAAC,EAAE,EAAE,kBAAkB,CAAC,GAAG,CAAC,MAAM,CAAC,YAAG,GAAG,CAAC,MAAM,GAAgB,CAAC;QACzF,CAAC;KACJ;IACD;QACI,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,CAAC,EAAC,GAAG,EAAC,EAAE,EAAE;YACd,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;gBACZ,OAAO,oCAAc,CAAC;YAC1B,CAAC;YACD,OAAO,KAAC,YAAY,IAAC,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,kBAAkB,SAAG,CAAC;QAClF,CAAC;KACJ;CACJ,CAAC;AAEF,MAAM,cAAc,GAAG;IACnB,cAAc,EAAE,KAAK;CACxB,CAAC;AAMF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAC,OAAO,EAAmB,EAAE,EAAE;IACvD,OAAO,CACH,KAAC,mBAAmB,IAChB,iBAAiB,EAAE,2BAA2B,EAC9C,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,cAAc,EACxB,gBAAgB,EAAE;YACd,QAAQ,EAAE,YAAY;YACtB,KAAK,EAAE,SAAS,CAAC,UAAU;SAC9B,GACH,CACL,CAAC;AACN,CAAC,CAAC"}
|
@@ -8,11 +8,11 @@ import { ResizeableDataTable } from '../../components/ResizeableDataTable/Resize
|
|
8
8
|
import { TableSkeleton } from '../../components/TableSkeleton/TableSkeleton';
|
9
9
|
import { TabletNameWrapper } from '../../components/TabletNameWrapper/TabletNameWrapper';
|
10
10
|
import { TabletState } from '../../components/TabletState/TabletState';
|
11
|
+
import { TabletUptime } from '../../components/UptimeViewer/UptimeViewer';
|
11
12
|
import { selectIsUserAllowedToMakeChanges } from '../../store/reducers/authentication/authentication';
|
12
13
|
import { tabletApi } from '../../store/reducers/tablet';
|
13
14
|
import { ETabletState } from '../../types/api/tablet';
|
14
15
|
import { DEFAULT_TABLE_SETTINGS, EMPTY_DATA_PLACEHOLDER } from '../../utils/constants';
|
15
|
-
import { getUptimeFromDateFormatted } from '../../utils/dataFormatters/dataFormatters';
|
16
16
|
import { useTypedSelector } from '../../utils/hooks';
|
17
17
|
import { getDefaultNodePath } from '../Node/NodePages';
|
18
18
|
import i18n from './i18n';
|
@@ -87,10 +87,11 @@ function getColumns({ database }) {
|
|
87
87
|
return i18n('Uptime');
|
88
88
|
},
|
89
89
|
render: ({ row }) => {
|
90
|
-
return
|
90
|
+
return _jsx(TabletUptime, { ChangeTime: row.ChangeTime });
|
91
91
|
},
|
92
92
|
sortAccessor: (row) => -Number(row.ChangeTime),
|
93
93
|
align: 'right',
|
94
|
+
width: 120,
|
94
95
|
},
|
95
96
|
{
|
96
97
|
name: 'Actions',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TabletsTable.js","sourceRoot":"","sources":["../../../src/containers/Tablets/TabletsTable.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EAAC,YAAY,EAAC,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAC,mBAAmB,EAAC,MAAM,0DAA0D,CAAC;AAC7F,OAAO,EAAC,aAAa,EAAC,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAC,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AI,IAAC,IAAI,EAAE,eAAe,GAAI,GACT,CAC7B,CAAC;AACN,CAAC;AAWD,MAAM,UAAU,YAAY,CAAC,EAAC,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAoB;IACnF,IAAI,OAAO,EAAE,CAAC;QACV,OAAO,KAAC,aAAa,KAAG,CAAC;IAC7B,CAAC;IACD,OAAO,CACH,KAAC,mBAAmB,IAChB,gBAAgB,EAAE,SAAS,EAC3B,OAAO,EAAE,UAAU,CAAC,EAAC,QAAQ,EAAC,CAAC,EAC/B,IAAI,EAAE,OAAO,EACb,QAAQ,EAAE,sBAAsB,EAChC,gBAAgB,EAAE,IAAI,CAAC,eAAe,CAAC,GACzC,CACL,CAAC;AACN,CAAC"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: (key: "no-data" | "hot-keys-collecting"
|
1
|
+
declare const _default: (key: "no-data" | "help" | "hot-keys-collecting", params?: import("@gravity-ui/i18n").Params) => string;
|
2
2
|
export default _default;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: (key: "user" | "application" | "duration" | "cpu-time" | "read-rows" | "read-bytes" | "query-hash" | "
|
1
|
+
declare const _default: (key: "user" | "application" | "start-time" | "duration" | "cpu-time" | "read-rows" | "read-bytes" | "query-hash" | "end-time" | "query-text", params?: import("@gravity-ui/i18n").Params) => string;
|
2
2
|
export default _default;
|
@@ -26,7 +26,7 @@ const nameColumn = {
|
|
26
26
|
get header() {
|
27
27
|
return i18n('column-title.name');
|
28
28
|
},
|
29
|
-
width:
|
29
|
+
width: 120,
|
30
30
|
render: ({ row }) => row.name,
|
31
31
|
};
|
32
32
|
const typeColumn = {
|
@@ -96,7 +96,7 @@ const compressionColumn = {
|
|
96
96
|
get header() {
|
97
97
|
return i18n('column-title.compression');
|
98
98
|
},
|
99
|
-
width:
|
99
|
+
width: 130,
|
100
100
|
render: ({ row }) => row.columnCodec,
|
101
101
|
};
|
102
102
|
export function getViewColumns() {
|
@@ -159,7 +159,7 @@ export const dropTopicTemplate = (params) => {
|
|
159
159
|
return `DROP TOPIC ${path};`;
|
160
160
|
};
|
161
161
|
export const createViewTemplate = (params) => {
|
162
|
-
const path = (params === null || params === void 0 ? void 0 : params.relativePath) ? `\`${params === null || params === void 0 ? void 0 : params.relativePath}
|
162
|
+
const path = (params === null || params === void 0 ? void 0 : params.relativePath) ? `\`${params === null || params === void 0 ? void 0 : params.relativePath}/my_view\`` : '${1:my_view}';
|
163
163
|
return `CREATE VIEW ${path} WITH (security_invoker = TRUE) AS SELECT 1;`;
|
164
164
|
};
|
165
165
|
export const dropViewTemplate = (params) => {
|
@@ -6,7 +6,6 @@ export declare class MetaAPI extends BaseYdbAPI {
|
|
6
6
|
getClustersList(_?: never, { signal }?: {
|
7
7
|
signal?: AbortSignal;
|
8
8
|
}): Promise<MetaClusters>;
|
9
|
-
getClusterInfo(clusterName?: string, { signal }?: AxiosOptions): Promise<import("../../types/api/cluster").TClusterInfoV1 | import("../../types/api/cluster").TClusterInfoV2>;
|
10
9
|
getTenants(clusterName?: string, { signal }?: AxiosOptions): Promise<import("../../types/api/tenant").TTenantInfo>;
|
11
10
|
getClusterBaseInfo(clusterName: string, { concurrentId, signal }?: AxiosOptions): Promise<MetaBaseClusterInfo>;
|
12
11
|
}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { metaBackend as META_BACKEND } from '../../store';
|
2
|
-
import { parseMetaCluster } from '../parsers/parseMetaCluster';
|
3
2
|
import { parseMetaTenants } from '../parsers/parseMetaTenants';
|
4
3
|
import { BaseYdbAPI } from './base';
|
5
4
|
export class MetaAPI extends BaseYdbAPI {
|
@@ -11,11 +10,6 @@ export class MetaAPI extends BaseYdbAPI {
|
|
11
10
|
requestConfig: { signal },
|
12
11
|
});
|
13
12
|
}
|
14
|
-
getClusterInfo(clusterName, { signal } = {}) {
|
15
|
-
return this.get(this.getPath('/meta/cluster'), {
|
16
|
-
name: clusterName,
|
17
|
-
}, { concurrentId: `getCluster${clusterName}`, requestConfig: { signal } }).then(parseMetaCluster);
|
18
|
-
}
|
19
13
|
getTenants(clusterName, { signal } = {}) {
|
20
14
|
return this.get(this.getPath('/meta/cp_databases'), {
|
21
15
|
cluster_name: clusterName,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/services/api/meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,IAAI,YAAY,EAAC,MAAM,aAAa,CAAC;
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/services/api/meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,IAAI,YAAY,EAAC,MAAM,aAAa,CAAC;AAOxD,OAAO,EAAC,gBAAgB,EAAC,MAAM,6BAA6B,CAAC;AAG7D,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAElC,MAAM,OAAO,OAAQ,SAAQ,UAAU;IACnC,OAAO,CAAC,IAAY;QAChB,OAAO,GAAG,YAAY,aAAZ,YAAY,cAAZ,YAAY,GAAI,EAAE,GAAG,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,eAAe,CAAC,CAAS,EAAE,EAAC,MAAM,KAA4B,EAAE;QAC5D,OAAO,IAAI,CAAC,GAAG,CAAe,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE,IAAI,EAAE;YAChE,aAAa,EAAE,EAAC,MAAM,EAAC;SAC1B,CAAC,CAAC;IACP,CAAC;IAED,UAAU,CAAC,WAAoB,EAAE,EAAC,MAAM,KAAkB,EAAE;QACxD,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,EAClC;YACI,YAAY,EAAE,WAAW;SAC5B,EACD,EAAC,aAAa,EAAE,EAAC,MAAM,EAAC,EAAC,CAC5B,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAC7B,CAAC;IAED,kBAAkB,CACd,WAAmB,EACnB,EAAC,YAAY,EAAE,MAAM,KAAkB,EAAE;QAEzC,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,EACjC;YACI,IAAI,EAAE,WAAW;SACpB,EACD,EAAC,YAAY,EAAE,aAAa,EAAE,EAAC,MAAM,EAAC,EAAC,CAC1C,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IACvC,CAAC;CACJ"}
|
@@ -1,6 +1,3 @@
|
|
1
|
-
import type { TClusterInfo } from '../../types/api/cluster';
|
2
|
-
import type { MetaCluster } from '../../types/api/meta';
|
3
|
-
export declare const parseMetaCluster: (data: MetaCluster) => TClusterInfo;
|
4
1
|
export declare function parseTraceFields({ traceCheck, traceView, }: {
|
5
2
|
traceCheck?: string;
|
6
3
|
traceView?: string;
|
@@ -1,20 +1,4 @@
|
|
1
1
|
import { traceCheckSchema, traceViewSchema } from '../../types/api/trace';
|
2
|
-
export const parseMetaCluster = (data) => {
|
3
|
-
const { cluster = {} } = data;
|
4
|
-
const { cluster: generalClusterInfo, balancer, solomon, trace_check: traceCheck, trace_view: traceView, } = cluster;
|
5
|
-
const { traceCheck: TraceCheck, traceView: TraceView } = parseTraceFields({
|
6
|
-
traceCheck,
|
7
|
-
traceView,
|
8
|
-
});
|
9
|
-
return {
|
10
|
-
...generalClusterInfo,
|
11
|
-
Name: cluster.title || (generalClusterInfo === null || generalClusterInfo === void 0 ? void 0 : generalClusterInfo.Name),
|
12
|
-
Balancer: balancer,
|
13
|
-
Solomon: solomon,
|
14
|
-
TraceCheck,
|
15
|
-
TraceView,
|
16
|
-
};
|
17
|
-
};
|
18
2
|
export function parseTraceFields({ traceCheck, traceView, }) {
|
19
3
|
try {
|
20
4
|
return {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parseMetaCluster.js","sourceRoot":"","sources":["../../../src/services/parsers/parseMetaCluster.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"parseMetaCluster.js","sourceRoot":"","sources":["../../../src/services/parsers/parseMetaCluster.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAE,eAAe,EAAC,MAAM,uBAAuB,CAAC;AAExE,MAAM,UAAU,gBAAgB,CAAC,EAC7B,UAAU,EACV,SAAS,GAIZ;IACG,IAAI,CAAC;QACD,OAAO;YACH,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;YACnF,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;SAClF,CAAC;IACN,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACT,OAAO,CAAC,KAAK,CAAC,6BAA6B,EAAE,CAAC,CAAC,CAAC;IACpD,CAAC;IAED,OAAO,EAAE,CAAC;AACd,CAAC"}
|
@@ -43,9 +43,9 @@ export const clusterApi = api.injectEndpoints({
|
|
43
43
|
getClusterInfo: builder.query({
|
44
44
|
queryFn: async (clusterName, { signal }) => {
|
45
45
|
try {
|
46
|
-
const clusterData = window.api.
|
47
|
-
|
48
|
-
|
46
|
+
const clusterData = await window.api.viewer.getClusterInfo(clusterName, {
|
47
|
+
signal,
|
48
|
+
});
|
49
49
|
const clusterRoot = clusterData.Domain;
|
50
50
|
// Without domain we cannot get stats from system tables
|
51
51
|
if (!clusterRoot) {
|
@@ -122,8 +122,10 @@ export function useClusterBaseInfo() {
|
|
122
122
|
const createClusterInfoSelector = createSelector((clusterName) => clusterName, (clusterName) => clusterApi.endpoints.getClusterInfo.select(clusterName));
|
123
123
|
const selectClusterInfo = createSelector((state) => state, (_state, clusterName) => createClusterInfoSelector(clusterName), (state, selectGetClusterInfo) => selectGetClusterInfo(state).data);
|
124
124
|
export const selectClusterTitle = createSelector((_state, clusterName) => clusterName, (state, clusterName) => selectClusterInfo(state, clusterName), (clusterName, clusterInfo) => {
|
125
|
-
|
126
|
-
return
|
125
|
+
var _a;
|
126
|
+
return (clusterName ||
|
127
|
+
normalizeDomain((_a = clusterInfo === null || clusterInfo === void 0 ? void 0 : clusterInfo.clusterData) === null || _a === void 0 ? void 0 : _a.Domain) ||
|
128
|
+
CLUSTER_DEFAULT_TITLE);
|
127
129
|
});
|
128
130
|
export const selectClusterTabletsWithFqdn = createSelector((state, clusterName) => selectClusterInfo(state, clusterName), (state) => selectNodeHostsMap(state), (data, nodeHostsMap) => {
|
129
131
|
var _a;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cluster.js","sourceRoot":"","sources":["../../../../src/store/reducers/cluster/cluster.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAG5D,OAAO,EAAC,cAAc,EAAE,YAAY,EAAC,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAAC,gBAAgB,EAAC,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAC,eAAe,EAAC,MAAM,4BAA4B,CAAC;AAG3D,OAAO,EAAC,qBAAqB,EAAE,uBAAuB,EAAC,MAAM,0BAA0B,CAAC;AACxF,OAAO,EAAC,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAC,kBAAkB,EAAC,MAAM,cAAc,CAAC;AAGhD,OAAO,EACH,8BAA8B,EAC9B,4BAA4B,EAC5B,eAAe,EACf,6BAA6B,GAChC,MAAM,SAAS,CAAC;AAEjB,MAAM,mBAAmB,GAAG,YAAY,CAAC,OAAO,CAA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;;IACzB,OAAO,CACH,WAAW;QACX,eAAe,CAAC,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,WAAW,0CAAE,MAAM,CAAC;QACjD,qBAAqB,CACxB,CAAC;AACN,CAAC,CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAG,cAAc,CACtD,CAAC,KAAgB,EAAE,WAAoB,EAAE,EAAE,CAAC,iBAAiB,CAAC,KAAK,EAAE,WAAW,CAAC,EACjF,CAAC,KAAgB,EAAE,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAC/C,CAAC,IAAI,EAAE,YAAY,EAA0C,EAAE;;IAC3D,MAAM,OAAO,GAAG,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,WAAW,0CAAE,aAAa,CAAC;IACjD,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,OAAO,EAAE,CAAC;IACd,CAAC;IACD,IAAI,CAAC,YAAY,EAAE,CAAC;QAChB,OAAO,OAAO,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QAC1B,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACvF,OAAO,EAAC,GAAG,MAAM,EAAE,IAAI,EAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;AACP,CAAC,CACJ,CAAC"}
|
@@ -1,6 +1,7 @@
|
|
1
|
-
import type { TNodesInfo } from '../../../types/api/nodes';
|
1
|
+
import type { TNodeInfo, TNodesInfo } from '../../../types/api/nodes';
|
2
2
|
import type { StorageGroupsResponse, TStorageInfo } from '../../../types/api/storage';
|
3
3
|
import type { PreparedStorageResponse } from './types';
|
4
|
+
export declare const calculateMaximumSlotsPerDisk: (nodes: TNodeInfo[] | undefined, providedMaximumSlotsPerDisk?: string) => string;
|
4
5
|
export declare const prepareStorageNodesResponse: (data: TNodesInfo) => PreparedStorageResponse;
|
5
6
|
export declare const prepareStorageResponse: (data: TStorageInfo) => PreparedStorageResponse;
|
6
7
|
export declare function prepareGroupsResponse(data: StorageGroupsResponse): PreparedStorageResponse;
|
@@ -111,7 +111,7 @@ const prepareStorageGroups = (StorageGroups, StoragePools) => {
|
|
111
111
|
return preparedGroups;
|
112
112
|
};
|
113
113
|
// ==== Prepare nodes ====
|
114
|
-
const prepareStorageNodeData = (node) => {
|
114
|
+
const prepareStorageNodeData = (node, maximumSlotsPerDisk) => {
|
115
115
|
var _a, _b, _c;
|
116
116
|
const missing = ((_a = node.PDisks) === null || _a === void 0 ? void 0 : _a.filter((pDisk) => {
|
117
117
|
return pDisk.State !== TPDiskState.Normal;
|
@@ -135,11 +135,19 @@ const prepareStorageNodeData = (node) => {
|
|
135
135
|
PDisks: pDisks,
|
136
136
|
VDisks: vDisks,
|
137
137
|
Missing: missing,
|
138
|
+
MaximumSlotsPerDisk: maximumSlotsPerDisk,
|
138
139
|
};
|
139
140
|
};
|
141
|
+
export const calculateMaximumSlotsPerDisk = (nodes, providedMaximumSlotsPerDisk) => {
|
142
|
+
if (providedMaximumSlotsPerDisk) {
|
143
|
+
return providedMaximumSlotsPerDisk;
|
144
|
+
}
|
145
|
+
return String(Math.max(1, ...(nodes || []).flatMap((node) => (node.PDisks || []).map((pDisk) => (node.VDisks || []).filter((vDisk) => vDisk.PDiskId === pDisk.PDiskId)
|
146
|
+
.length || 0))));
|
147
|
+
};
|
140
148
|
// ==== Prepare responses ====
|
141
149
|
export const prepareStorageNodesResponse = (data) => {
|
142
|
-
const { Nodes, TotalNodes, FoundNodes, NodeGroups } = data;
|
150
|
+
const { Nodes, TotalNodes, FoundNodes, NodeGroups, MaximumSlotsPerDisk } = data;
|
143
151
|
const tableGroups = NodeGroups === null || NodeGroups === void 0 ? void 0 : NodeGroups.map(({ GroupName, NodeCount }) => {
|
144
152
|
if (GroupName && NodeCount) {
|
145
153
|
return {
|
@@ -149,7 +157,8 @@ export const prepareStorageNodesResponse = (data) => {
|
|
149
157
|
}
|
150
158
|
return undefined;
|
151
159
|
}).filter((group) => Boolean(group));
|
152
|
-
const
|
160
|
+
const maximumSlots = calculateMaximumSlotsPerDisk(Nodes, MaximumSlotsPerDisk);
|
161
|
+
const preparedNodes = Nodes === null || Nodes === void 0 ? void 0 : Nodes.map((node) => prepareStorageNodeData(node, maximumSlots));
|
153
162
|
return {
|
154
163
|
nodes: preparedNodes,
|
155
164
|
total: Number(TotalNodes) || (preparedNodes === null || preparedNodes === void 0 ? void 0 : preparedNodes.length),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/store/reducers/storage/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAC;AASrD,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAC;AAErD,OAAO,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAChF,OAAO,EACH,0BAA0B,EAC1B,0BAA0B,GAC7B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAC,sBAAsB,EAAC,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAC,WAAW,EAAC,MAAM,4BAA4B,CAAC;AAEvD,OAAO,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AAQxD,2BAA2B;AAE3B,SAAS,uBAAuB,CAAC,KAAkD;IAC/E,MAAM,EAAC,SAAS,EAAE,MAAM,GAAG,EAAE,EAAC,GAAG,KAAK,CAAC;IAEvC,OAAO,CACH,SAAS;QACT,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS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M,EAAE,MAAM;YAEd,SAAS,EAAE,eAAe;SAC7B,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,GAAG,CAAC,CAAC,EAAC,SAAS,EAAE,UAAU,EAAC,EAAE,EAAE;QACpE,IAAI,SAAS,IAAI,UAAU,EAAE,CAAC;YAC1B,OAAO;gBACH,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,MAAM,CAAC,UAAU,CAAC;aAC5B,CAAC;QACN,CAAC;QACD,OAAO,SAAS,CAAC;IACrB,CAAC,EAAE,MAAM,CAAC,CAAC,KAAK,EAAuB,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IAE1D,OAAO;QACH,MAAM,EAAE,cAAc;QACtB,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC,IAAI,cAAc,CAAC,MAAM;QACnD,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC;QAC1B,WAAW;KACd,CAAC;AACN,CAAC"}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import type { EFlag } from './enums';
|
2
2
|
import type { TTabletStateInfo } from './tablet';
|
3
|
-
import type { TTraceCheck, TTraceView } from './trace';
|
4
3
|
/**
|
5
4
|
* endpoint: viewer/json/cluster
|
6
5
|
*
|
@@ -8,7 +7,6 @@ import type { TTraceCheck, TTraceView } from './trace';
|
|
8
7
|
*/
|
9
8
|
export interface TClusterInfoV1 {
|
10
9
|
error?: string;
|
11
|
-
Name?: string;
|
12
10
|
Overall?: EFlag;
|
13
11
|
NodesTotal?: number;
|
14
12
|
NodesAlive?: number;
|
@@ -34,10 +32,6 @@ export interface TClusterInfoV1 {
|
|
34
32
|
Tablets?: string;
|
35
33
|
/** Cluster root database */
|
36
34
|
Domain?: string;
|
37
|
-
Balancer?: string;
|
38
|
-
Solomon?: string;
|
39
|
-
TraceView?: TTraceView;
|
40
|
-
TraceCheck?: TTraceCheck;
|
41
35
|
}
|
42
36
|
export interface TStorageStats {
|
43
37
|
PDiskFilter?: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cluster.js","sourceRoot":"","sources":["../../../src/types/api/cluster.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"cluster.js","sourceRoot":"","sources":["../../../src/types/api/cluster.ts"],"names":[],"mappings":"AA4EA,MAAM,UAAU,eAAe,CAAC,IAAmB;IAC/C,OAAO,IAAI;QACP,CAAC,CAAC,SAAS,IAAI,IAAI,IAAI,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ,IAAI,IAAI,CAAC,OAAO,IAAI,CAAC;QAC5E,CAAC,CAAC,KAAK,CAAC;AAChB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../../src/types/api/nodes.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../../src/types/api/nodes.ts"],"names":[],"mappings":"AAgOA,IAAK,YAGJ;AAHD,WAAK,YAAY;IACb,yCAA2B,CAAA;IAC3B,qCAAuB,CAAA;AAC3B,CAAC,EAHI,YAAY,KAAZ,YAAY,QAGhB"}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { EMPTY_DATA_PLACEHOLDER } from '../../constants';
|
2
1
|
import { UNBREAKABLE_GAP } from '../../utils';
|
3
2
|
import { formatUptimeInSeconds, getDowntimeFromDateFormatted, getUptimeFromDateFormatted, } from '../dataFormatters';
|
4
3
|
describe('getUptimeFromDateFormatted', () => {
|
@@ -25,9 +24,12 @@ describe('formatUptimeInSeconds', () => {
|
|
25
24
|
const H = 60 * M;
|
26
25
|
const D = 24 * H;
|
27
26
|
it('should return days if value is more than 24h', () => {
|
28
|
-
expect(formatUptimeInSeconds(
|
27
|
+
expect(formatUptimeInSeconds(24 * H)).toBe('1d' + UNBREAKABLE_GAP + '00:00:00');
|
29
28
|
expect(formatUptimeInSeconds(D + H + M + 12)).toBe('1d' + UNBREAKABLE_GAP + '01:01:12');
|
30
|
-
|
29
|
+
// 1 week
|
30
|
+
expect(formatUptimeInSeconds(7 * D + H + M + 12)).toBe('7d' + UNBREAKABLE_GAP + '01:01:12');
|
31
|
+
// 1 month
|
32
|
+
expect(formatUptimeInSeconds(30 * D + 11 * H + 30 * M + 12)).toBe('30d' + UNBREAKABLE_GAP + '11:30:12');
|
31
33
|
expect(formatUptimeInSeconds(1234 * D + 12 * H + 12 * M + 12)).toBe('1234d' + UNBREAKABLE_GAP + '12:12:12');
|
32
34
|
});
|
33
35
|
it('should return hours if value is less than 24h', () => {
|
@@ -50,7 +52,7 @@ describe('formatUptimeInSeconds', () => {
|
|
50
52
|
expect(formatUptimeInSeconds(-1 * (12 * D + 12 * H + 12 * M + 12))).toBe('-12d' + UNBREAKABLE_GAP + '12:12:12');
|
51
53
|
});
|
52
54
|
it('should return empty placeholder on NaN', () => {
|
53
|
-
expect(formatUptimeInSeconds(Number.NaN)).toBe(
|
55
|
+
expect(formatUptimeInSeconds(Number.NaN)).toBe(undefined);
|
54
56
|
});
|
55
57
|
});
|
56
58
|
//# sourceMappingURL=formatUptime.test.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formatUptime.test.js","sourceRoot":"","sources":["../../../../src/utils/dataFormatters/__test__/formatUptime.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"formatUptime.test.js","sourceRoot":"","sources":["../../../../src/utils/dataFormatters/__test__/formatUptime.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EACH,qBAAqB,EACrB,4BAA4B,EAC5B,0BAA0B,GAC7B,MAAM,mBAAmB,CAAC;AAE3B,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;IACxC,EAAE,CAAC,oCAAoC,EAAE,GAAG,EAAE;QAC1C,MAAM,CAAC,0BAA0B,CAAC,OAAS,EAAE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CAAC"}
|
@@ -8,10 +8,10 @@ export declare const stringifyVdiskId: (id?: TVDiskID | TVSlotId) => string;
|
|
8
8
|
* It works well only with positive values,
|
9
9
|
* if you want to get negative formatted uptime, use some wrapper like getDowntimeFromDateFormatted
|
10
10
|
*/
|
11
|
-
export declare function formatUptimeInSeconds(seconds: number): string;
|
12
|
-
export declare const formatMsToUptime: (ms?: number) => string;
|
13
|
-
export declare function getUptimeFromDateFormatted(dateFrom?: number | string, dateTo?: number | string): string;
|
14
|
-
export declare function getDowntimeFromDateFormatted(dateFrom?: number | string, dateTo?: number | string): string;
|
11
|
+
export declare function formatUptimeInSeconds(seconds: number): string | undefined;
|
12
|
+
export declare const formatMsToUptime: (ms?: number) => string | undefined;
|
13
|
+
export declare function getUptimeFromDateFormatted(dateFrom?: number | string, dateTo?: number | string): string | undefined;
|
14
|
+
export declare function getDowntimeFromDateFormatted(dateFrom?: number | string, dateTo?: number | string): string | undefined;
|
15
15
|
export declare function formatStorageValues(value?: number, total?: number, size?: BytesSizes, delimiter?: string, withValueLabel?: boolean): string[];
|
16
16
|
export declare function formatNumericValues(value?: number, total?: number, size?: Digits, delimiter?: string, withValueLabel?: boolean): string[];
|
17
17
|
export declare const formatStorageValuesToGb: (value?: number, total?: number) => string[];
|
@@ -22,6 +22,9 @@ export declare const formatSecondsToHours: (seconds: number) => string;
|
|
22
22
|
export declare const roundToPrecision: (value: number | string, precision?: number) => number;
|
23
23
|
export declare const formatCPU: (value?: number | string) => string | undefined;
|
24
24
|
export declare const formatCPUWithLabel: (value?: number) => string | undefined;
|
25
|
-
export declare const formatDateTime: (value?: number | string, defaultValue?:
|
25
|
+
export declare const formatDateTime: (value?: number | string, { withTimeZone, defaultValue }?: {
|
26
|
+
withTimeZone?: boolean;
|
27
|
+
defaultValue?: string;
|
28
|
+
}) => string;
|
26
29
|
export declare const formatTimestamp: (value?: string | number, defaultValue?: string) => string;
|
27
30
|
export declare function getStringifiedData(value: unknown): string;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { dateTimeParse, duration } from '@gravity-ui/date-utils';
|
2
2
|
import { formatBytes as formatBytesCustom, getSizeWithSignificantDigits, } from '../bytesParsers/formatBytes';
|
3
|
-
import {
|
3
|
+
import { HOUR_IN_SECONDS } from '../constants';
|
4
4
|
import { configuredNumeral } from '../numeral';
|
5
5
|
import { UNBREAKABLE_GAP, isNumeric } from '../utils';
|
6
6
|
import { formatValues } from './common';
|
@@ -31,7 +31,7 @@ export const stringifyVdiskId = (id) => {
|
|
31
31
|
*/
|
32
32
|
export function formatUptimeInSeconds(seconds) {
|
33
33
|
if (!isNumeric(seconds)) {
|
34
|
-
return
|
34
|
+
return undefined;
|
35
35
|
}
|
36
36
|
// duration.format() doesn't work well with negative values
|
37
37
|
// negative value will be displayed like -2d -12:-58:-21
|
@@ -39,7 +39,9 @@ export function formatUptimeInSeconds(seconds) {
|
|
39
39
|
const sign = seconds < 0 ? '-' : '';
|
40
40
|
const d = duration(Math.abs(seconds), 's').rescale();
|
41
41
|
let value;
|
42
|
-
|
42
|
+
// Do not use just d.days(), since days could be rescaled up to weeks and more
|
43
|
+
// So for 7d we will have d.weeks() = 1 and d.days() = 0
|
44
|
+
if (Math.floor(d.asDays()) > 0) {
|
43
45
|
value = d.format(`d[${i18n('d')}${UNBREAKABLE_GAP}]hh:mm:ss`);
|
44
46
|
}
|
45
47
|
else if (d.hours() > 0) {
|
@@ -139,9 +141,10 @@ export const formatCPUWithLabel = (value) => {
|
|
139
141
|
const localizedCores = configuredNumeral(cores).format('0.[000]');
|
140
142
|
return `${localizedCores} ${i18n('format-cpu.cores', { count: cores })}`;
|
141
143
|
};
|
142
|
-
export const formatDateTime = (value, defaultValue = '') => {
|
144
|
+
export const formatDateTime = (value, { withTimeZone, defaultValue = '' } = {}) => {
|
143
145
|
var _a;
|
144
|
-
const
|
146
|
+
const tz = withTimeZone ? ' z' : '';
|
147
|
+
const formattedData = (_a = dateTimeParse(Number(value))) === null || _a === void 0 ? void 0 : _a.format(`YYYY-MM-DD HH:mm${tz}`);
|
145
148
|
return formattedData !== null && formattedData !== void 0 ? formattedData : defaultValue;
|
146
149
|
};
|
147
150
|
export const formatTimestamp = (value, defaultValue = '') => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dataFormatters.js","sourceRoot":"","sources":["../../../src/utils/dataFormatters/dataFormatters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAG/D,OAAO,EACH,WAAW,IAAI,iBAAiB,EAChC,4BAA4B,GAC/B,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"dataFormatters.js","sourceRoot":"","sources":["../../../src/utils/dataFormatters/dataFormatters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAG/D,OAAO,EACH,WAAW,IAAI,iBAAiB,EAChC,4BAA4B,GAC/B,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAC,eAAe,EAAC,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAC,eAAe,EAAE,SAAS,EAAC,MAAM,UAAU,CAAC;AAEpD,OAAO,EAAC,YAAY,EAAC,MAAM,UAAU,CAAC;AACtC,OAAO,EAAC,sBAAsB,EAAE,8BAA8B,EAAC,MAAM,gBAAgB,CAAC;AAEtF,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,sDAAsD;AACtD,gEAAgE;AAChE,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAuB,EAAE,EAAE;IACnD,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;QACpB,OAAO,EAAE,CAAC;IACd,CAAC;IAED,qDAAqD;IACrD,OAAO,iBAAiB,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAClD,CAA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AAC,CAAC;AACF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAAuB,EAAE,YAAY,GAAG,EAAE,EAAE,EAAE;;IAC1E,MAAM,aAAa,GAAG,MAAA,aAAa,CAAC,KAAK,CAAC,0CAAE,MAAM,CAAC,yBAAyB,CAAC,CAAC;IAE9E,OAAO,aAAa,aAAb,aAAa,cAAb,aAAa,GAAI,YAAY,CAAC;AACzC,CAAC,CAAC;AAEF,MAAM,UAAU,kBAAkB,CAAC,KAAc;IAC7C,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACtB,OAAO,EAAE,CAAC;IACd,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC5B,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;SAAM,CAAC;QACJ,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC;IAC5B,CAAC;AACL,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
export declare function insertSnippetToEditor(input: string): void
|
1
|
+
export declare function insertSnippetToEditor(input: string): Promise<void>;
|