mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-06 02:34:21 +00:00
feat(settings): one look for every user and admin settings page
The settings pages had grown into a mix of styles: folds, dialogs behind rows, full-width rows next to boxed ones, pills for every figure and buttons in four sizes. Every page now uses the same kit. - Cards keep their tinted head band; every part of a card is a rounded block with its own small head (SettingsBlock), and rows sit in rounded boxes. - Nothing folds and nothing hides behind a dialog: the MCP config, OAuth scopes, mail how-to, AI privacy note and addon sub-options are all shown. - Each page is split into two columns balanced by length (SettingsColumns). - Long explanations moved into an info mark next to the label (HintMark). - One button size everywhere (text-control); tab names are one word. - Admin: the old Settings tab is split into Security and Services (?tab=settings still opens Security, and the phone keeps its single Settings section for both); the Integration group is gone, live flights and mail import sit next to the addons they configure. - Addons: one card per type with rows, no search, filter or fold. - Quota, TREK API facts, mail import status and Google's daily limit are compact lines and strips instead of tiles and pills. - Language is a select; routing has its own card under the defaults; storage saves from the foot of its categories card. - Unused keys, FoldSummary and the page-width wrapper are removed.
This commit is contained in:
@@ -2,6 +2,8 @@ import type { TranslationStrings } from '../types';
|
||||
|
||||
const admin: TranslationStrings = {
|
||||
'admin.notifications.title': 'n',
|
||||
'admin.notifications.channels': 'Канали',
|
||||
'admin.notifications.adminAlerts': 'Сповіщення адміністратора',
|
||||
'admin.notifications.hint': 'Виберіть канал сповіщень. Одночасно може бути активним лише один.',
|
||||
'admin.notifications.none': 'Вимкнено',
|
||||
'admin.notifications.email': 'Ел. пошта (SMTP)',
|
||||
@@ -83,6 +85,8 @@ const admin: TranslationStrings = {
|
||||
'admin.invite.createError': 'Помилка створення посилання',
|
||||
'admin.invite.deleteError': 'Помилка видалення посилання',
|
||||
'admin.tabs.settings': 'Налаштування',
|
||||
'admin.tabs.security': 'Безпека',
|
||||
'admin.tabs.services': 'Сервіси',
|
||||
'admin.allowRegistration': 'Дозволити реєстрацію',
|
||||
'admin.allowRegistrationHint': 'Нові користувачі можуть реєструватися самостійно',
|
||||
'admin.authMethods': 'Методи автентифікації',
|
||||
@@ -144,10 +148,8 @@ const admin: TranslationStrings = {
|
||||
'admin.trekApi.included': 'Входить',
|
||||
'admin.trekApi.notIncluded': 'Не входить',
|
||||
'admin.trekApi.quota.title': 'Ліміт на сьогодні',
|
||||
'admin.trekApi.quota.used': 'Використано',
|
||||
'admin.trekApi.quota.remaining': 'Залишилось',
|
||||
'admin.trekApi.quota.resets': 'Скидання о',
|
||||
'admin.trekApi.quota.limit': 'Ліміт',
|
||||
'admin.trekApi.quota.key': 'Ключ',
|
||||
'admin.trekApi.quota.state.connected': 'Підключено',
|
||||
'admin.trekApi.quota.state.registering': 'Налаштування',
|
||||
@@ -270,8 +272,9 @@ const admin: TranslationStrings = {
|
||||
'admin.collab.whatsnext.title': 'Що далі',
|
||||
'admin.collab.whatsnext.subtitle': 'Пропозиції активностей та наступні кроки',
|
||||
'admin.tabs.config': 'Персоналізація',
|
||||
'admin.tabs.defaults': 'Налаштування за замовчуванням',
|
||||
'admin.tabs.defaults': 'Типові',
|
||||
'admin.defaultSettings.title': 'Налаштування користувачів за замовчуванням',
|
||||
'admin.defaultSettings.routing': 'Маршрути',
|
||||
'admin.defaultSettings.description':
|
||||
'Визначте значення за замовчуванням для всієї інстанції. Користувачі, які не змінювали параметр, побачать ці значення. Їхні власні зміни завжди мають пріоритет.',
|
||||
'admin.defaultSettings.saved': 'Значення за замовчуванням збережено',
|
||||
@@ -741,20 +744,6 @@ const admin: TranslationStrings = {
|
||||
'admin.addons.toast.updated': 'Доповнення оновлено',
|
||||
'admin.addons.toast.error': 'Не вдалося оновити доповнення',
|
||||
'admin.addons.group.count': 'Увімкнено {enabled} з {total}',
|
||||
'admin.addons.search': 'Пошук доповнень',
|
||||
'admin.addons.filter': 'Показати',
|
||||
'admin.addons.filter.all': 'Усі',
|
||||
'admin.addons.filter.on': 'Увімкнені',
|
||||
'admin.addons.filter.off': 'Вимкнені',
|
||||
'admin.addons.noMatch': 'Жодне доповнення не відповідає пошуку чи фільтру.',
|
||||
'admin.addons.subOptions': '{count} параметра',
|
||||
'admin.addons.subOptions.one': '{count} параметр',
|
||||
'admin.addons.subOptions.few': '{count} параметри',
|
||||
'admin.addons.subOptions.many': '{count} параметрів',
|
||||
'admin.addons.subOptionsOn': '{count} увімк.',
|
||||
'admin.addons.subOptionsOn.one': '{count} увімк.',
|
||||
'admin.addons.subOptionsOn.few': '{count} увімк.',
|
||||
'admin.addons.subOptionsOn.many': '{count} увімк.',
|
||||
'admin.toursWanderer.title': 'wanderer',
|
||||
'admin.toursWanderer.subtitle':
|
||||
'Користувачі можуть підключити власний екземпляр wanderer та імпортувати його маршрути як тури',
|
||||
@@ -780,7 +769,7 @@ const admin: TranslationStrings = {
|
||||
'admin.weather.requestsDesc': 'Безкоштовно, API-ключ не потрібен',
|
||||
'admin.weather.locationHint':
|
||||
'Погода базується на першому місці з координатами в кожному дні. Якщо жодне місце не призначено на день, як орієнтир використовується будь-яке місце зі списку.',
|
||||
'admin.tabs.mcpTokens': 'MCP-доступ',
|
||||
'admin.tabs.mcpTokens': 'MCP',
|
||||
'admin.mcpTokens.title': 'MCP-доступ',
|
||||
'admin.mcpTokens.subtitle': 'Управління OAuth-сеансами та API-токенами всіх користувачів',
|
||||
'admin.mcpTokens.sectionTitle': 'API-токени',
|
||||
@@ -955,7 +944,6 @@ const admin: TranslationStrings = {
|
||||
'Використовується для кожного користувача, який не ввів власний ключ, щоб увесь екземпляр отримував плитки CARTO без водяного знака. Зберігається в зашифрованому вигляді.',
|
||||
'admin.group.users': 'Користувачі',
|
||||
'admin.group.config': 'Налаштування',
|
||||
'admin.group.integration': 'Інтеграції',
|
||||
'admin.group.maintenance': 'Обслуговування',
|
||||
'admin.invite.tripLabel': 'Додати до подорожі (необов’язково)',
|
||||
'admin.invite.tripNone': 'Без подорожі',
|
||||
|
||||
@@ -39,7 +39,6 @@ const mailAdmin: TranslationStrings = {
|
||||
'mailAdmin.problem.portInvalid': 'Введіть порт від 1 до 65535.',
|
||||
'mailAdmin.problem.templateToken': 'Адреса має містити {token} для коду кожного користувача.',
|
||||
'mailAdmin.problem.dailyInvalid': 'Введіть ціле число від 0 до 1000.',
|
||||
'mailAdmin.status.title': 'Статус',
|
||||
'mailAdmin.status.lastRead': 'Останнє читання {time}',
|
||||
'mailAdmin.status.never': 'ніколи',
|
||||
'mailAdmin.status.mails': 'Листи, 24 год',
|
||||
|
||||
@@ -18,7 +18,7 @@ const settings: TranslationStrings = {
|
||||
'settings.plugins.empty': 'Немає активних плагінів.',
|
||||
'settings.plugins.saved': 'Налаштування збережено',
|
||||
'settings.plugins.requiredMissing': '«{field}» обов’язкове',
|
||||
'settings.tabs.account': 'Обліковий запис',
|
||||
'settings.tabs.account': 'Акаунт',
|
||||
'settings.tabs.offline': 'Офлайн',
|
||||
'settings.tabs.device': 'Застосунок',
|
||||
'settings.groups.account': 'Ваш обліковий запис',
|
||||
|
||||
Reference in New Issue
Block a user