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.
Files changed (166) hide show
  1. package/dist/package.json +3 -3
  2. package/dist/{containers → src/containers}/App/App.scss +5 -0
  3. package/dist/src/containers/Tenant/utils/schema.d.ts +1 -1
  4. package/dist/src/containers/Tenant/utils/schema.js +5 -6
  5. package/dist/src/lib.d.ts +2 -1
  6. package/dist/src/lib.js +1 -1
  7. package/dist/src/types/api/tenant.d.ts +1 -7
  8. package/dist/src/types/api/tenant.js +0 -8
  9. package/dist/src/utils/__test__/monitoring.test.js +1 -1
  10. package/dist/src/utils/monitoring.d.ts +2 -1
  11. package/dist/src/utils/monitoring.js +1 -4
  12. package/package.json +3 -3
  13. package/dist/styles/constants.scss +0 -9
  14. /package/dist/{assets → src/assets}/icons/cluster.svg +0 -0
  15. /package/dist/{assets → src/assets}/icons/databases.svg +0 -0
  16. /package/dist/{assets → src/assets}/icons/disableFullscreen.svg +0 -0
  17. /package/dist/{assets → src/assets}/icons/emptyState.svg +0 -0
  18. /package/dist/{assets → src/assets}/icons/key.svg +0 -0
  19. /package/dist/{assets → src/assets}/icons/monitoring.svg +0 -0
  20. /package/dist/{assets → src/assets}/icons/network.svg +0 -0
  21. /package/dist/{assets → src/assets}/icons/user-check.svg +0 -0
  22. /package/dist/{assets → src/assets}/icons/user-secret.svg +0 -0
  23. /package/dist/{assets → src/assets}/icons/ydb.svg +0 -0
  24. /package/dist/{assets → src/assets}/illustrations/dark/403.svg +0 -0
  25. /package/dist/{assets → src/assets}/illustrations/dark/error.svg +0 -0
  26. /package/dist/{assets → src/assets}/illustrations/dark/thumbsUp.svg +0 -0
  27. /package/dist/{assets → src/assets}/illustrations/light/403.svg +0 -0
  28. /package/dist/{assets → src/assets}/illustrations/light/error.svg +0 -0
  29. /package/dist/{assets → src/assets}/illustrations/light/thumbsUp.svg +0 -0
  30. /package/dist/{components → src/components}/BasicNodeViewer/BasicNodeViewer.scss +0 -0
  31. /package/dist/{components → src/components}/CellWithPopover/CellWithPopover.scss +0 -0
  32. /package/dist/{components → src/components}/CircularProgressBar/CircularProgressBar.scss +0 -0
  33. /package/dist/{components → src/components}/CriticalActionDialog/CriticalActionDialog.scss +0 -0
  34. /package/dist/{components → src/components}/DateRange/DateRange.scss +0 -0
  35. /package/dist/{components → src/components}/DiagnosticCard/DiagnosticCard.scss +0 -0
  36. /package/dist/{components → src/components}/DiskPageTitle/DiskPageTitle.scss +0 -0
  37. /package/dist/{components → src/components}/DiskStateProgressBar/DiskStateProgressBar.scss +0 -0
  38. /package/dist/{components → src/components}/Divider/Divider.scss +0 -0
  39. /package/dist/{components → src/components}/EmptyState/EmptyState.scss +0 -0
  40. /package/dist/{components → src/components}/EntityStatus/EntityStatus.scss +0 -0
  41. /package/dist/{components → src/components}/ErrorBoundary/ErrorBoundary.scss +0 -0
  42. /package/dist/{components → src/components}/FullNodeViewer/FullNodeViewer.scss +0 -0
  43. /package/dist/{components → src/components}/Fullscreen/Fullscreen.scss +0 -0
  44. /package/dist/{components → src/components}/InfoViewer/InfoViewer.scss +0 -0
  45. /package/dist/{components → src/components}/InfoViewerSkeleton/InfoViewerSkeleton.scss +0 -0
  46. /package/dist/{components → src/components}/LagPopoverContent/LagPopoverContent.scss +0 -0
  47. /package/dist/{components → src/components}/LinkWithIcon/LinkWithIcon.scss +0 -0
  48. /package/dist/{components → src/components}/Loader/Loader.scss +0 -0
  49. /package/dist/{components → src/components}/MetricChart/MetricChart.scss +0 -0
  50. /package/dist/{components → src/components}/MonitoringButton/MonitoringButton.scss +0 -0
  51. /package/dist/{components → src/components}/NodeHostWrapper/NodeHostWrapper.scss +0 -0
  52. /package/dist/{components → src/components}/PDiskInfo/PDiskInfo.scss +0 -0
  53. /package/dist/{components → src/components}/PDiskPopup/PDiskPopup.scss +0 -0
  54. /package/dist/{components → src/components}/PageMeta/PageMeta.scss +0 -0
  55. /package/dist/{components → src/components}/PoolBar/PoolBar.scss +0 -0
  56. /package/dist/{components → src/components}/PoolUsage/PoolUsage.scss +0 -0
  57. /package/dist/{components → src/components}/PoolsGraph/PoolsGraph.scss +0 -0
  58. /package/dist/{components → src/components}/ProgressViewer/ProgressViewer.scss +0 -0
  59. /package/dist/{components → src/components}/QueryExecutionStatus/QueryExecutionStatus.scss +0 -0
  60. /package/dist/{components → src/components}/QueryResultTable/QueryResultTable.scss +0 -0
  61. /package/dist/{components → src/components}/ResizeableDataTable/ResizeableDataTable.scss +0 -0
  62. /package/dist/{components → src/components}/Search/Search.scss +0 -0
  63. /package/dist/{components → src/components}/ShortyString/ShortyString.scss +0 -0
  64. /package/dist/{components → src/components}/SpeedMultiMeter/SpeedMultiMeter.scss +0 -0
  65. /package/dist/{components → src/components}/SplitPane/SplitPane.scss +0 -0
  66. /package/dist/{components → src/components}/Stack/Stack.scss +0 -0
  67. /package/dist/{components → src/components}/StatusIcon/StatusIcon.scss +0 -0
  68. /package/dist/{components → src/components}/TableSkeleton/TableSkeleton.scss +0 -0
  69. /package/dist/{components → src/components}/TableWithControlsLayout/TableWithControlsLayout.scss +0 -0
  70. /package/dist/{components → src/components}/Tablet/Tablet.scss +0 -0
  71. /package/dist/{components → src/components}/TabletIcon/TabletIcon.scss +0 -0
  72. /package/dist/{components → src/components}/TabletsOverall/TabletsOverall.scss +0 -0
  73. /package/dist/{components → src/components}/TabletsStatistic/TabletsStatistic.scss +0 -0
  74. /package/dist/{components → src/components}/Tag/Tag.scss +0 -0
  75. /package/dist/{components → src/components}/Tags/Tags.scss +0 -0
  76. /package/dist/{components → src/components}/TimeFrameSelector/TimeFrameSelector.scss +0 -0
  77. /package/dist/{components → src/components}/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.scss +0 -0
  78. /package/dist/{components → src/components}/TruncatedQuery/TruncatedQuery.scss +0 -0
  79. /package/dist/{components → src/components}/UsageLabel/UsageLabel.scss +0 -0
  80. /package/dist/{components → src/components}/User/User.scss +0 -0
  81. /package/dist/{components → src/components}/VDisk/VDisk.scss +0 -0
  82. /package/dist/{components → src/components}/VDiskInfo/VDiskInfo.scss +0 -0
  83. /package/dist/{components → src/components}/VDiskPopup/VDiskPopup.scss +0 -0
  84. /package/dist/{components → src/components}/VirtualTable/VirtualTable.scss +0 -0
  85. /package/dist/{containers → src/containers}/AppWithClusters/ExtendedCluster/ExtendedCluster.scss +0 -0
  86. /package/dist/{containers → src/containers}/AsideNavigation/AsideNavigation.scss +0 -0
  87. /package/dist/{containers → src/containers}/AsideNavigation/YdbInternalUser/YdbInternalUser.scss +0 -0
  88. /package/dist/{containers → src/containers}/Authentication/Authentication.scss +0 -0
  89. /package/dist/{containers → src/containers}/Cluster/Cluster.scss +0 -0
  90. /package/dist/{containers → src/containers}/Cluster/ClusterInfo/ClusterInfo.scss +0 -0
  91. /package/dist/{containers → src/containers}/Cluster/VersionsBar/VersionsBar.scss +0 -0
  92. /package/dist/{containers → src/containers}/Clusters/Clusters.scss +0 -0
  93. /package/dist/{containers → src/containers}/Header/Header.scss +0 -0
  94. /package/dist/{containers → src/containers}/Heatmap/Heatmap.scss +0 -0
  95. /package/dist/{containers → src/containers}/Heatmap/Histogram/Histogram.scss +0 -0
  96. /package/dist/{containers → src/containers}/Node/Node.scss +0 -0
  97. /package/dist/{containers → src/containers}/Node/NodeStructure/NodeStructure.scss +0 -0
  98. /package/dist/{containers → src/containers}/Nodes/Nodes.scss +0 -0
  99. /package/dist/{containers → src/containers}/PDiskPage/PDiskPage.scss +0 -0
  100. /package/dist/{containers → src/containers}/ReduxTooltip/ReduxTooltip.scss +0 -0
  101. /package/dist/{containers → src/containers}/Storage/PDisk/PDisk.scss +0 -0
  102. /package/dist/{containers → src/containers}/Storage/Storage.scss +0 -0
  103. /package/dist/{containers → src/containers}/Storage/StorageGroups/StorageGroups.scss +0 -0
  104. /package/dist/{containers → src/containers}/Storage/StorageNodes/StorageNodes.scss +0 -0
  105. /package/dist/{containers → src/containers}/Storage/UsageFilter/UsageFilter.scss +0 -0
  106. /package/dist/{containers → src/containers}/Tablet/Tablet.scss +0 -0
  107. /package/dist/{containers → src/containers}/TabletsFilters/TabletsFilters.scss +0 -0
  108. /package/dist/{containers → src/containers}/Tenant/Acl/Acl.scss +0 -0
  109. /package/dist/{containers → src/containers}/Tenant/Diagnostics/Autorefresh/AutorefreshControl.scss +0 -0
  110. /package/dist/{containers → src/containers}/Tenant/Diagnostics/Consumers/Consumers.scss +0 -0
  111. /package/dist/{containers → src/containers}/Tenant/Diagnostics/Consumers/Headers/Headers.scss +0 -0
  112. /package/dist/{containers → src/containers}/Tenant/Diagnostics/Consumers/TopicStats/ConsumersTopicStats.scss +0 -0
  113. /package/dist/{containers → src/containers}/Tenant/Diagnostics/Consumers/columns/Columns.scss +0 -0
  114. /package/dist/{containers → src/containers}/Tenant/Diagnostics/Describe/Describe.scss +0 -0
  115. /package/dist/{containers → src/containers}/Tenant/Diagnostics/DetailedOverview/DetailedOverview.scss +0 -0
  116. /package/dist/{containers → src/containers}/Tenant/Diagnostics/Diagnostics.scss +0 -0
  117. /package/dist/{containers → src/containers}/Tenant/Diagnostics/HotKeys/HotKeys.scss +0 -0
  118. /package/dist/{containers → src/containers}/Tenant/Diagnostics/Network/Network.scss +0 -0
  119. /package/dist/{containers → src/containers}/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.scss +0 -0
  120. /package/dist/{containers → src/containers}/Tenant/Diagnostics/Overview/AsyncReplicationPaths/AsyncReplicationPaths.scss +0 -0
  121. /package/dist/{containers → src/containers}/Tenant/Diagnostics/Overview/TableInfo/TableInfo.scss +0 -0
  122. /package/dist/{containers → src/containers}/Tenant/Diagnostics/Overview/TopicStats/TopicStats.scss +0 -0
  123. /package/dist/{containers → src/containers}/Tenant/Diagnostics/Partitions/Headers/Headers.scss +0 -0
  124. /package/dist/{containers → src/containers}/Tenant/Diagnostics/Partitions/Partitions.scss +0 -0
  125. /package/dist/{containers → src/containers}/Tenant/Diagnostics/Partitions/columns/Columns.scss +0 -0
  126. /package/dist/{containers → src/containers}/Tenant/Diagnostics/TenantOverview/Healthcheck/Healthcheck.scss +0 -0
  127. /package/dist/{containers → src/containers}/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.scss +0 -0
  128. /package/dist/{containers → src/containers}/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTreeItem/IssueTreeItem.scss +0 -0
  129. /package/dist/{containers → src/containers}/Tenant/Diagnostics/TenantOverview/MetricsCards/MetricCard/MetricCard.scss +0 -0
  130. /package/dist/{containers → src/containers}/Tenant/Diagnostics/TenantOverview/MetricsCards/MetricsCards.scss +0 -0
  131. /package/dist/{containers → src/containers}/Tenant/Diagnostics/TenantOverview/TenantDashboard/TenantDashboard.scss +0 -0
  132. /package/dist/{containers → src/containers}/Tenant/Diagnostics/TenantOverview/TenantOverview.scss +0 -0
  133. /package/dist/{containers → src/containers}/Tenant/Diagnostics/TopQueries/TopQueries.scss +0 -0
  134. /package/dist/{containers → src/containers}/Tenant/Diagnostics/TopShards/TopShards.scss +0 -0
  135. /package/dist/{containers → src/containers}/Tenant/Info/ExternalDataSource/ExternalDataSource.scss +0 -0
  136. /package/dist/{containers → src/containers}/Tenant/Info/ExternalTable/ExternalTable.scss +0 -0
  137. /package/dist/{containers → src/containers}/Tenant/Info/View/View.scss +0 -0
  138. /package/dist/{containers → src/containers}/Tenant/ObjectGeneral/ObjectGeneral.scss +0 -0
  139. /package/dist/{containers → src/containers}/Tenant/ObjectSummary/ObjectSummary.scss +0 -0
  140. /package/dist/{containers → src/containers}/Tenant/Query/ExecuteResult/ExecuteResult.scss +0 -0
  141. /package/dist/{containers → src/containers}/Tenant/Query/ExplainResult/ExplainResult.scss +0 -0
  142. /package/dist/{containers → src/containers}/Tenant/Query/Issues/Issues.scss +0 -0
  143. /package/dist/{containers → src/containers}/Tenant/Query/Preview/Preview.scss +0 -0
  144. /package/dist/{containers → src/containers}/Tenant/Query/QueriesHistory/QueriesHistory.scss +0 -0
  145. /package/dist/{containers → src/containers}/Tenant/Query/Query.scss +0 -0
  146. /package/dist/{containers → src/containers}/Tenant/Query/QueryDuration/QueryDuration.scss +0 -0
  147. /package/dist/{containers → src/containers}/Tenant/Query/QueryEditor/QueryEditor.scss +0 -0
  148. /package/dist/{containers → src/containers}/Tenant/Query/QueryEditorControls/QueryEditorControls.scss +0 -0
  149. /package/dist/{containers → src/containers}/Tenant/Query/SaveQuery/SaveQuery.scss +0 -0
  150. /package/dist/{containers → src/containers}/Tenant/Query/SavedQueries/SavedQueries.scss +0 -0
  151. /package/dist/{containers → src/containers}/Tenant/Schema/SchemaViewer/SchemaViewer.scss +0 -0
  152. /package/dist/{containers → src/containers}/Tenant/Tenant.scss +0 -0
  153. /package/dist/{containers → src/containers}/Tenant/utils/ToggleButton.scss +0 -0
  154. /package/dist/{containers → src/containers}/Tenants/Tenants.scss +0 -0
  155. /package/dist/{containers → src/containers}/UserSettings/UserSettings.scss +0 -0
  156. /package/dist/{containers → src/containers}/VDiskPage/VDiskPage.scss +0 -0
  157. /package/dist/{containers → src/containers}/Versions/GroupedNodesTree/GroupedNodesTree.scss +0 -0
  158. /package/dist/{containers → src/containers}/Versions/NodesTreeTitle/NodesTreeTitle.scss +0 -0
  159. /package/dist/{containers → src/containers}/Versions/Versions.scss +0 -0
  160. /package/dist/{index.css → src/index.css} +0 -0
  161. /package/dist/{styles → src/styles}/mixins.scss +0 -0
  162. /package/dist/{styles → src/styles}/themes/dark-hc.scss +0 -0
  163. /package/dist/{styles → src/styles}/themes/dark.scss +0 -0
  164. /package/dist/{styles → src/styles}/themes/light-hc.scss +0 -0
  165. /package/dist/{styles → src/styles}/themes/light.scss +0 -0
  166. /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.0",
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
- [ETenantType.UnknownTenantType]: 'Database',
56
- [ETenantType.Domain]: 'Cluster Root',
57
- [ETenantType.Dedicated]: 'Dedicated Database',
58
- [ETenantType.Shared]: 'Shared Database',
59
- [ETenantType.Serverless]: 'Serverless Database',
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 declare enum ETenantType {
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: 'Database',
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: string;
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 === ETenantType.Serverless
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.0",
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",
@@ -1,9 +0,0 @@
1
- :root {
2
- --tenant-object-info-max-value-width: 300px;
3
-
4
- --diagnostics-section-title-margin: 20px;
5
-
6
- --diagnostics-section-margin: 30px;
7
-
8
- --diagnostics-section-table-width: 872px;
9
- }
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