Skip to content

Commit

Permalink
update admin interface to JSON-Config
Browse files Browse the repository at this point in the history
  • Loading branch information
DutchmanNL committed Oct 31, 2023
1 parent 902525b commit 0c8d4c2
Show file tree
Hide file tree
Showing 15 changed files with 287 additions and 232 deletions.
7 changes: 7 additions & 0 deletions admin/i18n/de/translations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"Password": "Kennwort",
"Username": "Benutzername",
"Your Discovergy Username": "Ihr Discovergy-Benutzername",
"discovergy adapter settings": "Adaptereinstellungen für discovergy",
"intervall": "Aktualisierungsintervall in Sekunde"
}
7 changes: 7 additions & 0 deletions admin/i18n/en/translations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"Password": "Password",
"Username": "Username",
"Your Discovergy Username": "Your Discovergy Username",
"discovergy adapter settings": "Adapter settings for discovergy",
"intervall": "Refresh intervall in second"
}
7 changes: 7 additions & 0 deletions admin/i18n/es/translations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"Password": "La opción 2 no es",
"Username": "La opción 1 es genial",
"Your Discovergy Username": "Su nombre de usuario de Discovergy",
"discovergy adapter settings": "Ajustes del adaptador para discovergy",
"intervall": "Actualizar intervalo en segundo"
}
7 changes: 7 additions & 0 deletions admin/i18n/fr/translations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"Password": "L'option 2 n'est pas",
"Username": "L'option 1 est cool",
"Your Discovergy Username": "Votre nom d'utilisateur Discovergy",
"discovergy adapter settings": "Paramètres d'adaptateur pour discovergy",
"intervall": "Rafraîchir l'intervalle en seconde"
}
7 changes: 7 additions & 0 deletions admin/i18n/it/translations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"Password": "L'opzione 2 no",
"Username": "L'opzione 1 è cool",
"Your Discovergy Username": "Il tuo nome utente Discovergy",
"discovergy adapter settings": "Impostazioni dell'adattatore per discovergy",
"intervall": "Intervallo di aggiornamento al secondo"
}
7 changes: 7 additions & 0 deletions admin/i18n/nl/translations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"Password": "Optie 2 is dat niet",
"Username": "Optie 1 is cool",
"Your Discovergy Username": "Uw Discoverygy-gebruikersnaam",
"discovergy adapter settings": "Adapterinstellingen voor discovergy",
"intervall": "Vernieuw intervall in seconde"
}
7 changes: 7 additions & 0 deletions admin/i18n/pl/translations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"Password": "Opcja 2 nie jest",
"Username": "Opcja 1 jest fajna",
"Your Discovergy Username": "Twoja nazwa użytkownika Discovery",
"discovergy adapter settings": "Ustawienia adaptera dla discovergy",
"intervall": "Odśwież interwał w sekundę"
}
7 changes: 7 additions & 0 deletions admin/i18n/pt/translations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"Password": "A opção 2 não é",
"Username": "Opção 1 é legal",
"Your Discovergy Username": "Seu nome de usuário do Discovergy",
"discovergy adapter settings": "Configurações do adaptador para discovergy",
"intervall": "Atualizar intervalo em segundo"
}
7 changes: 7 additions & 0 deletions admin/i18n/ru/translations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"Password": "Вариант 2 не",
"Username": "Вариант 1 - это круто",
"Your Discovergy Username": "Ваше имя пользователя Discovery",
"discovergy adapter settings": "Настройки адаптера для discovergy",
"intervall": "Обновить интервал в секунду"
}
7 changes: 7 additions & 0 deletions admin/i18n/zh-cn/translations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"Password": "密码",
"Username": "用户名",
"Your Discovergy Username": "您的发现用户名",
"discovergy adapter settings": "用于发现的适配器设置",
"intervall": "刷新间隔秒"
}
25 changes: 25 additions & 0 deletions admin/jsonConfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"i18n": true,
"type": "panel",
"items": {
"Username": {
"type": "text",
"label": "Your Discovergy Username",
"newLine": true
},
"Password": {
"type": "password",
"label": "Password",
"newLine": true,
"sm": 3
},
"intervall": {
"type": "number",
"label": "Seconds between data polling",
"sm": 1,
"default": 30,
"min" : 1,
"max": 1800
}
}
}
50 changes: 5 additions & 45 deletions admin/words.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0c8d4c2

Please sign in to comment.