iobroker.lovelace 5.0.2 → 5.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 +4 -3
- package/io-package.json +14 -14
- package/lib/server.js +20 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -473,6 +473,10 @@ After that checkout modified version in `./build` folder. Then.
|
|
|
473
473
|
PLACEHOLDER for the next version:
|
|
474
474
|
### **WORK IN PROGRESS**
|
|
475
475
|
-->
|
|
476
|
+
### 5.0.3 (2025-10-10)
|
|
477
|
+
* (Garfonso) make sure only existing themes are selectable in control.theme states.
|
|
478
|
+
* (Garfonso) bring back support for frontend_es5.
|
|
479
|
+
|
|
476
480
|
### 5.0.2 (2025-10-02)
|
|
477
481
|
* (Garfonso) some light entities did not restore their proper state on switch on. Fixed.
|
|
478
482
|
* (Garfonso) process folders-Objects for auto entities, too. (pirate-weather support)
|
|
@@ -500,9 +504,6 @@ After that checkout modified version in `./build` folder. Then.
|
|
|
500
504
|
### 4.1.15 (2025-03-10)
|
|
501
505
|
* (Garfonso) repaired image loading, again.
|
|
502
506
|
|
|
503
|
-
### 4.1.14 (2025-03-10)
|
|
504
|
-
* (Garfonso) repaired image loading. Fixes #577
|
|
505
|
-
|
|
506
507
|
## License
|
|
507
508
|
|
|
508
509
|
Copyright 2019-2025, bluefox <dogafox@gmail.com>
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "lovelace",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.0.3",
|
|
5
5
|
"news": {
|
|
6
|
+
"5.0.3": {
|
|
7
|
+
"en": "make sure only existing themes are selectable in control.theme states.\nbring back support for frontend_es5.",
|
|
8
|
+
"de": "sicher stellen, dass nur vorhandene themen in der steuerung über states wählbar sind.\nunterstützung für frontend_es5 wiederhergestellt.",
|
|
9
|
+
"ru": "убедитесь, что только существующие темы поддаются выбору. темы государств.\nподдержка интерфейса frontend_es5.",
|
|
10
|
+
"pt": "certifique-se de que apenas os temas existentes são selecionáveis no controle. estados temáticos.\ntrazer suporte para frontend_es5.",
|
|
11
|
+
"nl": "zorg ervoor dat alleen bestaande thema's zijn geselecteerd in controle. thema staat.\nondersteuning voor frontend_es5 terugbrengen.",
|
|
12
|
+
"fr": "assurez-vous que seuls les thèmes existants peuvent être sélectionnés dans le contrôle. les états thématiques.\nramener le support de frontend_es5.",
|
|
13
|
+
"it": "assicurarsi che solo i temi esistenti siano selezionabili in controllo. stati tematici.\nriportare il supporto per frontend_es5.",
|
|
14
|
+
"es": "asegúrese de que sólo los temas existentes son seleccionables en control. estados temáticos.\ntraer apoyo para frontend_es5.",
|
|
15
|
+
"pl": "upewnij się, że tylko istniejące motywy są wybierane pod kontrolą. stan tematyczny.\nprzywrócić wsparcie dla frontend _ es5.",
|
|
16
|
+
"uk": "переконайтеся, що тільки існуючі теми вибираються в управлінні. тематичні стани.\nповернути підтримку фронтенд_es5.",
|
|
17
|
+
"zh-cn": "确保控制中只选择现有主题。 主题状态.\n带回对前端_es5的支持."
|
|
18
|
+
},
|
|
6
19
|
"5.0.2": {
|
|
7
20
|
"en": "some light entities did not restore their proper state on switch on. Fixed.\nprocess folders-Objects for auto entities, too. (pirate-weather support)\nprepare support for effects in light entities (will need new type-detector version).",
|
|
8
21
|
"de": "einige Licht entities haben ihren Zustand beim Einschalten nicht wiederhergestellt. Behoben.\nOrdner-Objekte auch für Auto-Entitäten bearbeiten. (Pirate-Wetter-Unterstützung)\ndie unterstützung von effekten in Licht entities vorbereitet (benötigt neue typ-detektor-version).",
|
|
@@ -80,19 +93,6 @@
|
|
|
80
93
|
"pl": "przerabiane wysyłanie obrazów. Teraz ikony pogodowe działają również dla zwykłych użytkowników. Również obrazy pogody są transfered z naszego serwera, więc nie jest już potrzebny dostęp do admin.",
|
|
81
94
|
"uk": "переробляти посилку зображення. Ікони погоди працюють для нормальних користувачів. Крім того, погодні зображення передаються з нашого сервера, тому не потрібно доступу до адміну.",
|
|
82
95
|
"zh-cn": "重新工作图像发送 。 现在天气图标也为正常用户服务. 还有天气图像是从我们的服务器传输的,所以不再需要访问管理员了."
|
|
83
|
-
},
|
|
84
|
-
"4.1.11": {
|
|
85
|
-
"en": "convert string state values to numbers, where necessary.",
|
|
86
|
-
"de": "string-zustandswerte gegebenenfalls in zahlen umwandeln.",
|
|
87
|
-
"ru": "конвертировать значения состояния строки в числа, когда это необходимо.",
|
|
88
|
-
"pt": "converter valores de estado de cadeia para números, quando necessário.",
|
|
89
|
-
"nl": "converteer string state waarden naar getallen, waar nodig.",
|
|
90
|
-
"fr": "convertir les valeurs d'état de chaîne en nombres, si nécessaire.",
|
|
91
|
-
"it": "convertire i valori di stato della stringa in numeri, ove necessario.",
|
|
92
|
-
"es": "convertir valores de estado de cadena a números, cuando sea necesario.",
|
|
93
|
-
"pl": "w razie potrzeby przekonwertować wartości stanu string do liczb.",
|
|
94
|
-
"uk": "перетворюйте значення стану рядків до чисел, де необхідно.",
|
|
95
|
-
"zh-cn": "必要时将字符串状态值转换为数字."
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
package/lib/server.js
CHANGED
|
@@ -1944,8 +1944,20 @@ class WebServer {
|
|
|
1944
1944
|
for (const themeName of Object.keys(this._themes)) {
|
|
1945
1945
|
states[themeName] = themeName;
|
|
1946
1946
|
}
|
|
1947
|
-
await this.adapter.
|
|
1948
|
-
|
|
1947
|
+
const themeState = await this.adapter.getObjectAsync(`${this.adapter.namespace}.control.theme`);
|
|
1948
|
+
if (themeState && themeState.common) {
|
|
1949
|
+
themeState.common.states = states;
|
|
1950
|
+
await this.adapter.setObject(`${this.adapter.namespace}.control.theme`, themeState);
|
|
1951
|
+
} else {
|
|
1952
|
+
this.log.warn(`State ${this.adapter.namespace}.control.theme missing`);
|
|
1953
|
+
}
|
|
1954
|
+
const themeDarkState = await this.adapter.getObjectAsync(`${this.adapter.namespace}.control.themeDark`);
|
|
1955
|
+
if (themeDarkState && themeDarkState.common) {
|
|
1956
|
+
themeDarkState.common.states = states;
|
|
1957
|
+
await this.adapter.setObject(`${this.adapter.namespace}.control.themeDark`, themeDarkState);
|
|
1958
|
+
} else {
|
|
1959
|
+
this.log.warn(`State ${this.adapter.namespace}.control.themeDark missing`);
|
|
1960
|
+
}
|
|
1949
1961
|
|
|
1950
1962
|
const state = await this.adapter.getStateAsync(`${this.adapter.namespace}.control.theme`);
|
|
1951
1963
|
// remember the currently selected theme, if valid. Select default otherwise.
|
|
@@ -2277,6 +2289,12 @@ class WebServer {
|
|
|
2277
2289
|
const filePath = req.url.replace(/.*\/frontend_latest\//, 'frontend_latest/');
|
|
2278
2290
|
res.setHeader('Cache-Control', `public, max-age=${staticOptions.maxAge}`);
|
|
2279
2291
|
res.sendFile(`${getRootPath()}${filePath}`);
|
|
2292
|
+
} else if (req.url.includes('/frontend_es5/')) {
|
|
2293
|
+
//serve frontend:
|
|
2294
|
+
//remove all from before frontend_es5.
|
|
2295
|
+
const filePath = req.url.replace(/.*\/frontend_es5\//, 'frontend_es5/');
|
|
2296
|
+
res.setHeader('Cache-Control', `public, max-age=${staticOptions.maxAge}`);
|
|
2297
|
+
res.sendFile(`${getRootPath()}${filePath}`);
|
|
2280
2298
|
} else if (req.url.includes('/static/icons/')) {
|
|
2281
2299
|
//iobroker icons:
|
|
2282
2300
|
const filePath = req.url.replace(/.*\/static\/icons\//, '');
|