iobroker.lovelace 4.0.12 → 4.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/README.md +3 -3
- package/admin/i18n/de/translations.json +2 -1
- package/admin/i18n/en/translations.json +2 -1
- package/admin/i18n/es/translations.json +2 -1
- package/admin/i18n/fr/translations.json +2 -1
- package/admin/i18n/it/translations.json +2 -1
- package/admin/i18n/nl/translations.json +2 -1
- package/admin/i18n/pl/translations.json +2 -1
- package/admin/i18n/pt/translations.json +2 -1
- package/admin/i18n/ru/translations.json +2 -1
- package/admin/i18n/uk/translations.json +2 -1
- package/admin/i18n/zh-cn/translations.json +2 -1
- package/admin/index_m.html +14 -5
- package/admin/words.js +1 -0
- package/io-package.json +6 -5
- package/lib/server.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -473,6 +473,9 @@ After that checkout modified version in `./build` folder. Then.
|
|
|
473
473
|
PLACEHOLDER for next version:
|
|
474
474
|
### **WORK IN PROGRESS**
|
|
475
475
|
-->
|
|
476
|
+
### 4.1.0 (2023-12-18)
|
|
477
|
+
* (Garfons) add an option to show users on login screen (off by default)
|
|
478
|
+
|
|
476
479
|
### 4.0.12 (2023-12-15)
|
|
477
480
|
* (Garfonso) fix lint errors
|
|
478
481
|
|
|
@@ -488,9 +491,6 @@ After that checkout modified version in `./build` folder. Then.
|
|
|
488
491
|
### 4.0.9 (2023-12-12)
|
|
489
492
|
* (Garfonso) fixed: timestamp in legacy history data
|
|
490
493
|
|
|
491
|
-
### 4.0.8 (2023-12-12)
|
|
492
|
-
* (Garfonso) re-add legacy history for custom cards
|
|
493
|
-
|
|
494
494
|
## License
|
|
495
495
|
|
|
496
496
|
Copyright 2019-2023, bluefox <dogafox@gmail.com>
|
|
@@ -177,5 +177,6 @@
|
|
|
177
177
|
"Unsecure_Auth": "Wenn Sie HTTPS nicht aktivieren oder andere Mittel zur Verschlüsselung der Kommunikation verwenden, wird Ihr Passwort unverschlüsselt über das Netzwerk gesendet. Öffnen Sie nicht einfach einen Port für Lovelace!",
|
|
178
178
|
"Warning!": "Warnung!",
|
|
179
179
|
"Ignore warning": "Warnung ignorieren",
|
|
180
|
-
"Disable authentication": "Deaktivieren Sie die Authentifizierung"
|
|
180
|
+
"Disable authentication": "Deaktivieren Sie die Authentifizierung",
|
|
181
|
+
"showUsersOnLoginScreen": "Benutzer auf dem Anmeldebildschirm anzeigen"
|
|
181
182
|
}
|
|
@@ -177,5 +177,6 @@
|
|
|
177
177
|
"Unsecure_Auth": "If you don't enable HTTPS or use other means to encrypt communication, your password will be sent unencrypted over the network. Do not just open a port for lovelace!",
|
|
178
178
|
"Warning!": "Warning!",
|
|
179
179
|
"Ignore warning": "Ignore warning",
|
|
180
|
-
"Disable authentication": "Disable authentication"
|
|
180
|
+
"Disable authentication": "Disable authentication",
|
|
181
|
+
"showUsersOnLoginScreen": "Show users on login screen"
|
|
181
182
|
}
|
|
@@ -177,5 +177,6 @@
|
|
|
177
177
|
"Unsecure_Auth": "Si no habilita HTTPS o utiliza otros medios para cifrar la comunicación, su contraseña se enviará sin cifrar a través de la red. ¡No se limite a abrir un puerto para Lovelace!",
|
|
178
178
|
"Warning!": "¡Advertencia!",
|
|
179
179
|
"Ignore warning": "ignorar advertencia",
|
|
180
|
-
"Disable authentication": "Deshabilitar la autenticación"
|
|
180
|
+
"Disable authentication": "Deshabilitar la autenticación",
|
|
181
|
+
"showUsersOnLoginScreen": "Mostrar usuarios en la pantalla de inicio de sesión"
|
|
181
182
|
}
|
|
@@ -177,5 +177,6 @@
|
|
|
177
177
|
"Unsecure_Auth": "Si vous n'activez pas HTTPS ou n'utilisez pas d'autres moyens pour crypter la communication, votre mot de passe sera envoyé en clair sur le réseau. Ne vous contentez pas d'ouvrir un port pour Lovelace !",
|
|
178
178
|
"Warning!": "Avertissement!",
|
|
179
179
|
"Ignore warning": "Ignorer l'avertissement",
|
|
180
|
-
"Disable authentication": "Désactiver l'authentification"
|
|
180
|
+
"Disable authentication": "Désactiver l'authentification",
|
|
181
|
+
"showUsersOnLoginScreen": "Afficher les utilisateurs sur l'écran de connexion"
|
|
181
182
|
}
|
|
@@ -177,5 +177,6 @@
|
|
|
177
177
|
"Unsecure_Auth": "Se non abiliti HTTPS o non utilizzi altri mezzi per crittografare la comunicazione, la tua password verrà inviata non crittografata sulla rete. Non limitarti ad aprire una porta per l'amore!",
|
|
178
178
|
"Warning!": "Avvertimento!",
|
|
179
179
|
"Ignore warning": "Ignora l'avviso",
|
|
180
|
-
"Disable authentication": "Disabilita l'autenticazione"
|
|
180
|
+
"Disable authentication": "Disabilita l'autenticazione",
|
|
181
|
+
"showUsersOnLoginScreen": "Mostra gli utenti nella schermata di accesso"
|
|
181
182
|
}
|
|
@@ -177,5 +177,6 @@
|
|
|
177
177
|
"Unsecure_Auth": "Als u HTTPS niet inschakelt of andere middelen gebruikt om de communicatie te versleutelen, wordt uw wachtwoord onversleuteld over het netwerk verzonden. Open niet zomaar een poort voor lovelace!",
|
|
178
178
|
"Warning!": "Waarschuwing!",
|
|
179
179
|
"Ignore warning": "Negeer waarschuwing",
|
|
180
|
-
"Disable authentication": "Schakel authenticatie uit"
|
|
180
|
+
"Disable authentication": "Schakel authenticatie uit",
|
|
181
|
+
"showUsersOnLoginScreen": "Toon gebruikers op inlogscherm"
|
|
181
182
|
}
|
|
@@ -177,5 +177,6 @@
|
|
|
177
177
|
"Unsecure_Auth": "Jeśli nie włączysz protokołu HTTPS lub nie użyjesz innych sposobów szyfrowania komunikacji, Twoje hasło zostanie przesłane przez sieć w formie niezaszyfrowanej. Nie otwieraj portu tylko dla lovelace!",
|
|
178
178
|
"Warning!": "Ostrzeżenie!",
|
|
179
179
|
"Ignore warning": "Zignoruj ostrzeżenie",
|
|
180
|
-
"Disable authentication": "Wyłącz uwierzytelnianie"
|
|
180
|
+
"Disable authentication": "Wyłącz uwierzytelnianie",
|
|
181
|
+
"showUsersOnLoginScreen": "Pokaż użytkowników na ekranie logowania"
|
|
181
182
|
}
|
|
@@ -177,5 +177,6 @@
|
|
|
177
177
|
"Unsecure_Auth": "Se você não ativar o HTTPS ou usar outros meios para criptografar a comunicação, sua senha será enviada sem criptografia pela rede. Não basta abrir uma porta para lovelace!",
|
|
178
178
|
"Warning!": "Aviso!",
|
|
179
179
|
"Ignore warning": "Ignorar aviso",
|
|
180
|
-
"Disable authentication": "Desabilitar autenticação"
|
|
180
|
+
"Disable authentication": "Desabilitar autenticação",
|
|
181
|
+
"showUsersOnLoginScreen": "Mostrar usuários na tela de login"
|
|
181
182
|
}
|
|
@@ -177,5 +177,6 @@
|
|
|
177
177
|
"Unsecure_Auth": "Если вы не включите HTTPS или не используете другие средства шифрования связи, ваш пароль будет отправлен по сети в незашифрованном виде. Не открывайте порт просто так для ловеласа!",
|
|
178
178
|
"Warning!": "Предупреждение!",
|
|
179
179
|
"Ignore warning": "Игнорировать предупреждение",
|
|
180
|
-
"Disable authentication": "Отключить аутентификацию"
|
|
180
|
+
"Disable authentication": "Отключить аутентификацию",
|
|
181
|
+
"showUsersOnLoginScreen": "Показывать пользователей на экране входа в систему"
|
|
181
182
|
}
|
|
@@ -177,5 +177,6 @@
|
|
|
177
177
|
"Unsecure_Auth": "Якщо ви не ввімкнете HTTPS або не використаєте інші засоби шифрування зв’язку, ваш пароль буде надіслано через мережу в незашифрованому вигляді. Не просто відкривайте порт для ловеласа!",
|
|
178
178
|
"Warning!": "УВАГА!",
|
|
179
179
|
"Ignore warning": "Ігнорувати попередження",
|
|
180
|
-
"Disable authentication": "Вимкнути автентифікацію"
|
|
180
|
+
"Disable authentication": "Вимкнути автентифікацію",
|
|
181
|
+
"showUsersOnLoginScreen": "Показати користувачів на екрані входу"
|
|
181
182
|
}
|
|
@@ -177,5 +177,6 @@
|
|
|
177
177
|
"Unsecure_Auth": "如果您未启用 HTTPS 或使用其他方式加密通信,您的密码将通过网络以未加密的方式发送。不要只为lovelace打开一个端口!",
|
|
178
178
|
"Warning!": "警告!",
|
|
179
179
|
"Ignore warning": "忽略警告",
|
|
180
|
-
"Disable authentication": "禁用身份验证"
|
|
180
|
+
"Disable authentication": "禁用身份验证",
|
|
181
|
+
"showUsersOnLoginScreen": "在登录屏幕上显示用户"
|
|
181
182
|
}
|
package/admin/index_m.html
CHANGED
|
@@ -288,8 +288,11 @@
|
|
|
288
288
|
$('.tab-login').removeClass('disabled');
|
|
289
289
|
$('#defaultUser').val('admin');
|
|
290
290
|
$('.col-defaultUser').hide();
|
|
291
|
+
$('.col-showUsersOnLoginScreen').show();
|
|
292
|
+
$('#showUsersOnLoginScreen').show();
|
|
291
293
|
$('.col-ttl').show();
|
|
292
294
|
|
|
295
|
+
|
|
293
296
|
if ((id === 'auth' || id === 'secure') && !$secure.prop('checked')) {
|
|
294
297
|
confirmMessage(_('Unsecure_Auth'), _('Warning!'), 'security', [_('Ignore warning'), _('Disable authentication')], function (result) {
|
|
295
298
|
if (result === 1) {
|
|
@@ -301,7 +304,9 @@
|
|
|
301
304
|
} else {
|
|
302
305
|
$('.tab-login').addClass('disabled');
|
|
303
306
|
$('.col-defaultUser').show();
|
|
304
|
-
|
|
307
|
+
$('.col-showUsersOnLoginScreen').hide();
|
|
308
|
+
$('#showUsersOnLoginScreen').hide();
|
|
309
|
+
$('.col-ttl').hide();
|
|
305
310
|
}
|
|
306
311
|
if ($('#loginBackgroundImage').prop('checked')) {
|
|
307
312
|
$('.background').show();
|
|
@@ -748,10 +753,6 @@
|
|
|
748
753
|
</div>
|
|
749
754
|
</div>
|
|
750
755
|
<div class="row">
|
|
751
|
-
<div class="input-field col s12 m6 l2 col-ttl">
|
|
752
|
-
<input class="value" type="number" id="ttl" />
|
|
753
|
-
<label class="translate" for="ttl">Login timeout(sec)</label>
|
|
754
|
-
</div>
|
|
755
756
|
<div class="input-field col s12 m6 l2">
|
|
756
757
|
<input class="value" id="auth" type="checkbox" />
|
|
757
758
|
<label class="translate" for="auth">Authentication</label>
|
|
@@ -760,6 +761,14 @@
|
|
|
760
761
|
<select class="value" id="defaultUser"></select>
|
|
761
762
|
<label class="translate" for="defaultUser">Run as</label>
|
|
762
763
|
</div>
|
|
764
|
+
<div class="input-field col s12 m6 l2 col-ttl">
|
|
765
|
+
<input class="value" type="number" id="ttl" />
|
|
766
|
+
<label class="translate" for="ttl">Login timeout(sec)</label>
|
|
767
|
+
</div>
|
|
768
|
+
<div class="input-field col s12 m6 l2 col-showUsersOnLoginScreen">
|
|
769
|
+
<input class="value" id="showUsersOnLoginScreen" type="checkbox" />
|
|
770
|
+
<label class="translate" for="showUsersOnLoginScreen">showUsersOnLoginScreen</label>
|
|
771
|
+
</div>
|
|
763
772
|
</div>
|
|
764
773
|
<div class="row">
|
|
765
774
|
<div class="input-field col s12 m6 l2 col-language">
|
package/admin/words.js
CHANGED
|
@@ -187,6 +187,7 @@ const lovelace_systemDictionary = {
|
|
|
187
187
|
"Warning!": { "en": "Warning!", "de": "Warnung!", "ru": "Предупреждение!", "pt": "Aviso!", "nl": "Waarschuwing!", "fr": "Avertissement!", "it": "Avvertimento!", "es": "¡Advertencia!", "pl": "Ostrzeżenie!", "uk": "УВАГА!", "zh-cn": "警告!"},
|
|
188
188
|
"Ignore warning": { "en": "Ignore warning", "de": "Warnung ignorieren", "ru": "Игнорировать предупреждение", "pt": "Ignorar aviso", "nl": "Negeer waarschuwing", "fr": "Ignorer l'avertissement", "it": "Ignora l'avviso", "es": "ignorar advertencia", "pl": "Zignoruj ostrzeżenie", "uk": "Ігнорувати попередження", "zh-cn": "忽略警告"},
|
|
189
189
|
"Disable authentication": { "en": "Disable authentication", "de": "Deaktivieren Sie die Authentifizierung", "ru": "Отключить аутентификацию", "pt": "Desabilitar autenticação", "nl": "Schakel authenticatie uit", "fr": "Désactiver l'authentification", "it": "Disabilita l'autenticazione", "es": "Deshabilitar la autenticación", "pl": "Wyłącz uwierzytelnianie", "uk": "Вимкнути автентифікацію", "zh-cn": "禁用身份验证"},
|
|
190
|
+
"showUsersOnLoginScreen": { "en": "Show users on login screen", "de": "Benutzer auf dem Anmeldebildschirm anzeigen", "ru": "Показывать пользователей на экране входа в систему", "pt": "Mostrar usuários na tela de login", "nl": "Toon gebruikers op inlogscherm", "fr": "Afficher les utilisateurs sur l'écran de connexion", "it": "Mostra gli utenti nella schermata di accesso", "es": "Mostrar usuarios en la pantalla de inicio de sesión", "pl": "Pokaż użytkowników na ekranie logowania", "uk": "Показати користувачів на екрані входу", "zh-cn": "在登录屏幕上显示用户"},
|
|
190
191
|
};
|
|
191
192
|
|
|
192
193
|
if (typeof module !== 'undefined' && module.parent) { module.exports = lovelace_systemDictionary; }
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "lovelace",
|
|
4
|
-
"version": "4.0
|
|
4
|
+
"version": "4.1.0",
|
|
5
5
|
"news": {
|
|
6
|
+
"4.1.0": {
|
|
7
|
+
"en": "add an option to show users on login screen (off by default)",
|
|
8
|
+
"de": "Neu Option um Benutzer auf dem Login-Bildschirm anzuzeigen"
|
|
9
|
+
},
|
|
6
10
|
"4.0.12": {
|
|
7
11
|
"en": "fix lint errors",
|
|
8
12
|
"de": "lint fehler beheben",
|
|
@@ -53,10 +57,6 @@
|
|
|
53
57
|
"pl": "historia powinna być kontynuowana.",
|
|
54
58
|
"uk": "історія повинна працювати знову.",
|
|
55
59
|
"zh-cn": "历史应该再次发挥作用。."
|
|
56
|
-
},
|
|
57
|
-
"4.0.6": {
|
|
58
|
-
"en": "fixed: thermostat card for thermostats without mode / off state\nfixed: history and history graph missing for some stuff",
|
|
59
|
-
"de": "repariert: thermostatkarte für thermostate ohne modus / aus zustand\nrepariert: history und history diagramm fehlt für einige sachen"
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"title": "Visualization with Lovelace-UI",
|
|
@@ -209,6 +209,7 @@
|
|
|
209
209
|
"defaultUser": "admin",
|
|
210
210
|
"onlyAllowWhenUserIsOwner": false,
|
|
211
211
|
"ttl": 3600,
|
|
212
|
+
"showUsersOnLoginScreen": false,
|
|
212
213
|
"themes": "",
|
|
213
214
|
"defaultTheme": "default",
|
|
214
215
|
"defaultThemeDark": "default",
|
package/lib/server.js
CHANGED
|
@@ -1655,7 +1655,7 @@ class WebServer {
|
|
|
1655
1655
|
});
|
|
1656
1656
|
|
|
1657
1657
|
this._app.use('/auth/providers', (req, res) => {
|
|
1658
|
-
res.json([{id: null, name: 'ioBroker Local', type: 'iobroker', users: this._modules.person.getShorList()}]);
|
|
1658
|
+
res.json([{id: null, name: 'ioBroker Local', type: 'iobroker', users: this.config.showUsersOnLoginScreen ? this._modules.person.getShorList() : undefined}]);
|
|
1659
1659
|
});
|
|
1660
1660
|
|
|
1661
1661
|
this._app.post('/auth/login_flow', (req, res) => {
|
|
@@ -2098,6 +2098,7 @@ class WebServer {
|
|
|
2098
2098
|
type: 'event',
|
|
2099
2099
|
event: {
|
|
2100
2100
|
event_type: eventType,
|
|
2101
|
+
data: {},
|
|
2101
2102
|
origin: 'LOCAL',
|
|
2102
2103
|
time_fired: Date.now() / 1000
|
|
2103
2104
|
}
|