Skip to content

Commit

Permalink
Added proper authorization for default topic
Browse files Browse the repository at this point in the history
Added translation with words.js
  • Loading branch information
sestriel committed Oct 5, 2023
1 parent ab827a9 commit 1430cbc
Show file tree
Hide file tree
Showing 17 changed files with 220 additions and 71 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ iobroker.*.tgz
Thumbs.db

# i18n intermediate files
admin/i18n/flat.txt
admin/i18n/*/flat.txt
admin/i18nrhjkkj/flat.txt
admin/i18nrhjkkj/*/flat.txt
16 changes: 12 additions & 4 deletions admin/i18n/de/translations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{
"ntfy adapter settings": "Adaptereinstellungen für ntfy",
"option1": "Option 1",
"option2": "Option 2"
}
"serverURL": "URL zum Ntfy-Server",
"defaultTopic": "Standard Topic",
"defaultUsername": "Standard-Benutzername",
"defaultPassword": "Standard-Passwort",
"defaultAccessToken": "Standard-API-Token",
"helpServerURL": "URL ohne Topic – https://ntfy-server.sh",
"helpDefaultAccessToken": "Nur wenn Benutzername/Passwort nicht verwendet wird",
"defaultTopicAuth": "Standard-Topic-Authentifizierung",
"defaultTopicAuthNone": "Keine Authentifikation",
"defaultTopicAuthUser": "Benutzer/Passwort",
"defaultTopicAuthToken": "Zugangstoken"
}
19 changes: 12 additions & 7 deletions admin/i18n/en/translations.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
{
"ntfy adapter settings": "Adapter settings for ntfy",
"serverURL": "URL zum Ntfy-Server",
"defaultTopic": "Default Topic",
"defaultUsername": "Default Username",
"defaultPassword": "Default Password",
"defaultAccessToken": "Default Access Token"
}
"serverURL": "URL zum Ntfy-Server",
"defaultTopic": "Default Topic",
"defaultUsername": "Default Username",
"defaultPassword": "Default Password",
"defaultAccessToken": "Default Access Token",
"helpServerURL": "URL without Topic - https://ntfy-server.sh",
"helpDefaultAccessToken": "Only if username/password is not used",
"defaultTopicAuth": "Default Topic Authentication",
"defaultTopicAuthNone": "No Authentication",
"defaultTopicAuthUser": "User Authentication",
"defaultTopicAuthToken": "Access Token"
}
16 changes: 12 additions & 4 deletions admin/i18n/es/translations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{
"ntfy adapter settings": "Ajustes del adaptador para ntfy",
"option1": "Opción 1",
"option2": "opcion 2"
}
"serverURL": "URL del servidor Ntfy",
"defaultTopic": "Tema predeterminado",
"defaultUsername": "Nombre de usuario predeterminado",
"defaultPassword": "Contraseña predeterminada",
"defaultAccessToken": "Token de acceso predeterminado",
"helpServerURL": "URL sin tema: https://ntfy-server.sh",
"helpDefaultAccessToken": "Sólo si no se utiliza nombre de usuario/contraseña",
"defaultTopicAuth": "Autenticación de tema predeterminada",
"defaultTopicAuthNone": "Sin autenticacion",
"defaultTopicAuthUser": "Autenticacion de usuario",
"defaultTopicAuthToken": "Token de acceso"
}
16 changes: 12 additions & 4 deletions admin/i18n/fr/translations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{
"ntfy adapter settings": "Paramètres d'adaptateur pour ntfy",
"option1": "Option 1",
"option2": "Option 2"
}
"serverURL": "URL vers le serveur Ntfy",
"defaultTopic": "Sujet par défaut",
"defaultUsername": "Nom d'utilisateur par défaut",
"defaultPassword": "Mot de passe par défaut",
"defaultAccessToken": "Jeton d'accès par défaut",
"helpServerURL": "URL sans sujet - https://ntfy-server.sh",
"helpDefaultAccessToken": "Uniquement si le nom d'utilisateur/mot de passe n'est pas utilisé",
"defaultTopicAuth": "Authentification du sujet par défaut",
"defaultTopicAuthNone": "Pas d'authentification",
"defaultTopicAuthUser": "Authentification d'utilisateur",
"defaultTopicAuthToken": "Jeton d'accès"
}
16 changes: 12 additions & 4 deletions admin/i18n/it/translations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{
"ntfy adapter settings": "Impostazioni dell'adattatore per ntfy",
"option1": "opzione 1",
"option2": "opzione 2"
}
"serverURL": "URL del server Ntfy",
"defaultTopic": "Argomento predefinito",
"defaultUsername": "Nome utente predefinito",
"defaultPassword": "Password predefinita",
"defaultAccessToken": "Token di accesso predefinito",
"helpServerURL": "URL senza argomento: https://ntfy-server.sh",
"helpDefaultAccessToken": "Solo se non viene utilizzato nome utente/password",
"defaultTopicAuth": "Autenticazione argomento predefinita",
"defaultTopicAuthNone": "Nessuna autenticazione",
"defaultTopicAuthUser": "Autenticazione utente",
"defaultTopicAuthToken": "Token di accesso"
}
16 changes: 12 additions & 4 deletions admin/i18n/nl/translations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{
"ntfy adapter settings": "Adapterinstellingen voor ntfy",
"option1": "Optie 1",
"option2": "Optie 2"
}
"serverURL": "URL naar Ntfy-Server",
"defaultTopic": "Standaardonderwerp",
"defaultUsername": "Standaard gebruikersnaam",
"defaultPassword": "Standaard wachtwoord",
"defaultAccessToken": "Standaardtoegangstoken",
"helpServerURL": "URL zonder onderwerp - https://ntfy-server.sh",
"helpDefaultAccessToken": "Alleen als gebruikersnaam/wachtwoord niet wordt gebruikt",
"defaultTopicAuth": "Standaard onderwerpverificatie",
"defaultTopicAuthNone": "Geen authenticatie",
"defaultTopicAuthUser": "Gebruikersverificatie",
"defaultTopicAuthToken": "Toegangstoken"
}
16 changes: 12 additions & 4 deletions admin/i18n/pl/translations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{
"ntfy adapter settings": "Ustawienia adaptera dla ntfy",
"option1": "opcja 1",
"option2": "Opcja 2"
}
"serverURL": "Adres URL serwera Ntfy",
"defaultTopic": "Domyślny temat",
"defaultUsername": "Domyślna nazwa użytkownika",
"defaultPassword": "Domyślne hasło",
"defaultAccessToken": "Domyślny token dostępu",
"helpServerURL": "Adres URL bez tematu - https://ntfy-server.sh",
"helpDefaultAccessToken": "Tylko jeśli nazwa użytkownika/hasło nie jest używana",
"defaultTopicAuth": "Domyślne uwierzytelnianie tematu",
"defaultTopicAuthNone": "Brak autoryzacji",
"defaultTopicAuthUser": "Uwierzytelnianie użytkownika",
"defaultTopicAuthToken": "Token dostępu"
}
16 changes: 12 additions & 4 deletions admin/i18n/pt/translations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{
"ntfy adapter settings": "Configurações do adaptador para ntfy",
"option1": "Opção 1",
"option2": "opção 2"
}
"serverURL": "URL para servidor Ntfy",
"defaultTopic": "Tópico padrão",
"defaultUsername": "Nome de usuário padrão",
"defaultPassword": "Senha padrão",
"defaultAccessToken": "Token de acesso padrão",
"helpServerURL": "URL sem tópico - https://ntfy-server.sh",
"helpDefaultAccessToken": "Somente se nome de usuário/senha não for usado",
"defaultTopicAuth": "Autenticação de tópico padrão",
"defaultTopicAuthNone": "Sem autenticação",
"defaultTopicAuthUser": "Autenticação de usuário",
"defaultTopicAuthToken": "Token de acesso"
}
16 changes: 12 additions & 4 deletions admin/i18n/ru/translations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{
"ntfy adapter settings": "Настройки адаптера для ntfy",
"option1": "Опция 1",
"option2": "вариант 2"
}
"serverURL": "URL-адрес Ntfy-сервера",
"defaultTopic": "Тема по умолчанию",
"defaultUsername": "Имя пользователя по умолчанию",
"defaultPassword": "Пароль по умолчанию",
"defaultAccessToken": "Токен доступа по умолчанию",
"helpServerURL": "URL без темы — https://ntfy-server.sh",
"helpDefaultAccessToken": "Только если имя пользователя/пароль не используется",
"defaultTopicAuth": "Аутентификация темы по умолчанию",
"defaultTopicAuthNone": "Нет аутентификации",
"defaultTopicAuthUser": "Аутентификация пользователя",
"defaultTopicAuthToken": "Токен доступа"
}
16 changes: 12 additions & 4 deletions admin/i18n/uk/translations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{
"ntfy adapter settings": "Налаштування адаптера для ntfy",
"option1": "варіант1",
"option2": "варіант2"
}
"serverURL": "URL-адреса сервера Ntfy",
"defaultTopic": "Тема за замовчуванням",
"defaultUsername": "Ім'я користувача за замовчуванням",
"defaultPassword": "Пароль за умовчанням",
"defaultAccessToken": "Маркер доступу за умовчанням",
"helpServerURL": "URL без теми - https://ntfy-server.sh",
"helpDefaultAccessToken": "Лише якщо ім’я користувача/пароль не використовується",
"defaultTopicAuth": "Автентифікація теми за замовчуванням",
"defaultTopicAuthNone": "Без автентифікації",
"defaultTopicAuthUser": "Автентифікація користувача",
"defaultTopicAuthToken": "Маркер доступу"
}
16 changes: 12 additions & 4 deletions admin/i18n/zh-cn/translations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{
"ntfy adapter settings": "ntfy的适配器设置",
"option1": "选项1",
"option2": "选项2"
}
"serverURL": "URL zum Ntfy 服务器",
"defaultTopic": "默认主题",
"defaultUsername": "默认用户名",
"defaultPassword": "默认密码",
"defaultAccessToken": "默认访问令牌",
"helpServerURL": "没有主题的 URL - https://ntfy-server.sh",
"helpDefaultAccessToken": "仅当不使用用户名/密码时",
"defaultTopicAuth": "默认主题认证",
"defaultTopicAuthNone": "无需验证",
"defaultTopicAuthUser": "用户认证",
"defaultTopicAuthToken": "访问令牌"
}
35 changes: 31 additions & 4 deletions admin/jsonConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,55 @@
"serverURL": {
"type": "text",
"label": "serverURL",
"help": "URL without Topic - https://ntfy-server.sh",
"help": "helpServerURL",
"newLine": true
},
"defaultSettingsHeader": {
"type": "header",
"text": "Default Settings Header",
"size": 4
},
"defaultTopic": {
"type": "text",
"label": "defaultTopic",
"newLine": true
},
"defaultTopicAuth": {
"type": "select",
"label": "defaultTopicAuth",
"options": [
{
"label": "defaultTopicAuthNone",
"value": 0
},
{
"label": "defaultTopicAuthUser",
"value": 1
},
{
"label": "defaultTopicAuthToken",
"value": 2
}
],
"sm": 12,
"md": 6,
"lg": 3
},
"defaultUsername": {
"type": "text",
"label": "defaultUsername",
"newLine": true
},
"defaultPassword": {
"type": "text",
"type": "password",
"label": "defaultPassword",
"newLine": true
"visible": true,
"newLine": false
},
"defaultAccessToken": {
"type": "text",
"label": "defaultAccessToken",
"help": "Only if username/password is not used",
"help": "helpDefaultAccessToken",
"newLine": true
}
}
Expand Down
22 changes: 22 additions & 0 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 1430cbc

Please sign in to comment.