@open-amt-cloud-toolkit/ui-toolkit-react 2.0.6 → 3.0.0
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/dist/package.json +43 -43
- package/i18n.d.ts +6 -0
- package/package.json +43 -43
- package/reactjs/KVM/ConnectButton.d.ts +13 -0
- package/reactjs/KVM/DesktopSettings.d.ts +17 -0
- package/reactjs/KVM/EncodingOptions.d.ts +17 -0
- package/reactjs/KVM/Header.d.ts +17 -0
- package/reactjs/KVM/PureCanvas.d.ts +19 -0
- package/reactjs/KVM/UI.d.ts +46 -0
- package/reactjs/KVM/index.d.ts +1 -0
- package/reactjs/SerialOverLAN/Sol.d.ts +53 -0
- package/reactjs/SerialOverLAN/Terminal.d.ts +16 -0
- package/reactjs/SerialOverLAN/index.d.ts +5 -0
- package/reactjs/services/HttpClient.d.ts +10 -0
- package/reactjs/shared/Methods.d.ts +13 -0
- package/reactjs/shared/SnackBar.d.ts +5 -0
- package/reactjs/shared/Utilities.d.ts +8 -0
- package/reactjs/src/kvm.bundle.js +1 -0
- package/reactjs/src/sol.bundle.js +15 -0
- package/reactjs/src/sol.bundle.js.LICENSE.txt +18 -0
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-amt-cloud-toolkit/ui-toolkit-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "React UI controls for Intel AMT features",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,63 +22,63 @@
|
|
|
22
22
|
"homepage": "https://github.com/open-amt-cloud-toolkit/ui-toolkit-react#readme",
|
|
23
23
|
"types": "index.d.ts",
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"react": "^
|
|
26
|
-
"react-dom": "^
|
|
25
|
+
"react": "^18.2.0",
|
|
26
|
+
"react-dom": "^18.2.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@fortawesome/fontawesome-svg-core": "^6.
|
|
30
|
-
"@fortawesome/free-solid-svg-icons": "^6.
|
|
29
|
+
"@fortawesome/fontawesome-svg-core": "^6.2.1",
|
|
30
|
+
"@fortawesome/free-solid-svg-icons": "^6.2.1",
|
|
31
31
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
32
32
|
"@open-amt-cloud-toolkit/ui-toolkit": "^2.0.5",
|
|
33
|
-
"i18next": "^
|
|
34
|
-
"i18next-browser-languagedetector": "^
|
|
33
|
+
"i18next": "^22.0.5",
|
|
34
|
+
"i18next-browser-languagedetector": "^7.0.1",
|
|
35
35
|
"md5": "^2.2.1",
|
|
36
|
-
"moment": "^2.
|
|
37
|
-
"react-i18next": "^
|
|
38
|
-
"sass": "^1.
|
|
36
|
+
"moment": "^2.29.4",
|
|
37
|
+
"react-i18next": "^12.0.0",
|
|
38
|
+
"sass": "^1.56.1",
|
|
39
39
|
"styled-components": "^5.3.0",
|
|
40
40
|
"winston": "^3.0.0",
|
|
41
|
-
"ws": "^8.
|
|
41
|
+
"ws": "^8.11.0",
|
|
42
42
|
"xterm": "^5.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"@types/
|
|
49
|
-
"@types/
|
|
50
|
-
"@types/
|
|
51
|
-
"@types/react
|
|
45
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
46
|
+
"@testing-library/react": "^13.4.0",
|
|
47
|
+
"@testing-library/user-event": "^14.4.3",
|
|
48
|
+
"@types/jest": "^29.2.3",
|
|
49
|
+
"@types/md5": "^2.3.2",
|
|
50
|
+
"@types/node": "^18.11.9",
|
|
51
|
+
"@types/react": "^18.0.25",
|
|
52
|
+
"@types/react-dom": "^18.0.9",
|
|
52
53
|
"@types/ws": "^8.2.0",
|
|
53
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
54
|
-
"@typescript-eslint/parser": "^
|
|
55
|
-
"canvas": "^2.
|
|
56
|
-
"css-loader": "^6.2
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"eslint": "^
|
|
60
|
-
"eslint-
|
|
61
|
-
"eslint-config-standard-with-typescript": "^21.0.1",
|
|
62
|
-
"eslint-plugin-import": "^2.23.4",
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "^5.43.0",
|
|
55
|
+
"@typescript-eslint/parser": "^5.43.0",
|
|
56
|
+
"canvas": "^2.10.2",
|
|
57
|
+
"css-loader": "^6.7.2",
|
|
58
|
+
"eslint": "^8.27.0",
|
|
59
|
+
"eslint-config-standard": "^17.0.0",
|
|
60
|
+
"eslint-config-standard-with-typescript": "^23.0.0",
|
|
61
|
+
"eslint-plugin-import": "^2.26.0",
|
|
63
62
|
"eslint-plugin-node": "^11.1.0",
|
|
64
|
-
"eslint-plugin-promise": "^
|
|
63
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
65
64
|
"filereader": "^0.10.3",
|
|
66
|
-
"html-webpack-plugin": "^5.
|
|
65
|
+
"html-webpack-plugin": "^5.5.0",
|
|
67
66
|
"identity-obj-proxy": "^3.0.0",
|
|
68
|
-
"jest": "^
|
|
69
|
-
"jest-
|
|
67
|
+
"jest": "^29.3.1 ",
|
|
68
|
+
"jest-environment-jsdom": "^29.3.1",
|
|
69
|
+
"jest-junit": "^14.0.1",
|
|
70
70
|
"jest-transform-stub": "^2.0.0",
|
|
71
|
-
"react": "^
|
|
72
|
-
"react-dom": "^
|
|
73
|
-
"sass-loader": "^13.
|
|
74
|
-
"source-map-loader": "^4.0.
|
|
75
|
-
"style-loader": "^3.
|
|
76
|
-
"ts-jest": "^
|
|
77
|
-
"ts-loader": "^9.
|
|
78
|
-
"typescript": "^4.3
|
|
79
|
-
"webpack": "^5.
|
|
80
|
-
"webpack-cli": "^4.
|
|
81
|
-
"webpack-dev-server": "^4.
|
|
71
|
+
"react": "^18.2.0",
|
|
72
|
+
"react-dom": "^18.2.0",
|
|
73
|
+
"sass-loader": "^13.2.0",
|
|
74
|
+
"source-map-loader": "^4.0.1",
|
|
75
|
+
"style-loader": "^3.3.1",
|
|
76
|
+
"ts-jest": "^29.0.3",
|
|
77
|
+
"ts-loader": "^9.4.1",
|
|
78
|
+
"typescript": "^4.9.3",
|
|
79
|
+
"webpack": "^5.75.0",
|
|
80
|
+
"webpack-cli": "^4.10.0",
|
|
81
|
+
"webpack-dev-server": "^4.11.1",
|
|
82
82
|
"webpack-node-externals": "^3.0.0"
|
|
83
83
|
}
|
|
84
84
|
}
|
package/i18n.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*********************************************************************
|
|
2
|
+
* Copyright (c) Intel Corporation 2019
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
**********************************************************************/
|
|
5
|
+
import i18n from 'i18next';
|
|
6
|
+
export default i18n;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-amt-cloud-toolkit/ui-toolkit-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "React UI controls for Intel AMT features",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,63 +22,63 @@
|
|
|
22
22
|
"homepage": "https://github.com/open-amt-cloud-toolkit/ui-toolkit-react#readme",
|
|
23
23
|
"types": "index.d.ts",
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"react": "^
|
|
26
|
-
"react-dom": "^
|
|
25
|
+
"react": "^18.2.0",
|
|
26
|
+
"react-dom": "^18.2.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@fortawesome/fontawesome-svg-core": "^6.
|
|
30
|
-
"@fortawesome/free-solid-svg-icons": "^6.
|
|
29
|
+
"@fortawesome/fontawesome-svg-core": "^6.2.1",
|
|
30
|
+
"@fortawesome/free-solid-svg-icons": "^6.2.1",
|
|
31
31
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
32
32
|
"@open-amt-cloud-toolkit/ui-toolkit": "^2.0.5",
|
|
33
|
-
"i18next": "^
|
|
34
|
-
"i18next-browser-languagedetector": "^
|
|
33
|
+
"i18next": "^22.0.5",
|
|
34
|
+
"i18next-browser-languagedetector": "^7.0.1",
|
|
35
35
|
"md5": "^2.2.1",
|
|
36
|
-
"moment": "^2.
|
|
37
|
-
"react-i18next": "^
|
|
38
|
-
"sass": "^1.
|
|
36
|
+
"moment": "^2.29.4",
|
|
37
|
+
"react-i18next": "^12.0.0",
|
|
38
|
+
"sass": "^1.56.1",
|
|
39
39
|
"styled-components": "^5.3.0",
|
|
40
40
|
"winston": "^3.0.0",
|
|
41
|
-
"ws": "^8.
|
|
41
|
+
"ws": "^8.11.0",
|
|
42
42
|
"xterm": "^5.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"@types/
|
|
49
|
-
"@types/
|
|
50
|
-
"@types/
|
|
51
|
-
"@types/react
|
|
45
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
46
|
+
"@testing-library/react": "^13.4.0",
|
|
47
|
+
"@testing-library/user-event": "^14.4.3",
|
|
48
|
+
"@types/jest": "^29.2.3",
|
|
49
|
+
"@types/md5": "^2.3.2",
|
|
50
|
+
"@types/node": "^18.11.9",
|
|
51
|
+
"@types/react": "^18.0.25",
|
|
52
|
+
"@types/react-dom": "^18.0.9",
|
|
52
53
|
"@types/ws": "^8.2.0",
|
|
53
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
54
|
-
"@typescript-eslint/parser": "^
|
|
55
|
-
"canvas": "^2.
|
|
56
|
-
"css-loader": "^6.2
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"eslint": "^
|
|
60
|
-
"eslint-
|
|
61
|
-
"eslint-config-standard-with-typescript": "^21.0.1",
|
|
62
|
-
"eslint-plugin-import": "^2.23.4",
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "^5.43.0",
|
|
55
|
+
"@typescript-eslint/parser": "^5.43.0",
|
|
56
|
+
"canvas": "^2.10.2",
|
|
57
|
+
"css-loader": "^6.7.2",
|
|
58
|
+
"eslint": "^8.27.0",
|
|
59
|
+
"eslint-config-standard": "^17.0.0",
|
|
60
|
+
"eslint-config-standard-with-typescript": "^23.0.0",
|
|
61
|
+
"eslint-plugin-import": "^2.26.0",
|
|
63
62
|
"eslint-plugin-node": "^11.1.0",
|
|
64
|
-
"eslint-plugin-promise": "^
|
|
63
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
65
64
|
"filereader": "^0.10.3",
|
|
66
|
-
"html-webpack-plugin": "^5.
|
|
65
|
+
"html-webpack-plugin": "^5.5.0",
|
|
67
66
|
"identity-obj-proxy": "^3.0.0",
|
|
68
|
-
"jest": "^
|
|
69
|
-
"jest-
|
|
67
|
+
"jest": "^29.3.1 ",
|
|
68
|
+
"jest-environment-jsdom": "^29.3.1",
|
|
69
|
+
"jest-junit": "^14.0.1",
|
|
70
70
|
"jest-transform-stub": "^2.0.0",
|
|
71
|
-
"react": "^
|
|
72
|
-
"react-dom": "^
|
|
73
|
-
"sass-loader": "^13.
|
|
74
|
-
"source-map-loader": "^4.0.
|
|
75
|
-
"style-loader": "^3.
|
|
76
|
-
"ts-jest": "^
|
|
77
|
-
"ts-loader": "^9.
|
|
78
|
-
"typescript": "^4.3
|
|
79
|
-
"webpack": "^5.
|
|
80
|
-
"webpack-cli": "^4.
|
|
81
|
-
"webpack-dev-server": "^4.
|
|
71
|
+
"react": "^18.2.0",
|
|
72
|
+
"react-dom": "^18.2.0",
|
|
73
|
+
"sass-loader": "^13.2.0",
|
|
74
|
+
"source-map-loader": "^4.0.1",
|
|
75
|
+
"style-loader": "^3.3.1",
|
|
76
|
+
"ts-jest": "^29.0.3",
|
|
77
|
+
"ts-loader": "^9.4.1",
|
|
78
|
+
"typescript": "^4.9.3",
|
|
79
|
+
"webpack": "^5.75.0",
|
|
80
|
+
"webpack-cli": "^4.10.0",
|
|
81
|
+
"webpack-dev-server": "^4.11.1",
|
|
82
82
|
"webpack-node-externals": "^3.0.0"
|
|
83
83
|
}
|
|
84
84
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*********************************************************************
|
|
2
|
+
* Copyright (c) Intel Corporation 2019
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
**********************************************************************/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import './ConnectButton.scss';
|
|
7
|
+
export interface ConnectProps {
|
|
8
|
+
kvmstate: number;
|
|
9
|
+
handleConnectClick: (e: any) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare class ConnectButton extends React.Component<ConnectProps, {}> {
|
|
12
|
+
render(): React.ReactNode;
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*********************************************************************
|
|
2
|
+
* Copyright (c) Intel Corporation 2019
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
**********************************************************************/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
export interface IDesktopSettings {
|
|
7
|
+
changeDesktopSettings: (settings: any) => void;
|
|
8
|
+
getConnectState: () => number;
|
|
9
|
+
}
|
|
10
|
+
export declare class DesktopSettings extends React.Component<IDesktopSettings> {
|
|
11
|
+
desktopsettings: {
|
|
12
|
+
encoding: number;
|
|
13
|
+
};
|
|
14
|
+
constructor(props: IDesktopSettings);
|
|
15
|
+
changeEncoding(encoding: number): void;
|
|
16
|
+
render(): React.ReactNode;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*********************************************************************
|
|
2
|
+
* Copyright (c) Intel Corporation 2019
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
**********************************************************************/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import './EncodingOptions.scss';
|
|
7
|
+
export interface IEncodingOptions {
|
|
8
|
+
changeEncoding: (encoding: number) => void;
|
|
9
|
+
getConnectState: () => number;
|
|
10
|
+
}
|
|
11
|
+
export declare class EncodingOptions extends React.Component<IEncodingOptions, {
|
|
12
|
+
value: number;
|
|
13
|
+
}> {
|
|
14
|
+
constructor(props: IEncodingOptions);
|
|
15
|
+
onEncodingChange(e: any): void;
|
|
16
|
+
render(): React.ReactNode;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*********************************************************************
|
|
2
|
+
* Copyright (c) Intel Corporation 2019
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
**********************************************************************/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import './Header.scss';
|
|
7
|
+
export interface IHeaderProps {
|
|
8
|
+
kvmstate: number;
|
|
9
|
+
deviceId: string | null;
|
|
10
|
+
server: string | null;
|
|
11
|
+
handleConnectClick: (e: any) => void;
|
|
12
|
+
changeDesktopSettings: (settings: any) => void;
|
|
13
|
+
getConnectState: () => number;
|
|
14
|
+
}
|
|
15
|
+
export declare class Header extends React.Component<IHeaderProps> {
|
|
16
|
+
render(): JSX.Element;
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*********************************************************************
|
|
2
|
+
* Copyright (c) Intel Corporation 2019
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
* Author : Ramu Bachala
|
|
5
|
+
**********************************************************************/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import './PureCanvas.scss';
|
|
8
|
+
export interface PureCanvasProps {
|
|
9
|
+
contextRef: (ctx: CanvasRenderingContext2D) => void;
|
|
10
|
+
mouseDown: (event: React.MouseEvent) => void;
|
|
11
|
+
mouseUp: (event: React.MouseEvent) => void;
|
|
12
|
+
mouseMove: (event: React.MouseEvent) => void;
|
|
13
|
+
canvasHeight: string;
|
|
14
|
+
canvasWidth: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class PureCanvas extends React.Component<PureCanvasProps, {}> {
|
|
17
|
+
shouldComponentUpdate(): boolean;
|
|
18
|
+
render(): React.ReactNode;
|
|
19
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*********************************************************************
|
|
2
|
+
* Copyright (c) Intel Corporation 2019
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
* Author : Ramu Bachala
|
|
5
|
+
**********************************************************************/
|
|
6
|
+
import { IDataProcessor, IKvmDataCommunicator, ILogger, Desktop, MouseHelper, KeyBoardHelper } from '@open-amt-cloud-toolkit/ui-toolkit/core';
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import './UI.scss';
|
|
9
|
+
export interface KVMProps {
|
|
10
|
+
deviceId: string | null;
|
|
11
|
+
mpsServer: string | null;
|
|
12
|
+
mouseDebounceTime: number;
|
|
13
|
+
canvasHeight: string;
|
|
14
|
+
canvasWidth: string;
|
|
15
|
+
autoConnect?: boolean;
|
|
16
|
+
authToken: string;
|
|
17
|
+
}
|
|
18
|
+
export declare class KVM extends React.Component<KVMProps, {
|
|
19
|
+
kvmstate: number;
|
|
20
|
+
encodingOption: number;
|
|
21
|
+
}> {
|
|
22
|
+
module: Desktop | any;
|
|
23
|
+
dataProcessor: IDataProcessor | any;
|
|
24
|
+
redirector: IKvmDataCommunicator | any;
|
|
25
|
+
mouseHelper: MouseHelper | any;
|
|
26
|
+
logger: ILogger;
|
|
27
|
+
keyboard: KeyBoardHelper | any;
|
|
28
|
+
desktopSettingsChange: boolean;
|
|
29
|
+
ctx: CanvasRenderingContext2D;
|
|
30
|
+
fr: FileReader;
|
|
31
|
+
constructor(props: KVMProps);
|
|
32
|
+
saveContext(ctx: CanvasRenderingContext2D): void;
|
|
33
|
+
init(): void;
|
|
34
|
+
cleanUp(): void;
|
|
35
|
+
componentWillUnmount(): void;
|
|
36
|
+
onRedirectorError(): void;
|
|
37
|
+
reset(): void;
|
|
38
|
+
OnConnectionStateChange(redirector: any, state: number): any;
|
|
39
|
+
changeDesktopSettings(settings: any): void;
|
|
40
|
+
startKVM(): void;
|
|
41
|
+
stopKVM(): void;
|
|
42
|
+
getRenderStatus(): any;
|
|
43
|
+
handleConnectClick(e: any): void;
|
|
44
|
+
componentDidUpdate(prevProps: any): void;
|
|
45
|
+
render(): React.ReactNode;
|
|
46
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*********************************************************************
|
|
2
|
+
* Copyright (c) Intel Corporation 2019
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
**********************************************************************/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import 'xterm/css/xterm.css';
|
|
7
|
+
import './sol.scss';
|
|
8
|
+
export interface SOLProps {
|
|
9
|
+
deviceId: string | null;
|
|
10
|
+
mpsServer: string | null;
|
|
11
|
+
autoConnect?: boolean;
|
|
12
|
+
authToken: string;
|
|
13
|
+
}
|
|
14
|
+
export interface SOLStates {
|
|
15
|
+
isConnected: boolean;
|
|
16
|
+
SOLstate: number;
|
|
17
|
+
powerState: number;
|
|
18
|
+
showSuccess: boolean;
|
|
19
|
+
message: string;
|
|
20
|
+
isSelected: boolean;
|
|
21
|
+
type: string;
|
|
22
|
+
solNotEnabled: string;
|
|
23
|
+
deviceOnSleep: string;
|
|
24
|
+
isPowerStateLoaded: boolean;
|
|
25
|
+
}
|
|
26
|
+
/** container class for SOL */
|
|
27
|
+
export declare class Sol extends React.Component<SOLProps, SOLStates> {
|
|
28
|
+
redirector: any;
|
|
29
|
+
terminal: any;
|
|
30
|
+
logger: any;
|
|
31
|
+
dataProcessor: any;
|
|
32
|
+
callback: any;
|
|
33
|
+
term: any;
|
|
34
|
+
fr: FileReader;
|
|
35
|
+
constructor(props: SOLProps);
|
|
36
|
+
init: () => void;
|
|
37
|
+
cleanUp: () => void;
|
|
38
|
+
componentDidMount(): void;
|
|
39
|
+
/** write the processed data from webscoket in to xterm */
|
|
40
|
+
handleWriteToXterm: (str: any) => any;
|
|
41
|
+
handleClearTerminal: () => any;
|
|
42
|
+
/** capture the data on xterm key press */
|
|
43
|
+
handleKeyPress: (domEvent: any) => any;
|
|
44
|
+
handleKeyDownPress: (domEvent: any) => any;
|
|
45
|
+
startSOL: () => void;
|
|
46
|
+
stopSOL: () => void;
|
|
47
|
+
handleSOLConnect: (e: any) => void;
|
|
48
|
+
onTerminalStateChange: (redirector: any, state: number) => void;
|
|
49
|
+
/** callback functions from child components to update the state values */
|
|
50
|
+
handleFeatureStatus: (value: any) => void;
|
|
51
|
+
getSOLState: () => any;
|
|
52
|
+
render(): React.ReactNode;
|
|
53
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*********************************************************************
|
|
2
|
+
* Copyright (c) Intel Corporation 2019
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
**********************************************************************/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
export interface IPropTerminal {
|
|
7
|
+
handleKeyPress: any;
|
|
8
|
+
xterm: any;
|
|
9
|
+
handleKeyDownPress: any;
|
|
10
|
+
}
|
|
11
|
+
declare class Term extends React.Component<IPropTerminal> {
|
|
12
|
+
mountedWorkaround: boolean;
|
|
13
|
+
componentDidMount(): void;
|
|
14
|
+
render(): React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export default Term;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*********************************************************************
|
|
2
|
+
* Copyright (c) Intel Corporation 2019
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
**********************************************************************/
|
|
5
|
+
export declare const HttpClient: {
|
|
6
|
+
get(url: any, options?: {}): Promise<any>;
|
|
7
|
+
post(url: any, body?: {}, options?: {}): Promise<any>;
|
|
8
|
+
delete(url: any, options?: {}): Promise<any>;
|
|
9
|
+
fetch(url: any, options?: {}): Promise<any>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*********************************************************************
|
|
2
|
+
* Copyright (c) Intel Corporation 2019
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
**********************************************************************/
|
|
5
|
+
/** function to get the static tranlation texts from translation.json
|
|
6
|
+
* @param: text - contains the path to the text in translation.json
|
|
7
|
+
*/
|
|
8
|
+
export declare const translateText: (text: any) => any;
|
|
9
|
+
/** function to get the translation text when there are dynamic values to be rendered in translation
|
|
10
|
+
* @param: text - contains the path to the text in translation.json
|
|
11
|
+
* @param: translate - object containing dynamic values. The keys to be used inside translation.json
|
|
12
|
+
*/
|
|
13
|
+
export declare const translateDynamicText: (text: any, translate: any) => any;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*********************************************************************
|
|
2
|
+
* Copyright (c) Intel Corporation 2019
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
**********************************************************************/
|
|
5
|
+
/** utility function to join the css class names */
|
|
6
|
+
export declare const joinClasses: (...classNames: any[]) => any;
|
|
7
|
+
export declare const prepareHeaders: () => any;
|
|
8
|
+
export declare const isFalsy: (value: any) => boolean;
|