mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 02:14:05 +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': 'Уведомления',
|
||||
'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': 'Значение по умолчанию сохранено',
|
||||
@@ -745,20 +748,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 и импортировать его маршруты как туры',
|
||||
@@ -784,7 +773,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-токены',
|
||||
@@ -959,7 +948,6 @@ const admin: TranslationStrings = {
|
||||
'Используется для каждого пользователя, который не ввёл собственный ключ, так весь сервер получает тайлы CARTO без водяного знака. Хранится в зашифрованном виде.',
|
||||
'admin.group.users': 'Пользователи',
|
||||
'admin.group.config': 'Конфигурация',
|
||||
'admin.group.integration': 'Интеграции',
|
||||
'admin.group.maintenance': 'Обслуживание',
|
||||
'admin.invite.tripLabel': 'Добавить в поездку (необязательно)',
|
||||
'admin.invite.tripNone': 'Без поездки',
|
||||
|
||||
Reference in New Issue
Block a user