mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-23 13:23:04 +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': 'Notificacions',
|
||||
'admin.notifications.channels': 'Canals',
|
||||
'admin.notifications.adminAlerts': 'Avisos d’administració',
|
||||
'admin.notifications.hint': 'Tria un canal per rebre notificacions. Només un pot estar actiu alhora.',
|
||||
'admin.notifications.none': 'Desactivat',
|
||||
'admin.notifications.email': 'Correu (SMTP)',
|
||||
@@ -80,6 +82,8 @@ const admin: TranslationStrings = {
|
||||
'admin.invite.createError': "Error en crear l'enllaç",
|
||||
'admin.invite.deleteError': "Error en eliminar l'enllaç",
|
||||
'admin.tabs.settings': 'Configuració',
|
||||
'admin.tabs.security': 'Seguretat',
|
||||
'admin.tabs.services': 'Serveis',
|
||||
'admin.allowRegistration': 'Permetre el registre',
|
||||
'admin.allowRegistrationHint': 'Els nous usuaris es poden registrar per si mateixos',
|
||||
'admin.authMethods': "Mètodes d'autenticació",
|
||||
@@ -141,10 +145,8 @@ const admin: TranslationStrings = {
|
||||
'admin.trekApi.included': 'Inclòs',
|
||||
'admin.trekApi.notIncluded': 'No inclòs',
|
||||
'admin.trekApi.quota.title': "Quota d'avui",
|
||||
'admin.trekApi.quota.used': 'Utilitzat',
|
||||
'admin.trekApi.quota.remaining': 'Restant',
|
||||
'admin.trekApi.quota.resets': 'Es reinicia a les',
|
||||
'admin.trekApi.quota.limit': 'Límit',
|
||||
'admin.trekApi.quota.key': 'Clau',
|
||||
'admin.trekApi.quota.state.connected': 'Connectat',
|
||||
'admin.trekApi.quota.state.registering': "S'està configurant",
|
||||
@@ -250,8 +252,9 @@ const admin: TranslationStrings = {
|
||||
'admin.collab.whatsnext.title': 'Què ve després',
|
||||
'admin.collab.whatsnext.subtitle': "Suggeriments d'activitats i propers passos",
|
||||
'admin.tabs.config': 'Personalització',
|
||||
'admin.tabs.defaults': 'Valors per defecte',
|
||||
'admin.tabs.defaults': 'Predeterminats',
|
||||
'admin.defaultSettings.title': 'Configuració per defecte dels usuaris',
|
||||
'admin.defaultSettings.routing': 'Rutes',
|
||||
'admin.defaultSettings.description':
|
||||
'Estableix valors per defecte per a tota la instància. Els usuaris que no hagin canviat una opció veuran aquests valors. Els seus propis canvis sempre tenen prioritat.',
|
||||
'admin.defaultSettings.saved': 'Per defecte desat',
|
||||
@@ -314,16 +317,6 @@ const admin: TranslationStrings = {
|
||||
'admin.addons.toast.updated': 'Complement actualitzat',
|
||||
'admin.addons.toast.error': "No s'ha pogut actualitzar el complement",
|
||||
'admin.addons.group.count': '{enabled} de {total} actius',
|
||||
'admin.addons.search': 'Cerca complements',
|
||||
'admin.addons.filter': 'Mostra',
|
||||
'admin.addons.filter.all': 'Tots',
|
||||
'admin.addons.filter.on': 'Actius',
|
||||
'admin.addons.filter.off': 'Inactius',
|
||||
'admin.addons.noMatch': 'Cap complement coincideix amb la cerca o el filtre.',
|
||||
'admin.addons.subOptions': '{count} opcions',
|
||||
'admin.addons.subOptions.one': '{count} opció',
|
||||
'admin.addons.subOptionsOn': '{count} actives',
|
||||
'admin.addons.subOptionsOn.one': '{count} activa',
|
||||
'admin.toursWanderer.title': 'wanderer',
|
||||
'admin.toursWanderer.subtitle':
|
||||
'Els usuaris poden connectar la seva pròpia instància de wanderer i importar-ne els senders com a excursions',
|
||||
@@ -349,7 +342,7 @@ const admin: TranslationStrings = {
|
||||
'admin.weather.requestsDesc': 'Gratuït, sense necessitat de clau API',
|
||||
'admin.weather.locationHint':
|
||||
'El temps es basa en el primer lloc amb coordenades de cada dia. Si no hi ha cap lloc assignat a un dia, es fa servir com a referència qualsevol lloc de la llista.',
|
||||
'admin.tabs.mcpTokens': 'Accés MCP',
|
||||
'admin.tabs.mcpTokens': 'MCP',
|
||||
'admin.mcpTokens.title': 'Accés MCP',
|
||||
'admin.mcpTokens.subtitle': "Gestionar sessions OAuth i tokens d'API de tots els usuaris",
|
||||
'admin.mcpTokens.sectionTitle': "Tokens d'API",
|
||||
@@ -453,7 +446,6 @@ const admin: TranslationStrings = {
|
||||
'admin.tabs.permissions': 'Permisos',
|
||||
'admin.group.users': 'Usuaris',
|
||||
'admin.group.config': 'Configuració',
|
||||
'admin.group.integration': 'Integracions',
|
||||
'admin.group.maintenance': 'Manteniment',
|
||||
'admin.notifications.emailPanel.title': 'Correu (SMTP)',
|
||||
'admin.notifications.webhookPanel.title': 'Webhook',
|
||||
|
||||
@@ -39,7 +39,6 @@ const mailAdmin: TranslationStrings = {
|
||||
'mailAdmin.problem.portInvalid': 'Introdueix un port entre 1 i 65535.',
|
||||
'mailAdmin.problem.templateToken': 'L’adreça necessita {token} per al codi de cada persona.',
|
||||
'mailAdmin.problem.dailyInvalid': 'Introdueix un nombre enter de 0 a 1000.',
|
||||
'mailAdmin.status.title': 'Estat',
|
||||
'mailAdmin.status.lastRead': 'Darrera lectura {time}',
|
||||
'mailAdmin.status.never': 'mai',
|
||||
'mailAdmin.status.mails': 'Correus, 24 h',
|
||||
|
||||
Reference in New Issue
Block a user