@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.
Files changed (52) hide show
  1. package/README.md +71 -0
  2. package/dist +83 -0
  3. package/package.json +83 -77
  4. package/i18n.d.ts +0 -6
  5. package/jest.setup.d.ts +0 -5
  6. package/kvm.min.js +0 -3
  7. package/kvm.min.js.LICENSE.txt +0 -32
  8. package/reactjs/KVM/ConnectButton.d.ts +0 -13
  9. package/reactjs/KVM/DesktopSettings.d.ts +0 -17
  10. package/reactjs/KVM/EncodingOptions.d.ts +0 -17
  11. package/reactjs/KVM/Header.d.ts +0 -17
  12. package/reactjs/KVM/PureCanvas.d.ts +0 -19
  13. package/reactjs/KVM/UI.d.ts +0 -47
  14. package/reactjs/KVM/index.d.ts +0 -1
  15. package/reactjs/SerialOverLAN/Sol.d.ts +0 -53
  16. package/reactjs/SerialOverLAN/Terminal.d.ts +0 -15
  17. package/reactjs/SerialOverLAN/index.d.ts +0 -5
  18. package/reactjs/services/HttpClient.d.ts +0 -10
  19. package/reactjs/shared/Methods.d.ts +0 -13
  20. package/reactjs/shared/SnackBar.d.ts +0 -5
  21. package/reactjs/shared/Utilities.d.ts +0 -8
  22. package/reactjs/src/kvm.bundle.js +0 -1
  23. package/reactjs/src/sol.bundle.js +0 -15
  24. package/reactjs/src/sol.bundle.js.LICENSE.txt +0 -8
  25. package/sol.min.js +0 -16
  26. package/sol.min.js.LICENSE.txt +0 -41
  27. package/src/i18n.d.ts +0 -6
  28. package/src/reactjs/KVM/ConnectButton.d.ts +0 -13
  29. package/src/reactjs/KVM/DesktopSettings.d.ts +0 -17
  30. package/src/reactjs/KVM/EncodingOptions.d.ts +0 -17
  31. package/src/reactjs/KVM/Header.d.ts +0 -17
  32. package/src/reactjs/KVM/PureCanvas.d.ts +0 -19
  33. package/src/reactjs/KVM/UI.d.ts +0 -47
  34. package/src/reactjs/KVM/index.d.ts +0 -1
  35. package/src/reactjs/SerialOverLAN/Sol.d.ts +0 -53
  36. package/src/reactjs/SerialOverLAN/Terminal.d.ts +0 -15
  37. package/src/reactjs/SerialOverLAN/index.d.ts +0 -5
  38. package/src/reactjs/services/HttpClient.d.ts +0 -10
  39. package/src/reactjs/shared/Methods.d.ts +0 -13
  40. package/src/reactjs/shared/SnackBar.d.ts +0 -5
  41. package/src/reactjs/shared/Utilities.d.ts +0 -8
  42. package/src/test/connectbutton.spec.d.ts +0 -5
  43. package/src/test/desktopsettings.spec.d.ts +0 -5
  44. package/src/test/encodingoptions.spec.d.ts +0 -5
  45. package/src/test/helper/amtredirector1.d.ts +0 -71
  46. package/src/test/helper/mockeventpersist.d.ts +0 -7
  47. package/src/test/helper/terminal.d.ts +0 -11
  48. package/src/test/httpclient.test.d.ts +0 -1
  49. package/src/test/purecanvas.spec.d.ts +0 -5
  50. package/src/test/sol.test.d.ts +0 -1
  51. package/src/test/terminal.test.d.ts +0 -1
  52. package/src/test/ui.spec.d.ts +0 -4
package/README.md ADDED
@@ -0,0 +1,71 @@
1
+ # UI Toolkit React
2
+
3
+ [![Known Vulnerabilities](https://snyk.io/test/github/open-amt-cloud-toolkit/ui-toolkit/badge.svg?targetFile=package.json)](https://snyk.io/test/github/open-amt-cloud-toolkit/ui-toolkit?targetFile=package.json) ![Node.js CI](https://github.com/open-amt-cloud-toolkit/sample-web-ui/workflows/Node.js%20CI/badge.svg)
4
+ ![codecov.io](https://codecov.io/github/open-amt-cloud-toolkit/ui-toolkit-react/coverage.svg?branch=main)
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.2",
4
- "description": "React UI controls for Intel AMT features",
5
- "scripts": {
6
- "start": "webpack serve --config webpack.config.dev.js",
7
- "build": "webpack --config webpack.config.prod.js",
8
- "build-ext": "npm run build-types && webpack --config webpack.config.externals.js",
9
- "lint": "eslint . --ext .ts",
10
- "test": "jest --detectOpenHandles --logHeapUsage --ci --no-cache --runInBand --updateSnapshot",
11
- "coverage": "jest --coverage --detectOpenHandles --logHeapUsage --ci --no-cache --runInBand ",
12
- "test-kvm": "tsc && node ./dist/test/kvmui.test.ws.js",
13
- "build-types": "tsc --emitDeclarationOnly -p tsconfig.build.json"
14
- },
15
- "author": "",
16
- "license": "Apache-2.0",
17
- "types": "index.d.ts",
18
- "peerDependencies": {
19
- "react": "^17.0.2",
20
- "react-dom": "^17.0.2"
21
- },
22
- "dependencies": {
23
- "@fortawesome/fontawesome-svg-core": "^1.2.35",
24
- "@fortawesome/free-solid-svg-icons": "^5.15.3",
25
- "@fortawesome/react-fontawesome": "^0.1.13",
26
- "@open-amt-cloud-toolkit/ui-toolkit": "^2.0.3",
27
- "i18next": "^21.2.0",
28
- "i18next-browser-languagedetector": "^6.1.2",
29
- "md5": "^2.2.1",
30
- "moment": "^2.24.0",
31
- "react-i18next": "^11.11.4",
32
- "sass": "^1.36.0",
33
- "styled-components": "^5.3.0",
34
- "winston": "^3.0.0",
35
- "ws": "^8.2.1",
36
- "xterm": "^4.13.0"
37
- },
38
- "devDependencies": {
39
- "@types/enzyme": "^3.10.8",
40
- "@types/enzyme-adapter-react-16": "^1.0.5",
41
- "@types/jest": "^27.0.1",
42
- "@types/md5": "^2.1.33",
43
- "@types/node": "^14.17.3",
44
- "@types/react": "^17.0.16",
45
- "@types/react-dom": "^17.0.8",
46
- "@types/ws": "^8.2.0",
47
- "@typescript-eslint/eslint-plugin": "^4.29.1",
48
- "@typescript-eslint/parser": "^4.29.1",
49
- "canvas": "^2.8.0",
50
- "css-loader": "^6.2.0",
51
- "enzyme": "^3.10.0",
52
- "enzyme-adapter-react-16": "^1.14.0",
53
- "eslint": "^7.29.0",
54
- "eslint-config-standard": "^16.0.3",
55
- "eslint-config-standard-with-typescript": "^21.0.1",
56
- "eslint-plugin-import": "^2.23.4",
57
- "eslint-plugin-node": "^11.1.0",
58
- "eslint-plugin-promise": "^5.1.0",
59
- "filereader": "^0.10.3",
60
- "html-webpack-plugin": "^5.3.1",
61
- "identity-obj-proxy": "^3.0.0",
62
- "jest": "^27.0.4",
63
- "jest-transform-stub": "^2.0.0",
64
- "react": "^17.0.2",
65
- "react-dom": "^17.0.2",
66
- "sass-loader": "^12.1.0",
67
- "source-map-loader": "^3.0.0",
68
- "style-loader": "^3.0.0",
69
- "ts-jest": "^27.0.4",
70
- "ts-loader": "^9.2.3",
71
- "typescript": "^4.3.4",
72
- "webpack": "^5.40.0",
73
- "webpack-cli": "^4.7.2",
74
- "webpack-dev-server": "^4.1.1",
75
- "webpack-node-externals": "^3.0.0"
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;
package/jest.setup.d.ts DELETED
@@ -1,5 +0,0 @@
1
- /*********************************************************************
2
- * Copyright (c) Intel Corporation 2020
3
- * SPDX-License-Identifier: Apache-2.0
4
- **********************************************************************/
5
- export {};