mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-14 00:01:03 +00:00
94ac7673a5
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.
52 lines
3.0 KiB
TypeScript
52 lines
3.0 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
||
|
||
const mailAdmin: TranslationStrings = {
|
||
'mailAdmin.title': 'Booking mail import',
|
||
'mailAdmin.hint': 'Forwarded booking confirmations become bookings in the right trip.',
|
||
'mailAdmin.enabled': 'Import booking mails',
|
||
'mailAdmin.enabledHint': 'Gives everyone on this install a forwarding address. Off, no address takes mail.',
|
||
'mailAdmin.transport.label': 'How mail arrives',
|
||
'mailAdmin.transport.off': 'Upload only',
|
||
'mailAdmin.transport.imap': 'IMAP mailbox',
|
||
'mailAdmin.transport.webhook': 'Webhook',
|
||
'mailAdmin.transport.offInfo':
|
||
'No mailbox needed: people upload a saved mail as an .eml file in their settings, and TREK reads it just the same. Good for trying it out.',
|
||
'mailAdmin.transport.imapInfo':
|
||
'TREK looks into a mailbox every two minutes and picks up new mails. Use a mailbox of its own that takes plus addresses (trek+…@your-domain), not a personal one: read mails move on to TREK/processed.',
|
||
'mailAdmin.transport.webhookInfo':
|
||
'A mail service, such as a Cloudflare Email Worker, hands every mail straight to TREK and signs it with the secret below, so nobody else can slip mails in. For setups without a mailbox.',
|
||
'mailAdmin.aiDaily': 'AI mails per person and day',
|
||
'mailAdmin.aiDailyHint': 'Above it, only machine-readable booking data is read.',
|
||
'mailAdmin.template': 'Address template',
|
||
'mailAdmin.templateHint': 'The forwarding address, with {token} where each person’s code goes.',
|
||
'mailAdmin.imap.host': 'Server',
|
||
'mailAdmin.imap.port': 'Port',
|
||
'mailAdmin.imap.tls': 'Encryption',
|
||
'mailAdmin.imap.user': 'User',
|
||
'mailAdmin.imap.pass': 'Password',
|
||
'mailAdmin.imap.mailbox': 'Folder',
|
||
'mailAdmin.imap.mailboxHint': 'Read mails move on to TREK/processed.',
|
||
'mailAdmin.webhook.secret': 'Signing secret',
|
||
'mailAdmin.webhook.secretHint':
|
||
'At least 32 characters; the sender signs every mail with it. Empty switches the webhook off.',
|
||
'mailAdmin.inboundUrl': 'Webhook address',
|
||
'mailAdmin.inboundUrlHint': 'Your mail service posts each mail here, raw and signed.',
|
||
'mailAdmin.copyUrl': 'Copy address',
|
||
'mailAdmin.envHint': 'Environment variables (MAIL_INGEST_*) win over these fields.',
|
||
'mailAdmin.loadError': 'The mail import settings could not be loaded.',
|
||
'mailAdmin.problem.secretShort': 'The secret needs at least 32 characters.',
|
||
'mailAdmin.problem.portInvalid': 'Enter a port between 1 and 65535.',
|
||
'mailAdmin.problem.templateToken': 'The address needs {token} for each person’s code.',
|
||
'mailAdmin.problem.dailyInvalid': 'Enter a whole number from 0 to 1000.',
|
||
'mailAdmin.status.lastRead': 'Last read {time}',
|
||
'mailAdmin.status.never': 'never',
|
||
'mailAdmin.status.mails': 'Mails, 24 h',
|
||
'mailAdmin.status.added': 'Added on their own',
|
||
'mailAdmin.status.waiting': 'Waiting',
|
||
'mailAdmin.status.failed': 'Failed',
|
||
'mailAdmin.test.run': 'Test connection',
|
||
'mailAdmin.test.ok': 'Connected',
|
||
'mailAdmin.test.failed': 'No connection',
|
||
};
|
||
export default mailAdmin;
|