iobroker.mywebui 1.37.11 → 1.37.13
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/io-package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "mywebui",
|
|
4
|
-
"version": "1.37.
|
|
4
|
+
"version": "1.37.13",
|
|
5
5
|
"titleLang": {
|
|
6
6
|
"en": "mywebui",
|
|
7
7
|
"de": "mywebui",
|
|
@@ -294,7 +294,7 @@
|
|
|
294
294
|
"color": "#c8ffe1",
|
|
295
295
|
"order": 1
|
|
296
296
|
},
|
|
297
|
-
"installedFrom": "iobroker.mywebui@1.37.
|
|
297
|
+
"installedFrom": "iobroker.mywebui@1.37.13"
|
|
298
298
|
},
|
|
299
299
|
"native": {
|
|
300
300
|
"licenseKey": ""
|
package/package.json
CHANGED
package/www/config.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
window.iobrokerHost = window.location.hostname;
|
|
2
2
|
window.iobrokerPort = window.location.port;
|
|
3
3
|
window.iobrokerWebRootUrl = window.location.protocol + '//' + window.iobrokerHost + ':' + window.iobrokerPort + '/';
|
|
4
|
-
window.iobrokerWebuiRootUrl = window.iobrokerWebRootUrl + '
|
|
4
|
+
window.iobrokerWebuiRootUrl = window.iobrokerWebRootUrl + 'mywebui/';
|
|
5
5
|
window.iobrokerSocketScriptUrl = '../lib/js/socket.io.js';
|
|
6
6
|
//hack, webui socket does not work atm...
|
|
7
7
|
//window.iobrokerPort = 8081;
|
|
@@ -636,10 +636,14 @@ export class BindingsHelper {
|
|
|
636
636
|
let sng = signals[i];
|
|
637
637
|
signalVars[i] = '__' + i;
|
|
638
638
|
if (sng.includes(':')) {
|
|
639
|
-
const
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
639
|
+
const colonIdx = sng.indexOf(':');
|
|
640
|
+
const prefix = sng.substring(0, colonIdx);
|
|
641
|
+
if (prefix !== 'state' && prefix !== 'object') {
|
|
642
|
+
signalVars[i] = prefix;
|
|
643
|
+
sng = sng.substring(colonIdx + 1);
|
|
644
|
+
signals[i] = sng;
|
|
645
|
+
}
|
|
646
|
+
// 'state:' and 'object:' are type keywords — keep full signal, keep __N var name
|
|
643
647
|
}
|
|
644
648
|
if (sng[0] === '?') { //access object path in property in custom control, todo: bind direct to property value in local property
|
|
645
649
|
if (root) { //root is null when opened in designer, then do not apply property bindings
|