mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 18:34:09 +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': 'Oznámenia',
|
||||
'admin.notifications.channels': 'Kanály',
|
||||
'admin.notifications.adminAlerts': 'Upozornenia pre správcu',
|
||||
'admin.notifications.hint': 'Vyberte jeden kanál oznámení. Súčasne môže byť aktívny len jeden.',
|
||||
'admin.notifications.none': 'Vypnuté',
|
||||
'admin.notifications.email': 'E-mail (SMTP)',
|
||||
@@ -130,6 +132,8 @@ const admin: TranslationStrings = {
|
||||
'admin.invite.createError': 'Nepodarilo sa vytvoriť pozývací odkaz',
|
||||
'admin.invite.deleteError': 'Nepodarilo sa odstrániť pozývací odkaz',
|
||||
'admin.tabs.settings': 'Nastavenia',
|
||||
'admin.tabs.security': 'Zabezpečenie',
|
||||
'admin.tabs.services': 'Služby',
|
||||
'admin.allowRegistration': 'Povoliť registráciu',
|
||||
'admin.allowRegistrationHint': 'Noví používatelia sa môžu sami registrovať',
|
||||
'admin.authMethods': 'Metódy overenia',
|
||||
@@ -189,10 +193,8 @@ const admin: TranslationStrings = {
|
||||
'admin.trekApi.included': 'Obsahuje',
|
||||
'admin.trekApi.notIncluded': 'Neobsahuje',
|
||||
'admin.trekApi.quota.title': 'Dnešný limit',
|
||||
'admin.trekApi.quota.used': 'Využité',
|
||||
'admin.trekApi.quota.remaining': 'Zostáva',
|
||||
'admin.trekApi.quota.resets': 'Obnoví sa o',
|
||||
'admin.trekApi.quota.limit': 'Denný limit',
|
||||
'admin.trekApi.quota.key': 'Kľúč',
|
||||
'admin.trekApi.quota.state.connected': 'Pripojené',
|
||||
'admin.trekApi.quota.state.registering': 'Nastavuje sa',
|
||||
@@ -314,8 +316,9 @@ const admin: TranslationStrings = {
|
||||
'admin.collab.whatsnext.title': 'Čo ďalej',
|
||||
'admin.collab.whatsnext.subtitle': 'Návrhy aktivít a ďalšie kroky',
|
||||
'admin.tabs.config': 'Personalizácia',
|
||||
'admin.tabs.defaults': 'Predvolené nastavenia používateľa',
|
||||
'admin.tabs.defaults': 'Predvolené',
|
||||
'admin.defaultSettings.title': 'Predvolené nastavenia používateľa',
|
||||
'admin.defaultSettings.routing': 'Trasy',
|
||||
'admin.defaultSettings.description':
|
||||
'Nastavte predvolené hodnoty pre celú inštanciu. Používatelia, ktorí nastavenie nezmenili, uvidia tieto hodnoty. Ich vlastné zmeny majú vždy prednosť.',
|
||||
'admin.defaultSettings.saved': 'Predvolené nastavenie uložené',
|
||||
@@ -794,18 +797,6 @@ const admin: TranslationStrings = {
|
||||
'admin.addons.toast.updated': 'Doplnok aktualizovaný',
|
||||
'admin.addons.toast.error': 'Aktualizácia doplnku zlyhala',
|
||||
'admin.addons.group.count': '{enabled} z {total} zapnuté',
|
||||
'admin.addons.search': 'Hľadať doplnky',
|
||||
'admin.addons.filter': 'Zobraziť',
|
||||
'admin.addons.filter.all': 'Všetky',
|
||||
'admin.addons.filter.on': 'Zapnuté',
|
||||
'admin.addons.filter.off': 'Vypnuté',
|
||||
'admin.addons.noMatch': 'Vyhľadávaniu ani filtru nezodpovedá žiadny doplnok.',
|
||||
'admin.addons.subOptions': '{count} možností',
|
||||
'admin.addons.subOptions.one': '{count} možnosť',
|
||||
'admin.addons.subOptions.few': '{count} možnosti',
|
||||
'admin.addons.subOptionsOn': 'zapnuté: {count}',
|
||||
'admin.addons.subOptionsOn.one': 'zapnuté: {count}',
|
||||
'admin.addons.subOptionsOn.few': 'zapnuté: {count}',
|
||||
'admin.toursWanderer.title': 'wanderer',
|
||||
'admin.toursWanderer.subtitle':
|
||||
'Používatelia môžu pripojiť vlastnú inštanciu wanderer a importovať z nej trasy ako túry',
|
||||
@@ -831,7 +822,7 @@ const admin: TranslationStrings = {
|
||||
'admin.weather.requestsDesc': 'Zdarma, bez nutnosti API kľúča',
|
||||
'admin.weather.locationHint':
|
||||
'Počasie sa určuje podľa prvého miesta so súradnicami v danom dni. Ak k dňu nie je priradené žiadne miesto, ako referencia sa použije ľubovoľné miesto zo zoznamu miest.',
|
||||
'admin.tabs.mcpTokens': 'MCP prístup',
|
||||
'admin.tabs.mcpTokens': 'MCP',
|
||||
'admin.mcpTokens.title': 'MCP prístup',
|
||||
'admin.mcpTokens.subtitle': 'Spravujte OAuth relácie a API tokeny naprieč všetkými používateľmi',
|
||||
'admin.mcpTokens.sectionTitle': 'API tokeny',
|
||||
@@ -936,7 +927,6 @@ const admin: TranslationStrings = {
|
||||
'admin.passkey.resetDone.few': 'Odstránené {count} prístupové kľúče',
|
||||
'admin.group.users': 'Používatelia',
|
||||
'admin.group.config': 'Konfigurácia',
|
||||
'admin.group.integration': 'Integrácie',
|
||||
'admin.group.maintenance': 'Údržba',
|
||||
'admin.invite.tripLabel': 'Pridať k ceste (voliteľné)',
|
||||
'admin.invite.tripNone': 'Žiadna cesta',
|
||||
|
||||
@@ -39,7 +39,6 @@ const mailAdmin: TranslationStrings = {
|
||||
'mailAdmin.problem.portInvalid': 'Zadaj port medzi 1 a 65535.',
|
||||
'mailAdmin.problem.templateToken': 'Adresa musí obsahovať {token} pre kód každého používateľa.',
|
||||
'mailAdmin.problem.dailyInvalid': 'Zadaj celé číslo od 0 do 1000.',
|
||||
'mailAdmin.status.title': 'Stav',
|
||||
'mailAdmin.status.lastRead': 'Naposledy prečítané {time}',
|
||||
'mailAdmin.status.never': 'nikdy',
|
||||
'mailAdmin.status.mails': 'E-maily, 24 h',
|
||||
|
||||
Reference in New Issue
Block a user