@open-amt-cloud-toolkit/ui-toolkit-react 2.0.2 → 2.0.3
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/README.md +71 -0
- package/dist +83 -0
- package/package.json +83 -77
- package/i18n.d.ts +0 -6
- package/jest.setup.d.ts +0 -5
- package/kvm.min.js +0 -3
- package/kvm.min.js.LICENSE.txt +0 -32
- package/reactjs/KVM/ConnectButton.d.ts +0 -13
- package/reactjs/KVM/DesktopSettings.d.ts +0 -17
- package/reactjs/KVM/EncodingOptions.d.ts +0 -17
- package/reactjs/KVM/Header.d.ts +0 -17
- package/reactjs/KVM/PureCanvas.d.ts +0 -19
- package/reactjs/KVM/UI.d.ts +0 -47
- package/reactjs/KVM/index.d.ts +0 -1
- package/reactjs/SerialOverLAN/Sol.d.ts +0 -53
- package/reactjs/SerialOverLAN/Terminal.d.ts +0 -15
- package/reactjs/SerialOverLAN/index.d.ts +0 -5
- package/reactjs/services/HttpClient.d.ts +0 -10
- package/reactjs/shared/Methods.d.ts +0 -13
- package/reactjs/shared/SnackBar.d.ts +0 -5
- package/reactjs/shared/Utilities.d.ts +0 -8
- package/reactjs/src/kvm.bundle.js +0 -1
- package/reactjs/src/sol.bundle.js +0 -15
- package/reactjs/src/sol.bundle.js.LICENSE.txt +0 -8
- package/sol.min.js +0 -16
- package/sol.min.js.LICENSE.txt +0 -41
- package/src/i18n.d.ts +0 -6
- package/src/reactjs/KVM/ConnectButton.d.ts +0 -13
- package/src/reactjs/KVM/DesktopSettings.d.ts +0 -17
- package/src/reactjs/KVM/EncodingOptions.d.ts +0 -17
- package/src/reactjs/KVM/Header.d.ts +0 -17
- package/src/reactjs/KVM/PureCanvas.d.ts +0 -19
- package/src/reactjs/KVM/UI.d.ts +0 -47
- package/src/reactjs/KVM/index.d.ts +0 -1
- package/src/reactjs/SerialOverLAN/Sol.d.ts +0 -53
- package/src/reactjs/SerialOverLAN/Terminal.d.ts +0 -15
- package/src/reactjs/SerialOverLAN/index.d.ts +0 -5
- package/src/reactjs/services/HttpClient.d.ts +0 -10
- package/src/reactjs/shared/Methods.d.ts +0 -13
- package/src/reactjs/shared/SnackBar.d.ts +0 -5
- package/src/reactjs/shared/Utilities.d.ts +0 -8
- package/src/test/connectbutton.spec.d.ts +0 -5
- package/src/test/desktopsettings.spec.d.ts +0 -5
- package/src/test/encodingoptions.spec.d.ts +0 -5
- package/src/test/helper/amtredirector1.d.ts +0 -71
- package/src/test/helper/mockeventpersist.d.ts +0 -7
- package/src/test/helper/terminal.d.ts +0 -11
- package/src/test/httpclient.test.d.ts +0 -1
- package/src/test/purecanvas.spec.d.ts +0 -5
- package/src/test/sol.test.d.ts +0 -1
- package/src/test/terminal.test.d.ts +0 -1
- package/src/test/ui.spec.d.ts +0 -4
package/README.md
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# UI Toolkit React
|
|
2
|
+
|
|
3
|
+
[](https://snyk.io/test/github/open-amt-cloud-toolkit/ui-toolkit?targetFile=package.json) 
|
|
4
|
+

|
|
5
|
+
|
|
6
|
+
> Disclaimer: Production viable releases are tagged and listed under 'Releases'. All other check-ins should be considered 'in-development' and should not be used in production
|
|
7
|
+
|
|
8
|
+
The UI Toolkit provides prebuilt, React-based components for integrating remote management features such as a keyboard, video, mouse (KVM) control into a web-based management console UI. The controls have a reference UI and layout that can be customized further to seamlessly integrate with existing management console solutions.
|
|
9
|
+
|
|
10
|
+
<br><br>
|
|
11
|
+
|
|
12
|
+
**For detailed documentation** about [Getting Started with the UI Toolkit](https://open-amt-cloud-toolkit.github.io/docs/2.0/Tutorials/uitoolkit) or other features of the Open AMT Cloud Toolkit, see the [docs](https://open-amt-cloud-toolkit.github.io/docs/).
|
|
13
|
+
|
|
14
|
+
<br>
|
|
15
|
+
|
|
16
|
+
## Prerequisites
|
|
17
|
+
|
|
18
|
+
To succesfully deploy the UI Toolkit using React, the following software must be installed on your development system:
|
|
19
|
+
|
|
20
|
+
- [Node.js* LTS 12.x.x or newer](https://nodejs.org/en/)
|
|
21
|
+
- [git](https://git-scm.com/downloads)
|
|
22
|
+
- [Visual Studio Code](https://code.visualstudio.com/) or any other IDE of choice
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## Create a New React App
|
|
26
|
+
|
|
27
|
+
The React app can be created in any preferred development directory. The MPS can continue to run while creating and running the app.
|
|
28
|
+
|
|
29
|
+
1. In a Command Prompt or Terminal, go to your preferred development directory.
|
|
30
|
+
|
|
31
|
+
2. Run the following commands to create sample React app named `my-app`.
|
|
32
|
+
|
|
33
|
+
``` bash
|
|
34
|
+
npx create-react-app my-app && cd my-app
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Add UI Toolkit
|
|
38
|
+
|
|
39
|
+
1. Run the following command to add the UI Toolkit and install the required dependencies:
|
|
40
|
+
|
|
41
|
+
``` bash
|
|
42
|
+
npm install @open-amt-cloud-toolkit/ui-toolkit-react
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
2. Run the following commands to start the web UI locally:
|
|
46
|
+
|
|
47
|
+
``` bash
|
|
48
|
+
npm start
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
3. By default, React apps run on port `3000`. If port `3000` is already used by the MPS server or any other application, you'll be prompted to use another port. If this happens, enter 'Y'.
|
|
52
|
+
|
|
53
|
+
Sample Output:
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
You can now view my-app in the browser.
|
|
57
|
+
Local: http://localhost:3000
|
|
58
|
+
On Your Network: http://172.16.17.4:3000
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
Learn how to add the KVM control to your new React app [here](https://open-amt-cloud-toolkit.github.io/docs/2.0/Tutorials/uitoolkit/#add-a-sample-control)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
For detailed documentation about the UI Toolkit, see the [docs](https://open-amt-cloud-toolkit.github.io/docs/)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
## License Note
|
|
69
|
+
|
|
70
|
+
If you are distributing the FortAwesome Icons, please provide attribution to the source per the [CC-by 4.0](https://creativecommons.org/licenses/by/4.0/deed.ast) license obligations.
|
|
71
|
+
|
package/dist
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@open-amt-cloud-toolkit/ui-toolkit-react",
|
|
3
|
+
"version": "2.0.3",
|
|
4
|
+
"description": "React UI controls for Intel AMT features",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"prepublishOnly": "cp package.json dist",
|
|
8
|
+
"start": "webpack serve --config webpack.config.dev.js",
|
|
9
|
+
"build": "webpack --config webpack.config.prod.js",
|
|
10
|
+
"build-ext": "npm run build-types && webpack --config webpack.config.externals.js",
|
|
11
|
+
"lint": "eslint . --ext .ts",
|
|
12
|
+
"test": "jest --detectOpenHandles --logHeapUsage --ci --no-cache --runInBand --updateSnapshot",
|
|
13
|
+
"coverage": "jest --coverage --detectOpenHandles --logHeapUsage --ci --no-cache --runInBand ",
|
|
14
|
+
"test-kvm": "tsc && node ./dist/test/kvmui.test.ws.js",
|
|
15
|
+
"build-types": "tsc --emitDeclarationOnly -p tsconfig.build.json"
|
|
16
|
+
},
|
|
17
|
+
"author": "",
|
|
18
|
+
"license": "Apache-2.0",
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/open-amt-cloud-toolkit/ui-toolkit-react/issues"
|
|
21
|
+
},
|
|
22
|
+
"homepage": "https://github.com/open-amt-cloud-toolkit/ui-toolkit-react#readme",
|
|
23
|
+
"types": "index.d.ts",
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"react": "^17.0.2",
|
|
26
|
+
"react-dom": "^17.0.2"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@fortawesome/fontawesome-svg-core": "^1.2.35",
|
|
30
|
+
"@fortawesome/free-solid-svg-icons": "^5.15.3",
|
|
31
|
+
"@fortawesome/react-fontawesome": "^0.1.13",
|
|
32
|
+
"@open-amt-cloud-toolkit/ui-toolkit": "^2.0.5",
|
|
33
|
+
"i18next": "^21.2.0",
|
|
34
|
+
"i18next-browser-languagedetector": "^6.1.2",
|
|
35
|
+
"md5": "^2.2.1",
|
|
36
|
+
"moment": "^2.24.0",
|
|
37
|
+
"react-i18next": "^11.11.4",
|
|
38
|
+
"sass": "^1.36.0",
|
|
39
|
+
"styled-components": "^5.3.0",
|
|
40
|
+
"winston": "^3.0.0",
|
|
41
|
+
"ws": "^8.2.1",
|
|
42
|
+
"xterm": "^4.13.0"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@types/enzyme": "^3.10.8",
|
|
46
|
+
"@types/enzyme-adapter-react-16": "^1.0.5",
|
|
47
|
+
"@types/jest": "^27.0.1",
|
|
48
|
+
"@types/md5": "^2.1.33",
|
|
49
|
+
"@types/node": "^14.17.3",
|
|
50
|
+
"@types/react": "^17.0.16",
|
|
51
|
+
"@types/react-dom": "^17.0.8",
|
|
52
|
+
"@types/ws": "^8.2.0",
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "^4.29.1",
|
|
54
|
+
"@typescript-eslint/parser": "^4.29.1",
|
|
55
|
+
"canvas": "^2.8.0",
|
|
56
|
+
"css-loader": "^6.2.0",
|
|
57
|
+
"enzyme": "^3.10.0",
|
|
58
|
+
"enzyme-adapter-react-16": "^1.14.0",
|
|
59
|
+
"eslint": "^7.29.0",
|
|
60
|
+
"eslint-config-standard": "^16.0.3",
|
|
61
|
+
"eslint-config-standard-with-typescript": "^21.0.1",
|
|
62
|
+
"eslint-plugin-import": "^2.23.4",
|
|
63
|
+
"eslint-plugin-node": "^11.1.0",
|
|
64
|
+
"eslint-plugin-promise": "^6.0.0",
|
|
65
|
+
"filereader": "^0.10.3",
|
|
66
|
+
"html-webpack-plugin": "^5.3.1",
|
|
67
|
+
"identity-obj-proxy": "^3.0.0",
|
|
68
|
+
"jest": "^27.0.4",
|
|
69
|
+
"jest-transform-stub": "^2.0.0",
|
|
70
|
+
"react": "^17.0.2",
|
|
71
|
+
"react-dom": "^17.0.2",
|
|
72
|
+
"sass-loader": "^12.1.0",
|
|
73
|
+
"source-map-loader": "^3.0.0",
|
|
74
|
+
"style-loader": "^3.0.0",
|
|
75
|
+
"ts-jest": "^27.0.4",
|
|
76
|
+
"ts-loader": "^9.2.3",
|
|
77
|
+
"typescript": "^4.3.4",
|
|
78
|
+
"webpack": "^5.40.0",
|
|
79
|
+
"webpack-cli": "^4.7.2",
|
|
80
|
+
"webpack-dev-server": "^4.1.1",
|
|
81
|
+
"webpack-node-externals": "^3.0.0"
|
|
82
|
+
}
|
|
83
|
+
}
|
package/package.json
CHANGED
|
@@ -1,77 +1,83 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@open-amt-cloud-toolkit/ui-toolkit-react",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "React UI controls for Intel AMT features",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"test
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
},
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"react-
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"@types/
|
|
46
|
-
"@types/
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"eslint": "^
|
|
54
|
-
"eslint
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@open-amt-cloud-toolkit/ui-toolkit-react",
|
|
3
|
+
"version": "2.0.3",
|
|
4
|
+
"description": "React UI controls for Intel AMT features",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"prepublishOnly": "cp package.json dist",
|
|
8
|
+
"start": "webpack serve --config webpack.config.dev.js",
|
|
9
|
+
"build": "webpack --config webpack.config.prod.js",
|
|
10
|
+
"build-ext": "npm run build-types && webpack --config webpack.config.externals.js",
|
|
11
|
+
"lint": "eslint . --ext .ts",
|
|
12
|
+
"test": "jest --detectOpenHandles --logHeapUsage --ci --no-cache --runInBand --updateSnapshot",
|
|
13
|
+
"coverage": "jest --coverage --detectOpenHandles --logHeapUsage --ci --no-cache --runInBand ",
|
|
14
|
+
"test-kvm": "tsc && node ./dist/test/kvmui.test.ws.js",
|
|
15
|
+
"build-types": "tsc --emitDeclarationOnly -p tsconfig.build.json"
|
|
16
|
+
},
|
|
17
|
+
"author": "",
|
|
18
|
+
"license": "Apache-2.0",
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/open-amt-cloud-toolkit/ui-toolkit-react/issues"
|
|
21
|
+
},
|
|
22
|
+
"homepage": "https://github.com/open-amt-cloud-toolkit/ui-toolkit-react#readme",
|
|
23
|
+
"types": "index.d.ts",
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"react": "^17.0.2",
|
|
26
|
+
"react-dom": "^17.0.2"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@fortawesome/fontawesome-svg-core": "^1.2.35",
|
|
30
|
+
"@fortawesome/free-solid-svg-icons": "^5.15.3",
|
|
31
|
+
"@fortawesome/react-fontawesome": "^0.1.13",
|
|
32
|
+
"@open-amt-cloud-toolkit/ui-toolkit": "^2.0.5",
|
|
33
|
+
"i18next": "^21.2.0",
|
|
34
|
+
"i18next-browser-languagedetector": "^6.1.2",
|
|
35
|
+
"md5": "^2.2.1",
|
|
36
|
+
"moment": "^2.24.0",
|
|
37
|
+
"react-i18next": "^11.11.4",
|
|
38
|
+
"sass": "^1.36.0",
|
|
39
|
+
"styled-components": "^5.3.0",
|
|
40
|
+
"winston": "^3.0.0",
|
|
41
|
+
"ws": "^8.2.1",
|
|
42
|
+
"xterm": "^4.13.0"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@types/enzyme": "^3.10.8",
|
|
46
|
+
"@types/enzyme-adapter-react-16": "^1.0.5",
|
|
47
|
+
"@types/jest": "^27.0.1",
|
|
48
|
+
"@types/md5": "^2.1.33",
|
|
49
|
+
"@types/node": "^14.17.3",
|
|
50
|
+
"@types/react": "^17.0.16",
|
|
51
|
+
"@types/react-dom": "^17.0.8",
|
|
52
|
+
"@types/ws": "^8.2.0",
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "^4.29.1",
|
|
54
|
+
"@typescript-eslint/parser": "^4.29.1",
|
|
55
|
+
"canvas": "^2.8.0",
|
|
56
|
+
"css-loader": "^6.2.0",
|
|
57
|
+
"enzyme": "^3.10.0",
|
|
58
|
+
"enzyme-adapter-react-16": "^1.14.0",
|
|
59
|
+
"eslint": "^7.29.0",
|
|
60
|
+
"eslint-config-standard": "^16.0.3",
|
|
61
|
+
"eslint-config-standard-with-typescript": "^21.0.1",
|
|
62
|
+
"eslint-plugin-import": "^2.23.4",
|
|
63
|
+
"eslint-plugin-node": "^11.1.0",
|
|
64
|
+
"eslint-plugin-promise": "^6.0.0",
|
|
65
|
+
"filereader": "^0.10.3",
|
|
66
|
+
"html-webpack-plugin": "^5.3.1",
|
|
67
|
+
"identity-obj-proxy": "^3.0.0",
|
|
68
|
+
"jest": "^27.0.4",
|
|
69
|
+
"jest-transform-stub": "^2.0.0",
|
|
70
|
+
"react": "^17.0.2",
|
|
71
|
+
"react-dom": "^17.0.2",
|
|
72
|
+
"sass-loader": "^12.1.0",
|
|
73
|
+
"source-map-loader": "^3.0.0",
|
|
74
|
+
"style-loader": "^3.0.0",
|
|
75
|
+
"ts-jest": "^27.0.4",
|
|
76
|
+
"ts-loader": "^9.2.3",
|
|
77
|
+
"typescript": "^4.3.4",
|
|
78
|
+
"webpack": "^5.40.0",
|
|
79
|
+
"webpack-cli": "^4.7.2",
|
|
80
|
+
"webpack-dev-server": "^4.1.1",
|
|
81
|
+
"webpack-node-externals": "^3.0.0"
|
|
82
|
+
}
|
|
83
|
+
}
|
package/i18n.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*********************************************************************
|
|
2
|
-
* Copyright (c) Intel Corporation 2019
|
|
3
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
**********************************************************************/
|
|
5
|
-
import i18n from 'i18next';
|
|
6
|
-
export default i18n;
|