mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-27 07:07:31 +00:00
a7adef5353
- Admin settings (desktop and phone, self-hosted only): the instance switch,
how mail arrives (IMAP or a signed webhook) with its fields, the address
template, the AI allowance per person and day, a connection test and the
status in counts. Changed fields only are saved; secrets stay masked.
- The review mark of an imported booking takes its mark off: the pill in the
desktop dialog and a row in the phone's transport sheet ('Looks right'),
through the ordinary booking update. Its hint no longer speaks of airports.
- The inbox follows mailInbox:changed and mailInbox:settings, and
?inbox=mail (the 'bookings waiting' notification) opens it.
- mailIngestRepo: the online-only path the views take, answers parsed
against the shared contracts.
- Dropped 'read with AI' and the unused mail-review contract: the server
reads a passing AI failure again on its own.
- mailInbox, mailAdmin and the new reservation, settings and notification
strings in all 28 locales; the pending notice is a plural group.
- The live flight line on the booking cards is one of the card's fields,
full width on the phone; the phone's live card keeps its map to the middle.
- Admin flight and mail cards sit in the left column.
47 lines
2.4 KiB
TypeScript
47 lines
2.4 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.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.title': 'Status',
|
||
'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;
|