ydb-embedded-ui 1.8.2 → 1.8.5

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.8.5](https://github.com/ydb-platform/ydb-embedded-ui/compare/v1.8.4...v1.8.5) (2022-07-11)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **AsideNavigation:** aside header is compact by default ([aa3ad03](https://github.com/ydb-platform/ydb-embedded-ui/commit/aa3ad033fc6b62e6f2ee595e266343e67e764ec6))
9
+
10
+ ## [1.8.4](https://github.com/ydb-platform/ydb-embedded-ui/compare/v1.8.3...v1.8.4) (2022-07-11)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **Nodes:** add /internal for nodes external link ([a649dd2](https://github.com/ydb-platform/ydb-embedded-ui/commit/a649dd209bae4abd6916f23d0894df893602aaf7))
16
+
17
+ ## [1.8.3](https://github.com/ydb-platform/ydb-embedded-ui/compare/v1.8.2...v1.8.3) (2022-07-08)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * timeout 600 sec for requests /viewer/json/query ([cf65122](https://github.com/ydb-platform/ydb-embedded-ui/commit/cf651221f866e5f56ecf6c900b3778dedc31eb95))
23
+
3
24
  ## [1.8.2](https://github.com/ydb-platform/ydb-embedded-ui/compare/v1.8.1...v1.8.2) (2022-07-07)
4
25
 
5
26
 
@@ -1,11 +1,11 @@
1
- import {i18n, I18N} from '../../../../utils/i18n';
1
+ import {i18n, Lang} from '../../../../utils/i18n';
2
2
 
3
3
  import en from './en.json';
4
4
  import ru from './ru.json';
5
5
 
6
6
  const COMPONENT = 'nv-settings';
7
7
 
8
- i18n.registerKeyset(I18N.LANGS.en, COMPONENT, en);
9
- i18n.registerKeyset(I18N.LANGS.ru, COMPONENT, ru);
8
+ i18n.registerKeyset(Lang.En, COMPONENT, en);
9
+ i18n.registerKeyset(Lang.Ru, COMPONENT, ru);
10
10
 
11
11
  export default i18n.keyset(COMPONENT);
@@ -1,11 +1,11 @@
1
- import {i18n, I18N} from '../../../utils/i18n';
1
+ import {i18n, Lang} from '../../../utils/i18n';
2
2
 
3
3
  import en from './en.json';
4
4
  import ru from './ru.json';
5
5
 
6
6
  const COMPONENT = 'ydb-embedded-ui';
7
7
 
8
- i18n.registerKeyset(I18N.LANGS.en, COMPONENT, en);
9
- i18n.registerKeyset(I18N.LANGS.ru, COMPONENT, ru);
8
+ i18n.registerKeyset(Lang.En, COMPONENT, en);
9
+ i18n.registerKeyset(Lang.Ru, COMPONENT, ru);
10
10
 
11
11
  export default i18n.keyset(COMPONENT);
@@ -2,8 +2,9 @@ import React from 'react';
2
2
  import {connect} from 'react-redux';
3
3
  import PropTypes from 'prop-types';
4
4
 
5
+ import {configure as configureUiKit} from '@yandex-cloud/uikit';
5
6
  import {i18n as YDBComponentsI18N} from 'ydb-ui-components';
6
- import {I18N, i18n} from '../../utils/i18n';
7
+ import {i18n, Lang} from '../../utils/i18n';
7
8
 
8
9
  import ContentWrapper, {Content} from './Content';
9
10
  import AsideNavigation from '../AsideNavigation/AsideNavigation';
@@ -25,8 +26,11 @@ class App extends React.Component {
25
26
 
26
27
  constructor(props) {
27
28
  super(props);
28
- i18n.setLang(I18N.LANGS.en);
29
- YDBComponentsI18N.setLang(I18N.LANGS.en);
29
+ i18n.setLang(Lang.En);
30
+ YDBComponentsI18N.setLang(Lang.En);
31
+ configureUiKit({
32
+ lang: Lang.En,
33
+ });
30
34
  }
31
35
 
32
36
  componentDidMount() {
@@ -189,6 +189,7 @@ function AsideNavigation(props: AsideNavigationProps) {
189
189
  onLogoIconClick={() => history.push('/')}
190
190
  menuItems={menuItems}
191
191
  settings={<UserSettings />}
192
+ initIsCompact
192
193
  className={b()}
193
194
  renderContent={() => props.children}
194
195
  renderFooter={({isCompact, asideRef}) => (
@@ -153,6 +153,7 @@ export class YdbEmbeddedAPI extends AxiosWrapper {
153
153
  database,
154
154
  action,
155
155
  stats,
156
+ timeout: 600000,
156
157
  });
157
158
  }
158
159
  getExplainQuery(query, database) {
@@ -160,6 +161,7 @@ export class YdbEmbeddedAPI extends AxiosWrapper {
160
161
  query,
161
162
  database,
162
163
  action: 'explain',
164
+ timeout: 600000,
163
165
  });
164
166
  }
165
167
  getExplainQueryAst(query, database) {
@@ -167,6 +169,7 @@ export class YdbEmbeddedAPI extends AxiosWrapper {
167
169
  query,
168
170
  database,
169
171
  action: 'explain-ast',
172
+ timeout: 600000,
170
173
  });
171
174
  }
172
175
  getHotKeys(path, enableSampling) {
@@ -24,7 +24,7 @@ export function getNodesColumns({showTooltip, hideTooltip, tabletsPath, getNodeR
24
24
  {
25
25
  name: 'Host',
26
26
  render: ({row, value}) => {
27
- const nodeRef = getNodeRef ? getNodeRef(row) : undefined;
27
+ const nodeRef = getNodeRef ? getNodeRef(row) + 'internal' : undefined;
28
28
 
29
29
  if (typeof value === 'undefined') {
30
30
  return <span>—</span>;
@@ -1,7 +1,8 @@
1
1
  import {I18N} from '@yandex-cloud/i18n';
2
2
 
3
- export type Lang = keyof typeof I18N.LANGS;
3
+ export enum Lang {
4
+ En = 'en',
5
+ Ru = 'ru',
6
+ }
4
7
 
5
8
  export const i18n = new I18N();
6
-
7
- export {I18N} from '@yandex-cloud/i18n';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-embedded-ui",
3
- "version": "1.8.2",
3
+ "version": "1.8.5",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -13,7 +13,7 @@
13
13
  "@testing-library/react": "11.2.7",
14
14
  "@testing-library/user-event": "12.8.3",
15
15
  "@types/qs": "6.9.7",
16
- "@yandex-cloud/i18n": "0.4.0",
16
+ "@yandex-cloud/i18n": "0.6.0",
17
17
  "@yandex-cloud/paranoid": "1.0.0",
18
18
  "@yandex-cloud/react-data-table": "0.2.1",
19
19
  "axios": "0.19.2",
@@ -91,7 +91,7 @@
91
91
  "@yandex-cloud/prettier-config": "^1.0.0",
92
92
  "@yandex-cloud/stylelint-config": "^1.1.0",
93
93
  "@yandex-cloud/tsconfig": "^1.0.0",
94
- "@yandex-cloud/uikit": "^2.4.0",
94
+ "@yandex-cloud/uikit": "^2.8.0",
95
95
  "copyfiles": "^2.4.1",
96
96
  "eslint-config-prettier": "^8.3.0",
97
97
  "husky": "^7.0.4",
@@ -106,6 +106,6 @@
106
106
  },
107
107
  "peerDependencies": {
108
108
  "@yandex-cloud/browserslist-config": "^1.0.1",
109
- "@yandex-cloud/uikit": "^2.4.0"
109
+ "@yandex-cloud/uikit": "^2.8.0"
110
110
  }
111
111
  }