ydb-embedded-ui 1.8.3 → 1.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.8.4](https://github.com/ydb-platform/ydb-embedded-ui/compare/v1.8.3...v1.8.4) (2022-07-11)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **Nodes:** add /internal for nodes external link ([a649dd2](https://github.com/ydb-platform/ydb-embedded-ui/commit/a649dd209bae4abd6916f23d0894df893602aaf7))
9
+
3
10
  ## [1.8.3](https://github.com/ydb-platform/ydb-embedded-ui/compare/v1.8.2...v1.8.3) (2022-07-08)
4
11
 
5
12
 
@@ -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() {
@@ -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.3",
3
+ "version": "1.8.4",
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
  }