From 288273005ad15d028d662f829446282f7b243d26 Mon Sep 17 00:00:00 2001 From: mokusone <14061880+mokusone@users.noreply.github.com> Date: Thu, 14 May 2026 11:40:28 +0200 Subject: [PATCH] feat(admin): add exclude patterns UI field with i18n JSON-Config field `excludePatterns` (multiline textarea, 6 rows by default, full width). Help text explains the syntax: glob with `*`, `#` for comments, empty = filter inactive. i18n translations added for all 11 supported languages so the label and help text are localised consistently with the rest of the admin UI. --- admin/i18n/de.json | 4 +++- admin/i18n/en.json | 4 +++- admin/i18n/es.json | 4 +++- admin/i18n/fr.json | 4 +++- admin/i18n/it.json | 4 +++- admin/i18n/nl.json | 4 +++- admin/i18n/pl.json | 4 +++- admin/i18n/pt.json | 4 +++- admin/i18n/ru.json | 4 +++- admin/i18n/uk.json | 4 +++- admin/i18n/zh-cn.json | 4 +++- admin/jsonConfig.json | 11 +++++++++++ 12 files changed, 44 insertions(+), 11 deletions(-) diff --git a/admin/i18n/de.json b/admin/i18n/de.json index 58113a2..33f7a2b 100644 --- a/admin/i18n/de.json +++ b/admin/i18n/de.json @@ -4,5 +4,7 @@ "Password repeat": "Passwort wiederholen", "Password": "Passwort", "Passwords missmatch!": "Passwörter stimmen nicht überein!", - "Secure": "HTTPS?" + "Secure": "HTTPS?", + "Exclude patterns (one per line)": "Filter-Patterns (eines pro Zeile)", + "Glob patterns, * wildcard. Lines starting with # are comments. Empty = filter off.": "Glob-Patterns mit * als Wildcard. Zeilen mit # sind Kommentare. Leer = Filter aus." } \ No newline at end of file diff --git a/admin/i18n/en.json b/admin/i18n/en.json index da742d4..2a3aede 100644 --- a/admin/i18n/en.json +++ b/admin/i18n/en.json @@ -4,5 +4,7 @@ "Password repeat": "Password repeat", "Password": "Password", "Passwords missmatch!": "Passwords missmatch!", - "Secure": "HTTPS?" + "Secure": "HTTPS?", + "Exclude patterns (one per line)": "Exclude patterns (one per line)", + "Glob patterns, * wildcard. Lines starting with # are comments. Empty = filter off.": "Glob patterns, * wildcard. Lines starting with # are comments. Empty = filter off." } \ No newline at end of file diff --git a/admin/i18n/es.json b/admin/i18n/es.json index 68e495b..379fff8 100644 --- a/admin/i18n/es.json +++ b/admin/i18n/es.json @@ -4,5 +4,7 @@ "Password repeat": "Repite la contraseña", "Password": "Clave", "Passwords missmatch!": "¡Las contraseñas no coinciden!", - "Secure": "¿HTTPS?" + "Secure": "¿HTTPS?", + "Exclude patterns (one per line)": "Patrones de exclusión (uno por línea)", + "Glob patterns, * wildcard. Lines starting with # are comments. Empty = filter off.": "Patrones glob, * como comodín. Las líneas que empiezan con # son comentarios. Vacío = filtro desactivado." } \ No newline at end of file diff --git a/admin/i18n/fr.json b/admin/i18n/fr.json index 18129d7..02f9bb9 100644 --- a/admin/i18n/fr.json +++ b/admin/i18n/fr.json @@ -4,5 +4,7 @@ "Password repeat": "Répéter le mot de passe ", "Password": "Mot de passe", "Passwords missmatch!": "Les mots de passe ne correspondent pas !", - "Secure": "HTTPS ?" + "Secure": "HTTPS ?", + "Exclude patterns (one per line)": "Modèles d'exclusion (un par ligne)", + "Glob patterns, * wildcard. Lines starting with # are comments. Empty = filter off.": "Modèles glob, * comme joker. Les lignes commençant par # sont des commentaires. Vide = filtre désactivé." } \ No newline at end of file diff --git a/admin/i18n/it.json b/admin/i18n/it.json index 8df3f2d..58c43bd 100644 --- a/admin/i18n/it.json +++ b/admin/i18n/it.json @@ -4,5 +4,7 @@ "Password repeat": "Ripeti password", "Password": "Parola d'ordine", "Passwords missmatch!": "Le password non corrispondono!", - "Secure": "HTTPS?" + "Secure": "HTTPS?", + "Exclude patterns (one per line)": "Pattern di esclusione (uno per riga)", + "Glob patterns, * wildcard. Lines starting with # are comments. Empty = filter off.": "Pattern glob, * come wildcard. Le righe che iniziano con # sono commenti. Vuoto = filtro disattivato." } \ No newline at end of file diff --git a/admin/i18n/nl.json b/admin/i18n/nl.json index 0bda09c..b2c9f0c 100644 --- a/admin/i18n/nl.json +++ b/admin/i18n/nl.json @@ -4,5 +4,7 @@ "Password repeat": "Wachtwoord herhalen", "Password": "Wachtwoord", "Passwords missmatch!": "Wachtwoorden komen niet overeen!", - "Secure": "HTTPS?" + "Secure": "HTTPS?", + "Exclude patterns (one per line)": "Uitsluitpatronen (één per regel)", + "Glob patterns, * wildcard. Lines starting with # are comments. Empty = filter off.": "Glob-patronen, * als wildcard. Regels die beginnen met # zijn commentaar. Leeg = filter uit." } \ No newline at end of file diff --git a/admin/i18n/pl.json b/admin/i18n/pl.json index 6fd04e2..979d9e3 100644 --- a/admin/i18n/pl.json +++ b/admin/i18n/pl.json @@ -4,5 +4,7 @@ "Password repeat": "Powtórz hasło", "Password": "Hasło", "Passwords missmatch!": "Niezgodność haseł!", - "Secure": "HTTPS?" + "Secure": "HTTPS?", + "Exclude patterns (one per line)": "Wzorce wykluczeń (jeden na linię)", + "Glob patterns, * wildcard. Lines starting with # are comments. Empty = filter off.": "Wzorce glob, * jako symbol wieloznaczny. Linie zaczynające się od # to komentarze. Puste = filtr wyłączony." } \ No newline at end of file diff --git a/admin/i18n/pt.json b/admin/i18n/pt.json index 79758db..0ba7e37 100644 --- a/admin/i18n/pt.json +++ b/admin/i18n/pt.json @@ -4,5 +4,7 @@ "Password repeat": "Repetição de senha", "Password": "Senha", "Passwords missmatch!": "As senhas não correspondem!", - "Secure": "HTTPS?" + "Secure": "HTTPS?", + "Exclude patterns (one per line)": "Padrões de exclusão (um por linha)", + "Glob patterns, * wildcard. Lines starting with # are comments. Empty = filter off.": "Padrões glob, * como wildcard. Linhas começando com # são comentários. Vazio = filtro desligado." } \ No newline at end of file diff --git a/admin/i18n/ru.json b/admin/i18n/ru.json index 9fa0e29..25e444a 100644 --- a/admin/i18n/ru.json +++ b/admin/i18n/ru.json @@ -4,5 +4,7 @@ "Password repeat": "Повтор пароля", "Password": "Пароль", "Passwords missmatch!": "Пароли не совпадают!", - "Secure": "HTTPS?" + "Secure": "HTTPS?", + "Exclude patterns (one per line)": "Шаблоны исключения (по одному на строку)", + "Glob patterns, * wildcard. Lines starting with # are comments. Empty = filter off.": "Glob-шаблоны, * — подстановочный знак. Строки, начинающиеся с #, являются комментариями. Пусто = фильтр выключен." } \ No newline at end of file diff --git a/admin/i18n/uk.json b/admin/i18n/uk.json index ca2bca5..28ad24f 100644 --- a/admin/i18n/uk.json +++ b/admin/i18n/uk.json @@ -4,5 +4,7 @@ "Password repeat": "Повторення пароля", "Password": "Пароль", "Passwords missmatch!": "Паролі не збігаються!", - "Secure": "HTTPS?" + "Secure": "HTTPS?", + "Exclude patterns (one per line)": "Шаблони виключення (по одному в рядку)", + "Glob patterns, * wildcard. Lines starting with # are comments. Empty = filter off.": "Glob-шаблони, * — підстановочний знак. Рядки, що починаються з #, є коментарями. Порожньо = фільтр вимкнено." } \ No newline at end of file diff --git a/admin/i18n/zh-cn.json b/admin/i18n/zh-cn.json index 61b553f..2f36947 100644 --- a/admin/i18n/zh-cn.json +++ b/admin/i18n/zh-cn.json @@ -4,5 +4,7 @@ "Password repeat": "密码重复:", "Password": "密码:", "Passwords missmatch!": "密码不匹配!", - "Secure": "HTTPS?" + "Secure": "HTTPS?", + "Exclude patterns (one per line)": "排除模式(每行一个)", + "Glob patterns, * wildcard. Lines starting with # are comments. Empty = filter off.": "Glob 模式,* 通配符。以 # 开头的行是注释。为空 = 过滤器关闭。" } \ No newline at end of file diff --git a/admin/jsonConfig.json b/admin/jsonConfig.json index 3e39ad4..fe90cc8 100644 --- a/admin/jsonConfig.json +++ b/admin/jsonConfig.json @@ -39,6 +39,17 @@ "sm": 12, "md": 6, "lg": 4 + }, + "_divider3": { + "type": "divider" + }, + "excludePatterns": { + "type": "text", + "label": "Exclude patterns (one per line)", + "help": "Glob patterns, * wildcard. Lines starting with # are comments. Empty = filter off.", + "multiline": true, + "minRows": 6, + "sm": 12 } } }