ydb-embedded-ui 1.8.2 → 1.8.5
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 +21 -0
- package/dist/components/AsideNavigation/Settings/i18n/index.ts +3 -3
- package/dist/components/AsideNavigation/i18n/index.ts +3 -3
- package/dist/containers/App/App.js +7 -3
- package/dist/containers/AsideNavigation/AsideNavigation.tsx +1 -0
- package/dist/services/api.js +3 -0
- package/dist/utils/getNodesColumns.js +1 -1
- package/dist/utils/i18n/i18n.ts +4 -3
- package/package.json +4 -4
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,
|
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(
|
9
|
-
i18n.registerKeyset(
|
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,
|
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(
|
9
|
-
i18n.registerKeyset(
|
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 {
|
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(
|
29
|
-
YDBComponentsI18N.setLang(
|
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}) => (
|
package/dist/services/api.js
CHANGED
@@ -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>;
|
package/dist/utils/i18n/i18n.ts
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ydb-embedded-ui",
|
3
|
-
"version": "1.8.
|
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.
|
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.
|
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.
|
109
|
+
"@yandex-cloud/uikit": "^2.8.0"
|
110
110
|
}
|
111
111
|
}
|