@iobroker/dm-gui-components 0.0.10 → 0.1.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/JsonConfig.js +2 -5
- package/README.md +3 -0
- package/package.json +6 -4
package/JsonConfig.js
CHANGED
|
@@ -22,12 +22,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
26
|
const react_1 = __importStar(require("react"));
|
|
30
|
-
const
|
|
27
|
+
const adapter_react_v5_1 = require("@iobroker/adapter-react-v5");
|
|
31
28
|
function JsonConfig(props) {
|
|
32
29
|
const { instanceId, socket, schema, data, onChange, } = props;
|
|
33
30
|
console.log('JsonConfig', props);
|
|
@@ -38,7 +35,7 @@ function JsonConfig(props) {
|
|
|
38
35
|
const [adapterName, instance] = instanceId.split('.', 2);
|
|
39
36
|
return react_1.default.createElement(react_1.default.Fragment, null,
|
|
40
37
|
error && react_1.default.createElement("div", null, error),
|
|
41
|
-
react_1.default.createElement(
|
|
38
|
+
react_1.default.createElement(adapter_react_v5_1.JsonConfigComponent, { socket: socket, adapterName: adapterName, instance: parseInt(instance), schema: schema, data: data, onError: setError, onChange: _data => onChange(_data), embedded: true }));
|
|
42
39
|
/*
|
|
43
40
|
JSON adapter config:
|
|
44
41
|
className={classes.scroll}
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iobroker/dm-gui-components",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "ReactJS components to develop admin interface for ioBroker device manager.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Jey Cee",
|
|
@@ -36,10 +36,12 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"react": "^18.2.0",
|
|
38
38
|
"react-dom": "^18.2.0",
|
|
39
|
-
"@iobroker/adapter-react-v5": "^4.
|
|
39
|
+
"@iobroker/adapter-react-v5": "^4.9.1",
|
|
40
|
+
"@mui/icons-material": "^5.15.1",
|
|
41
|
+
"@mui/material": "5.14.14",
|
|
40
42
|
"@types/react": "^18.2.45",
|
|
41
|
-
"@types/react-dom": "^18.2.
|
|
42
|
-
"eslint": "^8.
|
|
43
|
+
"@types/react-dom": "^18.2.18",
|
|
44
|
+
"eslint": "^8.56.0",
|
|
43
45
|
"eslint-config-airbnb": "^19.0.4",
|
|
44
46
|
"eslint-plugin-eqeqeq-fix": "^1.0.3",
|
|
45
47
|
"eslint-plugin-react": "^7.33.2",
|