ydb-embedded-ui 6.6.0 → 6.6.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/package.json +3 -3
- package/dist/{containers → src/containers}/App/App.scss +5 -0
- package/dist/src/containers/Tenant/utils/schema.d.ts +1 -1
- package/dist/src/containers/Tenant/utils/schema.js +5 -6
- package/dist/src/lib.d.ts +2 -1
- package/dist/src/lib.js +1 -1
- package/dist/src/types/api/tenant.d.ts +1 -7
- package/dist/src/types/api/tenant.js +0 -8
- package/dist/src/utils/__test__/monitoring.test.js +1 -1
- package/dist/src/utils/monitoring.d.ts +2 -1
- package/dist/src/utils/monitoring.js +1 -4
- package/package.json +3 -3
- package/dist/styles/constants.scss +0 -9
- /package/dist/{assets → src/assets}/icons/cluster.svg +0 -0
- /package/dist/{assets → src/assets}/icons/databases.svg +0 -0
- /package/dist/{assets → src/assets}/icons/disableFullscreen.svg +0 -0
- /package/dist/{assets → src/assets}/icons/emptyState.svg +0 -0
- /package/dist/{assets → src/assets}/icons/key.svg +0 -0
- /package/dist/{assets → src/assets}/icons/monitoring.svg +0 -0
- /package/dist/{assets → src/assets}/icons/network.svg +0 -0
- /package/dist/{assets → src/assets}/icons/user-check.svg +0 -0
- /package/dist/{assets → src/assets}/icons/user-secret.svg +0 -0
- /package/dist/{assets → src/assets}/icons/ydb.svg +0 -0
- /package/dist/{assets → src/assets}/illustrations/dark/403.svg +0 -0
- /package/dist/{assets → src/assets}/illustrations/dark/error.svg +0 -0
- /package/dist/{assets → src/assets}/illustrations/dark/thumbsUp.svg +0 -0
- /package/dist/{assets → src/assets}/illustrations/light/403.svg +0 -0
- /package/dist/{assets → src/assets}/illustrations/light/error.svg +0 -0
- /package/dist/{assets → src/assets}/illustrations/light/thumbsUp.svg +0 -0
- /package/dist/{components → src/components}/BasicNodeViewer/BasicNodeViewer.scss +0 -0
- /package/dist/{components → src/components}/CellWithPopover/CellWithPopover.scss +0 -0
- /package/dist/{components → src/components}/CircularProgressBar/CircularProgressBar.scss +0 -0
- /package/dist/{components → src/components}/CriticalActionDialog/CriticalActionDialog.scss +0 -0
- /package/dist/{components → src/components}/DateRange/DateRange.scss +0 -0
- /package/dist/{components → src/components}/DiagnosticCard/DiagnosticCard.scss +0 -0
- /package/dist/{components → src/components}/DiskPageTitle/DiskPageTitle.scss +0 -0
- /package/dist/{components → src/components}/DiskStateProgressBar/DiskStateProgressBar.scss +0 -0
- /package/dist/{components → src/components}/Divider/Divider.scss +0 -0
- /package/dist/{components → src/components}/EmptyState/EmptyState.scss +0 -0
- /package/dist/{components → src/components}/EntityStatus/EntityStatus.scss +0 -0
- /package/dist/{components → src/components}/ErrorBoundary/ErrorBoundary.scss +0 -0
- /package/dist/{components → src/components}/FullNodeViewer/FullNodeViewer.scss +0 -0
- /package/dist/{components → src/components}/Fullscreen/Fullscreen.scss +0 -0
- /package/dist/{components → src/components}/InfoViewer/InfoViewer.scss +0 -0
- /package/dist/{components → src/components}/InfoViewerSkeleton/InfoViewerSkeleton.scss +0 -0
- /package/dist/{components → src/components}/LagPopoverContent/LagPopoverContent.scss +0 -0
- /package/dist/{components → src/components}/LinkWithIcon/LinkWithIcon.scss +0 -0
- /package/dist/{components → src/components}/Loader/Loader.scss +0 -0
- /package/dist/{components → src/components}/MetricChart/MetricChart.scss +0 -0
- /package/dist/{components → src/components}/MonitoringButton/MonitoringButton.scss +0 -0
- /package/dist/{components → src/components}/NodeHostWrapper/NodeHostWrapper.scss +0 -0
- /package/dist/{components → src/components}/PDiskInfo/PDiskInfo.scss +0 -0
- /package/dist/{components → src/components}/PDiskPopup/PDiskPopup.scss +0 -0
- /package/dist/{components → src/components}/PageMeta/PageMeta.scss +0 -0
- /package/dist/{components → src/components}/PoolBar/PoolBar.scss +0 -0
- /package/dist/{components → src/components}/PoolUsage/PoolUsage.scss +0 -0
- /package/dist/{components → src/components}/PoolsGraph/PoolsGraph.scss +0 -0
- /package/dist/{components → src/components}/ProgressViewer/ProgressViewer.scss +0 -0
- /package/dist/{components → src/components}/QueryExecutionStatus/QueryExecutionStatus.scss +0 -0
- /package/dist/{components → src/components}/QueryResultTable/QueryResultTable.scss +0 -0
- /package/dist/{components → src/components}/ResizeableDataTable/ResizeableDataTable.scss +0 -0
- /package/dist/{components → src/components}/Search/Search.scss +0 -0
- /package/dist/{components → src/components}/ShortyString/ShortyString.scss +0 -0
- /package/dist/{components → src/components}/SpeedMultiMeter/SpeedMultiMeter.scss +0 -0
- /package/dist/{components → src/components}/SplitPane/SplitPane.scss +0 -0
- /package/dist/{components → src/components}/Stack/Stack.scss +0 -0
- /package/dist/{components → src/components}/StatusIcon/StatusIcon.scss +0 -0
- /package/dist/{components → src/components}/TableSkeleton/TableSkeleton.scss +0 -0
- /package/dist/{components → src/components}/TableWithControlsLayout/TableWithControlsLayout.scss +0 -0
- /package/dist/{components → src/components}/Tablet/Tablet.scss +0 -0
- /package/dist/{components → src/components}/TabletIcon/TabletIcon.scss +0 -0
- /package/dist/{components → src/components}/TabletsOverall/TabletsOverall.scss +0 -0
- /package/dist/{components → src/components}/TabletsStatistic/TabletsStatistic.scss +0 -0
- /package/dist/{components → src/components}/Tag/Tag.scss +0 -0
- /package/dist/{components → src/components}/Tags/Tags.scss +0 -0
- /package/dist/{components → src/components}/TimeFrameSelector/TimeFrameSelector.scss +0 -0
- /package/dist/{components → src/components}/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.scss +0 -0
- /package/dist/{components → src/components}/TruncatedQuery/TruncatedQuery.scss +0 -0
- /package/dist/{components → src/components}/UsageLabel/UsageLabel.scss +0 -0
- /package/dist/{components → src/components}/User/User.scss +0 -0
- /package/dist/{components → src/components}/VDisk/VDisk.scss +0 -0
- /package/dist/{components → src/components}/VDiskInfo/VDiskInfo.scss +0 -0
- /package/dist/{components → src/components}/VDiskPopup/VDiskPopup.scss +0 -0
- /package/dist/{components → src/components}/VirtualTable/VirtualTable.scss +0 -0
- /package/dist/{containers → src/containers}/AppWithClusters/ExtendedCluster/ExtendedCluster.scss +0 -0
- /package/dist/{containers → src/containers}/AsideNavigation/AsideNavigation.scss +0 -0
- /package/dist/{containers → src/containers}/AsideNavigation/YdbInternalUser/YdbInternalUser.scss +0 -0
- /package/dist/{containers → src/containers}/Authentication/Authentication.scss +0 -0
- /package/dist/{containers → src/containers}/Cluster/Cluster.scss +0 -0
- /package/dist/{containers → src/containers}/Cluster/ClusterInfo/ClusterInfo.scss +0 -0
- /package/dist/{containers → src/containers}/Cluster/VersionsBar/VersionsBar.scss +0 -0
- /package/dist/{containers → src/containers}/Clusters/Clusters.scss +0 -0
- /package/dist/{containers → src/containers}/Header/Header.scss +0 -0
- /package/dist/{containers → src/containers}/Heatmap/Heatmap.scss +0 -0
- /package/dist/{containers → src/containers}/Heatmap/Histogram/Histogram.scss +0 -0
- /package/dist/{containers → src/containers}/Node/Node.scss +0 -0
- /package/dist/{containers → src/containers}/Node/NodeStructure/NodeStructure.scss +0 -0
- /package/dist/{containers → src/containers}/Nodes/Nodes.scss +0 -0
- /package/dist/{containers → src/containers}/PDiskPage/PDiskPage.scss +0 -0
- /package/dist/{containers → src/containers}/ReduxTooltip/ReduxTooltip.scss +0 -0
- /package/dist/{containers → src/containers}/Storage/PDisk/PDisk.scss +0 -0
- /package/dist/{containers → src/containers}/Storage/Storage.scss +0 -0
- /package/dist/{containers → src/containers}/Storage/StorageGroups/StorageGroups.scss +0 -0
- /package/dist/{containers → src/containers}/Storage/StorageNodes/StorageNodes.scss +0 -0
- /package/dist/{containers → src/containers}/Storage/UsageFilter/UsageFilter.scss +0 -0
- /package/dist/{containers → src/containers}/Tablet/Tablet.scss +0 -0
- /package/dist/{containers → src/containers}/TabletsFilters/TabletsFilters.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Acl/Acl.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Autorefresh/AutorefreshControl.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Consumers/Consumers.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Consumers/Headers/Headers.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Consumers/TopicStats/ConsumersTopicStats.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Consumers/columns/Columns.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Describe/Describe.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/DetailedOverview/DetailedOverview.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Diagnostics.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/HotKeys/HotKeys.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Network/Network.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Overview/AsyncReplicationPaths/AsyncReplicationPaths.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Overview/TableInfo/TableInfo.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Overview/TopicStats/TopicStats.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Partitions/Headers/Headers.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Partitions/Partitions.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Partitions/columns/Columns.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/TenantOverview/Healthcheck/Healthcheck.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTreeItem/IssueTreeItem.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/TenantOverview/MetricsCards/MetricCard/MetricCard.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/TenantOverview/MetricsCards/MetricsCards.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/TenantOverview/TenantDashboard/TenantDashboard.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/TenantOverview/TenantOverview.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/TopQueries/TopQueries.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/TopShards/TopShards.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Info/ExternalDataSource/ExternalDataSource.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Info/ExternalTable/ExternalTable.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Info/View/View.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/ObjectGeneral/ObjectGeneral.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/ObjectSummary/ObjectSummary.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Query/ExecuteResult/ExecuteResult.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Query/ExplainResult/ExplainResult.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Query/Issues/Issues.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Query/Preview/Preview.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Query/QueriesHistory/QueriesHistory.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Query/Query.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Query/QueryDuration/QueryDuration.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Query/QueryEditor/QueryEditor.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Query/QueryEditorControls/QueryEditorControls.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Query/SaveQuery/SaveQuery.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Query/SavedQueries/SavedQueries.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Schema/SchemaViewer/SchemaViewer.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Tenant.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/utils/ToggleButton.scss +0 -0
- /package/dist/{containers → src/containers}/Tenants/Tenants.scss +0 -0
- /package/dist/{containers → src/containers}/UserSettings/UserSettings.scss +0 -0
- /package/dist/{containers → src/containers}/VDiskPage/VDiskPage.scss +0 -0
- /package/dist/{containers → src/containers}/Versions/GroupedNodesTree/GroupedNodesTree.scss +0 -0
- /package/dist/{containers → src/containers}/Versions/NodesTreeTitle/NodesTreeTitle.scss +0 -0
- /package/dist/{containers → src/containers}/Versions/Versions.scss +0 -0
- /package/dist/{index.css → src/index.css} +0 -0
- /package/dist/{styles → src/styles}/mixins.scss +0 -0
- /package/dist/{styles → src/styles}/themes/dark-hc.scss +0 -0
- /package/dist/{styles → src/styles}/themes/dark.scss +0 -0
- /package/dist/{styles → src/styles}/themes/light-hc.scss +0 -0
- /package/dist/{styles → src/styles}/themes/light.scss +0 -0
- /package/dist/{styles → src/styles}/themes.scss +0 -0
package/dist/package.json
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"name": "ydb-embedded-ui",
|
3
|
-
"version": "6.6.
|
3
|
+
"version": "6.6.1",
|
4
4
|
"files": [
|
5
5
|
"dist"
|
6
6
|
],
|
7
|
-
"main": "dist/lib.js",
|
7
|
+
"main": "dist/src/lib.js",
|
8
8
|
"repository": {
|
9
9
|
"type": "git",
|
10
10
|
"url": "git@github.com:ydb-platform/ydb-embedded-ui.git"
|
@@ -65,7 +65,7 @@
|
|
65
65
|
"lint:other": "npm run prettier -- --check",
|
66
66
|
"prettier": "prettier '**/*.{json,yaml,yml,md}'",
|
67
67
|
"unimported": "npx unimported --no-cache",
|
68
|
-
"package": "rm -rf dist && tsc -p tsconfig.package.json && copyfiles -u 1 'src/**/*.{css,scss,svg}' dist",
|
68
|
+
"package": "rm -rf dist && tsc -p tsconfig.package.json && copyfiles -u 1 'src/**/*.{css,scss,svg}' dist/src",
|
69
69
|
"test": "react-app-rewired test",
|
70
70
|
"eject": "react-scripts eject",
|
71
71
|
"prepublishOnly": "npm run package",
|
@@ -28,6 +28,11 @@ body,
|
|
28
28
|
:root {
|
29
29
|
--g-color-base-yellow-light: rgba(255, 199, 0, 0.15);
|
30
30
|
--g-color-base-yellow-medium: rgba(255, 219, 77, 0.4);
|
31
|
+
|
32
|
+
--tenant-object-info-max-value-width: 300px;
|
33
|
+
--diagnostics-section-title-margin: 20px;
|
34
|
+
--diagnostics-section-margin: 30px;
|
35
|
+
--diagnostics-section-table-width: 872px;
|
31
36
|
}
|
32
37
|
|
33
38
|
.g-root {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { NavigationTreeNodeType } from 'ydb-ui-components';
|
2
2
|
import { EPathSubType, EPathType } from '../../../types/api/schema';
|
3
|
-
import { ETenantType } from '../../../types/api/tenant';
|
3
|
+
import type { ETenantType } from '../../../types/api/tenant';
|
4
4
|
export declare const mapPathTypeToNavigationTreeType: (type?: EPathType, subType?: EPathSubType, defaultType?: NavigationTreeNodeType) => NavigationTreeNodeType;
|
5
5
|
export declare const mapPathTypeToEntityName: (type?: EPathType, subType?: EPathSubType) => string | undefined;
|
6
6
|
export declare const mapDatabaseTypeToDBName: (type?: ETenantType) => string | undefined;
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { EPathSubType, EPathType } from '../../../types/api/schema';
|
2
|
-
import { ETenantType } from '../../../types/api/tenant';
|
3
2
|
// this file contains verbose mappings that are typed in a way that ensures
|
4
3
|
// correctness when a new node type or a new path type is added
|
5
4
|
// TS will error if a new entity is added but not mapped here
|
@@ -52,11 +51,11 @@ const pathTypeToEntityName = {
|
|
52
51
|
export const mapPathTypeToEntityName = (type, subType) => (subType && pathSubTypeToEntityName[subType]) || (type && pathTypeToEntityName[type]);
|
53
52
|
// ====================
|
54
53
|
const databaseTypeToDBName = {
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
54
|
+
UnknownTenantType: 'Database',
|
55
|
+
Domain: 'Cluster Root',
|
56
|
+
Dedicated: 'Dedicated Database',
|
57
|
+
Shared: 'Shared Database',
|
58
|
+
Serverless: 'Serverless Database',
|
60
59
|
};
|
61
60
|
export const mapDatabaseTypeToDBName = (type) => type && databaseTypeToDBName[type];
|
62
61
|
// ====================
|
package/dist/src/lib.d.ts
CHANGED
@@ -10,7 +10,7 @@ export { setUserSettings } from './store/reducers/settings/settings';
|
|
10
10
|
export { componentsRegistry } from './components/ComponentsProvider/componentsRegistry';
|
11
11
|
export { useSetting, useTypedSelector } from './utils/hooks';
|
12
12
|
export { getMonitoringLink, getMonitoringClusterLink } from './utils/monitoring';
|
13
|
-
export { i18n, Lang } from './utils/i18n';
|
13
|
+
export { i18n, Lang, registerKeysets } from './utils/i18n';
|
14
14
|
export { toaster } from './utils/createToast';
|
15
15
|
export { cn } from './utils/cn';
|
16
16
|
export * from './utils/constants';
|
@@ -19,3 +19,4 @@ export type { SettingsObject } from './services/settings';
|
|
19
19
|
export type { YDBEmbeddedUISettings, SettingsPage, SettingsSection, } from './containers/UserSettings/settings';
|
20
20
|
export type { SettingProps } from './containers/UserSettings/Setting';
|
21
21
|
export type { AsideNavigationProps } from './containers/AsideNavigation/AsideNavigation';
|
22
|
+
export type { GetMonitoringLink, GetMonitoringClusterLink } from './utils/monitoring';
|
package/dist/src/lib.js
CHANGED
@@ -10,7 +10,7 @@ export { setUserSettings } from './store/reducers/settings/settings';
|
|
10
10
|
export { componentsRegistry } from './components/ComponentsProvider/componentsRegistry';
|
11
11
|
export { useSetting, useTypedSelector } from './utils/hooks';
|
12
12
|
export { getMonitoringLink, getMonitoringClusterLink } from './utils/monitoring';
|
13
|
-
export { i18n, Lang } from './utils/i18n';
|
13
|
+
export { i18n, Lang, registerKeysets } from './utils/i18n';
|
14
14
|
export { toaster } from './utils/createToast';
|
15
15
|
export { cn } from './utils/cn';
|
16
16
|
export * from './utils/constants';
|
@@ -112,13 +112,7 @@ export interface TTenantResource {
|
|
112
112
|
export interface ControlPlane {
|
113
113
|
name?: string;
|
114
114
|
}
|
115
|
-
export
|
116
|
-
'UnknownTenantType' = "UnknownTenantType",
|
117
|
-
'Domain' = "Domain",
|
118
|
-
'Dedicated' = "Dedicated",
|
119
|
-
'Shared' = "Shared",
|
120
|
-
'Serverless' = "Serverless"
|
121
|
-
}
|
115
|
+
export type ETenantType = 'UnknownTenantType' | 'Domain' | 'Dedicated' | 'Shared' | 'Serverless';
|
122
116
|
export declare enum State {
|
123
117
|
'STATE_UNSPECIFIED' = "STATE_UNSPECIFIED",
|
124
118
|
'CREATING' = "CREATING",
|
@@ -1,11 +1,3 @@
|
|
1
|
-
export var ETenantType;
|
2
|
-
(function (ETenantType) {
|
3
|
-
ETenantType["UnknownTenantType"] = "UnknownTenantType";
|
4
|
-
ETenantType["Domain"] = "Domain";
|
5
|
-
ETenantType["Dedicated"] = "Dedicated";
|
6
|
-
ETenantType["Shared"] = "Shared";
|
7
|
-
ETenantType["Serverless"] = "Serverless";
|
8
|
-
})(ETenantType || (ETenantType = {}));
|
9
1
|
export var State;
|
10
2
|
(function (State) {
|
11
3
|
State["STATE_UNSPECIFIED"] = "STATE_UNSPECIFIED";
|
@@ -11,7 +11,7 @@ describe('getMonitoringLink', () => {
|
|
11
11
|
monitoring: solomonString,
|
12
12
|
clusterName: 'global',
|
13
13
|
dbName: 'database',
|
14
|
-
dbType: '
|
14
|
+
dbType: 'Dedicated',
|
15
15
|
})).toBe('https://monitoring.test.ai/projects/yc.ydb.ydbaas-cloud/dashboards/aol34hftdn7o4fls50sv?p.cluster=global&p.host=cluster&p.slot=static&p.database=database');
|
16
16
|
});
|
17
17
|
it('should create cluster monitoring link from JSON', () => {
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { ETenantType } from '../types/api/tenant';
|
1
2
|
export type ParsedMonitoringData = {
|
2
3
|
monitoring_url: string;
|
3
4
|
serverless_dashboard?: string;
|
@@ -10,7 +11,7 @@ export type ParsedMonitoringData = {
|
|
10
11
|
export interface GetMonitoringLinkProps {
|
11
12
|
monitoring: string;
|
12
13
|
dbName: string;
|
13
|
-
dbType:
|
14
|
+
dbType: ETenantType;
|
14
15
|
clusterName?: string;
|
15
16
|
}
|
16
17
|
export type GetMonitoringLink = typeof getMonitoringLink;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { ETenantType } from '../types/api/tenant';
|
2
1
|
export function getMonitoringLink({ monitoring, dbName, dbType, clusterName, }) {
|
3
2
|
var _a, _b;
|
4
3
|
try {
|
@@ -9,9 +8,7 @@ export function getMonitoringLink({ monitoring, dbName, dbType, clusterName, })
|
|
9
8
|
const finalClusterName = data.cluster_name || clusterName || '';
|
10
9
|
const url = new URL(data.monitoring_url);
|
11
10
|
if (!url.search) {
|
12
|
-
const dashboard = dbType ===
|
13
|
-
? data.serverless_dashboard
|
14
|
-
: data.dedicated_dashboard;
|
11
|
+
const dashboard = dbType === 'Serverless' ? data.serverless_dashboard : data.dedicated_dashboard;
|
15
12
|
url.pathname += `/${dashboard}`;
|
16
13
|
}
|
17
14
|
if (!url.searchParams.has('p.cluster')) {
|
package/package.json
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"name": "ydb-embedded-ui",
|
3
|
-
"version": "6.6.
|
3
|
+
"version": "6.6.1",
|
4
4
|
"files": [
|
5
5
|
"dist"
|
6
6
|
],
|
7
|
-
"main": "dist/lib.js",
|
7
|
+
"main": "dist/src/lib.js",
|
8
8
|
"repository": {
|
9
9
|
"type": "git",
|
10
10
|
"url": "git@github.com:ydb-platform/ydb-embedded-ui.git"
|
@@ -65,7 +65,7 @@
|
|
65
65
|
"lint:other": "npm run prettier -- --check",
|
66
66
|
"prettier": "prettier '**/*.{json,yaml,yml,md}'",
|
67
67
|
"unimported": "npx unimported --no-cache",
|
68
|
-
"package": "rm -rf dist && tsc -p tsconfig.package.json && copyfiles -u 1 'src/**/*.{css,scss,svg}' dist",
|
68
|
+
"package": "rm -rf dist && tsc -p tsconfig.package.json && copyfiles -u 1 'src/**/*.{css,scss,svg}' dist/src",
|
69
69
|
"test": "react-app-rewired test",
|
70
70
|
"eject": "react-scripts eject",
|
71
71
|
"prepublishOnly": "npm run package",
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/dist/{components → src/components}/TableWithControlsLayout/TableWithControlsLayout.scss
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/dist/{containers → src/containers}/AppWithClusters/ExtendedCluster/ExtendedCluster.scss
RENAMED
File without changes
|
File without changes
|
/package/dist/{containers → src/containers}/AsideNavigation/YdbInternalUser/YdbInternalUser.scss
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/dist/{containers → src/containers}/Tenant/Diagnostics/Autorefresh/AutorefreshControl.scss
RENAMED
File without changes
|
File without changes
|
/package/dist/{containers → src/containers}/Tenant/Diagnostics/Consumers/Headers/Headers.scss
RENAMED
File without changes
|
File without changes
|
/package/dist/{containers → src/containers}/Tenant/Diagnostics/Consumers/columns/Columns.scss
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/dist/{containers → src/containers}/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.scss
RENAMED
File without changes
|
File without changes
|
/package/dist/{containers → src/containers}/Tenant/Diagnostics/Overview/TableInfo/TableInfo.scss
RENAMED
File without changes
|
/package/dist/{containers → src/containers}/Tenant/Diagnostics/Overview/TopicStats/TopicStats.scss
RENAMED
File without changes
|
/package/dist/{containers → src/containers}/Tenant/Diagnostics/Partitions/Headers/Headers.scss
RENAMED
File without changes
|
File without changes
|
/package/dist/{containers → src/containers}/Tenant/Diagnostics/Partitions/columns/Columns.scss
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/dist/{containers → src/containers}/Tenant/Diagnostics/TenantOverview/TenantOverview.scss
RENAMED
File without changes
|
File without changes
|
File without changes
|
/package/dist/{containers → src/containers}/Tenant/Info/ExternalDataSource/ExternalDataSource.scss
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|