mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-24 07:41:47 +00:00
v3.1.1 bug fixes (#1228)
* fix(shared-view): render each leg of multi-leg flights correctly The read-only shared view showed the overall trip start/end airports and the first leg's flight number on every leg of a multi-leg flight. The Day Plan already expands legs (each carries __leg), but the renderer ignored it and read flat top-level metadata; the Bookings tab had the same bug. - Day Plan: use __leg for per-leg airline/flight number/route, plus dep-arr time - Bookings tab: list each leg via getFlightLegs() - unique React keys for multi-leg rows Closes #1219 * feat(pdf): add legs to pdf export * fix(demo): skip first-run admin seed in demo mode When DEMO_MODE is on, the demo seeder creates its own admin (admin@trek.app, username "admin") right after the generic seeds run. The first-run admin bootstrap was grabbing username "admin" first, so the demo seeder hit the UNIQUE(username) constraint and aborted before the demo user was ever created - which surfaced as a 500 "Demo user not found" on demo-login. Skip the generic admin bootstrap when demo mode owns the admin account. * fix(docker): ship the encryption-key migration script in the image The production image only copied server/dist, so the documented rotation command `node --import tsx scripts/migrate-encryption.ts` failed inside the container with a module-not-found error - the raw .ts was never present. The script runs via tsx straight from source and only pulls node builtins plus better-sqlite3 (both prod deps), so copying the single file into /app/server/scripts is enough to make the rotation work again. * fix(vacay): keep the mode toolbar above the mobile bottom nav The floating Vacation/Company toolbar was pinned at bottom-3 with z-30, so on mobile it landed in the same band as the fixed bottom nav (z-60) and got hidden behind it - and could scroll out of reach entirely. Pin it above the nav with the shared --bottom-nav-h variable (0px on desktop, so nothing changes there) and reserve matching space below the calendar grid so it never gets swallowed. * fix(dashboard): show the correct reservation date regardless of timezone The upcoming-reservations widget built the date with new Date(reservation_time) .toISOString(), which reinterprets the stored naive local time as UTC and can roll the displayed day forward in non-UTC timezones (e.g. a 23:30 reservation showing the next day). Read the date and time straight from the stored string parts via splitReservationDateTime, and format the time with the shared formatTime helper so it also honours the user's 12h/24h preference. * fix(atlas): cursor-following tooltips and removing countries from search Two related Atlas fixes: - Country tooltips were bound with sticky:false, which anchors them at the feature's bounds centre. For countries with overseas territories (e.g. France) that centre sits far out in the ocean, so the tooltip popped up nowhere near the area being hovered. Make them sticky so they track the cursor. - Selecting an already-visited country from the search bar always opened the "Mark / Bucket" dialog, with no way to remove it. Tiny countries like Vatican City or Singapore are hard to hit on the map, so search was the only way in. Mirror the map-click behaviour: a manually-marked country opens the Remove confirmation, a trip/place-backed one opens its detail. * fix(oidc): keep dots in generated usernames The OIDC username sanitizer stripped dots because they were missing from the allowed character class, so a name claim like "first.last" became "firstlast". Dots are valid usernames (the profile validator already allows ^[a-zA-Z0-9_.-]+$), so add the dot to the sanitizer. * fix(collab): show poll option labels in the UI The poll API formatted each option as { label, voters }, but the React poll component renders opt.text - so every option button came out blank. Emit text alongside label (kept for any other consumer) so options render again. * feat(backup): make the upload size limit configurable The restore upload was capped at a hard-coded 500 MB, so instances whose backup archive (uploads/ included) grew past that got a 413 "File too large" with no way to raise it. Add a BACKUP_UPLOAD_LIMIT_MB env var (default 500, invalid values warn and fall back), documented in .env.example. * feat(costs): create an expense from a booking, fix editing total-only items Replace the inline price + budget-category fields in the Transport and Reservation booking modals with a "Create expense" flow: the modal saves the booking, then opens the full Costs editor prefilled (name + category mapped from the booking type) and linked to the reservation. A booking with a linked expense shows it inline with edit / remove. Also fix the Costs editor so an expense with a recorded total but no payers (transport-derived or pre-rework items) opens with its amount, lets you set the currency, and saves - it previously showed 0 everywhere and could not be saved. Legacy / localized categories now map to the fixed keys, and changing a booking's type keeps its linked expense category in sync (unless it was manually set). - shared: reservation_id on budget create, typeToCostCategory helper, i18n keys - server: createBudgetItem stores reservation_id; keep total_price for payerless items; a booking update no longer wipes its linked expense and syncs the category on type change - client: shared BookingCostsSection, exported ExpenseModal with prefill and an editable total, page-level save-then-open wiring * test(reservations): align syncBudgetOnUpdate unit tests with no-wipe + type-sync The service now leaves a linked expense alone when no budget entry is on the payload (only an explicit total_price 0 deletes it) and syncs the category on a booking type change. Update the unit tests accordingly - the old "price cleared" case passed entry: undefined, which is now a no-op and left a mocked return queued that leaked into the next test. * fix(planner): keep a reservation on its day when edited (#1237) Editing a booking forced its day_id to the globally selected day, which is null when editing from the Book tab - so the booking lost its day and vanished from the Plan. Preserve the reservation own day_id on edit instead. * fix(planner): derive a booking day from its date when none is set (#1237) The client always sends day_id on a reservation update, so the server only derived it from reservation_time when the field was absent. A non-transport booking saved without a selected day (Book tab) therefore got day_id null and vanished from the Plan, even though its date matched a day. Derive the day from reservation_time whenever day_id is null, mirroring create. * fix(planner): let a booking's day follow its date when edited (#1237) Preserving the old day_id on edit left a re-dated booking on its previous start day while end_day_id followed the new date, so it spanned both. Stop sending day_id from the edit modal entirely - the server derives both ends from the booking's date (and keeps the current day when there is no date), so a re-dated booking moves cleanly to the matching day. * fix(atlas): keep the continent breakdown in sync on mark/unmark (#1225) The optimistic mark/unmark updates bumped the country total but never the per-continent counts, so the continent column froze until a full reload. Move the country to continent map into @trek/shared (single source for server and client) and adjust the matching continent count at every optimistic site: the country confirm flow plus the choose / region mark and region unmark handlers. * feat(admin): let admins set a default currency for new users Adds a currency picker to Admin > User Defaults. Stored as the default_currency user-default, so users who have not picked their own currency inherit it in Costs. * fix(atlas): give every sub-national region a distinct code (#1217) geoBoundaries fills shapeISO with the bare country code for some countries (every Spanish region got "ESP", every Chinese "CHN", also Chile/Oman), so marking one region lit up the whole country. build-atlas-geo.mjs now keeps shapeISO only when it is a real "XX-..." subdivision code and otherwise synthesizes a unique per-country id from the region name. Regenerated admin1.geojson.gz: Spain/China/ Chile/Oman now carry distinct region codes (countries with real codes, e.g. Germany, are unchanged). * fix(dashboard): never crash on a malformed reservation date A reservation with an invalid date blanked the whole My Trips page: the old Upcoming widget did new Date(value).toISOString(), which throws "Invalid time value" (fixed in #1222 by reading the string parts). Also guard splitDate so a bad date renders a dash instead of "Invalid Date" or throwing. * fix(airtrail): gate airtrail update behind a user setting, on airtrail update: rebuild payload from fresh data to prevent any data loss * fix(airtrail): add back missing tests * fix(costs): rework the cost panel UX wise and apply prettier on the shared package * chore(prettier) prettier this file * fix(airtrail): don't use cabin class as seat on import When an AirTrail flight has a cabin class but no seat number, the mapper fell back to the class for metadata.seat, so reservations showed e.g. "economy" as the seat. Use only the seat number; leave the seat blank otherwise. The class is still surfaced separately in the import picker. Closes #1246 * fix(airtrail): import scheduled flight times instead of actual AirTrail exposes both scheduled (departureScheduled/arrivalScheduled) and actual (departure/arrival) times. TREK read the actual times, so a delayed or early flight imported the wrong time for planning. Read the scheduled times on import and on poll-sync (both go through mapFlightToReservation); when a flight has no scheduled time, leave the clock blank (date preserved) rather than fabricating 00:00 or falling back to actual. The change-detection hash now tracks the scheduled values, so existing linked reservations re-sync once on the next poll. The opt-in writeback mirrors the read, pushing TREK edits to the scheduled fields so they round-trip. * fix(planner): hydrate per-assignment times when editing a place from the pool Times live per day-assignment, not on the pool place, so reopening a place from the Places panel / inspector showed empty Start/End fields (#1247). The editor now resolves a place's lone assignment when no day is in context and hydrates the fields from it; ambiguous (0 or 2+ days) edits hide the fields instead of showing non-persisting inputs. * fix(mcp): make write tools return client-valid, hydrated entities Audit of all write tools under server/src/mcp/tools (issue #1244 anchor). S1 (broken): - create_budget_item / create_budget_item_with_members now default the split to all trip members when member_ids omitted, so the entry passes the client save-gate instead of being member-less (#1244). - create_transport / update_transport backfill lat/lng/timezone for code-only flight endpoints (NOT NULL columns) and return a clean error for unresolvable endpoints instead of crashing. S2 (under-hydration): set_budget_item_members, create_journey, create_journey_entry, create_packing_bag, bulk_import_packing and update_vacay_plan now return the hydrated shape the matching read/REST route returns; bulk_import widened to accept bag/weight_grams/checked. S3 (parity): check_in_end added to accommodation tools; atlas mark_region_visited echoes the client shape; update_journey_entry/ update_journey_preferences, set_bag_members, set_packing_category_assignees, apply_packing_template return hydrated payloads; set_vacay_color echoes the color. Auth: save_packing_template now requires admin, matching the REST gate. Also refactors server/src/config.ts (JWT-secret handling). Adds getBudgetItem hydrated getter, exports EndpointInput, and MCP regression tests (incl. new tools-transports and tools-journey suites). * fix(mcp): fix ICS/maps/accommodation bugs, add settlement & template tools Bugs: - export_trip_ics: include flights that store times per-endpoint (local_date/local_time) instead of a top-level reservation_time - resolve_maps_url: follow redirects for cid=/share links and fall back to parsing the page body, all SSRF-guarded - link_hotel_accommodation: normalize accommodation_id (TEXT column) to an integer in the reservation read paths so it no longer returns "14.0" Gaps: - packing: save_packing_template returns the new template id; add list_packing_templates (read) and delete_packing_template (admin) - budget: update_budget_item accepts payers/member_ids; clarify create/ update/members descriptions to ask which members share the expense and who paid - budget: add settlement tools — get_settlement_summary, list_settlements, create/update/delete_settlement (budget_edit, mirrors REST + WS events) * chore: bump nodemailer * chore: bump multer --------- Co-authored-by: Maurice <mauriceboe@icloud.com>
This commit is contained in:
+49
-92
@@ -2,8 +2,7 @@ import type { TranslationStrings } from '../types';
|
||||
|
||||
const admin: TranslationStrings = {
|
||||
'admin.notifications.title': 'Oznámení',
|
||||
'admin.notifications.hint':
|
||||
'Vyberte kanál oznámení. Současně může být aktivní pouze jeden.',
|
||||
'admin.notifications.hint': 'Vyberte kanál oznámení. Současně může být aktivní pouze jeden.',
|
||||
'admin.notifications.none': 'Vypnuto',
|
||||
'admin.notifications.email': 'E-mail (SMTP)',
|
||||
'admin.notifications.webhook': 'Webhook',
|
||||
@@ -11,13 +10,11 @@ const admin: TranslationStrings = {
|
||||
'admin.notifications.saved': 'Nastavení oznámení uloženo',
|
||||
'admin.notifications.testWebhook': 'Odeslat testovací webhook',
|
||||
'admin.notifications.testWebhookSuccess': 'Testovací webhook úspěšně odeslán',
|
||||
'admin.notifications.testWebhookFailed':
|
||||
'Odeslání testovacího webhooku se nezdařilo',
|
||||
'admin.notifications.testWebhookFailed': 'Odeslání testovacího webhooku se nezdařilo',
|
||||
'admin.smtp.title': 'E-mail a oznámení',
|
||||
'admin.smtp.hint': 'Konfigurace SMTP pro odesílání e-mailových oznámení.',
|
||||
'admin.smtp.testButton': 'Odeslat testovací e-mail',
|
||||
'admin.webhook.hint':
|
||||
'Odesílat oznámení na externí webhook (Discord, Slack atd.).',
|
||||
'admin.webhook.hint': 'Odesílat oznámení na externí webhook (Discord, Slack atd.).',
|
||||
'admin.smtp.testSuccess': 'Testovací e-mail byl úspěšně odeslán',
|
||||
'admin.smtp.testFailed': 'Odeslání testovacího e-mailu se nezdařilo',
|
||||
'admin.title': 'Administrace',
|
||||
@@ -40,8 +37,7 @@ const admin: TranslationStrings = {
|
||||
'admin.editUser': 'Upravit uživatele',
|
||||
'admin.newPassword': 'Nové heslo',
|
||||
'admin.newPasswordHint': 'Ponechte prázdné pro zachování současného hesla',
|
||||
'admin.deleteUser':
|
||||
'Smazat uživatele „{name}“? Všechny jeho cesty budou trvale smazány.',
|
||||
'admin.deleteUser': 'Smazat uživatele „{name}“? Všechny jeho cesty budou trvale smazány.',
|
||||
'admin.deleteUserTitle': 'Smazat uživatele',
|
||||
'admin.newPasswordPlaceholder': 'Zadejte nové heslo…',
|
||||
'admin.toast.loadError': 'Nepodařilo se načíst data administrace',
|
||||
@@ -52,8 +48,7 @@ const admin: TranslationStrings = {
|
||||
'admin.toast.cannotDeleteSelf': 'Nemůžete smazat svůj vlastní účet',
|
||||
'admin.toast.userCreated': 'Uživatel byl vytvořen',
|
||||
'admin.toast.createError': 'Nepodařilo se vytvořit uživatele',
|
||||
'admin.toast.fieldsRequired':
|
||||
'Uživatelské jméno, e-mail a heslo jsou povinné',
|
||||
'admin.toast.fieldsRequired': 'Uživatelské jméno, e-mail a heslo jsou povinné',
|
||||
'admin.createUser': 'Vytvořit uživatele',
|
||||
'admin.invite.title': 'Pozvánky',
|
||||
'admin.invite.subtitle': 'Vytvářejte jednorázové registrační odkazy',
|
||||
@@ -80,25 +75,20 @@ const admin: TranslationStrings = {
|
||||
'admin.passwordLogin': 'Password Login',
|
||||
'admin.passwordLoginHint': 'Allow users to sign in with email and password',
|
||||
'admin.passwordRegistration': 'Password Registration',
|
||||
'admin.passwordRegistrationHint':
|
||||
'Allow new users to register with email and password',
|
||||
'admin.passwordRegistrationHint': 'Allow new users to register with email and password',
|
||||
'admin.oidcLogin': 'SSO Login',
|
||||
'admin.oidcLoginHint': 'Allow users to sign in with SSO',
|
||||
'admin.oidcRegistration': 'SSO Auto-Provisioning',
|
||||
'admin.oidcRegistrationHint':
|
||||
'Automatically create accounts for new SSO users',
|
||||
'admin.oidcRegistrationHint': 'Automatically create accounts for new SSO users',
|
||||
'admin.envOverrideHint':
|
||||
'Password login settings are controlled by the OIDC_ONLY environment variable and cannot be changed here.',
|
||||
'admin.lockoutWarning': 'At least one login method must remain enabled',
|
||||
'admin.requireMfa': 'Vyžadovat dvoufázové ověření (2FA)',
|
||||
'admin.requireMfaHint':
|
||||
'Uživatelé bez 2FA musí dokončit nastavení v Nastavení před použitím aplikace.',
|
||||
'admin.requireMfaHint': 'Uživatelé bez 2FA musí dokončit nastavení v Nastavení před použitím aplikace.',
|
||||
'admin.apiKeys': 'API klíče',
|
||||
'admin.apiKeysHint':
|
||||
'Volitelné. Povoluje rozšířená data o místech (fotky, počasí).',
|
||||
'admin.apiKeysHint': 'Volitelné. Povoluje rozšířená data o místech (fotky, počasí).',
|
||||
'admin.mapsKey': 'Google Maps API klíč',
|
||||
'admin.mapsKeyHint':
|
||||
'Povinné pro hledání míst. Získáte na console.cloud.google.com',
|
||||
'admin.mapsKeyHint': 'Povinné pro hledání míst. Získáte na console.cloud.google.com',
|
||||
'admin.mapsKeyHintLong':
|
||||
'Bez API klíče se pro hledání používá OpenStreetMap. S Google klíčem lze načítat fotky, hodnocení a otevírací dobu.',
|
||||
'admin.recommended': 'Doporučeno',
|
||||
@@ -109,21 +99,17 @@ const admin: TranslationStrings = {
|
||||
'admin.keyInvalid': 'Neplatný',
|
||||
'admin.keySaved': 'API klíče byly uloženy',
|
||||
'admin.oidcTitle': 'Jednotné přihlášení (OIDC)',
|
||||
'admin.oidcSubtitle':
|
||||
'Povolit přihlášení přes externí poskytovatele (Google, Apple, Authentik, Keycloak).',
|
||||
'admin.oidcSubtitle': 'Povolit přihlášení přes externí poskytovatele (Google, Apple, Authentik, Keycloak).',
|
||||
'admin.oidcDisplayName': 'Zobrazované jméno',
|
||||
'admin.oidcIssuer': 'URL vydavatele (Issuer)',
|
||||
'admin.oidcIssuerHint':
|
||||
'OpenID Connect Issuer URL, např. https://accounts.google.com',
|
||||
'admin.oidcIssuerHint': 'OpenID Connect Issuer URL, např. https://accounts.google.com',
|
||||
'admin.oidcSaved': 'Konfigurace OIDC uložena',
|
||||
'admin.oidcOnlyMode': 'Zakázat ověřování heslem',
|
||||
'admin.oidcOnlyModeHint':
|
||||
'Pokud je zapnuto, je povolen pouze SSO login. Registrace i přihlášení heslem budou zablokovány.',
|
||||
'admin.fileTypes': 'Povolené typy souborů',
|
||||
'admin.fileTypesHint':
|
||||
'Nastavte, které typy souborů mohou uživatelé nahrávat.',
|
||||
'admin.fileTypesFormat':
|
||||
'Přípony oddělené čárkou (např. jpg,png,pdf,doc). Použijte * pro všechny typy.',
|
||||
'admin.fileTypesHint': 'Nastavte, které typy souborů mohou uživatelé nahrávat.',
|
||||
'admin.fileTypesFormat': 'Přípony oddělené čárkou (např. jpg,png,pdf,doc). Použijte * pro všechny typy.',
|
||||
'admin.fileTypesSaved': 'Nastavení souborů uloženo',
|
||||
'admin.placesPhotos.title': 'Fotografie míst',
|
||||
'admin.placesPhotos.subtitle':
|
||||
@@ -135,8 +121,7 @@ const admin: TranslationStrings = {
|
||||
'admin.placesDetails.subtitle':
|
||||
'Načítání podrobných informací o místě (hodiny, hodnocení, web) z Google Places API. Zakázáním ušetříte kvótu API.',
|
||||
'admin.bagTracking.title': 'Sledování zavazadel',
|
||||
'admin.bagTracking.subtitle':
|
||||
'Povolit váhu a přiřazení k zavazadlům u položek balení',
|
||||
'admin.bagTracking.subtitle': 'Povolit váhu a přiřazení k zavazadlům u položek balení',
|
||||
'admin.collab.chat.title': 'Chat',
|
||||
'admin.collab.chat.subtitle': 'Zasílání zpráv v reálném čase',
|
||||
'admin.collab.notes.title': 'Poznámky',
|
||||
@@ -155,11 +140,9 @@ const admin: TranslationStrings = {
|
||||
'admin.defaultSettings.resetToBuiltIn': 'obnovit',
|
||||
'admin.tabs.templates': 'Šablony seznamů',
|
||||
'admin.packingTemplates.title': 'Šablony pro balení',
|
||||
'admin.packingTemplates.subtitle':
|
||||
'Vytvářejte opakovaně použitelné seznamy pro své cesty',
|
||||
'admin.packingTemplates.subtitle': 'Vytvářejte opakovaně použitelné seznamy pro své cesty',
|
||||
'admin.packingTemplates.create': 'Nová šablona',
|
||||
'admin.packingTemplates.namePlaceholder':
|
||||
'Název šablony (např. Dovolená u moře)',
|
||||
'admin.packingTemplates.namePlaceholder': 'Název šablony (např. Dovolená u moře)',
|
||||
'admin.packingTemplates.empty': 'Zatím nejsou vytvořeny žádné šablony',
|
||||
'admin.packingTemplates.items': 'položek',
|
||||
'admin.packingTemplates.categories': 'kategorií',
|
||||
@@ -177,26 +160,19 @@ const admin: TranslationStrings = {
|
||||
'admin.addons.title': 'Doplňky',
|
||||
'admin.addons.subtitle': 'Zapněte nebo vypněte funkce a přizpůsobte si TREK.',
|
||||
'admin.addons.catalog.memories.name': 'Fotky (Immich)',
|
||||
'admin.addons.catalog.memories.description':
|
||||
'Sdílejte cestovní fotky přes vaši instanci Immich',
|
||||
'admin.addons.catalog.memories.description': 'Sdílejte cestovní fotky přes vaši instanci Immich',
|
||||
'admin.addons.catalog.packing.name': 'Seznamy',
|
||||
'admin.addons.catalog.packing.description':
|
||||
'Balicí seznamy a úkoly pro vaše výlety',
|
||||
'admin.addons.catalog.packing.description': 'Balicí seznamy a úkoly pro vaše výlety',
|
||||
'admin.addons.catalog.budget.name': 'Rozpočet',
|
||||
'admin.addons.catalog.budget.description':
|
||||
'Sledování výdajů a plánování rozpočtu cesty',
|
||||
'admin.addons.catalog.budget.description': 'Sledování výdajů a plánování rozpočtu cesty',
|
||||
'admin.addons.catalog.documents.name': 'Dokumenty',
|
||||
'admin.addons.catalog.documents.description':
|
||||
'Ukládání a správa cestovních dokladů',
|
||||
'admin.addons.catalog.documents.description': 'Ukládání a správa cestovních dokladů',
|
||||
'admin.addons.catalog.vacay.name': 'Dovolená (Vacay)',
|
||||
'admin.addons.catalog.vacay.description':
|
||||
'Osobní plánovač dovolené s kalendářem',
|
||||
'admin.addons.catalog.vacay.description': 'Osobní plánovač dovolené s kalendářem',
|
||||
'admin.addons.catalog.atlas.name': 'Atlas',
|
||||
'admin.addons.catalog.atlas.description':
|
||||
'Mapa světa s navštívenými zeměmi a statistikami',
|
||||
'admin.addons.catalog.atlas.description': 'Mapa světa s navštívenými zeměmi a statistikami',
|
||||
'admin.addons.catalog.collab.name': 'Spolupráce',
|
||||
'admin.addons.catalog.collab.description':
|
||||
'Poznámky v reálném čase, hlasování a chat pro plánování',
|
||||
'admin.addons.catalog.collab.description': 'Poznámky v reálném čase, hlasování a chat pro plánování',
|
||||
'admin.addons.enabled': 'Povoleno',
|
||||
'admin.addons.disabled': 'Zakázáno',
|
||||
'admin.addons.type.trip': 'Cesta',
|
||||
@@ -204,20 +180,16 @@ const admin: TranslationStrings = {
|
||||
'admin.addons.type.integration': 'Integrace',
|
||||
'admin.addons.tripHint': 'Dostupné jako karta v rámci každé cesty',
|
||||
'admin.addons.globalHint': 'Dostupné jako samostatná sekce v hlavní navigaci',
|
||||
'admin.addons.integrationHint':
|
||||
'Backendové služby a API integrace bez vlastní stránky',
|
||||
'admin.addons.integrationHint': 'Backendové služby a API integrace bez vlastní stránky',
|
||||
'admin.addons.toast.updated': 'Doplněk byl aktualizován',
|
||||
'admin.addons.toast.error': 'Aktualizace doplňku se nezdařila',
|
||||
'admin.addons.noAddons': 'Žádné doplňky nejsou k dispozici',
|
||||
'admin.addons.catalog.mcp.name': 'MCP',
|
||||
'admin.addons.catalog.mcp.description':
|
||||
'Model Context Protocol pro integraci AI asistentů',
|
||||
'admin.addons.subtitleBefore':
|
||||
'Zapněte nebo vypněte funkce a přizpůsobte si ',
|
||||
'admin.addons.catalog.mcp.description': 'Model Context Protocol pro integraci AI asistentů',
|
||||
'admin.addons.subtitleBefore': 'Zapněte nebo vypněte funkce a přizpůsobte si ',
|
||||
'admin.addons.subtitleAfter': '.',
|
||||
'admin.tabs.audit': 'Audit',
|
||||
'admin.audit.subtitle':
|
||||
'Bezpečnostní a administrátorské události (zálohy, uživatelé, 2FA, nastavení).',
|
||||
'admin.audit.subtitle': 'Bezpečnostní a administrátorské události (zálohy, uživatelé, 2FA, nastavení).',
|
||||
'admin.audit.empty': 'Zatím žádné záznamy auditu.',
|
||||
'admin.audit.refresh': 'Obnovit',
|
||||
'admin.audit.loadMore': 'Načíst další',
|
||||
@@ -230,8 +202,7 @@ const admin: TranslationStrings = {
|
||||
'admin.audit.col.details': 'Detaily',
|
||||
'admin.tabs.mcpTokens': 'MCP přístup',
|
||||
'admin.mcpTokens.title': 'MCP přístup',
|
||||
'admin.mcpTokens.subtitle':
|
||||
'Správa OAuth relací a API tokenů všech uživatelů',
|
||||
'admin.mcpTokens.subtitle': 'Správa OAuth relací a API tokenů všech uživatelů',
|
||||
'admin.mcpTokens.sectionTitle': 'API tokeny',
|
||||
'admin.mcpTokens.owner': 'Vlastník',
|
||||
'admin.mcpTokens.tokenName': 'Název tokenu',
|
||||
@@ -252,8 +223,7 @@ const admin: TranslationStrings = {
|
||||
'admin.oauthSessions.created': 'Vytvořeno',
|
||||
'admin.oauthSessions.empty': 'Žádné aktivní OAuth relace',
|
||||
'admin.oauthSessions.revokeTitle': 'Zrušit relaci',
|
||||
'admin.oauthSessions.revokeMessage':
|
||||
'Tato OAuth relace bude okamžitě zrušena. Klient ztratí přístup k MCP.',
|
||||
'admin.oauthSessions.revokeMessage': 'Tato OAuth relace bude okamžitě zrušena. Klient ztratí přístup k MCP.',
|
||||
'admin.oauthSessions.revokeSuccess': 'Relace zrušena',
|
||||
'admin.oauthSessions.revokeError': 'Nepodařilo se zrušit relaci',
|
||||
'admin.oauthSessions.loadError': 'Nepodařilo se načíst OAuth relace',
|
||||
@@ -276,27 +246,22 @@ const admin: TranslationStrings = {
|
||||
'admin.weather.forecast': 'Předpověď na 16 dní',
|
||||
'admin.weather.forecastDesc': 'Dříve 5 dní (OpenWeatherMap)',
|
||||
'admin.weather.climate': 'Historická klimatická data',
|
||||
'admin.weather.climateDesc':
|
||||
'Průměry za posledních 85 let pro dny mimo 16denní předpověď',
|
||||
'admin.weather.climateDesc': 'Průměry za posledních 85 let pro dny mimo 16denní předpověď',
|
||||
'admin.weather.requests': '10 000 požadavků denně',
|
||||
'admin.weather.requestsDesc': 'Zdarma, bez nutnosti klíče',
|
||||
'admin.weather.locationHint':
|
||||
'Počasí se určuje podle prvního místa se souřadnicemi v daném dni.',
|
||||
'admin.weather.locationHint': 'Počasí se určuje podle prvního místa se souřadnicemi v daném dni.',
|
||||
'admin.update.available': 'Dostupná aktualizace',
|
||||
'admin.update.text':
|
||||
'TREK {version} je k dispozici. Aktuálně používáte verzi {current}.',
|
||||
'admin.update.text': 'TREK {version} je k dispozici. Aktuálně používáte verzi {current}.',
|
||||
'admin.update.button': 'Zobrazit na GitHubu',
|
||||
'admin.update.install': 'Instalovat aktualizaci',
|
||||
'admin.update.confirmTitle': 'Instalovat aktualizaci?',
|
||||
'admin.update.confirmText':
|
||||
'TREK bude aktualizován z verze {current} na {version}. Server se poté automaticky restartuje.',
|
||||
'admin.update.dataInfo':
|
||||
'Všechna vaše data (cesty, uživatelé, API klíče, soubory) budou zachována.',
|
||||
'admin.update.dataInfo': 'Všechna vaše data (cesty, uživatelé, API klíče, soubory) budou zachována.',
|
||||
'admin.update.warning': 'Aplikace bude během restartu krátce nedostupná.',
|
||||
'admin.update.confirm': 'Aktualizovat nyní',
|
||||
'admin.update.installing': 'Aktualizace probíhá…',
|
||||
'admin.update.success':
|
||||
'Aktualizace byla nainstalována! Server se restartuje…',
|
||||
'admin.update.success': 'Aktualizace byla nainstalována! Server se restartuje…',
|
||||
'admin.update.failed': 'Aktualizace se nezdařila',
|
||||
'admin.update.backupHint': 'Před aktualizací doporučujeme vytvořit zálohu.',
|
||||
'admin.update.backupLink': 'Přejít na zálohování',
|
||||
@@ -308,18 +273,14 @@ const admin: TranslationStrings = {
|
||||
'admin.notifications.emailPanel.title': 'Email (SMTP)',
|
||||
'admin.notifications.webhookPanel.title': 'Webhook',
|
||||
'admin.notifications.inappPanel.title': 'In-App',
|
||||
'admin.notifications.inappPanel.hint':
|
||||
'In-app oznámení jsou vždy aktivní a nelze je globálně vypnout.',
|
||||
'admin.notifications.inappPanel.hint': 'In-app oznámení jsou vždy aktivní a nelze je globálně vypnout.',
|
||||
'admin.notifications.adminWebhookPanel.title': 'Admin webhook',
|
||||
'admin.notifications.adminWebhookPanel.hint':
|
||||
'Tento webhook se používá výhradně pro admin oznámení (např. upozornění na verze). Je nezávislý na uživatelských webhooků a odesílá automaticky, pokud je nastavena URL.',
|
||||
'admin.notifications.adminWebhookPanel.saved': 'URL admin webhooku uložena',
|
||||
'admin.notifications.adminWebhookPanel.testSuccess':
|
||||
'Testovací webhook byl úspěšně odeslán',
|
||||
'admin.notifications.adminWebhookPanel.testFailed':
|
||||
'Testovací webhook selhal',
|
||||
'admin.notifications.adminWebhookPanel.alwaysOnHint':
|
||||
'Admin webhook odesílá automaticky, pokud je nastavena URL',
|
||||
'admin.notifications.adminWebhookPanel.testSuccess': 'Testovací webhook byl úspěšně odeslán',
|
||||
'admin.notifications.adminWebhookPanel.testFailed': 'Testovací webhook selhal',
|
||||
'admin.notifications.adminWebhookPanel.alwaysOnHint': 'Admin webhook odesílá automaticky, pokud je nastavena URL',
|
||||
'admin.notifications.ntfy': 'Ntfy',
|
||||
'admin.ntfy.hint':
|
||||
'Umožňuje uživatelům nakonfigurovat vlastní témata ntfy pro přijímání push notifikací. Níže nastavte výchozí server pro předvyplnění nastavení uživatelů.',
|
||||
@@ -335,29 +296,23 @@ const admin: TranslationStrings = {
|
||||
'admin.notifications.adminNtfyPanel.serverPlaceholder': 'https://ntfy.sh',
|
||||
'admin.notifications.adminNtfyPanel.topicLabel': 'Admin téma',
|
||||
'admin.notifications.adminNtfyPanel.topicPlaceholder': 'trek-admin-alerts',
|
||||
'admin.notifications.adminNtfyPanel.tokenLabel':
|
||||
'Přístupový token (volitelné)',
|
||||
'admin.notifications.adminNtfyPanel.tokenCleared':
|
||||
'Přístupový token admina byl vymazán',
|
||||
'admin.notifications.adminNtfyPanel.tokenLabel': 'Přístupový token (volitelné)',
|
||||
'admin.notifications.adminNtfyPanel.tokenCleared': 'Přístupový token admina byl vymazán',
|
||||
'admin.notifications.adminNtfyPanel.saved': 'Nastavení admin Ntfy uloženo',
|
||||
'admin.notifications.adminNtfyPanel.test': 'Odeslat testovací Ntfy',
|
||||
'admin.notifications.adminNtfyPanel.testSuccess':
|
||||
'Testovací Ntfy bylo úspěšně odesláno',
|
||||
'admin.notifications.adminNtfyPanel.testSuccess': 'Testovací Ntfy bylo úspěšně odesláno',
|
||||
'admin.notifications.adminNtfyPanel.testFailed': 'Testovací Ntfy selhalo',
|
||||
'admin.notifications.adminNtfyPanel.alwaysOnHint':
|
||||
'Admin Ntfy odesílá vždy, když je nakonfigurováno téma',
|
||||
'admin.notifications.adminNtfyPanel.alwaysOnHint': 'Admin Ntfy odesílá vždy, když je nakonfigurováno téma',
|
||||
'admin.notifications.adminNotificationsHint':
|
||||
'Nastavte, které kanály doručují admin oznámení (např. upozornění na verze). Webhook odesílá automaticky, pokud je nastavena URL admin webhooku.',
|
||||
'admin.notifications.tripReminders.title': 'Připomínky výletů',
|
||||
'admin.notifications.tripReminders.hint':
|
||||
'Odešle upozornění před začátkem výletu (vyžaduje nastavené dny připomínky na výletu).',
|
||||
'admin.notifications.tripReminders.enabled': 'Připomínky výletů aktivovány',
|
||||
'admin.notifications.tripReminders.disabled':
|
||||
'Připomínky výletů deaktivovány',
|
||||
'admin.notifications.tripReminders.disabled': 'Připomínky výletů deaktivovány',
|
||||
'admin.tabs.notifications': 'Oznámení',
|
||||
'admin.addons.catalog.journey.name': 'Cestovní deník',
|
||||
'admin.addons.catalog.journey.description':
|
||||
'Sledování cest a cestovní deník s odbaveními, fotkami a denními příběhy',
|
||||
'admin.addons.catalog.journey.description': 'Sledování cest a cestovní deník s odbaveními, fotkami a denními příběhy',
|
||||
'admin.passkey.title': 'Přihlášení přístupovým klíčem',
|
||||
'admin.passkey.cardHint':
|
||||
'Umožněte uživatelům přihlašovat se pomocí přístupových klíčů (WebAuthn). Ve výchozím nastavení vypnuto.',
|
||||
@@ -378,11 +333,13 @@ const admin: TranslationStrings = {
|
||||
'admin.passkey.resetConfirm': 'Odebrat všechny přístupové klíče uživatele {name}?',
|
||||
'admin.passkey.resetDone': 'Odebráno {count} přístupových klíčů',
|
||||
'admin.defaultSettings.mapProvider': 'Mapový engine',
|
||||
'admin.defaultSettings.mapProviderHint': 'Výchozí mapa pro všechny uživatele na této instanci. Každý uživatel ji může i nadále změnit ve svém vlastním nastavení.',
|
||||
'admin.defaultSettings.mapProviderHint':
|
||||
'Výchozí mapa pro všechny uživatele na této instanci. Každý uživatel ji může i nadále změnit ve svém vlastním nastavení.',
|
||||
'admin.defaultSettings.providerLeaflet': 'Standardní (zdarma)',
|
||||
'admin.defaultSettings.providerMapbox': 'Mapbox (3D)',
|
||||
'admin.defaultSettings.mapboxToken': 'Sdílený token Mapbox',
|
||||
'admin.defaultSettings.mapboxTokenHint': 'Použije se pro každého uživatele, který nezadal vlastní token — takže celá instance získá Mapbox, aniž byste klíč sdíleli s každým zvlášť. Ukládá se šifrovaně.',
|
||||
'admin.defaultSettings.mapboxTokenHint':
|
||||
'Použije se pro každého uživatele, který nezadal vlastní token — takže celá instance získá Mapbox, aniž byste klíč sdíleli s každým zvlášť. Ukládá se šifrovaně.',
|
||||
'admin.defaultSettings.mapboxStyle': 'Styl mapy',
|
||||
'admin.defaultSettings.mapboxStylePlaceholder': 'Vyberte styl…',
|
||||
'admin.defaultSettings.mapbox3d': '3D budovy & terén',
|
||||
|
||||
Reference in New Issue
Block a user