@iobroker/adapter-react-v5 3.0.16 → 3.1.1
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/Components/FileBrowser.js +76 -57
- package/Components/FileBrowser.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigAlive.js +1 -1
- package/Components/JsonConfigComponent/ConfigAlive.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigAutocomplete.js +0 -1
- package/Components/JsonConfigComponent/ConfigAutocomplete.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCRON.js +3 -3
- package/Components/JsonConfigComponent/ConfigCRON.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCheckbox.js +1 -1
- package/Components/JsonConfigComponent/ConfigCheckbox.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCoordinates.js +2 -2
- package/Components/JsonConfigComponent/ConfigCoordinates.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCustom.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigGeneric.js +25 -25
- package/Components/JsonConfigComponent/ConfigGeneric.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigIP.js +2 -2
- package/Components/JsonConfigComponent/ConfigIP.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigInstanceSelect.js +1 -1
- package/Components/JsonConfigComponent/ConfigInstanceSelect.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigJsonEditor.js +1 -1
- package/Components/JsonConfigComponent/ConfigJsonEditor.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigLanguage.js +1 -1
- package/Components/JsonConfigComponent/ConfigLanguage.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigNumber.js +94 -22
- package/Components/JsonConfigComponent/ConfigNumber.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigPanel.js +4 -0
- package/Components/JsonConfigComponent/ConfigPanel.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigPassword.js +4 -4
- package/Components/JsonConfigComponent/ConfigPassword.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSelect.js +2 -2
- package/Components/JsonConfigComponent/ConfigSelect.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSelectSendTo.js +7 -7
- package/Components/JsonConfigComponent/ConfigSelectSendTo.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSendto.js +6 -6
- package/Components/JsonConfigComponent/ConfigSendto.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSetState.js +4 -4
- package/Components/JsonConfigComponent/ConfigSetState.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigTable.js +26 -13
- package/Components/JsonConfigComponent/ConfigTable.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigText.js.map +1 -1
- package/Components/ObjectBrowser.js +39 -16
- package/Components/ObjectBrowser.js.map +1 -1
- package/Components/ToggleThemeMenu.js.map +1 -1
- package/Components/Utils.js +14 -3
- package/Components/Utils.js.map +1 -1
- package/Connection.js +12 -4
- package/Connection.js.map +1 -1
- package/README.md +7 -1
- package/i18n/de.json +24 -3
- package/i18n/en.json +23 -2
- package/i18n/es.json +23 -2
- package/i18n/fr.json +23 -2
- package/i18n/it.json +23 -2
- package/i18n/nl.json +23 -2
- package/i18n/pl.json +23 -2
- package/i18n/pt.json +23 -2
- package/i18n/ru.json +23 -2
- package/i18n/zh-cn.json +24 -3
- package/package.json +1 -1
package/Connection.js
CHANGED
|
@@ -233,9 +233,17 @@ var Connection = /*#__PURE__*/function () {
|
|
|
233
233
|
protocol = parts[0];
|
|
234
234
|
host = parts[1];
|
|
235
235
|
}
|
|
236
|
+
} // get current path
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
var path = window.location.pathname;
|
|
240
|
+
var pos = path.lastIndexOf('/');
|
|
241
|
+
|
|
242
|
+
if (pos !== -1) {
|
|
243
|
+
path = path.substring(0, pos + 1);
|
|
236
244
|
}
|
|
237
245
|
|
|
238
|
-
var url = port ? "".concat(protocol, "://").concat(host, ":").concat(port) : "".concat(protocol, "://").concat(host);
|
|
246
|
+
var url = port ? "".concat(protocol, "://").concat(host, ":").concat(port).concat(path) : "".concat(protocol, "://").concat(host).concat(path);
|
|
239
247
|
this._socket = window.io.connect(url, {
|
|
240
248
|
query: 'ws=true',
|
|
241
249
|
name: this.props.name,
|
|
@@ -1140,7 +1148,7 @@ var Connection = /*#__PURE__*/function () {
|
|
|
1140
1148
|
var timeout = setTimeout(function () {
|
|
1141
1149
|
timeout = null;
|
|
1142
1150
|
|
|
1143
|
-
_this18.getObjectView("system.adapter.".concat(adapter
|
|
1151
|
+
_this18.getObjectView("system.adapter.".concat(adapter ? adapter + '.' : ''), "system.adapter.".concat(adapter ? adapter + '.' : '', "\u9999"), 'instance').then(function (items) {
|
|
1144
1152
|
return resolve(Object.keys(items).map(function (id) {
|
|
1145
1153
|
return fixAdminUI(items[id]);
|
|
1146
1154
|
}));
|
|
@@ -2665,7 +2673,7 @@ var Connection = /*#__PURE__*/function () {
|
|
|
2665
2673
|
family: 'ipv6'
|
|
2666
2674
|
}];
|
|
2667
2675
|
|
|
2668
|
-
if ((_host$native = host["native"]) !== null && _host$native !== void 0 && (_host$native$hardware = _host$native.hardware) !== null && _host$native$hardware !== void 0 && _host$native$hardware.networkInterfaces) {
|
|
2676
|
+
if (host !== null && host !== void 0 && (_host$native = host["native"]) !== null && _host$native !== void 0 && (_host$native$hardware = _host$native.hardware) !== null && _host$native$hardware !== void 0 && _host$native$hardware.networkInterfaces) {
|
|
2669
2677
|
for (var eth in host["native"].hardware.networkInterfaces) {
|
|
2670
2678
|
if (!host["native"].hardware.networkInterfaces.hasOwnProperty(eth)) {
|
|
2671
2679
|
continue;
|
|
@@ -3034,7 +3042,7 @@ var Connection = /*#__PURE__*/function () {
|
|
|
3034
3042
|
resolve(json);
|
|
3035
3043
|
}
|
|
3036
3044
|
})["catch"](function (e) {
|
|
3037
|
-
reject('getCurrentSession: ' + e);
|
|
3045
|
+
return reject('getCurrentSession: ' + e);
|
|
3038
3046
|
});
|
|
3039
3047
|
});
|
|
3040
3048
|
}
|