Merge remote-tracking branch 'origin/dev' into pr-685
# Conflicts: # lib/l10n/app_localizations_sk.dart # untranslated.json
This commit is contained in:
commit
024198106f
121 files changed
+13710
-1602
No files matched your search
@@ -163,7 +163,7 @@ Maintains an in-memory LRU cache of up to 50 contacts, each with up to 100 route
|
||||
Each route keeps delivery and failure counts that fade over time (half their weight per day, at most 16 recent results). For each send attempt a route is chosen by Thompson sampling over those counts, adjusted slightly for speed and for what the radio currently hears. There are no user-tunable weights. A route is deleted only when it keeps failing and hasn't delivered for a week. Flood deliveries that receive an ACK credit the specific return path. Details: [Auto route selection](routing-paths.md#auto-route-selection).
|
||||
|
||||
Used internally for:
|
||||
- **Auto route rotation**: Picks a route for each attempt; retries usually move to a different route, and the last attempt floods
|
||||
- **Auto route rotation**: Picks a route for each direct attempt; retries usually move to a different route, then the flood attempts run
|
||||
- **Flood statistics**: Tracks flood deliveries and failures
|
||||
|
||||
---
|
||||
@@ -174,16 +174,16 @@ Used internally for:
|
||||
Handles reliable delivery of outgoing direct messages:
|
||||
1. Assigns a UUID and sends immediately. Only one message per contact can be in-flight at a time (avoids overflowing the firmware's 8-entry ACK table); subsequent messages are queued
|
||||
2. Listens for ACK frames matched via SHA-256 hash of `[timestamp][attempt][text][sender_pubkey]`
|
||||
3. On timeout, retries with exponential backoff: `1000 × 2^retryCount` ms (1s, 2s, 4s, 8s...)
|
||||
4. Each retry may use a different path (via path history diversity window)
|
||||
5. After max retries: marks failed but keeps a **30-second grace window** during which a late ACK can still resolve the message to "delivered". Optionally clears the contact's path
|
||||
3. On timeout, retries with exponential backoff: `1000 × 2^retryCount` ms (1s, 2s, 4s, 8s...), capped at 32 seconds
|
||||
4. Each direct retry may use a different path (via path history diversity window) when auto route rotation is on
|
||||
5. After the configured direct and flood attempts: marks failed but keeps a **30-second grace window** during which a late ACK can still resolve the message to "delivered". Optionally clears the contact's path
|
||||
6. Reports RTT and path data for quality learning
|
||||
7. Maintains an ACK hash history (last 50 entries) to handle duplicate ACKs
|
||||
|
||||
### Configurable Settings (App Settings → Messaging)
|
||||
- Max retries (2–10, default 5)
|
||||
### Configurable Settings (App Settings → Routing)
|
||||
- Direct attempts (0–15, default 4) and flood attempts (0–10, default 1), set separately from auto route rotation
|
||||
- Clear path on max retry (on/off)
|
||||
- Auto route rotation with weight parameters
|
||||
- Auto route rotation
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ Messages also show a region label when known, independently of message tracing.
|
||||
|
||||
### Message Types in Chat
|
||||
|
||||
- **Plain text** with linkified URLs
|
||||
- **Plain text** with linkified URLs and interactive decimal GPS coordinates (tap to open the **Location** map, long-press for **Copy location** / **Open in maps**; see [Inline GPS Coordinates](chat-and-messaging.md#inline-gps-coordinates))
|
||||
- **GIFs** (`g:{gifId}`) rendered inline via Giphy CDN
|
||||
- **Location pins** (`m:{lat},{lon}|{label}|`) shown as tappable location cards
|
||||
- **Mesh images** sent as GRP_DATA chunks and reconstructed locally ([setup and limitations](image-messages.md))
|
||||
@@ -128,7 +128,7 @@ The app bar overflow menu (⋮) has **Filter messages in this channel** (shown w
|
||||
|
||||
### Channel Auto-Resend
|
||||
|
||||
With **Resend channel messages until they travel far enough** on (App Settings → Messaging), the app waits after each channel send and checks how far the message was heard repeated. If no repeat reached the required hop count, it sends the message again, up to the configured number of times.
|
||||
With **Resend channel messages until they travel far enough** on (App Settings → Routing), the app waits after each channel send and checks how far the message was heard repeated. If no repeat reached the required hop count, it sends the message again, up to the configured number of times.
|
||||
|
||||
Where your radio only hears nearby repeaters, turn on **Also count different nearby repeaters**: the message then also counts as sent once the required number of *different* first-hop repeaters have repeated it, across all attempts. Your own radio's echo and zero-hop echoes don't count.
|
||||
|
||||
@@ -144,6 +144,8 @@ Where your radio only hears nearby repeaters, turn on **Also count different nea
|
||||
| Mark as Unread | Incoming messages only | Marks this message and all subsequent incoming messages as unread |
|
||||
| Delete | All messages | Removes locally (not from mesh) |
|
||||
|
||||
Long-pressing directly on a detected GPS coordinate opens the coordinate action sheet (**Copy location** and **Open in maps**) instead of this message menu; long-press non-coordinate text in the message (or right-click on desktop) for channel message actions.
|
||||
|
||||
## Communities
|
||||
|
||||
Communities are a layer above channels that provide a private namespace.
|
||||
|
||||
@@ -35,7 +35,7 @@ Below the app bar, above the messages, a strip shows **Compression: Off**, **SMA
|
||||
- **Incoming messages**: Left-aligned, grey background with a colored avatar (initial letter or first emoji of sender name; color is deterministic from a hash of the sender name)
|
||||
- Long-press a message and choose **Bookmark** to show a yellow bookmark on the bubble. **Show bookmarks** in the chat menu toggles a filter for bookmarked messages; use **Bookmarks** in the Channels screen menu to browse saved messages, including those from deleted contacts or channels. From the bookmarks list, copy a message with its copy button. It is ordered oldest-to-newest and opens at the newest message. The Export screen can save or share a dated Markdown file, grouped by contact and then channel, with linked URLs and URL-image embeds. Links remain tappable, and supported URL-image previews are shown when **Load images from links** is enabled in App Settings.
|
||||
- Bubble width capped at 72% of screen width
|
||||
- Hyperlinks rendered as tappable green underlined text
|
||||
- Hyperlinks rendered as tappable underlined text; inline decimal GPS coordinates are rendered as bold underlined links (see [Inline GPS Coordinates](#inline-gps-coordinates))
|
||||
- Message text follows the system font size (Android/iOS accessibility text size); pinch-to-zoom scales on top of it
|
||||
- **Pinch-to-zoom**: Two-finger zoom (0.8x–1.8x) and double-tap to reset
|
||||
- **Jump to bottom**: Floating button appears when scrolled away from the bottom
|
||||
@@ -61,12 +61,40 @@ The composer is a rounded bubble at the bottom of the chat with one round button
|
||||
|
||||
| Type | Wire Format | Display |
|
||||
|---|---|---|
|
||||
| Plain text | Raw UTF-8 string | Inline text with link detection |
|
||||
| Plain text | Raw UTF-8 string | Inline text with URL and decimal coordinate detection |
|
||||
| URL image preview | Image URL in text (per-contact opt-in; requires internet) | Downloaded inline preview |
|
||||
| GIF | `g:<giphy-id>` | Inline GIF image from Giphy CDN |
|
||||
| Location pin | `m:<lat>,<lon>\|<label>\|...` | Location icon + label; tap to open map |
|
||||
| Reaction | `r:<hash>:<emoji-index>` | Applied to target message as emoji pill |
|
||||
|
||||
## Inline GPS Coordinates
|
||||
|
||||
Plain-text messages in direct chats, room chats, channel chats, and saved bookmarks (including translated text and shown originals) automatically detect inline decimal GPS coordinates.
|
||||
|
||||
### Supported Format
|
||||
|
||||
- **Decimal `lat, lon` pairs**: Matches two decimal numbers separated by a comma with optional spaces or tabs after the comma (for example `37.7749, -122.4194` or `-33.86882,151.20929`). Each number may include a leading `+` or `-` sign.
|
||||
- **WGS84 bounds**: Latitude must be between `-90.0` and `90.0` and longitude between `-180.0` and `180.0` (inclusive).
|
||||
- **Decimal requirement**: Both latitude and longitude must contain a decimal point with digits on both sides. Plain integer pairs (`10, 20`) and mixed integer/decimal pairs (`37, -122.4194`) are ignored.
|
||||
- **Non-coordinate exclusions**: Version numbers (`1.2.3, 4.5` or `1.2, 3.4.5`), numbers attached to letters, underscores, or extra signs (`v1.2,3.4`, `id_37.7749,-122.4194`), and coordinates inside URLs, email addresses, or `geo:` URIs remain normal text or standard web links. Surrounding sentence punctuation such as `(37.7749, -122.4194)` or a trailing period (`38.722,-9.139.`) is allowed without breaking detection.
|
||||
|
||||
### Tap and Long-Press Behavior
|
||||
|
||||
- **Tap**: Opens a dedicated full-screen **Location** map centered on that coordinate at zoom level 15 (zoom range 2–18) with a pin marker and a bottom label card showing the matched coordinate text. Map controls provide **Zoom in** (`+`), **Zoom out** (`-`), and **Center map** buttons (plus arrow/WASD pan and R/F zoom keys on desktop), and the app bar provides **Copy location** and **Open in maps**. Pressing Back returns to the exact same message scroll position. Like the main map, cached tiles work offline while uncached tiles require internet.
|
||||
- **Long-press**: Opens a coordinate action sheet with **Copy location** (copies the matched coordinate text to the clipboard) and **Open in maps**, instead of the message bubble context menu. Long-pressing non-coordinate text in the same message (or right-clicking on desktop) still opens the normal message actions menu.
|
||||
|
||||
### Open in Maps Platform Behavior
|
||||
|
||||
**Open in maps** launches an external map application or browser tab depending on the platform:
|
||||
|
||||
| Platform | Target launched |
|
||||
|---|---|
|
||||
| Android | `geo:<lat>,<lon>?q=<lat>,<lon>` (system default maps app) |
|
||||
| iOS, macOS | `https://maps.apple.com/?ll=<lat>,<lon>&q=<lat>,<lon>` (Apple Maps) |
|
||||
| Linux, Windows, Web | `https://www.openstreetmap.org/?mlat=<lat>,<lon>#map=16/<lat>/<lon>` (OpenStreetMap in default browser) |
|
||||
|
||||
Launching fails with a snackbar if no maps app or web browser is available to handle the URI.
|
||||
|
||||
## Sharing Contacts
|
||||
|
||||
A contact can be shared in any direct or channel chat. It is sent as an ordinary text message whose whole text is `<PUBKEYHEX:TYPE:NAME>` (64-hex-character public key, advert type 1 Companion / 2 Repeater / 3 Room / 4 Sensor, then the name, which may contain colons). This is the same format the official MeshCore app uses, so shares work in both directions.
|
||||
@@ -111,11 +139,11 @@ When a direct message is sent:
|
||||
1. The app computes an expected ACK hash: `SHA256([timestamp][attempt][text][selfPubKey])[0:4]` — matching the firmware's hash calculation. If SMAZ compression is enabled, the compressed text (not the original) is hashed
|
||||
2. On device acknowledgment (`RESP_CODE_SENT`), the message transitions to "sent" and a timeout timer starts. If that acknowledgment never arrives (for example a dropped BLE notification), a backup timer (the delivery timeout plus 5 seconds) runs the normal retry path instead of leaving the message pending; a late ACK still marks it delivered
|
||||
3. **Timeout duration**: Preferably from the ML timeout prediction service; otherwise from the device's own `est_timeout` in `RESP_CODE_SENT` (clamped to the physics range); otherwise calculated from LoRa airtime physics: `500 + (airtime × 6 + 250) × (pathLength + 1)` ms for direct paths, `500 + 16 × airtime` ms for flood (airtime is estimated from the radio's current spreading factor, bandwidth, and coding rate). The result is capped at 45 seconds.
|
||||
4. On timeout, the message is retried with **exponential backoff**: `1000 × 2^retryCount` ms (1s, 2s, 4s, 8s, 16s...)
|
||||
5. **Max retries**: Configurable (default 5, range 2–10)
|
||||
6. After max retries, the message is marked "failed" — but a **30-second grace window** remains during which a late ACK can still resolve the message to "delivered"
|
||||
7. If **Clear Path on Max Retry** is enabled (App Settings), the contact's stored routing path is automatically cleared when max retries are exhausted
|
||||
8. **Auto route rotation**: When enabled (and no manual path override is set), the retry service uses a diversity window to avoid re-using recently tried paths, cycling through known routes on each attempt
|
||||
4. On timeout, the message is retried with **exponential backoff**: `1000 × 2^retryCount` ms (1s, 2s, 4s, 8s, 16s...), capped at 32 seconds
|
||||
5. **Direct and flood attempts**: Set separately in App Settings → Routing (defaults 4 direct and 1 flood; up to 15 direct and 10 flood). With auto route rotation on, the direct attempts use known routes and the flood attempts follow. With it off, every attempt stays on the contact's current path and only that path's limit applies. Zero on both still sends once
|
||||
6. After those attempts, the message is marked "failed" — but a **30-second grace window** remains during which a late ACK can still resolve the message to "delivered"
|
||||
7. If **Clear Path on Max Retry** is enabled (App Settings → Routing), the contact's stored routing path is automatically cleared when the attempts are exhausted
|
||||
8. **Auto route rotation**: When enabled (and no manual path override is set), the retry service uses a diversity window to avoid re-using recently tried paths, cycling through known routes on each direct attempt. Flood attempts come after those
|
||||
|
||||
### Manual Retry
|
||||
|
||||
@@ -147,6 +175,8 @@ Add emoji reactions to incoming messages (not your own):
|
||||
|
||||
In channel chats the menu also offers **Mark as spam**, **Filter this sender** and **Filter messages like this…**; see [Message filter](message-filter.md). Direct messages are never filtered.
|
||||
|
||||
Long-pressing directly on a detected GPS coordinate opens the coordinate action sheet (**Copy location** and **Open in maps**) instead of this message menu; long-press non-coordinate text in the message (or right-click on desktop) for message actions.
|
||||
|
||||
## Image and translation setup
|
||||
|
||||
Enable URL images in the contact’s chat settings to preview supported image links; see [URL images](additional-features.md#url-image-previews). Images and files can also be uploaded to a configured IPFS provider from the **+** menu in direct or channel chat; the resulting URL is sent as ordinary text. See [sharing via IPFS](additional-features.md#share-an-image-via-ipfs) and [IPFS provider configuration](settings.md#ipfs-provider-configuration). Mesh image packets are currently sent through channel chat, not the direct-message composer. Set up translation and download a model in [App Settings](settings.md#translation) before using incoming or pre-send translation.
|
||||
@@ -54,14 +54,16 @@ A toolbar at the top provides:
|
||||
|
||||
Groups are a client-side organizational feature for grouping contacts.
|
||||
|
||||
- **Create a group**: Tap the group dropdown → "+" icon → enter name → select members → Save
|
||||
- **Create a group**: Tap the group dropdown → "+" icon → enter name → add members → Save
|
||||
- **Edit a group**: Group dropdown → pencil icon next to the group
|
||||
- **Delete a group**: Group dropdown → trash icon next to the group
|
||||
- **Filter by group**: Select a group from the dropdown to show only its members
|
||||
|
||||
Groups are stored per radio identity (scoped by public key).
|
||||
|
||||
**Validation rules**: Group names cannot be empty, cannot be "all" (reserved, case-insensitive), and must be unique (case-insensitive). The group creation dialog includes a built-in search field to filter contacts when selecting members. Creating a new group automatically selects it as the active filter.
|
||||
The group editor lists **Current members (N)** first, each with a remove button. Below it, **Add contacts** has a search field and lists only contacts that are not members yet; tap a row or its add button to add it. Changes apply when you tap Save. Removing a member only changes the group; the contact stays on the radio.
|
||||
|
||||
**Validation rules**: Group names cannot be empty, cannot be "all" (reserved, case-insensitive), and must be unique (case-insensitive). Creating a new group automatically selects it as the active filter.
|
||||
|
||||
## Tap Actions
|
||||
|
||||
@@ -89,8 +91,8 @@ Groups are stored per radio identity (scoped by public key).
|
||||
|
||||
The Contacts screen has a single **three-dot overflow menu** (`⋮`) in the app bar:
|
||||
|
||||
- Add Contact — opens the Add Contact page
|
||||
- Discovered Contacts — opens the DiscoveryScreen
|
||||
- Add Contact from Clipboard — reads a `meshcore://<hex>` URI from clipboard and imports it
|
||||
- *(divider)*
|
||||
- Zero-Hop Advert — broadcasts your advertisement to immediately adjacent nodes
|
||||
- Flood Advert — broadcasts across the full mesh network
|
||||
@@ -99,15 +101,20 @@ The Contacts screen has a single **three-dot overflow menu** (`⋮`) in the app
|
||||
- Disconnect — disconnects from the device
|
||||
- Settings — opens the Settings screen
|
||||
|
||||
A **floating action button** (person-add icon) provides a shortcut sheet to "Add Contact from Clipboard" or "Discovered Contacts".
|
||||
A **floating action button** (person-add icon) also opens the Add Contact page.
|
||||
|
||||
## Adding Contacts
|
||||
|
||||
### Automatic (Passive)
|
||||
When the radio hears an advertisement, the contact appears automatically if auto-add is enabled for that type (configurable in Settings → Contact Settings).
|
||||
|
||||
### Import from Clipboard
|
||||
Overflow menu (or the FAB shortcut) → "Add Contact from Clipboard". Reads a `meshcore://<hex>` URI from clipboard and imports it to the device.
|
||||
### Add Contact Page (Manual, Clipboard, Discovered, QR)
|
||||
Open **Add Contact** from the Contacts overflow menu or the person-add floating action button.
|
||||
|
||||
- **Manual entry**: Pick the **Contact Type** (Chat, Repeater, Room, or Sensor), enter a **Name**, paste or enter the 64-character hex **Public Key** (leading/trailing whitespace and an optional `0x` prefix are handled automatically), and tap the checkmark (`✓`) to save.
|
||||
- **Add Contact from Clipboard**: Imports `meshcore://` contact URIs and `<PUBKEY:TYPE:NAME>` chat share tokens directly, or detects a bare 64-hex-char public key and fills the Public Key field so you can pick the type, enter a name, and save.
|
||||
- **Add from Discovered Contacts**: Opens the Discovered Contacts screen.
|
||||
- **Scan QR Code**: Opens the QR scanner.
|
||||
|
||||
### Import from Discovered Contacts
|
||||
Overflow menu → "Discovered Contacts". Shows nodes heard passively that haven't been added yet. Tap to immediately import (no confirmation dialog), or long-press for more options (Copy URI, Delete). The Discovery screen has its own search bar, type filters (Users, Repeaters, Rooms), and sort options (Last Seen, A-Z). Its overflow menu has **Export discovered contacts**, **Import discovered contacts**, and "Delete All".
|
||||
@@ -131,7 +138,7 @@ Use the Discovered Contacts overflow menu to move the list of heard-but-not-adde
|
||||
|
||||
### Import from a QR Code
|
||||
|
||||
Choose **Scan QR Code** from the Contacts overflow menu or the add-contact sheet. Allow camera access and scan a compatible contact QR code, or use **Scan QR from Gallery** on the scanner screen to import a QR code from a saved image. Contact QR import is separate from community QR scanning; use Channels for community codes.
|
||||
Choose **Scan QR Code** from the Add Contact page. Allow camera access and scan a compatible contact QR code, or use **Scan QR from Gallery** on the scanner screen to import a QR code from a saved image. Contact QR import is separate from community QR scanning; use Channels for community codes.
|
||||
|
||||
## Contact Sharing Format
|
||||
|
||||
|
||||
+19
-10
@@ -2,7 +2,7 @@
|
||||
|
||||
How MeshCore Open's interface is built today, and the rules to follow when adding or changing UI. Every value below comes from the code it cites. If you change one of those sources, or settle on a new pattern, update this page in the same change.
|
||||
|
||||
The source of truth is `lib/theme/mesh_theme.dart` (theme), `lib/widgets/mesh_ui.dart` (shared widgets), `lib/widgets/settings_reveal.dart` (reveal-on-enable) and `lib/widgets/mesh_nav_tile.dart` (settings rows). Where the code disagrees with this page, fix one of them; do not copy the inconsistency.
|
||||
The source of truth is `lib/theme/mesh_theme.dart` (theme), `lib/widgets/mesh_ui.dart` (shared widgets), `lib/widgets/settings_reveal.dart` (reveal-on-enable and settings sliders) and `lib/widgets/mesh_nav_tile.dart` (settings rows). Where the code disagrees with this page, fix one of them; do not copy the inconsistency.
|
||||
|
||||
## 1. Principles
|
||||
|
||||
@@ -97,15 +97,16 @@ Minimum sizes: no hard-coded `fontSize` below 12 exists in `lib/screens` or `lib
|
||||
| Section header | padding 16, 20, 16, 8 (LTRB) | `SectionHeader` |
|
||||
| Settings row | padding 16 / 12, 24px icon, 16 gap, chevron 24 | `MeshNavTile` |
|
||||
| Switch row | `SwitchListTile`, `contentPadding` 16 / 4, `secondary` icon size 24 | `app_settings_screen.dart` |
|
||||
| Slider row | `SettingsValueSlider` (`ListTile`), `contentPadding` 16 / 4, `leading` icon size 24, 16 gap | `settings_reveal.dart` |
|
||||
| Popup menu row | 20px icon, 12 gap | `MeshMenuItemRow` |
|
||||
| Banner | padding 16 / 12, 24px icon, 12 gap | `RadioDisconnectedBanner` |
|
||||
| Sheet header | padding 20, 8, 8, 4 (LTRB), 36×4 drag handle | `BottomSheetHeader` |
|
||||
| Radii | `MeshRadii.xs` 6, `sm` 10, `md` 14 (cards, inputs, menus, snackbars, list tiles), `lg` 18 (sheets, dialogs), `xl` 24, `pill` 999 (buttons, chips, FAB) | `MeshRadii` |
|
||||
| Default icon size | 22 | `iconTheme` |
|
||||
| Avatar | 40 | `AvatarCircle` |
|
||||
| Avatar | 40; initials from letters and digits only (`avatarInitials`), else a person icon. Pass a hop's hex prefix, not a "(AB) Name" label | `AvatarCircle` |
|
||||
| List bottom padding under a FAB | 88 | `channels_screen.dart` |
|
||||
|
||||
Every settings row — including child rows revealed inside `SettingsReveal` and model rows in `ModelDownloadList` — uses a vertically centred 24px leading icon with a 16px gap (`MeshNavTile`, `SwitchListTile.secondary`, or `ListTile.leading`) so titles align vertically across a card.
|
||||
Every settings row — including sliders, selectors, child rows revealed inside `SettingsReveal`, and model rows in `ModelDownloadList` — uses a vertically centred 24px leading icon with a 16px gap (`MeshNavTile`, `SwitchListTile.secondary`, or `ListTile.leading`) so titles align vertically across a card.
|
||||
|
||||
Icon sizes in use: 24 for tile and banner icons, 20 for menu icons and small action buttons, 18 for inline refresh icons and spinners. Keep tappable icons at 20 or more.
|
||||
|
||||
@@ -120,10 +121,12 @@ Icon sizes in use: 24 for tile and banner icons, 20 for menu icons and small act
|
||||
| Settings navigation row | `MeshNavTile` | `onTap: null` dims it to 50 % and reports it as disabled; use `subtitle` to say why |
|
||||
| Settings switch | `SwitchListTile` inside `MeshSettingsTileTheme` | Wrap the settings screen body once in `MeshSettingsTileTheme` |
|
||||
| Switch that reveals more controls | `SettingsReveal` | 200ms height ease, `surfaceContainerHighest`, 16px start indent. See [Reveal on enable](#reveal-on-enable) |
|
||||
| Settings slider | `SettingsValueSlider` | Requires a 24px `icon` (`ListTile.leading`). The title includes the selected number, so it stays visible. The drag bubble repeats it |
|
||||
| Radio-style choice in a sheet | `MeshSheetOption` | Used by the language picker, map time filter and compression sheet. Optional `subtitle` explains the option; `onTap: null` disables it. Selected rows show a filled radio icon **and** a bold title, with `selected` semantics |
|
||||
| Per-chat setting at the top of a chat | Full-width strip under the app bar, above the transcript (`ChatCompressionSelector` in `widgets/chat_compression_selector.dart`) | `surfaceContainerLow` fill, `outlineVariant` bottom border, 48dp minimum height, `bodyLarge` w600 "Label: value ▾"; tap opens one `showMeshSheet` with `MeshSheetOption`s. Shows the saved value only; a spinner replaces ▾ while saving; a disabled strip shows why below the label. One shared widget for DM and channel chats; parents pass state and async callbacks |
|
||||
| Choosing between images | Selectable thumbnail tiles in a centred `Wrap` | Image send versions (`_versionTile` in `image_send_preview_sheet.dart`). `InkWell` with `MeshRadii.sm`; selected tile gets a 3px `primary` border **and** a `primary` check badge (never colour alone); caption under the tile in `bodySmall`, w600 when selected; figures such as packet counts in `MeshTheme.mono` 12; wrap the tile in `Semantics(button: true, selected:, label:)` |
|
||||
| Popup menu row | **always** `PopupMenuItem(child: MeshMenuItemRow(icon:, label:))` | Label wraps to 2 lines then ellipsizes; `leading:` for `ThemedIcon`; no icon keeps the 20px slot |
|
||||
| Editing a set of members | Current items first, then a searchable add list | Group editor (`contact_group_editor_dialog.dart`). Wrapping upper-case section label with the count ("Current members (N)"); each member row has a trailing `IconButton` remove (`error` colour, tooltip names the item); the add list excludes current members, and tapping the row or its `primary` add button adds it |
|
||||
| Popup menu row | **always** `PopupMenuItem(child: MeshMenuItemRow(icon:, label:))` | Relies on `MeshTheme.popupMenuTheme` (`surfaceContainerHigh`, `MeshRadii.md`); `MeshMenuItemRow` gives a 20px icon slot, 12px gap, and 2-line wrap + ellipsis (`leading:` for `ThemedIcon`, no icon keeps the 20px slot). Main views share `mainOverflowTrailingItems` (`widgets/connect_sheet.dart`) |
|
||||
| Segmented button label | **always** `ButtonSegment(label: MeshSegmentLabel(text))` | Shrinks to 12 (before system scale), then wraps at word boundaries onto 2 centred lines; never breaks a word |
|
||||
| Status | `StatusChip` | Mono label, coloured dot or icon |
|
||||
| On-device model | `ModelDownloadList` | Name, size, status, selection and one action. See [Model downloads](#model-downloads). |
|
||||
@@ -163,9 +166,13 @@ Icon sizes in use: 24 for tile and banner icons, 20 for menu icons and small act
|
||||
|
||||
### Reveal on enable
|
||||
|
||||
A switch that uncovers more controls (such as **Enable image messages** and **Enable translation**) uses `SettingsReveal` (`lib/widgets/settings_reveal.dart`). The block's height eases over 200ms (`RevealOnEnable.duration`, `Curves.easeInOut`, aligned to the top). While the switch is off the extra controls are not in the tree, so they are not announced. The panel uses `surfaceContainerHighest` and a 16px start indent. Because the panel already sits on `surfaceContainerHighest`, inset notice boxes inside `SettingsReveal` (such as `ImageCodecModelsSection`'s unavailable-platform notice) use `surfaceContainerLow` with an `outlineVariant` border.
|
||||
A switch that uncovers more controls (such as **Enable image messages** and **Enable translation**) uses `SettingsReveal` (`lib/widgets/settings_reveal.dart`). The block's height eases over 200ms (`RevealOnEnable.duration`, `Curves.easeInOut`, aligned to the top). While the switch is off the extra controls are not in the tree, so they are not announced. The panel uses `surfaceContainerHighest` and a 16px start indent. Because the panel already sits on `surfaceContainerHighest`, controls and inset notices inside it must contrast against `surfaceContainerHighest` as well as `surfaceContainerLow` (`MeshTheme`'s slider inactive track and value indicator step away from `surfaceContainerHighest`, and inset notice boxes inside `SettingsReveal`, such as `ImageCodecModelsSection`'s unavailable-platform notice, use `surfaceContainerLow` with an `outlineVariant` border).
|
||||
|
||||
The same animation without the tint is `RevealOnEnable`. Do not add a second duration, and do not reveal the controls with a plain `if` that pops them in.
|
||||
The same animation without the tint is `RevealOnEnable`. Use it when the revealed control is not a settings sub-panel: the Bluetooth-off banner on the scanner and the device-info rows on the Settings screen.
|
||||
|
||||
Do not add a second duration, and do not reveal the controls with a plain `if` that pops them in. A block that swaps between two bodies, such as the filtered-message preview, keeps `AnimatedSize` but uses `RevealOnEnable.duration` and `RevealOnEnable.curve`.
|
||||
|
||||
Sliders that belong to a setting use `SettingsValueSlider` with a 24px `icon` (`ListTile.leading`) so the title and slider line up with adjacent rows. Put the selected number in the title (a localized string with the count). The slider's drag label repeats that number; it is not the only place the value appears.
|
||||
|
||||
### Model downloads
|
||||
|
||||
@@ -217,7 +224,9 @@ That is the Contacts list and its group member picker, Discovery, Map node searc
|
||||
- Title: a plain localized string, ellipsized on one line. Use `AppBarTitle` on top-level and settings screens; it adds the connected node name as a subtitle and battery/SNR indicators when there is room, dropping them in that order on narrow widths. Use `AdaptiveAppBarTitle` for a plain one-line title.
|
||||
- Centre the title (`centerTitle: true`, `AGENTS.md`); 31 screens set it explicitly because the theme default is `false`. Chat screens (`chat_screen.dart`, `channel_chat_screen.dart`) deliberately use `centerTitle: false` for their two-line name + route title.
|
||||
- Actions: at most two icon buttons plus the overflow (`Icons.more_vert`) menu, for example `RadioStatsIconButton`, search, ⋮ in `chat_screen.dart`. Put everything else in the overflow menu.
|
||||
- Overflow menu order: things about this screen first, then app-level items (Disconnect, Settings), with destructive items last. Destructive items use `MeshMenuItemRow(color: scheme.error)` so both icon and label turn red (Clear chat in `chat_screen.dart`; Clear / Delete channel in `channel_chat_screen.dart`). Use `PopupMenuDivider` between groups.
|
||||
- Overflow menus:
|
||||
- Order: screen-specific items first, then a `PopupMenuDivider` separating the trailing app-level section — Connect/Disconnect (`connectionMenuItem`) immediately followed by Settings (`settingsMenuItem`) — and destructive items last if a screen has any. Omit the divider when no items precede the app-level section (for example, `MapScreen` while building a path trace). Main views use `mainOverflowTrailingItems(screenContext, menuContext, hasPrecedingItems:)` in `lib/widgets/connect_sheet.dart` so they stay in sync.
|
||||
- Visual & interaction rules: rely on `MeshTheme`'s `popupMenuTheme` (`surfaceContainerHigh`, `MeshRadii.md` border radius, and consistent `menuPadding`, margins, item padding, and elevation), separate sections with `PopupMenuDivider`, build every row with `MeshMenuItemRow` (20px icon slot, 12px gap, 2-line wrap + ellipsis), use `context.l10n.contacts_moreOptions` as the button `tooltip` on main views, and capture the screen `context` (not the `itemBuilder`'s `menuContext`) for `onTap` callbacks since menus pop before `onTap` runs. Destructive items use `MeshMenuItemRow(color: scheme.error)` so both icon and label turn red (Clear chat in `chat_screen.dart`; Clear / Delete channel in `channel_chat_screen.dart`).
|
||||
- Search: tapping search swaps the title for the field and hides all actions (`actions: _searching ? null : [...]`). The leading back arrow and the system back gesture close the search (`PopScope(canPop: !_searching)`) instead of leaving the screen.
|
||||
- Long operations: show progress as the app bar `bottom` (`SyncProgressAppBarBottom`, or a 4px `LinearProgressIndicator` for Refresh all in `repeater_settings_screen.dart`).
|
||||
|
||||
@@ -263,8 +272,8 @@ Follow the same pattern for any new remote-value screen.
|
||||
- [ ] Colours from `colorScheme` or theme extensions; no raw `Colors.*` or `MeshPalette.ink/bg/line` in chrome.
|
||||
- [ ] Text styles from `textTheme` or `MeshTheme.mono`; nothing below 12.
|
||||
- [ ] Settings rows use `MeshNavTile` / `SwitchListTile` inside `MeshSettingsTileTheme`; cards are `MeshCard` with a `SectionHeader`.
|
||||
- [ ] A switch that reveals more controls uses `SettingsReveal`.
|
||||
- [ ] Popup menu rows use `MeshMenuItemRow`; segmented buttons use `MeshSegmentLabel`; destructive menu items last, in `scheme.error`.
|
||||
- [ ] A switch that reveals more controls uses `SettingsReveal`. A settings slider uses `SettingsValueSlider` so the selected value stays in the title.
|
||||
- [ ] Overflow menus rely on `MeshTheme.popupMenuTheme`, use `MeshMenuItemRow`, have a localized `tooltip`, place screen-specific items above a `PopupMenuDivider` followed by Connect/Disconnect and Settings (omitting any leading divider when empty), and place destructive items last in `scheme.error`; segmented buttons use `MeshSegmentLabel`.
|
||||
- [ ] Every `IconButton` and FAB has a localized `tooltip`.
|
||||
- [ ] Tap targets at least 48×48.
|
||||
- [ ] Right container: dialog for confirm/short input, `showMeshSheet` + `BottomSheetHeader` for choices and item actions, page for forms. No gap above the sheet handle.
|
||||
@@ -279,7 +288,7 @@ Follow the same pattern for any new remote-value screen.
|
||||
The current code does not yet follow this page everywhere:
|
||||
|
||||
- **App bar centring.** `MeshTheme._build` sets `centerTitle: false`, but `AGENTS.md` asks for centred titles and 31 screens override it. `contacts_screen.dart` does not, so its title is left-aligned while Channels and Settings are centred.
|
||||
- **Disconnect placement in overflow menus.** It is the first item in `channels_screen.dart`, but just above Settings in `contacts_screen.dart` and `map_screen.dart`. It tints only the icon (`iconColor`), while Clear chat / Delete tint icon and label (`color`).
|
||||
- **Disconnect icon-only error tint.** In overflow menus, Disconnect tints only the icon (`iconColor`), while Clear chat / Delete tint icon and label (`color`).
|
||||
- **Menu rows not using `MeshMenuItemRow`.** `channel_chat_screen.dart` bulk-select menu (Select all / Copy) puts a `ListTile` inside `PopupMenuItem`. `widgets/list_filter_widget.dart` and the group menu in `contacts_screen.dart` use plain `Text` items, which is acceptable for icon-less lists but does not limit wrapping.
|
||||
- **Settings toggles in two sizes.** `FeatureToggleRow` (`widgets/elements_ui.dart`, used in `settings_screen.dart` dialogs) uses a `bodyMedium` w600 title and `bodySmall` subtitle with a 32px refresh button. `MeshNavTile` and themed `SwitchListTile`s use `bodyLarge` w600 / `bodyMedium`. Only App Settings, Message Filter and Repeater Settings wrap their body in `MeshSettingsTileTheme`.
|
||||
- **`ErrorRetryCard` is unused** and its fallback label is the hard-coded English `'Retry'` (`mesh_ui.dart`); screens show load errors in their own ways.
|
||||
|
||||
@@ -38,7 +38,7 @@ Chunks are reassembled into an image entry in channel chat. A partially received
|
||||
|
||||
With Process images automatically enabled, complete images are queued for local reconstruction. Automatic decoding runs only while the app is in the foreground, one image at a time, with at most 3 images queued; when more arrive, the newest 3 are kept and the rest wait for a tap. Otherwise, tap an image entry to process it. Download/enable the model if prompted. A failed reconstruction can be retried; missing chunks and inference errors are different failures.
|
||||
|
||||
Tap a reconstructed image to inspect it. Long-press or right-click its chat bubble for Packet info, Delete, and Save (available once decoded). Deletion is local. Encoded streams and reconstructed images are persisted in application storage, capped at 200 images, 64 MB, and 30 days, plus a limit of 400 image entries (including ones waiting to be decoded and your own sent images once their data has expired). When the cap is reached, the oldest reconstructed images are evicted first and show "Image no longer stored"; they can be decoded again while their small encoded stream remains. Past 30 days the stream is removed too.
|
||||
Tap a reconstructed image to inspect it. Long-press or right-click its chat bubble for Copy (copies sender, timestamp, byte/packet summary, and the AI-reconstruction caption when decoded), Packet info, Delete, and Save (available once decoded). Copying raw image pixels to the clipboard is not supported—use Save image to export or share the PNG with its provenance caption—and AEIC images cannot be re-sent by pasting text into the composer because they travel as binary `GRP_DATA` chunks. Deletion is local. Encoded streams and reconstructed images are persisted in application storage, capped at 200 images, 64 MB, and 30 days, plus a limit of 400 image entries (including ones waiting to be decoded and your own sent images once their data has expired). When the cap is reached, the oldest reconstructed images are evicted first and show "Image no longer stored"; they can be decoded again while their small encoded stream remains. Past 30 days the stream is removed too.
|
||||
|
||||
## Other image features
|
||||
|
||||
|
||||
@@ -9,7 +9,8 @@ The colors and markers below describe the standard theme. A custom, preset, or h
|
||||
## How to Access
|
||||
|
||||
- **QuickSwitchBar tab 2** (rightmost) from Contacts or Channels
|
||||
- **Deep-link from a chat message**: Tapping a shared location pin in a chat opens the map centered on that pin
|
||||
- **Deep-link from a shared location pin**: Tapping a shared location pin (`m:<lat>,<lon>|...`) in a chat opens the map centered on that pin
|
||||
- **Tap an inline GPS coordinate in a message**: Tapping a detected decimal coordinate pair (for example `37.7749, -122.4194`) opens a dedicated full-screen **Location** map centered on that point; see [Inline GPS Coordinates](chat-and-messaging.md#inline-gps-coordinates)
|
||||
- **Settings → Offline Map Cache**: Opens the tile cache management screen
|
||||
|
||||
## What the Map Displays
|
||||
@@ -114,6 +115,9 @@ Additional filters:
|
||||
### Legend Card (Top-Right)
|
||||
Shows node count and pin count. Tappable to expand a legend of all marker types.
|
||||
|
||||
### Coordinate Location Map (From Chat Text)
|
||||
Tapping a decimal GPS coordinate in a message or bookmark opens a focused **Location** screen (`CoordinateMapScreen`) centered on that coordinate at zoom 15 (range 2–18) with a pin marker, a bottom coordinate card, **Zoom in** (`+`) / **Zoom out** (`-`) / **Center map** buttons, desktop arrow/WASD pan and R/F zoom support, and app bar actions for **Copy location** and **Open in maps** (`geo:` on Android, Apple Maps on iOS/macOS, OpenStreetMap in the browser on Linux/Windows/web). Pressing Back returns to the chat at the same scroll position. Unlike structured `m:<lat>,<lon>|...` pins, plain-text coordinates are not added as persistent flag markers on the main Mesh Map.
|
||||
|
||||
---
|
||||
|
||||
## Path Trace Map
|
||||
|
||||
@@ -48,6 +48,7 @@ ContactsScreen (selected=0)
|
||||
├─ [quick-switch 1] → pushReplacement → ChannelsScreen
|
||||
├─ [quick-switch 2] → pushReplacement → MapScreen
|
||||
├─ [tap contact] → push → ChatScreen
|
||||
├─ [FAB / overflow > Add Contact] → push → AddContactScreen
|
||||
├─ [overflow > Settings] → push → SettingsScreen
|
||||
└─ [overflow > Discovered] → push → DiscoveryScreen
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ From the Contacts screen:
|
||||
- Routing mode selector and "Manage Paths" link are available directly in the dialog (configure routing before login)
|
||||
- Auto-retries up to 5 times on timeout, showing progress ("Attempt 2 of 5"). A wrong password (explicit failure response) stops immediately — only timeouts trigger retries
|
||||
- CLI commands to a repeater are matched to their reply by a short prefix. A reply that arrives late for an earlier attempt still completes the command, and no further attempts are sent
|
||||
- If auto-clock-sync is enabled for this repeater (configured in Repeater Settings), a `clock sync` command is sent automatically on successful login
|
||||
- If clock sync on login is on for this repeater, a `clock sync` command is sent automatically on successful login. The repeater's choice is Default, On, or Off. Default follows **Sync repeater clock on login** in App Settings → Repeaters and Rooms, which is off unless you turn it on
|
||||
|
||||
---
|
||||
|
||||
@@ -179,7 +179,7 @@ Most settings are declared once in `repeaterSettingSpecs` (`lib/models/repeater_
|
||||
- Packet forwarding toggle (`set repeat`)
|
||||
- Guest access toggle (`set allow.read.only`)
|
||||
- Multi-ACKs toggle (`set multi.acks`)
|
||||
- Auto clock sync after login toggle (local app setting only, not sent to repeater)
|
||||
- Clock sync after login (Default / On / Off; local app setting only, not sent to repeater). Default follows App Settings → Repeaters and Rooms
|
||||
|
||||
**5. Network Health**
|
||||
- Loop detection dropdown (off / minimal / moderate / strict; `set loop.detect`)
|
||||
@@ -218,7 +218,7 @@ Most settings are declared once in `repeaterSettingSpecs` (`lib/models/repeater_
|
||||
- Erase filesystem (serial-only; shown disabled with an explanation — no command is sent over the air)
|
||||
|
||||
### Key Interactions
|
||||
- **Settings are not fetched on open by default.** Each `get` is a separate LoRa round trip, so fetching everything is slow and uses airtime. Turn on **Auto-fetch repeater settings** in App Settings to fetch everything when the screen opens; otherwise use **Refresh all** or the per-setting refresh buttons. Name and location are pre-filled from cached contact data
|
||||
- **Settings are not fetched on open by default.** Each `get` is a separate LoRa round trip, so fetching everything is slow and uses airtime. Turn on **Auto-fetch repeater settings** in App Settings → Repeaters and Rooms to fetch everything when the screen opens; otherwise use **Refresh all** or the per-setting refresh buttons. Name and location are pre-filled from cached contact data
|
||||
- Every control can be edited before its value has been fetched. Unfetched values show as "—" (or off) until fetched or edited, and only edited settings are sent on save
|
||||
- Save button in app bar appears when any change is detected; failed commands keep those settings dirty for retry, and a saved value counts as the repeater's current value
|
||||
- Settings are sent sequentially with 200ms delays between commands; firmware responses are checked and partial failures are reported in a snackbar
|
||||
|
||||
@@ -55,7 +55,7 @@ Contacts/messages persist hop count, path bytes, and width. Legacy contact recor
|
||||
- **Faded stats:** each route keeps delivery and failure counts that lose half their weight every 24 hours (`routeStatsHalfLife`), so recent behaviour outweighs old.
|
||||
- **Thompson sampling:** for each attempt, a plausible delivery rate is drawn for every route from its faded counts and the best draw wins. Proven routes win most of the time; untested or recovering routes are still tried occasionally. Speed adjusts the score slightly.
|
||||
- **Context:** `MeshCoreConnector.routeContextFor` reports what the radio heard in the last two hours (advertisers heard directly and the last hop of relayed adverts). Routes whose first hop was heard — or the direct route, when the contact itself was heard directly — score higher; routes that don't fit score lower. Not hearing a repeater is weak evidence, so nothing is excluded. With nothing heard, context has no effect.
|
||||
- **Retries** halve the score of routes already tried for the same message, so they usually try something different without wasting an attempt on a much weaker route. The final attempt always floods.
|
||||
- **Retries** halve the score of routes already tried for the same message, so they usually try something different without wasting an attempt on a much weaker route. Direct attempts use a known route. Once those are used up, the remaining attempts flood (`SendAttemptPlan.floodFromAttempt`). With flood attempts set to 0, a send never switches to flood.
|
||||
- **Offline contacts:** `MessageRetryService` holds a message's route failures until its fate is known. If any attempt is acknowledged, the routes that timed out are blamed; if nothing gets through, the contact was probably unreachable and no route is blamed.
|
||||
- **Forgetting:** a failing route is deleted only after it hasn't delivered for a week, so a repeater that is down for a day is still known when it returns.
|
||||
- Route picks and their results are written to the app debug log under the `Routing` tag.
|
||||
|
||||
@@ -119,19 +119,32 @@ A dedicated sub-screen for app-level preferences (nothing here is sent to the de
|
||||
Individual channels can be muted from the channel chat bell icon, the channel list, or the channel notification. Replying from notifications, watches, and Android Auto is described in [Notifications](notifications.md).
|
||||
|
||||
### Messaging
|
||||
- **Clear Path on Max Retry**: Erases the stored routing path after all retries fail
|
||||
- **Jump to Oldest Unread**: When opening a chat, scrolls to the oldest unread message instead of the newest
|
||||
- **Auto-fetch Repeater Settings** (off by default): Requests every setting when a repeater's settings screen opens. Each setting is a separate request over LoRa, so this is slow and uses airtime; when off, use Refresh All or the per-setting refresh buttons. See [Repeater Settings](repeater-management.md#repeater-settings)
|
||||
- **Auto Route Rotation**: Lets the app choose each message's route from the routes that have worked for that contact (see [Auto route selection](routing-paths.md#auto-route-selection)). When enabled, it expands (hidden when off) to show:
|
||||
- Max Message Retries (2–10, default 5)
|
||||
- **Reset Routing Algorithm to Default**: Restores the routing settings to their factory defaults
|
||||
- **Enable Message Tracing**: Shows path trace overlays and extra metadata on messages
|
||||
- **Region next to hop count** (default off): Shows a channel message's region chip on the same line as its hop count instead of below it
|
||||
- **Compression indicator** (default off): Shows an icon on direct and channel messages that were compressed with SMAZ
|
||||
|
||||
### Routing
|
||||
What happens when a message is sent. Each slider shows its selected number in the title. Turning a switch on reveals its extra controls with the same animation.
|
||||
|
||||
- **Clear Path on Max Retry**: Erases the stored routing path after every send attempt fails
|
||||
- **Direct attempts** (0–15, default 4): How many times to try a known route. Available whether or not auto route rotation is on
|
||||
- **Flood attempts** (0–10, default 1): How many times to flood. Floods use more airtime. With rotation on, these run after the direct attempts. With it off, they apply only when the contact's path is already Flood
|
||||
- **Auto Route Rotation**: Lets the app choose each direct attempt's route from the routes that have worked for that contact (see [Auto route selection](routing-paths.md#auto-route-selection)). Off keeps the contact's current path for every attempt
|
||||
- **Resend channel messages until they travel far enough** (default off): If your channel message isn't heard coming back through enough repeaters, it's sent again. Uses more airtime. When on, it shows:
|
||||
- Required hops (1–8, default 2)
|
||||
- Resend up to (1–5 times, default 1)
|
||||
- **Also count different nearby repeaters** (default off): Treats the message as sent once that many *different* first-hop repeaters have repeated it, even if you can't hear it travel further. Useful where only nearby repeaters are audible. See [Channels](channels.md#channel-auto-resend)
|
||||
- **Reset routing settings to defaults**: Restores every control in this section (the toggles, the attempt limits, and the stored route-weight constants) to the factory defaults
|
||||
|
||||
If both direct and flood attempts are 0, the message is still sent once on the current path. A saved `max_message_retries` value from an older version becomes that many attempts minus one direct, plus one flood, which keeps the old "last attempt floods" behaviour for the previous default of 5 (4 direct + 1 flood).
|
||||
|
||||
### Repeaters and Rooms
|
||||
- **Sync repeater clock on login** (off by default): After a successful repeater login, send `clock sync`. Off is the previous default: a repeater only synced when its own switch was on. Each repeater can override this with Default, On, or Off. Default follows this switch. A saved per-repeater on or off stays an override
|
||||
- **Focus the password field** (off by default): On keeps the previous login dialog: the cursor goes into an empty password field (room login still skips this on a phone). Off waits until you tap the field, so the keyboard does not cover the dialog
|
||||
- **Login attempts** (1–10, default 5): How many times to try logging in to a repeater or room server. Telemetry fetches are sent once and have no retry setting
|
||||
- **Auto-fetch Repeater Settings** (off by default): Requests every setting when a repeater's settings screen opens. Each setting is a separate request over LoRa, so this is slow and uses airtime; when off, use Refresh All or the per-setting refresh buttons. See [Repeater Settings](repeater-management.md#repeater-settings)
|
||||
- **Reset repeater and room settings to defaults**: Restores the controls in this section. Choices saved on individual repeaters are left alone
|
||||
|
||||
### Battery
|
||||
- **Battery Chemistry**: NMC / LiFePO4 / LiPo (per device, used to calibrate percentage from voltage)
|
||||
|
||||
@@ -19,6 +19,7 @@ import '../models/contact.dart';
|
||||
import '../models/message_filter.dart';
|
||||
import '../models/message.dart';
|
||||
import '../models/path_selection.dart';
|
||||
import '../models/send_attempt_plan.dart';
|
||||
import '../models/translation_support.dart';
|
||||
import '../helpers/reaction_helper.dart';
|
||||
import '../helpers/channel_resend_coverage.dart';
|
||||
@@ -2444,11 +2445,11 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
debugLogService: _appDebugLogService,
|
||||
recordPathResult: _recordPathResult,
|
||||
selectRetryPath:
|
||||
(contactKey, attemptIndex, maxRetries, recentSelections) =>
|
||||
(contactKey, attemptIndex, directRetries, recentSelections) =>
|
||||
_selectAutoPathForAttempt(
|
||||
contactKey,
|
||||
attemptIndex: attemptIndex,
|
||||
maxRetries: maxRetries,
|
||||
directRetries: directRetries,
|
||||
recentSelections: recentSelections,
|
||||
),
|
||||
onDeliveryObserved: (contactKey, pathLength, messageBytes, tripTimeMs) {
|
||||
@@ -2461,8 +2462,6 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
},
|
||||
),
|
||||
);
|
||||
final maxRetries = _appSettingsService?.settings.maxMessageRetries ?? 5;
|
||||
_retryService?.setMaxRetries(maxRetries);
|
||||
}
|
||||
|
||||
Future<void> loadContactCache() async {
|
||||
@@ -2908,9 +2907,21 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
PathSelection? _selectAutoPathForAttempt(
|
||||
String contactPubKeyHex, {
|
||||
required int attemptIndex,
|
||||
required int maxRetries,
|
||||
required int directRetries,
|
||||
List<PathSelection> recentSelections = const [],
|
||||
}) {
|
||||
// Flood attempts do not need a saved route. History loads asynchronously
|
||||
// and is empty on the first read after startup, so checking it first
|
||||
// would keep the contact's direct path and spend a flood-only budget
|
||||
// without flooding.
|
||||
if (directRetries <= 0 || attemptIndex >= directRetries) {
|
||||
return _recordAutoPath(
|
||||
contactPubKeyHex,
|
||||
const PathSelection(pathBytes: [], hopCount: -1, useFlood: true),
|
||||
attemptIndex: attemptIndex,
|
||||
);
|
||||
}
|
||||
|
||||
final hasKnownPaths =
|
||||
_pathHistoryService?.getRecentPaths(contactPubKeyHex).isNotEmpty ??
|
||||
false;
|
||||
@@ -2923,22 +2934,38 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
final selection = _pathHistoryService?.selectPathForAttempt(
|
||||
contactPubKeyHex,
|
||||
attemptIndex: attemptIndex,
|
||||
maxRetries: maxRetries,
|
||||
directRetries: directRetries,
|
||||
recentSelections: recentSelections,
|
||||
context: routeContext,
|
||||
);
|
||||
if (selection != null) {
|
||||
_pathHistoryService?.recordPathAttempt(contactPubKeyHex, selection);
|
||||
// Logged so route choices and their outcomes can be compared from the
|
||||
// app debug log on a live mesh.
|
||||
_appDebugLogService?.info(
|
||||
'Route pick for ${contact?.name ?? contactPubKeyHex.substring(0, 8)}: '
|
||||
'attempt ${attemptIndex + 1}/$maxRetries → ${_describeRoute(selection)} '
|
||||
'(heard nearby: ${routeContext.hasNeighbourInfo}, '
|
||||
'contact heard direct: ${routeContext.contactHeardDirectly})',
|
||||
tag: 'Routing',
|
||||
);
|
||||
}
|
||||
if (selection == null) return null;
|
||||
return _recordAutoPath(
|
||||
contactPubKeyHex,
|
||||
selection,
|
||||
attemptIndex: attemptIndex,
|
||||
routeContext: routeContext,
|
||||
);
|
||||
}
|
||||
|
||||
PathSelection _recordAutoPath(
|
||||
String contactPubKeyHex,
|
||||
PathSelection selection, {
|
||||
required int attemptIndex,
|
||||
RouteContext? routeContext,
|
||||
}) {
|
||||
_pathHistoryService?.recordPathAttempt(contactPubKeyHex, selection);
|
||||
final contact = getContactByPubKeyHex(contactPubKeyHex);
|
||||
final context = routeContext ?? routeContextFor(contact);
|
||||
// Logged so route choices and their outcomes can be compared from the
|
||||
// app debug log on a live mesh.
|
||||
_appDebugLogService?.info(
|
||||
'Route pick for ${contact?.name ?? contactPubKeyHex.substring(0, 8)}: '
|
||||
'attempt ${attemptIndex + 1} '
|
||||
'→ ${_describeRoute(selection)} '
|
||||
'(heard nearby: ${context.hasNeighbourInfo}, '
|
||||
'contact heard direct: ${context.contactHeardDirectly})',
|
||||
tag: 'Routing',
|
||||
);
|
||||
return selection;
|
||||
}
|
||||
|
||||
@@ -5488,14 +5515,21 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
|
||||
Future<PathSelection> preparePathForContactSend(Contact contact) async {
|
||||
PathSelection? autoSelection;
|
||||
final autoRotationEnabled =
|
||||
_appSettingsService?.settings.autoRouteRotationEnabled == true;
|
||||
if (autoRotationEnabled && contact.pathOverride == null) {
|
||||
final maxRetries = _appSettingsService?.settings.maxMessageRetries ?? 5;
|
||||
final settings = _appSettingsService?.settings;
|
||||
final plan = SendAttemptPlan(
|
||||
directRetries:
|
||||
settings?.directRetries ?? SendAttemptPlan.defaultDirectRetries,
|
||||
floodRetries:
|
||||
settings?.floodRetries ?? SendAttemptPlan.defaultFloodRetries,
|
||||
rotateRoutes:
|
||||
settings?.autoRouteRotationEnabled == true &&
|
||||
contact.pathOverride == null,
|
||||
);
|
||||
if (plan.rotateRoutes) {
|
||||
autoSelection = _selectAutoPathForAttempt(
|
||||
contact.publicKeyHex,
|
||||
attemptIndex: 0,
|
||||
maxRetries: maxRetries,
|
||||
directRetries: plan.floodFromAttempt ?? (1 << 30),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
import '../helpers/contact_share_message.dart';
|
||||
import '../utils/contact_qr.dart';
|
||||
|
||||
/// Kind of content found when parsing clipboard text for adding a contact.
|
||||
enum ContactClipboardKind { empty, contact, publicKey, invalid }
|
||||
|
||||
/// Result of parsing clipboard text on the Add Contact screen.
|
||||
class ContactClipboardParseResult {
|
||||
final ContactClipboardKind kind;
|
||||
final ScannedContact? contact;
|
||||
final String? publicKeyHex;
|
||||
|
||||
const ContactClipboardParseResult._(
|
||||
this.kind, {
|
||||
this.contact,
|
||||
this.publicKeyHex,
|
||||
});
|
||||
|
||||
const ContactClipboardParseResult.empty()
|
||||
: this._(ContactClipboardKind.empty);
|
||||
|
||||
const ContactClipboardParseResult.contact(ScannedContact contact)
|
||||
: this._(ContactClipboardKind.contact, contact: contact);
|
||||
|
||||
const ContactClipboardParseResult.publicKey(String publicKeyHex)
|
||||
: this._(ContactClipboardKind.publicKey, publicKeyHex: publicKeyHex);
|
||||
|
||||
const ContactClipboardParseResult.invalid()
|
||||
: this._(ContactClipboardKind.invalid);
|
||||
}
|
||||
|
||||
/// Parses clipboard text as a `meshcore://` contact URI/advert, an embedded
|
||||
/// `<PUBKEY:TYPE:NAME>` contact share, or a bare 64-hex-char public key.
|
||||
ContactClipboardParseResult parseContactClipboard(String? rawText) {
|
||||
if (rawText == null) return const ContactClipboardParseResult.empty();
|
||||
final trimmed = rawText.trim();
|
||||
if (trimmed.isEmpty) return const ContactClipboardParseResult.empty();
|
||||
|
||||
if (trimmed.toLowerCase().startsWith('meshcore://')) {
|
||||
final scanned = parseContactQr(trimmed);
|
||||
return scanned != null
|
||||
? ContactClipboardParseResult.contact(scanned)
|
||||
: const ContactClipboardParseResult.invalid();
|
||||
}
|
||||
|
||||
final share = findContactShare(trimmed);
|
||||
if (share != null) {
|
||||
return ContactClipboardParseResult.contact(share.toScannedContact());
|
||||
}
|
||||
|
||||
final normalizedKey = normalizeContactPublicKeyHex(trimmed);
|
||||
if (normalizedKey != null) {
|
||||
return ContactClipboardParseResult.publicKey(normalizedKey);
|
||||
}
|
||||
|
||||
return const ContactClipboardParseResult.invalid();
|
||||
}
|
||||
@@ -0,0 +1,277 @@
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter_linkify/flutter_linkify.dart';
|
||||
|
||||
import '../utils/platform_info.dart';
|
||||
|
||||
/// A parsed WGS84 decimal coordinate pair (`latitude, longitude`) found in text.
|
||||
@immutable
|
||||
class ParsedCoordinate {
|
||||
final double latitude;
|
||||
final double longitude;
|
||||
final String rawText;
|
||||
final int start;
|
||||
final int end;
|
||||
|
||||
const ParsedCoordinate({
|
||||
required this.latitude,
|
||||
required this.longitude,
|
||||
required this.rawText,
|
||||
required this.start,
|
||||
required this.end,
|
||||
});
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is ParsedCoordinate &&
|
||||
latitude == other.latitude &&
|
||||
longitude == other.longitude &&
|
||||
rawText == other.rawText &&
|
||||
start == other.start &&
|
||||
end == other.end;
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(latitude, longitude, rawText, start, end);
|
||||
|
||||
@override
|
||||
String toString() =>
|
||||
'ParsedCoordinate($latitude, $longitude, "$rawText", $start..$end)';
|
||||
}
|
||||
|
||||
/// Linkify element representing a detected GPS coordinate pair.
|
||||
class CoordinateElement extends LinkableElement {
|
||||
final double latitude;
|
||||
final double longitude;
|
||||
|
||||
CoordinateElement({
|
||||
required this.latitude,
|
||||
required this.longitude,
|
||||
required String rawText,
|
||||
}) : super(
|
||||
rawText,
|
||||
buildExternalMapUri(latitude, longitude).toString(),
|
||||
rawText,
|
||||
);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is CoordinateElement &&
|
||||
super.equals(other) &&
|
||||
latitude == other.latitude &&
|
||||
longitude == other.longitude;
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(super.hashCode, latitude, longitude);
|
||||
|
||||
@override
|
||||
String toString() => "CoordinateElement: '$text' ($latitude, $longitude)";
|
||||
}
|
||||
|
||||
/// Builds a platform-appropriate external maps URI for [latitude] and [longitude].
|
||||
Uri buildExternalMapUri(
|
||||
double latitude,
|
||||
double longitude, {
|
||||
TargetPlatform? platform,
|
||||
bool? isWeb,
|
||||
}) {
|
||||
final normalizedLat = latitude == 0 ? 0.0 : latitude;
|
||||
final normalizedLon = longitude == 0 ? 0.0 : longitude;
|
||||
final latStr = normalizedLat.toString();
|
||||
final lonStr = normalizedLon.toString();
|
||||
|
||||
final web = isWeb ?? PlatformInfo.isWeb;
|
||||
if (web) {
|
||||
return Uri.parse(
|
||||
'https://www.openstreetmap.org/?mlat=$latStr&mlon=$lonStr#map=16/$latStr/$lonStr',
|
||||
);
|
||||
}
|
||||
|
||||
final targetPlatform = platform ?? defaultTargetPlatform;
|
||||
return switch (targetPlatform) {
|
||||
TargetPlatform.android => Uri.parse(
|
||||
'geo:$latStr,$lonStr?q=$latStr,$lonStr',
|
||||
),
|
||||
TargetPlatform.iOS || TargetPlatform.macOS => Uri.parse(
|
||||
'https://maps.apple.com/?ll=$latStr,$lonStr&q=$latStr,$lonStr',
|
||||
),
|
||||
TargetPlatform.linux ||
|
||||
TargetPlatform.windows ||
|
||||
TargetPlatform.fuchsia => Uri.parse(
|
||||
'https://www.openstreetmap.org/?mlat=$latStr&mlon=$lonStr#map=16/$latStr/$lonStr',
|
||||
),
|
||||
};
|
||||
}
|
||||
|
||||
/// Detects decimal `latitude, longitude` GPS coordinates inside [TextElement]s
|
||||
/// while avoiding URLs, version numbers, integer pairs, and embedded identifiers.
|
||||
class CoordinateLinkifier extends Linkifier {
|
||||
const CoordinateLinkifier();
|
||||
|
||||
static final RegExp _candidateRegex = RegExp(
|
||||
r'([+-]?\d+\.\d+),[ \t]*([+-]?\d+\.\d+)',
|
||||
);
|
||||
|
||||
// Covers URI schemes and bare domain/path strings that UrlLinkifier leaves
|
||||
// as plain text (e.g. geo:..., ftp://..., maps.google.com/?q=...).
|
||||
static final RegExp _nonLinkifiedUrlRegex = RegExp(
|
||||
r'(?:[a-zA-Z][a-zA-Z0-9+.-]*://|geo:|(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}/)[^\s]*',
|
||||
);
|
||||
|
||||
static final RegExp _disallowedBoundaryChar = RegExp(r'[A-Za-z0-9_+-]');
|
||||
static final RegExp _asciiDigit = RegExp(r'[0-9]');
|
||||
|
||||
@override
|
||||
List<LinkifyElement> parse(
|
||||
List<LinkifyElement> elements,
|
||||
LinkifyOptions options,
|
||||
) {
|
||||
final result = <LinkifyElement>[];
|
||||
for (final element in elements) {
|
||||
if (element is! TextElement) {
|
||||
result.add(element);
|
||||
continue;
|
||||
}
|
||||
result.addAll(_parseSegment(element.text));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
static List<LinkifyElement> _parseSegment(String text) {
|
||||
final blockedRanges = <({int start, int end})>[
|
||||
for (final m in _nonLinkifiedUrlRegex.allMatches(text))
|
||||
(start: m.start, end: m.end),
|
||||
];
|
||||
|
||||
final elements = <LinkifyElement>[];
|
||||
var cursor = 0;
|
||||
|
||||
for (final match in _candidateRegex.allMatches(text)) {
|
||||
if (_isInsideRanges(match.start, match.end, blockedRanges)) {
|
||||
continue;
|
||||
}
|
||||
if (!_hasValidBoundaries(text, match.start, match.end)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
final lat = double.tryParse(match.group(1)!);
|
||||
final lon = double.tryParse(match.group(2)!);
|
||||
if (lat == null || lon == null || !lat.isFinite || !lon.isFinite) {
|
||||
continue;
|
||||
}
|
||||
if (lat < -90.0 || lat > 90.0 || lon < -180.0 || lon > 180.0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (match.start > cursor) {
|
||||
elements.add(TextElement(text.substring(cursor, match.start)));
|
||||
}
|
||||
elements.add(
|
||||
CoordinateElement(
|
||||
latitude: lat == 0 ? 0.0 : lat,
|
||||
longitude: lon == 0 ? 0.0 : lon,
|
||||
rawText: match.group(0)!,
|
||||
),
|
||||
);
|
||||
cursor = match.end;
|
||||
}
|
||||
|
||||
if (elements.isEmpty) {
|
||||
return [TextElement(text)];
|
||||
}
|
||||
if (cursor < text.length) {
|
||||
elements.add(TextElement(text.substring(cursor)));
|
||||
}
|
||||
return elements;
|
||||
}
|
||||
|
||||
static bool _isInsideRanges(
|
||||
int start,
|
||||
int end,
|
||||
List<({int start, int end})> ranges,
|
||||
) {
|
||||
for (final range in ranges) {
|
||||
if (start < range.end && end > range.start) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool _hasValidBoundaries(String text, int start, int end) {
|
||||
if (start > 0) {
|
||||
final prev = text[start - 1];
|
||||
if (prev == '.' || _disallowedBoundaryChar.hasMatch(prev)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (end < text.length) {
|
||||
final next = text[end];
|
||||
if (_disallowedBoundaryChar.hasMatch(next)) {
|
||||
return false;
|
||||
}
|
||||
// Reject version-like continuations (e.g. "1.2,3.4.5"), while allowing
|
||||
// trailing sentence periods (e.g. "38.722,-9.139.").
|
||||
if (next == '.' &&
|
||||
end + 1 < text.length &&
|
||||
_asciiDigit.hasMatch(text[end + 1])) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/// Shared parser returning linkified elements and extracted [ParsedCoordinate]s.
|
||||
class CoordinateParser {
|
||||
CoordinateParser._();
|
||||
|
||||
static const LinkifyOptions linkifyOptions = LinkifyOptions(
|
||||
humanize: false,
|
||||
defaultToHttps: false,
|
||||
);
|
||||
|
||||
static const List<Linkifier> linkifiers = [
|
||||
UrlLinkifier(),
|
||||
EmailLinkifier(),
|
||||
CoordinateLinkifier(),
|
||||
];
|
||||
|
||||
/// Splits [text] into URL, email, coordinate, and plain-text elements.
|
||||
static List<LinkifyElement> linkifyWithCoordinates(String text) {
|
||||
if (text.isEmpty) return const [];
|
||||
var elements = <LinkifyElement>[TextElement(text)];
|
||||
for (final linkifier in linkifiers) {
|
||||
elements = linkifier.parse(elements, linkifyOptions);
|
||||
}
|
||||
return elements;
|
||||
}
|
||||
|
||||
/// Extracts all valid WGS84 decimal coordinates in [text].
|
||||
static List<ParsedCoordinate> parse(String text) {
|
||||
if (text.isEmpty) return const [];
|
||||
final elements = linkifyWithCoordinates(text);
|
||||
final results = <ParsedCoordinate>[];
|
||||
var offset = 0;
|
||||
|
||||
for (final element in elements) {
|
||||
final raw = element.originText;
|
||||
final index = text.indexOf(raw, offset);
|
||||
final start = index >= 0 ? index : offset;
|
||||
final end = start + raw.length;
|
||||
if (element is CoordinateElement) {
|
||||
results.add(
|
||||
ParsedCoordinate(
|
||||
latitude: element.latitude,
|
||||
longitude: element.longitude,
|
||||
rawText: element.text,
|
||||
start: start,
|
||||
end: end,
|
||||
),
|
||||
);
|
||||
}
|
||||
offset = end;
|
||||
}
|
||||
return results;
|
||||
}
|
||||
}
|
||||
+316
-45
@@ -1,10 +1,16 @@
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_linkify/flutter_linkify.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../utils/platform_info.dart';
|
||||
|
||||
import '../helpers/coordinate_parser.dart';
|
||||
import '../helpers/snack_bar_builder.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../screens/coordinate_map_screen.dart';
|
||||
import '../theme/mesh_theme.dart';
|
||||
import '../utils/platform_info.dart';
|
||||
import '../widgets/mesh_ui.dart';
|
||||
|
||||
class LinkHandler {
|
||||
static TextStyle defaultLinkStyle(BuildContext context, TextStyle base) {
|
||||
@@ -15,60 +21,153 @@ class LinkHandler {
|
||||
return base.copyWith(color: orange, decoration: TextDecoration.underline);
|
||||
}
|
||||
|
||||
/// The system text scale as a linear factor for [style]'s size.
|
||||
///
|
||||
/// flutter_linkify only takes a `textScaleFactor` (default 1.0, which
|
||||
/// ignores the system font size), so the ambient [TextScaler] is sampled
|
||||
/// at the style's font size to keep Android's nonlinear scaling. The
|
||||
/// in-app chat text scale is already part of `style.fontSize`.
|
||||
static double systemTextScaleFactor(BuildContext context, TextStyle style) {
|
||||
final fontSize =
|
||||
style.fontSize ?? DefaultTextStyle.of(context).style.fontSize ?? 14;
|
||||
if (fontSize <= 0) return 1.0;
|
||||
return MediaQuery.textScalerOf(context).scale(fontSize) / fontSize;
|
||||
static Color _inferBackground(BuildContext context, TextStyle base) {
|
||||
final textColor = base.color;
|
||||
if (textColor != null) {
|
||||
return textColor.computeLuminance() > 0.5
|
||||
? MeshPalette.bg2
|
||||
: Colors.white;
|
||||
}
|
||||
return Theme.of(context).colorScheme.surfaceContainerLow;
|
||||
}
|
||||
|
||||
/// Returns a [SelectableLinkify] on desktop or a [Linkify] on mobile.
|
||||
static TextStyle defaultCoordinateStyle(
|
||||
BuildContext context,
|
||||
TextStyle base, {
|
||||
Color? backgroundColor,
|
||||
}) {
|
||||
final scheme = Theme.of(context).colorScheme;
|
||||
final effectiveBg = backgroundColor ?? _inferBackground(context, base);
|
||||
final accent = readableAccent(
|
||||
scheme.primary,
|
||||
effectiveBg,
|
||||
minContrast: 4.5,
|
||||
);
|
||||
return base.copyWith(
|
||||
color: accent,
|
||||
decoration: TextDecoration.underline,
|
||||
decorationColor: accent,
|
||||
fontWeight: FontWeight.w600,
|
||||
);
|
||||
}
|
||||
|
||||
/// Returns an interactive rich-text widget (selectable on desktop) with URL,
|
||||
/// email, and GPS coordinate detection.
|
||||
static Widget buildLinkifyText({
|
||||
required BuildContext context,
|
||||
required String text,
|
||||
required TextStyle style,
|
||||
TextStyle? linkStyle,
|
||||
TextStyle? coordinateStyle,
|
||||
Color? backgroundColor,
|
||||
VoidCallback? onSecondaryTap,
|
||||
}) {
|
||||
final effectiveLinkStyle = linkStyle ?? defaultLinkStyle(context, style);
|
||||
const options = LinkifyOptions(humanize: false, defaultToHttps: false);
|
||||
const linkifiers = [UrlLinkifier(), EmailLinkifier()];
|
||||
void onOpen(LinkableElement link) => handleLinkTap(context, link.url);
|
||||
final textScaleFactor = systemTextScaleFactor(context, style);
|
||||
|
||||
if (PlatformInfo.isDesktop) {
|
||||
final linkify = SelectableLinkify(
|
||||
text: text,
|
||||
style: style,
|
||||
linkStyle: effectiveLinkStyle,
|
||||
options: options,
|
||||
linkifiers: linkifiers,
|
||||
onOpen: onOpen,
|
||||
textScaleFactor: textScaleFactor,
|
||||
);
|
||||
if (onSecondaryTap == null) return linkify;
|
||||
return Listener(
|
||||
onPointerDown: (event) {
|
||||
if (event.buttons & kSecondaryMouseButton != 0) onSecondaryTap();
|
||||
},
|
||||
behavior: HitTestBehavior.translucent,
|
||||
child: linkify,
|
||||
);
|
||||
}
|
||||
return Linkify(
|
||||
return _InteractiveMessageText(
|
||||
text: text,
|
||||
style: style,
|
||||
linkStyle: effectiveLinkStyle,
|
||||
options: options,
|
||||
linkifiers: linkifiers,
|
||||
onOpen: onOpen,
|
||||
textScaleFactor: textScaleFactor,
|
||||
linkStyle: linkStyle,
|
||||
coordinateStyle: coordinateStyle,
|
||||
backgroundColor: backgroundColor,
|
||||
onSecondaryTap: onSecondaryTap,
|
||||
);
|
||||
}
|
||||
|
||||
static void openCoordinateMap(
|
||||
BuildContext context,
|
||||
CoordinateElement coordinate,
|
||||
) {
|
||||
Navigator.of(context).push(
|
||||
MaterialPageRoute<void>(
|
||||
builder: (_) => CoordinateMapScreen(
|
||||
latitude: coordinate.latitude,
|
||||
longitude: coordinate.longitude,
|
||||
label: coordinate.text,
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
static Future<void> copyCoordinateLocation(
|
||||
BuildContext context,
|
||||
String text,
|
||||
) async {
|
||||
await Clipboard.setData(ClipboardData(text: text));
|
||||
if (!context.mounted) return;
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(context.l10n.coordinate_copied),
|
||||
);
|
||||
}
|
||||
|
||||
static Future<void> openCoordinateInExternalMaps(
|
||||
BuildContext context,
|
||||
double latitude,
|
||||
double longitude,
|
||||
) async {
|
||||
final uri = buildExternalMapUri(latitude, longitude);
|
||||
try {
|
||||
if (!await launchUrl(uri, mode: LaunchMode.externalApplication)) {
|
||||
if (context.mounted) {
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(context.l10n.chat_couldNotOpenLink(uri.toString())),
|
||||
backgroundColor: Theme.of(context).colorScheme.error,
|
||||
);
|
||||
}
|
||||
}
|
||||
} catch (_) {
|
||||
if (context.mounted) {
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(context.l10n.chat_couldNotOpenLink(uri.toString())),
|
||||
backgroundColor: Theme.of(context).colorScheme.error,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static Future<void> showCoordinateActionSheet(
|
||||
BuildContext context,
|
||||
CoordinateElement coordinate,
|
||||
) {
|
||||
return showMeshSheet<void>(
|
||||
context,
|
||||
builder: (sheetContext) {
|
||||
final l10n = sheetContext.l10n;
|
||||
return SafeArea(
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
BottomSheetHeader(
|
||||
title: coordinate.text,
|
||||
subtitle: l10n.chat_location,
|
||||
),
|
||||
ListTile(
|
||||
leading: const Icon(Icons.copy),
|
||||
title: Text(l10n.coordinate_copyLocation),
|
||||
onTap: () {
|
||||
Navigator.pop(sheetContext);
|
||||
copyCoordinateLocation(context, coordinate.text);
|
||||
},
|
||||
),
|
||||
ListTile(
|
||||
leading: const Icon(Icons.open_in_new),
|
||||
title: Text(l10n.coordinate_openInMaps),
|
||||
onTap: () {
|
||||
Navigator.pop(sheetContext);
|
||||
openCoordinateInExternalMaps(
|
||||
context,
|
||||
coordinate.latitude,
|
||||
coordinate.longitude,
|
||||
);
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@@ -139,3 +238,175 @@ class LinkHandler {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Extends [TapGestureRecognizer] so Flutter's paragraph/editable semantics
|
||||
/// recognize it as a tappable link while also forwarding pointers to an owned
|
||||
/// [LongPressGestureRecognizer] in the same gesture arena.
|
||||
class _CoordinateGestureRecognizer extends TapGestureRecognizer {
|
||||
final LongPressGestureRecognizer _longPress;
|
||||
|
||||
_CoordinateGestureRecognizer({
|
||||
required VoidCallback onTap,
|
||||
required VoidCallback onLongPress,
|
||||
}) : _longPress = LongPressGestureRecognizer()..onLongPress = onLongPress {
|
||||
this.onTap = onTap;
|
||||
}
|
||||
|
||||
@override
|
||||
void addPointer(PointerDownEvent event) {
|
||||
super.addPointer(event);
|
||||
_longPress.addPointer(event);
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_longPress.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
class _InteractiveMessageText extends StatefulWidget {
|
||||
final String text;
|
||||
final TextStyle style;
|
||||
final TextStyle? linkStyle;
|
||||
final TextStyle? coordinateStyle;
|
||||
final Color? backgroundColor;
|
||||
final VoidCallback? onSecondaryTap;
|
||||
|
||||
const _InteractiveMessageText({
|
||||
required this.text,
|
||||
required this.style,
|
||||
this.linkStyle,
|
||||
this.coordinateStyle,
|
||||
this.backgroundColor,
|
||||
this.onSecondaryTap,
|
||||
});
|
||||
|
||||
@override
|
||||
State<_InteractiveMessageText> createState() =>
|
||||
_InteractiveMessageTextState();
|
||||
}
|
||||
|
||||
class _InteractiveMessageTextState extends State<_InteractiveMessageText> {
|
||||
late List<({LinkifyElement element, GestureRecognizer? recognizer})> _items;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_rebuildItems();
|
||||
}
|
||||
|
||||
@override
|
||||
void didUpdateWidget(covariant _InteractiveMessageText oldWidget) {
|
||||
super.didUpdateWidget(oldWidget);
|
||||
if (oldWidget.text != widget.text) {
|
||||
_disposeRecognizers();
|
||||
_rebuildItems();
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_disposeRecognizers();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
void _disposeRecognizers() {
|
||||
for (final item in _items) {
|
||||
item.recognizer?.dispose();
|
||||
}
|
||||
_items = const [];
|
||||
}
|
||||
|
||||
void _rebuildItems() {
|
||||
final elements = CoordinateParser.linkifyWithCoordinates(widget.text);
|
||||
_items = [
|
||||
for (final element in elements)
|
||||
(element: element, recognizer: _createRecognizer(element)),
|
||||
];
|
||||
}
|
||||
|
||||
GestureRecognizer? _createRecognizer(LinkifyElement element) {
|
||||
if (element is CoordinateElement) {
|
||||
return _CoordinateGestureRecognizer(
|
||||
onTap: () {
|
||||
if (!mounted) return;
|
||||
LinkHandler.openCoordinateMap(context, element);
|
||||
},
|
||||
onLongPress: () {
|
||||
if (!mounted) return;
|
||||
LinkHandler.showCoordinateActionSheet(context, element);
|
||||
},
|
||||
);
|
||||
}
|
||||
if (element is LinkableElement) {
|
||||
return TapGestureRecognizer()
|
||||
..onTap = () {
|
||||
if (!mounted) return;
|
||||
LinkHandler.handleLinkTap(context, element.url);
|
||||
};
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
InlineSpan _buildElementSpan(
|
||||
({LinkifyElement element, GestureRecognizer? recognizer}) item,
|
||||
TextStyle effectiveLinkStyle,
|
||||
TextStyle effectiveCoordinateStyle,
|
||||
) {
|
||||
final element = item.element;
|
||||
if (element is CoordinateElement) {
|
||||
return TextSpan(
|
||||
text: element.text,
|
||||
style: effectiveCoordinateStyle,
|
||||
recognizer: item.recognizer,
|
||||
mouseCursor: SystemMouseCursors.click,
|
||||
);
|
||||
}
|
||||
if (element is LinkableElement) {
|
||||
return TextSpan(
|
||||
text: element.text,
|
||||
style: effectiveLinkStyle,
|
||||
recognizer: item.recognizer,
|
||||
mouseCursor: SystemMouseCursors.click,
|
||||
);
|
||||
}
|
||||
return TextSpan(text: element.text, style: widget.style);
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final effectiveLinkStyle =
|
||||
widget.linkStyle ?? LinkHandler.defaultLinkStyle(context, widget.style);
|
||||
final effectiveCoordinateStyle =
|
||||
widget.coordinateStyle ??
|
||||
LinkHandler.defaultCoordinateStyle(
|
||||
context,
|
||||
widget.style,
|
||||
backgroundColor: widget.backgroundColor,
|
||||
);
|
||||
final span = TextSpan(
|
||||
style: widget.style,
|
||||
children: [
|
||||
for (final item in _items)
|
||||
_buildElementSpan(item, effectiveLinkStyle, effectiveCoordinateStyle),
|
||||
],
|
||||
);
|
||||
|
||||
if (PlatformInfo.isDesktop) {
|
||||
final selectable = SelectableText.rich(span);
|
||||
if (widget.onSecondaryTap == null) return selectable;
|
||||
return Listener(
|
||||
onPointerDown: (event) {
|
||||
if (event.buttons & kSecondaryMouseButton != 0) {
|
||||
widget.onSecondaryTap!();
|
||||
}
|
||||
},
|
||||
behavior: HitTestBehavior.translucent,
|
||||
child: selectable,
|
||||
);
|
||||
}
|
||||
|
||||
return Text.rich(span);
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,5 @@
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:latlong2/latlong.dart';
|
||||
|
||||
import '../connector/meshcore_protocol.dart';
|
||||
@@ -7,59 +9,380 @@ import '../models/contact.dart';
|
||||
class PathHopResolver {
|
||||
const PathHopResolver._();
|
||||
|
||||
/// Maximum plausible single-hop LoRa RF link distance in meters (250 km).
|
||||
/// Accommodates long-range line-of-sight mountain-top hops while rejecting
|
||||
/// multi-hundred/multi-thousand-km prefix collisions.
|
||||
static const double maxSingleHopDistanceMeters = 250000.0;
|
||||
|
||||
static List<Contact?> resolve({
|
||||
required List<int> pathBytes,
|
||||
required List<Contact> contacts,
|
||||
LatLng? endpoint,
|
||||
bool resolveFromEnd = false,
|
||||
int pathHashByteWidth = 1,
|
||||
double maxHopDistanceMeters = maxSingleHopDistanceMeters,
|
||||
List<Contact>? preferredContacts,
|
||||
}) {
|
||||
final width = pathHashByteWidth.clamp(1, 3).toInt();
|
||||
final candidatesByPrefix = <String, List<Contact>>{};
|
||||
for (final contact in contacts) {
|
||||
if (contact.publicKey.length < width) continue;
|
||||
if (contact.type != advTypeRepeater && contact.type != advTypeRoom) {
|
||||
continue;
|
||||
final hops = PathHelper.splitPathBytes(pathBytes, width);
|
||||
return resolveHops(
|
||||
hops: hops,
|
||||
contacts: contacts,
|
||||
endpoint: endpoint,
|
||||
resolveFromEnd: resolveFromEnd,
|
||||
maxHopDistanceMeters: maxHopDistanceMeters,
|
||||
preferredContacts: preferredContacts,
|
||||
);
|
||||
}
|
||||
|
||||
static List<Contact?> resolveHops({
|
||||
required List<Uint8List> hops,
|
||||
required List<Contact> contacts,
|
||||
LatLng? endpoint,
|
||||
bool resolveFromEnd = false,
|
||||
double maxHopDistanceMeters = maxSingleHopDistanceMeters,
|
||||
bool Function(Contact)? contactFilter,
|
||||
List<Contact>? preferredContacts,
|
||||
}) {
|
||||
if (hops.isEmpty) return const [];
|
||||
|
||||
final widths = <int>{
|
||||
for (final hop in hops)
|
||||
if (hop.isNotEmpty) hop.length,
|
||||
};
|
||||
bool includeContact(Contact contact) =>
|
||||
contactFilter?.call(contact) ??
|
||||
(contact.type == advTypeRepeater || contact.type == advTypeRoom);
|
||||
|
||||
void indexContact(Map<String, List<Contact>> buckets, Contact contact) {
|
||||
for (final width in widths) {
|
||||
if (contact.publicKey.length < width) continue;
|
||||
final prefix = PathHelper.formatHopHex(
|
||||
contact.publicKey.sublist(0, width),
|
||||
);
|
||||
buckets.putIfAbsent(prefix, () => <Contact>[]).add(contact);
|
||||
}
|
||||
final prefix = PathHelper.formatHopHex(
|
||||
contact.publicKey.sublist(0, width),
|
||||
);
|
||||
candidatesByPrefix.putIfAbsent(prefix, () => <Contact>[]).add(contact);
|
||||
}
|
||||
for (final candidates in candidatesByPrefix.values) {
|
||||
|
||||
final preferredKeys = <String>{};
|
||||
final preferredByPrefix = <String, List<Contact>>{};
|
||||
if (preferredContacts != null) {
|
||||
for (final contact in preferredContacts) {
|
||||
if (!includeContact(contact)) continue;
|
||||
preferredKeys.add(contact.publicKeyHex);
|
||||
indexContact(preferredByPrefix, contact);
|
||||
}
|
||||
}
|
||||
|
||||
final fallbackByPrefix = <String, List<Contact>>{};
|
||||
for (final contact in contacts) {
|
||||
if (!includeContact(contact)) continue;
|
||||
if (preferredKeys.contains(contact.publicKeyHex)) continue;
|
||||
indexContact(fallbackByPrefix, contact);
|
||||
}
|
||||
|
||||
for (final candidates in preferredByPrefix.values) {
|
||||
candidates.sort((a, b) => b.lastSeen.compareTo(a.lastSeen));
|
||||
}
|
||||
for (final candidates in fallbackByPrefix.values) {
|
||||
candidates.sort((a, b) => b.lastSeen.compareTo(a.lastSeen));
|
||||
}
|
||||
|
||||
final hops = PathHelper.splitPathBytes(pathBytes, width);
|
||||
final resolved = List<Contact?>.filled(hops.length, null);
|
||||
final hopCount = hops.length;
|
||||
final resolved = List<Contact?>.filled(hopCount, null);
|
||||
final indexes = resolveFromEnd
|
||||
? List<int>.generate(hops.length, (i) => hops.length - 1 - i)
|
||||
: List<int>.generate(hops.length, (i) => i);
|
||||
? List<int>.generate(hopCount, (i) => hopCount - 1 - i)
|
||||
: List<int>.generate(hopCount, (i) => i);
|
||||
final stepPrefixes = <String>[
|
||||
for (final index in indexes) PathHelper.formatHopHex(hops[index]),
|
||||
];
|
||||
final distance = Distance();
|
||||
var previousPosition = endpoint;
|
||||
|
||||
for (final index in indexes) {
|
||||
final candidates =
|
||||
candidatesByPrefix[PathHelper.formatHopHex(hops[index])];
|
||||
if (candidates == null || candidates.isEmpty) continue;
|
||||
(Contact, double)? pickNearestLocatedFrom(
|
||||
Map<String, List<Contact>> buckets,
|
||||
String prefix,
|
||||
Set<Contact> used,
|
||||
LatLng anchor,
|
||||
double maxDistanceMeters,
|
||||
) {
|
||||
final candidates = buckets[prefix];
|
||||
if (candidates == null || candidates.isEmpty) return null;
|
||||
Contact? best;
|
||||
double? bestDistance;
|
||||
for (final candidate in candidates) {
|
||||
if (used.contains(candidate)) continue;
|
||||
final position = _positionOf(candidate);
|
||||
if (position == null) continue;
|
||||
final d = distance(anchor, position);
|
||||
if (d <= maxDistanceMeters &&
|
||||
(bestDistance == null || d < bestDistance)) {
|
||||
bestDistance = d;
|
||||
best = candidate;
|
||||
}
|
||||
}
|
||||
if (best == null || bestDistance == null) return null;
|
||||
return (best, bestDistance);
|
||||
}
|
||||
|
||||
var bestIndex = 0;
|
||||
if (previousPosition != null && candidates.length > 1) {
|
||||
double? nearestDistance;
|
||||
for (var i = 0; i < candidates.length; i++) {
|
||||
final position = _positionOf(candidates[i]);
|
||||
if (position == null) continue;
|
||||
final candidateDistance = distance(previousPosition, position);
|
||||
if (nearestDistance == null || candidateDistance < nearestDistance) {
|
||||
nearestDistance = candidateDistance;
|
||||
bestIndex = i;
|
||||
Contact? pickFirstUnlocatedFrom(
|
||||
Map<String, List<Contact>> buckets,
|
||||
String prefix,
|
||||
Set<Contact> used,
|
||||
) {
|
||||
final candidates = buckets[prefix];
|
||||
if (candidates == null || candidates.isEmpty) return null;
|
||||
for (final candidate in candidates) {
|
||||
if (used.contains(candidate)) continue;
|
||||
if (_positionOf(candidate) == null) return candidate;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Contact? pickFirstAnyFrom(
|
||||
Map<String, List<Contact>> buckets,
|
||||
String prefix,
|
||||
Set<Contact> used,
|
||||
) {
|
||||
final candidates = buckets[prefix];
|
||||
if (candidates == null || candidates.isEmpty) return null;
|
||||
for (final candidate in candidates) {
|
||||
if (!used.contains(candidate)) return candidate;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
(Contact, double, bool)? pickBestLocated(
|
||||
String prefix,
|
||||
Set<Contact> used,
|
||||
LatLng anchor,
|
||||
double maxDistanceMeters,
|
||||
) {
|
||||
final preferred = pickNearestLocatedFrom(
|
||||
preferredByPrefix,
|
||||
prefix,
|
||||
used,
|
||||
anchor,
|
||||
maxDistanceMeters,
|
||||
);
|
||||
if (preferred != null) return (preferred.$1, preferred.$2, true);
|
||||
if (pickFirstUnlocatedFrom(preferredByPrefix, prefix, used) != null) {
|
||||
return null;
|
||||
}
|
||||
final fallback = pickNearestLocatedFrom(
|
||||
fallbackByPrefix,
|
||||
prefix,
|
||||
used,
|
||||
anchor,
|
||||
maxDistanceMeters,
|
||||
);
|
||||
if (fallback != null) return (fallback.$1, fallback.$2, false);
|
||||
return null;
|
||||
}
|
||||
|
||||
Contact? pickBestUnlocated(String prefix, Set<Contact> used) {
|
||||
return pickFirstUnlocatedFrom(preferredByPrefix, prefix, used) ??
|
||||
pickFirstUnlocatedFrom(fallbackByPrefix, prefix, used);
|
||||
}
|
||||
|
||||
Contact? pickBestAny(String prefix, Set<Contact> used) {
|
||||
return pickFirstAnyFrom(preferredByPrefix, prefix, used) ??
|
||||
pickFirstAnyFrom(fallbackByPrefix, prefix, used);
|
||||
}
|
||||
|
||||
final used = Set<Contact>.identity();
|
||||
|
||||
if (endpoint != null) {
|
||||
var previousPosition = endpoint;
|
||||
var lastAnchorStep = -1;
|
||||
for (var step = 0; step < hopCount; step++) {
|
||||
final prefix = stepPrefixes[step];
|
||||
final hopGap = step - lastAnchorStep;
|
||||
final maxAllowed = hopGap * maxHopDistanceMeters;
|
||||
final preferred = pickNearestLocatedFrom(
|
||||
preferredByPrefix,
|
||||
prefix,
|
||||
used,
|
||||
previousPosition,
|
||||
maxAllowed,
|
||||
);
|
||||
if (preferred != null) {
|
||||
used.add(preferred.$1);
|
||||
resolved[indexes[step]] = preferred.$1;
|
||||
previousPosition = _positionOf(preferred.$1)!;
|
||||
lastAnchorStep = step;
|
||||
continue;
|
||||
}
|
||||
final preferredUnlocated = pickFirstUnlocatedFrom(
|
||||
preferredByPrefix,
|
||||
prefix,
|
||||
used,
|
||||
);
|
||||
if (preferredUnlocated != null) {
|
||||
used.add(preferredUnlocated);
|
||||
resolved[indexes[step]] = preferredUnlocated;
|
||||
continue;
|
||||
}
|
||||
final fallback = pickNearestLocatedFrom(
|
||||
fallbackByPrefix,
|
||||
prefix,
|
||||
used,
|
||||
previousPosition,
|
||||
maxAllowed,
|
||||
);
|
||||
if (fallback != null) {
|
||||
used.add(fallback.$1);
|
||||
resolved[indexes[step]] = fallback.$1;
|
||||
previousPosition = _positionOf(fallback.$1)!;
|
||||
lastAnchorStep = step;
|
||||
} else {
|
||||
final unlocated = pickFirstUnlocatedFrom(
|
||||
fallbackByPrefix,
|
||||
prefix,
|
||||
used,
|
||||
);
|
||||
if (unlocated != null) {
|
||||
used.add(unlocated);
|
||||
resolved[indexes[step]] = unlocated;
|
||||
}
|
||||
}
|
||||
}
|
||||
return resolved;
|
||||
}
|
||||
|
||||
final contact = candidates.removeAt(bestIndex);
|
||||
resolved[index] = contact;
|
||||
previousPosition = _positionOf(contact) ?? previousPosition;
|
||||
// Without a known endpoint, find the located anchor whose plausible chain
|
||||
// explains the most located hops so a single distant prefix collision does
|
||||
// not poison the rest of the path.
|
||||
bool bucketHasLocated(Map<String, List<Contact>> buckets) {
|
||||
for (final prefix in stepPrefixes) {
|
||||
final candidates = buckets[prefix];
|
||||
if (candidates != null &&
|
||||
candidates.any((c) => _positionOf(c) != null)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
final hasAnyLocated =
|
||||
bucketHasLocated(preferredByPrefix) ||
|
||||
bucketHasLocated(fallbackByPrefix);
|
||||
|
||||
if (!hasAnyLocated) {
|
||||
for (var step = 0; step < hopCount; step++) {
|
||||
final contact = pickBestAny(stepPrefixes[step], used);
|
||||
if (contact != null) {
|
||||
used.add(contact);
|
||||
resolved[indexes[step]] = contact;
|
||||
}
|
||||
}
|
||||
return resolved;
|
||||
}
|
||||
|
||||
List<Contact?>? bestRun;
|
||||
var bestLocatedCount = 0;
|
||||
var bestPreferredCount = 0;
|
||||
var bestTotalDistance = double.infinity;
|
||||
var bestLastSeenSum = -1;
|
||||
|
||||
for (var anchorStep = 0; anchorStep < hopCount; anchorStep++) {
|
||||
final prefix = stepPrefixes[anchorStep];
|
||||
final anchorCandidates = <(Contact, bool)>[
|
||||
for (final c in preferredByPrefix[prefix] ?? const <Contact>[])
|
||||
(c, true),
|
||||
for (final c in fallbackByPrefix[prefix] ?? const <Contact>[])
|
||||
(c, false),
|
||||
];
|
||||
for (final (anchorCandidate, isPreferredAnchor) in anchorCandidates) {
|
||||
final anchorPos = _positionOf(anchorCandidate);
|
||||
if (anchorPos == null) continue;
|
||||
|
||||
final run = List<Contact?>.filled(hopCount, null);
|
||||
final runUsed = Set<Contact>.identity()..add(anchorCandidate);
|
||||
run[anchorStep] = anchorCandidate;
|
||||
var locatedCount = 1;
|
||||
var preferredCount = isPreferredAnchor ? 1 : 0;
|
||||
var totalDistance = 0.0;
|
||||
var lastSeenSum = anchorCandidate.lastSeen.millisecondsSinceEpoch;
|
||||
|
||||
var prevPos = anchorPos;
|
||||
var lastAnchor = anchorStep;
|
||||
for (var step = anchorStep + 1; step < hopCount; step++) {
|
||||
final maxAllowed = (step - lastAnchor) * maxHopDistanceMeters;
|
||||
final match = pickBestLocated(
|
||||
stepPrefixes[step],
|
||||
runUsed,
|
||||
prevPos,
|
||||
maxAllowed,
|
||||
);
|
||||
if (match == null) continue;
|
||||
run[step] = match.$1;
|
||||
runUsed.add(match.$1);
|
||||
prevPos = _positionOf(match.$1)!;
|
||||
lastAnchor = step;
|
||||
locatedCount++;
|
||||
if (match.$3) preferredCount++;
|
||||
totalDistance += match.$2;
|
||||
lastSeenSum += match.$1.lastSeen.millisecondsSinceEpoch;
|
||||
}
|
||||
|
||||
prevPos = anchorPos;
|
||||
lastAnchor = anchorStep;
|
||||
for (var step = anchorStep - 1; step >= 0; step--) {
|
||||
final maxAllowed = (lastAnchor - step) * maxHopDistanceMeters;
|
||||
final match = pickBestLocated(
|
||||
stepPrefixes[step],
|
||||
runUsed,
|
||||
prevPos,
|
||||
maxAllowed,
|
||||
);
|
||||
if (match == null) continue;
|
||||
run[step] = match.$1;
|
||||
runUsed.add(match.$1);
|
||||
prevPos = _positionOf(match.$1)!;
|
||||
lastAnchor = step;
|
||||
locatedCount++;
|
||||
if (match.$3) preferredCount++;
|
||||
totalDistance += match.$2;
|
||||
lastSeenSum += match.$1.lastSeen.millisecondsSinceEpoch;
|
||||
}
|
||||
|
||||
final isBetter =
|
||||
locatedCount > bestLocatedCount ||
|
||||
(locatedCount == bestLocatedCount &&
|
||||
preferredCount > bestPreferredCount) ||
|
||||
(locatedCount == bestLocatedCount &&
|
||||
preferredCount == bestPreferredCount &&
|
||||
totalDistance < bestTotalDistance - 1e-6) ||
|
||||
(locatedCount == bestLocatedCount &&
|
||||
preferredCount == bestPreferredCount &&
|
||||
(totalDistance - bestTotalDistance).abs() <= 1e-6 &&
|
||||
lastSeenSum > bestLastSeenSum);
|
||||
if (isBetter) {
|
||||
bestRun = run;
|
||||
bestLocatedCount = locatedCount;
|
||||
bestPreferredCount = preferredCount;
|
||||
bestTotalDistance = totalDistance;
|
||||
bestLastSeenSum = lastSeenSum;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (bestRun != null) {
|
||||
for (var step = 0; step < hopCount; step++) {
|
||||
final contact = bestRun[step];
|
||||
if (contact != null) {
|
||||
used.add(contact);
|
||||
resolved[indexes[step]] = contact;
|
||||
}
|
||||
}
|
||||
for (var step = 0; step < hopCount; step++) {
|
||||
if (bestRun[step] != null) continue;
|
||||
final unlocated = pickBestUnlocated(stepPrefixes[step], used);
|
||||
if (unlocated != null) {
|
||||
used.add(unlocated);
|
||||
resolved[indexes[step]] = unlocated;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return resolved;
|
||||
|
||||
+24
-7
@@ -198,11 +198,11 @@
|
||||
"appSettings_advertisementNotificationsSubtitle": "Покажи известие, когато бъдат открити нови възли.",
|
||||
"appSettings_messaging": "Съобщения",
|
||||
"appSettings_clearPathOnMaxRetry": "Изчисти пътя при максимален брой опити",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Възстанови пътя към контакта след 5 неуспешни опита за изпращане",
|
||||
"appSettings_pathsWillBeCleared": "Пътищата ще бъдат почистени след 5 неуспешни опита.",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Нулиране на записания път към контакта, когато всички опити за изпращане се провалят",
|
||||
"appSettings_pathsWillBeCleared": "Пътищата се изчистват, когато всички опити за изпращане се провалят",
|
||||
"appSettings_pathsWillNotBeCleared": "Пътищата няма да бъдат автоматично изчистени.",
|
||||
"appSettings_autoRouteRotation": "Автоматична ротация на маршрутите",
|
||||
"appSettings_autoRouteRotationSubtitle": "Превключвайте между най-добрите пътища и режим Flood",
|
||||
"appSettings_autoRouteRotationSubtitle": "При всеки директен опит се пробва друг известен маршрут. Следващите опити са Flood. Изключено запазва текущия път на контакта.",
|
||||
"appSettings_autoRouteRotationEnabled": "Автоматичната ротация на маршрутите е включена",
|
||||
"appSettings_autoRouteRotationDisabled": "Автоматичната ротация на маршрутите е изключена",
|
||||
"appSettings_battery": "Батерия",
|
||||
@@ -2383,7 +2383,7 @@
|
||||
"@repeater_clockSyncAfterLoginSubtitle": {
|
||||
"description": "Repeater setting subtitle: describes the clock sync after login behavior"
|
||||
},
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Автоматично изпращайте съобщение \"синхронизиране на часовника\" след успешно влизане.",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "По подразбиране следва „Повторители и стаи“ в настройките. Вкл. и Изкл. важат само за този повторител.",
|
||||
"repeater_clockSyncAfterLogin": "Синхронизиране на часовника след влизане",
|
||||
"chat_sendMessage": "Изпратете съобщение",
|
||||
"room_guest": "Информация за сървъра на стаята",
|
||||
@@ -3353,9 +3353,9 @@
|
||||
"settings_regionFetchNoneResponded": "Нито един близък ретранслатор не отговори. Приближете се до ретранслатор и опитайте отново.",
|
||||
"appSettings_sourceSummary": "{label} - {description}",
|
||||
"appSettings_routingSection": "Маршрутизиране",
|
||||
"appSettings_resetRoutingToDefault": "Нулиране на алгоритъма за маршрутизация до стойност по подразбиране",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Възстановяване на настройките на алгоритъма за маршрутизация до заводските стойности по подразбиране",
|
||||
"appSettings_routingResetToDefault": "Настройките на алгоритъма за маршрутизация са нулирани до стойност по подразбиране",
|
||||
"appSettings_resetRoutingToDefault": "Нулиране на настройките за маршрутизация до стойностите по подразбиране",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Възстановяване на настройките за маршрутизация в този раздел до стойностите по подразбиране",
|
||||
"appSettings_routingResetToDefault": "Настройките за маршрутизация са нулирани до стойностите по подразбиране",
|
||||
"appSettings_imageMessagesSection": "Съобщения с изображения",
|
||||
"appSettings_showApiKey": "Показване на API ключа",
|
||||
"appSettings_hideApiKey": "Скриване на API ключа",
|
||||
@@ -3777,6 +3777,23 @@
|
||||
"connectSheet_stopReconnecting": "Спри повторното свързване",
|
||||
"connectSheet_reconnectFailed": "Няма връзка с {name}. Уверете се, че е включено и наблизо.",
|
||||
"chat_composerOffline": "Свържете се с радио, за да изпращате съобщения",
|
||||
"appSettings_directRetries": "Директни опити: {count}",
|
||||
"appSettings_directRetriesSubtitle": "Колко пъти да се пробва известен маршрут. Достъпно и когато автоматичната ротация е изключена.",
|
||||
"appSettings_floodRetries": "Опити Flood: {count}",
|
||||
"appSettings_floodRetriesSubtitle": "Колко пъти да се използва Flood. Flood заема повече ефирно време. При включена ротация идват след директните опити.",
|
||||
"appSettings_loginAttempts": "Опити за вход: {count}",
|
||||
"appSettings_loginAttemptsSubtitle": "Колко пъти да се опитва вход към ретранслатор или room сървър, преди да се откаже.",
|
||||
"appSettings_repeatersAndRooms": "Повторители и стаи",
|
||||
"appSettings_clockSyncAfterLogin": "Синхронизиране на часовника при вход",
|
||||
"appSettings_clockSyncAfterLoginSubtitle": "След успешен вход в повторител се изпраща clock sync. Всеки повторител пак може да е По подразбиране, Вкл. или Изкл.",
|
||||
"appSettings_loginPasswordAutofocus": "Фокус върху полето за парола",
|
||||
"appSettings_loginPasswordAutofocusSubtitle": "При отваряне на вход в повторител или стая курсорът отива в празното поле за парола. Изключено оставя диалога видим, докато не докоснете полето.",
|
||||
"appSettings_resetRepeaterRoomSettings": "Нулиране на настройките за повторители и стаи",
|
||||
"appSettings_resetRepeaterRoomSettingsSubtitle": "Възстановява настройките в този раздел. Изборите за отделни повторители остават.",
|
||||
"appSettings_repeaterRoomSettingsReset": "Настройките за повторители и стаи са нулирани",
|
||||
"repeater_clockSyncDefault": "По подразбиране",
|
||||
"repeater_clockSyncOn": "Вкл.",
|
||||
"repeater_clockSyncOff": "Изкл.",
|
||||
"modelDownload_notDownloaded": "Не е изтеглен",
|
||||
"modelDownload_downloading": "Изтегляне",
|
||||
"modelDownload_active": "Активен",
|
||||
|
||||
+24
-7
@@ -549,11 +549,11 @@
|
||||
"appSettings_advertisementNotificationsSubtitle": "Zobrazit oznámení při objevení nových uzlů",
|
||||
"appSettings_messaging": "Zprávy",
|
||||
"appSettings_clearPathOnMaxRetry": "Vymazat cestu po maximu pokusů",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Resetovat cestu kontaktu po 5 neúspěšných pokusech o odeslání",
|
||||
"appSettings_pathsWillBeCleared": "Cesty budou vymazány po 5 neúspěšných pokusech",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Resetovat uloženou cestu kontaktu, když selžou všechny pokusy o odeslání",
|
||||
"appSettings_pathsWillBeCleared": "Cesty se vymažou, když selžou všechny pokusy o odeslání",
|
||||
"appSettings_pathsWillNotBeCleared": "Cesty nebudou automaticky mazány",
|
||||
"appSettings_autoRouteRotation": "Automatické střídání tras",
|
||||
"appSettings_autoRouteRotationSubtitle": "Střídat nejlepší cesty a režim flood",
|
||||
"appSettings_autoRouteRotationSubtitle": "Při každém přímém pokusu zkusit jinou známou trasu. Pozdější pokusy jsou Flood. Vypnuto ponechá aktuální cestu kontaktu.",
|
||||
"appSettings_autoRouteRotationEnabled": "Automatické střídání tras zapnuto",
|
||||
"appSettings_autoRouteRotationDisabled": "Automatické střídání tras vypnuto",
|
||||
"appSettings_maxMessageRetries": "Maximum opakování zprávy",
|
||||
@@ -1639,7 +1639,7 @@
|
||||
"repeater_settings": "Nastavení",
|
||||
"repeater_settingsSubtitle": "Konfigurace parametrů opakovače",
|
||||
"repeater_clockSyncAfterLogin": "Synchronizace hodin po přihlášení",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Automaticky odeslat „clock sync“ po úspěšném přihlášení",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Výchozí se řídí Opakovači a místnostmi v nastavení aplikace. Zapnuto a Vypnuto platí jen pro tento opakovač.",
|
||||
"repeater_statusTitle": "Stav opakovače",
|
||||
"repeater_routingMode": "Režim směrování",
|
||||
"repeater_refresh": "Obnovit",
|
||||
@@ -3890,9 +3890,9 @@
|
||||
}
|
||||
},
|
||||
"appSettings_routingSection": "Směrování",
|
||||
"appSettings_resetRoutingToDefault": "Obnovit výchozí směrovací algoritmus",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Obnovit nastavení směrovacího algoritmu na tovární hodnoty",
|
||||
"appSettings_routingResetToDefault": "Nastavení směrovacího algoritmu obnoveno na výchozí",
|
||||
"appSettings_resetRoutingToDefault": "Obnovit výchozí nastavení směrování",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Obnovit nastavení směrování v této části na výchozí hodnoty",
|
||||
"appSettings_routingResetToDefault": "Nastavení směrování obnoveno na výchozí",
|
||||
"appSettings_imageMessagesSection": "Obrázkové zprávy",
|
||||
"appSettings_showApiKey": "Zobrazit klíč API",
|
||||
"appSettings_hideApiKey": "Skrýt klíč API",
|
||||
@@ -4390,6 +4390,23 @@
|
||||
"connectSheet_stopReconnecting": "Zastavit připojování",
|
||||
"connectSheet_reconnectFailed": "Nelze se spojit s {name}. Ujistěte se, že je zapnuté a nablízku.",
|
||||
"chat_composerOffline": "Pro odesílání zpráv se připojte k rádiu",
|
||||
"appSettings_directRetries": "Přímé pokusy: {count}",
|
||||
"appSettings_directRetriesSubtitle": "Kolikrát se zkusí známá trasa. Dostupné i když je automatické střídání tras vypnuté.",
|
||||
"appSettings_floodRetries": "Pokusy Flood: {count}",
|
||||
"appSettings_floodRetriesSubtitle": "Kolikrát se použije Flood. Flood zabere víc vysílacího času. Při zapnutém střídání následují po přímých pokusech.",
|
||||
"appSettings_loginAttempts": "Pokusy o přihlášení: {count}",
|
||||
"appSettings_loginAttemptsSubtitle": "Kolikrát se zkusí přihlášení k opakovači nebo room serveru, než se to vzdá.",
|
||||
"appSettings_repeatersAndRooms": "Opakovače a místnosti",
|
||||
"appSettings_clockSyncAfterLogin": "Synchronizovat hodiny opakovače při přihlášení",
|
||||
"appSettings_clockSyncAfterLoginSubtitle": "Po úspěšném přihlášení k opakovači se odešle clock sync. Každý opakovač může dál zvolit Výchozí, Zapnuto nebo Vypnuto.",
|
||||
"appSettings_loginPasswordAutofocus": "Zaměřit pole hesla",
|
||||
"appSettings_loginPasswordAutofocusSubtitle": "Při otevření přihlášení k opakovači nebo místnosti je kurzor v prázdném poli hesla. Vypnuto nechá dialog viditelný, dokud na pole neklepnete.",
|
||||
"appSettings_resetRepeaterRoomSettings": "Obnovit nastavení opakovačů a místností",
|
||||
"appSettings_resetRepeaterRoomSettingsSubtitle": "Obnoví nastavení v této části. Volby uložené u jednotlivých opakovačů zůstanou.",
|
||||
"appSettings_repeaterRoomSettingsReset": "Nastavení opakovačů a místností obnoveno",
|
||||
"repeater_clockSyncDefault": "Výchozí",
|
||||
"repeater_clockSyncOn": "Zapnuto",
|
||||
"repeater_clockSyncOff": "Vypnuto",
|
||||
"modelDownload_notDownloaded": "Nestaženo",
|
||||
"modelDownload_downloading": "Stahování",
|
||||
"modelDownload_active": "Aktivní",
|
||||
|
||||
+24
-7
@@ -198,11 +198,11 @@
|
||||
"appSettings_advertisementNotificationsSubtitle": "Benachrichtigung anzeigen, wenn neue Knoten entdeckt werden",
|
||||
"appSettings_messaging": "Nachrichten",
|
||||
"appSettings_clearPathOnMaxRetry": "Pfad bei maximalen Wiederholungsversuchen löschen",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Kontaktpfade nach 5 fehlgeschlagenen Sendeversuchen zurücksetzen",
|
||||
"appSettings_pathsWillBeCleared": "Pfade werden nach 5 fehlgeschlagenen Wiederholungen gelöscht.",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Gespeicherten Kontaktpfad zurücksetzen, wenn alle Sendeversuche fehlschlagen",
|
||||
"appSettings_pathsWillBeCleared": "Pfade werden gelöscht, wenn alle Sendeversuche fehlschlagen",
|
||||
"appSettings_pathsWillNotBeCleared": "Pfade werden nicht automatisch gelöscht.",
|
||||
"appSettings_autoRouteRotation": "Automatische Routenrotation",
|
||||
"appSettings_autoRouteRotationSubtitle": "Zwischen den besten Pfaden und dem Flood-Modus wechseln",
|
||||
"appSettings_autoRouteRotationSubtitle": "Bei jedem direkten Versuch eine andere bekannte Route nutzen. Die späteren Versuche sind Flood. Aus behält den aktuellen Pfad des Kontakts.",
|
||||
"appSettings_autoRouteRotationEnabled": "Automatische Routenrotation aktiviert",
|
||||
"appSettings_autoRouteRotationDisabled": "Automatische Routenrotation deaktiviert",
|
||||
"appSettings_battery": "Akku",
|
||||
@@ -2511,7 +2511,7 @@
|
||||
"description": "Repeater setting subtitle: describes the clock sync after login behavior"
|
||||
},
|
||||
"repeater_clockSyncAfterLogin": "Uhrzeit-Synchronisation nach dem Anmelden",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Automatisch \"Uhrzeit-Synchronisierung\" nach erfolgreicher Anmeldung senden.",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Standard folgt Repeater und Räume in den App-Einstellungen. An und Aus gelten nur für diesen Repeater.",
|
||||
"repeater_guest": "Informationen zu Repeatern",
|
||||
"repeater_guestTools": "Gastwerkzeuge",
|
||||
"chat_sendMessage": "Nachricht senden",
|
||||
@@ -3488,9 +3488,9 @@
|
||||
"settings_regionFetchNoneResponded": "Kein Repeater in der Nähe hat geantwortet. Gehe näher an einen Repeater heran und versuche es erneut.",
|
||||
"appSettings_sourceSummary": "{label} - {description}",
|
||||
"appSettings_routingSection": "Routing",
|
||||
"appSettings_resetRoutingToDefault": "Routing-Algorithmus auf Standard zurücksetzen",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Routing-Algorithmus-Einstellungen auf Werkseinstellungen zurücksetzen",
|
||||
"appSettings_routingResetToDefault": "Routing-Algorithmus-Einstellungen auf Standard zurückgesetzt",
|
||||
"appSettings_resetRoutingToDefault": "Routing-Einstellungen auf Standard zurücksetzen",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Die Routing-Einstellungen in diesem Abschnitt auf die Standardwerte zurücksetzen",
|
||||
"appSettings_routingResetToDefault": "Routing-Einstellungen auf Standard zurückgesetzt",
|
||||
"appSettings_imageMessagesSection": "Bildnachrichten",
|
||||
"appSettings_showApiKey": "API-Schlüssel anzeigen",
|
||||
"appSettings_hideApiKey": "API-Schlüssel verbergen",
|
||||
@@ -3912,6 +3912,23 @@
|
||||
"connectSheet_stopReconnecting": "Wiederverbindung abbrechen",
|
||||
"connectSheet_reconnectFailed": "{name} ist nicht erreichbar. Stellen Sie sicher, dass es eingeschaltet und in der Nähe ist.",
|
||||
"chat_composerOffline": "Mit einem Funkgerät verbinden, um Nachrichten zu senden",
|
||||
"appSettings_directRetries": "Direkte Versuche: {count}",
|
||||
"appSettings_directRetriesSubtitle": "Wie oft eine bekannte Route versucht wird. Auch verfügbar, wenn die automatische Routenrotation aus ist.",
|
||||
"appSettings_floodRetries": "Flood-Versuche: {count}",
|
||||
"appSettings_floodRetriesSubtitle": "Wie oft geflutet wird. Flood verbraucht mehr Sendezeit. Bei eingeschalteter Rotation folgen diese auf die direkten Versuche.",
|
||||
"appSettings_loginAttempts": "Anmeldeversuche: {count}",
|
||||
"appSettings_loginAttemptsSubtitle": "Wie oft die Anmeldung an einem Repeater oder Room-Server versucht wird, bevor abgebrochen wird.",
|
||||
"appSettings_repeatersAndRooms": "Repeater und Räume",
|
||||
"appSettings_clockSyncAfterLogin": "Repeater-Uhr bei Anmeldung synchronisieren",
|
||||
"appSettings_clockSyncAfterLoginSubtitle": "Nach einer erfolgreichen Repeater-Anmeldung wird clock sync gesendet. Jeder Repeater kann weiter Standard, An oder Aus wählen.",
|
||||
"appSettings_loginPasswordAutofocus": "Passwortfeld fokussieren",
|
||||
"appSettings_loginPasswordAutofocusSubtitle": "Beim Öffnen einer Repeater- oder Raum-Anmeldung steht der Cursor im leeren Passwortfeld. Aus lässt den Dialog sichtbar, bis du das Feld antippst.",
|
||||
"appSettings_resetRepeaterRoomSettings": "Repeater- und Raum-Einstellungen zurücksetzen",
|
||||
"appSettings_resetRepeaterRoomSettingsSubtitle": "Stellt die Einstellungen in diesem Abschnitt wieder her. Gespeicherte Wahl bei einzelnen Repeatern bleibt.",
|
||||
"appSettings_repeaterRoomSettingsReset": "Repeater- und Raum-Einstellungen zurückgesetzt",
|
||||
"repeater_clockSyncDefault": "Standard",
|
||||
"repeater_clockSyncOn": "An",
|
||||
"repeater_clockSyncOff": "Aus",
|
||||
"modelDownload_notDownloaded": "Nicht heruntergeladen",
|
||||
"modelDownload_downloading": "Wird heruntergeladen",
|
||||
"modelDownload_active": "Aktiv",
|
||||
|
||||
+86
-8
@@ -614,15 +614,50 @@
|
||||
"appSettings_advertisementNotificationsSubtitle": "Show notification when new nodes are discovered",
|
||||
"appSettings_messaging": "Messaging",
|
||||
"appSettings_clearPathOnMaxRetry": "Clear Path on Max Retry",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Reset contact path after 5 failed send attempts",
|
||||
"appSettings_pathsWillBeCleared": "Paths will be cleared after 5 failed retries",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Reset the contact's saved path after every send attempt fails",
|
||||
"appSettings_pathsWillBeCleared": "Paths will be cleared after all send attempts fail",
|
||||
"appSettings_pathsWillNotBeCleared": "Paths will not be auto-cleared",
|
||||
"appSettings_autoRouteRotation": "Auto Route Rotation",
|
||||
"appSettings_autoRouteRotationSubtitle": "Cycle between best paths and flood mode",
|
||||
"appSettings_autoRouteRotationSubtitle": "On each direct attempt, try a different known route. Later attempts flood. Off keeps the contact's current path.",
|
||||
"appSettings_autoRouteRotationEnabled": "Auto route rotation enabled",
|
||||
"appSettings_autoRouteRotationDisabled": "Auto route rotation disabled",
|
||||
"appSettings_maxMessageRetries": "Max Message Retries",
|
||||
"appSettings_maxMessageRetriesSubtitle": "Number of retry attempts before marking a message as failed",
|
||||
"appSettings_directRetries": "Direct attempts: {count}",
|
||||
"@appSettings_directRetries": {
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"appSettings_directRetriesSubtitle": "How many times to try a known route. This stays available when auto route rotation is off.",
|
||||
"appSettings_floodRetries": "Flood attempts: {count}",
|
||||
"@appSettings_floodRetries": {
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"appSettings_floodRetriesSubtitle": "How many times to flood. Floods use more airtime. With rotation on, these follow the direct attempts.",
|
||||
"appSettings_loginAttempts": "Login attempts: {count}",
|
||||
"@appSettings_loginAttempts": {
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"appSettings_loginAttemptsSubtitle": "How many times to try logging in to a repeater or room server before giving up.",
|
||||
"appSettings_repeatersAndRooms": "Repeaters and Rooms",
|
||||
"appSettings_clockSyncAfterLogin": "Sync repeater clock on login",
|
||||
"appSettings_clockSyncAfterLoginSubtitle": "After a successful repeater login, send clock sync. Each repeater can still choose Default, On, or Off.",
|
||||
"appSettings_loginPasswordAutofocus": "Focus the password field",
|
||||
"appSettings_loginPasswordAutofocusSubtitle": "When opening a repeater or room login, put the cursor in the password field if it is empty. Off leaves the dialog visible until you tap the field.",
|
||||
"appSettings_resetRepeaterRoomSettings": "Reset repeater and room settings to defaults",
|
||||
"appSettings_resetRepeaterRoomSettingsSubtitle": "Restore the settings in this section to their defaults. Choices saved on individual repeaters stay as they are.",
|
||||
"appSettings_repeaterRoomSettingsReset": "Repeater and room settings reset to defaults",
|
||||
"appSettings_ipfsImageLinks": "IPFS provider configuration",
|
||||
"appSettings_ipfsImageLinksSubtitle": "Upload for url Images (or Files) via IPFS provider and default gateway to receive",
|
||||
"appSettings_loadLinkImages": "Load images from links",
|
||||
@@ -840,6 +875,31 @@
|
||||
"contacts_filterContacts": "Filter contacts...",
|
||||
"contacts_noContactsMatchFilter": "No contacts match your filter",
|
||||
"contacts_noMembers": "No members",
|
||||
"contacts_groupCurrentMembers": "Current members ({count})",
|
||||
"@contacts_groupCurrentMembers": {
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contacts_groupAddContacts": "Add contacts",
|
||||
"contacts_groupRemoveMember": "Remove {name} from group",
|
||||
"@contacts_groupRemoveMember": {
|
||||
"placeholders": {
|
||||
"name": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contacts_groupAddMember": "Add {name} to group",
|
||||
"@contacts_groupAddMember": {
|
||||
"placeholders": {
|
||||
"name": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contacts_lastSeenNow": "recently",
|
||||
"contacts_lastSeenNever": "not heard yet",
|
||||
"contacts_lastSeenMinsAgo": "~ {minutes} min.",
|
||||
@@ -1857,7 +1917,10 @@
|
||||
"@repeater_clockSyncAfterLogin": {
|
||||
"description": "Repeater setting: auto sync device clock after successful login"
|
||||
},
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Automatically send \"clock sync\" after a successful login",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Default follows Repeaters and Rooms in App Settings. On and Off apply only to this repeater.",
|
||||
"repeater_clockSyncDefault": "Default",
|
||||
"repeater_clockSyncOn": "On",
|
||||
"repeater_clockSyncOff": "Off",
|
||||
"@repeater_clockSyncAfterLoginSubtitle": {
|
||||
"description": "Repeater setting subtitle: describes the clock sync after login behavior"
|
||||
},
|
||||
@@ -3906,9 +3969,9 @@
|
||||
"appSettings_sourceSummary": "{label} - {description}",
|
||||
"@appSettings_sourceSummary": {"placeholders": {"label": {"type": "String"}, "description": {"type": "String"}}},
|
||||
"appSettings_routingSection": "Routing",
|
||||
"appSettings_resetRoutingToDefault": "Reset Routing Algorithm to Default",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Restore routing algorithm settings to factory defaults",
|
||||
"appSettings_routingResetToDefault": "Routing algorithm settings reset to default",
|
||||
"appSettings_resetRoutingToDefault": "Reset routing settings to defaults",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Restore the routing settings in this section to their defaults",
|
||||
"appSettings_routingResetToDefault": "Routing settings reset to defaults",
|
||||
"appSettings_imageMessagesSection": "Image messages",
|
||||
"appSettings_showApiKey": "Show API key",
|
||||
"appSettings_hideApiKey": "Hide API key",
|
||||
@@ -4385,5 +4448,20 @@
|
||||
"chatCompression_profile": "Cyr2Lat profile",
|
||||
"chatCompression_noStorageId": "Can't change compression until this channel has synced from the radio.",
|
||||
"chatCompression_saveFailed": "Couldn't save the compression setting. Showing the saved setting.",
|
||||
"messageMeta_smazCompressed": "SMAZ compressed"
|
||||
"messageMeta_smazCompressed": "SMAZ compressed",
|
||||
"addContact_title": "Add Contact",
|
||||
"addContact_infoBanner": "If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.",
|
||||
"addContact_contactType": "Contact Type",
|
||||
"addContact_name": "Name",
|
||||
"addContact_nameRequired": "Please enter a name",
|
||||
"addContact_publicKeyHex": "Public Key (hex)",
|
||||
"addContact_publicKeyRequired": "Please enter a public key",
|
||||
"addContact_publicKeyInvalid": "Public key must be 64 hex characters (32 bytes)",
|
||||
"addContact_clipboardKeyLoaded": "Public key filled in. Choose a contact type, enter a name, and tap save.",
|
||||
"addContact_fromDiscovered": "Add from Discovered Contacts",
|
||||
"addContact_saveFailed": "Failed to add contact.",
|
||||
"coordinateMap_title": "Location",
|
||||
"coordinate_copyLocation": "Copy location",
|
||||
"coordinate_openInMaps": "Open in maps",
|
||||
"coordinate_copied": "Location copied"
|
||||
}
|
||||
+24
-7
@@ -198,11 +198,11 @@
|
||||
"appSettings_advertisementNotificationsSubtitle": "Mostrar notificación cuando se descubren nuevos nodos",
|
||||
"appSettings_messaging": "Mensajería",
|
||||
"appSettings_clearPathOnMaxRetry": "Borrar ruta al máximo de reintentos",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Restablecer la ruta de contacto después de 5 intentos de envío fallidos",
|
||||
"appSettings_pathsWillBeCleared": "Las rutas se borrarán después de 5 intentos fallidos.",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Restablecer la ruta guardada del contacto cuando fallen todos los intentos de envío",
|
||||
"appSettings_pathsWillBeCleared": "Las rutas se borrarán cuando fallen todos los intentos de envío",
|
||||
"appSettings_pathsWillNotBeCleared": "Las rutas no se eliminarán automáticamente.",
|
||||
"appSettings_autoRouteRotation": "Rotación automática de rutas",
|
||||
"appSettings_autoRouteRotationSubtitle": "Alternar entre las mejores rutas y el modo Flood",
|
||||
"appSettings_autoRouteRotationSubtitle": "En cada intento directo, probar otra ruta conocida. Los intentos siguientes son Flood. Desactivado mantiene la ruta actual del contacto.",
|
||||
"appSettings_autoRouteRotationEnabled": "Rotación de ruta automática habilitada",
|
||||
"appSettings_autoRouteRotationDisabled": "Rotación de ruta automática desactivada",
|
||||
"appSettings_battery": "Batería",
|
||||
@@ -2426,7 +2426,7 @@
|
||||
"@repeater_clockSyncAfterLoginSubtitle": {
|
||||
"description": "Repeater setting subtitle: describes the clock sync after login behavior"
|
||||
},
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Enviar automáticamente la función de \"sincronización de reloj\" después de un inicio de sesión exitoso.",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Predeterminado sigue Repetidores y salas en Ajustes. Activado y Desactivado valen solo para este repetidor.",
|
||||
"repeater_clockSyncAfterLogin": "Sincronización del reloj después de iniciar sesión",
|
||||
"repeater_guest": "Información sobre repetidores",
|
||||
"chat_sendMessage": "Enviar mensaje",
|
||||
@@ -3373,9 +3373,9 @@
|
||||
"settings_regionFetchNoneResponded": "Ningún repetidor cercano respondió. Acércate a un repetidor e inténtalo de nuevo.",
|
||||
"appSettings_sourceSummary": "{label} - {description}",
|
||||
"appSettings_routingSection": "Enrutamiento",
|
||||
"appSettings_resetRoutingToDefault": "Restablecer algoritmo de enrutamiento a predeterminado",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Restaurar la configuración del algoritmo de enrutamiento a los valores predeterminados de fábrica",
|
||||
"appSettings_routingResetToDefault": "Configuración del algoritmo de enrutamiento restablecida a predeterminado",
|
||||
"appSettings_resetRoutingToDefault": "Restablecer la configuración de enrutamiento",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Restaurar los ajustes de enrutamiento de esta sección a sus valores predeterminados",
|
||||
"appSettings_routingResetToDefault": "Configuración de enrutamiento restablecida",
|
||||
"appSettings_imageMessagesSection": "Mensajes con imágenes",
|
||||
"appSettings_showApiKey": "Mostrar clave de API",
|
||||
"appSettings_hideApiKey": "Ocultar clave de API",
|
||||
@@ -3963,6 +3963,23 @@
|
||||
"connectSheet_stopReconnecting": "Dejar de reconectar",
|
||||
"connectSheet_reconnectFailed": "No se pudo conectar con {name}. Comprueba que esté encendida y cerca.",
|
||||
"chat_composerOffline": "Conéctate a una radio para enviar mensajes",
|
||||
"appSettings_directRetries": "Intentos directos: {count}",
|
||||
"appSettings_directRetriesSubtitle": "Cuántas veces probar una ruta conocida. Sigue disponible aunque la rotación automática esté desactivada.",
|
||||
"appSettings_floodRetries": "Intentos Flood: {count}",
|
||||
"appSettings_floodRetriesSubtitle": "Cuántas veces usar Flood. Flood usa más tiempo de aire. Con la rotación activada, van después de los intentos directos.",
|
||||
"appSettings_loginAttempts": "Intentos de inicio de sesión: {count}",
|
||||
"appSettings_loginAttemptsSubtitle": "Cuántas veces intentar iniciar sesión en un repetidor o servidor de sala antes de rendirse.",
|
||||
"appSettings_repeatersAndRooms": "Repetidores y salas",
|
||||
"appSettings_clockSyncAfterLogin": "Sincronizar el reloj del repetidor al iniciar sesión",
|
||||
"appSettings_clockSyncAfterLoginSubtitle": "Tras un inicio de sesión correcto en un repetidor se envía clock sync. Cada repetidor puede seguir eligiendo Predeterminado, Activado o Desactivado.",
|
||||
"appSettings_loginPasswordAutofocus": "Enfocar el campo de contraseña",
|
||||
"appSettings_loginPasswordAutofocusSubtitle": "Al abrir el inicio de sesión de un repetidor o una sala, el cursor va al campo de contraseña si está vacío. Desactivado deja el diálogo visible hasta que toques el campo.",
|
||||
"appSettings_resetRepeaterRoomSettings": "Restablecer ajustes de repetidores y salas",
|
||||
"appSettings_resetRepeaterRoomSettingsSubtitle": "Restaura los ajustes de esta sección. Las elecciones guardadas en cada repetidor se quedan.",
|
||||
"appSettings_repeaterRoomSettingsReset": "Ajustes de repetidores y salas restablecidos",
|
||||
"repeater_clockSyncDefault": "Predeterminado",
|
||||
"repeater_clockSyncOn": "Activado",
|
||||
"repeater_clockSyncOff": "Desactivado",
|
||||
"modelDownload_notDownloaded": "No descargado",
|
||||
"modelDownload_downloading": "Descargando",
|
||||
"modelDownload_active": "Activo",
|
||||
|
||||
+24
-7
@@ -198,11 +198,11 @@
|
||||
"appSettings_advertisementNotificationsSubtitle": "Afficher une notification lors de la découverte de nouveaux nœuds",
|
||||
"appSettings_messaging": "Messagerie",
|
||||
"appSettings_clearPathOnMaxRetry": "Effacer le chemin après le nombre maximal de tentatives",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Réinitialiser le chemin de contact après 5 tentatives d'envoi infructueuses",
|
||||
"appSettings_pathsWillBeCleared": "Les chemins seront effacés après 5 échecs.",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Réinitialiser le chemin enregistré du contact lorsque toutes les tentatives d'envoi échouent",
|
||||
"appSettings_pathsWillBeCleared": "Les chemins seront effacés si toutes les tentatives d'envoi échouent",
|
||||
"appSettings_pathsWillNotBeCleared": "Les chemins ne seront pas effacés automatiquement.",
|
||||
"appSettings_autoRouteRotation": "Rotation automatique du routage",
|
||||
"appSettings_autoRouteRotationSubtitle": "Alterner entre les meilleurs chemins et le mode flood",
|
||||
"appSettings_autoRouteRotationSubtitle": "À chaque tentative directe, essayer une autre route connue. Les tentatives suivantes sont en Flood. Désactivé : le chemin actuel du contact est conservé.",
|
||||
"appSettings_autoRouteRotationEnabled": "Rotation automatique du routage activée",
|
||||
"appSettings_autoRouteRotationDisabled": "Rotation automatique du routage désactivée",
|
||||
"appSettings_battery": "Batterie",
|
||||
@@ -2418,7 +2418,7 @@
|
||||
"@repeater_clockSyncAfterLoginSubtitle": {
|
||||
"description": "Repeater setting subtitle: describes the clock sync after login behavior"
|
||||
},
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Envoyer automatiquement une notification \"synchronisation de l'heure\" après une connexion réussie.",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Défaut suit Répéteurs et salons dans les paramètres. Activé et Désactivé ne concernent que ce répéteur.",
|
||||
"repeater_clockSyncAfterLogin": "Synchronisation de l'horloge après la connexion",
|
||||
"repeater_guestTools": "Outils pour les invités",
|
||||
"chat_sendMessage": "Envoyer un message",
|
||||
@@ -3373,9 +3373,9 @@
|
||||
"settings_regionFetchNoneResponded": "Aucun répéteur à proximité n'a répondu. Rapprochez-vous d'un répéteur et réessayez.",
|
||||
"appSettings_sourceSummary": "{label} - {description}",
|
||||
"appSettings_routingSection": "Routage",
|
||||
"appSettings_resetRoutingToDefault": "Réinitialiser l'algorithme de routage",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Restaurer les paramètres de l'algorithme de routage aux valeurs par défaut",
|
||||
"appSettings_routingResetToDefault": "Paramètres de l'algorithme de routage réinitialisés",
|
||||
"appSettings_resetRoutingToDefault": "Réinitialiser les paramètres de routage",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Rétablir les paramètres de routage de cette section à leurs valeurs par défaut",
|
||||
"appSettings_routingResetToDefault": "Paramètres de routage réinitialisés",
|
||||
"appSettings_imageMessagesSection": "Messages image",
|
||||
"appSettings_showApiKey": "Afficher la clé API",
|
||||
"appSettings_hideApiKey": "Masquer la clé API",
|
||||
@@ -3911,6 +3911,23 @@
|
||||
"connectSheet_stopReconnecting": "Arrêter la reconnexion",
|
||||
"connectSheet_reconnectFailed": "Impossible de joindre {name}. Vérifiez qu'elle est allumée et à proximité.",
|
||||
"chat_composerOffline": "Connectez-vous à une radio pour envoyer des messages",
|
||||
"appSettings_directRetries": "Tentatives directes : {count}",
|
||||
"appSettings_directRetriesSubtitle": "Nombre d'essais sur une route connue. Disponible même si la rotation automatique des routes est désactivée.",
|
||||
"appSettings_floodRetries": "Tentatives Flood : {count}",
|
||||
"appSettings_floodRetriesSubtitle": "Nombre de Flood. Un Flood utilise plus de temps d'antenne. Avec la rotation activée, ils suivent les tentatives directes.",
|
||||
"appSettings_loginAttempts": "Tentatives de connexion : {count}",
|
||||
"appSettings_loginAttemptsSubtitle": "Nombre d'essais de connexion à un répéteur ou à un serveur de salon avant d'abandonner.",
|
||||
"appSettings_repeatersAndRooms": "Répéteurs et salons",
|
||||
"appSettings_clockSyncAfterLogin": "Synchroniser l'horloge du répéteur à la connexion",
|
||||
"appSettings_clockSyncAfterLoginSubtitle": "Après une connexion réussie à un répéteur, clock sync est envoyé. Chaque répéteur peut encore choisir Défaut, Activé ou Désactivé.",
|
||||
"appSettings_loginPasswordAutofocus": "Placer le curseur dans le mot de passe",
|
||||
"appSettings_loginPasswordAutofocusSubtitle": "À l'ouverture d'une connexion répéteur ou salon, le curseur va dans le mot de passe s'il est vide. Désactivé laisse la fenêtre visible jusqu'à ce que vous touchiez le champ.",
|
||||
"appSettings_resetRepeaterRoomSettings": "Réinitialiser les paramètres répéteurs et salons",
|
||||
"appSettings_resetRepeaterRoomSettingsSubtitle": "Restaure les paramètres de cette section. Les choix enregistrés sur chaque répéteur restent.",
|
||||
"appSettings_repeaterRoomSettingsReset": "Paramètres répéteurs et salons réinitialisés",
|
||||
"repeater_clockSyncDefault": "Défaut",
|
||||
"repeater_clockSyncOn": "Activé",
|
||||
"repeater_clockSyncOff": "Désactivé",
|
||||
"modelDownload_notDownloaded": "Non téléchargé",
|
||||
"modelDownload_downloading": "Téléchargement",
|
||||
"modelDownload_active": "Actif",
|
||||
|
||||
+24
-7
@@ -269,11 +269,11 @@
|
||||
"appSettings_advertisementNotificationsSubtitle": "Értesítés megjelenítése új csomópontok felfedezésekor",
|
||||
"appSettings_messaging": "Üzenetküldés",
|
||||
"appSettings_clearPathOnMaxRetry": "Útvonal törlése a Max. újrapróbálkozásnál",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Állítsa vissza a kapcsolati elérési utat 5 sikertelen küldési kísérlet után",
|
||||
"appSettings_pathsWillBeCleared": "Az elérési utak 5 sikertelen újrapróbálkozás után törlődnek",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "A kapcsolat mentett útvonalának visszaállítása, ha minden küldési próbálkozás sikertelen",
|
||||
"appSettings_pathsWillBeCleared": "Az útvonalak törlődnek, ha minden küldési próbálkozás sikertelen",
|
||||
"appSettings_pathsWillNotBeCleared": "Az útvonalak nem törlődnek automatikusan",
|
||||
"appSettings_autoRouteRotation": "Automatikus útvonalváltás",
|
||||
"appSettings_autoRouteRotationSubtitle": "Váltson a legjobb útvonalak és a flood mód között",
|
||||
"appSettings_autoRouteRotationSubtitle": "Minden közvetlen próbálkozásnál másik ismert útvonalat próbál. A későbbiek Flood. Kikapcsolva a kapcsolat jelenlegi útvonalát használja.",
|
||||
"appSettings_autoRouteRotationEnabled": "Az automatikus útvonalforgatás engedélyezve",
|
||||
"appSettings_autoRouteRotationDisabled": "Az automatikus útvonalforgatás letiltva",
|
||||
"appSettings_maxMessageRetries": "Üzenet újrapróbálkozások maximális száma",
|
||||
@@ -2421,7 +2421,7 @@
|
||||
"@repeater_clockSyncAfterLoginSubtitle": {
|
||||
"description": "Repeater setting subtitle: describes the clock sync after login behavior"
|
||||
},
|
||||
"repeater_clockSyncAfterLoginSubtitle": "„Óraszinkronizálás” automatikus küldése sikeres bejelentkezés után",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Az Alapértelmezett az alkalmazás Átjátszók és szobák beállítását követi. A Be és a Ki csak erre az átjátszóra vonatkozik.",
|
||||
"repeater_clockSyncAfterLogin": "Óra szinkronizálás bejelentkezés után",
|
||||
"repeater_guestTools": "Vendégeszközök",
|
||||
"room_guest": "Szobaszerver információ",
|
||||
@@ -3392,9 +3392,9 @@
|
||||
"settings_regionFetchNoneResponded": "Egyik közeli átjátszó sem válaszolt. Menjen közelebb egy átjátszóhoz, és próbálja újra.",
|
||||
"appSettings_sourceSummary": "{label} - {description}",
|
||||
"appSettings_routingSection": "Útválasztás",
|
||||
"appSettings_resetRoutingToDefault": "Útvonaltervezési algoritmus visszaállítása alapértelmezettre",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Útvonaltervezési algoritmus beállításainak visszaállítása gyári alapértelmezett értékekre",
|
||||
"appSettings_routingResetToDefault": "Útvonaltervezési algoritmus beállításai visszaállítva alapértelmezettre",
|
||||
"appSettings_resetRoutingToDefault": "Útválasztási beállítások visszaállítása alapértelmezettre",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "A szakasz útvonalbeállításainak visszaállítása az alapértelmezett értékekre",
|
||||
"appSettings_routingResetToDefault": "Útválasztási beállítások visszaállítva alapértelmezettre",
|
||||
"appSettings_imageMessagesSection": "Képüzenetek",
|
||||
"appSettings_showApiKey": "API-kulcs megjelenítése",
|
||||
"appSettings_hideApiKey": "API-kulcs elrejtése",
|
||||
@@ -3868,6 +3868,23 @@
|
||||
"connectSheet_stopReconnecting": "Újracsatlakozás leállítása",
|
||||
"connectSheet_reconnectFailed": "Nem érhető el: {name}. Ellenőrizze, hogy be van-e kapcsolva és a közelben van-e.",
|
||||
"chat_composerOffline": "Üzenetküldéshez csatlakozzon rádióhoz",
|
||||
"appSettings_directRetries": "Közvetlen próbálkozások: {count}",
|
||||
"appSettings_directRetriesSubtitle": "Hányszor próbáljon ismert útvonalat. Akkor is beállítható, ha az automatikus útvonalváltás ki van kapcsolva.",
|
||||
"appSettings_floodRetries": "Flood próbálkozások: {count}",
|
||||
"appSettings_floodRetriesSubtitle": "Hányszor használjon Floodot. A Flood több adásidőt használ. Bekapcsolt váltásnál a közvetlen próbálkozások után jönnek.",
|
||||
"appSettings_loginAttempts": "Bejelentkezési próbálkozások: {count}",
|
||||
"appSettings_loginAttemptsSubtitle": "Hányszor próbáljon bejelentkezni egy átjátszóra vagy room szerverre, mielőtt feladja.",
|
||||
"appSettings_repeatersAndRooms": "Átjátszók és szobák",
|
||||
"appSettings_clockSyncAfterLogin": "Átjátszó órájának szinkronizálása belépéskor",
|
||||
"appSettings_clockSyncAfterLoginSubtitle": "Sikeres átjátszó-belépés után clock sync megy ki. Minden átjátszó továbbra lehet Alapértelmezett, Be vagy Ki.",
|
||||
"appSettings_loginPasswordAutofocus": "Jelszómező fókuszba",
|
||||
"appSettings_loginPasswordAutofocusSubtitle": "Átjátszó vagy szoba belépésének megnyitásakor a kurzor az üres jelszómezőbe kerül. Kikapcsolva a párbeszéd látható marad, amíg meg nem érinti a mezőt.",
|
||||
"appSettings_resetRepeaterRoomSettings": "Átjátszó- és szobabeállítások visszaállítása",
|
||||
"appSettings_resetRepeaterRoomSettingsSubtitle": "Visszaállítja a szakasz beállításait. Az egyes átjátszóknál mentett választás megmarad.",
|
||||
"appSettings_repeaterRoomSettingsReset": "Átjátszó- és szobabeállítások visszaállítva",
|
||||
"repeater_clockSyncDefault": "Alapért.",
|
||||
"repeater_clockSyncOn": "Be",
|
||||
"repeater_clockSyncOff": "Ki",
|
||||
"modelDownload_notDownloaded": "Nincs letöltve",
|
||||
"modelDownload_downloading": "Letöltés",
|
||||
"modelDownload_active": "Aktív",
|
||||
|
||||
+24
-7
@@ -197,11 +197,11 @@
|
||||
"appSettings_advertisementNotificationsSubtitle": "Mostra notifica quando vengono scoperti nuovi nodi",
|
||||
"appSettings_messaging": "Messaggi",
|
||||
"appSettings_clearPathOnMaxRetry": "Cancella percorso al massimo dei tentativi",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Reimposta il percorso di contatto dopo 5 tentativi di invio falliti",
|
||||
"appSettings_pathsWillBeCleared": "I percorsi verranno cancellati dopo 5 tentativi falliti.",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Reimposta il percorso salvato del contatto quando tutti i tentativi di invio falliscono",
|
||||
"appSettings_pathsWillBeCleared": "I percorsi verranno cancellati quando tutti i tentativi di invio falliscono",
|
||||
"appSettings_pathsWillNotBeCleared": "I percorsi non verranno cancellati automaticamente.",
|
||||
"appSettings_autoRouteRotation": "Rotazione Percorso Automatico",
|
||||
"appSettings_autoRouteRotationSubtitle": "Alterna tra i percorsi migliori e la modalità flood",
|
||||
"appSettings_autoRouteRotationSubtitle": "A ogni tentativo diretto, prova un altro percorso noto. I tentativi successivi sono Flood. Disattivato mantiene il percorso attuale del contatto.",
|
||||
"appSettings_autoRouteRotationEnabled": "Rotazione percorso automatico abilitata",
|
||||
"appSettings_autoRouteRotationDisabled": "Rotazione del percorso automatico disabilitata",
|
||||
"appSettings_battery": "Batteria",
|
||||
@@ -2432,7 +2432,7 @@
|
||||
"@repeater_clockSyncAfterLoginSubtitle": {
|
||||
"description": "Repeater setting subtitle: describes the clock sync after login behavior"
|
||||
},
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Invia automaticamente il comando \"sincronizzazione dell'orologio\" dopo un login riuscito.",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Predefinito segue Ripetitori e stanze nelle impostazioni. Attivo e Disattivo valgono solo per questo ripetitore.",
|
||||
"repeater_clockSyncAfterLogin": "Sincronizzazione dell'orologio dopo il login",
|
||||
"repeater_guest": "Informazioni sul ripetitore",
|
||||
"repeater_guestTools": "Strumenti per gli ospiti",
|
||||
@@ -3373,9 +3373,9 @@
|
||||
"settings_regionFetchNoneResponded": "Nessun ripetitore vicino ha risposto. Avvicinati a un ripetitore e riprova.",
|
||||
"appSettings_sourceSummary": "{label} - {description}",
|
||||
"appSettings_routingSection": "Instradamento",
|
||||
"appSettings_resetRoutingToDefault": "Reimposta algoritmo di instradamento sui valori predefiniti",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Ripristina le impostazioni dell'algoritmo di instradamento ai valori predefiniti di fabbrica",
|
||||
"appSettings_routingResetToDefault": "Impostazioni algoritmo di instradamento reimpostate sui valori predefiniti",
|
||||
"appSettings_resetRoutingToDefault": "Reimposta le impostazioni di instradamento sui valori predefiniti",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Ripristina le impostazioni di instradamento di questa sezione ai valori predefiniti",
|
||||
"appSettings_routingResetToDefault": "Impostazioni di instradamento reimpostate sui valori predefiniti",
|
||||
"appSettings_imageMessagesSection": "Messaggi immagine",
|
||||
"appSettings_showApiKey": "Mostra chiave API",
|
||||
"appSettings_hideApiKey": "Nascondi chiave API",
|
||||
@@ -3911,6 +3911,23 @@
|
||||
"connectSheet_stopReconnecting": "Interrompi la riconnessione",
|
||||
"connectSheet_reconnectFailed": "Impossibile raggiungere {name}. Assicurati che sia acceso e nelle vicinanze.",
|
||||
"chat_composerOffline": "Connettiti a una radio per inviare messaggi",
|
||||
"appSettings_directRetries": "Tentativi diretti: {count}",
|
||||
"appSettings_directRetriesSubtitle": "Quante volte provare un percorso noto. Resta disponibile anche con la rotazione automatica disattivata.",
|
||||
"appSettings_floodRetries": "Tentativi Flood: {count}",
|
||||
"appSettings_floodRetriesSubtitle": "Quante volte usare Flood. Flood usa più tempo in aria. Con la rotazione attiva, seguono i tentativi diretti.",
|
||||
"appSettings_loginAttempts": "Tentativi di accesso: {count}",
|
||||
"appSettings_loginAttemptsSubtitle": "Quante volte provare l'accesso a un ripetitore o a un server room prima di rinunciare.",
|
||||
"appSettings_repeatersAndRooms": "Ripetitori e stanze",
|
||||
"appSettings_clockSyncAfterLogin": "Sincronizza l'orologio del ripetitore all'accesso",
|
||||
"appSettings_clockSyncAfterLoginSubtitle": "Dopo un accesso riuscito a un ripetitore viene inviato clock sync. Ogni ripetitore può ancora scegliere Predefinito, Attivo o Disattivo.",
|
||||
"appSettings_loginPasswordAutofocus": "Attiva il campo password",
|
||||
"appSettings_loginPasswordAutofocusSubtitle": "All'apertura dell'accesso a un ripetitore o a una stanza, il cursore va nel campo password se è vuoto. Disattivo lascia visibile la finestra finché non tocchi il campo.",
|
||||
"appSettings_resetRepeaterRoomSettings": "Reimposta le impostazioni di ripetitori e stanze",
|
||||
"appSettings_resetRepeaterRoomSettingsSubtitle": "Ripristina le impostazioni di questa sezione. Le scelte salvate sui singoli ripetitori restano.",
|
||||
"appSettings_repeaterRoomSettingsReset": "Impostazioni di ripetitori e stanze reimpostate",
|
||||
"repeater_clockSyncDefault": "Predefinito",
|
||||
"repeater_clockSyncOn": "Attivo",
|
||||
"repeater_clockSyncOff": "Disattivo",
|
||||
"modelDownload_notDownloaded": "Non scaricato",
|
||||
"modelDownload_downloading": "Download in corso",
|
||||
"modelDownload_active": "Attivo",
|
||||
|
||||
+24
-7
@@ -275,11 +275,11 @@
|
||||
"appSettings_advertisementNotificationsSubtitle": "新しいノードが発見された場合に通知を表示する",
|
||||
"appSettings_messaging": "メッセージング",
|
||||
"appSettings_clearPathOnMaxRetry": "最大再試行時に経路を消去",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "5 回送信に失敗したら連絡先の経路をリセットします",
|
||||
"appSettings_pathsWillBeCleared": "5 回失敗すると経路を消去します",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "すべての送信が失敗したら、連絡先の保存済み経路をリセットします",
|
||||
"appSettings_pathsWillBeCleared": "すべての送信が失敗すると経路を消去します",
|
||||
"appSettings_pathsWillNotBeCleared": "経路は自動では消去されません",
|
||||
"appSettings_autoRouteRotation": "自動経路切り替え",
|
||||
"appSettings_autoRouteRotationSubtitle": "最適な経路とフラッドモードを切り替えます",
|
||||
"appSettings_autoRouteRotationSubtitle": "直接の試行ごとに別の既知の経路を試します。その後の試行は Flood です。オフのときは連絡先の現在の経路を使います。",
|
||||
"appSettings_autoRouteRotationEnabled": "自動経路切り替えが有効です",
|
||||
"appSettings_autoRouteRotationDisabled": "自動経路切り替えは無効です",
|
||||
"appSettings_maxMessageRetries": "最大メッセージ再試行回数",
|
||||
@@ -2432,7 +2432,7 @@
|
||||
"description": "Repeater setting subtitle: describes the clock sync after login behavior"
|
||||
},
|
||||
"repeater_clockSyncAfterLogin": "ログイン後に時刻を同期",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "ログイン成功時に自動で時刻同期を送信します",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "「既定」はアプリ設定の「リピーターとルーム」に従います。「オン」と「オフ」はこのリピーターだけです。",
|
||||
"room_guest": "ルームサーバーに関する情報",
|
||||
"chat_sendMessage": "メッセージを送信する",
|
||||
"repeater_guest": "リピータに関する情報",
|
||||
@@ -3373,9 +3373,9 @@
|
||||
"settings_regionFetchNoneResponded": "近くのリピータから応答がありませんでした。リピータに近づいてもう一度お試しください。",
|
||||
"appSettings_sourceSummary": "{label} - {description}",
|
||||
"appSettings_routingSection": "ルーティング",
|
||||
"appSettings_resetRoutingToDefault": "ルーティングアルゴリズムをデフォルトにリセット",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "ルーティングアルゴリズムの設定を工場出荷時のデフォルトに戻す",
|
||||
"appSettings_routingResetToDefault": "ルーティングアルゴリズムの設定がデフォルトにリセットされました",
|
||||
"appSettings_resetRoutingToDefault": "ルーティング設定をデフォルトにリセット",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "このセクションの経路設定を初期値に戻します",
|
||||
"appSettings_routingResetToDefault": "ルーティング設定がデフォルトにリセットされました",
|
||||
"appSettings_imageMessagesSection": "画像メッセージ",
|
||||
"appSettings_showApiKey": "APIキーを表示",
|
||||
"appSettings_hideApiKey": "APIキーを非表示",
|
||||
@@ -4117,6 +4117,23 @@
|
||||
"connectSheet_stopReconnecting": "再接続を停止",
|
||||
"connectSheet_reconnectFailed": "{name} に接続できませんでした。電源が入っていて近くにあることを確認してください。",
|
||||
"chat_composerOffline": "メッセージを送信するには無線機に接続してください",
|
||||
"appSettings_directRetries": "直接の試行: {count}",
|
||||
"appSettings_directRetriesSubtitle": "既知の経路を試す回数です。自動経路切り替えがオフでも設定できます。",
|
||||
"appSettings_floodRetries": "Flood の試行: {count}",
|
||||
"appSettings_floodRetriesSubtitle": "Flood する回数です。Flood は通信時間を多く使います。切り替えがオンのとき、直接の試行の後に行います。",
|
||||
"appSettings_loginAttempts": "ログイン試行: {count}",
|
||||
"appSettings_loginAttemptsSubtitle": "リピータまたはルームサーバーへのログインをあきらめるまでの回数です。",
|
||||
"appSettings_repeatersAndRooms": "リピーターとルーム",
|
||||
"appSettings_clockSyncAfterLogin": "ログイン時にリピーターの時刻を同期",
|
||||
"appSettings_clockSyncAfterLoginSubtitle": "リピーターへのログインに成功すると clock sync を送ります。各リピーターは「既定」「オン」「オフ」を選べます。",
|
||||
"appSettings_loginPasswordAutofocus": "パスワード欄にフォーカス",
|
||||
"appSettings_loginPasswordAutofocusSubtitle": "リピーターまたはルームのログインを開いたとき、パスワードが空ならその欄にカーソルを置きます。オフでは欄をタップするまで画面全体が見えます。",
|
||||
"appSettings_resetRepeaterRoomSettings": "リピーターとルームの設定をリセット",
|
||||
"appSettings_resetRepeaterRoomSettingsSubtitle": "このセクションの設定を戻します。各リピーターに保存した選択はそのままです。",
|
||||
"appSettings_repeaterRoomSettingsReset": "リピーターとルームの設定をリセットしました",
|
||||
"repeater_clockSyncDefault": "既定",
|
||||
"repeater_clockSyncOn": "オン",
|
||||
"repeater_clockSyncOff": "オフ",
|
||||
"modelDownload_notDownloaded": "未ダウンロード",
|
||||
"modelDownload_downloading": "ダウンロード中",
|
||||
"modelDownload_active": "使用中",
|
||||
|
||||
+24
-7
@@ -269,11 +269,11 @@
|
||||
"appSettings_advertisementNotificationsSubtitle": "새 노드가 발견되었을 때 알림 표시",
|
||||
"appSettings_messaging": "메시징",
|
||||
"appSettings_clearPathOnMaxRetry": "최대 재시도 시 경로 지우기",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "전송 시도가 5번 실패하면 연락 경로를 재설정합니다.",
|
||||
"appSettings_pathsWillBeCleared": "5번 실패하면 해당 경로를 지웁니다.",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "모든 전송 시도가 실패하면 연락처의 저장된 경로를 재설정합니다",
|
||||
"appSettings_pathsWillBeCleared": "모든 전송 시도가 실패하면 경로를 지웁니다",
|
||||
"appSettings_pathsWillNotBeCleared": "경로를 자동으로 지우지 않습니다.",
|
||||
"appSettings_autoRouteRotation": "자동 경로 순환",
|
||||
"appSettings_autoRouteRotationSubtitle": "최적 경로와 플러딩 모드 사이를 전환합니다.",
|
||||
"appSettings_autoRouteRotationSubtitle": "직접 시도마다 다른 알려진 경로를 사용합니다. 이후 시도는 Flood입니다. 끄면 연락처의 현재 경로를 유지합니다.",
|
||||
"appSettings_autoRouteRotationEnabled": "자동 경로 순환 기능 활성화",
|
||||
"appSettings_autoRouteRotationDisabled": "자동 경로 순환 기능 비활성화",
|
||||
"appSettings_maxMessageRetries": "최대 메시지 재시도 횟수",
|
||||
@@ -2337,7 +2337,7 @@
|
||||
"description": "Repeater setting subtitle: describes the clock sync after login behavior"
|
||||
},
|
||||
"repeater_clockSyncAfterLogin": "로그인 후 시계 동기화",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "성공적인 로그인 후, 자동으로 \"시간 동기화\"를 전송합니다.",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "기본은 앱 설정의 리피터와 방을 따릅니다. 켜기와 끄기는 이 리피터에만 적용됩니다.",
|
||||
"repeater_guestTools": "게스트 도구",
|
||||
"chat_sendMessage": "메시지를 보내기",
|
||||
"repeater_guest": "리피터 정보",
|
||||
@@ -3373,9 +3373,9 @@
|
||||
"settings_regionFetchNoneResponded": "응답한 주변 리피터가 없습니다. 리피터에 더 가까이 이동한 후 다시 시도하세요.",
|
||||
"appSettings_sourceSummary": "{label} - {description}",
|
||||
"appSettings_routingSection": "라우팅",
|
||||
"appSettings_resetRoutingToDefault": "라우팅 알고리즘 기본값으로 재설정",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "라우팅 알고리즘 설정을 공장 기본값으로 복원",
|
||||
"appSettings_routingResetToDefault": "라우팅 알고리즘 설정이 기본값으로 재설정되었습니다",
|
||||
"appSettings_resetRoutingToDefault": "라우팅 설정을 기본값으로 재설정",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "이 섹션의 라우팅 설정을 기본값으로 되돌립니다",
|
||||
"appSettings_routingResetToDefault": "라우팅 설정이 기본값으로 재설정되었습니다",
|
||||
"appSettings_imageMessagesSection": "이미지 메시지",
|
||||
"appSettings_showApiKey": "API 키 표시",
|
||||
"appSettings_hideApiKey": "API 키 숨기기",
|
||||
@@ -4117,6 +4117,23 @@
|
||||
"connectSheet_stopReconnecting": "재연결 중지",
|
||||
"connectSheet_reconnectFailed": "{name}에 연결할 수 없습니다. 전원이 켜져 있고 가까이 있는지 확인하세요.",
|
||||
"chat_composerOffline": "메시지를 보내려면 무전기에 연결하세요",
|
||||
"appSettings_directRetries": "직접 시도: {count}",
|
||||
"appSettings_directRetriesSubtitle": "알려진 경로를 시도하는 횟수입니다. 자동 경로 순환을 꺼도 설정할 수 있습니다.",
|
||||
"appSettings_floodRetries": "Flood 시도: {count}",
|
||||
"appSettings_floodRetriesSubtitle": "Flood를 사용하는 횟수입니다. Flood는 전파 시간을 더 씁니다. 순환이 켜져 있으면 직접 시도 다음에 실행됩니다.",
|
||||
"appSettings_loginAttempts": "로그인 시도: {count}",
|
||||
"appSettings_loginAttemptsSubtitle": "중계기나 룸 서버 로그인을 포기하기 전까지의 시도 횟수입니다.",
|
||||
"appSettings_repeatersAndRooms": "리피터와 방",
|
||||
"appSettings_clockSyncAfterLogin": "로그인 시 리피터 시계 동기화",
|
||||
"appSettings_clockSyncAfterLoginSubtitle": "리피터 로그인에 성공하면 clock sync를 보냅니다. 각 리피터는 기본, 켜기, 끄기를 고를 수 있습니다.",
|
||||
"appSettings_loginPasswordAutofocus": "비밀번호 칸에 포커스",
|
||||
"appSettings_loginPasswordAutofocusSubtitle": "리피터나 방 로그인을 열 때 비밀번호가 비어 있으면 그 칸에 커서를 둡니다. 끄면 칸을 누를 때까지 대화상자가 보입니다.",
|
||||
"appSettings_resetRepeaterRoomSettings": "리피터와 방 설정을 기본값으로",
|
||||
"appSettings_resetRepeaterRoomSettingsSubtitle": "이 섹션의 설정을 되돌립니다. 각 리피터에 저장한 선택은 그대로입니다.",
|
||||
"appSettings_repeaterRoomSettingsReset": "리피터와 방 설정을 되돌렸습니다",
|
||||
"repeater_clockSyncDefault": "기본",
|
||||
"repeater_clockSyncOn": "켜기",
|
||||
"repeater_clockSyncOff": "끄기",
|
||||
"modelDownload_notDownloaded": "다운로드되지 않음",
|
||||
"modelDownload_downloading": "다운로드 중",
|
||||
"modelDownload_active": "사용 중",
|
||||
|
||||
@@ -2644,13 +2644,13 @@ abstract class AppLocalizations {
|
||||
/// No description provided for @appSettings_clearPathOnMaxRetrySubtitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Reset contact path after 5 failed send attempts'**
|
||||
/// **'Reset the contact\'s saved path after every send attempt fails'**
|
||||
String get appSettings_clearPathOnMaxRetrySubtitle;
|
||||
|
||||
/// No description provided for @appSettings_pathsWillBeCleared.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Paths will be cleared after 5 failed retries'**
|
||||
/// **'Paths will be cleared after all send attempts fail'**
|
||||
String get appSettings_pathsWillBeCleared;
|
||||
|
||||
/// No description provided for @appSettings_pathsWillNotBeCleared.
|
||||
@@ -2668,7 +2668,7 @@ abstract class AppLocalizations {
|
||||
/// No description provided for @appSettings_autoRouteRotationSubtitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Cycle between best paths and flood mode'**
|
||||
/// **'On each direct attempt, try a different known route. Later attempts flood. Off keeps the contact\'s current path.'**
|
||||
String get appSettings_autoRouteRotationSubtitle;
|
||||
|
||||
/// No description provided for @appSettings_autoRouteRotationEnabled.
|
||||
@@ -2695,6 +2695,90 @@ abstract class AppLocalizations {
|
||||
/// **'Number of retry attempts before marking a message as failed'**
|
||||
String get appSettings_maxMessageRetriesSubtitle;
|
||||
|
||||
/// No description provided for @appSettings_directRetries.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Direct attempts: {count}'**
|
||||
String appSettings_directRetries(int count);
|
||||
|
||||
/// No description provided for @appSettings_directRetriesSubtitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'How many times to try a known route. This stays available when auto route rotation is off.'**
|
||||
String get appSettings_directRetriesSubtitle;
|
||||
|
||||
/// No description provided for @appSettings_floodRetries.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Flood attempts: {count}'**
|
||||
String appSettings_floodRetries(int count);
|
||||
|
||||
/// No description provided for @appSettings_floodRetriesSubtitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'How many times to flood. Floods use more airtime. With rotation on, these follow the direct attempts.'**
|
||||
String get appSettings_floodRetriesSubtitle;
|
||||
|
||||
/// No description provided for @appSettings_loginAttempts.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Login attempts: {count}'**
|
||||
String appSettings_loginAttempts(int count);
|
||||
|
||||
/// No description provided for @appSettings_loginAttemptsSubtitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'How many times to try logging in to a repeater or room server before giving up.'**
|
||||
String get appSettings_loginAttemptsSubtitle;
|
||||
|
||||
/// No description provided for @appSettings_repeatersAndRooms.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Repeaters and Rooms'**
|
||||
String get appSettings_repeatersAndRooms;
|
||||
|
||||
/// No description provided for @appSettings_clockSyncAfterLogin.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Sync repeater clock on login'**
|
||||
String get appSettings_clockSyncAfterLogin;
|
||||
|
||||
/// No description provided for @appSettings_clockSyncAfterLoginSubtitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'After a successful repeater login, send clock sync. Each repeater can still choose Default, On, or Off.'**
|
||||
String get appSettings_clockSyncAfterLoginSubtitle;
|
||||
|
||||
/// No description provided for @appSettings_loginPasswordAutofocus.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Focus the password field'**
|
||||
String get appSettings_loginPasswordAutofocus;
|
||||
|
||||
/// No description provided for @appSettings_loginPasswordAutofocusSubtitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'When opening a repeater or room login, put the cursor in the password field if it is empty. Off leaves the dialog visible until you tap the field.'**
|
||||
String get appSettings_loginPasswordAutofocusSubtitle;
|
||||
|
||||
/// No description provided for @appSettings_resetRepeaterRoomSettings.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Reset repeater and room settings to defaults'**
|
||||
String get appSettings_resetRepeaterRoomSettings;
|
||||
|
||||
/// No description provided for @appSettings_resetRepeaterRoomSettingsSubtitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Restore the settings in this section to their defaults. Choices saved on individual repeaters stay as they are.'**
|
||||
String get appSettings_resetRepeaterRoomSettingsSubtitle;
|
||||
|
||||
/// No description provided for @appSettings_repeaterRoomSettingsReset.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Repeater and room settings reset to defaults'**
|
||||
String get appSettings_repeaterRoomSettingsReset;
|
||||
|
||||
/// No description provided for @appSettings_ipfsImageLinks.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -3301,6 +3385,30 @@ abstract class AppLocalizations {
|
||||
/// **'No members'**
|
||||
String get contacts_noMembers;
|
||||
|
||||
/// No description provided for @contacts_groupCurrentMembers.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Current members ({count})'**
|
||||
String contacts_groupCurrentMembers(int count);
|
||||
|
||||
/// No description provided for @contacts_groupAddContacts.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Add contacts'**
|
||||
String get contacts_groupAddContacts;
|
||||
|
||||
/// No description provided for @contacts_groupRemoveMember.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Remove {name} from group'**
|
||||
String contacts_groupRemoveMember(String name);
|
||||
|
||||
/// No description provided for @contacts_groupAddMember.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Add {name} to group'**
|
||||
String contacts_groupAddMember(String name);
|
||||
|
||||
/// No description provided for @contacts_lastSeenNow.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -6123,9 +6231,27 @@ abstract class AppLocalizations {
|
||||
/// Repeater setting subtitle: describes the clock sync after login behavior
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Automatically send \"clock sync\" after a successful login'**
|
||||
/// **'Default follows Repeaters and Rooms in App Settings. On and Off apply only to this repeater.'**
|
||||
String get repeater_clockSyncAfterLoginSubtitle;
|
||||
|
||||
/// No description provided for @repeater_clockSyncDefault.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Default'**
|
||||
String get repeater_clockSyncDefault;
|
||||
|
||||
/// No description provided for @repeater_clockSyncOn.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'On'**
|
||||
String get repeater_clockSyncOn;
|
||||
|
||||
/// No description provided for @repeater_clockSyncOff.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Off'**
|
||||
String get repeater_clockSyncOff;
|
||||
|
||||
/// No description provided for @repeater_statusTitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -11738,19 +11864,19 @@ abstract class AppLocalizations {
|
||||
/// No description provided for @appSettings_resetRoutingToDefault.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Reset Routing Algorithm to Default'**
|
||||
/// **'Reset routing settings to defaults'**
|
||||
String get appSettings_resetRoutingToDefault;
|
||||
|
||||
/// No description provided for @appSettings_resetRoutingToDefaultSubtitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Restore routing algorithm settings to factory defaults'**
|
||||
/// **'Restore the routing settings in this section to their defaults'**
|
||||
String get appSettings_resetRoutingToDefaultSubtitle;
|
||||
|
||||
/// No description provided for @appSettings_routingResetToDefault.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Routing algorithm settings reset to default'**
|
||||
/// **'Routing settings reset to defaults'**
|
||||
String get appSettings_routingResetToDefault;
|
||||
|
||||
/// No description provided for @appSettings_imageMessagesSection.
|
||||
@@ -12765,6 +12891,96 @@ abstract class AppLocalizations {
|
||||
/// In en, this message translates to:
|
||||
/// **'SMAZ compressed'**
|
||||
String get messageMeta_smazCompressed;
|
||||
|
||||
/// No description provided for @addContact_title.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Add Contact'**
|
||||
String get addContact_title;
|
||||
|
||||
/// No description provided for @addContact_infoBanner.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.'**
|
||||
String get addContact_infoBanner;
|
||||
|
||||
/// No description provided for @addContact_contactType.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Contact Type'**
|
||||
String get addContact_contactType;
|
||||
|
||||
/// No description provided for @addContact_name.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Name'**
|
||||
String get addContact_name;
|
||||
|
||||
/// No description provided for @addContact_nameRequired.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Please enter a name'**
|
||||
String get addContact_nameRequired;
|
||||
|
||||
/// No description provided for @addContact_publicKeyHex.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Public Key (hex)'**
|
||||
String get addContact_publicKeyHex;
|
||||
|
||||
/// No description provided for @addContact_publicKeyRequired.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Please enter a public key'**
|
||||
String get addContact_publicKeyRequired;
|
||||
|
||||
/// No description provided for @addContact_publicKeyInvalid.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Public key must be 64 hex characters (32 bytes)'**
|
||||
String get addContact_publicKeyInvalid;
|
||||
|
||||
/// No description provided for @addContact_clipboardKeyLoaded.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Public key filled in. Choose a contact type, enter a name, and tap save.'**
|
||||
String get addContact_clipboardKeyLoaded;
|
||||
|
||||
/// No description provided for @addContact_fromDiscovered.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Add from Discovered Contacts'**
|
||||
String get addContact_fromDiscovered;
|
||||
|
||||
/// No description provided for @addContact_saveFailed.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Failed to add contact.'**
|
||||
String get addContact_saveFailed;
|
||||
|
||||
/// No description provided for @coordinateMap_title.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Location'**
|
||||
String get coordinateMap_title;
|
||||
|
||||
/// No description provided for @coordinate_copyLocation.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Copy location'**
|
||||
String get coordinate_copyLocation;
|
||||
|
||||
/// No description provided for @coordinate_openInMaps.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Open in maps'**
|
||||
String get coordinate_openInMaps;
|
||||
|
||||
/// No description provided for @coordinate_copied.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Location copied'**
|
||||
String get coordinate_copied;
|
||||
}
|
||||
|
||||
class _AppLocalizationsDelegate
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -1450,11 +1449,11 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_clearPathOnMaxRetrySubtitle =>
|
||||
'Възстанови пътя към контакта след 5 неуспешни опита за изпращане';
|
||||
'Нулиране на записания път към контакта, когато всички опити за изпращане се провалят';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillBeCleared =>
|
||||
'Пътищата ще бъдат почистени след 5 неуспешни опита.';
|
||||
'Пътищата се изчистват, когато всички опити за изпращане се провалят';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillNotBeCleared =>
|
||||
@@ -1466,7 +1465,7 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationSubtitle =>
|
||||
'Превключвайте между най-добрите пътища и режим Flood';
|
||||
'При всеки директен опит се пробва друг известен маршрут. Следващите опити са Flood. Изключено запазва текущия път на контакта.';
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationEnabled =>
|
||||
@@ -1484,6 +1483,64 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
String get appSettings_maxMessageRetriesSubtitle =>
|
||||
'Брой опити за повторно изпращане, преди съобщението да бъде маркирано като неуспешно.';
|
||||
|
||||
@override
|
||||
String appSettings_directRetries(int count) {
|
||||
return 'Директни опити: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_directRetriesSubtitle =>
|
||||
'Колко пъти да се пробва известен маршрут. Достъпно и когато автоматичната ротация е изключена.';
|
||||
|
||||
@override
|
||||
String appSettings_floodRetries(int count) {
|
||||
return 'Опити Flood: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_floodRetriesSubtitle =>
|
||||
'Колко пъти да се използва Flood. Flood заема повече ефирно време. При включена ротация идват след директните опити.';
|
||||
|
||||
@override
|
||||
String appSettings_loginAttempts(int count) {
|
||||
return 'Опити за вход: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_loginAttemptsSubtitle =>
|
||||
'Колко пъти да се опитва вход към ретранслатор или room сървър, преди да се откаже.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeatersAndRooms => 'Повторители и стаи';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLogin =>
|
||||
'Синхронизиране на часовника при вход';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLoginSubtitle =>
|
||||
'След успешен вход в повторител се изпраща clock sync. Всеки повторител пак може да е По подразбиране, Вкл. или Изкл.';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocus =>
|
||||
'Фокус върху полето за парола';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocusSubtitle =>
|
||||
'При отваряне на вход в повторител или стая курсорът отива в празното поле за парола. Изключено оставя диалога видим, докато не докоснете полето.';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettings =>
|
||||
'Нулиране на настройките за повторители и стаи';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettingsSubtitle =>
|
||||
'Възстановява настройките в този раздел. Изборите за отделни повторители остават.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeaterRoomSettingsReset =>
|
||||
'Настройките за повторители и стаи са нулирани';
|
||||
|
||||
@override
|
||||
String get appSettings_ipfsImageLinks => 'Конфигурация на IPFS доставчик';
|
||||
|
||||
@@ -1842,6 +1899,24 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_noMembers => 'Няма членове';
|
||||
|
||||
@override
|
||||
String contacts_groupCurrentMembers(int count) {
|
||||
return 'Current members ($count)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_groupAddContacts => 'Add contacts';
|
||||
|
||||
@override
|
||||
String contacts_groupRemoveMember(String name) {
|
||||
return 'Remove $name from group';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_groupAddMember(String name) {
|
||||
return 'Add $name to group';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_lastSeenNow => 'наскоро';
|
||||
|
||||
@@ -3504,7 +3579,16 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncAfterLoginSubtitle =>
|
||||
'Автоматично изпращайте съобщение \"синхронизиране на часовника\" след успешно влизане.';
|
||||
'По подразбиране следва „Повторители и стаи“ в настройките. Вкл. и Изкл. важат само за този повторител.';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncDefault => 'По подразбиране';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOn => 'Вкл.';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOff => 'Изкл.';
|
||||
|
||||
@override
|
||||
String get repeater_statusTitle => 'Статус на повтарянето';
|
||||
@@ -7034,15 +7118,15 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefault =>
|
||||
'Нулиране на алгоритъма за маршрутизация до стойност по подразбиране';
|
||||
'Нулиране на настройките за маршрутизация до стойностите по подразбиране';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefaultSubtitle =>
|
||||
'Възстановяване на настройките на алгоритъма за маршрутизация до заводските стойности по подразбиране';
|
||||
'Възстановяване на настройките за маршрутизация в този раздел до стойностите по подразбиране';
|
||||
|
||||
@override
|
||||
String get appSettings_routingResetToDefault =>
|
||||
'Настройките на алгоритъма за маршрутизация са нулирани до стойност по подразбиране';
|
||||
'Настройките за маршрутизация са нулирани до стойностите по подразбиране';
|
||||
|
||||
@override
|
||||
String get appSettings_imageMessagesSection => 'Съобщения с изображения';
|
||||
@@ -7660,4 +7744,52 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get messageMeta_smazCompressed => 'SMAZ compressed';
|
||||
|
||||
@override
|
||||
String get addContact_title => 'Add Contact';
|
||||
|
||||
@override
|
||||
String get addContact_infoBanner =>
|
||||
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
|
||||
|
||||
@override
|
||||
String get addContact_contactType => 'Contact Type';
|
||||
|
||||
@override
|
||||
String get addContact_name => 'Name';
|
||||
|
||||
@override
|
||||
String get addContact_nameRequired => 'Please enter a name';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyHex => 'Public Key (hex)';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyRequired => 'Please enter a public key';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyInvalid =>
|
||||
'Public key must be 64 hex characters (32 bytes)';
|
||||
|
||||
@override
|
||||
String get addContact_clipboardKeyLoaded =>
|
||||
'Public key filled in. Choose a contact type, enter a name, and tap save.';
|
||||
|
||||
@override
|
||||
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
|
||||
|
||||
@override
|
||||
String get addContact_saveFailed => 'Failed to add contact.';
|
||||
|
||||
@override
|
||||
String get coordinateMap_title => 'Location';
|
||||
|
||||
@override
|
||||
String get coordinate_copyLocation => 'Copy location';
|
||||
|
||||
@override
|
||||
String get coordinate_openInMaps => 'Open in maps';
|
||||
|
||||
@override
|
||||
String get coordinate_copied => 'Location copied';
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -1441,11 +1440,11 @@ class AppLocalizationsCs extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_clearPathOnMaxRetrySubtitle =>
|
||||
'Resetovat cestu kontaktu po 5 neúspěšných pokusech o odeslání';
|
||||
'Resetovat uloženou cestu kontaktu, když selžou všechny pokusy o odeslání';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillBeCleared =>
|
||||
'Cesty budou vymazány po 5 neúspěšných pokusech';
|
||||
'Cesty se vymažou, když selžou všechny pokusy o odeslání';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillNotBeCleared =>
|
||||
@@ -1456,7 +1455,7 @@ class AppLocalizationsCs extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationSubtitle =>
|
||||
'Střídat nejlepší cesty a režim flood';
|
||||
'Při každém přímém pokusu zkusit jinou známou trasu. Pozdější pokusy jsou Flood. Vypnuto ponechá aktuální cestu kontaktu.';
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationEnabled =>
|
||||
@@ -1473,6 +1472,63 @@ class AppLocalizationsCs extends AppLocalizations {
|
||||
String get appSettings_maxMessageRetriesSubtitle =>
|
||||
'Počet opakovaných pokusů, než se zpráva označí jako neodeslaná';
|
||||
|
||||
@override
|
||||
String appSettings_directRetries(int count) {
|
||||
return 'Přímé pokusy: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_directRetriesSubtitle =>
|
||||
'Kolikrát se zkusí známá trasa. Dostupné i když je automatické střídání tras vypnuté.';
|
||||
|
||||
@override
|
||||
String appSettings_floodRetries(int count) {
|
||||
return 'Pokusy Flood: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_floodRetriesSubtitle =>
|
||||
'Kolikrát se použije Flood. Flood zabere víc vysílacího času. Při zapnutém střídání následují po přímých pokusech.';
|
||||
|
||||
@override
|
||||
String appSettings_loginAttempts(int count) {
|
||||
return 'Pokusy o přihlášení: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_loginAttemptsSubtitle =>
|
||||
'Kolikrát se zkusí přihlášení k opakovači nebo room serveru, než se to vzdá.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeatersAndRooms => 'Opakovače a místnosti';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLogin =>
|
||||
'Synchronizovat hodiny opakovače při přihlášení';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLoginSubtitle =>
|
||||
'Po úspěšném přihlášení k opakovači se odešle clock sync. Každý opakovač může dál zvolit Výchozí, Zapnuto nebo Vypnuto.';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocus => 'Zaměřit pole hesla';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocusSubtitle =>
|
||||
'Při otevření přihlášení k opakovači nebo místnosti je kurzor v prázdném poli hesla. Vypnuto nechá dialog viditelný, dokud na pole neklepnete.';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettings =>
|
||||
'Obnovit nastavení opakovačů a místností';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettingsSubtitle =>
|
||||
'Obnoví nastavení v této části. Volby uložené u jednotlivých opakovačů zůstanou.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeaterRoomSettingsReset =>
|
||||
'Nastavení opakovačů a místností obnoveno';
|
||||
|
||||
@override
|
||||
String get appSettings_ipfsImageLinks => 'Konfigurace poskytovatele IPFS';
|
||||
|
||||
@@ -1829,6 +1885,24 @@ class AppLocalizationsCs extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_noMembers => 'Žádní členové';
|
||||
|
||||
@override
|
||||
String contacts_groupCurrentMembers(int count) {
|
||||
return 'Current members ($count)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_groupAddContacts => 'Add contacts';
|
||||
|
||||
@override
|
||||
String contacts_groupRemoveMember(String name) {
|
||||
return 'Remove $name from group';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_groupAddMember(String name) {
|
||||
return 'Add $name to group';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_lastSeenNow => 'nedávno';
|
||||
|
||||
@@ -3491,7 +3565,16 @@ class AppLocalizationsCs extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncAfterLoginSubtitle =>
|
||||
'Automaticky odeslat „clock sync“ po úspěšném přihlášení';
|
||||
'Výchozí se řídí Opakovači a místnostmi v nastavení aplikace. Zapnuto a Vypnuto platí jen pro tento opakovač.';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncDefault => 'Výchozí';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOn => 'Zapnuto';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOff => 'Vypnuto';
|
||||
|
||||
@override
|
||||
String get repeater_statusTitle => 'Stav opakovače';
|
||||
@@ -7016,15 +7099,15 @@ class AppLocalizationsCs extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefault =>
|
||||
'Obnovit výchozí směrovací algoritmus';
|
||||
'Obnovit výchozí nastavení směrování';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefaultSubtitle =>
|
||||
'Obnovit nastavení směrovacího algoritmu na tovární hodnoty';
|
||||
'Obnovit nastavení směrování v této části na výchozí hodnoty';
|
||||
|
||||
@override
|
||||
String get appSettings_routingResetToDefault =>
|
||||
'Nastavení směrovacího algoritmu obnoveno na výchozí';
|
||||
'Nastavení směrování obnoveno na výchozí';
|
||||
|
||||
@override
|
||||
String get appSettings_imageMessagesSection => 'Obrázkové zprávy';
|
||||
@@ -7632,4 +7715,52 @@ class AppLocalizationsCs extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get messageMeta_smazCompressed => 'SMAZ compressed';
|
||||
|
||||
@override
|
||||
String get addContact_title => 'Add Contact';
|
||||
|
||||
@override
|
||||
String get addContact_infoBanner =>
|
||||
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
|
||||
|
||||
@override
|
||||
String get addContact_contactType => 'Contact Type';
|
||||
|
||||
@override
|
||||
String get addContact_name => 'Name';
|
||||
|
||||
@override
|
||||
String get addContact_nameRequired => 'Please enter a name';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyHex => 'Public Key (hex)';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyRequired => 'Please enter a public key';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyInvalid =>
|
||||
'Public key must be 64 hex characters (32 bytes)';
|
||||
|
||||
@override
|
||||
String get addContact_clipboardKeyLoaded =>
|
||||
'Public key filled in. Choose a contact type, enter a name, and tap save.';
|
||||
|
||||
@override
|
||||
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
|
||||
|
||||
@override
|
||||
String get addContact_saveFailed => 'Failed to add contact.';
|
||||
|
||||
@override
|
||||
String get coordinateMap_title => 'Location';
|
||||
|
||||
@override
|
||||
String get coordinate_copyLocation => 'Copy location';
|
||||
|
||||
@override
|
||||
String get coordinate_openInMaps => 'Open in maps';
|
||||
|
||||
@override
|
||||
String get coordinate_copied => 'Location copied';
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -1452,11 +1451,11 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_clearPathOnMaxRetrySubtitle =>
|
||||
'Kontaktpfade nach 5 fehlgeschlagenen Sendeversuchen zurücksetzen';
|
||||
'Gespeicherten Kontaktpfad zurücksetzen, wenn alle Sendeversuche fehlschlagen';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillBeCleared =>
|
||||
'Pfade werden nach 5 fehlgeschlagenen Wiederholungen gelöscht.';
|
||||
'Pfade werden gelöscht, wenn alle Sendeversuche fehlschlagen';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillNotBeCleared =>
|
||||
@@ -1467,7 +1466,7 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationSubtitle =>
|
||||
'Zwischen den besten Pfaden und dem Flood-Modus wechseln';
|
||||
'Bei jedem direkten Versuch eine andere bekannte Route nutzen. Die späteren Versuche sind Flood. Aus behält den aktuellen Pfad des Kontakts.';
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationEnabled =>
|
||||
@@ -1485,6 +1484,63 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
String get appSettings_maxMessageRetriesSubtitle =>
|
||||
'Anzahl der Versuche, eine Nachricht erneut zu senden, bevor sie als fehlgeschlagen markiert wird.';
|
||||
|
||||
@override
|
||||
String appSettings_directRetries(int count) {
|
||||
return 'Direkte Versuche: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_directRetriesSubtitle =>
|
||||
'Wie oft eine bekannte Route versucht wird. Auch verfügbar, wenn die automatische Routenrotation aus ist.';
|
||||
|
||||
@override
|
||||
String appSettings_floodRetries(int count) {
|
||||
return 'Flood-Versuche: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_floodRetriesSubtitle =>
|
||||
'Wie oft geflutet wird. Flood verbraucht mehr Sendezeit. Bei eingeschalteter Rotation folgen diese auf die direkten Versuche.';
|
||||
|
||||
@override
|
||||
String appSettings_loginAttempts(int count) {
|
||||
return 'Anmeldeversuche: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_loginAttemptsSubtitle =>
|
||||
'Wie oft die Anmeldung an einem Repeater oder Room-Server versucht wird, bevor abgebrochen wird.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeatersAndRooms => 'Repeater und Räume';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLogin =>
|
||||
'Repeater-Uhr bei Anmeldung synchronisieren';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLoginSubtitle =>
|
||||
'Nach einer erfolgreichen Repeater-Anmeldung wird clock sync gesendet. Jeder Repeater kann weiter Standard, An oder Aus wählen.';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocus => 'Passwortfeld fokussieren';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocusSubtitle =>
|
||||
'Beim Öffnen einer Repeater- oder Raum-Anmeldung steht der Cursor im leeren Passwortfeld. Aus lässt den Dialog sichtbar, bis du das Feld antippst.';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettings =>
|
||||
'Repeater- und Raum-Einstellungen zurücksetzen';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettingsSubtitle =>
|
||||
'Stellt die Einstellungen in diesem Abschnitt wieder her. Gespeicherte Wahl bei einzelnen Repeatern bleibt.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeaterRoomSettingsReset =>
|
||||
'Repeater- und Raum-Einstellungen zurückgesetzt';
|
||||
|
||||
@override
|
||||
String get appSettings_ipfsImageLinks => 'IPFS-Anbieter-Konfiguration';
|
||||
|
||||
@@ -1842,6 +1898,24 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_noMembers => 'Keine Mitglieder';
|
||||
|
||||
@override
|
||||
String contacts_groupCurrentMembers(int count) {
|
||||
return 'Current members ($count)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_groupAddContacts => 'Add contacts';
|
||||
|
||||
@override
|
||||
String contacts_groupRemoveMember(String name) {
|
||||
return 'Remove $name from group';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_groupAddMember(String name) {
|
||||
return 'Add $name to group';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_lastSeenNow => 'gerade eben';
|
||||
|
||||
@@ -3507,7 +3581,16 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncAfterLoginSubtitle =>
|
||||
'Automatisch \"Uhrzeit-Synchronisierung\" nach erfolgreicher Anmeldung senden.';
|
||||
'Standard folgt Repeater und Räume in den App-Einstellungen. An und Aus gelten nur für diesen Repeater.';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncDefault => 'Standard';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOn => 'An';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOff => 'Aus';
|
||||
|
||||
@override
|
||||
String get repeater_statusTitle => 'Repeater-Status';
|
||||
@@ -7049,15 +7132,15 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefault =>
|
||||
'Routing-Algorithmus auf Standard zurücksetzen';
|
||||
'Routing-Einstellungen auf Standard zurücksetzen';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefaultSubtitle =>
|
||||
'Routing-Algorithmus-Einstellungen auf Werkseinstellungen zurücksetzen';
|
||||
'Die Routing-Einstellungen in diesem Abschnitt auf die Standardwerte zurücksetzen';
|
||||
|
||||
@override
|
||||
String get appSettings_routingResetToDefault =>
|
||||
'Routing-Algorithmus-Einstellungen auf Standard zurückgesetzt';
|
||||
'Routing-Einstellungen auf Standard zurückgesetzt';
|
||||
|
||||
@override
|
||||
String get appSettings_imageMessagesSection => 'Bildnachrichten';
|
||||
@@ -7675,4 +7758,52 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get messageMeta_smazCompressed => 'SMAZ compressed';
|
||||
|
||||
@override
|
||||
String get addContact_title => 'Add Contact';
|
||||
|
||||
@override
|
||||
String get addContact_infoBanner =>
|
||||
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
|
||||
|
||||
@override
|
||||
String get addContact_contactType => 'Contact Type';
|
||||
|
||||
@override
|
||||
String get addContact_name => 'Name';
|
||||
|
||||
@override
|
||||
String get addContact_nameRequired => 'Please enter a name';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyHex => 'Public Key (hex)';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyRequired => 'Please enter a public key';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyInvalid =>
|
||||
'Public key must be 64 hex characters (32 bytes)';
|
||||
|
||||
@override
|
||||
String get addContact_clipboardKeyLoaded =>
|
||||
'Public key filled in. Choose a contact type, enter a name, and tap save.';
|
||||
|
||||
@override
|
||||
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
|
||||
|
||||
@override
|
||||
String get addContact_saveFailed => 'Failed to add contact.';
|
||||
|
||||
@override
|
||||
String get coordinateMap_title => 'Location';
|
||||
|
||||
@override
|
||||
String get coordinate_copyLocation => 'Copy location';
|
||||
|
||||
@override
|
||||
String get coordinate_openInMaps => 'Open in maps';
|
||||
|
||||
@override
|
||||
String get coordinate_copied => 'Location copied';
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -1424,11 +1423,11 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_clearPathOnMaxRetrySubtitle =>
|
||||
'Reset contact path after 5 failed send attempts';
|
||||
'Reset the contact\'s saved path after every send attempt fails';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillBeCleared =>
|
||||
'Paths will be cleared after 5 failed retries';
|
||||
'Paths will be cleared after all send attempts fail';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillNotBeCleared =>
|
||||
@@ -1439,7 +1438,7 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationSubtitle =>
|
||||
'Cycle between best paths and flood mode';
|
||||
'On each direct attempt, try a different known route. Later attempts flood. Off keeps the contact\'s current path.';
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationEnabled =>
|
||||
@@ -1456,6 +1455,62 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
String get appSettings_maxMessageRetriesSubtitle =>
|
||||
'Number of retry attempts before marking a message as failed';
|
||||
|
||||
@override
|
||||
String appSettings_directRetries(int count) {
|
||||
return 'Direct attempts: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_directRetriesSubtitle =>
|
||||
'How many times to try a known route. This stays available when auto route rotation is off.';
|
||||
|
||||
@override
|
||||
String appSettings_floodRetries(int count) {
|
||||
return 'Flood attempts: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_floodRetriesSubtitle =>
|
||||
'How many times to flood. Floods use more airtime. With rotation on, these follow the direct attempts.';
|
||||
|
||||
@override
|
||||
String appSettings_loginAttempts(int count) {
|
||||
return 'Login attempts: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_loginAttemptsSubtitle =>
|
||||
'How many times to try logging in to a repeater or room server before giving up.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeatersAndRooms => 'Repeaters and Rooms';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLogin => 'Sync repeater clock on login';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLoginSubtitle =>
|
||||
'After a successful repeater login, send clock sync. Each repeater can still choose Default, On, or Off.';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocus => 'Focus the password field';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocusSubtitle =>
|
||||
'When opening a repeater or room login, put the cursor in the password field if it is empty. Off leaves the dialog visible until you tap the field.';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettings =>
|
||||
'Reset repeater and room settings to defaults';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettingsSubtitle =>
|
||||
'Restore the settings in this section to their defaults. Choices saved on individual repeaters stay as they are.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeaterRoomSettingsReset =>
|
||||
'Repeater and room settings reset to defaults';
|
||||
|
||||
@override
|
||||
String get appSettings_ipfsImageLinks => 'IPFS provider configuration';
|
||||
|
||||
@@ -1809,6 +1864,24 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_noMembers => 'No members';
|
||||
|
||||
@override
|
||||
String contacts_groupCurrentMembers(int count) {
|
||||
return 'Current members ($count)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_groupAddContacts => 'Add contacts';
|
||||
|
||||
@override
|
||||
String contacts_groupRemoveMember(String name) {
|
||||
return 'Remove $name from group';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_groupAddMember(String name) {
|
||||
return 'Add $name to group';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_lastSeenNow => 'recently';
|
||||
|
||||
@@ -3449,7 +3522,16 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncAfterLoginSubtitle =>
|
||||
'Automatically send \"clock sync\" after a successful login';
|
||||
'Default follows Repeaters and Rooms in App Settings. On and Off apply only to this repeater.';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncDefault => 'Default';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOn => 'On';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOff => 'Off';
|
||||
|
||||
@override
|
||||
String get repeater_statusTitle => 'Repeater Status';
|
||||
@@ -6936,15 +7018,15 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefault =>
|
||||
'Reset Routing Algorithm to Default';
|
||||
'Reset routing settings to defaults';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefaultSubtitle =>
|
||||
'Restore routing algorithm settings to factory defaults';
|
||||
'Restore the routing settings in this section to their defaults';
|
||||
|
||||
@override
|
||||
String get appSettings_routingResetToDefault =>
|
||||
'Routing algorithm settings reset to default';
|
||||
'Routing settings reset to defaults';
|
||||
|
||||
@override
|
||||
String get appSettings_imageMessagesSection => 'Image messages';
|
||||
@@ -7547,4 +7629,52 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get messageMeta_smazCompressed => 'SMAZ compressed';
|
||||
|
||||
@override
|
||||
String get addContact_title => 'Add Contact';
|
||||
|
||||
@override
|
||||
String get addContact_infoBanner =>
|
||||
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
|
||||
|
||||
@override
|
||||
String get addContact_contactType => 'Contact Type';
|
||||
|
||||
@override
|
||||
String get addContact_name => 'Name';
|
||||
|
||||
@override
|
||||
String get addContact_nameRequired => 'Please enter a name';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyHex => 'Public Key (hex)';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyRequired => 'Please enter a public key';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyInvalid =>
|
||||
'Public key must be 64 hex characters (32 bytes)';
|
||||
|
||||
@override
|
||||
String get addContact_clipboardKeyLoaded =>
|
||||
'Public key filled in. Choose a contact type, enter a name, and tap save.';
|
||||
|
||||
@override
|
||||
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
|
||||
|
||||
@override
|
||||
String get addContact_saveFailed => 'Failed to add contact.';
|
||||
|
||||
@override
|
||||
String get coordinateMap_title => 'Location';
|
||||
|
||||
@override
|
||||
String get coordinate_copyLocation => 'Copy location';
|
||||
|
||||
@override
|
||||
String get coordinate_openInMaps => 'Open in maps';
|
||||
|
||||
@override
|
||||
String get coordinate_copied => 'Location copied';
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -1443,11 +1442,11 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_clearPathOnMaxRetrySubtitle =>
|
||||
'Restablecer la ruta de contacto después de 5 intentos de envío fallidos';
|
||||
'Restablecer la ruta guardada del contacto cuando fallen todos los intentos de envío';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillBeCleared =>
|
||||
'Las rutas se borrarán después de 5 intentos fallidos.';
|
||||
'Las rutas se borrarán cuando fallen todos los intentos de envío';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillNotBeCleared =>
|
||||
@@ -1458,7 +1457,7 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationSubtitle =>
|
||||
'Alternar entre las mejores rutas y el modo Flood';
|
||||
'En cada intento directo, probar otra ruta conocida. Los intentos siguientes son Flood. Desactivado mantiene la ruta actual del contacto.';
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationEnabled =>
|
||||
@@ -1476,6 +1475,64 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
String get appSettings_maxMessageRetriesSubtitle =>
|
||||
'Número de intentos de reintento antes de marcar un mensaje como fallido.';
|
||||
|
||||
@override
|
||||
String appSettings_directRetries(int count) {
|
||||
return 'Intentos directos: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_directRetriesSubtitle =>
|
||||
'Cuántas veces probar una ruta conocida. Sigue disponible aunque la rotación automática esté desactivada.';
|
||||
|
||||
@override
|
||||
String appSettings_floodRetries(int count) {
|
||||
return 'Intentos Flood: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_floodRetriesSubtitle =>
|
||||
'Cuántas veces usar Flood. Flood usa más tiempo de aire. Con la rotación activada, van después de los intentos directos.';
|
||||
|
||||
@override
|
||||
String appSettings_loginAttempts(int count) {
|
||||
return 'Intentos de inicio de sesión: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_loginAttemptsSubtitle =>
|
||||
'Cuántas veces intentar iniciar sesión en un repetidor o servidor de sala antes de rendirse.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeatersAndRooms => 'Repetidores y salas';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLogin =>
|
||||
'Sincronizar el reloj del repetidor al iniciar sesión';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLoginSubtitle =>
|
||||
'Tras un inicio de sesión correcto en un repetidor se envía clock sync. Cada repetidor puede seguir eligiendo Predeterminado, Activado o Desactivado.';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocus =>
|
||||
'Enfocar el campo de contraseña';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocusSubtitle =>
|
||||
'Al abrir el inicio de sesión de un repetidor o una sala, el cursor va al campo de contraseña si está vacío. Desactivado deja el diálogo visible hasta que toques el campo.';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettings =>
|
||||
'Restablecer ajustes de repetidores y salas';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettingsSubtitle =>
|
||||
'Restaura los ajustes de esta sección. Las elecciones guardadas en cada repetidor se quedan.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeaterRoomSettingsReset =>
|
||||
'Ajustes de repetidores y salas restablecidos';
|
||||
|
||||
@override
|
||||
String get appSettings_ipfsImageLinks => 'Configuración del proveedor IPFS';
|
||||
|
||||
@@ -1834,6 +1891,24 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_noMembers => 'No miembros';
|
||||
|
||||
@override
|
||||
String contacts_groupCurrentMembers(int count) {
|
||||
return 'Current members ($count)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_groupAddContacts => 'Add contacts';
|
||||
|
||||
@override
|
||||
String contacts_groupRemoveMember(String name) {
|
||||
return 'Remove $name from group';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_groupAddMember(String name) {
|
||||
return 'Add $name to group';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_lastSeenNow => 'Reciente';
|
||||
|
||||
@@ -3494,7 +3569,16 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncAfterLoginSubtitle =>
|
||||
'Enviar automáticamente la función de \"sincronización de reloj\" después de un inicio de sesión exitoso.';
|
||||
'Predeterminado sigue Repetidores y salas en Ajustes. Activado y Desactivado valen solo para este repetidor.';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncDefault => 'Predeterminado';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOn => 'Activado';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOff => 'Desactivado';
|
||||
|
||||
@override
|
||||
String get repeater_statusTitle => 'Estado del Repetidor';
|
||||
@@ -7031,15 +7115,15 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefault =>
|
||||
'Restablecer algoritmo de enrutamiento a predeterminado';
|
||||
'Restablecer la configuración de enrutamiento';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefaultSubtitle =>
|
||||
'Restaurar la configuración del algoritmo de enrutamiento a los valores predeterminados de fábrica';
|
||||
'Restaurar los ajustes de enrutamiento de esta sección a sus valores predeterminados';
|
||||
|
||||
@override
|
||||
String get appSettings_routingResetToDefault =>
|
||||
'Configuración del algoritmo de enrutamiento restablecida a predeterminado';
|
||||
'Configuración de enrutamiento restablecida';
|
||||
|
||||
@override
|
||||
String get appSettings_imageMessagesSection => 'Mensajes con imágenes';
|
||||
@@ -7652,4 +7736,52 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get messageMeta_smazCompressed => 'SMAZ compressed';
|
||||
|
||||
@override
|
||||
String get addContact_title => 'Add Contact';
|
||||
|
||||
@override
|
||||
String get addContact_infoBanner =>
|
||||
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
|
||||
|
||||
@override
|
||||
String get addContact_contactType => 'Contact Type';
|
||||
|
||||
@override
|
||||
String get addContact_name => 'Name';
|
||||
|
||||
@override
|
||||
String get addContact_nameRequired => 'Please enter a name';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyHex => 'Public Key (hex)';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyRequired => 'Please enter a public key';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyInvalid =>
|
||||
'Public key must be 64 hex characters (32 bytes)';
|
||||
|
||||
@override
|
||||
String get addContact_clipboardKeyLoaded =>
|
||||
'Public key filled in. Choose a contact type, enter a name, and tap save.';
|
||||
|
||||
@override
|
||||
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
|
||||
|
||||
@override
|
||||
String get addContact_saveFailed => 'Failed to add contact.';
|
||||
|
||||
@override
|
||||
String get coordinateMap_title => 'Location';
|
||||
|
||||
@override
|
||||
String get coordinate_copyLocation => 'Copy location';
|
||||
|
||||
@override
|
||||
String get coordinate_openInMaps => 'Open in maps';
|
||||
|
||||
@override
|
||||
String get coordinate_copied => 'Location copied';
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -1449,11 +1448,11 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_clearPathOnMaxRetrySubtitle =>
|
||||
'Réinitialiser le chemin de contact après 5 tentatives d\'envoi infructueuses';
|
||||
'Réinitialiser le chemin enregistré du contact lorsque toutes les tentatives d\'envoi échouent';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillBeCleared =>
|
||||
'Les chemins seront effacés après 5 échecs.';
|
||||
'Les chemins seront effacés si toutes les tentatives d\'envoi échouent';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillNotBeCleared =>
|
||||
@@ -1464,7 +1463,7 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationSubtitle =>
|
||||
'Alterner entre les meilleurs chemins et le mode flood';
|
||||
'À chaque tentative directe, essayer une autre route connue. Les tentatives suivantes sont en Flood. Désactivé : le chemin actuel du contact est conservé.';
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationEnabled =>
|
||||
@@ -1482,6 +1481,64 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
String get appSettings_maxMessageRetriesSubtitle =>
|
||||
'Nombre de tentatives avant de marquer un message comme ayant échoué.';
|
||||
|
||||
@override
|
||||
String appSettings_directRetries(int count) {
|
||||
return 'Tentatives directes : $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_directRetriesSubtitle =>
|
||||
'Nombre d\'essais sur une route connue. Disponible même si la rotation automatique des routes est désactivée.';
|
||||
|
||||
@override
|
||||
String appSettings_floodRetries(int count) {
|
||||
return 'Tentatives Flood : $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_floodRetriesSubtitle =>
|
||||
'Nombre de Flood. Un Flood utilise plus de temps d\'antenne. Avec la rotation activée, ils suivent les tentatives directes.';
|
||||
|
||||
@override
|
||||
String appSettings_loginAttempts(int count) {
|
||||
return 'Tentatives de connexion : $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_loginAttemptsSubtitle =>
|
||||
'Nombre d\'essais de connexion à un répéteur ou à un serveur de salon avant d\'abandonner.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeatersAndRooms => 'Répéteurs et salons';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLogin =>
|
||||
'Synchroniser l\'horloge du répéteur à la connexion';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLoginSubtitle =>
|
||||
'Après une connexion réussie à un répéteur, clock sync est envoyé. Chaque répéteur peut encore choisir Défaut, Activé ou Désactivé.';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocus =>
|
||||
'Placer le curseur dans le mot de passe';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocusSubtitle =>
|
||||
'À l\'ouverture d\'une connexion répéteur ou salon, le curseur va dans le mot de passe s\'il est vide. Désactivé laisse la fenêtre visible jusqu\'à ce que vous touchiez le champ.';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettings =>
|
||||
'Réinitialiser les paramètres répéteurs et salons';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettingsSubtitle =>
|
||||
'Restaure les paramètres de cette section. Les choix enregistrés sur chaque répéteur restent.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeaterRoomSettingsReset =>
|
||||
'Paramètres répéteurs et salons réinitialisés';
|
||||
|
||||
@override
|
||||
String get appSettings_ipfsImageLinks => 'Configuration du fournisseur IPFS';
|
||||
|
||||
@@ -1839,6 +1896,24 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_noMembers => 'Aucun membre';
|
||||
|
||||
@override
|
||||
String contacts_groupCurrentMembers(int count) {
|
||||
return 'Current members ($count)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_groupAddContacts => 'Add contacts';
|
||||
|
||||
@override
|
||||
String contacts_groupRemoveMember(String name) {
|
||||
return 'Remove $name from group';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_groupAddMember(String name) {
|
||||
return 'Add $name to group';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_lastSeenNow => 'À l\'instant';
|
||||
|
||||
@@ -3503,7 +3578,16 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncAfterLoginSubtitle =>
|
||||
'Envoyer automatiquement une notification \"synchronisation de l\'heure\" après une connexion réussie.';
|
||||
'Défaut suit Répéteurs et salons dans les paramètres. Activé et Désactivé ne concernent que ce répéteur.';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncDefault => 'Défaut';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOn => 'Activé';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOff => 'Désactivé';
|
||||
|
||||
@override
|
||||
String get repeater_statusTitle => 'État du répéteur';
|
||||
@@ -7055,15 +7139,15 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefault =>
|
||||
'Réinitialiser l\'algorithme de routage';
|
||||
'Réinitialiser les paramètres de routage';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefaultSubtitle =>
|
||||
'Restaurer les paramètres de l\'algorithme de routage aux valeurs par défaut';
|
||||
'Rétablir les paramètres de routage de cette section à leurs valeurs par défaut';
|
||||
|
||||
@override
|
||||
String get appSettings_routingResetToDefault =>
|
||||
'Paramètres de l\'algorithme de routage réinitialisés';
|
||||
'Paramètres de routage réinitialisés';
|
||||
|
||||
@override
|
||||
String get appSettings_imageMessagesSection => 'Messages image';
|
||||
@@ -7680,4 +7764,52 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get messageMeta_smazCompressed => 'SMAZ compressed';
|
||||
|
||||
@override
|
||||
String get addContact_title => 'Add Contact';
|
||||
|
||||
@override
|
||||
String get addContact_infoBanner =>
|
||||
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
|
||||
|
||||
@override
|
||||
String get addContact_contactType => 'Contact Type';
|
||||
|
||||
@override
|
||||
String get addContact_name => 'Name';
|
||||
|
||||
@override
|
||||
String get addContact_nameRequired => 'Please enter a name';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyHex => 'Public Key (hex)';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyRequired => 'Please enter a public key';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyInvalid =>
|
||||
'Public key must be 64 hex characters (32 bytes)';
|
||||
|
||||
@override
|
||||
String get addContact_clipboardKeyLoaded =>
|
||||
'Public key filled in. Choose a contact type, enter a name, and tap save.';
|
||||
|
||||
@override
|
||||
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
|
||||
|
||||
@override
|
||||
String get addContact_saveFailed => 'Failed to add contact.';
|
||||
|
||||
@override
|
||||
String get coordinateMap_title => 'Location';
|
||||
|
||||
@override
|
||||
String get coordinate_copyLocation => 'Copy location';
|
||||
|
||||
@override
|
||||
String get coordinate_openInMaps => 'Open in maps';
|
||||
|
||||
@override
|
||||
String get coordinate_copied => 'Location copied';
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -1441,11 +1440,11 @@ class AppLocalizationsHu extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_clearPathOnMaxRetrySubtitle =>
|
||||
'Állítsa vissza a kapcsolati elérési utat 5 sikertelen küldési kísérlet után';
|
||||
'A kapcsolat mentett útvonalának visszaállítása, ha minden küldési próbálkozás sikertelen';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillBeCleared =>
|
||||
'Az elérési utak 5 sikertelen újrapróbálkozás után törlődnek';
|
||||
'Az útvonalak törlődnek, ha minden küldési próbálkozás sikertelen';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillNotBeCleared =>
|
||||
@@ -1456,7 +1455,7 @@ class AppLocalizationsHu extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationSubtitle =>
|
||||
'Váltson a legjobb útvonalak és a flood mód között';
|
||||
'Minden közvetlen próbálkozásnál másik ismert útvonalat próbál. A későbbiek Flood. Kikapcsolva a kapcsolat jelenlegi útvonalát használja.';
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationEnabled =>
|
||||
@@ -1474,6 +1473,63 @@ class AppLocalizationsHu extends AppLocalizations {
|
||||
String get appSettings_maxMessageRetriesSubtitle =>
|
||||
'Az üzenet sikertelenként való megjelölése előtti újrapróbálkozások száma';
|
||||
|
||||
@override
|
||||
String appSettings_directRetries(int count) {
|
||||
return 'Közvetlen próbálkozások: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_directRetriesSubtitle =>
|
||||
'Hányszor próbáljon ismert útvonalat. Akkor is beállítható, ha az automatikus útvonalváltás ki van kapcsolva.';
|
||||
|
||||
@override
|
||||
String appSettings_floodRetries(int count) {
|
||||
return 'Flood próbálkozások: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_floodRetriesSubtitle =>
|
||||
'Hányszor használjon Floodot. A Flood több adásidőt használ. Bekapcsolt váltásnál a közvetlen próbálkozások után jönnek.';
|
||||
|
||||
@override
|
||||
String appSettings_loginAttempts(int count) {
|
||||
return 'Bejelentkezési próbálkozások: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_loginAttemptsSubtitle =>
|
||||
'Hányszor próbáljon bejelentkezni egy átjátszóra vagy room szerverre, mielőtt feladja.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeatersAndRooms => 'Átjátszók és szobák';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLogin =>
|
||||
'Átjátszó órájának szinkronizálása belépéskor';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLoginSubtitle =>
|
||||
'Sikeres átjátszó-belépés után clock sync megy ki. Minden átjátszó továbbra lehet Alapértelmezett, Be vagy Ki.';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocus => 'Jelszómező fókuszba';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocusSubtitle =>
|
||||
'Átjátszó vagy szoba belépésének megnyitásakor a kurzor az üres jelszómezőbe kerül. Kikapcsolva a párbeszéd látható marad, amíg meg nem érinti a mezőt.';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettings =>
|
||||
'Átjátszó- és szobabeállítások visszaállítása';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettingsSubtitle =>
|
||||
'Visszaállítja a szakasz beállításait. Az egyes átjátszóknál mentett választás megmarad.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeaterRoomSettingsReset =>
|
||||
'Átjátszó- és szobabeállítások visszaállítva';
|
||||
|
||||
@override
|
||||
String get appSettings_ipfsImageLinks => 'IPFS-szolgáltató beállítása';
|
||||
|
||||
@@ -1832,6 +1888,24 @@ class AppLocalizationsHu extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_noMembers => 'Nincsenek tagok';
|
||||
|
||||
@override
|
||||
String contacts_groupCurrentMembers(int count) {
|
||||
return 'Current members ($count)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_groupAddContacts => 'Add contacts';
|
||||
|
||||
@override
|
||||
String contacts_groupRemoveMember(String name) {
|
||||
return 'Remove $name from group';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_groupAddMember(String name) {
|
||||
return 'Add $name to group';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_lastSeenNow => 'nemrég';
|
||||
|
||||
@@ -3497,7 +3571,16 @@ class AppLocalizationsHu extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncAfterLoginSubtitle =>
|
||||
'„Óraszinkronizálás” automatikus küldése sikeres bejelentkezés után';
|
||||
'Az Alapértelmezett az alkalmazás Átjátszók és szobák beállítását követi. A Be és a Ki csak erre az átjátszóra vonatkozik.';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncDefault => 'Alapért.';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOn => 'Be';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOff => 'Ki';
|
||||
|
||||
@override
|
||||
String get repeater_statusTitle => 'Átjátszó állapota';
|
||||
@@ -7026,15 +7109,15 @@ class AppLocalizationsHu extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefault =>
|
||||
'Útvonaltervezési algoritmus visszaállítása alapértelmezettre';
|
||||
'Útválasztási beállítások visszaállítása alapértelmezettre';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefaultSubtitle =>
|
||||
'Útvonaltervezési algoritmus beállításainak visszaállítása gyári alapértelmezett értékekre';
|
||||
'A szakasz útvonalbeállításainak visszaállítása az alapértelmezett értékekre';
|
||||
|
||||
@override
|
||||
String get appSettings_routingResetToDefault =>
|
||||
'Útvonaltervezési algoritmus beállításai visszaállítva alapértelmezettre';
|
||||
'Útválasztási beállítások visszaállítva alapértelmezettre';
|
||||
|
||||
@override
|
||||
String get appSettings_imageMessagesSection => 'Képüzenetek';
|
||||
@@ -7644,4 +7727,52 @@ class AppLocalizationsHu extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get messageMeta_smazCompressed => 'SMAZ compressed';
|
||||
|
||||
@override
|
||||
String get addContact_title => 'Add Contact';
|
||||
|
||||
@override
|
||||
String get addContact_infoBanner =>
|
||||
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
|
||||
|
||||
@override
|
||||
String get addContact_contactType => 'Contact Type';
|
||||
|
||||
@override
|
||||
String get addContact_name => 'Name';
|
||||
|
||||
@override
|
||||
String get addContact_nameRequired => 'Please enter a name';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyHex => 'Public Key (hex)';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyRequired => 'Please enter a public key';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyInvalid =>
|
||||
'Public key must be 64 hex characters (32 bytes)';
|
||||
|
||||
@override
|
||||
String get addContact_clipboardKeyLoaded =>
|
||||
'Public key filled in. Choose a contact type, enter a name, and tap save.';
|
||||
|
||||
@override
|
||||
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
|
||||
|
||||
@override
|
||||
String get addContact_saveFailed => 'Failed to add contact.';
|
||||
|
||||
@override
|
||||
String get coordinateMap_title => 'Location';
|
||||
|
||||
@override
|
||||
String get coordinate_copyLocation => 'Copy location';
|
||||
|
||||
@override
|
||||
String get coordinate_openInMaps => 'Open in maps';
|
||||
|
||||
@override
|
||||
String get coordinate_copied => 'Location copied';
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -1447,11 +1446,11 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_clearPathOnMaxRetrySubtitle =>
|
||||
'Reimposta il percorso di contatto dopo 5 tentativi di invio falliti';
|
||||
'Reimposta il percorso salvato del contatto quando tutti i tentativi di invio falliscono';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillBeCleared =>
|
||||
'I percorsi verranno cancellati dopo 5 tentativi falliti.';
|
||||
'I percorsi verranno cancellati quando tutti i tentativi di invio falliscono';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillNotBeCleared =>
|
||||
@@ -1462,7 +1461,7 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationSubtitle =>
|
||||
'Alterna tra i percorsi migliori e la modalità flood';
|
||||
'A ogni tentativo diretto, prova un altro percorso noto. I tentativi successivi sono Flood. Disattivato mantiene il percorso attuale del contatto.';
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationEnabled =>
|
||||
@@ -1480,6 +1479,63 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
String get appSettings_maxMessageRetriesSubtitle =>
|
||||
'Numero di tentativi di riprova prima di considerare un messaggio come fallito.';
|
||||
|
||||
@override
|
||||
String appSettings_directRetries(int count) {
|
||||
return 'Tentativi diretti: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_directRetriesSubtitle =>
|
||||
'Quante volte provare un percorso noto. Resta disponibile anche con la rotazione automatica disattivata.';
|
||||
|
||||
@override
|
||||
String appSettings_floodRetries(int count) {
|
||||
return 'Tentativi Flood: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_floodRetriesSubtitle =>
|
||||
'Quante volte usare Flood. Flood usa più tempo in aria. Con la rotazione attiva, seguono i tentativi diretti.';
|
||||
|
||||
@override
|
||||
String appSettings_loginAttempts(int count) {
|
||||
return 'Tentativi di accesso: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_loginAttemptsSubtitle =>
|
||||
'Quante volte provare l\'accesso a un ripetitore o a un server room prima di rinunciare.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeatersAndRooms => 'Ripetitori e stanze';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLogin =>
|
||||
'Sincronizza l\'orologio del ripetitore all\'accesso';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLoginSubtitle =>
|
||||
'Dopo un accesso riuscito a un ripetitore viene inviato clock sync. Ogni ripetitore può ancora scegliere Predefinito, Attivo o Disattivo.';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocus => 'Attiva il campo password';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocusSubtitle =>
|
||||
'All\'apertura dell\'accesso a un ripetitore o a una stanza, il cursore va nel campo password se è vuoto. Disattivo lascia visibile la finestra finché non tocchi il campo.';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettings =>
|
||||
'Reimposta le impostazioni di ripetitori e stanze';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettingsSubtitle =>
|
||||
'Ripristina le impostazioni di questa sezione. Le scelte salvate sui singoli ripetitori restano.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeaterRoomSettingsReset =>
|
||||
'Impostazioni di ripetitori e stanze reimpostate';
|
||||
|
||||
@override
|
||||
String get appSettings_ipfsImageLinks => 'Configurazione del provider IPFS';
|
||||
|
||||
@@ -1836,6 +1892,24 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_noMembers => 'Nessun membro';
|
||||
|
||||
@override
|
||||
String contacts_groupCurrentMembers(int count) {
|
||||
return 'Current members ($count)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_groupAddContacts => 'Add contacts';
|
||||
|
||||
@override
|
||||
String contacts_groupRemoveMember(String name) {
|
||||
return 'Remove $name from group';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_groupAddMember(String name) {
|
||||
return 'Add $name to group';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_lastSeenNow => 'Poco fa';
|
||||
|
||||
@@ -3499,7 +3573,16 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncAfterLoginSubtitle =>
|
||||
'Invia automaticamente il comando \"sincronizzazione dell\'orologio\" dopo un login riuscito.';
|
||||
'Predefinito segue Ripetitori e stanze nelle impostazioni. Attivo e Disattivo valgono solo per questo ripetitore.';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncDefault => 'Predefinito';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOn => 'Attivo';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOff => 'Disattivo';
|
||||
|
||||
@override
|
||||
String get repeater_statusTitle => 'Stato del ripetitore';
|
||||
@@ -7039,15 +7122,15 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefault =>
|
||||
'Reimposta algoritmo di instradamento sui valori predefiniti';
|
||||
'Reimposta le impostazioni di instradamento sui valori predefiniti';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefaultSubtitle =>
|
||||
'Ripristina le impostazioni dell\'algoritmo di instradamento ai valori predefiniti di fabbrica';
|
||||
'Ripristina le impostazioni di instradamento di questa sezione ai valori predefiniti';
|
||||
|
||||
@override
|
||||
String get appSettings_routingResetToDefault =>
|
||||
'Impostazioni algoritmo di instradamento reimpostate sui valori predefiniti';
|
||||
'Impostazioni di instradamento reimpostate sui valori predefiniti';
|
||||
|
||||
@override
|
||||
String get appSettings_imageMessagesSection => 'Messaggi immagine';
|
||||
@@ -7664,4 +7747,52 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get messageMeta_smazCompressed => 'SMAZ compressed';
|
||||
|
||||
@override
|
||||
String get addContact_title => 'Add Contact';
|
||||
|
||||
@override
|
||||
String get addContact_infoBanner =>
|
||||
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
|
||||
|
||||
@override
|
||||
String get addContact_contactType => 'Contact Type';
|
||||
|
||||
@override
|
||||
String get addContact_name => 'Name';
|
||||
|
||||
@override
|
||||
String get addContact_nameRequired => 'Please enter a name';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyHex => 'Public Key (hex)';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyRequired => 'Please enter a public key';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyInvalid =>
|
||||
'Public key must be 64 hex characters (32 bytes)';
|
||||
|
||||
@override
|
||||
String get addContact_clipboardKeyLoaded =>
|
||||
'Public key filled in. Choose a contact type, enter a name, and tap save.';
|
||||
|
||||
@override
|
||||
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
|
||||
|
||||
@override
|
||||
String get addContact_saveFailed => 'Failed to add contact.';
|
||||
|
||||
@override
|
||||
String get coordinateMap_title => 'Location';
|
||||
|
||||
@override
|
||||
String get coordinate_copyLocation => 'Copy location';
|
||||
|
||||
@override
|
||||
String get coordinate_openInMaps => 'Open in maps';
|
||||
|
||||
@override
|
||||
String get coordinate_copied => 'Location copied';
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -1377,10 +1376,10 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_clearPathOnMaxRetrySubtitle =>
|
||||
'5 回送信に失敗したら連絡先の経路をリセットします';
|
||||
'すべての送信が失敗したら、連絡先の保存済み経路をリセットします';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillBeCleared => '5 回失敗すると経路を消去します';
|
||||
String get appSettings_pathsWillBeCleared => 'すべての送信が失敗すると経路を消去します';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillNotBeCleared => '経路は自動では消去されません';
|
||||
@@ -1389,7 +1388,8 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
String get appSettings_autoRouteRotation => '自動経路切り替え';
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationSubtitle => '最適な経路とフラッドモードを切り替えます';
|
||||
String get appSettings_autoRouteRotationSubtitle =>
|
||||
'直接の試行ごとに別の既知の経路を試します。その後の試行は Flood です。オフのときは連絡先の現在の経路を使います。';
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationEnabled => '自動経路切り替えが有効です';
|
||||
@@ -1403,6 +1403,60 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_maxMessageRetriesSubtitle => 'メッセージを失敗として扱うまでの再試行回数';
|
||||
|
||||
@override
|
||||
String appSettings_directRetries(int count) {
|
||||
return '直接の試行: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_directRetriesSubtitle =>
|
||||
'既知の経路を試す回数です。自動経路切り替えがオフでも設定できます。';
|
||||
|
||||
@override
|
||||
String appSettings_floodRetries(int count) {
|
||||
return 'Flood の試行: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_floodRetriesSubtitle =>
|
||||
'Flood する回数です。Flood は通信時間を多く使います。切り替えがオンのとき、直接の試行の後に行います。';
|
||||
|
||||
@override
|
||||
String appSettings_loginAttempts(int count) {
|
||||
return 'ログイン試行: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_loginAttemptsSubtitle =>
|
||||
'リピータまたはルームサーバーへのログインをあきらめるまでの回数です。';
|
||||
|
||||
@override
|
||||
String get appSettings_repeatersAndRooms => 'リピーターとルーム';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLogin => 'ログイン時にリピーターの時刻を同期';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLoginSubtitle =>
|
||||
'リピーターへのログインに成功すると clock sync を送ります。各リピーターは「既定」「オン」「オフ」を選べます。';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocus => 'パスワード欄にフォーカス';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocusSubtitle =>
|
||||
'リピーターまたはルームのログインを開いたとき、パスワードが空ならその欄にカーソルを置きます。オフでは欄をタップするまで画面全体が見えます。';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettings => 'リピーターとルームの設定をリセット';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettingsSubtitle =>
|
||||
'このセクションの設定を戻します。各リピーターに保存した選択はそのままです。';
|
||||
|
||||
@override
|
||||
String get appSettings_repeaterRoomSettingsReset => 'リピーターとルームの設定をリセットしました';
|
||||
|
||||
@override
|
||||
String get appSettings_ipfsImageLinks => 'IPFSプロバイダー設定';
|
||||
|
||||
@@ -1745,6 +1799,24 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_noMembers => 'メンバーなし';
|
||||
|
||||
@override
|
||||
String contacts_groupCurrentMembers(int count) {
|
||||
return 'Current members ($count)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_groupAddContacts => 'Add contacts';
|
||||
|
||||
@override
|
||||
String contacts_groupRemoveMember(String name) {
|
||||
return 'Remove $name from group';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_groupAddMember(String name) {
|
||||
return 'Add $name to group';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_lastSeenNow => '最近';
|
||||
|
||||
@@ -3355,7 +3427,17 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
String get repeater_clockSyncAfterLogin => 'ログイン後に時刻を同期';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncAfterLoginSubtitle => 'ログイン成功時に自動で時刻同期を送信します';
|
||||
String get repeater_clockSyncAfterLoginSubtitle =>
|
||||
'「既定」はアプリ設定の「リピーターとルーム」に従います。「オン」と「オフ」はこのリピーターだけです。';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncDefault => '既定';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOn => 'オン';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOff => 'オフ';
|
||||
|
||||
@override
|
||||
String get repeater_statusTitle => '再送ステータス';
|
||||
@@ -6708,15 +6790,14 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
String get appSettings_routingSection => 'ルーティング';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefault => 'ルーティングアルゴリズムをデフォルトにリセット';
|
||||
String get appSettings_resetRoutingToDefault => 'ルーティング設定をデフォルトにリセット';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefaultSubtitle =>
|
||||
'ルーティングアルゴリズムの設定を工場出荷時のデフォルトに戻す';
|
||||
'このセクションの経路設定を初期値に戻します';
|
||||
|
||||
@override
|
||||
String get appSettings_routingResetToDefault =>
|
||||
'ルーティングアルゴリズムの設定がデフォルトにリセットされました';
|
||||
String get appSettings_routingResetToDefault => 'ルーティング設定がデフォルトにリセットされました';
|
||||
|
||||
@override
|
||||
String get appSettings_imageMessagesSection => '画像メッセージ';
|
||||
@@ -7308,4 +7389,52 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get messageMeta_smazCompressed => 'SMAZ compressed';
|
||||
|
||||
@override
|
||||
String get addContact_title => 'Add Contact';
|
||||
|
||||
@override
|
||||
String get addContact_infoBanner =>
|
||||
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
|
||||
|
||||
@override
|
||||
String get addContact_contactType => 'Contact Type';
|
||||
|
||||
@override
|
||||
String get addContact_name => 'Name';
|
||||
|
||||
@override
|
||||
String get addContact_nameRequired => 'Please enter a name';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyHex => 'Public Key (hex)';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyRequired => 'Please enter a public key';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyInvalid =>
|
||||
'Public key must be 64 hex characters (32 bytes)';
|
||||
|
||||
@override
|
||||
String get addContact_clipboardKeyLoaded =>
|
||||
'Public key filled in. Choose a contact type, enter a name, and tap save.';
|
||||
|
||||
@override
|
||||
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
|
||||
|
||||
@override
|
||||
String get addContact_saveFailed => 'Failed to add contact.';
|
||||
|
||||
@override
|
||||
String get coordinateMap_title => 'Location';
|
||||
|
||||
@override
|
||||
String get coordinate_copyLocation => 'Copy location';
|
||||
|
||||
@override
|
||||
String get coordinate_openInMaps => 'Open in maps';
|
||||
|
||||
@override
|
||||
String get coordinate_copied => 'Location copied';
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -1380,10 +1379,10 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_clearPathOnMaxRetrySubtitle =>
|
||||
'전송 시도가 5번 실패하면 연락 경로를 재설정합니다.';
|
||||
'모든 전송 시도가 실패하면 연락처의 저장된 경로를 재설정합니다';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillBeCleared => '5번 실패하면 해당 경로를 지웁니다.';
|
||||
String get appSettings_pathsWillBeCleared => '모든 전송 시도가 실패하면 경로를 지웁니다';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillNotBeCleared => '경로를 자동으로 지우지 않습니다.';
|
||||
@@ -1393,7 +1392,7 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationSubtitle =>
|
||||
'최적 경로와 플러딩 모드 사이를 전환합니다.';
|
||||
'직접 시도마다 다른 알려진 경로를 사용합니다. 이후 시도는 Flood입니다. 끄면 연락처의 현재 경로를 유지합니다.';
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationEnabled => '자동 경로 순환 기능 활성화';
|
||||
@@ -1407,6 +1406,60 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_maxMessageRetriesSubtitle => '메시지를 실패로 처리하기 전 시도 횟수';
|
||||
|
||||
@override
|
||||
String appSettings_directRetries(int count) {
|
||||
return '직접 시도: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_directRetriesSubtitle =>
|
||||
'알려진 경로를 시도하는 횟수입니다. 자동 경로 순환을 꺼도 설정할 수 있습니다.';
|
||||
|
||||
@override
|
||||
String appSettings_floodRetries(int count) {
|
||||
return 'Flood 시도: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_floodRetriesSubtitle =>
|
||||
'Flood를 사용하는 횟수입니다. Flood는 전파 시간을 더 씁니다. 순환이 켜져 있으면 직접 시도 다음에 실행됩니다.';
|
||||
|
||||
@override
|
||||
String appSettings_loginAttempts(int count) {
|
||||
return '로그인 시도: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_loginAttemptsSubtitle =>
|
||||
'중계기나 룸 서버 로그인을 포기하기 전까지의 시도 횟수입니다.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeatersAndRooms => '리피터와 방';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLogin => '로그인 시 리피터 시계 동기화';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLoginSubtitle =>
|
||||
'리피터 로그인에 성공하면 clock sync를 보냅니다. 각 리피터는 기본, 켜기, 끄기를 고를 수 있습니다.';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocus => '비밀번호 칸에 포커스';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocusSubtitle =>
|
||||
'리피터나 방 로그인을 열 때 비밀번호가 비어 있으면 그 칸에 커서를 둡니다. 끄면 칸을 누를 때까지 대화상자가 보입니다.';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettings => '리피터와 방 설정을 기본값으로';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettingsSubtitle =>
|
||||
'이 섹션의 설정을 되돌립니다. 각 리피터에 저장한 선택은 그대로입니다.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeaterRoomSettingsReset => '리피터와 방 설정을 되돌렸습니다';
|
||||
|
||||
@override
|
||||
String get appSettings_ipfsImageLinks => 'IPFS 제공자 설정';
|
||||
|
||||
@@ -1749,6 +1802,24 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_noMembers => '회원 없음';
|
||||
|
||||
@override
|
||||
String contacts_groupCurrentMembers(int count) {
|
||||
return 'Current members ($count)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_groupAddContacts => 'Add contacts';
|
||||
|
||||
@override
|
||||
String contacts_groupRemoveMember(String name) {
|
||||
return 'Remove $name from group';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_groupAddMember(String name) {
|
||||
return 'Add $name to group';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_lastSeenNow => '최근';
|
||||
|
||||
@@ -3357,7 +3428,16 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncAfterLoginSubtitle =>
|
||||
'성공적인 로그인 후, 자동으로 \"시간 동기화\"를 전송합니다.';
|
||||
'기본은 앱 설정의 리피터와 방을 따릅니다. 켜기와 끄기는 이 리피터에만 적용됩니다.';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncDefault => '기본';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOn => '켜기';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOff => '끄기';
|
||||
|
||||
@override
|
||||
String get repeater_statusTitle => '리피터 상태';
|
||||
@@ -6724,14 +6804,14 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
String get appSettings_routingSection => '라우팅';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefault => '라우팅 알고리즘 기본값으로 재설정';
|
||||
String get appSettings_resetRoutingToDefault => '라우팅 설정을 기본값으로 재설정';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefaultSubtitle =>
|
||||
'라우팅 알고리즘 설정을 공장 기본값으로 복원';
|
||||
'이 섹션의 라우팅 설정을 기본값으로 되돌립니다';
|
||||
|
||||
@override
|
||||
String get appSettings_routingResetToDefault => '라우팅 알고리즘 설정이 기본값으로 재설정되었습니다';
|
||||
String get appSettings_routingResetToDefault => '라우팅 설정이 기본값으로 재설정되었습니다';
|
||||
|
||||
@override
|
||||
String get appSettings_imageMessagesSection => '이미지 메시지';
|
||||
@@ -7321,4 +7401,52 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get messageMeta_smazCompressed => 'SMAZ compressed';
|
||||
|
||||
@override
|
||||
String get addContact_title => 'Add Contact';
|
||||
|
||||
@override
|
||||
String get addContact_infoBanner =>
|
||||
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
|
||||
|
||||
@override
|
||||
String get addContact_contactType => 'Contact Type';
|
||||
|
||||
@override
|
||||
String get addContact_name => 'Name';
|
||||
|
||||
@override
|
||||
String get addContact_nameRequired => 'Please enter a name';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyHex => 'Public Key (hex)';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyRequired => 'Please enter a public key';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyInvalid =>
|
||||
'Public key must be 64 hex characters (32 bytes)';
|
||||
|
||||
@override
|
||||
String get addContact_clipboardKeyLoaded =>
|
||||
'Public key filled in. Choose a contact type, enter a name, and tap save.';
|
||||
|
||||
@override
|
||||
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
|
||||
|
||||
@override
|
||||
String get addContact_saveFailed => 'Failed to add contact.';
|
||||
|
||||
@override
|
||||
String get coordinateMap_title => 'Location';
|
||||
|
||||
@override
|
||||
String get coordinate_copyLocation => 'Copy location';
|
||||
|
||||
@override
|
||||
String get coordinate_openInMaps => 'Open in maps';
|
||||
|
||||
@override
|
||||
String get coordinate_copied => 'Location copied';
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -1440,11 +1439,11 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_clearPathOnMaxRetrySubtitle =>
|
||||
'Reset contactpad na 5 mislukte verzendpogingen';
|
||||
'Het opgeslagen pad van het contact resetten als alle verzendpogingen mislukken';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillBeCleared =>
|
||||
'Paden worden gewist na 5 mislukte pogingen';
|
||||
'Paden worden gewist als alle verzendpogingen mislukken';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillNotBeCleared =>
|
||||
@@ -1455,7 +1454,7 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationSubtitle =>
|
||||
'Wissel tussen beste paden en floodmodus';
|
||||
'Bij elke directe poging een andere bekende route proberen. Latere pogingen zijn Flood. Uit houdt het huidige pad van het contact.';
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationEnabled =>
|
||||
@@ -1472,6 +1471,63 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
String get appSettings_maxMessageRetriesSubtitle =>
|
||||
'Aantal pogingen om een bericht opnieuw te versturen voordat het als mislukt wordt gemarkeerd';
|
||||
|
||||
@override
|
||||
String appSettings_directRetries(int count) {
|
||||
return 'Directe pogingen: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_directRetriesSubtitle =>
|
||||
'Hoe vaak een bekende route wordt geprobeerd. Blijft beschikbaar als automatische routerotatie uit staat.';
|
||||
|
||||
@override
|
||||
String appSettings_floodRetries(int count) {
|
||||
return 'Flood-pogingen: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_floodRetriesSubtitle =>
|
||||
'Hoe vaak Flood wordt gebruikt. Flood kost meer zendtijd. Met rotatie aan volgen ze op de directe pogingen.';
|
||||
|
||||
@override
|
||||
String appSettings_loginAttempts(int count) {
|
||||
return 'Inlogpogingen: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_loginAttemptsSubtitle =>
|
||||
'Hoe vaak wordt geprobeerd in te loggen op een repeater of roomserver voordat het stopt.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeatersAndRooms => 'Repeaters en rooms';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLogin =>
|
||||
'Repeaterklok synchroniseren bij aanmelden';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLoginSubtitle =>
|
||||
'Na een geslaagde repeater-aanmelding wordt clock sync gestuurd. Elke repeater kan nog Standaard, Aan of Uit kiezen.';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocus => 'Wachtwoordveld focussen';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocusSubtitle =>
|
||||
'Bij het openen van een repeater- of room-aanmelding staat de cursor in het lege wachtwoordveld. Uit laat het venster zichtbaar tot je het veld aantikt.';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettings =>
|
||||
'Repeater- en roominstellingen resetten';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettingsSubtitle =>
|
||||
'Zet de instellingen in deze sectie terug. Keuzes die per repeater zijn opgeslagen blijven staan.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeaterRoomSettingsReset =>
|
||||
'Repeater- en roominstellingen gereset';
|
||||
|
||||
@override
|
||||
String get appSettings_ipfsImageLinks => 'IPFS-providerconfiguratie';
|
||||
|
||||
@@ -1828,6 +1884,24 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_noMembers => 'Geen leden';
|
||||
|
||||
@override
|
||||
String contacts_groupCurrentMembers(int count) {
|
||||
return 'Current members ($count)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_groupAddContacts => 'Add contacts';
|
||||
|
||||
@override
|
||||
String contacts_groupRemoveMember(String name) {
|
||||
return 'Remove $name from group';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_groupAddMember(String name) {
|
||||
return 'Add $name to group';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_lastSeenNow => 'recent';
|
||||
|
||||
@@ -3481,7 +3555,16 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncAfterLoginSubtitle =>
|
||||
'Automatisch een \"klok synchroniseren\" bericht versturen na een succesvolle inlog.';
|
||||
'Standaard volgt Repeaters en rooms in de app-instellingen. Aan en Uit gelden alleen voor deze repeater.';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncDefault => 'Standaard';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOn => 'Aan';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOff => 'Uit';
|
||||
|
||||
@override
|
||||
String get repeater_statusTitle => 'Status repeater';
|
||||
@@ -6999,15 +7082,15 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefault =>
|
||||
'Routeringsalgoritme resetten naar standaard';
|
||||
'Routeringsinstellingen resetten naar standaard';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefaultSubtitle =>
|
||||
'Routeringsalgoritme-instellingen herstellen naar fabrieksstandaardwaarden';
|
||||
'De routeringsinstellingen in dit gedeelte terugzetten naar de standaardwaarden';
|
||||
|
||||
@override
|
||||
String get appSettings_routingResetToDefault =>
|
||||
'Routeringsalgoritme-instellingen gereset naar standaard';
|
||||
'Routeringsinstellingen gereset naar standaard';
|
||||
|
||||
@override
|
||||
String get appSettings_imageMessagesSection => 'Afbeeldingsberichten';
|
||||
@@ -7620,4 +7703,52 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get messageMeta_smazCompressed => 'SMAZ compressed';
|
||||
|
||||
@override
|
||||
String get addContact_title => 'Add Contact';
|
||||
|
||||
@override
|
||||
String get addContact_infoBanner =>
|
||||
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
|
||||
|
||||
@override
|
||||
String get addContact_contactType => 'Contact Type';
|
||||
|
||||
@override
|
||||
String get addContact_name => 'Name';
|
||||
|
||||
@override
|
||||
String get addContact_nameRequired => 'Please enter a name';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyHex => 'Public Key (hex)';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyRequired => 'Please enter a public key';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyInvalid =>
|
||||
'Public key must be 64 hex characters (32 bytes)';
|
||||
|
||||
@override
|
||||
String get addContact_clipboardKeyLoaded =>
|
||||
'Public key filled in. Choose a contact type, enter a name, and tap save.';
|
||||
|
||||
@override
|
||||
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
|
||||
|
||||
@override
|
||||
String get addContact_saveFailed => 'Failed to add contact.';
|
||||
|
||||
@override
|
||||
String get coordinateMap_title => 'Location';
|
||||
|
||||
@override
|
||||
String get coordinate_copyLocation => 'Copy location';
|
||||
|
||||
@override
|
||||
String get coordinate_openInMaps => 'Open in maps';
|
||||
|
||||
@override
|
||||
String get coordinate_copied => 'Location copied';
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -1454,11 +1453,11 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_clearPathOnMaxRetrySubtitle =>
|
||||
'Resetuj ścieżkę kontaktu po 5 nieudanych próbach wysłania';
|
||||
'Resetuj zapisaną ścieżkę kontaktu, gdy wszystkie próby wysłania się nie powiodą';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillBeCleared =>
|
||||
'Ścieżka zostanie wyczyszczona po 5 nieudanych próbach.';
|
||||
'Ścieżki zostaną wyczyszczone, gdy wszystkie próby wysłania się nie powiodą';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillNotBeCleared =>
|
||||
@@ -1469,7 +1468,7 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationSubtitle =>
|
||||
'Przełączaj się między najlepszymi ścieżkami a trybem flood.';
|
||||
'Przy każdej próbie bezpośredniej wypróbuj inną znaną trasę. Późniejsze próby to Flood. Wyłączone zostawia bieżącą ścieżkę kontaktu.';
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationEnabled =>
|
||||
@@ -1487,6 +1486,63 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
String get appSettings_maxMessageRetriesSubtitle =>
|
||||
'Liczba prób ponownego wysłania wiadomości przed oznaczaniem jej jako nieudanej';
|
||||
|
||||
@override
|
||||
String appSettings_directRetries(int count) {
|
||||
return 'Próby bezpośrednie: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_directRetriesSubtitle =>
|
||||
'Ile razy próbować znanej trasy. Dostępne także przy wyłączonej automatycznej rotacji trasy.';
|
||||
|
||||
@override
|
||||
String appSettings_floodRetries(int count) {
|
||||
return 'Próby Flood: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_floodRetriesSubtitle =>
|
||||
'Ile razy użyć Flood. Flood zużywa więcej czasu antenowego. Przy włączonej rotacji następują po próbach bezpośrednich.';
|
||||
|
||||
@override
|
||||
String appSettings_loginAttempts(int count) {
|
||||
return 'Próby logowania: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_loginAttemptsSubtitle =>
|
||||
'Ile razy próbować logowania do przemiennika lub serwera room, zanim aplikacja zrezygnuje.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeatersAndRooms => 'Przemienniki i pokoje';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLogin =>
|
||||
'Synchronizuj zegar przemiennika przy logowaniu';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLoginSubtitle =>
|
||||
'Po udanym logowaniu do przemiennika wysyłane jest clock sync. Każdy przemiennik może nadal wybrać Domyślnie, Wł. lub Wył.';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocus => 'Uaktywnij pole hasła';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocusSubtitle =>
|
||||
'Przy otwieraniu logowania do przemiennika lub pokoju kursor trafia w puste pole hasła. Wyłączenie zostawia okno widoczne, aż dotkniesz pola.';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettings =>
|
||||
'Resetuj ustawienia przemienników i pokoi';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettingsSubtitle =>
|
||||
'Przywraca ustawienia w tej sekcji. Wybory zapisane przy poszczególnych przemiennikach zostają.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeaterRoomSettingsReset =>
|
||||
'Ustawienia przemienników i pokoi zresetowane';
|
||||
|
||||
@override
|
||||
String get appSettings_ipfsImageLinks => 'Konfiguracja dostawcy IPFS';
|
||||
|
||||
@@ -1850,6 +1906,24 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_noMembers => 'Brak członków';
|
||||
|
||||
@override
|
||||
String contacts_groupCurrentMembers(int count) {
|
||||
return 'Current members ($count)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_groupAddContacts => 'Add contacts';
|
||||
|
||||
@override
|
||||
String contacts_groupRemoveMember(String name) {
|
||||
return 'Remove $name from group';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_groupAddMember(String name) {
|
||||
return 'Add $name to group';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_lastSeenNow => 'niedawno';
|
||||
|
||||
@@ -3528,7 +3602,16 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncAfterLoginSubtitle =>
|
||||
'Automatycznie wysyłaj powiadomienie \"synchronizacja zegara\" po pomyślnym zalogowaniu.';
|
||||
'Domyślnie podąża za Przemienniki i pokoje w ustawieniach. Wł. i Wył. dotyczą tylko tego przemiennika.';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncDefault => 'Domyślnie';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOn => 'Wł.';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOff => 'Wył.';
|
||||
|
||||
@override
|
||||
String get repeater_statusTitle => 'Status przekaźnika';
|
||||
@@ -7073,15 +7156,15 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefault =>
|
||||
'Resetuj algorytm trasowania do domyślnych';
|
||||
'Resetuj ustawienia trasowania do domyślnych';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefaultSubtitle =>
|
||||
'Przywróć ustawienia algorytmu trasowania do fabrycznych ustawień domyślnych';
|
||||
'Przywróć ustawienia trasowania w tej sekcji do wartości domyślnych';
|
||||
|
||||
@override
|
||||
String get appSettings_routingResetToDefault =>
|
||||
'Ustawienia algorytmu trasowania zresetowane do domyślnych';
|
||||
'Ustawienia trasowania zresetowane do domyślnych';
|
||||
|
||||
@override
|
||||
String get appSettings_imageMessagesSection => 'Wiadomości z obrazami';
|
||||
@@ -7698,4 +7781,52 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get messageMeta_smazCompressed => 'SMAZ compressed';
|
||||
|
||||
@override
|
||||
String get addContact_title => 'Add Contact';
|
||||
|
||||
@override
|
||||
String get addContact_infoBanner =>
|
||||
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
|
||||
|
||||
@override
|
||||
String get addContact_contactType => 'Contact Type';
|
||||
|
||||
@override
|
||||
String get addContact_name => 'Name';
|
||||
|
||||
@override
|
||||
String get addContact_nameRequired => 'Please enter a name';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyHex => 'Public Key (hex)';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyRequired => 'Please enter a public key';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyInvalid =>
|
||||
'Public key must be 64 hex characters (32 bytes)';
|
||||
|
||||
@override
|
||||
String get addContact_clipboardKeyLoaded =>
|
||||
'Public key filled in. Choose a contact type, enter a name, and tap save.';
|
||||
|
||||
@override
|
||||
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
|
||||
|
||||
@override
|
||||
String get addContact_saveFailed => 'Failed to add contact.';
|
||||
|
||||
@override
|
||||
String get coordinateMap_title => 'Location';
|
||||
|
||||
@override
|
||||
String get coordinate_copyLocation => 'Copy location';
|
||||
|
||||
@override
|
||||
String get coordinate_openInMaps => 'Open in maps';
|
||||
|
||||
@override
|
||||
String get coordinate_copied => 'Location copied';
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -1446,11 +1445,11 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_clearPathOnMaxRetrySubtitle =>
|
||||
'Redefinir o caminho de contato após 5 tentativas de envio falhas';
|
||||
'Redefinir o caminho salvo do contato quando todas as tentativas de envio falharem';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillBeCleared =>
|
||||
'Os caminhos serão limpos após 5 tentativas falhas.';
|
||||
'Os caminhos serão limpos quando todas as tentativas de envio falharem';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillNotBeCleared =>
|
||||
@@ -1461,7 +1460,7 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationSubtitle =>
|
||||
'Alternar entre os melhores caminhos e o modo Flood';
|
||||
'Em cada tentativa direta, experimentar outra rota conhecida. As tentativas seguintes são Flood. Desligado mantém o caminho atual do contato.';
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationEnabled =>
|
||||
@@ -1479,6 +1478,63 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
String get appSettings_maxMessageRetriesSubtitle =>
|
||||
'Número de tentativas de reenvio antes de classificar uma mensagem como falha.';
|
||||
|
||||
@override
|
||||
String appSettings_directRetries(int count) {
|
||||
return 'Tentativas diretas: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_directRetriesSubtitle =>
|
||||
'Quantas vezes tentar uma rota conhecida. Continua disponível com a rotação automática de rotas desligada.';
|
||||
|
||||
@override
|
||||
String appSettings_floodRetries(int count) {
|
||||
return 'Tentativas Flood: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_floodRetriesSubtitle =>
|
||||
'Quantas vezes usar Flood. Flood usa mais tempo de ar. Com a rotação ligada, vêm depois das tentativas diretas.';
|
||||
|
||||
@override
|
||||
String appSettings_loginAttempts(int count) {
|
||||
return 'Tentativas de login: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_loginAttemptsSubtitle =>
|
||||
'Quantas vezes tentar entrar em um repetidor ou servidor de sala antes de desistir.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeatersAndRooms => 'Repetidores e salas';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLogin =>
|
||||
'Sincronizar o relógio do repetidor ao entrar';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLoginSubtitle =>
|
||||
'Depois de entrar em um repetidor, clock sync é enviado. Cada repetidor ainda pode escolher Padrão, Ligado ou Desligado.';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocus => 'Focar o campo de senha';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocusSubtitle =>
|
||||
'Ao abrir o login de um repetidor ou sala, o cursor vai para a senha se ela estiver vazia. Desligado deixa o diálogo visível até você tocar no campo.';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettings =>
|
||||
'Redefinir configurações de repetidores e salas';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettingsSubtitle =>
|
||||
'Restaura as configurações desta seção. As escolhas salvas em cada repetidor permanecem.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeaterRoomSettingsReset =>
|
||||
'Configurações de repetidores e salas redefinidas';
|
||||
|
||||
@override
|
||||
String get appSettings_ipfsImageLinks => 'Configuração do provedor IPFS';
|
||||
|
||||
@@ -1835,6 +1891,24 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_noMembers => 'Nenhum membro';
|
||||
|
||||
@override
|
||||
String contacts_groupCurrentMembers(int count) {
|
||||
return 'Current members ($count)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_groupAddContacts => 'Add contacts';
|
||||
|
||||
@override
|
||||
String contacts_groupRemoveMember(String name) {
|
||||
return 'Remove $name from group';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_groupAddMember(String name) {
|
||||
return 'Add $name to group';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_lastSeenNow => 'Recente';
|
||||
|
||||
@@ -3494,7 +3568,16 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncAfterLoginSubtitle =>
|
||||
'Enviar automaticamente a sincronização do \"relógio\" após um login bem-sucedido.';
|
||||
'Padrão segue Repetidores e salas nas configurações. Ligado e Desligado valem só para este repetidor.';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncDefault => 'Padrão';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOn => 'Ligado';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOff => 'Desligado';
|
||||
|
||||
@override
|
||||
String get repeater_statusTitle => 'Status do Repetidor';
|
||||
@@ -7024,15 +7107,15 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefault =>
|
||||
'Redefinir algoritmo de roteamento para o padrão';
|
||||
'Redefinir configurações de roteamento para o padrão';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefaultSubtitle =>
|
||||
'Restaurar as configurações do algoritmo de roteamento para os valores padrão de fábrica';
|
||||
'Restaurar as configurações de roteamento desta seção para os padrões';
|
||||
|
||||
@override
|
||||
String get appSettings_routingResetToDefault =>
|
||||
'Configurações do algoritmo de roteamento redefinidas para o padrão';
|
||||
'Configurações de roteamento redefinidas para o padrão';
|
||||
|
||||
@override
|
||||
String get appSettings_imageMessagesSection => 'Mensagens de imagem';
|
||||
@@ -7642,6 +7725,54 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get messageMeta_smazCompressed => 'SMAZ compressed';
|
||||
|
||||
@override
|
||||
String get addContact_title => 'Add Contact';
|
||||
|
||||
@override
|
||||
String get addContact_infoBanner =>
|
||||
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
|
||||
|
||||
@override
|
||||
String get addContact_contactType => 'Contact Type';
|
||||
|
||||
@override
|
||||
String get addContact_name => 'Name';
|
||||
|
||||
@override
|
||||
String get addContact_nameRequired => 'Please enter a name';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyHex => 'Public Key (hex)';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyRequired => 'Please enter a public key';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyInvalid =>
|
||||
'Public key must be 64 hex characters (32 bytes)';
|
||||
|
||||
@override
|
||||
String get addContact_clipboardKeyLoaded =>
|
||||
'Public key filled in. Choose a contact type, enter a name, and tap save.';
|
||||
|
||||
@override
|
||||
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
|
||||
|
||||
@override
|
||||
String get addContact_saveFailed => 'Failed to add contact.';
|
||||
|
||||
@override
|
||||
String get coordinateMap_title => 'Location';
|
||||
|
||||
@override
|
||||
String get coordinate_copyLocation => 'Copy location';
|
||||
|
||||
@override
|
||||
String get coordinate_openInMaps => 'Open in maps';
|
||||
|
||||
@override
|
||||
String get coordinate_copied => 'Location copied';
|
||||
}
|
||||
|
||||
/// The translations for Portuguese, as used in Portugal (`pt_PT`).
|
||||
@@ -9071,11 +9202,11 @@ class AppLocalizationsPtPt extends AppLocalizationsPt {
|
||||
|
||||
@override
|
||||
String get appSettings_clearPathOnMaxRetrySubtitle =>
|
||||
'Repor o caminho do contacto após 5 tentativas de envio falhadas';
|
||||
'Repor o caminho guardado do contacto quando todas as tentativas de envio falharem';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillBeCleared =>
|
||||
'Os caminhos serão limpos após 5 tentativas falhadas';
|
||||
'Os caminhos serão limpos quando todas as tentativas de envio falharem';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillNotBeCleared =>
|
||||
@@ -9086,7 +9217,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt {
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationSubtitle =>
|
||||
'Alterna entre os melhores caminhos e o modo flood';
|
||||
'Em cada tentativa direta, experimentar outro caminho conhecido. As tentativas seguintes são Flood. Desligado mantém o caminho atual do contacto.';
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationEnabled =>
|
||||
@@ -9103,6 +9234,64 @@ class AppLocalizationsPtPt extends AppLocalizationsPt {
|
||||
String get appSettings_maxMessageRetriesSubtitle =>
|
||||
'Número de tentativas antes de marcar uma mensagem como falhada';
|
||||
|
||||
@override
|
||||
String appSettings_directRetries(int count) {
|
||||
return 'Tentativas diretas: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_directRetriesSubtitle =>
|
||||
'Quantas vezes tentar um caminho conhecido. Continua disponível com a rotação automática de caminhos desligada.';
|
||||
|
||||
@override
|
||||
String appSettings_floodRetries(int count) {
|
||||
return 'Tentativas Flood: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_floodRetriesSubtitle =>
|
||||
'Quantas vezes usar Flood. Flood usa mais tempo de ar. Com a rotação ligada, vêm a seguir às tentativas diretas.';
|
||||
|
||||
@override
|
||||
String appSettings_loginAttempts(int count) {
|
||||
return 'Tentativas de início de sessão: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_loginAttemptsSubtitle =>
|
||||
'Quantas vezes tentar iniciar sessão num repetidor ou servidor de sala antes de desistir.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeatersAndRooms => 'Repetidores e salas';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLogin =>
|
||||
'Sincronizar o relógio do repetidor ao iniciar sessão';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLoginSubtitle =>
|
||||
'Depois de iniciar sessão num repetidor, é enviado clock sync. Cada repetidor pode continuar a escolher Predefinição, Ligado ou Desligado.';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocus =>
|
||||
'Focar o campo da palavra-passe';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocusSubtitle =>
|
||||
'Ao abrir o início de sessão de um repetidor ou sala, o cursor vai para a palavra-passe se estiver vazia. Desligado deixa o diálogo visível até tocar no campo.';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettings =>
|
||||
'Repor definições de repetidores e salas';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettingsSubtitle =>
|
||||
'Repõe as definições desta secção. As escolhas guardadas em cada repetidor mantêm-se.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeaterRoomSettingsReset =>
|
||||
'Definições de repetidores e salas repostas';
|
||||
|
||||
@override
|
||||
String get appSettings_ipfsImageLinks => 'Configuração do fornecedor IPFS';
|
||||
|
||||
@@ -11085,7 +11274,16 @@ class AppLocalizationsPtPt extends AppLocalizationsPt {
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncAfterLoginSubtitle =>
|
||||
'Enviar automaticamente \"clock sync\" após um login bem-sucedido';
|
||||
'Predefinição segue Repetidores e salas nas definições. Ligado e Desligado valem só para este repetidor.';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncDefault => 'Predefinição';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOn => 'Ligado';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOff => 'Desligado';
|
||||
|
||||
@override
|
||||
String get repeater_statusTitle => 'Estado do repetidor';
|
||||
@@ -14543,15 +14741,15 @@ class AppLocalizationsPtPt extends AppLocalizationsPt {
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefault =>
|
||||
'Repor algoritmo de encaminhamento';
|
||||
'Repor definições de encaminhamento';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefaultSubtitle =>
|
||||
'Repõe as definições do algoritmo de encaminhamento para os valores de fábrica';
|
||||
'Repor as definições de encaminhamento desta secção para os valores predefinidos';
|
||||
|
||||
@override
|
||||
String get appSettings_routingResetToDefault =>
|
||||
'Definições do algoritmo de encaminhamento repostas';
|
||||
'Definições de encaminhamento repostas';
|
||||
|
||||
@override
|
||||
String get appSettings_imageMessagesSection => 'Mensagens de imagem';
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -1445,11 +1444,11 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_clearPathOnMaxRetrySubtitle =>
|
||||
'Сбросить маршрут контакта после 5 неудачных попыток отправки';
|
||||
'Сбросить сохранённый маршрут контакта, когда все попытки отправки не удались';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillBeCleared =>
|
||||
'Маршруты будут сброшены после 5 неудачных попыток';
|
||||
'Маршруты будут сброшены, когда все попытки отправки не удались';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillNotBeCleared =>
|
||||
@@ -1461,7 +1460,7 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationSubtitle =>
|
||||
'Циклически переключаться между лучшими маршрутами и режимом Flood';
|
||||
'При каждой прямой попытке пробовать другой известный маршрут. Следующие попытки — Flood. Выключено оставляет текущий маршрут контакта.';
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationEnabled =>
|
||||
@@ -1479,6 +1478,63 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
String get appSettings_maxMessageRetriesSubtitle =>
|
||||
'Количество попыток повторной отправки сообщения перед тем, как пометить его как неудачное.';
|
||||
|
||||
@override
|
||||
String appSettings_directRetries(int count) {
|
||||
return 'Прямые попытки: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_directRetriesSubtitle =>
|
||||
'Сколько раз пробовать известный маршрут. Доступно и когда автоматическая ротация выключена.';
|
||||
|
||||
@override
|
||||
String appSettings_floodRetries(int count) {
|
||||
return 'Попытки Flood: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_floodRetriesSubtitle =>
|
||||
'Сколько раз использовать Flood. Flood занимает больше эфирного времени. При включённой ротации они идут после прямых попыток.';
|
||||
|
||||
@override
|
||||
String appSettings_loginAttempts(int count) {
|
||||
return 'Попытки входа: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_loginAttemptsSubtitle =>
|
||||
'Сколько раз пытаться войти на ретранслятор или room-сервер, прежде чем сдаться.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeatersAndRooms => 'Ретрансляторы и комнаты';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLogin =>
|
||||
'Синхронизировать часы ретранслятора при входе';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLoginSubtitle =>
|
||||
'После успешного входа на ретранслятор отправляется clock sync. Для каждого ретранслятора по-прежнему можно выбрать По умолчанию, Вкл. или Выкл.';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocus => 'Фокус на поле пароля';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocusSubtitle =>
|
||||
'При открытии входа на ретранслятор или в комнату курсор ставится в пустое поле пароля. Выключено оставляет окно видимым, пока вы не нажмёте на поле.';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettings =>
|
||||
'Сбросить настройки ретрансляторов и комнат';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettingsSubtitle =>
|
||||
'Возвращает настройки этого раздела. Выбор, сохранённый для отдельных ретрансляторов, остаётся.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeaterRoomSettingsReset =>
|
||||
'Настройки ретрансляторов и комнат сброшены';
|
||||
|
||||
@override
|
||||
String get appSettings_ipfsImageLinks => 'Настройка провайдера IPFS';
|
||||
|
||||
@@ -1834,6 +1890,24 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_noMembers => 'Нет участников';
|
||||
|
||||
@override
|
||||
String contacts_groupCurrentMembers(int count) {
|
||||
return 'Current members ($count)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_groupAddContacts => 'Add contacts';
|
||||
|
||||
@override
|
||||
String contacts_groupRemoveMember(String name) {
|
||||
return 'Remove $name from group';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_groupAddMember(String name) {
|
||||
return 'Add $name to group';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_lastSeenNow => 'недавно';
|
||||
|
||||
@@ -3504,7 +3578,16 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncAfterLoginSubtitle =>
|
||||
'Автоматически отправлять сообщение \"синхронизация времени\" после успешной авторизации.';
|
||||
'«По умолчанию» следует разделу «Ретрансляторы и комнаты» в настройках. «Вкл.» и «Выкл.» только для этого ретранслятора.';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncDefault => 'По умолчанию';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOn => 'Вкл.';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOff => 'Выкл.';
|
||||
|
||||
@override
|
||||
String get repeater_statusTitle => 'Статус репитера';
|
||||
@@ -7050,15 +7133,15 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefault =>
|
||||
'Сбросить алгоритм маршрутизации к значению по умолчанию';
|
||||
'Сбросить настройки маршрутизации к значениям по умолчанию';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefaultSubtitle =>
|
||||
'Восстановить настройки алгоритма маршрутизации к заводским значениям по умолчанию';
|
||||
'Вернуть настройки маршрутизации в этом разделе к значениям по умолчанию';
|
||||
|
||||
@override
|
||||
String get appSettings_routingResetToDefault =>
|
||||
'Настройки алгоритма маршрутизации сброшены к значению по умолчанию';
|
||||
'Настройки маршрутизации сброшены к значениям по умолчанию';
|
||||
|
||||
@override
|
||||
String get appSettings_imageMessagesSection => 'Сообщения-изображения';
|
||||
@@ -7678,4 +7761,52 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get messageMeta_smazCompressed => 'SMAZ compressed';
|
||||
|
||||
@override
|
||||
String get addContact_title => 'Add Contact';
|
||||
|
||||
@override
|
||||
String get addContact_infoBanner =>
|
||||
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
|
||||
|
||||
@override
|
||||
String get addContact_contactType => 'Contact Type';
|
||||
|
||||
@override
|
||||
String get addContact_name => 'Name';
|
||||
|
||||
@override
|
||||
String get addContact_nameRequired => 'Please enter a name';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyHex => 'Public Key (hex)';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyRequired => 'Please enter a public key';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyInvalid =>
|
||||
'Public key must be 64 hex characters (32 bytes)';
|
||||
|
||||
@override
|
||||
String get addContact_clipboardKeyLoaded =>
|
||||
'Public key filled in. Choose a contact type, enter a name, and tap save.';
|
||||
|
||||
@override
|
||||
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
|
||||
|
||||
@override
|
||||
String get addContact_saveFailed => 'Failed to add contact.';
|
||||
|
||||
@override
|
||||
String get coordinateMap_title => 'Location';
|
||||
|
||||
@override
|
||||
String get coordinate_copyLocation => 'Copy location';
|
||||
|
||||
@override
|
||||
String get coordinate_openInMaps => 'Open in maps';
|
||||
|
||||
@override
|
||||
String get coordinate_copied => 'Location copied';
|
||||
}
|
||||
@@ -1439,11 +1439,11 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_clearPathOnMaxRetrySubtitle =>
|
||||
'Resetovať cestu kontaktu po 5 neúspešných pokusoch o odoslanie';
|
||||
'Resetovať uloženú cestu kontaktu, keď zlyhajú všetky pokusy o odoslanie';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillBeCleared =>
|
||||
'Cesty budú vymazané po 5 neúspešných pokusoch.';
|
||||
'Cesty sa vymažú, keď zlyhajú všetky pokusy o odoslanie';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillNotBeCleared =>
|
||||
@@ -1454,7 +1454,7 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationSubtitle =>
|
||||
'Striedajte sa medzi najlepšími trasami a flood režimom.';
|
||||
'Pri každom priamom pokuse skúsiť inú známu trasu. Neskoršie pokusy sú Flood. Vypnuté ponechá aktuálnu cestu kontaktu.';
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationEnabled =>
|
||||
@@ -1472,6 +1472,63 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
String get appSettings_maxMessageRetriesSubtitle =>
|
||||
'Počet opakovaných pokusov pred označením správy ako neúspešnej';
|
||||
|
||||
@override
|
||||
String appSettings_directRetries(int count) {
|
||||
return 'Priame pokusy: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_directRetriesSubtitle =>
|
||||
'Koľkokrát sa skúsi známa trasa. Dostupné aj keď je automatické striedanie trás vypnuté.';
|
||||
|
||||
@override
|
||||
String appSettings_floodRetries(int count) {
|
||||
return 'Pokusy Flood: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_floodRetriesSubtitle =>
|
||||
'Koľkokrát sa použije Flood. Flood zaberie viac vysielacieho času. Pri zapnutom striedaní nasledujú po priamych pokusoch.';
|
||||
|
||||
@override
|
||||
String appSettings_loginAttempts(int count) {
|
||||
return 'Pokusy o prihlásenie: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_loginAttemptsSubtitle =>
|
||||
'Koľkokrát sa skúsi prihlásenie k opakovaču alebo room serveru, kým sa to vzdá.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeatersAndRooms => 'Opakovače a miestnosti';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLogin =>
|
||||
'Synchronizovať hodiny opakovača pri prihlásení';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLoginSubtitle =>
|
||||
'Po úspešnom prihlásení k opakovaču sa odošle clock sync. Každý opakovač môže ďalej zvoliť Predvolené, Zapnuté alebo Vypnuté.';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocus => 'Zamerať pole hesla';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocusSubtitle =>
|
||||
'Pri otvorení prihlásenia k opakovaču alebo miestnosti je kurzor v prázdnom poli hesla. Vypnuté nechá okno viditeľné, kým na pole neťuknete.';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettings =>
|
||||
'Obnoviť nastavenia opakovačov a miestností';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettingsSubtitle =>
|
||||
'Obnoví nastavenia v tejto časti. Voľby uložené pri jednotlivých opakovačoch ostanú.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeaterRoomSettingsReset =>
|
||||
'Nastavenia opakovačov a miestností obnovené';
|
||||
|
||||
@override
|
||||
String get appSettings_ipfsImageLinks => 'Konfigurácia poskytovateľa IPFS';
|
||||
|
||||
@@ -1827,6 +1884,24 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_noMembers => 'Žiadni členovia';
|
||||
|
||||
@override
|
||||
String contacts_groupCurrentMembers(int count) {
|
||||
return 'Current members ($count)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_groupAddContacts => 'Add contacts';
|
||||
|
||||
@override
|
||||
String contacts_groupRemoveMember(String name) {
|
||||
return 'Remove $name from group';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_groupAddMember(String name) {
|
||||
return 'Add $name to group';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_lastSeenNow => 'nedávno';
|
||||
|
||||
@@ -3496,7 +3571,16 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncAfterLoginSubtitle =>
|
||||
'Po úspešnom prihlásení automaticky odoslať „synchronizáciu hodín“';
|
||||
'Predvolené sleduje Opakovače a miestnosti v nastaveniach. Zapnuté a Vypnuté platia len pre tento opakovač.';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncDefault => 'Predvolené';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOn => 'Zapnuté';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOff => 'Vypnuté';
|
||||
|
||||
@override
|
||||
String get repeater_statusTitle => 'Stav opakovača';
|
||||
@@ -7024,15 +7108,15 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefault =>
|
||||
'Obnoviť algoritmus smerovania na predvolené';
|
||||
'Obnoviť nastavenia smerovania na predvolené';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefaultSubtitle =>
|
||||
'Obnoviť nastavenia algoritmu smerovania na továrne predvolené hodnoty';
|
||||
'Obnoviť nastavenia smerovania v tejto časti na predvolené hodnoty';
|
||||
|
||||
@override
|
||||
String get appSettings_routingResetToDefault =>
|
||||
'Nastavenia algoritmu smerovania obnovené na predvolené';
|
||||
'Nastavenia smerovania obnovené na predvolené';
|
||||
|
||||
@override
|
||||
String get appSettings_imageMessagesSection => 'Obrazové správy';
|
||||
@@ -7644,4 +7728,52 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get messageMeta_smazCompressed => 'Komprimované metódou SMAZ';
|
||||
|
||||
@override
|
||||
String get addContact_title => 'Add Contact';
|
||||
|
||||
@override
|
||||
String get addContact_infoBanner =>
|
||||
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
|
||||
|
||||
@override
|
||||
String get addContact_contactType => 'Contact Type';
|
||||
|
||||
@override
|
||||
String get addContact_name => 'Name';
|
||||
|
||||
@override
|
||||
String get addContact_nameRequired => 'Please enter a name';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyHex => 'Public Key (hex)';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyRequired => 'Please enter a public key';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyInvalid =>
|
||||
'Public key must be 64 hex characters (32 bytes)';
|
||||
|
||||
@override
|
||||
String get addContact_clipboardKeyLoaded =>
|
||||
'Public key filled in. Choose a contact type, enter a name, and tap save.';
|
||||
|
||||
@override
|
||||
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
|
||||
|
||||
@override
|
||||
String get addContact_saveFailed => 'Failed to add contact.';
|
||||
|
||||
@override
|
||||
String get coordinateMap_title => 'Location';
|
||||
|
||||
@override
|
||||
String get coordinate_copyLocation => 'Copy location';
|
||||
|
||||
@override
|
||||
String get coordinate_openInMaps => 'Open in maps';
|
||||
|
||||
@override
|
||||
String get coordinate_copied => 'Location copied';
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -1438,11 +1437,11 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_clearPathOnMaxRetrySubtitle =>
|
||||
'Ponastavi pot stika po 5 neuspelih poskusih pošiljanja';
|
||||
'Ponastavi shranjeno pot stika, ko spodletijo vsi poskusi pošiljanja';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillBeCleared =>
|
||||
'Poti bodo počiščene po 5 neuspelih poskusih.';
|
||||
'Poti se počistijo, ko spodletijo vsi poskusi pošiljanja';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillNotBeCleared =>
|
||||
@@ -1453,7 +1452,7 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationSubtitle =>
|
||||
'Izmenjuj najboljše poti in flood način';
|
||||
'Ob vsakem neposrednem poskusu preizkusi drugo znano pot. Kasnejši poskusi so Flood. Izklopljeno ohrani trenutno pot stika.';
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationEnabled =>
|
||||
@@ -1471,6 +1470,63 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
String get appSettings_maxMessageRetriesSubtitle =>
|
||||
'Število poskusov ponovnega poslanja, preden se sporočilo označuje kot neuspešno';
|
||||
|
||||
@override
|
||||
String appSettings_directRetries(int count) {
|
||||
return 'Neposredni poskusi: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_directRetriesSubtitle =>
|
||||
'Kolikokrat se preizkusi znana pot. Na voljo tudi, ko je samodejno kroženje poti izklopljeno.';
|
||||
|
||||
@override
|
||||
String appSettings_floodRetries(int count) {
|
||||
return 'Poskusi Flood: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_floodRetriesSubtitle =>
|
||||
'Kolikokrat se uporabi Flood. Flood porabi več oddajnega časa. Ob vklopljenem kroženju sledijo neposrednim poskusom.';
|
||||
|
||||
@override
|
||||
String appSettings_loginAttempts(int count) {
|
||||
return 'Poskusi prijave: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_loginAttemptsSubtitle =>
|
||||
'Kolikokrat se poskusi prijava v ponavljalnik ali room strežnik, preden obupa.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeatersAndRooms => 'Repetitorji in sobe';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLogin =>
|
||||
'Sinhroniziraj uro repetitorja ob prijavi';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLoginSubtitle =>
|
||||
'Po uspešni prijavi v repetitor se pošlje clock sync. Vsak repetitor lahko še vedno izbere Privzeto, Vklop ali Izklop.';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocus => 'Fokus na polje gesla';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocusSubtitle =>
|
||||
'Ob odprtju prijave v repetitor ali sobo gre kazalec v prazno polje gesla. Izklop pusti okno vidno, dokler se ne dotaknete polja.';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettings =>
|
||||
'Ponastavi nastavitve repetitorjev in sob';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettingsSubtitle =>
|
||||
'Obnovi nastavitve v tem razdelku. Izbire, shranjene pri posameznih repetitorjih, ostanejo.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeaterRoomSettingsReset =>
|
||||
'Nastavitve repetitorjev in sob so ponastavljene';
|
||||
|
||||
@override
|
||||
String get appSettings_ipfsImageLinks => 'Konfiguracija ponudnika IPFS';
|
||||
|
||||
@@ -1826,6 +1882,24 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_noMembers => 'Ni članov.';
|
||||
|
||||
@override
|
||||
String contacts_groupCurrentMembers(int count) {
|
||||
return 'Current members ($count)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_groupAddContacts => 'Add contacts';
|
||||
|
||||
@override
|
||||
String contacts_groupRemoveMember(String name) {
|
||||
return 'Remove $name from group';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_groupAddMember(String name) {
|
||||
return 'Add $name to group';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_lastSeenNow => 'pravkar';
|
||||
|
||||
@@ -3494,7 +3568,16 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncAfterLoginSubtitle =>
|
||||
'Po uspešni prijavi samodejno pošlji »sinhronizacijo ure«';
|
||||
'Privzeto sledi Repetitorjem in sobam v nastavitvah. Vklop in Izklop veljata samo za ta repetitor.';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncDefault => 'Privzeto';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOn => 'Vklop';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOff => 'Izklop';
|
||||
|
||||
@override
|
||||
String get repeater_statusTitle => 'Status repetitora';
|
||||
@@ -7011,15 +7094,15 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefault =>
|
||||
'Ponastavite algoritem usmerjanja na privzeto';
|
||||
'Ponastavi nastavitve usmerjanja na privzete';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefaultSubtitle =>
|
||||
'Obnovite nastavitve algoritma usmerjanja na tovarniške privzetke';
|
||||
'Obnovi nastavitve usmerjanja v tem razdelku na privzete vrednosti';
|
||||
|
||||
@override
|
||||
String get appSettings_routingResetToDefault =>
|
||||
'Nastavitve algoritma usmerjanja so ponastavljene na privzeto';
|
||||
'Nastavitve usmerjanja so ponastavljene na privzete';
|
||||
|
||||
@override
|
||||
String get appSettings_imageMessagesSection => 'Sporočila s slikami';
|
||||
@@ -7637,4 +7720,52 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get messageMeta_smazCompressed => 'SMAZ compressed';
|
||||
|
||||
@override
|
||||
String get addContact_title => 'Add Contact';
|
||||
|
||||
@override
|
||||
String get addContact_infoBanner =>
|
||||
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
|
||||
|
||||
@override
|
||||
String get addContact_contactType => 'Contact Type';
|
||||
|
||||
@override
|
||||
String get addContact_name => 'Name';
|
||||
|
||||
@override
|
||||
String get addContact_nameRequired => 'Please enter a name';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyHex => 'Public Key (hex)';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyRequired => 'Please enter a public key';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyInvalid =>
|
||||
'Public key must be 64 hex characters (32 bytes)';
|
||||
|
||||
@override
|
||||
String get addContact_clipboardKeyLoaded =>
|
||||
'Public key filled in. Choose a contact type, enter a name, and tap save.';
|
||||
|
||||
@override
|
||||
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
|
||||
|
||||
@override
|
||||
String get addContact_saveFailed => 'Failed to add contact.';
|
||||
|
||||
@override
|
||||
String get coordinateMap_title => 'Location';
|
||||
|
||||
@override
|
||||
String get coordinate_copyLocation => 'Copy location';
|
||||
|
||||
@override
|
||||
String get coordinate_openInMaps => 'Open in maps';
|
||||
|
||||
@override
|
||||
String get coordinate_copied => 'Location copied';
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -1428,11 +1427,11 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_clearPathOnMaxRetrySubtitle =>
|
||||
'Återställ kontaktens rutt efter 5 misslyckade sändningsförsök';
|
||||
'Återställ kontaktens sparade rutt när alla sändningsförsök misslyckas';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillBeCleared =>
|
||||
'Rutter rensas efter 5 misslyckade försök';
|
||||
'Rutter rensas när alla sändningsförsök misslyckas';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillNotBeCleared =>
|
||||
@@ -1443,7 +1442,7 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationSubtitle =>
|
||||
'Växla mellan de bästa rutterna och flood-läge';
|
||||
'Vid varje direkt försök, prova en annan känd rutt. Senare försök är Flood. Av behåller kontaktens aktuella rutt.';
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationEnabled =>
|
||||
@@ -1460,6 +1459,63 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
String get appSettings_maxMessageRetriesSubtitle =>
|
||||
'Antal försök att skicka om ett meddelande innan det markeras som misslyckat.';
|
||||
|
||||
@override
|
||||
String appSettings_directRetries(int count) {
|
||||
return 'Direkta försök: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_directRetriesSubtitle =>
|
||||
'Hur många gånger en känd rutt provas. Finns kvar även när automatisk ruttrotation är av.';
|
||||
|
||||
@override
|
||||
String appSettings_floodRetries(int count) {
|
||||
return 'Flood-försök: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_floodRetriesSubtitle =>
|
||||
'Hur många gånger Flood används. Flood tar mer sändningstid. Med rotation på kommer de efter de direkta försöken.';
|
||||
|
||||
@override
|
||||
String appSettings_loginAttempts(int count) {
|
||||
return 'Inloggningsförsök: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_loginAttemptsSubtitle =>
|
||||
'Hur många gånger inloggning till en repeater eller room-server provas innan den ger upp.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeatersAndRooms => 'Repeatrar och rum';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLogin =>
|
||||
'Synka repeaterklockan vid inloggning';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLoginSubtitle =>
|
||||
'Efter en lyckad repeaterinloggning skickas clock sync. Varje repeater kan fortfarande välja Standard, På eller Av.';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocus => 'Fokusera lösenordsfältet';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocusSubtitle =>
|
||||
'När en repeater- eller ruminloggning öppnas hamnar markören i lösenordsfältet om det är tomt. Av lämnar dialogrutan synlig tills du trycker på fältet.';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettings =>
|
||||
'Återställ repeater- och ruminställningar';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettingsSubtitle =>
|
||||
'Återställer inställningarna i det här avsnittet. Val som sparats på enskilda repeatrar blir kvar.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeaterRoomSettingsReset =>
|
||||
'Repeater- och ruminställningar återställda';
|
||||
|
||||
@override
|
||||
String get appSettings_ipfsImageLinks => 'Konfiguration av IPFS-leverantör';
|
||||
|
||||
@@ -1816,6 +1872,24 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_noMembers => 'Inga medlemmar';
|
||||
|
||||
@override
|
||||
String contacts_groupCurrentMembers(int count) {
|
||||
return 'Current members ($count)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_groupAddContacts => 'Add contacts';
|
||||
|
||||
@override
|
||||
String contacts_groupRemoveMember(String name) {
|
||||
return 'Remove $name from group';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_groupAddMember(String name) {
|
||||
return 'Add $name to group';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_lastSeenNow => 'nyss';
|
||||
|
||||
@@ -3470,7 +3544,16 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncAfterLoginSubtitle =>
|
||||
'Automatiskt skicka \"klocksynkronisering\" efter en lyckad inloggning.';
|
||||
'Standard följer Repeatrar och rum i appinställningarna. På och Av gäller bara den här repeatern.';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncDefault => 'Standard';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOn => 'På';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOff => 'Av';
|
||||
|
||||
@override
|
||||
String get repeater_statusTitle => 'Repeaterstatus';
|
||||
@@ -6978,15 +7061,15 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefault =>
|
||||
'Återställ rutningsalgoritm till standard';
|
||||
'Återställ rutningsinställningar till standard';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefaultSubtitle =>
|
||||
'Återställ rutningsalgoritmins inställningar till fabriksstandard';
|
||||
'Återställ routningsinställningarna i det här avsnittet till standardvärden';
|
||||
|
||||
@override
|
||||
String get appSettings_routingResetToDefault =>
|
||||
'Rutningsalgoritmins inställningar återställda till standard';
|
||||
'Rutningsinställningar återställda till standard';
|
||||
|
||||
@override
|
||||
String get appSettings_imageMessagesSection => 'Bildmeddelanden';
|
||||
@@ -7597,4 +7680,52 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get messageMeta_smazCompressed => 'SMAZ compressed';
|
||||
|
||||
@override
|
||||
String get addContact_title => 'Add Contact';
|
||||
|
||||
@override
|
||||
String get addContact_infoBanner =>
|
||||
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
|
||||
|
||||
@override
|
||||
String get addContact_contactType => 'Contact Type';
|
||||
|
||||
@override
|
||||
String get addContact_name => 'Name';
|
||||
|
||||
@override
|
||||
String get addContact_nameRequired => 'Please enter a name';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyHex => 'Public Key (hex)';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyRequired => 'Please enter a public key';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyInvalid =>
|
||||
'Public key must be 64 hex characters (32 bytes)';
|
||||
|
||||
@override
|
||||
String get addContact_clipboardKeyLoaded =>
|
||||
'Public key filled in. Choose a contact type, enter a name, and tap save.';
|
||||
|
||||
@override
|
||||
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
|
||||
|
||||
@override
|
||||
String get addContact_saveFailed => 'Failed to add contact.';
|
||||
|
||||
@override
|
||||
String get coordinateMap_title => 'Location';
|
||||
|
||||
@override
|
||||
String get coordinate_copyLocation => 'Copy location';
|
||||
|
||||
@override
|
||||
String get coordinate_openInMaps => 'Open in maps';
|
||||
|
||||
@override
|
||||
String get coordinate_copied => 'Location copied';
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -1440,11 +1439,11 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_clearPathOnMaxRetrySubtitle =>
|
||||
'Скидати шлях до контакту після 5 невдалих спроб надсилання';
|
||||
'Скинути збережений шлях контакту, коли всі спроби надсилання не вдаються';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillBeCleared =>
|
||||
'Шляхи будуть очищені після 5 невдалих спроб.';
|
||||
'Шляхи буде очищено, коли всі спроби надсилання не вдадуться';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillNotBeCleared =>
|
||||
@@ -1455,7 +1454,7 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationSubtitle =>
|
||||
'Чергувати найкращі шляхи та режим Flood';
|
||||
'На кожній прямій спробі пробувати інший відомий маршрут. Наступні спроби — Flood. Вимкнено залишає поточний шлях контакту.';
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationEnabled =>
|
||||
@@ -1473,6 +1472,63 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
String get appSettings_maxMessageRetriesSubtitle =>
|
||||
'Кількість спроб повторного відправлення повідомлення перед тим, як позначити його як невдале';
|
||||
|
||||
@override
|
||||
String appSettings_directRetries(int count) {
|
||||
return 'Прямі спроби: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_directRetriesSubtitle =>
|
||||
'Скільки разів пробувати відомий маршрут. Доступно і коли авторотацію вимкнено.';
|
||||
|
||||
@override
|
||||
String appSettings_floodRetries(int count) {
|
||||
return 'Спроби Flood: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_floodRetriesSubtitle =>
|
||||
'Скільки разів використовувати Flood. Flood займає більше ефірного часу. Якщо ротацію ввімкнено, вони йдуть після прямих спроб.';
|
||||
|
||||
@override
|
||||
String appSettings_loginAttempts(int count) {
|
||||
return 'Спроби входу: $count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_loginAttemptsSubtitle =>
|
||||
'Скільки разів пробувати вхід до ретранслятора або room-сервера, перш ніж здатися.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeatersAndRooms => 'Ретранслятори та кімнати';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLogin =>
|
||||
'Синхронізувати годинник ретранслятора під час входу';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLoginSubtitle =>
|
||||
'Після успішного входу на ретранслятор надсилається clock sync. Для кожного ретранслятора можна лишити Типово, Увімк. або Вимк.';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocus => 'Фокус на полі пароля';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocusSubtitle =>
|
||||
'Коли відкривається вхід на ретранслятор або в кімнату, курсор стає в порожнє поле пароля. Вимкнено лишає вікно видимим, доки ви не торкнетеся поля.';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettings =>
|
||||
'Скинути налаштування ретрансляторів і кімнат';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettingsSubtitle =>
|
||||
'Відновлює налаштування цього розділу. Вибір, збережений для окремих ретрансляторів, лишається.';
|
||||
|
||||
@override
|
||||
String get appSettings_repeaterRoomSettingsReset =>
|
||||
'Налаштування ретрансляторів і кімнат скинуто';
|
||||
|
||||
@override
|
||||
String get appSettings_ipfsImageLinks => 'Налаштування IPFS-провайдера';
|
||||
|
||||
@@ -1830,6 +1886,24 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_noMembers => 'Немає учасників';
|
||||
|
||||
@override
|
||||
String contacts_groupCurrentMembers(int count) {
|
||||
return 'Current members ($count)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_groupAddContacts => 'Add contacts';
|
||||
|
||||
@override
|
||||
String contacts_groupRemoveMember(String name) {
|
||||
return 'Remove $name from group';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_groupAddMember(String name) {
|
||||
return 'Add $name to group';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_lastSeenNow => 'нещодавно';
|
||||
|
||||
@@ -3502,7 +3576,16 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncAfterLoginSubtitle =>
|
||||
'Автоматично надсилати повідомлення \"синхронізація годин\" після успішного входу.';
|
||||
'«Типово» йде за розділом «Ретранслятори та кімнати» в налаштуваннях. «Увімк.» і «Вимк.» лише для цього ретранслятора.';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncDefault => 'Типово';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOn => 'Увімк.';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOff => 'Вимк.';
|
||||
|
||||
@override
|
||||
String get repeater_statusTitle => 'Статус ретранслятора';
|
||||
@@ -7058,15 +7141,15 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefault =>
|
||||
'Скинути алгоритм маршрутизації до типового';
|
||||
'Скинути налаштування маршрутизації до типових';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefaultSubtitle =>
|
||||
'Відновити налаштування алгоритму маршрутизації до заводських значень за замовчуванням';
|
||||
'Відновити налаштування маршрутизації в цьому розділі до значень за замовчуванням';
|
||||
|
||||
@override
|
||||
String get appSettings_routingResetToDefault =>
|
||||
'Налаштування алгоритму маршрутизації скинуто до типових';
|
||||
'Налаштування маршрутизації скинуто до типових';
|
||||
|
||||
@override
|
||||
String get appSettings_imageMessagesSection => 'Повідомлення із зображеннями';
|
||||
@@ -7690,4 +7773,52 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get messageMeta_smazCompressed => 'SMAZ compressed';
|
||||
|
||||
@override
|
||||
String get addContact_title => 'Add Contact';
|
||||
|
||||
@override
|
||||
String get addContact_infoBanner =>
|
||||
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
|
||||
|
||||
@override
|
||||
String get addContact_contactType => 'Contact Type';
|
||||
|
||||
@override
|
||||
String get addContact_name => 'Name';
|
||||
|
||||
@override
|
||||
String get addContact_nameRequired => 'Please enter a name';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyHex => 'Public Key (hex)';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyRequired => 'Please enter a public key';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyInvalid =>
|
||||
'Public key must be 64 hex characters (32 bytes)';
|
||||
|
||||
@override
|
||||
String get addContact_clipboardKeyLoaded =>
|
||||
'Public key filled in. Choose a contact type, enter a name, and tap save.';
|
||||
|
||||
@override
|
||||
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
|
||||
|
||||
@override
|
||||
String get addContact_saveFailed => 'Failed to add contact.';
|
||||
|
||||
@override
|
||||
String get coordinateMap_title => 'Location';
|
||||
|
||||
@override
|
||||
String get coordinate_copyLocation => 'Copy location';
|
||||
|
||||
@override
|
||||
String get coordinate_openInMaps => 'Open in maps';
|
||||
|
||||
@override
|
||||
String get coordinate_copied => 'Location copied';
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -1353,10 +1352,11 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
String get appSettings_clearPathOnMaxRetry => '达到最大重试次数时清除路径';
|
||||
|
||||
@override
|
||||
String get appSettings_clearPathOnMaxRetrySubtitle => '在5次发送失败后重置联系路径。';
|
||||
String get appSettings_clearPathOnMaxRetrySubtitle =>
|
||||
'所有发送尝试都失败后,重置联系人已保存的路径';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillBeCleared => '5次失败后将重新路由';
|
||||
String get appSettings_pathsWillBeCleared => '所有发送尝试失败后将清除路径';
|
||||
|
||||
@override
|
||||
String get appSettings_pathsWillNotBeCleared => '路径不会自动清除';
|
||||
@@ -1365,7 +1365,8 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
String get appSettings_autoRouteRotation => '自动路径轮换';
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationSubtitle => '在最佳路径和泛洪模式之间切换';
|
||||
String get appSettings_autoRouteRotationSubtitle =>
|
||||
'每次直接尝试换一条已知路由。之后的尝试使用 Flood。关闭后保持联系人的当前路径。';
|
||||
|
||||
@override
|
||||
String get appSettings_autoRouteRotationEnabled => '自动路径轮换已启用';
|
||||
@@ -1379,6 +1380,58 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
@override
|
||||
String get appSettings_maxMessageRetriesSubtitle => '在将消息标记为失败之前,允许尝试的次数';
|
||||
|
||||
@override
|
||||
String appSettings_directRetries(int count) {
|
||||
return '直接尝试:$count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_directRetriesSubtitle => '尝试已知路由的次数。关闭自动路径轮换后仍然可以设置。';
|
||||
|
||||
@override
|
||||
String appSettings_floodRetries(int count) {
|
||||
return 'Flood 尝试:$count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_floodRetriesSubtitle =>
|
||||
'使用 Flood 的次数。Flood 占用更多空中时间。开启轮换时,这些尝试排在直接尝试之后。';
|
||||
|
||||
@override
|
||||
String appSettings_loginAttempts(int count) {
|
||||
return '登录尝试:$count';
|
||||
}
|
||||
|
||||
@override
|
||||
String get appSettings_loginAttemptsSubtitle => '登录中继或房间服务器时,放弃前的尝试次数。';
|
||||
|
||||
@override
|
||||
String get appSettings_repeatersAndRooms => '中继和房间';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLogin => '登录时同步中继时钟';
|
||||
|
||||
@override
|
||||
String get appSettings_clockSyncAfterLoginSubtitle =>
|
||||
'成功登录中继后会发送 clock sync。每个中继仍可选择默认、开或关。';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocus => '聚焦密码框';
|
||||
|
||||
@override
|
||||
String get appSettings_loginPasswordAutofocusSubtitle =>
|
||||
'打开中继或房间登录时,如果密码为空,光标会进入密码框。关闭后,在你点按该框之前对话框保持可见。';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettings => '将中继和房间设置重置为默认';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRepeaterRoomSettingsSubtitle =>
|
||||
'恢复这一节的设置。保存在各个中继上的选择保持不变。';
|
||||
|
||||
@override
|
||||
String get appSettings_repeaterRoomSettingsReset => '中继和房间设置已重置';
|
||||
|
||||
@override
|
||||
String get appSettings_ipfsImageLinks => 'IPFS 提供商配置';
|
||||
|
||||
@@ -1718,6 +1771,24 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
@override
|
||||
String get contacts_noMembers => '暂无成员';
|
||||
|
||||
@override
|
||||
String contacts_groupCurrentMembers(int count) {
|
||||
return 'Current members ($count)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_groupAddContacts => 'Add contacts';
|
||||
|
||||
@override
|
||||
String contacts_groupRemoveMember(String name) {
|
||||
return 'Remove $name from group';
|
||||
}
|
||||
|
||||
@override
|
||||
String contacts_groupAddMember(String name) {
|
||||
return 'Add $name to group';
|
||||
}
|
||||
|
||||
@override
|
||||
String get contacts_lastSeenNow => '刚刚';
|
||||
|
||||
@@ -3305,7 +3376,17 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
String get repeater_clockSyncAfterLogin => '登录后,自动同步时钟';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncAfterLoginSubtitle => '在成功登录后,自动发送“时钟同步”指令。';
|
||||
String get repeater_clockSyncAfterLoginSubtitle =>
|
||||
'默认跟随应用设置里的“中继和房间”。开和关只作用于这个中继。';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncDefault => '默认';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOn => '开';
|
||||
|
||||
@override
|
||||
String get repeater_clockSyncOff => '关';
|
||||
|
||||
@override
|
||||
String get repeater_statusTitle => '转发节点状态';
|
||||
@@ -6560,13 +6641,13 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
String get appSettings_routingSection => '路由';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefault => '将路由算法重置为默认值';
|
||||
String get appSettings_resetRoutingToDefault => '将路由设置重置为默认值';
|
||||
|
||||
@override
|
||||
String get appSettings_resetRoutingToDefaultSubtitle => '将路由算法设置恢复为出厂默认值';
|
||||
String get appSettings_resetRoutingToDefaultSubtitle => '将本部分的路由设置恢复为默认值';
|
||||
|
||||
@override
|
||||
String get appSettings_routingResetToDefault => '路由算法设置已重置为默认值';
|
||||
String get appSettings_routingResetToDefault => '路由设置已重置为默认值';
|
||||
|
||||
@override
|
||||
String get appSettings_imageMessagesSection => '图片消息';
|
||||
@@ -7150,4 +7231,52 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get messageMeta_smazCompressed => 'SMAZ compressed';
|
||||
|
||||
@override
|
||||
String get addContact_title => 'Add Contact';
|
||||
|
||||
@override
|
||||
String get addContact_infoBanner =>
|
||||
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
|
||||
|
||||
@override
|
||||
String get addContact_contactType => 'Contact Type';
|
||||
|
||||
@override
|
||||
String get addContact_name => 'Name';
|
||||
|
||||
@override
|
||||
String get addContact_nameRequired => 'Please enter a name';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyHex => 'Public Key (hex)';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyRequired => 'Please enter a public key';
|
||||
|
||||
@override
|
||||
String get addContact_publicKeyInvalid =>
|
||||
'Public key must be 64 hex characters (32 bytes)';
|
||||
|
||||
@override
|
||||
String get addContact_clipboardKeyLoaded =>
|
||||
'Public key filled in. Choose a contact type, enter a name, and tap save.';
|
||||
|
||||
@override
|
||||
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
|
||||
|
||||
@override
|
||||
String get addContact_saveFailed => 'Failed to add contact.';
|
||||
|
||||
@override
|
||||
String get coordinateMap_title => 'Location';
|
||||
|
||||
@override
|
||||
String get coordinate_copyLocation => 'Copy location';
|
||||
|
||||
@override
|
||||
String get coordinate_openInMaps => 'Open in maps';
|
||||
|
||||
@override
|
||||
String get coordinate_copied => 'Location copied';
|
||||
}
|
||||
+24
-7
@@ -203,11 +203,11 @@
|
||||
"appSettings_advertisementNotificationsSubtitle": "Toon notificatie wanneer nieuwe nodes worden ontdekt",
|
||||
"appSettings_messaging": "Berichten",
|
||||
"appSettings_clearPathOnMaxRetry": "Pad wissen na max. pogingen",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Reset contactpad na 5 mislukte verzendpogingen",
|
||||
"appSettings_pathsWillBeCleared": "Paden worden gewist na 5 mislukte pogingen",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Het opgeslagen pad van het contact resetten als alle verzendpogingen mislukken",
|
||||
"appSettings_pathsWillBeCleared": "Paden worden gewist als alle verzendpogingen mislukken",
|
||||
"appSettings_pathsWillNotBeCleared": "Paden worden niet automatisch gewist",
|
||||
"appSettings_autoRouteRotation": "Route Automatisch Roteren",
|
||||
"appSettings_autoRouteRotationSubtitle": "Wissel tussen beste paden en floodmodus",
|
||||
"appSettings_autoRouteRotationSubtitle": "Bij elke directe poging een andere bekende route proberen. Latere pogingen zijn Flood. Uit houdt het huidige pad van het contact.",
|
||||
"appSettings_autoRouteRotationEnabled": "Automatische route rotatie ingeschakeld",
|
||||
"appSettings_autoRouteRotationDisabled": "Automatische route rotatie is uitgeschakeld",
|
||||
"appSettings_battery": "Batterij",
|
||||
@@ -2430,7 +2430,7 @@
|
||||
"@repeater_clockSyncAfterLoginSubtitle": {
|
||||
"description": "Repeater setting subtitle: describes the clock sync after login behavior"
|
||||
},
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Automatisch een \"klok synchroniseren\" bericht versturen na een succesvolle inlog.",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Standaard volgt Repeaters en rooms in de app-instellingen. Aan en Uit gelden alleen voor deze repeater.",
|
||||
"repeater_clockSyncAfterLogin": "Na het inloggen, klok synchroniseren",
|
||||
"repeater_guestTools": "Gastenfuncties",
|
||||
"repeater_roleAdmin": "ADMIN",
|
||||
@@ -3254,9 +3254,9 @@
|
||||
"settings_regionFetchNoneResponded": "Geen repeaters in de buurt hebben geantwoord. Ga dichter bij een repeater staan en probeer het opnieuw.",
|
||||
"appSettings_sourceSummary": "{label} - {description}",
|
||||
"appSettings_routingSection": "Routering",
|
||||
"appSettings_resetRoutingToDefault": "Routeringsalgoritme resetten naar standaard",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Routeringsalgoritme-instellingen herstellen naar fabrieksstandaardwaarden",
|
||||
"appSettings_routingResetToDefault": "Routeringsalgoritme-instellingen gereset naar standaard",
|
||||
"appSettings_resetRoutingToDefault": "Routeringsinstellingen resetten naar standaard",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "De routeringsinstellingen in dit gedeelte terugzetten naar de standaardwaarden",
|
||||
"appSettings_routingResetToDefault": "Routeringsinstellingen gereset naar standaard",
|
||||
"appSettings_imageMessagesSection": "Afbeeldingsberichten",
|
||||
"appSettings_showApiKey": "API-sleutel tonen",
|
||||
"appSettings_hideApiKey": "API-sleutel verbergen",
|
||||
@@ -3678,6 +3678,23 @@
|
||||
"connectSheet_stopReconnecting": "Opnieuw verbinden stoppen",
|
||||
"connectSheet_reconnectFailed": "Kan {name} niet bereiken. Controleer of het aan staat en in de buurt is.",
|
||||
"chat_composerOffline": "Verbind met een radio om berichten te versturen",
|
||||
"appSettings_directRetries": "Directe pogingen: {count}",
|
||||
"appSettings_directRetriesSubtitle": "Hoe vaak een bekende route wordt geprobeerd. Blijft beschikbaar als automatische routerotatie uit staat.",
|
||||
"appSettings_floodRetries": "Flood-pogingen: {count}",
|
||||
"appSettings_floodRetriesSubtitle": "Hoe vaak Flood wordt gebruikt. Flood kost meer zendtijd. Met rotatie aan volgen ze op de directe pogingen.",
|
||||
"appSettings_loginAttempts": "Inlogpogingen: {count}",
|
||||
"appSettings_loginAttemptsSubtitle": "Hoe vaak wordt geprobeerd in te loggen op een repeater of roomserver voordat het stopt.",
|
||||
"appSettings_repeatersAndRooms": "Repeaters en rooms",
|
||||
"appSettings_clockSyncAfterLogin": "Repeaterklok synchroniseren bij aanmelden",
|
||||
"appSettings_clockSyncAfterLoginSubtitle": "Na een geslaagde repeater-aanmelding wordt clock sync gestuurd. Elke repeater kan nog Standaard, Aan of Uit kiezen.",
|
||||
"appSettings_loginPasswordAutofocus": "Wachtwoordveld focussen",
|
||||
"appSettings_loginPasswordAutofocusSubtitle": "Bij het openen van een repeater- of room-aanmelding staat de cursor in het lege wachtwoordveld. Uit laat het venster zichtbaar tot je het veld aantikt.",
|
||||
"appSettings_resetRepeaterRoomSettings": "Repeater- en roominstellingen resetten",
|
||||
"appSettings_resetRepeaterRoomSettingsSubtitle": "Zet de instellingen in deze sectie terug. Keuzes die per repeater zijn opgeslagen blijven staan.",
|
||||
"appSettings_repeaterRoomSettingsReset": "Repeater- en roominstellingen gereset",
|
||||
"repeater_clockSyncDefault": "Standaard",
|
||||
"repeater_clockSyncOn": "Aan",
|
||||
"repeater_clockSyncOff": "Uit",
|
||||
"modelDownload_notDownloaded": "Niet gedownload",
|
||||
"modelDownload_downloading": "Downloaden",
|
||||
"modelDownload_active": "Actief",
|
||||
|
||||
+24
-7
@@ -198,11 +198,11 @@
|
||||
"appSettings_advertisementNotificationsSubtitle": "Wyświetl powiadomienie, gdy zostaną wykryte nowe węzły.",
|
||||
"appSettings_messaging": "Wiadomości",
|
||||
"appSettings_clearPathOnMaxRetry": "Wyczyść ścieżkę po maks. liczbie prób",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Resetuj ścieżkę kontaktu po 5 nieudanych próbach wysłania",
|
||||
"appSettings_pathsWillBeCleared": "Ścieżka zostanie wyczyszczona po 5 nieudanych próbach.",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Resetuj zapisaną ścieżkę kontaktu, gdy wszystkie próby wysłania się nie powiodą",
|
||||
"appSettings_pathsWillBeCleared": "Ścieżki zostaną wyczyszczone, gdy wszystkie próby wysłania się nie powiodą",
|
||||
"appSettings_pathsWillNotBeCleared": "Ścieżka nie zostanie automatycznie wyczyszczona.",
|
||||
"appSettings_autoRouteRotation": "Automatyczna rotacja trasy",
|
||||
"appSettings_autoRouteRotationSubtitle": "Przełączaj się między najlepszymi ścieżkami a trybem flood.",
|
||||
"appSettings_autoRouteRotationSubtitle": "Przy każdej próbie bezpośredniej wypróbuj inną znaną trasę. Późniejsze próby to Flood. Wyłączone zostawia bieżącą ścieżkę kontaktu.",
|
||||
"appSettings_autoRouteRotationEnabled": "Automatyczne obracanie tras włączone",
|
||||
"appSettings_autoRouteRotationDisabled": "Automatyczne obracanie tras wyłączone",
|
||||
"appSettings_battery": "Bateria",
|
||||
@@ -2416,7 +2416,7 @@
|
||||
"repeater_cliQuickClockSync": "Synchronizacja zegara",
|
||||
"repeater_cliQuickDiscovery": "Odkryj Sąsiadów",
|
||||
"repeater_clockSyncAfterLogin": "Synchronizacja zegara po zalogowaniu",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Automatycznie wysyłaj powiadomienie \"synchronizacja zegara\" po pomyślnym zalogowaniu.",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Domyślnie podąża za Przemienniki i pokoje w ustawieniach. Wł. i Wył. dotyczą tylko tego przemiennika.",
|
||||
"chat_sendMessage": "Wyślij wiadomość",
|
||||
"repeater_guestTools": "Narzędzia dla gości",
|
||||
"repeater_guest": "Informacje dotyczące urządzenia powtarzającego",
|
||||
@@ -3386,9 +3386,9 @@
|
||||
"settings_regionFetchNoneResponded": "Żaden pobliski przekaźnik nie odpowiedział. Zbliż się do przekaźnika i spróbuj ponownie.",
|
||||
"appSettings_sourceSummary": "{label} - {description}",
|
||||
"appSettings_routingSection": "Routing",
|
||||
"appSettings_resetRoutingToDefault": "Resetuj algorytm trasowania do domyślnych",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Przywróć ustawienia algorytmu trasowania do fabrycznych ustawień domyślnych",
|
||||
"appSettings_routingResetToDefault": "Ustawienia algorytmu trasowania zresetowane do domyślnych",
|
||||
"appSettings_resetRoutingToDefault": "Resetuj ustawienia trasowania do domyślnych",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Przywróć ustawienia trasowania w tej sekcji do wartości domyślnych",
|
||||
"appSettings_routingResetToDefault": "Ustawienia trasowania zresetowane do domyślnych",
|
||||
"appSettings_imageMessagesSection": "Wiadomości z obrazami",
|
||||
"appSettings_showApiKey": "Pokaż klucz API",
|
||||
"appSettings_hideApiKey": "Ukryj klucz API",
|
||||
@@ -4016,6 +4016,23 @@
|
||||
"connectSheet_stopReconnecting": "Zatrzymaj ponowne łączenie",
|
||||
"connectSheet_reconnectFailed": "Nie można połączyć z {name}. Upewnij się, że jest włączone i w pobliżu.",
|
||||
"chat_composerOffline": "Połącz się z radiem, aby wysyłać wiadomości",
|
||||
"appSettings_directRetries": "Próby bezpośrednie: {count}",
|
||||
"appSettings_directRetriesSubtitle": "Ile razy próbować znanej trasy. Dostępne także przy wyłączonej automatycznej rotacji trasy.",
|
||||
"appSettings_floodRetries": "Próby Flood: {count}",
|
||||
"appSettings_floodRetriesSubtitle": "Ile razy użyć Flood. Flood zużywa więcej czasu antenowego. Przy włączonej rotacji następują po próbach bezpośrednich.",
|
||||
"appSettings_loginAttempts": "Próby logowania: {count}",
|
||||
"appSettings_loginAttemptsSubtitle": "Ile razy próbować logowania do przemiennika lub serwera room, zanim aplikacja zrezygnuje.",
|
||||
"appSettings_repeatersAndRooms": "Przemienniki i pokoje",
|
||||
"appSettings_clockSyncAfterLogin": "Synchronizuj zegar przemiennika przy logowaniu",
|
||||
"appSettings_clockSyncAfterLoginSubtitle": "Po udanym logowaniu do przemiennika wysyłane jest clock sync. Każdy przemiennik może nadal wybrać Domyślnie, Wł. lub Wył.",
|
||||
"appSettings_loginPasswordAutofocus": "Uaktywnij pole hasła",
|
||||
"appSettings_loginPasswordAutofocusSubtitle": "Przy otwieraniu logowania do przemiennika lub pokoju kursor trafia w puste pole hasła. Wyłączenie zostawia okno widoczne, aż dotkniesz pola.",
|
||||
"appSettings_resetRepeaterRoomSettings": "Resetuj ustawienia przemienników i pokoi",
|
||||
"appSettings_resetRepeaterRoomSettingsSubtitle": "Przywraca ustawienia w tej sekcji. Wybory zapisane przy poszczególnych przemiennikach zostają.",
|
||||
"appSettings_repeaterRoomSettingsReset": "Ustawienia przemienników i pokoi zresetowane",
|
||||
"repeater_clockSyncDefault": "Domyślnie",
|
||||
"repeater_clockSyncOn": "Wł.",
|
||||
"repeater_clockSyncOff": "Wył.",
|
||||
"modelDownload_notDownloaded": "Nie pobrano",
|
||||
"modelDownload_downloading": "Pobieranie",
|
||||
"modelDownload_active": "Aktywny",
|
||||
|
||||
+24
-7
@@ -198,11 +198,11 @@
|
||||
"appSettings_advertisementNotificationsSubtitle": "Mostrar notificação quando novos nós forem descobertos",
|
||||
"appSettings_messaging": "Mensagens",
|
||||
"appSettings_clearPathOnMaxRetry": "Limpar Caminho em Tentativas Máximas",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Redefinir o caminho de contato após 5 tentativas de envio falhas",
|
||||
"appSettings_pathsWillBeCleared": "Os caminhos serão limpos após 5 tentativas falhas.",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Redefinir o caminho salvo do contato quando todas as tentativas de envio falharem",
|
||||
"appSettings_pathsWillBeCleared": "Os caminhos serão limpos quando todas as tentativas de envio falharem",
|
||||
"appSettings_pathsWillNotBeCleared": "Os caminhos não serão limpos automaticamente.",
|
||||
"appSettings_autoRouteRotation": "Rotação de Rota Automática",
|
||||
"appSettings_autoRouteRotationSubtitle": "Alternar entre os melhores caminhos e o modo Flood",
|
||||
"appSettings_autoRouteRotationSubtitle": "Em cada tentativa direta, experimentar outra rota conhecida. As tentativas seguintes são Flood. Desligado mantém o caminho atual do contato.",
|
||||
"appSettings_autoRouteRotationEnabled": "Rotação de roteamento automático habilitada",
|
||||
"appSettings_autoRouteRotationDisabled": "Rotação de roteamento automático desativada",
|
||||
"appSettings_battery": "Bateria",
|
||||
@@ -2299,7 +2299,7 @@
|
||||
"@repeater_clockSyncAfterLoginSubtitle": {
|
||||
"description": "Repeater setting subtitle: describes the clock sync after login behavior"
|
||||
},
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Enviar automaticamente a sincronização do \"relógio\" após um login bem-sucedido.",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Padrão segue Repetidores e salas nas configurações. Ligado e Desligado valem só para este repetidor.",
|
||||
"repeater_clockSyncAfterLogin": "Sincronização do relógio após o login",
|
||||
"room_guest": "Informações do Servidor",
|
||||
"chat_sendMessage": "Enviar mensagem",
|
||||
@@ -3239,9 +3239,9 @@
|
||||
"settings_regionFetchNoneResponded": "Nenhum repetidor próximo respondeu. Aproxime-se de um repetidor e tente novamente.",
|
||||
"appSettings_sourceSummary": "{label} - {description}",
|
||||
"appSettings_routingSection": "Roteamento",
|
||||
"appSettings_resetRoutingToDefault": "Redefinir algoritmo de roteamento para o padrão",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Restaurar as configurações do algoritmo de roteamento para os valores padrão de fábrica",
|
||||
"appSettings_routingResetToDefault": "Configurações do algoritmo de roteamento redefinidas para o padrão",
|
||||
"appSettings_resetRoutingToDefault": "Redefinir configurações de roteamento para o padrão",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Restaurar as configurações de roteamento desta seção para os padrões",
|
||||
"appSettings_routingResetToDefault": "Configurações de roteamento redefinidas para o padrão",
|
||||
"appSettings_imageMessagesSection": "Mensagens de imagem",
|
||||
"appSettings_showApiKey": "Mostrar chave de API",
|
||||
"appSettings_hideApiKey": "Ocultar chave de API",
|
||||
@@ -3829,6 +3829,23 @@
|
||||
"connectSheet_stopReconnecting": "Parar de reconectar",
|
||||
"connectSheet_reconnectFailed": "Não foi possível alcançar {name}. Verifique se está ligado e por perto.",
|
||||
"chat_composerOffline": "Conecte-se a um rádio para enviar mensagens",
|
||||
"appSettings_directRetries": "Tentativas diretas: {count}",
|
||||
"appSettings_directRetriesSubtitle": "Quantas vezes tentar uma rota conhecida. Continua disponível com a rotação automática de rotas desligada.",
|
||||
"appSettings_floodRetries": "Tentativas Flood: {count}",
|
||||
"appSettings_floodRetriesSubtitle": "Quantas vezes usar Flood. Flood usa mais tempo de ar. Com a rotação ligada, vêm depois das tentativas diretas.",
|
||||
"appSettings_loginAttempts": "Tentativas de login: {count}",
|
||||
"appSettings_loginAttemptsSubtitle": "Quantas vezes tentar entrar em um repetidor ou servidor de sala antes de desistir.",
|
||||
"appSettings_repeatersAndRooms": "Repetidores e salas",
|
||||
"appSettings_clockSyncAfterLogin": "Sincronizar o relógio do repetidor ao entrar",
|
||||
"appSettings_clockSyncAfterLoginSubtitle": "Depois de entrar em um repetidor, clock sync é enviado. Cada repetidor ainda pode escolher Padrão, Ligado ou Desligado.",
|
||||
"appSettings_loginPasswordAutofocus": "Focar o campo de senha",
|
||||
"appSettings_loginPasswordAutofocusSubtitle": "Ao abrir o login de um repetidor ou sala, o cursor vai para a senha se ela estiver vazia. Desligado deixa o diálogo visível até você tocar no campo.",
|
||||
"appSettings_resetRepeaterRoomSettings": "Redefinir configurações de repetidores e salas",
|
||||
"appSettings_resetRepeaterRoomSettingsSubtitle": "Restaura as configurações desta seção. As escolhas salvas em cada repetidor permanecem.",
|
||||
"appSettings_repeaterRoomSettingsReset": "Configurações de repetidores e salas redefinidas",
|
||||
"repeater_clockSyncDefault": "Padrão",
|
||||
"repeater_clockSyncOn": "Ligado",
|
||||
"repeater_clockSyncOff": "Desligado",
|
||||
"modelDownload_notDownloaded": "Não baixado",
|
||||
"modelDownload_downloading": "Baixando",
|
||||
"modelDownload_active": "Ativo",
|
||||
|
||||
+24
-7
@@ -415,11 +415,11 @@
|
||||
"appSettings_advertisementNotificationsSubtitle": "Mostrar notificação quando são descobertos novos nós",
|
||||
"appSettings_messaging": "Mensagens",
|
||||
"appSettings_clearPathOnMaxRetry": "Limpar caminho no máx. de tentativas",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Repor o caminho do contacto após 5 tentativas de envio falhadas",
|
||||
"appSettings_pathsWillBeCleared": "Os caminhos serão limpos após 5 tentativas falhadas",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Repor o caminho guardado do contacto quando todas as tentativas de envio falharem",
|
||||
"appSettings_pathsWillBeCleared": "Os caminhos serão limpos quando todas as tentativas de envio falharem",
|
||||
"appSettings_pathsWillNotBeCleared": "Os caminhos não serão limpos automaticamente",
|
||||
"appSettings_autoRouteRotation": "Rotação automática de rotas",
|
||||
"appSettings_autoRouteRotationSubtitle": "Alterna entre os melhores caminhos e o modo flood",
|
||||
"appSettings_autoRouteRotationSubtitle": "Em cada tentativa direta, experimentar outro caminho conhecido. As tentativas seguintes são Flood. Desligado mantém o caminho atual do contacto.",
|
||||
"appSettings_autoRouteRotationEnabled": "Rotação automática de rotas ativada",
|
||||
"appSettings_autoRouteRotationDisabled": "Rotação automática de rotas desativada",
|
||||
"appSettings_maxMessageRetries": "Máx. de tentativas por mensagem",
|
||||
@@ -989,7 +989,7 @@
|
||||
"repeater_settings": "Definições",
|
||||
"repeater_settingsSubtitle": "Configurar parâmetros do repetidor",
|
||||
"repeater_clockSyncAfterLogin": "Sincronizar relógio após login",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Enviar automaticamente \"clock sync\" após um login bem-sucedido",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Predefinição segue Repetidores e salas nas definições. Ligado e Desligado valem só para este repetidor.",
|
||||
"repeater_statusTitle": "Estado do repetidor",
|
||||
"repeater_routingMode": "Modo de encaminhamento",
|
||||
"repeater_refresh": "Atualizar",
|
||||
@@ -1907,9 +1907,9 @@
|
||||
"settings_regionFetchNoneResponded": "Nenhum repetidor próximo respondeu. Aproxime-se de um repetidor e tente novamente.",
|
||||
"appSettings_sourceSummary": "{label} - {description}",
|
||||
"appSettings_routingSection": "Encaminhamento",
|
||||
"appSettings_resetRoutingToDefault": "Repor algoritmo de encaminhamento",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Repõe as definições do algoritmo de encaminhamento para os valores de fábrica",
|
||||
"appSettings_routingResetToDefault": "Definições do algoritmo de encaminhamento repostas",
|
||||
"appSettings_resetRoutingToDefault": "Repor definições de encaminhamento",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Repor as definições de encaminhamento desta secção para os valores predefinidos",
|
||||
"appSettings_routingResetToDefault": "Definições de encaminhamento repostas",
|
||||
"appSettings_imageMessagesSection": "Mensagens de imagem",
|
||||
"appSettings_showApiKey": "Mostrar chave API",
|
||||
"appSettings_hideApiKey": "Ocultar chave API",
|
||||
@@ -2056,6 +2056,23 @@
|
||||
"connectSheet_stopReconnecting": "Parar de religar",
|
||||
"connectSheet_reconnectFailed": "Não foi possível contactar {name}. Verifique se está ligado e por perto.",
|
||||
"chat_composerOffline": "Ligue-se a um rádio para enviar mensagens",
|
||||
"appSettings_directRetries": "Tentativas diretas: {count}",
|
||||
"appSettings_directRetriesSubtitle": "Quantas vezes tentar um caminho conhecido. Continua disponível com a rotação automática de caminhos desligada.",
|
||||
"appSettings_floodRetries": "Tentativas Flood: {count}",
|
||||
"appSettings_floodRetriesSubtitle": "Quantas vezes usar Flood. Flood usa mais tempo de ar. Com a rotação ligada, vêm a seguir às tentativas diretas.",
|
||||
"appSettings_loginAttempts": "Tentativas de início de sessão: {count}",
|
||||
"appSettings_loginAttemptsSubtitle": "Quantas vezes tentar iniciar sessão num repetidor ou servidor de sala antes de desistir.",
|
||||
"appSettings_repeatersAndRooms": "Repetidores e salas",
|
||||
"appSettings_clockSyncAfterLogin": "Sincronizar o relógio do repetidor ao iniciar sessão",
|
||||
"appSettings_clockSyncAfterLoginSubtitle": "Depois de iniciar sessão num repetidor, é enviado clock sync. Cada repetidor pode continuar a escolher Predefinição, Ligado ou Desligado.",
|
||||
"appSettings_loginPasswordAutofocus": "Focar o campo da palavra-passe",
|
||||
"appSettings_loginPasswordAutofocusSubtitle": "Ao abrir o início de sessão de um repetidor ou sala, o cursor vai para a palavra-passe se estiver vazia. Desligado deixa o diálogo visível até tocar no campo.",
|
||||
"appSettings_resetRepeaterRoomSettings": "Repor definições de repetidores e salas",
|
||||
"appSettings_resetRepeaterRoomSettingsSubtitle": "Repõe as definições desta secção. As escolhas guardadas em cada repetidor mantêm-se.",
|
||||
"appSettings_repeaterRoomSettingsReset": "Definições de repetidores e salas repostas",
|
||||
"repeater_clockSyncDefault": "Predefinição",
|
||||
"repeater_clockSyncOn": "Ligado",
|
||||
"repeater_clockSyncOff": "Desligado",
|
||||
"modelDownload_notDownloaded": "Não transferido",
|
||||
"modelDownload_downloading": "A transferir",
|
||||
"modelDownload_active": "Ativo",
|
||||
|
||||
+24
-7
@@ -162,11 +162,11 @@
|
||||
"appSettings_advertisementNotificationsSubtitle": "Показывать уведомление при обнаружении новых нод",
|
||||
"appSettings_messaging": "Обмен сообщениями",
|
||||
"appSettings_clearPathOnMaxRetry": "Сбросить маршрут после максимального числа попыток",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Сбросить маршрут контакта после 5 неудачных попыток отправки",
|
||||
"appSettings_pathsWillBeCleared": "Маршруты будут сброшены после 5 неудачных попыток",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Сбросить сохранённый маршрут контакта, когда все попытки отправки не удались",
|
||||
"appSettings_pathsWillBeCleared": "Маршруты будут сброшены, когда все попытки отправки не удались",
|
||||
"appSettings_pathsWillNotBeCleared": "Маршруты не будут автоматически сбрасываться",
|
||||
"appSettings_autoRouteRotation": "Автоматическое переключение маршрутов",
|
||||
"appSettings_autoRouteRotationSubtitle": "Циклически переключаться между лучшими маршрутами и режимом Flood",
|
||||
"appSettings_autoRouteRotationSubtitle": "При каждой прямой попытке пробовать другой известный маршрут. Следующие попытки — Flood. Выключено оставляет текущий маршрут контакта.",
|
||||
"appSettings_autoRouteRotationEnabled": "Автоматическое переключение маршрутов включено",
|
||||
"appSettings_autoRouteRotationDisabled": "Автоматическое переключение маршрутов отключено",
|
||||
"appSettings_battery": "Батарея",
|
||||
@@ -1550,7 +1550,7 @@
|
||||
"repeater_cliQuickDiscovery": "Обнаружить Соседей",
|
||||
"repeater_cliQuickClockSync": "Синхронизация часов",
|
||||
"repeater_clockSyncAfterLogin": "Синхронизация часов после входа в систему",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Автоматически отправлять сообщение \"синхронизация времени\" после успешной авторизации.",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "«По умолчанию» следует разделу «Ретрансляторы и комнаты» в настройках. «Вкл.» и «Выкл.» только для этого ретранслятора.",
|
||||
"chat_sendMessage": "Отправить сообщение",
|
||||
"repeater_guest": "Информация о ретрансляторе",
|
||||
"room_guest": "Информация о сервере",
|
||||
@@ -2650,9 +2650,9 @@
|
||||
"settings_regionFetchNoneResponded": "Ближайшие репитеры не ответили. Подойдите ближе к репитеру и повторите попытку.",
|
||||
"appSettings_sourceSummary": "{label} - {description}",
|
||||
"appSettings_routingSection": "Маршрутизация",
|
||||
"appSettings_resetRoutingToDefault": "Сбросить алгоритм маршрутизации к значению по умолчанию",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Восстановить настройки алгоритма маршрутизации к заводским значениям по умолчанию",
|
||||
"appSettings_routingResetToDefault": "Настройки алгоритма маршрутизации сброшены к значению по умолчанию",
|
||||
"appSettings_resetRoutingToDefault": "Сбросить настройки маршрутизации к значениям по умолчанию",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Вернуть настройки маршрутизации в этом разделе к значениям по умолчанию",
|
||||
"appSettings_routingResetToDefault": "Настройки маршрутизации сброшены к значениям по умолчанию",
|
||||
"appSettings_imageMessagesSection": "Сообщения-изображения",
|
||||
"appSettings_showApiKey": "Показать API-ключ",
|
||||
"appSettings_hideApiKey": "Скрыть API-ключ",
|
||||
@@ -3074,6 +3074,23 @@
|
||||
"connectSheet_stopReconnecting": "Остановить переподключение",
|
||||
"connectSheet_reconnectFailed": "Не удалось связаться с {name}. Убедитесь, что оно включено и находится рядом.",
|
||||
"chat_composerOffline": "Подключитесь к радио, чтобы отправлять сообщения",
|
||||
"appSettings_directRetries": "Прямые попытки: {count}",
|
||||
"appSettings_directRetriesSubtitle": "Сколько раз пробовать известный маршрут. Доступно и когда автоматическая ротация выключена.",
|
||||
"appSettings_floodRetries": "Попытки Flood: {count}",
|
||||
"appSettings_floodRetriesSubtitle": "Сколько раз использовать Flood. Flood занимает больше эфирного времени. При включённой ротации они идут после прямых попыток.",
|
||||
"appSettings_loginAttempts": "Попытки входа: {count}",
|
||||
"appSettings_loginAttemptsSubtitle": "Сколько раз пытаться войти на ретранслятор или room-сервер, прежде чем сдаться.",
|
||||
"appSettings_repeatersAndRooms": "Ретрансляторы и комнаты",
|
||||
"appSettings_clockSyncAfterLogin": "Синхронизировать часы ретранслятора при входе",
|
||||
"appSettings_clockSyncAfterLoginSubtitle": "После успешного входа на ретранслятор отправляется clock sync. Для каждого ретранслятора по-прежнему можно выбрать По умолчанию, Вкл. или Выкл.",
|
||||
"appSettings_loginPasswordAutofocus": "Фокус на поле пароля",
|
||||
"appSettings_loginPasswordAutofocusSubtitle": "При открытии входа на ретранслятор или в комнату курсор ставится в пустое поле пароля. Выключено оставляет окно видимым, пока вы не нажмёте на поле.",
|
||||
"appSettings_resetRepeaterRoomSettings": "Сбросить настройки ретрансляторов и комнат",
|
||||
"appSettings_resetRepeaterRoomSettingsSubtitle": "Возвращает настройки этого раздела. Выбор, сохранённый для отдельных ретрансляторов, остаётся.",
|
||||
"appSettings_repeaterRoomSettingsReset": "Настройки ретрансляторов и комнат сброшены",
|
||||
"repeater_clockSyncDefault": "По умолчанию",
|
||||
"repeater_clockSyncOn": "Вкл.",
|
||||
"repeater_clockSyncOff": "Выкл.",
|
||||
"modelDownload_notDownloaded": "Не скачано",
|
||||
"modelDownload_downloading": "Загрузка",
|
||||
"modelDownload_active": "Активна",
|
||||
|
||||
+24
-7
@@ -198,11 +198,11 @@
|
||||
"appSettings_advertisementNotificationsSubtitle": "Zobraziť upozornenie, keď sa objavia nové uzly.",
|
||||
"appSettings_messaging": "Správy",
|
||||
"appSettings_clearPathOnMaxRetry": "Vymazať cestu pri maximálnom počte pokusov",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Resetovať cestu kontaktu po 5 neúspešných pokusoch o odoslanie",
|
||||
"appSettings_pathsWillBeCleared": "Cesty budú vymazané po 5 neúspešných pokusoch.",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Resetovať uloženú cestu kontaktu, keď zlyhajú všetky pokusy o odoslanie",
|
||||
"appSettings_pathsWillBeCleared": "Cesty sa vymažú, keď zlyhajú všetky pokusy o odoslanie",
|
||||
"appSettings_pathsWillNotBeCleared": "Cesty sa automaticky nevymazávajú.",
|
||||
"appSettings_autoRouteRotation": "Automatické striedanie trás",
|
||||
"appSettings_autoRouteRotationSubtitle": "Striedajte sa medzi najlepšími trasami a flood režimom.",
|
||||
"appSettings_autoRouteRotationSubtitle": "Pri každom priamom pokuse skúsiť inú známu trasu. Neskoršie pokusy sú Flood. Vypnuté ponechá aktuálnu cestu kontaktu.",
|
||||
"appSettings_autoRouteRotationEnabled": "Automatické striedanie trás je zapnuté",
|
||||
"appSettings_autoRouteRotationDisabled": "Automatické striedanie trás je vypnuté",
|
||||
"appSettings_battery": "Batéria",
|
||||
@@ -2394,7 +2394,7 @@
|
||||
"description": "Repeater setting subtitle: describes the clock sync after login behavior"
|
||||
},
|
||||
"repeater_clockSyncAfterLogin": "Synchronizácia hodín po prihlásení",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Po úspešnom prihlásení automaticky odoslať „synchronizáciu hodín“",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Predvolené sleduje Opakovače a miestnosti v nastaveniach. Zapnuté a Vypnuté platia len pre tento opakovač.",
|
||||
"chat_sendMessage": "Odoslať správu",
|
||||
"repeater_guest": "Informácie o opakovači",
|
||||
"room_guest": "Informácie o serveri",
|
||||
@@ -3376,9 +3376,9 @@
|
||||
"settings_regionFetchNoneResponded": "Blízke opakovače neodpovedali. Priblížte sa k opakovaču a skúste to znova.",
|
||||
"appSettings_sourceSummary": "{label} - {description}",
|
||||
"appSettings_routingSection": "Smerovanie",
|
||||
"appSettings_resetRoutingToDefault": "Obnoviť algoritmus smerovania na predvolené",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Obnoviť nastavenia algoritmu smerovania na továrne predvolené hodnoty",
|
||||
"appSettings_routingResetToDefault": "Nastavenia algoritmu smerovania obnovené na predvolené",
|
||||
"appSettings_resetRoutingToDefault": "Obnoviť nastavenia smerovania na predvolené",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Obnoviť nastavenia smerovania v tejto časti na predvolené hodnoty",
|
||||
"appSettings_routingResetToDefault": "Nastavenia smerovania obnovené na predvolené",
|
||||
"appSettings_imageMessagesSection": "Obrazové správy",
|
||||
"appSettings_showApiKey": "Zobraziť API kľúč",
|
||||
"appSettings_hideApiKey": "Skryť API kľúč",
|
||||
@@ -3853,6 +3853,23 @@
|
||||
"connectSheet_stopReconnecting": "Zastaviť pripájanie",
|
||||
"connectSheet_reconnectFailed": "Nedá sa spojiť s {name}. Uistite sa, že je zapnuté a nablízku.",
|
||||
"chat_composerOffline": "Na odosielanie správ sa pripojte k rádiu",
|
||||
"appSettings_directRetries": "Priame pokusy: {count}",
|
||||
"appSettings_directRetriesSubtitle": "Koľkokrát sa skúsi známa trasa. Dostupné aj keď je automatické striedanie trás vypnuté.",
|
||||
"appSettings_floodRetries": "Pokusy Flood: {count}",
|
||||
"appSettings_floodRetriesSubtitle": "Koľkokrát sa použije Flood. Flood zaberie viac vysielacieho času. Pri zapnutom striedaní nasledujú po priamych pokusoch.",
|
||||
"appSettings_loginAttempts": "Pokusy o prihlásenie: {count}",
|
||||
"appSettings_loginAttemptsSubtitle": "Koľkokrát sa skúsi prihlásenie k opakovaču alebo room serveru, kým sa to vzdá.",
|
||||
"appSettings_repeatersAndRooms": "Opakovače a miestnosti",
|
||||
"appSettings_clockSyncAfterLogin": "Synchronizovať hodiny opakovača pri prihlásení",
|
||||
"appSettings_clockSyncAfterLoginSubtitle": "Po úspešnom prihlásení k opakovaču sa odošle clock sync. Každý opakovač môže ďalej zvoliť Predvolené, Zapnuté alebo Vypnuté.",
|
||||
"appSettings_loginPasswordAutofocus": "Zamerať pole hesla",
|
||||
"appSettings_loginPasswordAutofocusSubtitle": "Pri otvorení prihlásenia k opakovaču alebo miestnosti je kurzor v prázdnom poli hesla. Vypnuté nechá okno viditeľné, kým na pole neťuknete.",
|
||||
"appSettings_resetRepeaterRoomSettings": "Obnoviť nastavenia opakovačov a miestností",
|
||||
"appSettings_resetRepeaterRoomSettingsSubtitle": "Obnoví nastavenia v tejto časti. Voľby uložené pri jednotlivých opakovačoch ostanú.",
|
||||
"appSettings_repeaterRoomSettingsReset": "Nastavenia opakovačov a miestností obnovené",
|
||||
"repeater_clockSyncDefault": "Predvolené",
|
||||
"repeater_clockSyncOn": "Zapnuté",
|
||||
"repeater_clockSyncOff": "Vypnuté",
|
||||
"modelDownload_notDownloaded": "Nestiahnuté",
|
||||
"modelDownload_downloading": "Sťahovanie",
|
||||
"modelDownload_active": "Aktívny",
|
||||
|
||||
+24
-7
@@ -198,11 +198,11 @@
|
||||
"appSettings_advertisementNotificationsSubtitle": "Pokaži obvestilo, ko so najdene nove naprave.",
|
||||
"appSettings_messaging": "Komuniciranje",
|
||||
"appSettings_clearPathOnMaxRetry": "Počisti pot ob največ poskusih",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Ponastavi pot stika po 5 neuspelih poskusih pošiljanja",
|
||||
"appSettings_pathsWillBeCleared": "Poti bodo počiščene po 5 neuspelih poskusih.",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Ponastavi shranjeno pot stika, ko spodletijo vsi poskusi pošiljanja",
|
||||
"appSettings_pathsWillBeCleared": "Poti se počistijo, ko spodletijo vsi poskusi pošiljanja",
|
||||
"appSettings_pathsWillNotBeCleared": "Poti ne bodo samodejno počiščene.",
|
||||
"appSettings_autoRouteRotation": "Samodejno kroženje poti",
|
||||
"appSettings_autoRouteRotationSubtitle": "Izmenjuj najboljše poti in flood način",
|
||||
"appSettings_autoRouteRotationSubtitle": "Ob vsakem neposrednem poskusu preizkusi drugo znano pot. Kasnejši poskusi so Flood. Izklopljeno ohrani trenutno pot stika.",
|
||||
"appSettings_autoRouteRotationEnabled": "Samodejno kroženje poti omogočeno",
|
||||
"appSettings_autoRouteRotationDisabled": "Samodejno kroženje poti onemogočeno",
|
||||
"appSettings_battery": "Baterija",
|
||||
@@ -2291,7 +2291,7 @@
|
||||
"@repeater_clockSyncAfterLoginSubtitle": {
|
||||
"description": "Repeater setting subtitle: describes the clock sync after login behavior"
|
||||
},
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Po uspešni prijavi samodejno pošlji »sinhronizacijo ure«",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Privzeto sledi Repetitorjem in sobam v nastavitvah. Vklop in Izklop veljata samo za ta repetitor.",
|
||||
"repeater_clockSyncAfterLogin": "Sinhronizacija ure po prijavi",
|
||||
"repeater_guest": "Informacije o repetitorju",
|
||||
"chat_sendMessage": "Pošlji sporočilo",
|
||||
@@ -3240,9 +3240,9 @@
|
||||
"settings_regionFetchNoneResponded": "Noben bližnji ponovitelj ni odgovoril. Približajte se ponovitelju in poskusite znova.",
|
||||
"appSettings_sourceSummary": "{label} - {description}",
|
||||
"appSettings_routingSection": "Usmerjanje",
|
||||
"appSettings_resetRoutingToDefault": "Ponastavite algoritem usmerjanja na privzeto",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Obnovite nastavitve algoritma usmerjanja na tovarniške privzetke",
|
||||
"appSettings_routingResetToDefault": "Nastavitve algoritma usmerjanja so ponastavljene na privzeto",
|
||||
"appSettings_resetRoutingToDefault": "Ponastavi nastavitve usmerjanja na privzete",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Obnovi nastavitve usmerjanja v tem razdelku na privzete vrednosti",
|
||||
"appSettings_routingResetToDefault": "Nastavitve usmerjanja so ponastavljene na privzete",
|
||||
"appSettings_imageMessagesSection": "Sporočila s slikami",
|
||||
"appSettings_showApiKey": "Pokaži API ključ",
|
||||
"appSettings_hideApiKey": "Skrij API ključ",
|
||||
@@ -3984,6 +3984,23 @@
|
||||
"connectSheet_stopReconnecting": "Ustavi ponovno povezovanje",
|
||||
"connectSheet_reconnectFailed": "Ni mogoče doseči {name}. Preverite, ali je vklopljen in v bližini.",
|
||||
"chat_composerOffline": "Za pošiljanje sporočil se povežite z radiem",
|
||||
"appSettings_directRetries": "Neposredni poskusi: {count}",
|
||||
"appSettings_directRetriesSubtitle": "Kolikokrat se preizkusi znana pot. Na voljo tudi, ko je samodejno kroženje poti izklopljeno.",
|
||||
"appSettings_floodRetries": "Poskusi Flood: {count}",
|
||||
"appSettings_floodRetriesSubtitle": "Kolikokrat se uporabi Flood. Flood porabi več oddajnega časa. Ob vklopljenem kroženju sledijo neposrednim poskusom.",
|
||||
"appSettings_loginAttempts": "Poskusi prijave: {count}",
|
||||
"appSettings_loginAttemptsSubtitle": "Kolikokrat se poskusi prijava v ponavljalnik ali room strežnik, preden obupa.",
|
||||
"appSettings_repeatersAndRooms": "Repetitorji in sobe",
|
||||
"appSettings_clockSyncAfterLogin": "Sinhroniziraj uro repetitorja ob prijavi",
|
||||
"appSettings_clockSyncAfterLoginSubtitle": "Po uspešni prijavi v repetitor se pošlje clock sync. Vsak repetitor lahko še vedno izbere Privzeto, Vklop ali Izklop.",
|
||||
"appSettings_loginPasswordAutofocus": "Fokus na polje gesla",
|
||||
"appSettings_loginPasswordAutofocusSubtitle": "Ob odprtju prijave v repetitor ali sobo gre kazalec v prazno polje gesla. Izklop pusti okno vidno, dokler se ne dotaknete polja.",
|
||||
"appSettings_resetRepeaterRoomSettings": "Ponastavi nastavitve repetitorjev in sob",
|
||||
"appSettings_resetRepeaterRoomSettingsSubtitle": "Obnovi nastavitve v tem razdelku. Izbire, shranjene pri posameznih repetitorjih, ostanejo.",
|
||||
"appSettings_repeaterRoomSettingsReset": "Nastavitve repetitorjev in sob so ponastavljene",
|
||||
"repeater_clockSyncDefault": "Privzeto",
|
||||
"repeater_clockSyncOn": "Vklop",
|
||||
"repeater_clockSyncOff": "Izklop",
|
||||
"modelDownload_notDownloaded": "Ni preneseno",
|
||||
"modelDownload_downloading": "Prenašanje",
|
||||
"modelDownload_active": "Aktiven",
|
||||
|
||||
+24
-7
@@ -198,11 +198,11 @@
|
||||
"appSettings_advertisementNotificationsSubtitle": "Visa en notifiering när nya noder upptäcks",
|
||||
"appSettings_messaging": "Meddelanden",
|
||||
"appSettings_clearPathOnMaxRetry": "Rensa rutt efter maximalt antal försök",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Återställ kontaktens rutt efter 5 misslyckade sändningsförsök",
|
||||
"appSettings_pathsWillBeCleared": "Rutter rensas efter 5 misslyckade försök",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Återställ kontaktens sparade rutt när alla sändningsförsök misslyckas",
|
||||
"appSettings_pathsWillBeCleared": "Rutter rensas när alla sändningsförsök misslyckas",
|
||||
"appSettings_pathsWillNotBeCleared": "Rutter rensas inte automatiskt",
|
||||
"appSettings_autoRouteRotation": "Automatisk ruttrotation",
|
||||
"appSettings_autoRouteRotationSubtitle": "Växla mellan de bästa rutterna och flood-läge",
|
||||
"appSettings_autoRouteRotationSubtitle": "Vid varje direkt försök, prova en annan känd rutt. Senare försök är Flood. Av behåller kontaktens aktuella rutt.",
|
||||
"appSettings_autoRouteRotationEnabled": "Automatisk ruttrotation är aktiverad",
|
||||
"appSettings_autoRouteRotationDisabled": "Automatisk ruttrotation är avstängd",
|
||||
"appSettings_battery": "Batteri",
|
||||
@@ -2287,7 +2287,7 @@
|
||||
"scanner_linuxPairingHidePin": "Dölj PIN",
|
||||
"repeater_cliQuickDiscovery": "Upptäck grannar",
|
||||
"repeater_cliQuickClockSync": "Synkronisera klocka",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Automatiskt skicka \"klocksynkronisering\" efter en lyckad inloggning.",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Standard följer Repeatrar och rum i appinställningarna. På och Av gäller bara den här repeatern.",
|
||||
"repeater_clockSyncAfterLogin": "Synkronisera klockan efter inloggning",
|
||||
"repeater_guest": "Repeaterinformation",
|
||||
"chat_sendMessage": "Skicka meddelande",
|
||||
@@ -3234,9 +3234,9 @@
|
||||
"settings_regionFetchNoneResponded": "Ingen repeater i närheten svarade. Flytta dig närmare en repeater och försök igen.",
|
||||
"appSettings_sourceSummary": "{label} - {description}",
|
||||
"appSettings_routingSection": "Routing",
|
||||
"appSettings_resetRoutingToDefault": "Återställ rutningsalgoritm till standard",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Återställ rutningsalgoritmins inställningar till fabriksstandard",
|
||||
"appSettings_routingResetToDefault": "Rutningsalgoritmins inställningar återställda till standard",
|
||||
"appSettings_resetRoutingToDefault": "Återställ rutningsinställningar till standard",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Återställ routningsinställningarna i det här avsnittet till standardvärden",
|
||||
"appSettings_routingResetToDefault": "Rutningsinställningar återställda till standard",
|
||||
"appSettings_imageMessagesSection": "Bildmeddelanden",
|
||||
"appSettings_showApiKey": "Visa API-nyckel",
|
||||
"appSettings_hideApiKey": "Dölj API-nyckel",
|
||||
@@ -3824,6 +3824,23 @@
|
||||
"connectSheet_stopReconnecting": "Sluta återansluta",
|
||||
"connectSheet_reconnectFailed": "Kunde inte nå {name}. Kontrollera att den är påslagen och i närheten.",
|
||||
"chat_composerOffline": "Anslut till en radio för att skicka meddelanden",
|
||||
"appSettings_directRetries": "Direkta försök: {count}",
|
||||
"appSettings_directRetriesSubtitle": "Hur många gånger en känd rutt provas. Finns kvar även när automatisk ruttrotation är av.",
|
||||
"appSettings_floodRetries": "Flood-försök: {count}",
|
||||
"appSettings_floodRetriesSubtitle": "Hur många gånger Flood används. Flood tar mer sändningstid. Med rotation på kommer de efter de direkta försöken.",
|
||||
"appSettings_loginAttempts": "Inloggningsförsök: {count}",
|
||||
"appSettings_loginAttemptsSubtitle": "Hur många gånger inloggning till en repeater eller room-server provas innan den ger upp.",
|
||||
"appSettings_repeatersAndRooms": "Repeatrar och rum",
|
||||
"appSettings_clockSyncAfterLogin": "Synka repeaterklockan vid inloggning",
|
||||
"appSettings_clockSyncAfterLoginSubtitle": "Efter en lyckad repeaterinloggning skickas clock sync. Varje repeater kan fortfarande välja Standard, På eller Av.",
|
||||
"appSettings_loginPasswordAutofocus": "Fokusera lösenordsfältet",
|
||||
"appSettings_loginPasswordAutofocusSubtitle": "När en repeater- eller ruminloggning öppnas hamnar markören i lösenordsfältet om det är tomt. Av lämnar dialogrutan synlig tills du trycker på fältet.",
|
||||
"appSettings_resetRepeaterRoomSettings": "Återställ repeater- och ruminställningar",
|
||||
"appSettings_resetRepeaterRoomSettingsSubtitle": "Återställer inställningarna i det här avsnittet. Val som sparats på enskilda repeatrar blir kvar.",
|
||||
"appSettings_repeaterRoomSettingsReset": "Repeater- och ruminställningar återställda",
|
||||
"repeater_clockSyncDefault": "Standard",
|
||||
"repeater_clockSyncOn": "På",
|
||||
"repeater_clockSyncOff": "Av",
|
||||
"modelDownload_notDownloaded": "Inte nedladdad",
|
||||
"modelDownload_downloading": "Laddar ner",
|
||||
"modelDownload_active": "Aktiv",
|
||||
|
||||
+24
-7
@@ -200,11 +200,11 @@
|
||||
"appSettings_advertisementNotificationsSubtitle": "Показувати сповіщення при виявленні нових вузлів",
|
||||
"appSettings_messaging": "Обмін повідомленнями",
|
||||
"appSettings_clearPathOnMaxRetry": "Очищати шлях після макс. спроб",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Скидати шлях до контакту після 5 невдалих спроб надсилання",
|
||||
"appSettings_pathsWillBeCleared": "Шляхи будуть очищені після 5 невдалих спроб.",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "Скинути збережений шлях контакту, коли всі спроби надсилання не вдаються",
|
||||
"appSettings_pathsWillBeCleared": "Шляхи буде очищено, коли всі спроби надсилання не вдадуться",
|
||||
"appSettings_pathsWillNotBeCleared": "Шляхи не будуть очищатись автоматично.",
|
||||
"appSettings_autoRouteRotation": "Авторотація маршруту",
|
||||
"appSettings_autoRouteRotationSubtitle": "Чергувати найкращі шляхи та режим Flood",
|
||||
"appSettings_autoRouteRotationSubtitle": "На кожній прямій спробі пробувати інший відомий маршрут. Наступні спроби — Flood. Вимкнено залишає поточний шлях контакту.",
|
||||
"appSettings_autoRouteRotationEnabled": "Авторотація маршрутизації увімкнена",
|
||||
"appSettings_autoRouteRotationDisabled": "Авторотація маршрутизації вимкнена",
|
||||
"appSettings_battery": "Батарея",
|
||||
@@ -2386,7 +2386,7 @@
|
||||
"@repeater_clockSyncAfterLoginSubtitle": {
|
||||
"description": "Repeater setting subtitle: describes the clock sync after login behavior"
|
||||
},
|
||||
"repeater_clockSyncAfterLoginSubtitle": "Автоматично надсилати повідомлення \"синхронізація годин\" після успішного входу.",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "«Типово» йде за розділом «Ретранслятори та кімнати» в налаштуваннях. «Увімк.» і «Вимк.» лише для цього ретранслятора.",
|
||||
"repeater_clockSyncAfterLogin": "Синхронізація годин після входу",
|
||||
"repeater_guestTools": "Гостьові інструменти",
|
||||
"repeater_guest": "Інформація про ретранслятор",
|
||||
@@ -3333,9 +3333,9 @@
|
||||
"settings_regionFetchNoneResponded": "Ближні ретранслятори не відповіли. Підійдіть ближче до ретранслятора й спробуйте ще раз.",
|
||||
"appSettings_sourceSummary": "{label} - {description}",
|
||||
"appSettings_routingSection": "Маршрутизація",
|
||||
"appSettings_resetRoutingToDefault": "Скинути алгоритм маршрутизації до типового",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Відновити налаштування алгоритму маршрутизації до заводських значень за замовчуванням",
|
||||
"appSettings_routingResetToDefault": "Налаштування алгоритму маршрутизації скинуто до типових",
|
||||
"appSettings_resetRoutingToDefault": "Скинути налаштування маршрутизації до типових",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "Відновити налаштування маршрутизації в цьому розділі до значень за замовчуванням",
|
||||
"appSettings_routingResetToDefault": "Налаштування маршрутизації скинуто до типових",
|
||||
"appSettings_imageMessagesSection": "Повідомлення із зображеннями",
|
||||
"appSettings_showApiKey": "Показати API-ключ",
|
||||
"appSettings_hideApiKey": "Приховати API-ключ",
|
||||
@@ -3757,6 +3757,23 @@
|
||||
"connectSheet_stopReconnecting": "Зупинити перепідключення",
|
||||
"connectSheet_reconnectFailed": "Не вдалося зв'язатися з {name}. Переконайтеся, що воно увімкнене й поруч.",
|
||||
"chat_composerOffline": "Підключіться до радіо, щоб надсилати повідомлення",
|
||||
"appSettings_directRetries": "Прямі спроби: {count}",
|
||||
"appSettings_directRetriesSubtitle": "Скільки разів пробувати відомий маршрут. Доступно і коли авторотацію вимкнено.",
|
||||
"appSettings_floodRetries": "Спроби Flood: {count}",
|
||||
"appSettings_floodRetriesSubtitle": "Скільки разів використовувати Flood. Flood займає більше ефірного часу. Якщо ротацію ввімкнено, вони йдуть після прямих спроб.",
|
||||
"appSettings_loginAttempts": "Спроби входу: {count}",
|
||||
"appSettings_loginAttemptsSubtitle": "Скільки разів пробувати вхід до ретранслятора або room-сервера, перш ніж здатися.",
|
||||
"appSettings_repeatersAndRooms": "Ретранслятори та кімнати",
|
||||
"appSettings_clockSyncAfterLogin": "Синхронізувати годинник ретранслятора під час входу",
|
||||
"appSettings_clockSyncAfterLoginSubtitle": "Після успішного входу на ретранслятор надсилається clock sync. Для кожного ретранслятора можна лишити Типово, Увімк. або Вимк.",
|
||||
"appSettings_loginPasswordAutofocus": "Фокус на полі пароля",
|
||||
"appSettings_loginPasswordAutofocusSubtitle": "Коли відкривається вхід на ретранслятор або в кімнату, курсор стає в порожнє поле пароля. Вимкнено лишає вікно видимим, доки ви не торкнетеся поля.",
|
||||
"appSettings_resetRepeaterRoomSettings": "Скинути налаштування ретрансляторів і кімнат",
|
||||
"appSettings_resetRepeaterRoomSettingsSubtitle": "Відновлює налаштування цього розділу. Вибір, збережений для окремих ретрансляторів, лишається.",
|
||||
"appSettings_repeaterRoomSettingsReset": "Налаштування ретрансляторів і кімнат скинуто",
|
||||
"repeater_clockSyncDefault": "Типово",
|
||||
"repeater_clockSyncOn": "Увімк.",
|
||||
"repeater_clockSyncOff": "Вимк.",
|
||||
"modelDownload_notDownloaded": "Не завантажено",
|
||||
"modelDownload_downloading": "Завантаження",
|
||||
"modelDownload_active": "Активна",
|
||||
|
||||
+24
-7
@@ -212,11 +212,11 @@
|
||||
"appSettings_advertisementNotificationsSubtitle": "发现新节点时显示通知",
|
||||
"appSettings_messaging": "消息",
|
||||
"appSettings_clearPathOnMaxRetry": "达到最大重试次数时清除路径",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "在5次发送失败后重置联系路径。",
|
||||
"appSettings_pathsWillBeCleared": "5次失败后将重新路由",
|
||||
"appSettings_clearPathOnMaxRetrySubtitle": "所有发送尝试都失败后,重置联系人已保存的路径",
|
||||
"appSettings_pathsWillBeCleared": "所有发送尝试失败后将清除路径",
|
||||
"appSettings_pathsWillNotBeCleared": "路径不会自动清除",
|
||||
"appSettings_autoRouteRotation": "自动路径轮换",
|
||||
"appSettings_autoRouteRotationSubtitle": "在最佳路径和泛洪模式之间切换",
|
||||
"appSettings_autoRouteRotationSubtitle": "每次直接尝试换一条已知路由。之后的尝试使用 Flood。关闭后保持联系人的当前路径。",
|
||||
"appSettings_autoRouteRotationEnabled": "自动路径轮换已启用",
|
||||
"appSettings_autoRouteRotationDisabled": "自动路径轮换已禁用",
|
||||
"appSettings_battery": "电池",
|
||||
@@ -2298,7 +2298,7 @@
|
||||
"description": "Repeater setting subtitle: describes the clock sync after login behavior"
|
||||
},
|
||||
"repeater_clockSyncAfterLogin": "登录后,自动同步时钟",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "在成功登录后,自动发送“时钟同步”指令。",
|
||||
"repeater_clockSyncAfterLoginSubtitle": "默认跟随应用设置里的“中继和房间”。开和关只作用于这个中继。",
|
||||
"repeater_guestTools": "访客工具",
|
||||
"repeater_guest": "重复器信息",
|
||||
"chat_sendMessage": "发送消息",
|
||||
@@ -3244,9 +3244,9 @@
|
||||
"settings_regionFetchNoneResponded": "附近没有中继器响应。请靠近中继器后重试。",
|
||||
"appSettings_sourceSummary": "{label} - {description}",
|
||||
"appSettings_routingSection": "路由",
|
||||
"appSettings_resetRoutingToDefault": "将路由算法重置为默认值",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "将路由算法设置恢复为出厂默认值",
|
||||
"appSettings_routingResetToDefault": "路由算法设置已重置为默认值",
|
||||
"appSettings_resetRoutingToDefault": "将路由设置重置为默认值",
|
||||
"appSettings_resetRoutingToDefaultSubtitle": "将本部分的路由设置恢复为默认值",
|
||||
"appSettings_routingResetToDefault": "路由设置已重置为默认值",
|
||||
"appSettings_imageMessagesSection": "图片消息",
|
||||
"appSettings_showApiKey": "显示 API 密钥",
|
||||
"appSettings_hideApiKey": "隐藏 API 密钥",
|
||||
@@ -3834,6 +3834,23 @@
|
||||
"connectSheet_stopReconnecting": "停止重新连接",
|
||||
"connectSheet_reconnectFailed": "无法连接到 {name}。请确保其已开机且在附近。",
|
||||
"chat_composerOffline": "连接到无线电后才能发送消息",
|
||||
"appSettings_directRetries": "直接尝试:{count}",
|
||||
"appSettings_directRetriesSubtitle": "尝试已知路由的次数。关闭自动路径轮换后仍然可以设置。",
|
||||
"appSettings_floodRetries": "Flood 尝试:{count}",
|
||||
"appSettings_floodRetriesSubtitle": "使用 Flood 的次数。Flood 占用更多空中时间。开启轮换时,这些尝试排在直接尝试之后。",
|
||||
"appSettings_loginAttempts": "登录尝试:{count}",
|
||||
"appSettings_loginAttemptsSubtitle": "登录中继或房间服务器时,放弃前的尝试次数。",
|
||||
"appSettings_repeatersAndRooms": "中继和房间",
|
||||
"appSettings_clockSyncAfterLogin": "登录时同步中继时钟",
|
||||
"appSettings_clockSyncAfterLoginSubtitle": "成功登录中继后会发送 clock sync。每个中继仍可选择默认、开或关。",
|
||||
"appSettings_loginPasswordAutofocus": "聚焦密码框",
|
||||
"appSettings_loginPasswordAutofocusSubtitle": "打开中继或房间登录时,如果密码为空,光标会进入密码框。关闭后,在你点按该框之前对话框保持可见。",
|
||||
"appSettings_resetRepeaterRoomSettings": "将中继和房间设置重置为默认",
|
||||
"appSettings_resetRepeaterRoomSettingsSubtitle": "恢复这一节的设置。保存在各个中继上的选择保持不变。",
|
||||
"appSettings_repeaterRoomSettingsReset": "中继和房间设置已重置",
|
||||
"repeater_clockSyncDefault": "默认",
|
||||
"repeater_clockSyncOn": "开",
|
||||
"repeater_clockSyncOff": "关",
|
||||
"modelDownload_notDownloaded": "未下载",
|
||||
"modelDownload_downloading": "正在下载",
|
||||
"modelDownload_active": "当前使用",
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import 'custom_theme.dart';
|
||||
import 'image_codec_support.dart';
|
||||
import 'send_attempt_plan.dart';
|
||||
import 'translation_support.dart';
|
||||
|
||||
enum UnitSystem { metric, imperial }
|
||||
@@ -103,7 +104,9 @@ class AppSettings {
|
||||
static const double defaultInitialRouteWeight = 3.0;
|
||||
static const double defaultRouteWeightSuccessIncrement = 0.5;
|
||||
static const double defaultRouteWeightFailureDecrement = 0.2;
|
||||
static const int defaultMaxMessageRetries = 5;
|
||||
static const int defaultDirectRetries = SendAttemptPlan.defaultDirectRetries;
|
||||
static const int defaultFloodRetries = SendAttemptPlan.defaultFloodRetries;
|
||||
static const int defaultLoginAttempts = SendAttemptPlan.defaultLoginAttempts;
|
||||
|
||||
final bool clearPathOnMaxRetry;
|
||||
final bool mapShowRepeaters;
|
||||
@@ -138,7 +141,19 @@ class AppSettings {
|
||||
final double initialRouteWeight;
|
||||
final double routeWeightSuccessIncrement;
|
||||
final double routeWeightFailureDecrement;
|
||||
final int maxMessageRetries;
|
||||
final int directRetries;
|
||||
final int floodRetries;
|
||||
|
||||
/// How many times a repeater or room-server login is sent before giving up.
|
||||
final int loginAttempts;
|
||||
|
||||
/// Send `clock sync` after a repeater login when that repeater follows the
|
||||
/// app default. Off matches the previous per-repeater default.
|
||||
final bool clockSyncAfterLogin;
|
||||
|
||||
/// Put the cursor in an empty repeater or room password field on open.
|
||||
/// Off leaves the dialog alone until the field is tapped.
|
||||
final bool loginPasswordAutofocus;
|
||||
final bool channelMinHopsEnabled;
|
||||
final int channelMinHops;
|
||||
final int channelMinHopsRetries;
|
||||
@@ -237,6 +252,16 @@ class AppSettings {
|
||||
downloadedModels: imageCodecDownloadedModels,
|
||||
);
|
||||
|
||||
/// Attempts for one direct message. [rotating] is auto route rotation with
|
||||
/// no manual path. [floodPath] is the contact's fixed path.
|
||||
int sendAttemptLimit({required bool rotating, required bool floodPath}) {
|
||||
return SendAttemptPlan(
|
||||
directRetries: directRetries,
|
||||
floodRetries: floodRetries,
|
||||
rotateRoutes: rotating,
|
||||
).attemptLimit(floodPath: floodPath);
|
||||
}
|
||||
|
||||
String get effectiveMapTileApiKey {
|
||||
final apiKey = mapTileApiKey?.trim();
|
||||
if (apiKey == null || apiKey.isEmpty) {
|
||||
@@ -293,7 +318,11 @@ class AppSettings {
|
||||
this.initialRouteWeight = defaultInitialRouteWeight,
|
||||
this.routeWeightSuccessIncrement = defaultRouteWeightSuccessIncrement,
|
||||
this.routeWeightFailureDecrement = defaultRouteWeightFailureDecrement,
|
||||
this.maxMessageRetries = defaultMaxMessageRetries,
|
||||
this.directRetries = defaultDirectRetries,
|
||||
this.floodRetries = defaultFloodRetries,
|
||||
this.loginAttempts = defaultLoginAttempts,
|
||||
this.clockSyncAfterLogin = false,
|
||||
this.loginPasswordAutofocus = false,
|
||||
this.channelMinHopsEnabled = false,
|
||||
this.channelMinHops = 2,
|
||||
this.channelMinHopsRetries = 1,
|
||||
@@ -392,7 +421,11 @@ class AppSettings {
|
||||
'initial_route_weight': initialRouteWeight,
|
||||
'route_weight_success_increment': routeWeightSuccessIncrement,
|
||||
'route_weight_failure_decrement': routeWeightFailureDecrement,
|
||||
'max_message_retries': maxMessageRetries,
|
||||
'max_direct_retries': directRetries,
|
||||
'max_flood_retries': floodRetries,
|
||||
'login_attempts': loginAttempts,
|
||||
'clock_sync_after_login': clockSyncAfterLogin,
|
||||
'login_password_autofocus': loginPasswordAutofocus,
|
||||
'channel_min_hops_enabled': channelMinHopsEnabled,
|
||||
'channel_min_hops': channelMinHops,
|
||||
'channel_min_hops_retries': channelMinHopsRetries,
|
||||
@@ -544,8 +577,14 @@ class AppSettings {
|
||||
routeWeightFailureDecrement:
|
||||
(json['route_weight_failure_decrement'] as num?)?.toDouble() ??
|
||||
defaultRouteWeightFailureDecrement,
|
||||
maxMessageRetries:
|
||||
json['max_message_retries'] as int? ?? defaultMaxMessageRetries,
|
||||
directRetries: SendAttemptPlan.retriesFromJson(json).direct,
|
||||
floodRetries: SendAttemptPlan.retriesFromJson(json).flood,
|
||||
loginAttempts: SendAttemptPlan.clampLogin(
|
||||
(json['login_attempts'] as num?)?.toInt() ?? defaultLoginAttempts,
|
||||
),
|
||||
clockSyncAfterLogin: json['clock_sync_after_login'] as bool? ?? false,
|
||||
loginPasswordAutofocus:
|
||||
json['login_password_autofocus'] as bool? ?? false,
|
||||
channelMinHopsEnabled: json['channel_min_hops_enabled'] as bool? ?? false,
|
||||
channelMinHops: json['channel_min_hops'] as int? ?? 2,
|
||||
channelMinHopsRetries: json['channel_min_hops_retries'] as int? ?? 1,
|
||||
@@ -704,7 +743,11 @@ class AppSettings {
|
||||
double? initialRouteWeight,
|
||||
double? routeWeightSuccessIncrement,
|
||||
double? routeWeightFailureDecrement,
|
||||
int? maxMessageRetries,
|
||||
int? directRetries,
|
||||
int? floodRetries,
|
||||
int? loginAttempts,
|
||||
bool? clockSyncAfterLogin,
|
||||
bool? loginPasswordAutofocus,
|
||||
bool? channelMinHopsEnabled,
|
||||
int? channelMinHops,
|
||||
int? channelMinHopsRetries,
|
||||
@@ -799,7 +842,12 @@ class AppSettings {
|
||||
routeWeightSuccessIncrement ?? this.routeWeightSuccessIncrement,
|
||||
routeWeightFailureDecrement:
|
||||
routeWeightFailureDecrement ?? this.routeWeightFailureDecrement,
|
||||
maxMessageRetries: maxMessageRetries ?? this.maxMessageRetries,
|
||||
directRetries: directRetries ?? this.directRetries,
|
||||
floodRetries: floodRetries ?? this.floodRetries,
|
||||
loginAttempts: loginAttempts ?? this.loginAttempts,
|
||||
clockSyncAfterLogin: clockSyncAfterLogin ?? this.clockSyncAfterLogin,
|
||||
loginPasswordAutofocus:
|
||||
loginPasswordAutofocus ?? this.loginPasswordAutofocus,
|
||||
channelMinHopsEnabled:
|
||||
channelMinHopsEnabled ?? this.channelMinHopsEnabled,
|
||||
channelMinHops: channelMinHops ?? this.channelMinHops,
|
||||
|
||||
@@ -60,7 +60,7 @@ class BookmarkedMessage {
|
||||
sourceName: channelName,
|
||||
messageId: message.messageId,
|
||||
senderName: senderName,
|
||||
text: message.text,
|
||||
text: message.fullText,
|
||||
translatedText: message.translatedText,
|
||||
timestamp: message.timestamp,
|
||||
receivedAt: message.receivedAt,
|
||||
|
||||
@@ -112,6 +112,17 @@ class ChannelMessage {
|
||||
|
||||
bool get isFiltered => filterReason != null;
|
||||
|
||||
/// Full wire/sent text, restoring the `@[sender] ` reply prefix when it
|
||||
/// was split into [replyToSenderName] on storage.
|
||||
String get fullText {
|
||||
if (replyToMessageId != null &&
|
||||
replyToSenderName != null &&
|
||||
replyToSenderName!.isNotEmpty) {
|
||||
return '@[$replyToSenderName] $text';
|
||||
}
|
||||
return text;
|
||||
}
|
||||
|
||||
String? get senderKeyHex =>
|
||||
senderKey != null ? pubKeyToHex(senderKey!) : null;
|
||||
|
||||
|
||||
@@ -0,0 +1,88 @@
|
||||
/// How many times a direct message is sent, split by route kind.
|
||||
///
|
||||
/// Direct attempts use a known route. Flood attempts ask the mesh to flood.
|
||||
/// With [rotateRoutes] on (and no manual path), the direct attempts run first
|
||||
/// and the flood attempts follow. With it off, every attempt stays on the
|
||||
/// contact's current path and only that path's limit applies.
|
||||
class SendAttemptPlan {
|
||||
static const int minDirectRetries = 0;
|
||||
static const int maxDirectRetries = 15;
|
||||
static const int defaultDirectRetries = 4;
|
||||
|
||||
static const int minFloodRetries = 0;
|
||||
static const int maxFloodRetries = 10;
|
||||
|
||||
/// One flood, matching the previous single limit of 5 whose last attempt
|
||||
/// flooded when auto route rotation was on (4 direct + 1 flood).
|
||||
static const int defaultFloodRetries = 1;
|
||||
|
||||
static const int minLoginAttempts = 1;
|
||||
static const int maxLoginAttempts = 10;
|
||||
static const int defaultLoginAttempts = 5;
|
||||
|
||||
final int directRetries;
|
||||
final int floodRetries;
|
||||
|
||||
/// When true, direct attempts may change route and are followed by floods.
|
||||
final bool rotateRoutes;
|
||||
|
||||
const SendAttemptPlan({
|
||||
required this.directRetries,
|
||||
required this.floodRetries,
|
||||
required this.rotateRoutes,
|
||||
});
|
||||
|
||||
static int clampDirect(int value) =>
|
||||
value.clamp(minDirectRetries, maxDirectRetries);
|
||||
|
||||
static int clampFlood(int value) =>
|
||||
value.clamp(minFloodRetries, maxFloodRetries);
|
||||
|
||||
static int clampLogin(int value) =>
|
||||
value.clamp(minLoginAttempts, maxLoginAttempts);
|
||||
|
||||
/// Reads the split limits, or derives them from the old single
|
||||
/// `max_message_retries` value. That value was a total: every attempt but
|
||||
/// the last used a route, then one attempt flooded.
|
||||
static ({int direct, int flood}) retriesFromJson(Map<String, dynamic> json) {
|
||||
final direct = json['max_direct_retries'];
|
||||
final flood = json['max_flood_retries'];
|
||||
if (direct is num || flood is num) {
|
||||
return (
|
||||
direct: clampDirect(
|
||||
direct is num ? direct.toInt() : defaultDirectRetries,
|
||||
),
|
||||
flood: clampFlood(flood is num ? flood.toInt() : defaultFloodRetries),
|
||||
);
|
||||
}
|
||||
final legacy = json['max_message_retries'];
|
||||
if (legacy is num) {
|
||||
return (
|
||||
direct: clampDirect(legacy.toInt() - 1),
|
||||
flood: defaultFloodRetries,
|
||||
);
|
||||
}
|
||||
return (direct: defaultDirectRetries, flood: defaultFloodRetries);
|
||||
}
|
||||
|
||||
/// How many times to send before giving up.
|
||||
///
|
||||
/// [floodPath] is the contact's fixed path. It is ignored while rotating,
|
||||
/// because those sends spend [directRetries] then [floodRetries]. A plan
|
||||
/// with both limits at 0 still sends once, on the current path.
|
||||
int attemptLimit({required bool floodPath}) {
|
||||
if (rotateRoutes) {
|
||||
final total = directRetries + floodRetries;
|
||||
return total < 1 ? 1 : total;
|
||||
}
|
||||
final count = floodPath ? floodRetries : directRetries;
|
||||
return count < 1 ? 1 : count;
|
||||
}
|
||||
|
||||
/// First attempt index that should flood, or null when this plan never
|
||||
/// switches onto a flood (rotation off, or no flood attempts configured).
|
||||
int? get floodFromAttempt {
|
||||
if (!rotateRoutes || floodRetries < 1) return null;
|
||||
return directRetries;
|
||||
}
|
||||
}
|
||||
@@ -84,6 +84,7 @@ class ReviewFrames {
|
||||
required Uint8List publicKey,
|
||||
required int type,
|
||||
required Uint8List path,
|
||||
int? pathLen,
|
||||
required String name,
|
||||
required int lastAdvertSecs,
|
||||
required int latitudeE6,
|
||||
@@ -96,7 +97,9 @@ class ReviewFrames {
|
||||
writer.writeBytes(publicKey);
|
||||
writer.writeByte(type);
|
||||
writer.writeByte(flags);
|
||||
writer.writeByte(path.length); // one-byte hashes: hop count == byte count
|
||||
writer.writeByte(
|
||||
pathLen ?? path.length,
|
||||
); // one-byte hashes: hop count == byte count
|
||||
writer.writeBytesPadded(path, maxPathSize);
|
||||
writer.writeCString(name, maxNameSize);
|
||||
writer.writeUInt32LE(lastAdvertSecs);
|
||||
|
||||
@@ -318,6 +318,9 @@ class ReviewRadio {
|
||||
}
|
||||
_emit([ReviewFrames.ok()]);
|
||||
break;
|
||||
case cmdAddUpdateContact:
|
||||
_handleAddUpdateContact(frame);
|
||||
break;
|
||||
case cmdSendLogin:
|
||||
_handleLogin(frame);
|
||||
break;
|
||||
@@ -365,13 +368,68 @@ class ReviewRadio {
|
||||
publicKey: c.publicKey,
|
||||
type: c.type,
|
||||
path: c.path,
|
||||
pathLen: c.pathLen,
|
||||
name: c.name,
|
||||
lastAdvertSecs: c.lastAdvertSecs,
|
||||
latitudeE6: c.latitudeE6,
|
||||
longitudeE6: c.longitudeE6,
|
||||
lastModSecs: c.lastModSecs,
|
||||
flags: c.flags,
|
||||
);
|
||||
|
||||
void _handleAddUpdateContact(Uint8List frame) {
|
||||
// [cmd][pub_key x32][type][flags][path_len][path x64][name x32][last_advert? x4][lat? x4][lon? x4]
|
||||
const minLen = 1 + pubKeySize + 3 + maxPathSize + maxNameSize;
|
||||
if (frame.length < minLen) {
|
||||
_emit([ReviewFrames.err()]);
|
||||
return;
|
||||
}
|
||||
final publicKey = Uint8List.fromList(frame.sublist(1, 1 + pubKeySize));
|
||||
final type = frame[33];
|
||||
final flags = frame[34];
|
||||
final pathLen = frame[35];
|
||||
final Uint8List path;
|
||||
if (pathLen == 0xFF) {
|
||||
path = Uint8List(0);
|
||||
} else {
|
||||
final width = ((pathLen & 0xC0) >> 6) + 1;
|
||||
final hops = pathLen & 0x3F;
|
||||
final byteLen = (hops * width).clamp(0, maxPathSize);
|
||||
path = Uint8List.fromList(frame.sublist(36, 36 + byteLen));
|
||||
}
|
||||
final name = _readCString(frame, 36 + maxPathSize, maxNameSize);
|
||||
final lastAdvertSecs = frame.length >= minLen + 4
|
||||
? readUint32LE(frame, minLen)
|
||||
: 0;
|
||||
final latE6 = frame.length >= minLen + 12
|
||||
? readInt32LE(frame, minLen + 4)
|
||||
: 0;
|
||||
final lonE6 = frame.length >= minLen + 12
|
||||
? readInt32LE(frame, minLen + 8)
|
||||
: 0;
|
||||
final contact = _Contact(
|
||||
publicKey: publicKey,
|
||||
type: type,
|
||||
flags: flags,
|
||||
path: path,
|
||||
pathLen: pathLen,
|
||||
name: name,
|
||||
lastAdvertSecs: lastAdvertSecs,
|
||||
latitudeE6: latE6,
|
||||
longitudeE6: lonE6,
|
||||
lastModSecs: _nowSecs,
|
||||
);
|
||||
final index = _contacts.indexWhere(
|
||||
(c) => listEquals(c.publicKey, publicKey),
|
||||
);
|
||||
if (index >= 0) {
|
||||
_contacts[index] = contact;
|
||||
} else {
|
||||
_contacts.add(contact);
|
||||
}
|
||||
_emit([ReviewFrames.ok()]);
|
||||
}
|
||||
|
||||
void _handleGetContacts(Uint8List frame) {
|
||||
final since = frame.length >= 5 ? readUint32LE(frame, 1) : 0;
|
||||
final matching = _contacts.where((c) => c.lastModSecs > since).toList();
|
||||
@@ -659,7 +717,9 @@ class ReviewRadio {
|
||||
class _Contact {
|
||||
final Uint8List publicKey;
|
||||
final int type;
|
||||
final int flags;
|
||||
final Uint8List path;
|
||||
final int? pathLen;
|
||||
final String name;
|
||||
final int lastAdvertSecs;
|
||||
final int latitudeE6;
|
||||
@@ -669,7 +729,9 @@ class _Contact {
|
||||
_Contact({
|
||||
required this.publicKey,
|
||||
required this.type,
|
||||
this.flags = 0,
|
||||
required this.path,
|
||||
this.pathLen,
|
||||
required this.name,
|
||||
required this.lastAdvertSecs,
|
||||
required this.latitudeE6,
|
||||
|
||||
@@ -0,0 +1,493 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
import '../connector/meshcore_connector.dart';
|
||||
import '../connector/meshcore_protocol.dart';
|
||||
import '../helpers/contact_clipboard.dart';
|
||||
import '../helpers/snack_bar_builder.dart';
|
||||
import '../helpers/utf8_length_limiter.dart';
|
||||
import '../l10n/app_localizations.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../theme/mesh_theme.dart';
|
||||
import '../utils/app_logger.dart';
|
||||
import '../utils/contact_qr.dart';
|
||||
import '../utils/radio_guard.dart';
|
||||
import '../widgets/adaptive_app_bar_title.dart';
|
||||
import '../widgets/mesh_nav_tile.dart';
|
||||
import '../widgets/mesh_ui.dart';
|
||||
import 'contact_qr_scanner_screen.dart';
|
||||
import 'discovery_screen.dart';
|
||||
|
||||
/// Unified page for adding a contact manually by public key, from clipboard,
|
||||
/// from discovered contacts, or by scanning a QR code.
|
||||
class AddContactScreen extends StatefulWidget {
|
||||
const AddContactScreen({super.key});
|
||||
|
||||
@override
|
||||
State<AddContactScreen> createState() => _AddContactScreenState();
|
||||
}
|
||||
|
||||
class _AddContactScreenState extends State<AddContactScreen> {
|
||||
final _formKey = GlobalKey<FormState>();
|
||||
final _publicKeyFieldKey = GlobalKey<FormFieldState<String>>();
|
||||
final _nameController = TextEditingController();
|
||||
final _publicKeyController = TextEditingController();
|
||||
final _nameFocusNode = FocusNode();
|
||||
final _publicKeyFocusNode = FocusNode();
|
||||
|
||||
int _selectedType = advTypeChat;
|
||||
bool _isSaving = false;
|
||||
bool _isImporting = false;
|
||||
|
||||
bool get _isBusy => _isSaving || _isImporting;
|
||||
|
||||
static const List<int> _contactTypes = [
|
||||
advTypeChat,
|
||||
advTypeRepeater,
|
||||
advTypeRoom,
|
||||
advTypeSensor,
|
||||
];
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_nameController.dispose();
|
||||
_publicKeyController.dispose();
|
||||
_nameFocusNode.dispose();
|
||||
_publicKeyFocusNode.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
String _typeLabel(AppLocalizations l10n, int type) {
|
||||
switch (type) {
|
||||
case advTypeChat:
|
||||
return l10n.contact_typeChat;
|
||||
case advTypeRepeater:
|
||||
return l10n.contact_typeRepeater;
|
||||
case advTypeRoom:
|
||||
return l10n.contact_typeRoom;
|
||||
case advTypeSensor:
|
||||
return l10n.contact_typeSensor;
|
||||
default:
|
||||
return l10n.contact_typeUnknown;
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _pickContactType() async {
|
||||
final chosen = await showMeshSheet<int>(
|
||||
context,
|
||||
builder: (sheetContext) {
|
||||
final l10n = sheetContext.l10n;
|
||||
return SafeArea(
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
BottomSheetHeader(title: l10n.addContact_contactType),
|
||||
for (final type in _contactTypes)
|
||||
MeshSheetOption(
|
||||
label: _typeLabel(l10n, type),
|
||||
selected: type == _selectedType,
|
||||
onTap: () => Navigator.pop(sheetContext, type),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
if (!mounted || chosen == null) return;
|
||||
setState(() => _selectedType = chosen);
|
||||
}
|
||||
|
||||
Future<void> _saveContact() async {
|
||||
if (_isBusy) return;
|
||||
if (!(_formKey.currentState?.validate() ?? false)) return;
|
||||
if (!ensureRadioConnected(context)) return;
|
||||
|
||||
final keyHex = normalizeContactPublicKeyHex(_publicKeyController.text);
|
||||
final publicKeyBytes = decodeContactPublicKeyHex(_publicKeyController.text);
|
||||
if (keyHex == null || publicKeyBytes == null) return;
|
||||
|
||||
final connector = context.read<MeshCoreConnector>();
|
||||
if (connector.selfPublicKeyHex.isNotEmpty &&
|
||||
keyHex == connector.selfPublicKeyHex.toLowerCase()) {
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(context.l10n.contactShare_isYou),
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
setState(() => _isSaving = true);
|
||||
try {
|
||||
await connector.addContactFromCard(
|
||||
ScannedContact(
|
||||
publicKey: publicKeyBytes,
|
||||
name: _nameController.text.trim(),
|
||||
type: _selectedType,
|
||||
),
|
||||
);
|
||||
if (!mounted) return;
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(context.l10n.discoveredContacts_contactAdded),
|
||||
);
|
||||
Navigator.pop(context, true);
|
||||
} catch (e) {
|
||||
appLogger.warn('Manual contact add failed: $e', tag: 'AddContactScreen');
|
||||
if (!mounted) return;
|
||||
setState(() => _isSaving = false);
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(context.l10n.addContact_saveFailed),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _importFromClipboard() async {
|
||||
if (_isBusy) return;
|
||||
final clipboardData = await Clipboard.getData('text/plain');
|
||||
if (!mounted) return;
|
||||
|
||||
final parsed = parseContactClipboard(clipboardData?.text);
|
||||
switch (parsed.kind) {
|
||||
case ContactClipboardKind.empty:
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(context.l10n.contacts_clipboardEmpty),
|
||||
);
|
||||
return;
|
||||
case ContactClipboardKind.invalid:
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(context.l10n.contacts_invalidAdvertFormat),
|
||||
);
|
||||
return;
|
||||
case ContactClipboardKind.publicKey:
|
||||
_publicKeyController.text = parsed.publicKeyHex!;
|
||||
if (_publicKeyFieldKey.currentState?.hasError == true) {
|
||||
_publicKeyFieldKey.currentState?.validate();
|
||||
}
|
||||
_nameFocusNode.requestFocus();
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(context.l10n.addContact_clipboardKeyLoaded),
|
||||
);
|
||||
return;
|
||||
case ContactClipboardKind.contact:
|
||||
if (!ensureRadioConnected(context)) return;
|
||||
final scanned = parsed.contact!;
|
||||
final connector = context.read<MeshCoreConnector>();
|
||||
if (scanned.publicKey != null &&
|
||||
connector.selfPublicKeyHex.isNotEmpty &&
|
||||
pubKeyToHex(scanned.publicKey!).toLowerCase() ==
|
||||
connector.selfPublicKeyHex.toLowerCase()) {
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(context.l10n.contactShare_isYou),
|
||||
);
|
||||
return;
|
||||
}
|
||||
setState(() => _isImporting = true);
|
||||
try {
|
||||
await connector.addContactFromCard(scanned);
|
||||
if (!mounted) return;
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(context.l10n.contacts_contactImported),
|
||||
);
|
||||
Navigator.pop(context, true);
|
||||
} catch (e) {
|
||||
appLogger.warn(
|
||||
'Clipboard contact import failed: $e',
|
||||
tag: 'AddContactScreen',
|
||||
);
|
||||
if (!mounted) return;
|
||||
setState(() => _isImporting = false);
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(context.l10n.contacts_contactImportFailed),
|
||||
);
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void _openDiscoveredContacts() {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (_) => const DiscoveryScreen()),
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> _scanQrCode() async {
|
||||
if (!ensureRadioConnected(context)) return;
|
||||
final imported = await Navigator.push<bool>(
|
||||
context,
|
||||
MaterialPageRoute(builder: (_) => const ContactQrScannerScreen()),
|
||||
);
|
||||
if (imported == true && mounted) {
|
||||
Navigator.pop(context, true);
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final l10n = context.l10n;
|
||||
final theme = Theme.of(context);
|
||||
final scheme = theme.colorScheme;
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: AdaptiveAppBarTitle(l10n.addContact_title),
|
||||
centerTitle: true,
|
||||
actions: [
|
||||
IconButton(
|
||||
tooltip: l10n.common_save,
|
||||
onPressed: _isBusy ? null : _saveContact,
|
||||
icon: _isSaving
|
||||
? const SizedBox(
|
||||
width: 18,
|
||||
height: 18,
|
||||
child: CircularProgressIndicator(strokeWidth: 2),
|
||||
)
|
||||
: const Icon(Icons.check),
|
||||
),
|
||||
],
|
||||
),
|
||||
body: SafeArea(
|
||||
top: false,
|
||||
child: Form(
|
||||
key: _formKey,
|
||||
child: ListView(
|
||||
padding: const EdgeInsets.fromLTRB(0, 8, 0, 24),
|
||||
children: [
|
||||
MeshCard(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 16,
|
||||
vertical: 14,
|
||||
),
|
||||
child: Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Icon(
|
||||
Icons.info_outline,
|
||||
size: 24,
|
||||
color: scheme.onSurfaceVariant,
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
Expanded(
|
||||
child: Text(
|
||||
l10n.addContact_infoBanner,
|
||||
style: theme.textTheme.bodyMedium?.copyWith(
|
||||
color: scheme.onSurface,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
MeshCard(
|
||||
padding: EdgeInsets.zero,
|
||||
child: Column(
|
||||
children: [
|
||||
_buildContactTypeRow(context),
|
||||
const Divider(height: 1, indent: 16),
|
||||
_buildNameRow(context),
|
||||
const Divider(height: 1, indent: 16),
|
||||
_buildPublicKeyRow(context),
|
||||
],
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
MeshCard(
|
||||
padding: EdgeInsets.zero,
|
||||
child: MeshNavTile(
|
||||
icon: Icons.content_paste,
|
||||
title: l10n.contacts_addContactFromClipboard,
|
||||
onTap: _isBusy ? null : _importFromClipboard,
|
||||
),
|
||||
),
|
||||
MeshCard(
|
||||
padding: EdgeInsets.zero,
|
||||
child: MeshNavTile(
|
||||
icon: Icons.person_add_rounded,
|
||||
title: l10n.addContact_fromDiscovered,
|
||||
onTap: _isBusy ? null : _openDiscoveredContacts,
|
||||
),
|
||||
),
|
||||
MeshCard(
|
||||
padding: EdgeInsets.zero,
|
||||
child: MeshNavTile(
|
||||
icon: Icons.qr_code_scanner,
|
||||
title: l10n.contacts_scanQrCode,
|
||||
onTap: _isBusy ? null : _scanQrCode,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildContactTypeRow(BuildContext context) {
|
||||
final l10n = context.l10n;
|
||||
final theme = Theme.of(context);
|
||||
final scheme = theme.colorScheme;
|
||||
final label = _typeLabel(l10n, _selectedType);
|
||||
|
||||
return Semantics(
|
||||
button: true,
|
||||
enabled: !_isBusy,
|
||||
label: '${l10n.addContact_contactType}: $label',
|
||||
child: InkWell(
|
||||
onTap: _isBusy ? null : _pickContactType,
|
||||
child: ConstrainedBox(
|
||||
constraints: const BoxConstraints(minHeight: 48),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(
|
||||
Icons.info_outline,
|
||||
size: 24,
|
||||
color: scheme.onSurfaceVariant,
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
Expanded(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Text(
|
||||
l10n.addContact_contactType,
|
||||
style: theme.textTheme.bodySmall?.copyWith(
|
||||
color: scheme.onSurfaceVariant,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 2),
|
||||
Text(label, style: theme.textTheme.bodyLarge),
|
||||
],
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
Icon(
|
||||
Icons.arrow_drop_down,
|
||||
size: 24,
|
||||
color: scheme.onSurfaceVariant,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildNameRow(BuildContext context) {
|
||||
final l10n = context.l10n;
|
||||
final theme = Theme.of(context);
|
||||
final scheme = theme.colorScheme;
|
||||
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 4),
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(Icons.person_outline, size: 24, color: scheme.onSurfaceVariant),
|
||||
const SizedBox(width: 16),
|
||||
Expanded(
|
||||
child: TextFormField(
|
||||
controller: _nameController,
|
||||
focusNode: _nameFocusNode,
|
||||
enabled: !_isBusy,
|
||||
textInputAction: TextInputAction.next,
|
||||
onFieldSubmitted: (_) => _publicKeyFocusNode.requestFocus(),
|
||||
inputFormatters: [
|
||||
Utf8LengthLimitingTextInputFormatter(maxRadioNameBytes),
|
||||
],
|
||||
style: theme.textTheme.bodyLarge,
|
||||
decoration: InputDecoration(
|
||||
labelText: l10n.addContact_name,
|
||||
filled: false,
|
||||
border: InputBorder.none,
|
||||
enabledBorder: InputBorder.none,
|
||||
focusedBorder: InputBorder.none,
|
||||
errorBorder: InputBorder.none,
|
||||
focusedErrorBorder: InputBorder.none,
|
||||
disabledBorder: InputBorder.none,
|
||||
contentPadding: const EdgeInsets.symmetric(vertical: 12),
|
||||
errorMaxLines: 4,
|
||||
),
|
||||
validator: (value) {
|
||||
if (value == null || value.trim().isEmpty) {
|
||||
return l10n.addContact_nameRequired;
|
||||
}
|
||||
return null;
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildPublicKeyRow(BuildContext context) {
|
||||
final l10n = context.l10n;
|
||||
final theme = Theme.of(context);
|
||||
final scheme = theme.colorScheme;
|
||||
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 4),
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(
|
||||
Icons.vpn_key_outlined,
|
||||
size: 24,
|
||||
color: scheme.onSurfaceVariant,
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
Expanded(
|
||||
child: TextFormField(
|
||||
key: _publicKeyFieldKey,
|
||||
controller: _publicKeyController,
|
||||
focusNode: _publicKeyFocusNode,
|
||||
enabled: !_isBusy,
|
||||
autocorrect: false,
|
||||
enableSuggestions: false,
|
||||
textInputAction: TextInputAction.done,
|
||||
onFieldSubmitted: (_) => _saveContact(),
|
||||
minLines: 1,
|
||||
maxLines: 3,
|
||||
style: MeshTheme.mono(fontSize: 15, color: scheme.onSurface),
|
||||
decoration: InputDecoration(
|
||||
labelText: l10n.addContact_publicKeyHex,
|
||||
filled: false,
|
||||
border: InputBorder.none,
|
||||
enabledBorder: InputBorder.none,
|
||||
focusedBorder: InputBorder.none,
|
||||
errorBorder: InputBorder.none,
|
||||
focusedErrorBorder: InputBorder.none,
|
||||
disabledBorder: InputBorder.none,
|
||||
contentPadding: const EdgeInsets.symmetric(vertical: 12),
|
||||
errorMaxLines: 4,
|
||||
),
|
||||
validator: (value) {
|
||||
if (value == null || value.trim().isEmpty) {
|
||||
return l10n.addContact_publicKeyRequired;
|
||||
}
|
||||
if (decodeContactPublicKeyHex(value) == null) {
|
||||
return l10n.addContact_publicKeyInvalid;
|
||||
}
|
||||
return null;
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,7 @@ import '../widgets/language_picker_sheet.dart';
|
||||
import '../widgets/mesh_nav_tile.dart';
|
||||
import '../widgets/mesh_ui.dart';
|
||||
import '../widgets/network_map_settings_section.dart';
|
||||
import '../models/send_attempt_plan.dart';
|
||||
import '../widgets/settings_reveal.dart';
|
||||
import '../widgets/sync_progress_overlay.dart';
|
||||
import '../widgets/translation_settings_section.dart';
|
||||
@@ -81,6 +82,13 @@ class AppSettingsScreen extends StatelessWidget {
|
||||
child: _settingsCard(_buildRoutingContent),
|
||||
),
|
||||
|
||||
// REPEATERS AND ROOMS
|
||||
SectionHeader(context.l10n.appSettings_repeatersAndRooms),
|
||||
MeshCard(
|
||||
padding: EdgeInsets.zero,
|
||||
child: _settingsCard(_buildRepeaterRoomContent),
|
||||
),
|
||||
|
||||
// IMAGE MESSAGES
|
||||
SectionHeader(context.l10n.appSettings_imageMessagesSection),
|
||||
MeshCard(
|
||||
@@ -414,29 +422,6 @@ class AppSettingsScreen extends StatelessWidget {
|
||||
) {
|
||||
return Column(
|
||||
children: [
|
||||
SwitchListTile(
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
horizontal: 16,
|
||||
vertical: 4,
|
||||
),
|
||||
secondary: const Icon(Icons.refresh_outlined, size: 24),
|
||||
title: Text(context.l10n.appSettings_clearPathOnMaxRetry),
|
||||
subtitle: Text(context.l10n.appSettings_clearPathOnMaxRetrySubtitle),
|
||||
value: settingsService.settings.clearPathOnMaxRetry,
|
||||
onChanged: (value) {
|
||||
settingsService.setClearPathOnMaxRetry(value);
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(
|
||||
value
|
||||
? context.l10n.appSettings_pathsWillBeCleared
|
||||
: context.l10n.appSettings_pathsWillNotBeCleared,
|
||||
),
|
||||
duration: const Duration(seconds: 2),
|
||||
);
|
||||
},
|
||||
),
|
||||
const Divider(height: 1, indent: 16),
|
||||
SwitchListTile(
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
horizontal: 16,
|
||||
@@ -449,20 +434,6 @@ class AppSettingsScreen extends StatelessWidget {
|
||||
onChanged: settingsService.setJumpToOldestUnread,
|
||||
),
|
||||
const Divider(height: 1, indent: 16),
|
||||
SwitchListTile(
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
horizontal: 16,
|
||||
vertical: 4,
|
||||
),
|
||||
secondary: const Icon(Icons.settings_remote_outlined, size: 24),
|
||||
title: Text(context.l10n.appSettings_autoFetchRepeaterSettings),
|
||||
subtitle: Text(
|
||||
context.l10n.appSettings_autoFetchRepeaterSettingsSubtitle,
|
||||
),
|
||||
value: settingsService.settings.autoFetchRepeaterSettings,
|
||||
onChanged: settingsService.setAutoFetchRepeaterSettings,
|
||||
),
|
||||
const Divider(height: 1, indent: 16),
|
||||
SwitchListTile(
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
horizontal: 16,
|
||||
@@ -510,104 +481,75 @@ class AppSettingsScreen extends StatelessWidget {
|
||||
BuildContext context,
|
||||
AppSettingsService settingsService,
|
||||
) {
|
||||
final autoRouteEnabled = settingsService.settings.autoRouteRotationEnabled;
|
||||
final settings = settingsService.settings;
|
||||
final l10n = context.l10n;
|
||||
return Column(
|
||||
children: [
|
||||
SwitchListTile(
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
horizontal: 16,
|
||||
vertical: 4,
|
||||
),
|
||||
secondary: const Icon(Icons.refresh_outlined, size: 24),
|
||||
title: Text(l10n.appSettings_clearPathOnMaxRetry),
|
||||
subtitle: Text(l10n.appSettings_clearPathOnMaxRetrySubtitle),
|
||||
value: settings.clearPathOnMaxRetry,
|
||||
onChanged: (value) {
|
||||
settingsService.setClearPathOnMaxRetry(value);
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(
|
||||
value
|
||||
? l10n.appSettings_pathsWillBeCleared
|
||||
: l10n.appSettings_pathsWillNotBeCleared,
|
||||
),
|
||||
duration: const Duration(seconds: 2),
|
||||
);
|
||||
},
|
||||
),
|
||||
const Divider(height: 1, indent: 16),
|
||||
SettingsValueSlider(
|
||||
icon: Icons.route,
|
||||
title: l10n.appSettings_directRetries(settings.directRetries),
|
||||
subtitle: l10n.appSettings_directRetriesSubtitle,
|
||||
value: settings.directRetries,
|
||||
min: SendAttemptPlan.minDirectRetries,
|
||||
max: SendAttemptPlan.maxDirectRetries,
|
||||
onChanged: settingsService.setDirectRetries,
|
||||
),
|
||||
const Divider(height: 1, indent: 16),
|
||||
SettingsValueSlider(
|
||||
icon: Icons.waves,
|
||||
title: l10n.appSettings_floodRetries(settings.floodRetries),
|
||||
subtitle: l10n.appSettings_floodRetriesSubtitle,
|
||||
value: settings.floodRetries,
|
||||
min: SendAttemptPlan.minFloodRetries,
|
||||
max: SendAttemptPlan.maxFloodRetries,
|
||||
onChanged: settingsService.setFloodRetries,
|
||||
),
|
||||
const Divider(height: 1, indent: 16),
|
||||
SwitchListTile(
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
horizontal: 16,
|
||||
vertical: 4,
|
||||
),
|
||||
secondary: const Icon(Icons.alt_route, size: 24),
|
||||
title: Text(context.l10n.appSettings_autoRouteRotation),
|
||||
subtitle: Text(context.l10n.appSettings_autoRouteRotationSubtitle),
|
||||
value: autoRouteEnabled,
|
||||
title: Text(l10n.appSettings_autoRouteRotation),
|
||||
subtitle: Text(l10n.appSettings_autoRouteRotationSubtitle),
|
||||
value: settings.autoRouteRotationEnabled,
|
||||
onChanged: (value) {
|
||||
settingsService.setAutoRouteRotationEnabled(value);
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(
|
||||
value
|
||||
? context.l10n.appSettings_autoRouteRotationEnabled
|
||||
: context.l10n.appSettings_autoRouteRotationDisabled,
|
||||
? l10n.appSettings_autoRouteRotationEnabled
|
||||
: l10n.appSettings_autoRouteRotationDisabled,
|
||||
),
|
||||
duration: const Duration(seconds: 2),
|
||||
);
|
||||
},
|
||||
),
|
||||
// AnimatedSize sub-options for auto-route rotation
|
||||
AnimatedSize(
|
||||
duration: const Duration(milliseconds: 200),
|
||||
alignment: Alignment.topCenter,
|
||||
child: autoRouteEnabled
|
||||
? Container(
|
||||
color: Theme.of(context).colorScheme.surfaceContainerHighest,
|
||||
padding: const EdgeInsets.only(left: 16),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
const Divider(height: 1),
|
||||
ListTile(
|
||||
title: Text(context.l10n.appSettings_maxMessageRetries),
|
||||
subtitle: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
context
|
||||
.l10n
|
||||
.appSettings_maxMessageRetriesSubtitle,
|
||||
),
|
||||
Slider(
|
||||
value: settingsService.settings.maxMessageRetries
|
||||
.toDouble(),
|
||||
min: 2,
|
||||
max: 10,
|
||||
divisions: 8,
|
||||
label: settingsService.settings.maxMessageRetries
|
||||
.toString(),
|
||||
onChanged: (value) => settingsService
|
||||
.setMaxMessageRetries(value.toInt()),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
const Divider(height: 1),
|
||||
ListTile(
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
horizontal: 16,
|
||||
vertical: 4,
|
||||
),
|
||||
leading: const Icon(Icons.restart_alt, size: 24),
|
||||
title: Text(
|
||||
context.l10n.appSettings_resetRoutingToDefault,
|
||||
),
|
||||
subtitle: Text(
|
||||
context
|
||||
.l10n
|
||||
.appSettings_resetRoutingToDefaultSubtitle,
|
||||
),
|
||||
trailing: const Icon(
|
||||
Icons.keyboard_arrow_right,
|
||||
size: 18,
|
||||
),
|
||||
onTap: () async {
|
||||
await settingsService.resetRoutingSettingsToDefault();
|
||||
if (context.mounted) {
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(
|
||||
context.l10n.appSettings_routingResetToDefault,
|
||||
),
|
||||
duration: const Duration(seconds: 2),
|
||||
);
|
||||
}
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
)
|
||||
: const SizedBox.shrink(),
|
||||
),
|
||||
const Divider(height: 1, indent: 16),
|
||||
SwitchListTile(
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
@@ -615,60 +557,150 @@ class AppSettingsScreen extends StatelessWidget {
|
||||
vertical: 4,
|
||||
),
|
||||
secondary: const Icon(Icons.cell_tower, size: 24),
|
||||
title: Text(context.l10n.appSettings_channelMinHops),
|
||||
subtitle: Text(context.l10n.appSettings_channelMinHopsSubtitle),
|
||||
value: settingsService.settings.channelMinHopsEnabled,
|
||||
title: Text(l10n.appSettings_channelMinHops),
|
||||
subtitle: Text(l10n.appSettings_channelMinHopsSubtitle),
|
||||
value: settings.channelMinHopsEnabled,
|
||||
onChanged: settingsService.setChannelMinHopsEnabled,
|
||||
),
|
||||
if (settingsService.settings.channelMinHopsEnabled) ...[
|
||||
ListTile(
|
||||
title: Text(
|
||||
context.l10n.appSettings_channelMinHopsCount(
|
||||
settingsService.settings.channelMinHops,
|
||||
SettingsReveal(
|
||||
visible: settings.channelMinHopsEnabled,
|
||||
children: [
|
||||
SettingsValueSlider(
|
||||
icon: Icons.linear_scale,
|
||||
title: l10n.appSettings_channelMinHopsCount(
|
||||
settings.channelMinHops,
|
||||
),
|
||||
),
|
||||
subtitle: Slider(
|
||||
value: settingsService.settings.channelMinHops.toDouble(),
|
||||
value: settings.channelMinHops,
|
||||
min: 1,
|
||||
max: 8,
|
||||
divisions: 7,
|
||||
label: settingsService.settings.channelMinHops.toString(),
|
||||
onChanged: (value) =>
|
||||
settingsService.setChannelMinHops(value.toInt()),
|
||||
onChanged: settingsService.setChannelMinHops,
|
||||
),
|
||||
),
|
||||
ListTile(
|
||||
title: Text(
|
||||
context.l10n.appSettings_channelMinHopsRetries(
|
||||
settingsService.settings.channelMinHopsRetries,
|
||||
SettingsValueSlider(
|
||||
icon: Icons.repeat,
|
||||
title: l10n.appSettings_channelMinHopsRetries(
|
||||
settings.channelMinHopsRetries,
|
||||
),
|
||||
),
|
||||
subtitle: Slider(
|
||||
value: settingsService.settings.channelMinHopsRetries.toDouble(),
|
||||
value: settings.channelMinHopsRetries,
|
||||
min: 1,
|
||||
max: 5,
|
||||
divisions: 4,
|
||||
label: settingsService.settings.channelMinHopsRetries.toString(),
|
||||
onChanged: (value) =>
|
||||
settingsService.setChannelMinHopsRetries(value.toInt()),
|
||||
onChanged: settingsService.setChannelMinHopsRetries,
|
||||
),
|
||||
),
|
||||
SwitchListTile(
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
horizontal: 16,
|
||||
vertical: 4,
|
||||
),
|
||||
secondary: const Icon(Icons.hub_outlined, size: 24),
|
||||
title: Text(context.l10n.appSettings_channelMinHopsCountRepeaters),
|
||||
subtitle: Text(
|
||||
context.l10n.appSettings_channelMinHopsCountRepeatersSubtitle(
|
||||
settingsService.settings.channelMinHops,
|
||||
SwitchListTile(
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
horizontal: 16,
|
||||
vertical: 4,
|
||||
),
|
||||
secondary: const Icon(Icons.hub_outlined, size: 24),
|
||||
title: Text(l10n.appSettings_channelMinHopsCountRepeaters),
|
||||
subtitle: Text(
|
||||
l10n.appSettings_channelMinHopsCountRepeatersSubtitle(
|
||||
settings.channelMinHops,
|
||||
),
|
||||
),
|
||||
value: settings.channelMinHopsCountRepeaters,
|
||||
onChanged: settingsService.setChannelMinHopsCountRepeaters,
|
||||
),
|
||||
value: settingsService.settings.channelMinHopsCountRepeaters,
|
||||
onChanged: settingsService.setChannelMinHopsCountRepeaters,
|
||||
],
|
||||
),
|
||||
const Divider(height: 1, indent: 16),
|
||||
ListTile(
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
horizontal: 16,
|
||||
vertical: 4,
|
||||
),
|
||||
],
|
||||
leading: const Icon(Icons.restart_alt, size: 24),
|
||||
title: Text(l10n.appSettings_resetRoutingToDefault),
|
||||
subtitle: Text(l10n.appSettings_resetRoutingToDefaultSubtitle),
|
||||
trailing: const Icon(Icons.keyboard_arrow_right, size: 18),
|
||||
onTap: () async {
|
||||
await settingsService.resetRoutingSettingsToDefault();
|
||||
if (context.mounted) {
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(l10n.appSettings_routingResetToDefault),
|
||||
duration: const Duration(seconds: 2),
|
||||
);
|
||||
}
|
||||
},
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildRepeaterRoomContent(
|
||||
BuildContext context,
|
||||
AppSettingsService settingsService,
|
||||
) {
|
||||
final settings = settingsService.settings;
|
||||
final l10n = context.l10n;
|
||||
return Column(
|
||||
children: [
|
||||
SwitchListTile(
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
horizontal: 16,
|
||||
vertical: 4,
|
||||
),
|
||||
secondary: const Icon(Icons.schedule, size: 24),
|
||||
title: Text(l10n.appSettings_clockSyncAfterLogin),
|
||||
subtitle: Text(l10n.appSettings_clockSyncAfterLoginSubtitle),
|
||||
value: settings.clockSyncAfterLogin,
|
||||
onChanged: settingsService.setClockSyncAfterLogin,
|
||||
),
|
||||
const Divider(height: 1, indent: 16),
|
||||
SwitchListTile(
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
horizontal: 16,
|
||||
vertical: 4,
|
||||
),
|
||||
secondary: const Icon(Icons.password, size: 24),
|
||||
title: Text(l10n.appSettings_loginPasswordAutofocus),
|
||||
subtitle: Text(l10n.appSettings_loginPasswordAutofocusSubtitle),
|
||||
value: settings.loginPasswordAutofocus,
|
||||
onChanged: settingsService.setLoginPasswordAutofocus,
|
||||
),
|
||||
const Divider(height: 1, indent: 16),
|
||||
SettingsValueSlider(
|
||||
icon: Icons.login,
|
||||
title: l10n.appSettings_loginAttempts(settings.loginAttempts),
|
||||
subtitle: l10n.appSettings_loginAttemptsSubtitle,
|
||||
value: settings.loginAttempts,
|
||||
min: SendAttemptPlan.minLoginAttempts,
|
||||
max: SendAttemptPlan.maxLoginAttempts,
|
||||
onChanged: settingsService.setLoginAttempts,
|
||||
),
|
||||
const Divider(height: 1, indent: 16),
|
||||
SwitchListTile(
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
horizontal: 16,
|
||||
vertical: 4,
|
||||
),
|
||||
secondary: const Icon(Icons.settings_remote_outlined, size: 24),
|
||||
title: Text(l10n.appSettings_autoFetchRepeaterSettings),
|
||||
subtitle: Text(l10n.appSettings_autoFetchRepeaterSettingsSubtitle),
|
||||
value: settings.autoFetchRepeaterSettings,
|
||||
onChanged: settingsService.setAutoFetchRepeaterSettings,
|
||||
),
|
||||
const Divider(height: 1, indent: 16),
|
||||
ListTile(
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
horizontal: 16,
|
||||
vertical: 4,
|
||||
),
|
||||
leading: const Icon(Icons.restart_alt, size: 24),
|
||||
title: Text(l10n.appSettings_resetRepeaterRoomSettings),
|
||||
subtitle: Text(l10n.appSettings_resetRepeaterRoomSettingsSubtitle),
|
||||
trailing: const Icon(Icons.keyboard_arrow_right, size: 18),
|
||||
onTap: () async {
|
||||
await settingsService.resetRepeaterRoomSettingsToDefault();
|
||||
if (context.mounted) {
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(l10n.appSettings_repeaterRoomSettingsReset),
|
||||
duration: const Duration(seconds: 2),
|
||||
);
|
||||
}
|
||||
},
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
@@ -707,15 +739,10 @@ class AppSettingsScreen extends StatelessWidget {
|
||||
: null,
|
||||
),
|
||||
const Divider(height: 1, indent: 16),
|
||||
ListTile(
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
horizontal: 16,
|
||||
vertical: 4,
|
||||
),
|
||||
leading: const Icon(Icons.link_outlined, size: 20),
|
||||
title: Text(context.l10n.appSettings_ipfsImageLinks),
|
||||
subtitle: Text(context.l10n.appSettings_ipfsImageLinksSubtitle),
|
||||
trailing: const Icon(Icons.chevron_right, size: 18),
|
||||
MeshNavTile(
|
||||
icon: Icons.link_outlined,
|
||||
title: context.l10n.appSettings_ipfsImageLinks,
|
||||
subtitle: context.l10n.appSettings_ipfsImageLinksSubtitle,
|
||||
onTap: () => _showIpfsImageLinksDialog(context, settingsService),
|
||||
),
|
||||
const Divider(height: 1, indent: 16),
|
||||
@@ -812,7 +839,7 @@ class AppSettingsScreen extends StatelessWidget {
|
||||
size: 24,
|
||||
color: scheme.onSurfaceVariant,
|
||||
),
|
||||
const SizedBox(width: 12),
|
||||
const SizedBox(width: 16),
|
||||
Expanded(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
|
||||
@@ -96,6 +96,9 @@ class _BookmarksScreenState extends State<BookmarksScreen> {
|
||||
: bookmark.text,
|
||||
style: textStyle,
|
||||
originalStyle: textStyle.copyWith(fontStyle: FontStyle.italic),
|
||||
backgroundColor:
|
||||
Theme.of(context).cardTheme.color ??
|
||||
Theme.of(context).colorScheme.surfaceContainerLow,
|
||||
);
|
||||
return Card(
|
||||
margin: const EdgeInsets.only(bottom: 10),
|
||||
|
||||
@@ -729,7 +729,7 @@ class _ChannelChatScreenState extends State<ChannelChatScreen>
|
||||
ChatSearchEntry(
|
||||
id: m.messageId,
|
||||
sender: m.senderName,
|
||||
text: m.text,
|
||||
text: m.fullText,
|
||||
translatedText: m.translatedText,
|
||||
time: m.receivedAt,
|
||||
matchSender: true,
|
||||
@@ -1204,6 +1204,7 @@ class _ChannelChatScreenState extends State<ChannelChatScreen>
|
||||
fontStyle: FontStyle.italic,
|
||||
color: textColor.withValues(alpha: 0.72),
|
||||
),
|
||||
backgroundColor: colors.background,
|
||||
onSecondaryTap: PlatformInfo.isDesktop
|
||||
? () => _showMessageActions(message)
|
||||
: null,
|
||||
@@ -1356,6 +1357,7 @@ class _ChannelChatScreenState extends State<ChannelChatScreen>
|
||||
alpha: 0.72,
|
||||
),
|
||||
),
|
||||
backgroundColor: colors.background,
|
||||
onSecondaryTap: PlatformInfo.isDesktop
|
||||
? () => _showMessageActions(message)
|
||||
: null,
|
||||
@@ -1490,21 +1492,25 @@ class _ChannelChatScreenState extends State<ChannelChatScreen>
|
||||
),
|
||||
if (enableTracing &&
|
||||
!isOutgoing &&
|
||||
message.repeatCount > 0) ...[
|
||||
const SizedBox(width: 2),
|
||||
Icon(
|
||||
Icons.repeat,
|
||||
size: 14 * textScale,
|
||||
color: metaColor,
|
||||
message.repeatCount > 0)
|
||||
Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Icon(
|
||||
Icons.repeat,
|
||||
size: 14 * textScale,
|
||||
color: metaColor,
|
||||
),
|
||||
const SizedBox(width: 2),
|
||||
Text(
|
||||
'${message.repeatCount}',
|
||||
style: MeshTheme.mono(
|
||||
fontSize: 12 * textScale,
|
||||
color: metaColor,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
Text(
|
||||
'${message.repeatCount}',
|
||||
style: MeshTheme.mono(
|
||||
fontSize: 12 * textScale,
|
||||
color: metaColor,
|
||||
),
|
||||
),
|
||||
],
|
||||
if (isOutgoing)
|
||||
MessageStatusIcon(
|
||||
size: 16 * textScale,
|
||||
@@ -2540,6 +2546,14 @@ class _ChannelChatScreenState extends State<ChannelChatScreen>
|
||||
),
|
||||
subtitle: _imageSenderLabel(entry),
|
||||
),
|
||||
ListTile(
|
||||
leading: const Icon(Icons.copy),
|
||||
title: Text(l10n.common_copy),
|
||||
onTap: () {
|
||||
Navigator.pop(sheetContext);
|
||||
copyChatMessageText(context, _imageCopyText(entry));
|
||||
},
|
||||
),
|
||||
if (canSave)
|
||||
ListTile(
|
||||
leading: const Icon(Icons.save_alt),
|
||||
@@ -2592,6 +2606,17 @@ class _ChannelChatScreenState extends State<ChannelChatScreen>
|
||||
);
|
||||
}
|
||||
|
||||
String _imageCopyText(ReceivedImageEntry entry) {
|
||||
final l10n = context.l10n;
|
||||
final lines = <String>[
|
||||
'${_imageSenderLabel(entry)} (${formatChatTime(context, entry.firstSeen)})',
|
||||
l10n.receivedImage_awaiting(entry.bitstreamByteCount, entry.totalChunks),
|
||||
if (entry.state == ReceivedImageState.decoded && entry.synthesized)
|
||||
l10n.receivedImage_shareCaption(entry.bitstreamByteCount),
|
||||
];
|
||||
return lines.join('\n');
|
||||
}
|
||||
|
||||
Future<void> _saveImage(ReceivedImageEntry entry) async {
|
||||
final l10n = context.l10n;
|
||||
final shareOrigin = shareOriginOf(context);
|
||||
@@ -3095,7 +3120,7 @@ class _ChannelChatScreenState extends State<ChannelChatScreen>
|
||||
title: Text(context.l10n.common_copy),
|
||||
onTap: () {
|
||||
Navigator.pop(sheetContext);
|
||||
copyChatMessageText(context, message.text);
|
||||
copyChatMessageText(context, message.fullText);
|
||||
},
|
||||
),
|
||||
if (canTranslateMessage)
|
||||
@@ -3427,8 +3452,8 @@ class _ChannelChatScreenState extends State<ChannelChatScreen>
|
||||
final text = messages
|
||||
.map(
|
||||
(m) => m.senderName.isEmpty || m.isOutgoing
|
||||
? m.text
|
||||
: '${m.senderName}: ${m.text}',
|
||||
? m.fullText
|
||||
: '${m.senderName}: ${m.fullText}',
|
||||
)
|
||||
.join('\n');
|
||||
setState(_selectedIds.clear);
|
||||
@@ -4005,8 +4030,10 @@ class _SwipeReplyBubbleState extends State<_SwipeReplyBubble> {
|
||||
onPointerMove: _handleSwipePointerMove,
|
||||
onPointerUp: (event) => _handleSwipePointerUp(event.position),
|
||||
onPointerCancel: (_) => _resetSwipe(),
|
||||
// Same insets as the plain row in _buildMessageBubble, so a bubble is
|
||||
// as wide whether or not it can be swiped (offline, desktop, outgoing).
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 3, horizontal: 8),
|
||||
padding: const EdgeInsets.symmetric(vertical: 3),
|
||||
child: Stack(
|
||||
alignment: Alignment.center,
|
||||
children: [
|
||||
|
||||
@@ -21,6 +21,7 @@ import '../models/display_path.dart';
|
||||
import '../models/path_playback.dart';
|
||||
import '../theme/mesh_theme.dart';
|
||||
import '../widgets/adaptive_app_bar_title.dart';
|
||||
import '../widgets/contact_visuals.dart';
|
||||
import '../widgets/mesh_ui.dart';
|
||||
import '../widgets/path_map_scaffold.dart';
|
||||
import '../widgets/path_map_ui.dart';
|
||||
@@ -356,7 +357,7 @@ class ChannelMessagePathScreen extends StatelessWidget {
|
||||
Stack(
|
||||
clipBehavior: Clip.none,
|
||||
children: [
|
||||
AvatarCircle(name: hop.displayLabel, size: 36),
|
||||
AvatarCircle(name: hop.avatarName, size: 36),
|
||||
Positioned(
|
||||
right: -4,
|
||||
top: -4,
|
||||
@@ -1616,14 +1617,23 @@ class _PathHop {
|
||||
|
||||
bool get hasLocation => position != null;
|
||||
|
||||
String get displayLabel {
|
||||
final prefixLabel = hopBytes != null && hopBytes!.isNotEmpty
|
||||
? hopBytes!
|
||||
.map((b) => b.toRadixString(16).padLeft(2, '0'))
|
||||
.join('')
|
||||
.toUpperCase()
|
||||
: _formatPrefix(prefix);
|
||||
return '($prefixLabel) ${_resolveName(contact, l10n)}';
|
||||
String get prefixLabel => hopBytes != null && hopBytes!.isNotEmpty
|
||||
? hopBytes!
|
||||
.map((b) => b.toRadixString(16).padLeft(2, '0'))
|
||||
.join('')
|
||||
.toUpperCase()
|
||||
: _formatPrefix(prefix);
|
||||
|
||||
String get displayLabel => '($prefixLabel) ${_resolveName(contact, l10n)}';
|
||||
|
||||
/// Avatar source: the repeater's own name, or the hop's hex prefix when
|
||||
/// the hop is unresolved or its name has nothing to make initials from.
|
||||
String get avatarName {
|
||||
final name = contact?.name.trim() ?? '';
|
||||
if (name.toLowerCase() == 'unknown' || avatarInitials(name) == null) {
|
||||
return prefixLabel;
|
||||
}
|
||||
return name;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -39,9 +39,7 @@ import 'channel_chat_screen.dart';
|
||||
import 'community_qr_scanner_screen.dart';
|
||||
import 'contacts_screen.dart';
|
||||
import 'map_screen.dart';
|
||||
import 'settings_screen.dart';
|
||||
import '../review_mode/review_mode_banner.dart';
|
||||
import '../theme/theme_icons.dart';
|
||||
|
||||
class ChannelsScreen extends StatefulWidget {
|
||||
final bool hideBackButton;
|
||||
@@ -124,11 +122,11 @@ class _ChannelsScreenState extends State<ChannelsScreen> {
|
||||
bottom: const SyncProgressAppBarBottom(),
|
||||
actions: [
|
||||
PopupMenuButton(
|
||||
tooltip: context.l10n.contacts_moreOptions,
|
||||
// onTap handlers run after the menu route pops, so they must
|
||||
// capture the screen's context — not the itemBuilder's menu
|
||||
// context, which is deactivated by then.
|
||||
itemBuilder: (menuContext) => [
|
||||
connectionMenuItem(context, menuContext),
|
||||
PopupMenuItem(
|
||||
child: MeshMenuItemRow(
|
||||
icon: Icons.bookmark_border,
|
||||
@@ -146,18 +144,7 @@ class _ChannelsScreenState extends State<ChannelsScreen> {
|
||||
),
|
||||
onTap: () => _showManageCommunitiesDialog(context),
|
||||
),
|
||||
PopupMenuItem(
|
||||
child: MeshMenuItemRow(
|
||||
leading: const ThemedIcon(ThemeIconSlot.settings, size: 20),
|
||||
label: menuContext.l10n.settings_title,
|
||||
),
|
||||
onTap: () => Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => const SettingsScreen(),
|
||||
),
|
||||
),
|
||||
),
|
||||
...mainOverflowTrailingItems(context, menuContext),
|
||||
],
|
||||
icon: const Icon(Icons.more_vert),
|
||||
),
|
||||
|
||||
@@ -781,6 +781,13 @@ class _ChatScreenState extends State<ChatScreen> with WidgetsBindingObserver {
|
||||
}
|
||||
final messageIndex = index;
|
||||
Contact contact = _resolveContact(connector);
|
||||
final sendSettings = context.read<AppSettingsService>().settings;
|
||||
final retryLimit = sendSettings.sendAttemptLimit(
|
||||
rotating:
|
||||
sendSettings.autoRouteRotationEnabled &&
|
||||
contact.pathOverride == null,
|
||||
floodPath: (contact.pathOverride ?? contact.pathLength) < 0,
|
||||
);
|
||||
final bool isRoom = contact.type == advTypeRoom;
|
||||
final message = reversedMessages[messageIndex];
|
||||
String fourByteHex = '';
|
||||
@@ -810,6 +817,7 @@ class _ChatScreenState extends State<ChatScreen> with WidgetsBindingObserver {
|
||||
);
|
||||
final bubble = _MessageBubble(
|
||||
message: message,
|
||||
maxSendAttempts: retryLimit,
|
||||
senderName: isRoom
|
||||
? (roomAuthor != null
|
||||
? "${roomAuthor.name} [$fourByteHex]"
|
||||
@@ -1604,6 +1612,7 @@ class _ChatScreenState extends State<ChatScreen> with WidgetsBindingObserver {
|
||||
|
||||
class _MessageBubble extends StatelessWidget {
|
||||
final Message message;
|
||||
final int maxSendAttempts;
|
||||
final String senderName;
|
||||
final VoidCallback? onLongPress;
|
||||
final void Function(Message message, String emoji)? onRetryReaction;
|
||||
@@ -1613,6 +1622,7 @@ class _MessageBubble extends StatelessWidget {
|
||||
|
||||
const _MessageBubble({
|
||||
required this.message,
|
||||
required this.maxSendAttempts,
|
||||
required this.senderName,
|
||||
required this.sourceId,
|
||||
required this.textScale,
|
||||
@@ -1676,6 +1686,7 @@ class _MessageBubble extends StatelessWidget {
|
||||
color: textColor.withValues(alpha: 0.72),
|
||||
fontSize: bodyFontSize * textScale,
|
||||
),
|
||||
backgroundColor: colors.background,
|
||||
onSecondaryTap: PlatformInfo.isDesktop ? onLongPress : null,
|
||||
),
|
||||
),
|
||||
@@ -1810,6 +1821,7 @@ class _MessageBubble extends StatelessWidget {
|
||||
),
|
||||
fontSize: bodyFontSize * textScale,
|
||||
),
|
||||
backgroundColor: colors.background,
|
||||
onSecondaryTap: PlatformInfo.isDesktop
|
||||
? onLongPress
|
||||
: null,
|
||||
@@ -1854,10 +1866,7 @@ class _MessageBubble extends StatelessWidget {
|
||||
child: Text(
|
||||
context.l10n.chat_retryCount(
|
||||
message.retryCount,
|
||||
context
|
||||
.read<AppSettingsService>()
|
||||
.settings
|
||||
.maxMessageRetries,
|
||||
maxSendAttempts,
|
||||
),
|
||||
style: MeshTheme.mono(
|
||||
fontSize: 12 * textScale,
|
||||
|
||||
@@ -190,7 +190,7 @@ class _ContactQrScannerScreenState extends State<ContactQrScannerScreen> {
|
||||
);
|
||||
// Keep _isProcessing set: resetting it would restart the camera on a
|
||||
// closing route and let a second detection import and pop again.
|
||||
Navigator.pop(context);
|
||||
Navigator.pop(context, true);
|
||||
} catch (e) {
|
||||
if (mounted) {
|
||||
setState(() {
|
||||
|
||||
@@ -25,6 +25,7 @@ import '../widgets/connect_sheet.dart';
|
||||
import '../utils/radio_guard.dart';
|
||||
import '../utils/emoji_utils.dart';
|
||||
import '../utils/route_transitions.dart';
|
||||
import '../widgets/contact_group_editor_dialog.dart';
|
||||
import '../widgets/contact_visuals.dart';
|
||||
import '../widgets/list_filter_widget.dart';
|
||||
import '../widgets/empty_state.dart';
|
||||
@@ -34,21 +35,18 @@ import '../widgets/repeater_login_dialog.dart';
|
||||
import '../widgets/room_login_dialog.dart';
|
||||
import '../widgets/sync_progress_overlay.dart';
|
||||
import '../widgets/unread_badge.dart';
|
||||
import '../helpers/contact_share_message.dart';
|
||||
import '../helpers/snack_bar_builder.dart';
|
||||
import 'add_contact_screen.dart';
|
||||
import 'channels_screen.dart';
|
||||
import 'chat_screen.dart';
|
||||
import 'contact_qr_scanner_screen.dart';
|
||||
import 'discovery_screen.dart';
|
||||
import 'map_screen.dart';
|
||||
import '../review_mode/review_mode_banner.dart';
|
||||
import 'repeater_hub_screen.dart';
|
||||
import 'settings_screen.dart';
|
||||
import '../theme/theme_icons.dart';
|
||||
|
||||
enum RoomLoginDestination { chat, management }
|
||||
|
||||
enum ContactOperationType { import, export, zeroHopShare }
|
||||
enum ContactOperationType { export, zeroHopShare }
|
||||
|
||||
/// An export/import/share awaiting its generic OK/ERR ack. The timer drops
|
||||
/// it if no ack arrives, so a stuck op can't consume a later unrelated ack.
|
||||
@@ -159,10 +157,6 @@ class _ContactsScreenState extends State<ContactsScreen> {
|
||||
final l10n = context.l10n;
|
||||
final String message;
|
||||
switch (type) {
|
||||
case ContactOperationType.import:
|
||||
message = success
|
||||
? l10n.contacts_contactImported
|
||||
: l10n.contacts_contactImportFailed;
|
||||
case ContactOperationType.zeroHopShare:
|
||||
message = success
|
||||
? l10n.contacts_zeroHopContactAdvertSent
|
||||
@@ -345,85 +339,10 @@ class _ContactsScreenState extends State<ContactsScreen> {
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _contactImport() async {
|
||||
final connector = Provider.of<MeshCoreConnector>(context, listen: false);
|
||||
final clipboardData = await Clipboard.getData('text/plain');
|
||||
if (clipboardData == null || clipboardData.text == null) {
|
||||
if (mounted) {
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(context.l10n.contacts_clipboardEmpty),
|
||||
);
|
||||
}
|
||||
return;
|
||||
}
|
||||
final text = clipboardData.text!.trim();
|
||||
// A contact shared in chat (`<PUBKEY:TYPE:NAME>`) copied from the bubble.
|
||||
final share = findContactShare(text);
|
||||
if (share != null && !text.startsWith('meshcore://')) {
|
||||
await _importContactShare(connector, share);
|
||||
return;
|
||||
}
|
||||
if (!text.startsWith('meshcore://')) {
|
||||
if (mounted) {
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(context.l10n.contacts_invalidAdvertFormat),
|
||||
);
|
||||
}
|
||||
return;
|
||||
}
|
||||
final hexString = text.substring('meshcore://'.length);
|
||||
final Uint8List importContactFrame;
|
||||
try {
|
||||
final bytes = hex2Uint8List(hexString);
|
||||
importContactFrame = buildImportContactFrame(bytes);
|
||||
} catch (e) {
|
||||
if (mounted) {
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(context.l10n.contacts_invalidAdvertFormat),
|
||||
);
|
||||
}
|
||||
return;
|
||||
}
|
||||
_addPendingOperation(ContactOperationType.import);
|
||||
try {
|
||||
await connector.sendFrame(importContactFrame, expectsGenericAck: true);
|
||||
} catch (e) {
|
||||
_takePendingOperation(ContactOperationType.import);
|
||||
if (mounted) {
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(context.l10n.contacts_contactImportFailed),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _importContactShare(
|
||||
MeshCoreConnector connector,
|
||||
ContactShare share,
|
||||
) async {
|
||||
if (!mounted) return;
|
||||
final l10n = context.l10n;
|
||||
if (share.publicKeyHex == connector.selfPublicKeyHex) {
|
||||
showDismissibleSnackBar(context, content: Text(l10n.contactShare_isYou));
|
||||
return;
|
||||
}
|
||||
var ok = true;
|
||||
try {
|
||||
await connector.addContactFromCard(share.toScannedContact());
|
||||
} catch (e) {
|
||||
appLogger.warn('Contact share import failed: $e', tag: 'ContactsScreen');
|
||||
ok = false;
|
||||
}
|
||||
if (!mounted) return;
|
||||
showDismissibleSnackBar(
|
||||
void _openAddContact() {
|
||||
Navigator.push(
|
||||
context,
|
||||
content: Text(
|
||||
ok ? l10n.contacts_contactImported : l10n.contacts_contactImportFailed,
|
||||
),
|
||||
MaterialPageRoute(builder: (context) => const AddContactScreen()),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -443,38 +362,26 @@ class _ContactsScreenState extends State<ContactsScreen> {
|
||||
actions: [
|
||||
PopupMenuButton(
|
||||
tooltip: context.l10n.contacts_moreOptions,
|
||||
itemBuilder: (context) => <PopupMenuEntry<dynamic>>[
|
||||
// onTap handlers run after the menu route pops, so they must
|
||||
// capture the screen's context — not the itemBuilder's menu
|
||||
// context, which is deactivated by then.
|
||||
itemBuilder: (menuContext) => <PopupMenuEntry<dynamic>>[
|
||||
PopupMenuItem(
|
||||
enabled: !readOnly,
|
||||
onTap: _openAddContact,
|
||||
child: MeshMenuItemRow(
|
||||
icon: Icons.person_add,
|
||||
label: menuContext.l10n.addContact_title,
|
||||
),
|
||||
),
|
||||
PopupMenuItem(
|
||||
child: MeshMenuItemRow(
|
||||
icon: Icons.person_add_rounded,
|
||||
label: context.l10n.discoveredContacts_Title,
|
||||
label: menuContext.l10n.discoveredContacts_Title,
|
||||
),
|
||||
onTap: () => Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => const DiscoveryScreen(),
|
||||
),
|
||||
),
|
||||
),
|
||||
PopupMenuItem(
|
||||
enabled: !readOnly,
|
||||
child: MeshMenuItemRow(
|
||||
icon: Icons.paste,
|
||||
label: context.l10n.contacts_addContactFromClipboard,
|
||||
),
|
||||
onTap: () => _contactImport(),
|
||||
),
|
||||
PopupMenuItem(
|
||||
enabled: !readOnly,
|
||||
child: MeshMenuItemRow(
|
||||
icon: Icons.qr_code_scanner,
|
||||
label: context.l10n.contacts_scanQrCode,
|
||||
),
|
||||
onTap: () => Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => const ContactQrScannerScreen(),
|
||||
),
|
||||
MaterialPageRoute(builder: (_) => const DiscoveryScreen()),
|
||||
),
|
||||
),
|
||||
const PopupMenuDivider(),
|
||||
@@ -482,7 +389,7 @@ class _ContactsScreenState extends State<ContactsScreen> {
|
||||
enabled: !readOnly,
|
||||
child: MeshMenuItemRow(
|
||||
icon: Icons.connect_without_contact,
|
||||
label: context.l10n.contacts_zeroHopAdvert,
|
||||
label: menuContext.l10n.contacts_zeroHopAdvert,
|
||||
),
|
||||
onTap: () => _sendSelfAdvert(connector, flood: false),
|
||||
),
|
||||
@@ -490,7 +397,7 @@ class _ContactsScreenState extends State<ContactsScreen> {
|
||||
enabled: !readOnly,
|
||||
child: MeshMenuItemRow(
|
||||
icon: Icons.cell_tower,
|
||||
label: context.l10n.contacts_floodAdvert,
|
||||
label: menuContext.l10n.contacts_floodAdvert,
|
||||
),
|
||||
onTap: () => _sendSelfAdvert(connector, flood: true),
|
||||
),
|
||||
@@ -498,7 +405,7 @@ class _ContactsScreenState extends State<ContactsScreen> {
|
||||
enabled: !readOnly,
|
||||
child: MeshMenuItemRow(
|
||||
icon: Icons.copy,
|
||||
label: context.l10n.contacts_copyAdvertToClipboard,
|
||||
label: menuContext.l10n.contacts_copyAdvertToClipboard,
|
||||
),
|
||||
onTap: () => _contactExport(Uint8List.fromList([])),
|
||||
),
|
||||
@@ -506,24 +413,11 @@ class _ContactsScreenState extends State<ContactsScreen> {
|
||||
enabled: !readOnly,
|
||||
child: MeshMenuItemRow(
|
||||
icon: Icons.radar,
|
||||
label: context.l10n.manualTrace_menuItem,
|
||||
label: menuContext.l10n.manualTrace_menuItem,
|
||||
),
|
||||
onTap: () => ManualPathTraceScreen.open(context),
|
||||
),
|
||||
const PopupMenuDivider(),
|
||||
connectionMenuItem(this.context, context),
|
||||
PopupMenuItem(
|
||||
child: MeshMenuItemRow(
|
||||
leading: const ThemedIcon(ThemeIconSlot.settings, size: 20),
|
||||
label: context.l10n.settings_title,
|
||||
),
|
||||
onTap: () => Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => const SettingsScreen(),
|
||||
),
|
||||
),
|
||||
),
|
||||
...mainOverflowTrailingItems(context, menuContext),
|
||||
],
|
||||
icon: const Icon(Icons.more_vert),
|
||||
),
|
||||
@@ -538,7 +432,8 @@ class _ContactsScreenState extends State<ContactsScreen> {
|
||||
floatingActionButton: readOnly
|
||||
? null
|
||||
: FloatingActionButton(
|
||||
onPressed: () => _showAddContactSheet(context),
|
||||
tooltip: context.l10n.addContact_title,
|
||||
onPressed: _openAddContact,
|
||||
child: const Icon(Icons.person_add),
|
||||
),
|
||||
bottomNavigationBar: SafeArea(
|
||||
@@ -555,57 +450,6 @@ class _ContactsScreenState extends State<ContactsScreen> {
|
||||
);
|
||||
}
|
||||
|
||||
void _showAddContactSheet(BuildContext context) {
|
||||
showMeshSheet(
|
||||
context,
|
||||
builder: (sheetContext) => SafeArea(
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
BottomSheetHeader(title: context.l10n.contacts_title),
|
||||
ListTile(
|
||||
leading: const Icon(Icons.paste),
|
||||
title: Text(context.l10n.contacts_addContactFromClipboard),
|
||||
onTap: () {
|
||||
Navigator.pop(sheetContext);
|
||||
_contactImport();
|
||||
},
|
||||
),
|
||||
ListTile(
|
||||
leading: const Icon(Icons.qr_code_scanner),
|
||||
title: Text(context.l10n.contacts_scanQrCode),
|
||||
onTap: () {
|
||||
Navigator.pop(sheetContext);
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => const ContactQrScannerScreen(),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
ListTile(
|
||||
leading: const Icon(Icons.person_add_rounded),
|
||||
title: Text(context.l10n.discoveredContacts_Title),
|
||||
onTap: () {
|
||||
Navigator.pop(sheetContext);
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => const DiscoveryScreen(),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
ContactGroup? _selectedGroupForName(String selectedGroupName) {
|
||||
if (selectedGroupName == contactsAllGroupsValue) return null;
|
||||
for (final group in _groups) {
|
||||
@@ -1449,185 +1293,44 @@ class _ContactsScreenState extends State<ContactsScreen> {
|
||||
return;
|
||||
}
|
||||
final isEditing = group != null;
|
||||
final nameController = TextEditingController(text: group?.name ?? '');
|
||||
final selectedKeys = <String>{...group?.memberKeys ?? []};
|
||||
String filterQuery = '';
|
||||
final sortedContacts = List<Contact>.from(contacts)
|
||||
..sort((a, b) => a.name.toLowerCase().compareTo(b.name.toLowerCase()));
|
||||
|
||||
showDialog<void>(
|
||||
context: context,
|
||||
builder: (dialogContext) => _DisposeControllerOnUnmount(
|
||||
controller: nameController,
|
||||
child: StatefulBuilder(
|
||||
builder: (builderContext, setDialogState) {
|
||||
final filteredContacts = filterQuery.isEmpty
|
||||
? sortedContacts
|
||||
: (sortedContacts
|
||||
.where(
|
||||
(contact) => matchesContactQuery(contact, filterQuery),
|
||||
)
|
||||
.toList()
|
||||
..sort(
|
||||
(a, b) => compareContactQueryRank(a, b, filterQuery),
|
||||
));
|
||||
return AlertDialog(
|
||||
title: Text(
|
||||
isEditing
|
||||
? context.l10n.contacts_editGroup
|
||||
: context.l10n.contacts_newGroup,
|
||||
),
|
||||
content: SizedBox(
|
||||
width: double.maxFinite,
|
||||
child: ConstrainedBox(
|
||||
constraints: BoxConstraints(
|
||||
maxHeight: MediaQuery.of(context).size.height * 0.8,
|
||||
),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
TextField(
|
||||
controller: nameController,
|
||||
decoration: InputDecoration(
|
||||
labelText: context.l10n.contacts_groupName,
|
||||
border: const OutlineInputBorder(),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
TextField(
|
||||
decoration: InputDecoration(
|
||||
hintText: context.l10n.contacts_filterContacts,
|
||||
prefixIcon: const Icon(Icons.search),
|
||||
border: const OutlineInputBorder(),
|
||||
isDense: true,
|
||||
),
|
||||
onChanged: (value) {
|
||||
setDialogState(() {
|
||||
filterQuery = value.toLowerCase();
|
||||
});
|
||||
},
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
Expanded(
|
||||
child: filteredContacts.isEmpty
|
||||
? Center(
|
||||
child: Text(
|
||||
context.l10n.contacts_noContactsMatchFilter,
|
||||
),
|
||||
)
|
||||
: ListView.builder(
|
||||
itemCount: filteredContacts.length,
|
||||
itemBuilder: (context, index) {
|
||||
final contact = filteredContacts[index];
|
||||
final isSelected = selectedKeys.contains(
|
||||
contact.publicKeyHex,
|
||||
);
|
||||
return CheckboxListTile(
|
||||
value: isSelected,
|
||||
title: Text(contact.name),
|
||||
subtitle: Text(
|
||||
contact.typeLabel(context.l10n),
|
||||
),
|
||||
onChanged: (value) {
|
||||
setDialogState(() {
|
||||
if (value == true) {
|
||||
selectedKeys.add(
|
||||
contact.publicKeyHex,
|
||||
);
|
||||
} else {
|
||||
selectedKeys.remove(
|
||||
contact.publicKeyHex,
|
||||
);
|
||||
}
|
||||
});
|
||||
},
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: () => Navigator.pop(dialogContext),
|
||||
child: Text(context.l10n.common_cancel),
|
||||
),
|
||||
TextButton(
|
||||
onPressed: () async {
|
||||
final name = nameController.text.trim();
|
||||
if (name.isEmpty) {
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(context.l10n.contacts_groupNameRequired),
|
||||
);
|
||||
return;
|
||||
}
|
||||
if (name.toLowerCase() ==
|
||||
contactsAllGroupsValue.toLowerCase()) {
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(context.l10n.contacts_groupNameReserved),
|
||||
);
|
||||
return;
|
||||
}
|
||||
final exists = _groups.any((g) {
|
||||
if (isEditing && g.name == group.name) return false;
|
||||
return g.name.toLowerCase() == name.toLowerCase();
|
||||
});
|
||||
if (exists) {
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(
|
||||
context.l10n.contacts_groupAlreadyExists(name),
|
||||
),
|
||||
);
|
||||
return;
|
||||
}
|
||||
setState(() {
|
||||
final viewState = context.read<UiViewStateService>();
|
||||
if (isEditing) {
|
||||
final index = _groups.indexWhere(
|
||||
(g) => g.name == group.name,
|
||||
);
|
||||
if (index != -1) {
|
||||
final wasSelected =
|
||||
viewState.contactsSelectedGroupName == group.name;
|
||||
_groups[index] = ContactGroup(
|
||||
name: name,
|
||||
memberKeys: selectedKeys.toList(),
|
||||
);
|
||||
if (wasSelected) {
|
||||
viewState.setContactsSelectedGroupName(name);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
_groups.add(
|
||||
ContactGroup(
|
||||
name: name,
|
||||
memberKeys: selectedKeys.toList(),
|
||||
),
|
||||
);
|
||||
viewState.setContactsSelectedGroupName(name);
|
||||
}
|
||||
_ensureValidSelectedGroup();
|
||||
});
|
||||
await _saveGroups();
|
||||
if (dialogContext.mounted) {
|
||||
Navigator.pop(dialogContext);
|
||||
}
|
||||
},
|
||||
child: Text(
|
||||
isEditing
|
||||
? context.l10n.common_save
|
||||
: context.l10n.common_create,
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
),
|
||||
builder: (dialogContext) => ContactGroupEditorDialog(
|
||||
contacts: contacts,
|
||||
group: group,
|
||||
validateName: (name) {
|
||||
final l10n = dialogContext.l10n;
|
||||
if (name.isEmpty) return l10n.contacts_groupNameRequired;
|
||||
if (name.toLowerCase() == contactsAllGroupsValue.toLowerCase()) {
|
||||
return l10n.contacts_groupNameReserved;
|
||||
}
|
||||
final exists = _groups.any((g) {
|
||||
if (isEditing && g.name == group.name) return false;
|
||||
return g.name.toLowerCase() == name.toLowerCase();
|
||||
});
|
||||
return exists ? l10n.contacts_groupAlreadyExists(name) : null;
|
||||
},
|
||||
onSave: (updated) async {
|
||||
setState(() {
|
||||
final viewState = context.read<UiViewStateService>();
|
||||
if (isEditing) {
|
||||
final index = _groups.indexWhere((g) => g.name == group.name);
|
||||
if (index != -1) {
|
||||
final wasSelected =
|
||||
viewState.contactsSelectedGroupName == group.name;
|
||||
_groups[index] = updated;
|
||||
if (wasSelected) {
|
||||
viewState.setContactsSelectedGroupName(updated.name);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
_groups.add(updated);
|
||||
viewState.setContactsSelectedGroupName(updated.name);
|
||||
}
|
||||
_ensureValidSelectedGroup();
|
||||
});
|
||||
await _saveGroups();
|
||||
},
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -2145,34 +1848,6 @@ class _KeyPrefixBadge extends StatelessWidget {
|
||||
}
|
||||
}
|
||||
|
||||
/// Disposes [controller] when the dialog content unmounts, i.e. after the
|
||||
/// route's exit animation, so the TextField never sees a disposed controller.
|
||||
class _DisposeControllerOnUnmount extends StatefulWidget {
|
||||
final TextEditingController controller;
|
||||
final Widget child;
|
||||
|
||||
const _DisposeControllerOnUnmount({
|
||||
required this.controller,
|
||||
required this.child,
|
||||
});
|
||||
|
||||
@override
|
||||
State<_DisposeControllerOnUnmount> createState() =>
|
||||
_DisposeControllerOnUnmountState();
|
||||
}
|
||||
|
||||
class _DisposeControllerOnUnmountState
|
||||
extends State<_DisposeControllerOnUnmount> {
|
||||
@override
|
||||
void dispose() {
|
||||
widget.controller.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => widget.child;
|
||||
}
|
||||
|
||||
// Wrap each contact tile with staggered entrance.
|
||||
class _ContactTileEntrance extends StatelessWidget {
|
||||
final int index;
|
||||
|
||||
@@ -0,0 +1,260 @@
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_map/flutter_map.dart';
|
||||
import 'package:latlong2/latlong.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
import '../helpers/link_handler.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../services/map_tile_cache_service.dart';
|
||||
import '../theme/mesh_theme.dart';
|
||||
import '../widgets/adaptive_app_bar_title.dart';
|
||||
import '../widgets/mesh_ui.dart';
|
||||
|
||||
/// Dedicated full-screen map centered on a tapped GPS coordinate.
|
||||
class CoordinateMapScreen extends StatefulWidget {
|
||||
final double latitude;
|
||||
final double longitude;
|
||||
final String? label;
|
||||
|
||||
const CoordinateMapScreen({
|
||||
super.key,
|
||||
required this.latitude,
|
||||
required this.longitude,
|
||||
this.label,
|
||||
});
|
||||
|
||||
@override
|
||||
State<CoordinateMapScreen> createState() => _CoordinateMapScreenState();
|
||||
}
|
||||
|
||||
class _CoordinateMapScreenState extends State<CoordinateMapScreen> {
|
||||
static const double _initialZoom = 15.0;
|
||||
static const double _minZoom = 2.0;
|
||||
static const double _maxZoom = 18.0;
|
||||
|
||||
final MapController _mapController = MapController();
|
||||
|
||||
LatLng get _position => LatLng(widget.latitude, widget.longitude);
|
||||
|
||||
String get _coordinateText => widget.label?.trim().isNotEmpty == true
|
||||
? widget.label!.trim()
|
||||
: '${widget.latitude}, ${widget.longitude}';
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_mapController.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
void _zoomBy(double delta) {
|
||||
final camera = _mapController.camera;
|
||||
final nextZoom = (camera.zoom + delta).clamp(_minZoom, _maxZoom).toDouble();
|
||||
_mapController.move(camera.center, nextZoom);
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final l10n = context.l10n;
|
||||
final scheme = Theme.of(context).colorScheme;
|
||||
final mapTheme = MeshMapTheme.of(context);
|
||||
final tileCache = context.read<MapTileCacheService>();
|
||||
final isDesktop =
|
||||
defaultTargetPlatform == TargetPlatform.linux ||
|
||||
defaultTargetPlatform == TargetPlatform.windows ||
|
||||
defaultTargetPlatform == TargetPlatform.macOS;
|
||||
final labelSurface = scheme.surfaceContainerLow;
|
||||
final iconAccent = readableAccent(
|
||||
scheme.primary,
|
||||
labelSurface,
|
||||
minContrast: 3,
|
||||
);
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
centerTitle: true,
|
||||
title: AdaptiveAppBarTitle(l10n.coordinateMap_title),
|
||||
actions: [
|
||||
IconButton(
|
||||
icon: const Icon(Icons.copy),
|
||||
tooltip: l10n.coordinate_copyLocation,
|
||||
onPressed: () =>
|
||||
LinkHandler.copyCoordinateLocation(context, _coordinateText),
|
||||
),
|
||||
IconButton(
|
||||
icon: const Icon(Icons.open_in_new),
|
||||
tooltip: l10n.coordinate_openInMaps,
|
||||
onPressed: () => LinkHandler.openCoordinateInExternalMaps(
|
||||
context,
|
||||
widget.latitude,
|
||||
widget.longitude,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
body: Stack(
|
||||
children: [
|
||||
FlutterMap(
|
||||
mapController: _mapController,
|
||||
options: MapOptions(
|
||||
initialCenter: _position,
|
||||
initialZoom: _initialZoom,
|
||||
minZoom: _minZoom,
|
||||
maxZoom: _maxZoom,
|
||||
interactionOptions: InteractionOptions(
|
||||
flags: ~InteractiveFlag.rotate,
|
||||
scrollWheelVelocity: isDesktop ? 0.012 : 0.005,
|
||||
cursorKeyboardRotationOptions:
|
||||
CursorKeyboardRotationOptions.disabled(),
|
||||
keyboardOptions: isDesktop
|
||||
? const KeyboardOptions(
|
||||
enableArrowKeysPanning: true,
|
||||
enableWASDPanning: true,
|
||||
enableRFZooming: true,
|
||||
)
|
||||
: const KeyboardOptions.disabled(),
|
||||
),
|
||||
),
|
||||
children: [
|
||||
tileCache.buildTileLayer(context),
|
||||
MarkerLayer(
|
||||
markers: [
|
||||
Marker(
|
||||
point: _position,
|
||||
width: 48,
|
||||
height: 48,
|
||||
child: IgnorePointer(
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
shape: BoxShape.circle,
|
||||
color: mapTheme.followsTheme
|
||||
? mapTheme.accent
|
||||
: MapPalette.batteryLow,
|
||||
border: Border.all(
|
||||
color: MapPalette.markerOutline,
|
||||
width: 3,
|
||||
),
|
||||
boxShadow: const [
|
||||
BoxShadow(
|
||||
color: MapPalette.markerShadow,
|
||||
blurRadius: 8,
|
||||
offset: Offset(0, 3),
|
||||
),
|
||||
],
|
||||
),
|
||||
child: const Icon(
|
||||
Icons.location_on,
|
||||
color: MapPalette.markerOutline,
|
||||
size: 26,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
Positioned(
|
||||
top: 12,
|
||||
right: 12,
|
||||
child: Column(
|
||||
children: [
|
||||
_CoordinateMapControlButton(
|
||||
icon: Icons.add,
|
||||
tooltip: l10n.map_zoomIn,
|
||||
onPressed: () => _zoomBy(1),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
_CoordinateMapControlButton(
|
||||
icon: Icons.remove,
|
||||
tooltip: l10n.map_zoomOut,
|
||||
onPressed: () => _zoomBy(-1),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
_CoordinateMapControlButton(
|
||||
icon: Icons.my_location,
|
||||
tooltip: l10n.map_centerMap,
|
||||
onPressed: () => _mapController.move(_position, _initialZoom),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
Positioned(
|
||||
left: 16,
|
||||
right: 16,
|
||||
bottom: 16,
|
||||
child: SafeArea(
|
||||
top: false,
|
||||
child: Material(
|
||||
color: labelSurface,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(MeshRadii.md),
|
||||
side: BorderSide(color: scheme.outlineVariant),
|
||||
),
|
||||
elevation: 2,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 14,
|
||||
vertical: 10,
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(
|
||||
Icons.location_on_outlined,
|
||||
color: iconAccent,
|
||||
size: 22,
|
||||
),
|
||||
const SizedBox(width: 10),
|
||||
Expanded(
|
||||
child: Text(
|
||||
_coordinateText,
|
||||
style: MeshTheme.mono(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: scheme.onSurface,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class _CoordinateMapControlButton extends StatelessWidget {
|
||||
final IconData icon;
|
||||
final String tooltip;
|
||||
final VoidCallback onPressed;
|
||||
|
||||
const _CoordinateMapControlButton({
|
||||
required this.icon,
|
||||
required this.tooltip,
|
||||
required this.onPressed,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final scheme = Theme.of(context).colorScheme;
|
||||
return Material(
|
||||
color: scheme.surfaceContainerLow,
|
||||
elevation: 2,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(MeshRadii.md),
|
||||
side: BorderSide(color: scheme.outlineVariant),
|
||||
),
|
||||
clipBehavior: Clip.antiAlias,
|
||||
child: IconButton(
|
||||
icon: Icon(icon),
|
||||
tooltip: tooltip,
|
||||
onPressed: onPressed,
|
||||
iconSize: 22,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -12,6 +12,7 @@ import '../widgets/adaptive_app_bar_title.dart';
|
||||
import '../widgets/chat_send_pipeline.dart';
|
||||
import '../widgets/empty_state.dart';
|
||||
import '../widgets/mesh_ui.dart';
|
||||
import '../widgets/settings_reveal.dart';
|
||||
|
||||
/// Recent filtered channel messages across all channels, newest first.
|
||||
///
|
||||
@@ -286,7 +287,8 @@ class _FilteredMessageCard extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
AnimatedSize(
|
||||
duration: const Duration(milliseconds: 150),
|
||||
duration: RevealOnEnable.duration,
|
||||
curve: RevealOnEnable.curve,
|
||||
alignment: AlignmentDirectional.topStart,
|
||||
child: Padding(
|
||||
padding: const EdgeInsetsDirectional.only(end: 8),
|
||||
|
||||
+21
-22
@@ -51,7 +51,6 @@ import '../helpers/guessed_location_estimator.dart';
|
||||
import '../helpers/marker_message.dart';
|
||||
import '../helpers/snack_bar_builder.dart';
|
||||
import '../helpers/utf8_length_limiter.dart';
|
||||
import 'settings_screen.dart';
|
||||
import 'line_of_sight_map_screen.dart';
|
||||
import '../theme/theme_icons.dart';
|
||||
|
||||
@@ -800,14 +799,18 @@ class _MapScreenState extends State<MapScreen> with WidgetsBindingObserver {
|
||||
bottom: const SyncProgressAppBarBottom(),
|
||||
actions: [
|
||||
PopupMenuButton(
|
||||
itemBuilder: (context) => [
|
||||
tooltip: context.l10n.contacts_moreOptions,
|
||||
// onTap handlers run after the menu route pops, so they must
|
||||
// capture the screen's context — not the itemBuilder's menu
|
||||
// context, which is deactivated by then.
|
||||
itemBuilder: (menuContext) => [
|
||||
if (!_isBuildingPathTrace &&
|
||||
connector.selfLatitude != null &&
|
||||
connector.selfLongitude != null)
|
||||
PopupMenuItem(
|
||||
child: MeshMenuItemRow(
|
||||
icon: Icons.radar,
|
||||
label: context.l10n.contacts_pathTrace,
|
||||
label: menuContext.l10n.contacts_pathTrace,
|
||||
),
|
||||
onTap: () => _openPathTrace(
|
||||
connector,
|
||||
@@ -822,7 +825,7 @@ class _MapScreenState extends State<MapScreen> with WidgetsBindingObserver {
|
||||
enabled: !readOnly,
|
||||
child: MeshMenuItemRow(
|
||||
icon: Icons.radar,
|
||||
label: context.l10n.manualTrace_menuItem,
|
||||
label: menuContext.l10n.manualTrace_menuItem,
|
||||
),
|
||||
onTap: () => ManualPathTraceScreen.open(context),
|
||||
),
|
||||
@@ -830,7 +833,7 @@ class _MapScreenState extends State<MapScreen> with WidgetsBindingObserver {
|
||||
PopupMenuItem(
|
||||
child: MeshMenuItemRow(
|
||||
leading: const LosIcon(size: 20),
|
||||
label: context.l10n.map_lineOfSight,
|
||||
label: menuContext.l10n.map_lineOfSight,
|
||||
),
|
||||
onTap: () {
|
||||
final candidates = <LineOfSightEndpoint>[];
|
||||
@@ -861,7 +864,7 @@ class _MapScreenState extends State<MapScreen> with WidgetsBindingObserver {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => LineOfSightMapScreen(
|
||||
builder: (_) => LineOfSightMapScreen(
|
||||
title: context.l10n.map_losScreenTitle,
|
||||
candidates: candidates,
|
||||
),
|
||||
@@ -869,21 +872,10 @@ class _MapScreenState extends State<MapScreen> with WidgetsBindingObserver {
|
||||
);
|
||||
},
|
||||
),
|
||||
connectionMenuItem(this.context, context),
|
||||
PopupMenuItem(
|
||||
child: MeshMenuItemRow(
|
||||
leading: const ThemedIcon(
|
||||
ThemeIconSlot.settings,
|
||||
size: 20,
|
||||
),
|
||||
label: context.l10n.settings_title,
|
||||
),
|
||||
onTap: () => Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => const SettingsScreen(),
|
||||
),
|
||||
),
|
||||
...mainOverflowTrailingItems(
|
||||
context,
|
||||
menuContext,
|
||||
hasPrecedingItems: !_isBuildingPathTrace,
|
||||
),
|
||||
],
|
||||
icon: const Icon(Icons.more_vert),
|
||||
@@ -1198,6 +1190,9 @@ class _MapScreenState extends State<MapScreen> with WidgetsBindingObserver {
|
||||
showOtherNodes: settings.mapShowOtherNodes,
|
||||
isBuildingPathTrace: _isBuildingPathTrace,
|
||||
clusterNodes: settings.mapClusterNodes,
|
||||
// Node labels bake in the overlay colors, so a light/dark or theme
|
||||
// switch must rebuild them.
|
||||
colorScheme: Theme.of(context).colorScheme,
|
||||
);
|
||||
if (key != _nodeMarkersCacheKey) {
|
||||
_nodeMarkersCacheKey = key;
|
||||
@@ -4389,6 +4384,7 @@ class _NodeMarkersCacheKey {
|
||||
final bool showOtherNodes;
|
||||
final bool isBuildingPathTrace;
|
||||
final bool clusterNodes;
|
||||
final ColorScheme colorScheme;
|
||||
|
||||
const _NodeMarkersCacheKey({
|
||||
required this.contactsSignature,
|
||||
@@ -4409,6 +4405,7 @@ class _NodeMarkersCacheKey {
|
||||
required this.showOtherNodes,
|
||||
required this.isBuildingPathTrace,
|
||||
required this.clusterNodes,
|
||||
required this.colorScheme,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -4431,7 +4428,8 @@ class _NodeMarkersCacheKey {
|
||||
showChatNodes == other.showChatNodes &&
|
||||
showOtherNodes == other.showOtherNodes &&
|
||||
isBuildingPathTrace == other.isBuildingPathTrace &&
|
||||
clusterNodes == other.clusterNodes;
|
||||
clusterNodes == other.clusterNodes &&
|
||||
colorScheme == other.colorScheme;
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -4454,6 +4452,7 @@ class _NodeMarkersCacheKey {
|
||||
showOtherNodes,
|
||||
isBuildingPathTrace,
|
||||
clusterNodes,
|
||||
colorScheme,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
+437
-278
@@ -8,6 +8,7 @@ import 'package:latlong2/latlong.dart';
|
||||
import 'package:meshcore_open/connector/meshcore_connector.dart';
|
||||
import 'package:meshcore_open/connector/meshcore_protocol.dart';
|
||||
import 'package:meshcore_open/helpers/path_helper.dart';
|
||||
import 'package:meshcore_open/helpers/path_hop_resolver.dart';
|
||||
import 'package:meshcore_open/l10n/l10n.dart';
|
||||
import 'package:meshcore_open/models/app_settings.dart';
|
||||
import 'package:meshcore_open/models/contact.dart';
|
||||
@@ -24,6 +25,7 @@ import 'package:meshcore_open/widgets/path_map_ui.dart';
|
||||
import 'package:meshcore_open/widgets/snr_indicator.dart';
|
||||
import 'package:meshcore_open/widgets/set_my_location_dialog.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
import '../theme/mesh_theme.dart';
|
||||
|
||||
export 'package:meshcore_open/widgets/path_map_ui.dart'
|
||||
@@ -95,8 +97,6 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen>
|
||||
static const double _labelZoomThreshold = kPathMapLabelZoomThreshold;
|
||||
// Used when the radio never acknowledges the trace request.
|
||||
static const Duration _sendAckTimeout = Duration(seconds: 15);
|
||||
//miles to meters conversion for filtering out repeaters that are too far from the last known GPS hop to be a likely match, to avoid false matches that throw off the inferred positions of other hops in the path
|
||||
static const double _maxRepeaterMatchDistanceMeters = 40 * 1609.344;
|
||||
|
||||
final MapController _mapController = MapController();
|
||||
StreamSubscription<Uint8List>? _frameSubscription;
|
||||
@@ -143,9 +143,10 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen>
|
||||
bool _animationEnabled = true;
|
||||
bool _followPacket = false;
|
||||
|
||||
// Hop-prefix -> contact lookups, invalidated when the contact list changes.
|
||||
final Map<String, Contact?> _hopContactCache = {};
|
||||
int? _hopContactCacheSignature;
|
||||
// Resolved hop contacts and inferred positions per display path id, used by
|
||||
// combined markers and the generic hop list.
|
||||
final Map<String, ({List<Contact?> contacts, List<LatLng?> inferred})>
|
||||
_resolvedDisplayPaths = {};
|
||||
|
||||
String _formatPathPrefixes(Uint8List pathBytes, [int? hashByteWidth]) {
|
||||
return PathHelper.splitPathBytes(
|
||||
@@ -584,213 +585,19 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen>
|
||||
.map((snr) => snr.toSigned(8).toDouble() / 4)
|
||||
.toList();
|
||||
|
||||
Map<String, Contact> pathContacts = {};
|
||||
Contact lastContact = Contact(
|
||||
path: Uint8List(0),
|
||||
pathLength: 0,
|
||||
publicKey: connector.selfPublicKey ?? Uint8List(0),
|
||||
name: context.l10n.pathTrace_you,
|
||||
type: advTypeChat,
|
||||
latitude: connector.selfLatitude,
|
||||
longitude: connector.selfLongitude,
|
||||
lastSeen: DateTime.now(),
|
||||
);
|
||||
if (widget.pathContacts != null) {
|
||||
final hopWidth = width.clamp(1, pubKeySize).toInt();
|
||||
pathContacts = {
|
||||
for (var c in widget.pathContacts!)
|
||||
if (c.publicKey.length >= hopWidth)
|
||||
_hopKey(Uint8List.fromList(c.publicKey.sublist(0, hopWidth))): c,
|
||||
};
|
||||
} else {
|
||||
final contacts = connector.allContactsUnfiltered;
|
||||
contacts.where((c) => c.type != advTypeChat).forEach((repeater) {
|
||||
if (lastContact.latitude != null &&
|
||||
lastContact.longitude != null &&
|
||||
repeater.hasLocation &&
|
||||
lastContact.hasLocation &&
|
||||
Distance().distance(
|
||||
LatLng(lastContact.latitude!, lastContact.longitude!),
|
||||
LatLng(repeater.latitude!, repeater.longitude!),
|
||||
) >
|
||||
_maxRepeaterMatchDistanceMeters) {
|
||||
return; //skip reapeaters that are far away from the last one with known GPS, to avoid false matches
|
||||
}
|
||||
for (final repeaterData in pathData) {
|
||||
final hopWidth = repeaterData.length;
|
||||
if (repeater.publicKey.length < hopWidth) continue;
|
||||
if (listEquals(
|
||||
repeater.publicKey.sublist(0, hopWidth),
|
||||
repeaterData,
|
||||
)) {
|
||||
pathContacts[_hopKey(repeaterData)] = repeater;
|
||||
lastContact = repeater;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// For hops with no GPS contact, infer position from other contacts
|
||||
// with known GPS that share the same last-hop byte.
|
||||
final Map<String, LatLng> inferredPositions = {};
|
||||
for (final hop in pathData) {
|
||||
final hopKey = _hopKey(hop);
|
||||
final contact = pathContacts[hopKey];
|
||||
if (contact != null && contact.hasLocation) continue;
|
||||
final peers = connector.contacts
|
||||
.where(
|
||||
(c) =>
|
||||
c.hasLocation &&
|
||||
c.path.isNotEmpty &&
|
||||
_matchesHopPrefix(
|
||||
_lastHopChunk(c.path, c.pathHashWidth),
|
||||
hop,
|
||||
),
|
||||
)
|
||||
.toList();
|
||||
if (peers.isNotEmpty) {
|
||||
final lat =
|
||||
peers.map((c) => c.latitude!).reduce((a, b) => a + b) /
|
||||
peers.length;
|
||||
final lon =
|
||||
peers.map((c) => c.longitude!).reduce((a, b) => a + b) /
|
||||
peers.length;
|
||||
inferredPositions[hopKey] = LatLng(lat, lon);
|
||||
}
|
||||
}
|
||||
|
||||
setState(() {
|
||||
_isLoading = false;
|
||||
_hasData = true;
|
||||
_inferredHopPositions = inferredPositions;
|
||||
_targetContact = widget.targetContact;
|
||||
_primaryOutboundHops = _outboundHops(pathData);
|
||||
_traceData = PathTraceData(
|
||||
pathData: pathData,
|
||||
snrData: snrData,
|
||||
pathContacts: pathContacts,
|
||||
pathContacts: const {},
|
||||
);
|
||||
// Compute endpoint position for the target contact.
|
||||
LatLng? targetPos;
|
||||
bool targetGuessed = false;
|
||||
_targetContact = widget.targetContact;
|
||||
|
||||
if (_targetContact != null) {
|
||||
final tc = _targetContact!;
|
||||
if (tc.hasLocation) {
|
||||
targetPos = LatLng(tc.latitude!, tc.longitude!);
|
||||
} else if (pathData.length > 1 || _tracedPath.isNotEmpty) {
|
||||
// Infer from the last hop: average GPS contacts sharing that hop.
|
||||
// For a round-trip path (flipPathAround/reversePathAround), the target-side hop
|
||||
// sits in the middle of the symmetric sequence; .last is the local side.
|
||||
final tracedHops = PathHelper.splitPathBytes(
|
||||
_tracedPath,
|
||||
_tracedPathHashWidth,
|
||||
);
|
||||
final hopsForEndpoint = tracedHops.isNotEmpty
|
||||
? tracedHops
|
||||
: pathData;
|
||||
final lastHop = widget.reversePathAround
|
||||
? hopsForEndpoint.first
|
||||
: hopsForEndpoint.last;
|
||||
final lastHopKey = _hopKey(lastHop);
|
||||
|
||||
final peers = connector.allContacts
|
||||
.where(
|
||||
(c) =>
|
||||
c.hasLocation &&
|
||||
c.path.isNotEmpty &&
|
||||
_matchesHopPrefix(
|
||||
_lastHopChunk(c.path, c.pathHashWidth),
|
||||
lastHop,
|
||||
),
|
||||
)
|
||||
.toList();
|
||||
if (peers.isNotEmpty) {
|
||||
final lat =
|
||||
peers.map((c) => c.latitude!).reduce((a, b) => a + b) /
|
||||
peers.length;
|
||||
final lon =
|
||||
peers.map((c) => c.longitude!).reduce((a, b) => a + b) /
|
||||
peers.length;
|
||||
const offsetDeg = 0.003;
|
||||
final angle = (tc.publicKey[1] / 255.0) * 2 * pi;
|
||||
targetPos = LatLng(
|
||||
lat + offsetDeg * cos(angle),
|
||||
lon + offsetDeg * sin(angle),
|
||||
);
|
||||
targetGuessed = true;
|
||||
} else if (inferredPositions.containsKey(lastHopKey)) {
|
||||
final lat = inferredPositions[lastHopKey]!.latitude;
|
||||
final lon = inferredPositions[lastHopKey]!.longitude;
|
||||
const offsetDeg = 0.003;
|
||||
final angle = (tc.publicKey[1] / 255.0) * 2 * pi;
|
||||
targetPos = LatLng(
|
||||
lat + offsetDeg * cos(angle),
|
||||
lon + offsetDeg * sin(angle),
|
||||
);
|
||||
targetGuessed = true;
|
||||
} else {
|
||||
// As a last resort, just place it at the same position as the last hop.
|
||||
final contact = pathContacts[lastHopKey];
|
||||
if (contact != null && contact.hasLocation) {
|
||||
const offsetDeg = 0.003;
|
||||
final angle = (tc.publicKey[1] / 255.0) * 2 * pi;
|
||||
targetPos = LatLng(
|
||||
contact.latitude! + offsetDeg * cos(angle),
|
||||
contact.longitude! + offsetDeg * sin(angle),
|
||||
);
|
||||
targetGuessed = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
_targetContactPosition = targetPos;
|
||||
_targetContactIsGuessed = targetGuessed;
|
||||
|
||||
_points = <LatLng>[];
|
||||
final selfPoint = plausibleSelfPoint(connector);
|
||||
if (selfPoint != null) _points.add(selfPoint);
|
||||
String hopLast = '';
|
||||
String hopLastLast = '';
|
||||
for (final hop in _traceData!.pathData) {
|
||||
final hopKey = _hopKey(hop);
|
||||
if (hopKey == hopLastLast && widget.flipPathAround) {
|
||||
break; //skip duplicate hops in round-trip paths
|
||||
}
|
||||
final contact = _traceData!.pathContacts[hopKey];
|
||||
if (contact != null && contact.hasLocation) {
|
||||
_points.add(LatLng(contact.latitude!, contact.longitude!));
|
||||
} else {
|
||||
final inferred = inferredPositions[hopKey];
|
||||
if (inferred != null) _points.add(inferred);
|
||||
}
|
||||
hopLastLast = hopLast;
|
||||
hopLast = hopKey;
|
||||
}
|
||||
if (targetPos != null) {
|
||||
if (_targetContact != null && _targetContact!.type == advTypeChat) {
|
||||
_points.add(targetPos);
|
||||
}
|
||||
}
|
||||
_polylines = _points.length > 1
|
||||
? [
|
||||
Polyline(
|
||||
points: _points,
|
||||
strokeWidth: 4,
|
||||
color: kPrimaryPathColor,
|
||||
),
|
||||
]
|
||||
: <Polyline>[];
|
||||
|
||||
_initialCenter = _points.isNotEmpty
|
||||
? _points.first
|
||||
: const LatLng(0, 0);
|
||||
_initialZoom = _points.isNotEmpty ? 13.0 : 2.0;
|
||||
_bounds = _points.length > 1 ? LatLngBounds.fromPoints(_points) : null;
|
||||
_mapKey = ValueKey(
|
||||
'${context.l10n.pathTrace_you},${_traceData!.pathData.map(PathHelper.formatHopHex).join(',')}',
|
||||
'${context.l10n.pathTrace_you},${pathData.map(PathHelper.formatHopHex).join(',')}',
|
||||
);
|
||||
_pathDistanceMeters = getPathDistanceMeters(_points);
|
||||
_primaryOutboundHops = _outboundHops(pathData);
|
||||
_rebuildDisplayPaths(connector);
|
||||
});
|
||||
} catch (e) {
|
||||
@@ -823,54 +630,323 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen>
|
||||
return hops;
|
||||
}
|
||||
|
||||
Contact? _contactForHop(Uint8List hop, MeshCoreConnector connector) {
|
||||
final hopKey = _hopKey(hop);
|
||||
final traced = _traceData?.pathContacts[hopKey];
|
||||
if (traced != null) return traced;
|
||||
_hopContactCacheSignature ??= _refreshHopContactCache(connector);
|
||||
return _hopContactCache.putIfAbsent(hopKey, () {
|
||||
for (final c in connector.allContactsUnfiltered) {
|
||||
if (c.type != advTypeChat &&
|
||||
c.publicKey.length >= hop.length &&
|
||||
listEquals(c.publicKey.sublist(0, hop.length), hop)) {
|
||||
return c;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
});
|
||||
}
|
||||
|
||||
/// Drops cached hop -> contact lookups when the contact list changed;
|
||||
/// called once per build so per-hop lookups stay cheap.
|
||||
int _refreshHopContactCache(MeshCoreConnector connector) {
|
||||
final signature = contactListSignature(connector.allContactsUnfiltered);
|
||||
if (signature != _hopContactCacheSignature) {
|
||||
_hopContactCache.clear();
|
||||
_hopContactCacheSignature = signature;
|
||||
(LatLng?, bool) _resolveTargetContactPosition({
|
||||
required MeshCoreConnector connector,
|
||||
required List<Uint8List> pathData,
|
||||
required List<Uint8List> outboundHops,
|
||||
required List<Contact?> resolvedOutbound,
|
||||
required List<LatLng?> inferredOutbound,
|
||||
required Map<String, Contact> pathContacts,
|
||||
required Map<String, LatLng> inferredPositions,
|
||||
required LatLng? selfPoint,
|
||||
}) {
|
||||
final tc = _targetContact;
|
||||
if (tc == null) return (null, false);
|
||||
if (tc.hasLocation) {
|
||||
return (LatLng(tc.latitude!, tc.longitude!), false);
|
||||
}
|
||||
if (pathData.length <= 1 && _tracedPath.isEmpty) {
|
||||
return (null, false);
|
||||
}
|
||||
return signature;
|
||||
}
|
||||
|
||||
LatLng? _inferredPositionForHop(Uint8List hop, MeshCoreConnector connector) {
|
||||
final hopKey = _hopKey(hop);
|
||||
final cached = _inferredHopPositions[hopKey];
|
||||
if (cached != null) return cached;
|
||||
final peers = connector.contacts
|
||||
// Infer from the last hop: average GPS contacts sharing that hop.
|
||||
// For a round-trip path (flipPathAround/reversePathAround), the target-side hop
|
||||
// sits in the middle of the symmetric sequence; .last is the local side.
|
||||
final tracedHops = PathHelper.splitPathBytes(
|
||||
_tracedPath,
|
||||
_tracedPathHashWidth,
|
||||
);
|
||||
final hopsForEndpoint = tracedHops.isNotEmpty ? tracedHops : pathData;
|
||||
final lastHop = widget.reversePathAround
|
||||
? hopsForEndpoint.first
|
||||
: hopsForEndpoint.last;
|
||||
final lastHopKey = _hopKey(lastHop);
|
||||
|
||||
final rawPeers = connector.allContacts
|
||||
.where(
|
||||
(c) =>
|
||||
c.hasLocation &&
|
||||
c.path.isNotEmpty &&
|
||||
_matchesHopPrefix(_lastHopChunk(c.path, c.pathHashWidth), hop),
|
||||
_matchesHopPrefix(
|
||||
_lastHopChunk(c.path, c.pathHashWidth),
|
||||
lastHop,
|
||||
),
|
||||
)
|
||||
.toList();
|
||||
if (peers.isEmpty) return null;
|
||||
final lat =
|
||||
peers.map((c) => c.latitude!).reduce((a, b) => a + b) / peers.length;
|
||||
final lon =
|
||||
peers.map((c) => c.longitude!).reduce((a, b) => a + b) / peers.length;
|
||||
final pos = LatLng(lat, lon);
|
||||
_inferredHopPositions[hopKey] = pos;
|
||||
return pos;
|
||||
final (anchorPos, anchorGap) = _lastPlausibleAnchor(
|
||||
outboundHops: outboundHops,
|
||||
resolvedOutbound: resolvedOutbound,
|
||||
inferredOutbound: inferredOutbound,
|
||||
selfPoint: selfPoint,
|
||||
);
|
||||
final peers = _filterPlausiblePeers(
|
||||
rawPeers,
|
||||
prevPos: anchorPos,
|
||||
prevMaxMeters: anchorPos != null
|
||||
? anchorGap * PathHopResolver.maxSingleHopDistanceMeters
|
||||
: null,
|
||||
);
|
||||
const offsetDeg = 0.003;
|
||||
final angle = (tc.publicKey[1] / 255.0) * 2 * pi;
|
||||
if (peers.isNotEmpty) {
|
||||
final lat =
|
||||
peers.map((c) => c.latitude!).reduce((a, b) => a + b) / peers.length;
|
||||
final lon =
|
||||
peers.map((c) => c.longitude!).reduce((a, b) => a + b) / peers.length;
|
||||
return (
|
||||
LatLng(lat + offsetDeg * cos(angle), lon + offsetDeg * sin(angle)),
|
||||
true,
|
||||
);
|
||||
}
|
||||
if (inferredPositions.containsKey(lastHopKey)) {
|
||||
final inferred = inferredPositions[lastHopKey]!;
|
||||
return (
|
||||
LatLng(
|
||||
inferred.latitude + offsetDeg * cos(angle),
|
||||
inferred.longitude + offsetDeg * sin(angle),
|
||||
),
|
||||
true,
|
||||
);
|
||||
}
|
||||
// As a last resort, just place it at the same position as the last hop.
|
||||
final contact = pathContacts[lastHopKey];
|
||||
if (contact != null && contact.hasLocation) {
|
||||
return (
|
||||
LatLng(
|
||||
contact.latitude! + offsetDeg * cos(angle),
|
||||
contact.longitude! + offsetDeg * sin(angle),
|
||||
),
|
||||
true,
|
||||
);
|
||||
}
|
||||
return (null, false);
|
||||
}
|
||||
|
||||
void _syncPrimaryTraceState({
|
||||
required MeshCoreConnector connector,
|
||||
required PathTraceData traceData,
|
||||
required List<Contact?> resolvedOutbound,
|
||||
required List<LatLng?> inferredOutbound,
|
||||
required LatLng? selfPoint,
|
||||
}) {
|
||||
final pathContacts = <String, Contact>{};
|
||||
for (var i = 0; i < _primaryOutboundHops.length; i++) {
|
||||
final contact = resolvedOutbound[i];
|
||||
if (contact != null) {
|
||||
pathContacts[_hopKey(_primaryOutboundHops[i])] = contact;
|
||||
}
|
||||
}
|
||||
|
||||
final inferredPositions = <String, LatLng>{};
|
||||
for (var i = 0; i < _primaryOutboundHops.length; i++) {
|
||||
final inferred = inferredOutbound[i];
|
||||
if (inferred != null) {
|
||||
inferredPositions[_hopKey(_primaryOutboundHops[i])] = inferred;
|
||||
}
|
||||
}
|
||||
|
||||
_inferredHopPositions = inferredPositions;
|
||||
_traceData = PathTraceData(
|
||||
pathData: traceData.pathData,
|
||||
snrData: traceData.snrData,
|
||||
pathContacts: pathContacts,
|
||||
);
|
||||
|
||||
final (targetPos, targetGuessed) = _resolveTargetContactPosition(
|
||||
connector: connector,
|
||||
pathData: traceData.pathData,
|
||||
outboundHops: _primaryOutboundHops,
|
||||
resolvedOutbound: resolvedOutbound,
|
||||
inferredOutbound: inferredOutbound,
|
||||
pathContacts: pathContacts,
|
||||
inferredPositions: inferredPositions,
|
||||
selfPoint: selfPoint,
|
||||
);
|
||||
_targetContactPosition = targetPos;
|
||||
_targetContactIsGuessed = targetGuessed;
|
||||
|
||||
final points = <LatLng>[?selfPoint];
|
||||
String hopLast = '';
|
||||
String hopLastLast = '';
|
||||
for (final hop in traceData.pathData) {
|
||||
final hopKey = _hopKey(hop);
|
||||
if (hopKey == hopLastLast && widget.flipPathAround) {
|
||||
break; //skip duplicate hops in round-trip paths
|
||||
}
|
||||
final contact = pathContacts[hopKey];
|
||||
if (contact != null && contact.hasLocation) {
|
||||
points.add(LatLng(contact.latitude!, contact.longitude!));
|
||||
} else {
|
||||
final inferred = inferredPositions[hopKey];
|
||||
if (inferred != null) points.add(inferred);
|
||||
}
|
||||
hopLastLast = hopLast;
|
||||
hopLast = hopKey;
|
||||
}
|
||||
if (targetPos != null &&
|
||||
_targetContact != null &&
|
||||
_targetContact!.type == advTypeChat) {
|
||||
points.add(targetPos);
|
||||
}
|
||||
|
||||
_points = points;
|
||||
_polylines = points.length > 1
|
||||
? [Polyline(points: points, strokeWidth: 4, color: kPrimaryPathColor)]
|
||||
: <Polyline>[];
|
||||
_initialCenter = points.isNotEmpty ? points.first : const LatLng(0, 0);
|
||||
_initialZoom = points.isNotEmpty ? 13.0 : 2.0;
|
||||
_bounds = points.length > 1 ? LatLngBounds.fromPoints(points) : null;
|
||||
_pathDistanceMeters = getPathDistanceMeters(points);
|
||||
}
|
||||
|
||||
LatLng? _contactLatLng(Contact? contact) {
|
||||
if (contact == null ||
|
||||
!contact.hasLocation ||
|
||||
contact.latitude == null ||
|
||||
contact.longitude == null) {
|
||||
return null;
|
||||
}
|
||||
return LatLng(contact.latitude!, contact.longitude!);
|
||||
}
|
||||
|
||||
List<Contact> _filterPlausiblePeers(
|
||||
List<Contact> peers, {
|
||||
LatLng? prevPos,
|
||||
double? prevMaxMeters,
|
||||
LatLng? nextPos,
|
||||
double? nextMaxMeters,
|
||||
}) {
|
||||
if (peers.isEmpty) return const [];
|
||||
const distance = Distance();
|
||||
var filtered = peers;
|
||||
if (prevPos != null && prevMaxMeters != null) {
|
||||
filtered = filtered
|
||||
.where(
|
||||
(c) =>
|
||||
distance(prevPos, LatLng(c.latitude!, c.longitude!)) <=
|
||||
prevMaxMeters,
|
||||
)
|
||||
.toList();
|
||||
}
|
||||
if (nextPos != null && nextMaxMeters != null) {
|
||||
filtered = filtered
|
||||
.where(
|
||||
(c) =>
|
||||
distance(nextPos, LatLng(c.latitude!, c.longitude!)) <=
|
||||
nextMaxMeters,
|
||||
)
|
||||
.toList();
|
||||
}
|
||||
if (prevPos == null && nextPos == null && filtered.length > 1) {
|
||||
// Without a neighboring anchor, keep only the largest consistent peer
|
||||
// cluster so a single distant prefix match does not skew the average.
|
||||
const maxPeerSpreadMeters =
|
||||
2 * PathHopResolver.maxSingleHopDistanceMeters;
|
||||
var bestCluster = <Contact>[filtered.first];
|
||||
for (final seed in filtered) {
|
||||
final seedPos = LatLng(seed.latitude!, seed.longitude!);
|
||||
final cluster = filtered.where((other) {
|
||||
final otherPos = LatLng(other.latitude!, other.longitude!);
|
||||
return distance(seedPos, otherPos) <= maxPeerSpreadMeters;
|
||||
}).toList();
|
||||
if (cluster.length > bestCluster.length ||
|
||||
(cluster.length == bestCluster.length &&
|
||||
seed.lastSeen.isAfter(bestCluster.first.lastSeen))) {
|
||||
bestCluster = cluster;
|
||||
}
|
||||
}
|
||||
return bestCluster;
|
||||
}
|
||||
return filtered;
|
||||
}
|
||||
|
||||
List<LatLng?> _inferHopPositions({
|
||||
required List<Uint8List> hops,
|
||||
required List<Contact?> resolvedContacts,
|
||||
required LatLng? selfPoint,
|
||||
required List<Contact> peerContacts,
|
||||
}) {
|
||||
final inferred = List<LatLng?>.filled(hops.length, null);
|
||||
if (hops.isEmpty) return inferred;
|
||||
|
||||
final anchorPositions = <LatLng?>[
|
||||
for (var i = 0; i < hops.length; i++)
|
||||
i < resolvedContacts.length
|
||||
? _contactLatLng(resolvedContacts[i])
|
||||
: null,
|
||||
];
|
||||
|
||||
LatLng? prevPos = selfPoint;
|
||||
int prevStep = -1;
|
||||
|
||||
for (var i = 0; i < hops.length; i++) {
|
||||
final knownPos = anchorPositions[i];
|
||||
if (knownPos != null) {
|
||||
prevPos = knownPos;
|
||||
prevStep = i;
|
||||
continue;
|
||||
}
|
||||
|
||||
LatLng? nextPos;
|
||||
int? nextStep;
|
||||
for (var j = i + 1; j < hops.length; j++) {
|
||||
if (anchorPositions[j] != null) {
|
||||
nextPos = anchorPositions[j];
|
||||
nextStep = j;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
final hop = hops[i];
|
||||
final rawPeers = peerContacts
|
||||
.where(
|
||||
(c) =>
|
||||
c.hasLocation &&
|
||||
c.path.isNotEmpty &&
|
||||
_matchesHopPrefix(_lastHopChunk(c.path, c.pathHashWidth), hop),
|
||||
)
|
||||
.toList();
|
||||
final plausiblePeers = _filterPlausiblePeers(
|
||||
rawPeers,
|
||||
prevPos: prevPos,
|
||||
prevMaxMeters: prevPos != null
|
||||
? (i - prevStep) * PathHopResolver.maxSingleHopDistanceMeters
|
||||
: null,
|
||||
nextPos: nextPos,
|
||||
nextMaxMeters: nextPos != null && nextStep != null
|
||||
? (nextStep - i) * PathHopResolver.maxSingleHopDistanceMeters
|
||||
: null,
|
||||
);
|
||||
if (plausiblePeers.isNotEmpty) {
|
||||
final lat =
|
||||
plausiblePeers.map((c) => c.latitude!).reduce((a, b) => a + b) /
|
||||
plausiblePeers.length;
|
||||
final lon =
|
||||
plausiblePeers.map((c) => c.longitude!).reduce((a, b) => a + b) /
|
||||
plausiblePeers.length;
|
||||
final pos = LatLng(lat, lon);
|
||||
inferred[i] = pos;
|
||||
prevPos = pos;
|
||||
prevStep = i;
|
||||
}
|
||||
}
|
||||
|
||||
return inferred;
|
||||
}
|
||||
|
||||
(LatLng?, int) _lastPlausibleAnchor({
|
||||
required List<Uint8List> outboundHops,
|
||||
required List<Contact?> resolvedOutbound,
|
||||
required List<LatLng?> inferredOutbound,
|
||||
required LatLng? selfPoint,
|
||||
}) {
|
||||
for (var i = outboundHops.length - 1; i >= 0; i--) {
|
||||
final pos = _contactLatLng(resolvedOutbound[i]) ?? inferredOutbound[i];
|
||||
if (pos != null) {
|
||||
return (pos, outboundHops.length - i);
|
||||
}
|
||||
}
|
||||
return (selfPoint, max(1, outboundHops.length));
|
||||
}
|
||||
|
||||
String _pathKeyForHops(List<Uint8List> hops) {
|
||||
@@ -880,15 +956,48 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen>
|
||||
/// Rebuilds the renderable paths: the traced path as primary plus up to
|
||||
/// four distinct alternates from the target contact's path history.
|
||||
void _rebuildDisplayPaths(MeshCoreConnector connector) {
|
||||
_refreshHopContactCache(connector);
|
||||
final selfPoint = plausibleSelfPoint(connector);
|
||||
final paths = <DisplayPath>[];
|
||||
final resolvedMap =
|
||||
<String, ({List<Contact?> contacts, List<LatLng?> inferred})>{};
|
||||
|
||||
final resolvedPrimary = PathHopResolver.resolveHops(
|
||||
hops: _primaryOutboundHops,
|
||||
preferredContacts: widget.pathContacts,
|
||||
contacts: connector.allContactsUnfiltered,
|
||||
endpoint: selfPoint,
|
||||
contactFilter: (c) => c.type != advTypeChat,
|
||||
);
|
||||
final inferredPrimary = _inferHopPositions(
|
||||
hops: _primaryOutboundHops,
|
||||
resolvedContacts: resolvedPrimary,
|
||||
selfPoint: selfPoint,
|
||||
peerContacts: connector.contacts,
|
||||
);
|
||||
final traceData = _traceData;
|
||||
if (traceData != null) {
|
||||
_syncPrimaryTraceState(
|
||||
connector: connector,
|
||||
traceData: traceData,
|
||||
resolvedOutbound: resolvedPrimary,
|
||||
inferredOutbound: inferredPrimary,
|
||||
selfPoint: selfPoint,
|
||||
);
|
||||
}
|
||||
resolvedMap['primary'] = (
|
||||
contacts: resolvedPrimary,
|
||||
inferred: inferredPrimary,
|
||||
);
|
||||
|
||||
final primary = _buildDisplayPath(
|
||||
id: 'primary',
|
||||
label: context.l10n.pathMap_primary,
|
||||
color: kPrimaryPathColor,
|
||||
isPrimary: true,
|
||||
hops: _primaryOutboundHops,
|
||||
connector: connector,
|
||||
resolvedContacts: resolvedPrimary,
|
||||
inferredPositions: inferredPrimary,
|
||||
selfPoint: selfPoint,
|
||||
);
|
||||
if (primary != null) paths.add(primary);
|
||||
|
||||
@@ -905,14 +1014,30 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen>
|
||||
);
|
||||
if (!seen.add(_pathKeyForHops(recordHops))) continue;
|
||||
if (altIndex >= kAlternatePathColors.length) break;
|
||||
final altId = 'alt-${_pathKeyForHops(recordHops)}';
|
||||
final altResolved = PathHopResolver.resolveHops(
|
||||
hops: recordHops,
|
||||
contacts: connector.allContactsUnfiltered,
|
||||
endpoint: selfPoint,
|
||||
contactFilter: (c) => c.type != advTypeChat,
|
||||
);
|
||||
final altInferred = _inferHopPositions(
|
||||
hops: recordHops,
|
||||
resolvedContacts: altResolved,
|
||||
selfPoint: selfPoint,
|
||||
peerContacts: connector.contacts,
|
||||
);
|
||||
resolvedMap[altId] = (contacts: altResolved, inferred: altInferred);
|
||||
final alt = _buildDisplayPath(
|
||||
id: 'alt-${_pathKeyForHops(recordHops)}',
|
||||
id: altId,
|
||||
label: context.l10n.pathMap_alternate(altIndex + 1),
|
||||
color: kAlternatePathColors[altIndex],
|
||||
isPrimary: false,
|
||||
hops: recordHops,
|
||||
resolvedContacts: altResolved,
|
||||
inferredPositions: altInferred,
|
||||
selfPoint: selfPoint,
|
||||
record: record,
|
||||
connector: connector,
|
||||
);
|
||||
if (alt != null) {
|
||||
paths.add(alt);
|
||||
@@ -921,6 +1046,9 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen>
|
||||
}
|
||||
}
|
||||
|
||||
_resolvedDisplayPaths
|
||||
..clear()
|
||||
..addAll(resolvedMap);
|
||||
_displayPaths = paths;
|
||||
_hiddenPathIds.removeWhere((id) => !paths.any((p) => p.id == id));
|
||||
if (!paths.any((p) => p.id == _selectedPathId)) {
|
||||
@@ -936,12 +1064,13 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen>
|
||||
required Color color,
|
||||
required bool isPrimary,
|
||||
required List<Uint8List> hops,
|
||||
required MeshCoreConnector connector,
|
||||
required List<Contact?> resolvedContacts,
|
||||
required List<LatLng?> inferredPositions,
|
||||
required LatLng? selfPoint,
|
||||
PathRecord? record,
|
||||
}) {
|
||||
// Without a GPS fix for the local radio the path starts at the first
|
||||
// located hop instead of a bogus "You" at 0,0.
|
||||
final selfPoint = plausibleSelfPoint(connector);
|
||||
final points = <LatLng>[?selfPoint];
|
||||
final labels = <String>[if (selfPoint != null) context.l10n.pathTrace_you];
|
||||
final confirmed = <bool>[if (selfPoint != null) true];
|
||||
@@ -954,15 +1083,14 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen>
|
||||
for (var i = 0; i < hops.length; i++) {
|
||||
final hop = hops[i];
|
||||
final hex = PathHelper.formatHopHex(hop);
|
||||
final contact = _contactForHop(hop, connector);
|
||||
LatLng? pos;
|
||||
final contact = i < resolvedContacts.length ? resolvedContacts[i] : null;
|
||||
LatLng? pos = _contactLatLng(contact);
|
||||
var isGps = false;
|
||||
if (contact != null && contact.hasLocation) {
|
||||
pos = LatLng(contact.latitude!, contact.longitude!);
|
||||
if (pos != null) {
|
||||
isGps = true;
|
||||
gpsConfirmedHops++;
|
||||
} else {
|
||||
pos = _inferredPositionForHop(hop, connector);
|
||||
} else if (i < inferredPositions.length) {
|
||||
pos = inferredPositions[i];
|
||||
}
|
||||
if (pos == null) {
|
||||
unresolvedHops++;
|
||||
@@ -1074,7 +1202,6 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen>
|
||||
Widget build(BuildContext context) {
|
||||
return Consumer<MeshCoreConnector>(
|
||||
builder: (context, connector, _) {
|
||||
if (_hasData) _refreshHopContactCache(connector);
|
||||
final settings = context.watch<AppSettingsService>().settings;
|
||||
final isImperial = settings.unitSystem == UnitSystem.imperial;
|
||||
final tileCache = context.read<MapTileCacheService>();
|
||||
@@ -1364,32 +1491,58 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen>
|
||||
required bool showLabels,
|
||||
required Contact? target,
|
||||
}) {
|
||||
final connector = context.read<MeshCoreConnector>();
|
||||
final markers = <Marker>[];
|
||||
|
||||
// Hop prefix -> paths that use it, in display order.
|
||||
final hopPaths = <String, List<DisplayPath>>{};
|
||||
final hopsByKey = <String, Uint8List>{};
|
||||
// Hop prefix + resolved position -> paths that use it, in display order.
|
||||
final hopNodes =
|
||||
<
|
||||
String,
|
||||
({
|
||||
Uint8List hop,
|
||||
Contact? contact,
|
||||
LatLng point,
|
||||
bool hasGps,
|
||||
List<DisplayPath> paths,
|
||||
})
|
||||
>{};
|
||||
for (final path in _visiblePaths) {
|
||||
for (final hop in path.hopBytes) {
|
||||
final hopKey = _hopKey(hop);
|
||||
hopsByKey[hopKey] = hop;
|
||||
final list = hopPaths.putIfAbsent(hopKey, () => []);
|
||||
if (!list.contains(path)) list.add(path);
|
||||
final resolved = _resolvedDisplayPaths[path.id];
|
||||
for (var i = 0; i < path.hopBytes.length; i++) {
|
||||
final hop = path.hopBytes[i];
|
||||
final contact = resolved != null && i < resolved.contacts.length
|
||||
? resolved.contacts[i]
|
||||
: null;
|
||||
final inferred = resolved != null && i < resolved.inferred.length
|
||||
? resolved.inferred[i]
|
||||
: null;
|
||||
final gpsPos = _contactLatLng(contact);
|
||||
final hasGps = gpsPos != null;
|
||||
final point = gpsPos ?? inferred;
|
||||
if (point == null) continue;
|
||||
final hopKey =
|
||||
'${_hopKey(hop)}|${point.latitude.toStringAsFixed(5)},'
|
||||
'${point.longitude.toStringAsFixed(5)}';
|
||||
final existing = hopNodes[hopKey];
|
||||
if (existing == null) {
|
||||
hopNodes[hopKey] = (
|
||||
hop: hop,
|
||||
contact: contact,
|
||||
point: point,
|
||||
hasGps: hasGps,
|
||||
paths: [path],
|
||||
);
|
||||
} else if (!existing.paths.contains(path)) {
|
||||
existing.paths.add(path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (final entry in hopPaths.entries) {
|
||||
final hopKey = entry.key;
|
||||
final hop = hopsByKey[hopKey];
|
||||
if (hop == null) continue;
|
||||
final paths = entry.value;
|
||||
final contact = _contactForHop(hop, connector);
|
||||
final hasGps = contact != null && contact.hasLocation;
|
||||
final point = hasGps
|
||||
? LatLng(contact.latitude!, contact.longitude!)
|
||||
: _inferredPositionForHop(hop, connector);
|
||||
if (point == null) continue;
|
||||
for (final entry in hopNodes.values) {
|
||||
final hop = entry.hop;
|
||||
final paths = entry.paths;
|
||||
final contact = entry.contact;
|
||||
final hasGps = entry.hasGps;
|
||||
final point = entry.point;
|
||||
final label = PathHelper.formatHopHex(hop);
|
||||
final baseColor = hasGps ? MeshPalette.signal : MeshPalette.warn;
|
||||
final shared = paths.length > 1;
|
||||
@@ -1796,13 +1949,19 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen>
|
||||
if (index < path.hopBytes.length) {
|
||||
final hop = path.hopBytes[index];
|
||||
final hex = PathHelper.formatHopHex(hop);
|
||||
final contact = _contactForHop(hop, connector);
|
||||
final resolved = _resolvedDisplayPaths[path.id];
|
||||
final contact = resolved != null && index < resolved.contacts.length
|
||||
? resolved.contacts[index]
|
||||
: null;
|
||||
title = contact != null
|
||||
? '$hex: ${contact.name}'
|
||||
: '$hex: ${l10n.channelPath_unknownRepeater}';
|
||||
final hasGps = contact != null && contact.hasLocation;
|
||||
final inferred =
|
||||
!hasGps && _inferredPositionForHop(hop, connector) != null;
|
||||
!hasGps &&
|
||||
resolved != null &&
|
||||
index < resolved.inferred.length &&
|
||||
resolved.inferred[index] != null;
|
||||
final status = hasGps
|
||||
? l10n.pathTrace_legendGpsConfirmed
|
||||
: inferred
|
||||
|
||||
@@ -112,7 +112,8 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
|
||||
int? _spreadingFactor;
|
||||
int? _codingRate;
|
||||
|
||||
bool _autoClockSyncAfterLogin = false;
|
||||
RepeaterClockSyncOverride _clockSyncOverride =
|
||||
RepeaterClockSyncOverride.followDefault;
|
||||
|
||||
// Identity keys
|
||||
final TextEditingController _prvKeyController = TextEditingController();
|
||||
@@ -527,13 +528,12 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
|
||||
}
|
||||
});
|
||||
|
||||
final autoClockSync = await _storage
|
||||
.getRepeaterAutoClockSyncAfterLoginEnabled(
|
||||
widget.repeater.publicKeyHex,
|
||||
);
|
||||
final clockSync = await _storage.getRepeaterClockSyncOverride(
|
||||
widget.repeater.publicKeyHex,
|
||||
);
|
||||
if (!mounted) return;
|
||||
setState(() {
|
||||
_autoClockSyncAfterLogin = autoClockSync;
|
||||
_clockSyncOverride = clockSync;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -953,7 +953,7 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
|
||||
_buildSectionCard(
|
||||
l10n.repeater_features,
|
||||
RepeaterSettingSection.features,
|
||||
extra: [_buildClockSyncToggle()],
|
||||
extra: [_buildClockSyncChoice()],
|
||||
),
|
||||
_buildSectionCard(
|
||||
l10n.repeater_networkHealth,
|
||||
@@ -1366,22 +1366,75 @@ class _RepeaterSettingsScreenState extends State<RepeaterSettingsScreen> {
|
||||
];
|
||||
}
|
||||
|
||||
Widget _buildClockSyncToggle() {
|
||||
Widget _buildClockSyncChoice() {
|
||||
final l10n = context.l10n;
|
||||
return SwitchListTile(
|
||||
title: Text(l10n.repeater_clockSyncAfterLogin),
|
||||
subtitle: Text(l10n.repeater_clockSyncAfterLoginSubtitle),
|
||||
value: _autoClockSyncAfterLogin,
|
||||
onChanged: (value) async {
|
||||
setState(() {
|
||||
_autoClockSyncAfterLogin = value;
|
||||
});
|
||||
await _storage.setRepeaterAutoClockSyncAfterLoginEnabled(
|
||||
widget.repeater.publicKeyHex,
|
||||
value,
|
||||
);
|
||||
},
|
||||
contentPadding: EdgeInsets.zero,
|
||||
final scheme = Theme.of(context).colorScheme;
|
||||
final textTheme = Theme.of(context).textTheme;
|
||||
ButtonSegment<RepeaterClockSyncOverride> segment(
|
||||
RepeaterClockSyncOverride value,
|
||||
String label,
|
||||
) => ButtonSegment(value: value, label: MeshSegmentLabel(label));
|
||||
return Padding(
|
||||
padding: const EdgeInsets.only(top: 8),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
Icon(Icons.schedule, size: 24, color: scheme.onSurfaceVariant),
|
||||
const SizedBox(width: 16),
|
||||
Expanded(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
l10n.repeater_clockSyncAfterLogin,
|
||||
style: textTheme.bodyLarge?.copyWith(
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 2),
|
||||
Text(
|
||||
l10n.repeater_clockSyncAfterLoginSubtitle,
|
||||
style: textTheme.bodyMedium?.copyWith(
|
||||
color: scheme.onSurfaceVariant,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
SegmentedButton<RepeaterClockSyncOverride>(
|
||||
showSelectedIcon: false,
|
||||
style: const ButtonStyle(
|
||||
minimumSize: WidgetStatePropertyAll(Size.fromHeight(40)),
|
||||
visualDensity: VisualDensity.compact,
|
||||
),
|
||||
segments: [
|
||||
segment(
|
||||
RepeaterClockSyncOverride.followDefault,
|
||||
l10n.repeater_clockSyncDefault,
|
||||
),
|
||||
segment(RepeaterClockSyncOverride.on, l10n.repeater_clockSyncOn),
|
||||
segment(
|
||||
RepeaterClockSyncOverride.off,
|
||||
l10n.repeater_clockSyncOff,
|
||||
),
|
||||
],
|
||||
selected: {_clockSyncOverride},
|
||||
onSelectionChanged: (selected) async {
|
||||
final value = selected.first;
|
||||
setState(() => _clockSyncOverride = value);
|
||||
await _storage.setRepeaterClockSyncOverride(
|
||||
widget.repeater.publicKeyHex,
|
||||
value,
|
||||
);
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import '../widgets/device_tile.dart';
|
||||
import '../widgets/empty_state.dart';
|
||||
import '../widgets/get_node_banner.dart';
|
||||
import '../widgets/mesh_ui.dart';
|
||||
import '../widgets/settings_reveal.dart';
|
||||
import '../helpers/snack_bar_builder.dart';
|
||||
import '../review_mode/review_mode_entry.dart';
|
||||
import '../utils/main_navigation.dart';
|
||||
@@ -151,17 +152,13 @@ class _ScannerScreenState extends State<ScannerScreen> {
|
||||
builder: (context, connector, child) {
|
||||
return Column(
|
||||
children: [
|
||||
// Bluetooth off warning — slides in/out with AnimatedSize
|
||||
AnimatedSize(
|
||||
duration: const Duration(milliseconds: 250),
|
||||
curve: Curves.easeInOut,
|
||||
child: _bluetoothState == BluetoothAdapterState.off
|
||||
? _BluetoothOffBanner(
|
||||
onEnable: PlatformInfo.isAndroid
|
||||
? () => FlutterBluePlus.turnOn()
|
||||
: null,
|
||||
)
|
||||
: const SizedBox.shrink(),
|
||||
RevealOnEnable(
|
||||
visible: _bluetoothState == BluetoothAdapterState.off,
|
||||
child: _BluetoothOffBanner(
|
||||
onEnable: PlatformInfo.isAndroid
|
||||
? () => FlutterBluePlus.turnOn()
|
||||
: null,
|
||||
),
|
||||
),
|
||||
|
||||
// Connection status header
|
||||
|
||||
@@ -14,6 +14,7 @@ import '../helpers/snack_bar_builder.dart';
|
||||
import '../helpers/utf8_length_limiter.dart';
|
||||
import '../widgets/mesh_nav_tile.dart';
|
||||
import '../widgets/mesh_ui.dart';
|
||||
import '../widgets/settings_reveal.dart';
|
||||
import '../widgets/radio_settings_dialog.dart';
|
||||
import 'app_settings_screen.dart';
|
||||
import 'app_debug_log_screen.dart';
|
||||
@@ -301,62 +302,58 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||
),
|
||||
),
|
||||
|
||||
// Expandable detail rows
|
||||
AnimatedSize(
|
||||
duration: const Duration(milliseconds: 200),
|
||||
alignment: Alignment.topCenter,
|
||||
child: _deviceInfoExpanded
|
||||
? Padding(
|
||||
padding: const EdgeInsets.fromLTRB(16, 0, 16, 14),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
const Divider(height: 1),
|
||||
const SizedBox(height: 10),
|
||||
_infoRow(
|
||||
context,
|
||||
label: l10n.settings_infoId,
|
||||
value: connector.deviceIdLabel,
|
||||
),
|
||||
_buildBatteryInfoRow(context, connector),
|
||||
if (connector.manufacturerName != null)
|
||||
_infoRow(
|
||||
context,
|
||||
label: l10n.settings_infoHardware,
|
||||
value: connector.manufacturerName!,
|
||||
),
|
||||
if (connector.firmwareVersionString != null)
|
||||
_infoRow(
|
||||
context,
|
||||
label: l10n.settings_infoFirmware,
|
||||
value: connector.firmwareVersionString!,
|
||||
),
|
||||
if (connector.selfName != null)
|
||||
_infoRow(
|
||||
context,
|
||||
label: l10n.settings_nodeName,
|
||||
value: connector.selfName!,
|
||||
),
|
||||
if (connector.selfPublicKey != null)
|
||||
_publicKeyRow(
|
||||
context,
|
||||
label: l10n.settings_infoPublicKey,
|
||||
publicKeyHex: pubKeyToHex(connector.selfPublicKey!),
|
||||
),
|
||||
_infoRow(
|
||||
context,
|
||||
label: l10n.settings_infoContactsCount,
|
||||
value: '${connector.contacts.length}',
|
||||
),
|
||||
_infoRow(
|
||||
context,
|
||||
label: l10n.settings_infoChannelCount,
|
||||
value: '${connector.channels.length}',
|
||||
),
|
||||
],
|
||||
RevealOnEnable(
|
||||
visible: _deviceInfoExpanded,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.fromLTRB(16, 0, 16, 14),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
const Divider(height: 1),
|
||||
const SizedBox(height: 10),
|
||||
_infoRow(
|
||||
context,
|
||||
label: l10n.settings_infoId,
|
||||
value: connector.deviceIdLabel,
|
||||
),
|
||||
_buildBatteryInfoRow(context, connector),
|
||||
if (connector.manufacturerName != null)
|
||||
_infoRow(
|
||||
context,
|
||||
label: l10n.settings_infoHardware,
|
||||
value: connector.manufacturerName!,
|
||||
),
|
||||
)
|
||||
: const SizedBox.shrink(),
|
||||
if (connector.firmwareVersionString != null)
|
||||
_infoRow(
|
||||
context,
|
||||
label: l10n.settings_infoFirmware,
|
||||
value: connector.firmwareVersionString!,
|
||||
),
|
||||
if (connector.selfName != null)
|
||||
_infoRow(
|
||||
context,
|
||||
label: l10n.settings_nodeName,
|
||||
value: connector.selfName!,
|
||||
),
|
||||
if (connector.selfPublicKey != null)
|
||||
_publicKeyRow(
|
||||
context,
|
||||
label: l10n.settings_infoPublicKey,
|
||||
publicKeyHex: pubKeyToHex(connector.selfPublicKey!),
|
||||
),
|
||||
_infoRow(
|
||||
context,
|
||||
label: l10n.settings_infoContactsCount,
|
||||
value: '${connector.contacts.length}',
|
||||
),
|
||||
_infoRow(
|
||||
context,
|
||||
label: l10n.settings_infoChannelCount,
|
||||
value: '${connector.channels.length}',
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
@@ -5,6 +5,7 @@ import 'package:flutter/foundation.dart';
|
||||
|
||||
import '../models/app_settings.dart';
|
||||
import '../models/custom_theme.dart';
|
||||
import '../models/send_attempt_plan.dart';
|
||||
import '../models/holiday_schedule.dart';
|
||||
import '../models/image_codec_support.dart';
|
||||
import '../models/translation_support.dart';
|
||||
@@ -234,8 +235,30 @@ class AppSettingsService extends ChangeNotifier {
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> setMaxMessageRetries(int value) async {
|
||||
await updateSettings(_settings.copyWith(maxMessageRetries: value));
|
||||
Future<void> setDirectRetries(int value) async {
|
||||
await updateSettings(
|
||||
_settings.copyWith(directRetries: SendAttemptPlan.clampDirect(value)),
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> setFloodRetries(int value) async {
|
||||
await updateSettings(
|
||||
_settings.copyWith(floodRetries: SendAttemptPlan.clampFlood(value)),
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> setLoginAttempts(int value) async {
|
||||
await updateSettings(
|
||||
_settings.copyWith(loginAttempts: SendAttemptPlan.clampLogin(value)),
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> setClockSyncAfterLogin(bool value) async {
|
||||
await updateSettings(_settings.copyWith(clockSyncAfterLogin: value));
|
||||
}
|
||||
|
||||
Future<void> setLoginPasswordAutofocus(bool value) async {
|
||||
await updateSettings(_settings.copyWith(loginPasswordAutofocus: value));
|
||||
}
|
||||
|
||||
Future<void> setChannelMinHopsEnabled(bool value) async {
|
||||
@@ -720,13 +743,31 @@ class AppSettingsService extends ChangeNotifier {
|
||||
Future<void> resetRoutingSettingsToDefault() async {
|
||||
await updateSettings(
|
||||
_settings.copyWith(
|
||||
clearPathOnMaxRetry: false,
|
||||
autoRouteRotationEnabled: true,
|
||||
maxRouteWeight: AppSettings.defaultMaxRouteWeight,
|
||||
initialRouteWeight: AppSettings.defaultInitialRouteWeight,
|
||||
routeWeightSuccessIncrement:
|
||||
AppSettings.defaultRouteWeightSuccessIncrement,
|
||||
routeWeightFailureDecrement:
|
||||
AppSettings.defaultRouteWeightFailureDecrement,
|
||||
maxMessageRetries: AppSettings.defaultMaxMessageRetries,
|
||||
directRetries: AppSettings.defaultDirectRetries,
|
||||
floodRetries: AppSettings.defaultFloodRetries,
|
||||
channelMinHopsEnabled: false,
|
||||
channelMinHops: 2,
|
||||
channelMinHopsRetries: 1,
|
||||
channelMinHopsCountRepeaters: false,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> resetRepeaterRoomSettingsToDefault() async {
|
||||
await updateSettings(
|
||||
_settings.copyWith(
|
||||
clockSyncAfterLogin: false,
|
||||
loginPasswordAutofocus: false,
|
||||
autoFetchRepeaterSettings: false,
|
||||
loginAttempts: AppSettings.defaultLoginAttempts,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ import '../connector/meshcore_protocol.dart';
|
||||
import '../models/contact.dart';
|
||||
import '../models/message.dart';
|
||||
import '../models/path_selection.dart';
|
||||
import '../models/send_attempt_plan.dart';
|
||||
import 'app_settings_service.dart';
|
||||
import 'app_debug_log_service.dart';
|
||||
|
||||
@@ -60,7 +61,7 @@ class RetryServiceConfig {
|
||||
final PathSelection? Function(
|
||||
String contactKey,
|
||||
int attemptIndex,
|
||||
int maxRetries,
|
||||
int directRetries,
|
||||
List<PathSelection> recentSelections,
|
||||
)?
|
||||
selectRetryPath;
|
||||
@@ -90,8 +91,21 @@ class MessageRetryService extends ChangeNotifier {
|
||||
/// shared globally; cap at 6 to leave two slots of headroom.
|
||||
static const int _maxGlobalInFlight = 6;
|
||||
|
||||
int _maxRetries = 5;
|
||||
int get maxRetries => _maxRetries;
|
||||
int? _directOverride;
|
||||
int? _floodOverride;
|
||||
bool? _rotateOverride;
|
||||
|
||||
/// Pins both limits and turns rotation off. Tests use this to send a fixed
|
||||
/// number of attempts on the contact's current path.
|
||||
void setMaxRetries(int value) {
|
||||
final attempts = value < 1 ? 1 : value;
|
||||
_directOverride = attempts;
|
||||
_floodOverride = attempts.clamp(
|
||||
SendAttemptPlan.minFloodRetries,
|
||||
SendAttemptPlan.maxFloodRetries,
|
||||
);
|
||||
_rotateOverride = false;
|
||||
}
|
||||
|
||||
final Map<String, Timer> _timeoutTimers = {};
|
||||
final Map<String, Message> _pendingMessages = {};
|
||||
@@ -112,6 +126,7 @@ class MessageRetryService extends ChangeNotifier {
|
||||
final Set<String> _activeMessages = {};
|
||||
final Set<String> _resolvedMessages = {};
|
||||
final Map<String, String> _expectedHashToMessageId = {};
|
||||
final Map<String, int> _attemptLimits = {};
|
||||
|
||||
RetryServiceConfig? _config;
|
||||
|
||||
@@ -125,8 +140,26 @@ class MessageRetryService extends ChangeNotifier {
|
||||
_config = config;
|
||||
}
|
||||
|
||||
void setMaxRetries(int value) {
|
||||
_maxRetries = value.clamp(2, 10);
|
||||
SendAttemptPlan _planFor(Contact contact) {
|
||||
final settings = _config?.appSettingsService?.settings;
|
||||
final direct =
|
||||
_directOverride ??
|
||||
settings?.directRetries ??
|
||||
SendAttemptPlan.defaultDirectRetries;
|
||||
final flood =
|
||||
_floodOverride ??
|
||||
settings?.floodRetries ??
|
||||
SendAttemptPlan.defaultFloodRetries;
|
||||
final rotateFlag =
|
||||
_rotateOverride ?? settings?.autoRouteRotationEnabled ?? true;
|
||||
return SendAttemptPlan(
|
||||
directRetries: direct,
|
||||
floodRetries: flood,
|
||||
rotateRoutes:
|
||||
rotateFlag &&
|
||||
contact.pathOverride == null &&
|
||||
_config?.selectRetryPath != null,
|
||||
);
|
||||
}
|
||||
|
||||
/// Compute expected ACK hash using same algorithm as firmware:
|
||||
@@ -179,6 +212,9 @@ class MessageRetryService extends ChangeNotifier {
|
||||
pathBytes ?? Uint8List.fromList(resolved.pathBytes);
|
||||
final messagePathLength =
|
||||
pathLength ?? (resolved.useFlood ? -1 : resolved.hopCount);
|
||||
_attemptLimits[messageId] = _planFor(
|
||||
contact,
|
||||
).attemptLimit(floodPath: messagePathLength < 0);
|
||||
final message = Message(
|
||||
senderKey: contact.publicKey,
|
||||
text: text,
|
||||
@@ -293,23 +329,27 @@ class MessageRetryService extends ChangeNotifier {
|
||||
PathSelection? _selectPathForAttempt(Message message, Contact contact) {
|
||||
final config = _config;
|
||||
if (config == null) return null;
|
||||
final autoRotationEnabled =
|
||||
config.appSettingsService?.settings.autoRouteRotationEnabled == true;
|
||||
if (!autoRotationEnabled ||
|
||||
contact.pathOverride != null ||
|
||||
config.selectRetryPath == null) {
|
||||
final plan = _planFor(contact);
|
||||
if (!plan.rotateRoutes || config.selectRetryPath == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
final floodFrom = plan.floodFromAttempt;
|
||||
final recentSelections = List<PathSelection>.from(
|
||||
_attemptPathHistory[message.messageId] ?? const <PathSelection>[],
|
||||
);
|
||||
return config.selectRetryPath!(
|
||||
final selection = config.selectRetryPath!(
|
||||
contact.publicKeyHex,
|
||||
message.retryCount,
|
||||
maxRetries,
|
||||
floodFrom ?? (1 << 30),
|
||||
recentSelections,
|
||||
);
|
||||
if (floodFrom != null && message.retryCount >= floodFrom) {
|
||||
return selection != null && selection.useFlood
|
||||
? selection
|
||||
: const PathSelection(pathBytes: [], hopCount: -1, useFlood: true);
|
||||
}
|
||||
return selection;
|
||||
}
|
||||
|
||||
void _recordAttemptPathHistory(String messageId, PathSelection selection) {
|
||||
@@ -630,6 +670,7 @@ class MessageRetryService extends ChangeNotifier {
|
||||
_pendingMessages.remove(messageId);
|
||||
_pendingContacts.remove(messageId);
|
||||
_attemptPathHistory.remove(messageId);
|
||||
_attemptLimits.remove(messageId);
|
||||
_deferredRouteFailures.remove(messageId);
|
||||
_timeoutTimers.remove(messageId);
|
||||
_resolvedMessages.remove(messageId);
|
||||
@@ -661,9 +702,16 @@ class MessageRetryService extends ChangeNotifier {
|
||||
tag: 'AckHash',
|
||||
);
|
||||
|
||||
if (message.retryCount < maxRetries - 1 &&
|
||||
final limit =
|
||||
_attemptLimits[messageId] ??
|
||||
_planFor(
|
||||
contact,
|
||||
).attemptLimit(floodPath: resolvePathSelection(contact).useFlood);
|
||||
if (message.retryCount < limit - 1 &&
|
||||
_textFitsAttempt(message, contact, message.retryCount + 1)) {
|
||||
final backoffMs = 1000 * (1 << message.retryCount);
|
||||
// Cap the shift so a high retry limit does not wait for minutes.
|
||||
final shift = message.retryCount.clamp(0, 5);
|
||||
final backoffMs = 1000 * (1 << shift);
|
||||
|
||||
if (selection != null) {
|
||||
_deferredRouteFailures.putIfAbsent(messageId, () => []).add((
|
||||
|
||||
@@ -259,18 +259,19 @@ class PathHistoryService extends ChangeNotifier {
|
||||
|
||||
/// Route for one send attempt of a message to [contactPubKeyHex].
|
||||
///
|
||||
/// The last attempt always floods. Otherwise a known route is drawn by
|
||||
/// Thompson sampling over faded delivery stats, weighted by how well it
|
||||
/// fits [context]; routes used for this message's recent attempts score
|
||||
/// lower so retries usually try something different.
|
||||
/// Attempts before [directRetries] draw a known route by Thompson sampling
|
||||
/// over faded delivery stats, weighted by how well it fits [context];
|
||||
/// routes used for this message's recent attempts score lower so retries
|
||||
/// usually try something different. From [directRetries] on, the attempt
|
||||
/// floods. [directRetries] of 0 floods immediately.
|
||||
PathSelection selectPathForAttempt(
|
||||
String contactPubKeyHex, {
|
||||
required int attemptIndex,
|
||||
required int maxRetries,
|
||||
required int directRetries,
|
||||
List<PathSelection> recentSelections = const [],
|
||||
RouteContext context = RouteContext.unknown,
|
||||
}) {
|
||||
if (maxRetries <= 0 || attemptIndex >= maxRetries - 1) {
|
||||
if (directRetries <= 0 || attemptIndex >= directRetries) {
|
||||
return const PathSelection(pathBytes: [], hopCount: -1, useFlood: true);
|
||||
}
|
||||
|
||||
|
||||
@@ -6,6 +6,13 @@ import '../storage/prefs_manager.dart';
|
||||
import '../storage/history_store.dart';
|
||||
import '../utils/app_logger.dart';
|
||||
|
||||
/// Per-repeater clock sync, on top of the app-wide default.
|
||||
///
|
||||
/// A missing entry follows the Repeaters and Rooms setting. `true` and
|
||||
/// `false` in the saved map are explicit On and Off from before that choice
|
||||
/// existed, and they keep winning over the global default.
|
||||
enum RepeaterClockSyncOverride { followDefault, on, off }
|
||||
|
||||
class StorageService {
|
||||
static const String _pathHistoryPrefix = 'path_history_';
|
||||
static const String _pendingMessagesKey = 'pending_messages';
|
||||
@@ -29,36 +36,101 @@ class StorageService {
|
||||
? '$_pathHistoryPrefix$contactPubKeyHex'
|
||||
: '$_pathHistoryPrefix${_publicKeyHex}_$contactPubKeyHex';
|
||||
|
||||
Future<Map<String, bool>> _loadRepeaterAutoClockSyncAfterLogin() async {
|
||||
Future<Map<String, RepeaterClockSyncOverride>>
|
||||
_loadRepeaterClockSyncOverrides() async {
|
||||
final prefs = PrefsManager.instance;
|
||||
final jsonStr = prefs.getString(_repeaterAutoClockSyncAfterLoginKey);
|
||||
|
||||
if (jsonStr == null) return {};
|
||||
|
||||
try {
|
||||
final json = jsonDecode(jsonStr) as Map<String, dynamic>;
|
||||
return json.map((key, value) => MapEntry(key, value == true));
|
||||
final overrides = <String, RepeaterClockSyncOverride>{};
|
||||
for (final entry in json.entries) {
|
||||
final override = switch (entry.value) {
|
||||
true || 'on' => RepeaterClockSyncOverride.on,
|
||||
false || 'off' => RepeaterClockSyncOverride.off,
|
||||
_ => RepeaterClockSyncOverride.followDefault,
|
||||
};
|
||||
if (override != RepeaterClockSyncOverride.followDefault) {
|
||||
overrides[entry.key] = override;
|
||||
}
|
||||
}
|
||||
return overrides;
|
||||
} catch (e) {
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _saveRepeaterClockSyncOverrides(
|
||||
Map<String, RepeaterClockSyncOverride> overrides,
|
||||
) async {
|
||||
final prefs = PrefsManager.instance;
|
||||
final stored = <String, bool>{
|
||||
for (final entry in overrides.entries)
|
||||
if (entry.value == RepeaterClockSyncOverride.on)
|
||||
entry.key: true
|
||||
else if (entry.value == RepeaterClockSyncOverride.off)
|
||||
entry.key: false,
|
||||
};
|
||||
if (stored.isEmpty) {
|
||||
await prefs.remove(_repeaterAutoClockSyncAfterLoginKey);
|
||||
return;
|
||||
}
|
||||
await prefs.setString(
|
||||
_repeaterAutoClockSyncAfterLoginKey,
|
||||
jsonEncode(stored),
|
||||
);
|
||||
}
|
||||
|
||||
Future<RepeaterClockSyncOverride> getRepeaterClockSyncOverride(
|
||||
String repeaterPubKeyHex,
|
||||
) async {
|
||||
final overrides = await _loadRepeaterClockSyncOverrides();
|
||||
return overrides[repeaterPubKeyHex] ??
|
||||
RepeaterClockSyncOverride.followDefault;
|
||||
}
|
||||
|
||||
/// Whether this repeater should receive `clock sync` after login.
|
||||
///
|
||||
/// An explicit per-repeater choice wins. Otherwise [globalDefault] applies.
|
||||
Future<bool> repeaterClockSyncAfterLogin(
|
||||
String repeaterPubKeyHex, {
|
||||
required bool globalDefault,
|
||||
}) async {
|
||||
return switch (await getRepeaterClockSyncOverride(repeaterPubKeyHex)) {
|
||||
RepeaterClockSyncOverride.followDefault => globalDefault,
|
||||
RepeaterClockSyncOverride.on => true,
|
||||
RepeaterClockSyncOverride.off => false,
|
||||
};
|
||||
}
|
||||
|
||||
Future<void> setRepeaterClockSyncOverride(
|
||||
String repeaterPubKeyHex,
|
||||
RepeaterClockSyncOverride override,
|
||||
) async {
|
||||
final overrides = await _loadRepeaterClockSyncOverrides();
|
||||
if (override == RepeaterClockSyncOverride.followDefault) {
|
||||
overrides.remove(repeaterPubKeyHex);
|
||||
} else {
|
||||
overrides[repeaterPubKeyHex] = override;
|
||||
}
|
||||
await _saveRepeaterClockSyncOverrides(overrides);
|
||||
}
|
||||
|
||||
Future<bool> getRepeaterAutoClockSyncAfterLoginEnabled(
|
||||
String repeaterPubKeyHex,
|
||||
) async {
|
||||
final settings = await _loadRepeaterAutoClockSyncAfterLogin();
|
||||
return settings[repeaterPubKeyHex] ?? false;
|
||||
return repeaterClockSyncAfterLogin(repeaterPubKeyHex, globalDefault: false);
|
||||
}
|
||||
|
||||
Future<void> setRepeaterAutoClockSyncAfterLoginEnabled(
|
||||
String repeaterPubKeyHex,
|
||||
bool enabled,
|
||||
) async {
|
||||
final prefs = PrefsManager.instance;
|
||||
final settings = await _loadRepeaterAutoClockSyncAfterLogin();
|
||||
settings[repeaterPubKeyHex] = enabled;
|
||||
final jsonStr = jsonEncode(settings);
|
||||
await prefs.setString(_repeaterAutoClockSyncAfterLoginKey, jsonStr);
|
||||
await setRepeaterClockSyncOverride(
|
||||
repeaterPubKeyHex,
|
||||
enabled ? RepeaterClockSyncOverride.on : RepeaterClockSyncOverride.off,
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> savePathHistory(
|
||||
|
||||
@@ -403,6 +403,25 @@ class MeshTheme {
|
||||
fontFamilyFallback: MeshFonts.sansFallback,
|
||||
);
|
||||
|
||||
// SettingsReveal uses surfaceContainerHighest, so inactive slider tracks and
|
||||
// drag bubbles need a distinct step toward onSurfaceVariant / inverseSurface
|
||||
// to stay legible inside both MeshCard and SettingsReveal.
|
||||
final sliderInactiveTrack = Color.lerp(
|
||||
scheme.surfaceContainerHighest,
|
||||
scheme.onSurfaceVariant,
|
||||
brightness == Brightness.dark ? 0.42 : 0.54,
|
||||
)!;
|
||||
final sliderInactiveTick = Color.lerp(
|
||||
sliderInactiveTrack,
|
||||
scheme.onSurface,
|
||||
0.7,
|
||||
)!;
|
||||
final sliderActiveTick = Color.lerp(
|
||||
scheme.primary,
|
||||
scheme.onPrimary,
|
||||
0.65,
|
||||
)!;
|
||||
|
||||
return ThemeData(
|
||||
useMaterial3: true,
|
||||
extensions: [bubble, icons, map],
|
||||
@@ -649,14 +668,19 @@ class MeshTheme {
|
||||
),
|
||||
sliderTheme: SliderThemeData(
|
||||
activeTrackColor: scheme.primary,
|
||||
inactiveTrackColor: scheme.surfaceContainerHighest,
|
||||
inactiveTrackColor: sliderInactiveTrack,
|
||||
disabledActiveTrackColor: scheme.onSurface.withValues(alpha: 0.38),
|
||||
disabledInactiveTrackColor: sliderInactiveTrack.withValues(alpha: 0.38),
|
||||
activeTickMarkColor: sliderActiveTick,
|
||||
inactiveTickMarkColor: sliderInactiveTick,
|
||||
thumbColor: scheme.primary,
|
||||
disabledThumbColor: scheme.onSurface.withValues(alpha: 0.38),
|
||||
overlayColor: scheme.primary.withValues(alpha: 0.12),
|
||||
valueIndicatorColor: scheme.surfaceContainerHighest,
|
||||
valueIndicatorColor: scheme.inverseSurface,
|
||||
valueIndicatorTextStyle: TextStyle(
|
||||
fontFamily: MeshFonts.mono,
|
||||
fontFamilyFallback: MeshFonts.monoFallback,
|
||||
color: scheme.onSurface,
|
||||
color: scheme.onInverseSurface,
|
||||
fontSize: 12,
|
||||
),
|
||||
trackHeight: 3,
|
||||
|
||||
@@ -78,6 +78,28 @@ ScannedContact? _parseContactCard(Uri uri) {
|
||||
return ScannedContact(publicKey: publicKey, name: name, type: type);
|
||||
}
|
||||
|
||||
/// Normalizes a 64-character hex public key, trimming surrounding whitespace
|
||||
/// and stripping an optional `0x` prefix. Returns lowercase hex or null when
|
||||
/// [input] is not a valid 32-byte hex key.
|
||||
String? normalizeContactPublicKeyHex(String input) {
|
||||
var trimmed = input.trim();
|
||||
if (trimmed.length >= 2 &&
|
||||
(trimmed.startsWith('0x') || trimmed.startsWith('0X'))) {
|
||||
trimmed = trimmed.substring(2);
|
||||
}
|
||||
if (trimmed.length != _contactCardKeyBytes * 2) return null;
|
||||
if (_tryHexDecode(trimmed) == null) return null;
|
||||
return trimmed.toLowerCase();
|
||||
}
|
||||
|
||||
/// Decodes a 64-character hex public key (allowing surrounding whitespace,
|
||||
/// optional `0x` prefix, and mixed case) into 32 bytes, or returns null.
|
||||
Uint8List? decodeContactPublicKeyHex(String input) {
|
||||
final normalized = normalizeContactPublicKeyHex(input);
|
||||
if (normalized == null) return null;
|
||||
return _tryHexDecode(normalized);
|
||||
}
|
||||
|
||||
/// Local hex decoder: keeps this util pure-Dart. `hex2Uint8List` in
|
||||
/// `connector/meshcore_protocol.dart` throws on invalid input and that file
|
||||
/// pulls in `package:flutter/widgets.dart` and `package:crypto`, which this
|
||||
|
||||
@@ -32,7 +32,12 @@ class PlatformInfo {
|
||||
static bool get isMobile => isAndroid || isIOS;
|
||||
|
||||
/// Whether the app is running on a desktop platform (macOS, Windows, or Linux).
|
||||
static bool get isDesktop => isMacOS || isWindows || isLinux;
|
||||
static bool get isDesktop =>
|
||||
debugIsDesktopOverride ?? (isMacOS || isWindows || isLinux);
|
||||
|
||||
/// Lets widget tests exercise the mobile layout on a desktop test host.
|
||||
@visibleForTesting
|
||||
static bool? debugIsDesktopOverride;
|
||||
|
||||
/// Whether the current platform supports a native USB serial backend.
|
||||
static bool get supportsNativeUsbSerial =>
|
||||
|
||||
@@ -44,21 +44,34 @@ class ChatDaySeparator extends StatelessWidget {
|
||||
);
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 10),
|
||||
child: Row(
|
||||
children: [
|
||||
line,
|
||||
const SizedBox(width: 10),
|
||||
Text(
|
||||
formatChatDayLabel(context, day),
|
||||
style: MeshTheme.mono(
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: color,
|
||||
child: LayoutBuilder(
|
||||
// Large text on a narrow phone wraps the label instead of overflowing;
|
||||
// each rule keeps at least 16dp.
|
||||
builder: (context, constraints) => Row(
|
||||
children: [
|
||||
line,
|
||||
const SizedBox(width: 10),
|
||||
ConstrainedBox(
|
||||
constraints: BoxConstraints(
|
||||
maxWidth: (constraints.maxWidth - 2 * (10 + 16)).clamp(
|
||||
0.0,
|
||||
double.infinity,
|
||||
),
|
||||
),
|
||||
child: Text(
|
||||
formatChatDayLabel(context, day),
|
||||
textAlign: TextAlign.center,
|
||||
style: MeshTheme.mono(
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: color,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 10),
|
||||
line,
|
||||
],
|
||||
const SizedBox(width: 10),
|
||||
line,
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -5,8 +5,10 @@ import '../connector/meshcore_connector.dart';
|
||||
import '../helpers/snack_bar_builder.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../screens/scanner_screen.dart';
|
||||
import '../screens/settings_screen.dart';
|
||||
import '../screens/usb_screen.dart';
|
||||
import '../storage/last_radio_store.dart';
|
||||
import '../theme/theme_icons.dart';
|
||||
import '../utils/dialog_utils.dart';
|
||||
import '../utils/platform_info.dart';
|
||||
import 'mesh_ui.dart';
|
||||
@@ -164,3 +166,36 @@ PopupMenuItem<T> connectionMenuItem<T>(
|
||||
onTap: () => showConnectSheet(screenContext),
|
||||
);
|
||||
}
|
||||
|
||||
/// Overflow-menu entry that opens [SettingsScreen].
|
||||
/// [screenContext] must outlive the menu, as onTap runs after it closes.
|
||||
PopupMenuItem<T> settingsMenuItem<T>(
|
||||
BuildContext screenContext,
|
||||
BuildContext menuContext,
|
||||
) {
|
||||
return PopupMenuItem<T>(
|
||||
child: MeshMenuItemRow(
|
||||
leading: const ThemedIcon(ThemeIconSlot.settings, size: 20),
|
||||
label: menuContext.l10n.settings_title,
|
||||
),
|
||||
onTap: () => Navigator.push(
|
||||
screenContext,
|
||||
MaterialPageRoute(builder: (_) => const SettingsScreen()),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
/// Trailing app-level section shared by the main views' overflow menus:
|
||||
/// an optional [PopupMenuDivider] (omitted when [hasPrecedingItems] is false)
|
||||
/// followed by [connectionMenuItem] and [settingsMenuItem].
|
||||
List<PopupMenuEntry<T>> mainOverflowTrailingItems<T>(
|
||||
BuildContext screenContext,
|
||||
BuildContext menuContext, {
|
||||
bool hasPrecedingItems = true,
|
||||
}) {
|
||||
return <PopupMenuEntry<T>>[
|
||||
if (hasPrecedingItems) const PopupMenuDivider(),
|
||||
connectionMenuItem<T>(screenContext, menuContext),
|
||||
settingsMenuItem<T>(screenContext, menuContext),
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,223 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../helpers/snack_bar_builder.dart';
|
||||
import '../l10n/contact_localization.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../models/contact.dart';
|
||||
import '../models/contact_group.dart';
|
||||
import '../theme/mesh_theme.dart';
|
||||
import '../utils/contact_search.dart';
|
||||
|
||||
/// Create/edit dialog for a phone-side contact group. Current members are
|
||||
/// listed first with a remove button each; the searchable "Add contacts"
|
||||
/// list below shows only contacts that are not members yet.
|
||||
///
|
||||
/// Membership changes stay in the dialog until Save, which calls [onSave].
|
||||
/// Nothing here touches the contacts stored on the radio.
|
||||
class ContactGroupEditorDialog extends StatefulWidget {
|
||||
const ContactGroupEditorDialog({
|
||||
super.key,
|
||||
required this.contacts,
|
||||
required this.validateName,
|
||||
required this.onSave,
|
||||
this.group,
|
||||
});
|
||||
|
||||
final List<Contact> contacts;
|
||||
final ContactGroup? group;
|
||||
|
||||
/// Returns an error message for an invalid trimmed name, or null.
|
||||
final String? Function(String name) validateName;
|
||||
final Future<void> Function(ContactGroup group) onSave;
|
||||
|
||||
@override
|
||||
State<ContactGroupEditorDialog> createState() =>
|
||||
_ContactGroupEditorDialogState();
|
||||
}
|
||||
|
||||
class _ContactGroupEditorDialogState extends State<ContactGroupEditorDialog> {
|
||||
late final TextEditingController _nameController;
|
||||
// Insertion-ordered; keeps keys of contacts no longer on the radio.
|
||||
late final Set<String> _memberKeys;
|
||||
late final List<Contact> _sortedContacts;
|
||||
String _query = '';
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_nameController = TextEditingController(text: widget.group?.name ?? '');
|
||||
_memberKeys = <String>{...?widget.group?.memberKeys};
|
||||
_sortedContacts = List<Contact>.from(widget.contacts)
|
||||
..sort((a, b) => a.name.toLowerCase().compareTo(b.name.toLowerCase()));
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_nameController.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
Future<void> _save() async {
|
||||
final name = _nameController.text.trim();
|
||||
final error = widget.validateName(name);
|
||||
if (error != null) {
|
||||
showDismissibleSnackBar(context, content: Text(error));
|
||||
return;
|
||||
}
|
||||
await widget.onSave(
|
||||
ContactGroup(name: name, memberKeys: _memberKeys.toList()),
|
||||
);
|
||||
if (mounted) Navigator.pop(context);
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final l10n = context.l10n;
|
||||
final scheme = Theme.of(context).colorScheme;
|
||||
final members = _sortedContacts
|
||||
.where((c) => _memberKeys.contains(c.publicKeyHex))
|
||||
.toList();
|
||||
final candidates = _sortedContacts
|
||||
.where(
|
||||
(c) =>
|
||||
!_memberKeys.contains(c.publicKeyHex) &&
|
||||
matchesContactQuery(c, _query),
|
||||
)
|
||||
.toList();
|
||||
if (_query.trim().isNotEmpty) {
|
||||
candidates.sort((a, b) => compareContactQueryRank(a, b, _query));
|
||||
}
|
||||
|
||||
Widget sectionLabel(String text) => Semantics(
|
||||
header: true,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.fromLTRB(4, 16, 4, 4),
|
||||
child: Text(
|
||||
text.toUpperCase(),
|
||||
style: MeshTheme.accentLabel(
|
||||
color: scheme.onSurfaceVariant,
|
||||
fontSize: 13,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Widget contactTile(Contact contact, {required bool isMember}) {
|
||||
return ListTile(
|
||||
key: ValueKey(
|
||||
'group-${isMember ? 'member' : 'candidate'}-'
|
||||
'${contact.publicKeyHex}',
|
||||
),
|
||||
contentPadding: const EdgeInsetsDirectional.only(start: 4),
|
||||
title: Text(
|
||||
contact.name,
|
||||
maxLines: 2,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: const TextStyle(fontSize: 16),
|
||||
),
|
||||
subtitle: Text(contact.typeLabel(l10n)),
|
||||
onTap: isMember
|
||||
? null
|
||||
: () => setState(() => _memberKeys.add(contact.publicKeyHex)),
|
||||
trailing: isMember
|
||||
? IconButton(
|
||||
tooltip: l10n.contacts_groupRemoveMember(contact.name),
|
||||
icon: Icon(Icons.remove_circle_outline, color: scheme.error),
|
||||
onPressed: () =>
|
||||
setState(() => _memberKeys.remove(contact.publicKeyHex)),
|
||||
)
|
||||
: IconButton(
|
||||
tooltip: l10n.contacts_groupAddMember(contact.name),
|
||||
icon: Icon(Icons.add_circle_outline, color: scheme.primary),
|
||||
onPressed: () =>
|
||||
setState(() => _memberKeys.add(contact.publicKeyHex)),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Widget emptyText(String text) => Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 4, vertical: 12),
|
||||
child: Text(
|
||||
text,
|
||||
style: TextStyle(fontSize: 16, color: scheme.onSurfaceVariant),
|
||||
),
|
||||
);
|
||||
|
||||
return AlertDialog(
|
||||
insetPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 24),
|
||||
contentPadding: const EdgeInsets.fromLTRB(16, 16, 16, 0),
|
||||
title: Text(
|
||||
widget.group != null ? l10n.contacts_editGroup : l10n.contacts_newGroup,
|
||||
),
|
||||
content: SizedBox(
|
||||
width: double.maxFinite,
|
||||
height: MediaQuery.sizeOf(context).height * 0.7,
|
||||
child: CustomScrollView(
|
||||
slivers: [
|
||||
SliverToBoxAdapter(
|
||||
child: TextField(
|
||||
controller: _nameController,
|
||||
decoration: InputDecoration(
|
||||
labelText: l10n.contacts_groupName,
|
||||
border: const OutlineInputBorder(),
|
||||
),
|
||||
),
|
||||
),
|
||||
SliverToBoxAdapter(
|
||||
child: sectionLabel(
|
||||
l10n.contacts_groupCurrentMembers(members.length),
|
||||
),
|
||||
),
|
||||
if (members.isEmpty)
|
||||
SliverToBoxAdapter(child: emptyText(l10n.contacts_noMembers))
|
||||
else
|
||||
SliverList.builder(
|
||||
itemCount: members.length,
|
||||
itemBuilder: (context, index) =>
|
||||
contactTile(members[index], isMember: true),
|
||||
),
|
||||
SliverToBoxAdapter(
|
||||
child: sectionLabel(l10n.contacts_groupAddContacts),
|
||||
),
|
||||
SliverToBoxAdapter(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(top: 4, bottom: 4),
|
||||
child: TextField(
|
||||
decoration: InputDecoration(
|
||||
hintText: l10n.contacts_filterContacts,
|
||||
prefixIcon: const Icon(Icons.search),
|
||||
border: const OutlineInputBorder(),
|
||||
isDense: true,
|
||||
),
|
||||
onChanged: (value) => setState(() => _query = value),
|
||||
),
|
||||
),
|
||||
),
|
||||
if (candidates.isEmpty)
|
||||
SliverToBoxAdapter(
|
||||
child: emptyText(l10n.contacts_noContactsMatchFilter),
|
||||
)
|
||||
else
|
||||
SliverList.builder(
|
||||
itemCount: candidates.length,
|
||||
itemBuilder: (context, index) =>
|
||||
contactTile(candidates[index], isMember: false),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: () => Navigator.pop(context),
|
||||
child: Text(l10n.common_cancel),
|
||||
),
|
||||
TextButton(
|
||||
onPressed: _save,
|
||||
child: Text(
|
||||
widget.group != null ? l10n.common_save : l10n.common_create,
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -5,6 +5,7 @@ import '../l10n/app_localizations.dart';
|
||||
import '../models/contact.dart';
|
||||
import '../theme/mesh_theme.dart';
|
||||
import '../theme/theme_icons.dart';
|
||||
import '../utils/emoji_utils.dart';
|
||||
|
||||
/// Shared node-type visuals and last-seen formatting for contact lists
|
||||
/// (contacts, discovery, nearby-node scan).
|
||||
@@ -41,6 +42,40 @@ ThemeIconSlot? contactTypeIconSlot(int type) {
|
||||
}
|
||||
}
|
||||
|
||||
final RegExp _letterOrDigit = RegExp(r'^[\p{L}\p{N}]', unicode: true);
|
||||
|
||||
/// Avatar initials for a display name, or null when the name has nothing
|
||||
/// usable so the caller can show an icon or key prefix instead.
|
||||
///
|
||||
/// Only letters and digits count: punctuation such as `-`, `(` or `[` splits
|
||||
/// words but never becomes an initial, so "(Base) Node" gives "BN" and
|
||||
/// "- Relay" gives "RE". Characters are whole grapheme clusters, so accented
|
||||
/// letters and emoji are never cut in half. A name with no letters or digits
|
||||
/// but an emoji shows that emoji.
|
||||
String? avatarInitials(String name) {
|
||||
final words = <String>[];
|
||||
final current = StringBuffer();
|
||||
String? emoji;
|
||||
for (final cluster in name.characters) {
|
||||
if (_letterOrDigit.hasMatch(cluster)) {
|
||||
current.write(cluster);
|
||||
continue;
|
||||
}
|
||||
if (current.isNotEmpty) {
|
||||
words.add(current.toString());
|
||||
current.clear();
|
||||
}
|
||||
emoji ??= firstEmoji(cluster);
|
||||
}
|
||||
if (current.isNotEmpty) words.add(current.toString());
|
||||
|
||||
if (words.isEmpty) return emoji;
|
||||
if (words.length == 1) {
|
||||
return words.first.characters.take(2).toString().toUpperCase();
|
||||
}
|
||||
return (words[0].characters.first + words[1].characters.first).toUpperCase();
|
||||
}
|
||||
|
||||
/// The most recent activity for [contact]: for chat nodes this includes the
|
||||
/// last message, for other node types only the last advert or telemetry fix.
|
||||
/// [addedAt] (the phone time the contact was added from a card) stands in
|
||||
|
||||
@@ -7,6 +7,7 @@ import 'package:flutter/services.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../theme/mesh_theme.dart';
|
||||
import '../theme/theme_icons.dart';
|
||||
import 'contact_visuals.dart';
|
||||
|
||||
/// MeshCore shared design kit.
|
||||
///
|
||||
@@ -283,7 +284,8 @@ class StatTile extends StatelessWidget {
|
||||
|
||||
/// Initials avatar with a deterministic per-name hue, or a fixed [color]
|
||||
/// for node-type coloring. Optional [icon] or themeable [iconSlot] replaces
|
||||
/// initials.
|
||||
/// initials. Initials come from [avatarInitials]; a name with no letters,
|
||||
/// digits or emoji shows a generic person icon instead.
|
||||
class AvatarCircle extends StatelessWidget {
|
||||
final String name;
|
||||
final double size;
|
||||
@@ -320,7 +322,7 @@ class AvatarCircle extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final accent = color ?? _colorFor(name);
|
||||
final initials = _initials(name);
|
||||
final initials = avatarInitials(name);
|
||||
final background = _tintedCardBackground(context, accent, 0.14);
|
||||
// A theme picture (e.g. a holiday marker) fills the whole circle, the
|
||||
// same as on the map, rather than sitting small inside the tint.
|
||||
@@ -360,9 +362,9 @@ class AvatarCircle extends StatelessWidget {
|
||||
size: size * 0.55,
|
||||
color: readableAccent(accent, background, minContrast: 3),
|
||||
)
|
||||
: icon != null
|
||||
: icon != null || initials == null
|
||||
? Icon(
|
||||
icon,
|
||||
icon ?? Icons.person_outline,
|
||||
size: size * 0.5,
|
||||
color: readableAccent(accent, background, minContrast: 3),
|
||||
)
|
||||
@@ -376,21 +378,6 @@ class AvatarCircle extends StatelessWidget {
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
static String _initials(String name) {
|
||||
final words = name
|
||||
.trim()
|
||||
.split(RegExp(r'\s+'))
|
||||
.where((w) => w.isNotEmpty)
|
||||
.toList();
|
||||
if (words.isEmpty) return '?';
|
||||
if (words.length == 1) {
|
||||
return words.first.characters.take(2).toString().toUpperCase();
|
||||
}
|
||||
return (words.first.characters.take(1).toString() +
|
||||
words[1].characters.take(1).toString())
|
||||
.toUpperCase();
|
||||
}
|
||||
}
|
||||
|
||||
/// Four-bar signal strength indicator driven by an SNR value (dB), colored
|
||||
|
||||
@@ -6,6 +6,7 @@ import 'package:provider/provider.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../models/contact.dart';
|
||||
import '../l10n/contact_localization.dart';
|
||||
import '../services/app_settings_service.dart';
|
||||
import '../services/storage_service.dart';
|
||||
import '../services/repeater_command_service.dart';
|
||||
import '../connector/meshcore_connector.dart';
|
||||
@@ -40,7 +41,9 @@ class _RepeaterLoginDialogState extends State<RepeaterLoginDialog> {
|
||||
String? _loginError;
|
||||
late MeshCoreConnector _connector;
|
||||
int _currentAttempt = 0;
|
||||
static const int _maxAttempts = 5;
|
||||
|
||||
int get _maxAttempts =>
|
||||
context.read<AppSettingsService>().settings.loginAttempts;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
@@ -195,10 +198,13 @@ class _RepeaterLoginDialogState extends State<RepeaterLoginDialog> {
|
||||
await _storage.removeRepeaterPassword(widget.repeater.publicKeyHex);
|
||||
}
|
||||
|
||||
final autoClockSync = await _storage
|
||||
.getRepeaterAutoClockSyncAfterLoginEnabled(
|
||||
widget.repeater.publicKeyHex,
|
||||
);
|
||||
final globalClockSync = mounted
|
||||
? context.read<AppSettingsService>().settings.clockSyncAfterLogin
|
||||
: false;
|
||||
final autoClockSync = await _storage.repeaterClockSyncAfterLogin(
|
||||
widget.repeater.publicKeyHex,
|
||||
globalDefault: globalClockSync,
|
||||
);
|
||||
if (autoClockSync) {
|
||||
try {
|
||||
final timestampSeconds =
|
||||
@@ -390,7 +396,12 @@ class _RepeaterLoginDialogState extends State<RepeaterLoginDialog> {
|
||||
}
|
||||
},
|
||||
onSubmitted: (_) => _handleLogin(),
|
||||
autofocus: _passwordController.text.isEmpty,
|
||||
autofocus:
|
||||
context
|
||||
.watch<AppSettingsService>()
|
||||
.settings
|
||||
.loginPasswordAutofocus &&
|
||||
_passwordController.text.isEmpty,
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
CheckboxListTile(
|
||||
|
||||
@@ -7,6 +7,7 @@ import 'package:provider/provider.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../models/contact.dart';
|
||||
import '../l10n/contact_localization.dart';
|
||||
import '../services/app_settings_service.dart';
|
||||
import '../services/storage_service.dart';
|
||||
import '../connector/meshcore_connector.dart';
|
||||
import '../connector/meshcore_protocol.dart';
|
||||
@@ -36,7 +37,9 @@ class _RoomLoginDialogState extends State<RoomLoginDialog> {
|
||||
bool _obscurePassword = true;
|
||||
late MeshCoreConnector _connector;
|
||||
int _currentAttempt = 0;
|
||||
static const int _maxAttempts = 5;
|
||||
|
||||
int get _maxAttempts =>
|
||||
context.read<AppSettingsService>().settings.loginAttempts;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
@@ -321,6 +324,10 @@ class _RoomLoginDialogState extends State<RoomLoginDialog> {
|
||||
),
|
||||
onSubmitted: (_) => _handleLogin(),
|
||||
autofocus:
|
||||
context
|
||||
.watch<AppSettingsService>()
|
||||
.settings
|
||||
.loginPasswordAutofocus &&
|
||||
!PlatformInfo.isMobile &&
|
||||
_passwordController.text.isEmpty,
|
||||
),
|
||||
|
||||
@@ -7,6 +7,7 @@ class TranslatedMessageContent extends StatelessWidget {
|
||||
final String? originalText;
|
||||
final TextStyle style;
|
||||
final TextStyle? originalStyle;
|
||||
final Color? backgroundColor;
|
||||
final bool showOriginalFirst;
|
||||
final VoidCallback? onSecondaryTap;
|
||||
|
||||
@@ -16,6 +17,7 @@ class TranslatedMessageContent extends StatelessWidget {
|
||||
required this.style,
|
||||
this.originalText,
|
||||
this.originalStyle,
|
||||
this.backgroundColor,
|
||||
this.showOriginalFirst = true,
|
||||
this.onSecondaryTap,
|
||||
});
|
||||
@@ -38,6 +40,7 @@ class TranslatedMessageContent extends StatelessWidget {
|
||||
fontStyle: FontStyle.italic,
|
||||
fontSize: style.fontSize,
|
||||
),
|
||||
backgroundColor: backgroundColor,
|
||||
onSecondaryTap: onSecondaryTap,
|
||||
)
|
||||
: null;
|
||||
@@ -45,6 +48,7 @@ class TranslatedMessageContent extends StatelessWidget {
|
||||
context: context,
|
||||
text: trimmedDisplay,
|
||||
style: style,
|
||||
backgroundColor: backgroundColor,
|
||||
onSecondaryTap: onSecondaryTap,
|
||||
);
|
||||
|
||||
|
||||
@@ -0,0 +1,238 @@
|
||||
import 'dart:async';
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
|
||||
import 'package:meshcore_open/connector/meshcore_connector.dart';
|
||||
import 'package:meshcore_open/connector/meshcore_protocol.dart';
|
||||
import 'package:meshcore_open/models/contact.dart';
|
||||
import 'package:meshcore_open/models/path_history.dart';
|
||||
import 'package:meshcore_open/models/path_selection.dart';
|
||||
import 'package:meshcore_open/review_mode/review_radio.dart';
|
||||
import 'package:meshcore_open/services/app_settings_service.dart';
|
||||
import 'package:meshcore_open/services/message_retry_service.dart';
|
||||
import 'package:meshcore_open/services/path_history_service.dart';
|
||||
import 'package:meshcore_open/services/storage_service.dart';
|
||||
import 'package:meshcore_open/storage/prefs_manager.dart';
|
||||
|
||||
Contact _directContact() {
|
||||
return Contact(
|
||||
publicKey: Uint8List.fromList(List<int>.generate(32, (i) => i + 1)),
|
||||
name: 'Hill',
|
||||
type: 1,
|
||||
pathLength: 1,
|
||||
path: Uint8List.fromList(const [0x11]),
|
||||
lastSeen: DateTime.now(),
|
||||
);
|
||||
}
|
||||
|
||||
class _ControllablePathStorage extends StorageService {
|
||||
Completer<ContactPathHistory?>? loadGate;
|
||||
|
||||
@override
|
||||
Future<ContactPathHistory?> loadPathHistory(String contactPubKeyHex) {
|
||||
final gate = loadGate;
|
||||
if (gate != null && !gate.isCompleted) {
|
||||
return gate.future;
|
||||
}
|
||||
return Future<ContactPathHistory?>.value(null);
|
||||
}
|
||||
}
|
||||
|
||||
class _RecordingReviewRadio extends ReviewRadio {
|
||||
final List<Uint8List> sent = [];
|
||||
|
||||
_RecordingReviewRadio()
|
||||
: super(
|
||||
scheduledMessageInterval: const Duration(hours: 1),
|
||||
// Long ACK delay so retry attempts run on timeout in tests.
|
||||
ackDelay: const Duration(hours: 1),
|
||||
);
|
||||
|
||||
@override
|
||||
void handle(Uint8List frame) {
|
||||
sent.add(frame);
|
||||
super.handle(frame);
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _waitFor(bool Function() condition, {int seconds = 8}) async {
|
||||
final end = DateTime.now().add(Duration(seconds: seconds));
|
||||
while (!condition()) {
|
||||
if (DateTime.now().isAfter(end)) fail('Timed out waiting for condition');
|
||||
await Future<void>.delayed(const Duration(milliseconds: 25));
|
||||
}
|
||||
}
|
||||
|
||||
// NotificationService is a process-wide singleton whose reply stream can be
|
||||
// listened to once, so every test shares one connector and reconnects it to a
|
||||
// fresh radio.
|
||||
void main() {
|
||||
TestWidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
late MeshCoreConnector connector;
|
||||
late _ControllablePathStorage storage;
|
||||
late PathHistoryService history;
|
||||
late MessageRetryService retries;
|
||||
late AppSettingsService settings;
|
||||
|
||||
setUpAll(() async {
|
||||
SharedPreferences.setMockInitialValues({});
|
||||
PrefsManager.reset();
|
||||
await PrefsManager.initialize();
|
||||
settings = AppSettingsService();
|
||||
await settings.loadSettings();
|
||||
connector = MeshCoreConnector();
|
||||
storage = _ControllablePathStorage();
|
||||
history = PathHistoryService(storage);
|
||||
retries = MessageRetryService(
|
||||
sentWatchdogGrace: const Duration(milliseconds: 5),
|
||||
);
|
||||
connector.initialize(
|
||||
retryService: retries,
|
||||
pathHistoryService: history,
|
||||
appSettingsService: settings,
|
||||
);
|
||||
});
|
||||
|
||||
tearDownAll(() {
|
||||
connector.dispose();
|
||||
history.dispose();
|
||||
retries.dispose();
|
||||
});
|
||||
|
||||
setUp(() async {
|
||||
storage.loadGate = null;
|
||||
await settings.resetRoutingSettingsToDefault();
|
||||
});
|
||||
|
||||
test('flood attempts do not wait for route history', () async {
|
||||
await settings.updateSettings(
|
||||
settings.settings.copyWith(
|
||||
autoRouteRotationEnabled: true,
|
||||
directRetries: 0,
|
||||
floodRetries: 1,
|
||||
),
|
||||
);
|
||||
|
||||
final flooded = await connector.preparePathForContactSend(_directContact());
|
||||
expect(flooded.useFlood, isTrue);
|
||||
|
||||
await settings.updateSettings(
|
||||
settings.settings.copyWith(directRetries: 2, floodRetries: 1),
|
||||
);
|
||||
final direct = await connector.preparePathForContactSend(_directContact());
|
||||
expect(direct.useFlood, isFalse);
|
||||
expect(direct.hopCount, 1);
|
||||
expect(direct.pathBytes, [0x11]);
|
||||
|
||||
await settings.updateSettings(
|
||||
settings.settings.copyWith(directRetries: 0, floodRetries: 0),
|
||||
);
|
||||
final zeroBudget = await connector.preparePathForContactSend(
|
||||
_directContact(),
|
||||
);
|
||||
expect(zeroBudget.useFlood, isFalse);
|
||||
expect(zeroBudget.hopCount, 1);
|
||||
expect(zeroBudget.pathBytes, [0x11]);
|
||||
});
|
||||
|
||||
test(
|
||||
'sendMessage with directRetries 0 and floodRetries 1 floods even when route history is loading',
|
||||
() async {
|
||||
final gate = Completer<ContactPathHistory?>();
|
||||
storage.loadGate = gate;
|
||||
|
||||
final radio = _RecordingReviewRadio();
|
||||
connector.reviewRadioFactoryForTest = () => radio;
|
||||
await connector.connectReview();
|
||||
addTearDown(connector.disconnect);
|
||||
await _waitFor(() => connector.contacts.isNotEmpty);
|
||||
|
||||
final directContact = connector.contacts.firstWhere(
|
||||
(c) => c.pathLength > 0,
|
||||
);
|
||||
await settings.updateSettings(
|
||||
settings.settings.copyWith(
|
||||
autoRouteRotationEnabled: true,
|
||||
directRetries: 0,
|
||||
floodRetries: 1,
|
||||
),
|
||||
);
|
||||
|
||||
radio.sent.clear();
|
||||
await connector.sendMessage(directContact, 'flood only');
|
||||
await _waitFor(
|
||||
() => radio.sent.any((frame) => frame[0] == cmdSendTxtMsg),
|
||||
);
|
||||
|
||||
final opCodes = radio.sent
|
||||
.map((frame) => frame[0])
|
||||
.where(
|
||||
(code) =>
|
||||
code == cmdResetPath ||
|
||||
code == cmdAddUpdateContact ||
|
||||
code == cmdSendTxtMsg,
|
||||
)
|
||||
.toList();
|
||||
expect(opCodes, [cmdResetPath, cmdSendTxtMsg]);
|
||||
|
||||
gate.complete(null);
|
||||
storage.loadGate = null;
|
||||
},
|
||||
);
|
||||
|
||||
test(
|
||||
'sendMessage with directRetries > 0 rotates through cached paths before flooding',
|
||||
() async {
|
||||
final radio = _RecordingReviewRadio();
|
||||
connector.reviewRadioFactoryForTest = () => radio;
|
||||
await connector.connectReview();
|
||||
addTearDown(connector.disconnect);
|
||||
await _waitFor(() => connector.contacts.isNotEmpty);
|
||||
|
||||
final directContact = connector.contacts.firstWhere(
|
||||
(c) => c.pathLength > 0,
|
||||
);
|
||||
history.recordPathResult(
|
||||
directContact.publicKeyHex,
|
||||
const PathSelection(pathBytes: [0x22], hopCount: 1, useFlood: false),
|
||||
success: true,
|
||||
);
|
||||
await pumpEventQueue();
|
||||
history.recordPathResult(
|
||||
directContact.publicKeyHex,
|
||||
const PathSelection(pathBytes: [0x33], hopCount: 1, useFlood: false),
|
||||
success: true,
|
||||
);
|
||||
await pumpEventQueue();
|
||||
|
||||
await settings.updateSettings(
|
||||
settings.settings.copyWith(
|
||||
autoRouteRotationEnabled: true,
|
||||
directRetries: 2,
|
||||
floodRetries: 1,
|
||||
),
|
||||
);
|
||||
|
||||
radio.sent.clear();
|
||||
await connector.sendMessage(directContact, 'rotate then flood');
|
||||
await _waitFor(
|
||||
() =>
|
||||
radio.sent.where((frame) => frame[0] == cmdSendTxtMsg).length == 3,
|
||||
seconds: 25,
|
||||
);
|
||||
|
||||
final pathOps = radio.sent
|
||||
.where(
|
||||
(frame) =>
|
||||
frame[0] == cmdResetPath || frame[0] == cmdAddUpdateContact,
|
||||
)
|
||||
.map((frame) => frame[0])
|
||||
.toList();
|
||||
expect(pathOps, [cmdAddUpdateContact, cmdAddUpdateContact, cmdResetPath]);
|
||||
},
|
||||
timeout: const Timeout(Duration(seconds: 45)),
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,219 @@
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter_linkify/flutter_linkify.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:meshcore_open/helpers/coordinate_parser.dart';
|
||||
|
||||
void main() {
|
||||
group('CoordinateParser.parse', () {
|
||||
test('parses positive and negative decimal pairs', () {
|
||||
const inputs = [
|
||||
('37.7749,-122.4194', 37.7749, -122.4194),
|
||||
('38.722,-9.139', 38.722, -9.139),
|
||||
('-33.86882, 151.20929', -33.86882, 151.20929),
|
||||
('51.5074, -0.1278', 51.5074, -0.1278),
|
||||
('0.0, 0.0', 0.0, 0.0),
|
||||
('45.515232, -122.678385', 45.515232, -122.678385),
|
||||
('37.77491234, -122.41945678', 37.77491234, -122.41945678),
|
||||
];
|
||||
|
||||
for (final (text, expectedLat, expectedLon) in inputs) {
|
||||
final parsed = CoordinateParser.parse(text);
|
||||
expect(parsed, hasLength(1), reason: 'Failed for "$text"');
|
||||
expect(parsed.first.latitude, closeTo(expectedLat, 1e-12));
|
||||
expect(parsed.first.longitude, closeTo(expectedLon, 1e-12));
|
||||
expect(parsed.first.rawText, text);
|
||||
expect(parsed.first.start, 0);
|
||||
expect(parsed.first.end, text.length);
|
||||
}
|
||||
});
|
||||
|
||||
test('parses explicit + signs and optional whitespace after comma', () {
|
||||
final parsed = CoordinateParser.parse(
|
||||
'Meet at +37.7749,+122.4194 or +45.5152,\t-122.6784',
|
||||
);
|
||||
expect(parsed, hasLength(2));
|
||||
expect(parsed[0].rawText, '+37.7749,+122.4194');
|
||||
expect(parsed[0].latitude, 37.7749);
|
||||
expect(parsed[0].longitude, 122.4194);
|
||||
expect(parsed[1].rawText, '+45.5152,\t-122.6784');
|
||||
expect(parsed[1].latitude, 45.5152);
|
||||
expect(parsed[1].longitude, -122.6784);
|
||||
});
|
||||
|
||||
test('accepts WGS84 boundary coordinates and rejects out-of-range', () {
|
||||
final validBounds = CoordinateParser.parse(
|
||||
'90.0, 180.0 and -90.0, -180.0',
|
||||
);
|
||||
expect(validBounds, hasLength(2));
|
||||
expect(validBounds[0].latitude, 90.0);
|
||||
expect(validBounds[0].longitude, 180.0);
|
||||
expect(validBounds[1].latitude, -90.0);
|
||||
expect(validBounds[1].longitude, -180.0);
|
||||
|
||||
const invalidBounds = [
|
||||
'90.0001, 0.0',
|
||||
'-90.1, 0.0',
|
||||
'0.0, 180.0001',
|
||||
'0.0, -180.1',
|
||||
'990.0, -180.0',
|
||||
'123.45, 67.89',
|
||||
];
|
||||
for (final text in invalidBounds) {
|
||||
expect(
|
||||
CoordinateParser.parse(text),
|
||||
isEmpty,
|
||||
reason: 'Should reject "$text"',
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
test('rejects plain integer pairs and mixed integer/decimal pairs', () {
|
||||
const invalid = [
|
||||
'1,2',
|
||||
'10, 20',
|
||||
'-45, 122',
|
||||
'37,-122.4194',
|
||||
'37.7749,-122',
|
||||
];
|
||||
for (final text in invalid) {
|
||||
expect(
|
||||
CoordinateParser.parse(text),
|
||||
isEmpty,
|
||||
reason: 'Should reject "$text"',
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
test('rejects version numbers and digits inside words or identifiers', () {
|
||||
const invalid = [
|
||||
'1.2.3,4.5',
|
||||
'1.2,3.4.5',
|
||||
'1.2, 3.4.5',
|
||||
'1.2.3, 4.5.6',
|
||||
'v1.2,3.4',
|
||||
'foo37.7749,-122.4194',
|
||||
'37.7749,-122.4194bar',
|
||||
'id_37.7749,-122.4194',
|
||||
'37.7749,-122.4194_end',
|
||||
'--37.7749,-122.4194',
|
||||
'+-37.7749,-122.4194',
|
||||
'1.2,3.4-5',
|
||||
];
|
||||
for (final text in invalid) {
|
||||
expect(
|
||||
CoordinateParser.parse(text),
|
||||
isEmpty,
|
||||
reason: 'Should reject "$text"',
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
test('handles punctuation boundaries around coordinates', () {
|
||||
const text =
|
||||
'Camp (37.7749, -122.4194), ridge [45.5152,-122.6784], end 38.722,-9.139.';
|
||||
final parsed = CoordinateParser.parse(text);
|
||||
expect(parsed, hasLength(3));
|
||||
expect(parsed[0].rawText, '37.7749, -122.4194');
|
||||
expect(text.substring(parsed[0].start, parsed[0].end), parsed[0].rawText);
|
||||
expect(parsed[1].rawText, '45.5152,-122.6784');
|
||||
expect(text.substring(parsed[1].start, parsed[1].end), parsed[1].rawText);
|
||||
expect(parsed[2].rawText, '38.722,-9.139');
|
||||
expect(text.substring(parsed[2].start, parsed[2].end), parsed[2].rawText);
|
||||
});
|
||||
|
||||
test('parses multiple coordinates and #wardriving messages', () {
|
||||
const wardriving =
|
||||
'#wardriving 37.7749,-122.4194 SNR: 8.5dB -> (37.7812, -122.4111) '
|
||||
'and 38.722,-9.139, 51.5074, -0.1278';
|
||||
final parsed = CoordinateParser.parse(wardriving);
|
||||
expect(parsed, hasLength(4));
|
||||
expect(parsed.map((c) => c.rawText).toList(), [
|
||||
'37.7749,-122.4194',
|
||||
'37.7812, -122.4111',
|
||||
'38.722,-9.139',
|
||||
'51.5074, -0.1278',
|
||||
]);
|
||||
});
|
||||
|
||||
test('does not misparse coordinates inside URLs or emails', () {
|
||||
const urlOnly = [
|
||||
'https://maps.google.com/?q=37.7749,-122.4194',
|
||||
'https://www.openstreetmap.org/?mlat=37.7749&mlon=-122.4194#map=16/37.7749/-122.4194',
|
||||
'https://example.com/@37.7749,-122.4194,15z',
|
||||
'geo:37.7749,-122.4194',
|
||||
'maps.google.com/?q=37.7749,-122.4194',
|
||||
];
|
||||
for (final text in urlOnly) {
|
||||
expect(
|
||||
CoordinateParser.parse(text),
|
||||
isEmpty,
|
||||
reason: 'Should not parse coordinate inside "$text"',
|
||||
);
|
||||
}
|
||||
|
||||
const mixed =
|
||||
'Route https://maps.google.com/?q=10.0,20.0 meet at 37.7749, -122.4194';
|
||||
final parsed = CoordinateParser.parse(mixed);
|
||||
expect(parsed, hasLength(1));
|
||||
expect(parsed.first.rawText, '37.7749, -122.4194');
|
||||
|
||||
final elements = CoordinateParser.linkifyWithCoordinates(mixed);
|
||||
expect(elements.whereType<UrlElement>(), hasLength(1));
|
||||
expect(elements.whereType<CoordinateElement>(), hasLength(1));
|
||||
});
|
||||
});
|
||||
|
||||
group('buildExternalMapUri', () {
|
||||
test('builds platform-appropriate map URIs', () {
|
||||
expect(
|
||||
buildExternalMapUri(
|
||||
37.7749,
|
||||
-122.4194,
|
||||
platform: TargetPlatform.android,
|
||||
isWeb: false,
|
||||
).toString(),
|
||||
'geo:37.7749,-122.4194?q=37.7749,-122.4194',
|
||||
);
|
||||
expect(
|
||||
buildExternalMapUri(
|
||||
37.7749,
|
||||
-122.4194,
|
||||
platform: TargetPlatform.iOS,
|
||||
isWeb: false,
|
||||
).toString(),
|
||||
'https://maps.apple.com/?ll=37.7749,-122.4194&q=37.7749,-122.4194',
|
||||
);
|
||||
expect(
|
||||
buildExternalMapUri(
|
||||
37.7749,
|
||||
-122.4194,
|
||||
platform: TargetPlatform.macOS,
|
||||
isWeb: false,
|
||||
).toString(),
|
||||
'https://maps.apple.com/?ll=37.7749,-122.4194&q=37.7749,-122.4194',
|
||||
);
|
||||
expect(
|
||||
buildExternalMapUri(
|
||||
37.7749,
|
||||
-122.4194,
|
||||
platform: TargetPlatform.linux,
|
||||
isWeb: false,
|
||||
).toString(),
|
||||
'https://www.openstreetmap.org/?mlat=37.7749&mlon=-122.4194#map=16/37.7749/-122.4194',
|
||||
);
|
||||
expect(
|
||||
buildExternalMapUri(
|
||||
37.7749,
|
||||
-122.4194,
|
||||
platform: TargetPlatform.windows,
|
||||
isWeb: false,
|
||||
).toString(),
|
||||
'https://www.openstreetmap.org/?mlat=37.7749&mlon=-122.4194#map=16/37.7749/-122.4194',
|
||||
);
|
||||
expect(
|
||||
buildExternalMapUri(-0.0, -0.0, isWeb: true).toString(),
|
||||
'https://www.openstreetmap.org/?mlat=0.0&mlon=0.0#map=16/0.0/0.0',
|
||||
);
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -8,13 +8,16 @@ import 'package:meshcore_open/models/contact.dart';
|
||||
|
||||
Contact _contact({
|
||||
required int prefix,
|
||||
int? secondByte,
|
||||
required String name,
|
||||
required double latitude,
|
||||
required double longitude,
|
||||
DateTime? lastSeen,
|
||||
}) {
|
||||
final key = Uint8List(32)..first = prefix;
|
||||
if (secondByte != null) key[1] = secondByte;
|
||||
return Contact(
|
||||
publicKey: Uint8List(32)..first = prefix,
|
||||
publicKey: key,
|
||||
name: name,
|
||||
type: advTypeRepeater,
|
||||
pathLength: 0,
|
||||
@@ -91,4 +94,336 @@ void main() {
|
||||
|
||||
expect(resolved.single?.name, 'Newer');
|
||||
});
|
||||
|
||||
test(
|
||||
'rejects single candidate impossibly far and preserves previousPosition',
|
||||
() {
|
||||
// Arizona self/local repeaters vs East Coast collision (~3700 km away).
|
||||
const selfArizona = LatLng(33.4484, -112.0740);
|
||||
final azHop1 = _contact(
|
||||
prefix: 0x48,
|
||||
name: 'AZ Repeater 1',
|
||||
latitude: 33.60097,
|
||||
longitude: -112.02457,
|
||||
);
|
||||
final eastCoastBogus = _contact(
|
||||
prefix: 0x9C,
|
||||
name: 'East Coast 9C',
|
||||
latitude: 42.3601,
|
||||
longitude: -71.0589,
|
||||
);
|
||||
final azHop3 = _contact(
|
||||
prefix: 0x53,
|
||||
name: 'AZ Repeater 2',
|
||||
latitude: 33.46300,
|
||||
longitude: -111.65000,
|
||||
);
|
||||
|
||||
final resolved = PathHopResolver.resolve(
|
||||
pathBytes: const [0x53, 0x9C, 0x48],
|
||||
contacts: [azHop1, eastCoastBogus, azHop3],
|
||||
endpoint: selfArizona,
|
||||
resolveFromEnd: true,
|
||||
);
|
||||
|
||||
expect(resolved.map((c) => c?.name), [
|
||||
'AZ Repeater 2',
|
||||
null,
|
||||
'AZ Repeater 1',
|
||||
]);
|
||||
},
|
||||
);
|
||||
|
||||
test('rejects multiple candidates when all are impossibly far', () {
|
||||
const selfArizona = LatLng(33.4484, -112.0740);
|
||||
final eastCoast = _contact(
|
||||
prefix: 0x9C,
|
||||
name: 'East Coast 9C',
|
||||
latitude: 42.3601,
|
||||
longitude: -71.0589,
|
||||
lastSeen: DateTime.utc(2026, 2),
|
||||
);
|
||||
final europe = _contact(
|
||||
prefix: 0x9C,
|
||||
name: 'Europe 9C',
|
||||
latitude: 48.8566,
|
||||
longitude: 2.3522,
|
||||
lastSeen: DateTime.utc(2026, 1),
|
||||
);
|
||||
|
||||
final resolved = PathHopResolver.resolve(
|
||||
pathBytes: const [0x9C],
|
||||
contacts: [eastCoast, europe],
|
||||
endpoint: selfArizona,
|
||||
);
|
||||
|
||||
expect(resolved, [null]);
|
||||
});
|
||||
|
||||
test(
|
||||
'picks plausible candidate when another candidate is impossibly far',
|
||||
() {
|
||||
const selfArizona = LatLng(33.4484, -112.0740);
|
||||
final eastCoastNewer = _contact(
|
||||
prefix: 0x9C,
|
||||
name: 'East Coast 9C',
|
||||
latitude: 42.3601,
|
||||
longitude: -71.0589,
|
||||
lastSeen: DateTime.utc(2026, 5),
|
||||
);
|
||||
final localOlder = _contact(
|
||||
prefix: 0x9C,
|
||||
name: 'Local AZ 9C',
|
||||
latitude: 33.50,
|
||||
longitude: -111.90,
|
||||
lastSeen: DateTime.utc(2026, 1),
|
||||
);
|
||||
|
||||
final resolved = PathHopResolver.resolve(
|
||||
pathBytes: const [0x9C],
|
||||
contacts: [eastCoastNewer, localOlder],
|
||||
endpoint: selfArizona,
|
||||
);
|
||||
|
||||
expect(resolved.single?.name, 'Local AZ 9C');
|
||||
},
|
||||
);
|
||||
|
||||
test('consecutive unresolved hops widen distance budget proportionally', () {
|
||||
// At equator, 1 degree longitude is ~111.32 km.
|
||||
// With 2 unresolved intermediate hops (hopGap = 3), budget is 3 * 250 km = 750 km.
|
||||
// 6.0 degrees (~667.9 km) is beyond 1-hop (250 km) and 2-hop (500 km),
|
||||
// but within 3-hop (750 km).
|
||||
const endpoint = LatLng(0, 0);
|
||||
final distantValid = _contact(
|
||||
prefix: 0xCC,
|
||||
name: 'Valid 3-hop target',
|
||||
latitude: 0,
|
||||
longitude: 6.0,
|
||||
);
|
||||
|
||||
final resolvedWithTwoUnknowns = PathHopResolver.resolve(
|
||||
pathBytes: const [0xAA, 0xBB, 0xCC],
|
||||
contacts: [distantValid],
|
||||
endpoint: endpoint,
|
||||
);
|
||||
expect(resolvedWithTwoUnknowns, [null, null, distantValid]);
|
||||
|
||||
// With only 1 hop (hopGap = 1, budget = 250 km), 6.0 degrees is rejected.
|
||||
final resolvedDirect = PathHopResolver.resolve(
|
||||
pathBytes: const [0xCC],
|
||||
contacts: [distantValid],
|
||||
endpoint: endpoint,
|
||||
);
|
||||
expect(resolvedDirect, [null]);
|
||||
});
|
||||
|
||||
test(
|
||||
'endpoint == null rejects a leading distant outlier and keeps local cluster',
|
||||
() {
|
||||
final bogusFirst = _contact(
|
||||
prefix: 0x9C,
|
||||
name: 'East Coast Outlier',
|
||||
latitude: 42.3601,
|
||||
longitude: -71.0589,
|
||||
lastSeen: DateTime.utc(2026, 6),
|
||||
);
|
||||
final local1 = _contact(
|
||||
prefix: 0x48,
|
||||
name: 'Local 1',
|
||||
latitude: 33.60097,
|
||||
longitude: -112.02457,
|
||||
);
|
||||
final local2 = _contact(
|
||||
prefix: 0x53,
|
||||
name: 'Local 2',
|
||||
latitude: 33.46300,
|
||||
longitude: -111.65000,
|
||||
);
|
||||
final local3 = _contact(
|
||||
prefix: 0x6C,
|
||||
name: 'Local 3',
|
||||
latitude: 33.42,
|
||||
longitude: -111.80,
|
||||
);
|
||||
|
||||
final resolved = PathHopResolver.resolve(
|
||||
pathBytes: const [0x9C, 0x48, 0x53, 0x6C],
|
||||
contacts: [bogusFirst, local1, local2, local3],
|
||||
endpoint: null,
|
||||
);
|
||||
|
||||
expect(resolved.map((c) => c?.name), [
|
||||
null,
|
||||
'Local 1',
|
||||
'Local 2',
|
||||
'Local 3',
|
||||
]);
|
||||
},
|
||||
);
|
||||
|
||||
test(
|
||||
'endpoint != null rejects first-hop outlier and resolves subsequent local hops',
|
||||
() {
|
||||
const selfArizona = LatLng(33.4484, -112.0740);
|
||||
final bogusFirst = _contact(
|
||||
prefix: 0xEA,
|
||||
name: 'East Coast First Hop',
|
||||
latitude: 42.3601,
|
||||
longitude: -71.0589,
|
||||
);
|
||||
final local2 = _contact(
|
||||
prefix: 0x48,
|
||||
name: 'Local 2',
|
||||
latitude: 33.60097,
|
||||
longitude: -112.02457,
|
||||
);
|
||||
final local3 = _contact(
|
||||
prefix: 0x53,
|
||||
name: 'Local 3',
|
||||
latitude: 33.46300,
|
||||
longitude: -111.65000,
|
||||
);
|
||||
|
||||
final resolved = PathHopResolver.resolve(
|
||||
pathBytes: const [0xEA, 0x48, 0x53],
|
||||
contacts: [bogusFirst, local2, local3],
|
||||
endpoint: selfArizona,
|
||||
);
|
||||
|
||||
expect(resolved.map((c) => c?.name), [null, 'Local 2', 'Local 3']);
|
||||
},
|
||||
);
|
||||
|
||||
test('legitimate long-range line-of-sight LoRa hops still resolve', () {
|
||||
// ~200 km mountain-to-mountain hop (within 250 km single-hop budget).
|
||||
const self = LatLng(33.4484, -112.0740);
|
||||
final mountainPeak = _contact(
|
||||
prefix: 0xAA,
|
||||
name: 'Mountain Peak',
|
||||
latitude: 35.1983,
|
||||
longitude: -111.6513, // Flagstaff (~198 km from Phoenix)
|
||||
);
|
||||
final secondPeak = _contact(
|
||||
prefix: 0xBB,
|
||||
name: 'North Rim',
|
||||
latitude: 36.2100,
|
||||
longitude: -112.0600, // ~118 km from Flagstaff
|
||||
);
|
||||
|
||||
final resolved = PathHopResolver.resolve(
|
||||
pathBytes: const [0xAA, 0xBB],
|
||||
contacts: [mountainPeak, secondPeak],
|
||||
endpoint: self,
|
||||
);
|
||||
|
||||
expect(resolved.map((c) => c?.name), ['Mountain Peak', 'North Rim']);
|
||||
});
|
||||
|
||||
test('multi-byte path hash width rejects impossible hop', () {
|
||||
const self = LatLng(33.4484, -112.0740);
|
||||
final local = _contact(
|
||||
prefix: 0x48,
|
||||
secondByte: 0x01,
|
||||
name: 'Local 2-byte',
|
||||
latitude: 33.60,
|
||||
longitude: -112.02,
|
||||
);
|
||||
final bogus = _contact(
|
||||
prefix: 0x9C,
|
||||
secondByte: 0x02,
|
||||
name: 'Bogus 2-byte',
|
||||
latitude: 40.7128,
|
||||
longitude: -74.0060,
|
||||
);
|
||||
|
||||
final resolved = PathHopResolver.resolve(
|
||||
pathBytes: const [0x48, 0x01, 0x9C, 0x02],
|
||||
contacts: [local, bogus],
|
||||
endpoint: self,
|
||||
pathHashByteWidth: 2,
|
||||
);
|
||||
|
||||
expect(resolved.map((c) => c?.name), ['Local 2-byte', null]);
|
||||
});
|
||||
|
||||
test(
|
||||
'preferredContacts overrides nearer general contact with same prefix when plausible',
|
||||
() {
|
||||
const self = LatLng(33.4484, -112.0740);
|
||||
final nearerGeneral = _contact(
|
||||
prefix: 0x48,
|
||||
secondByte: 0x01,
|
||||
name: 'Nearer General 48',
|
||||
latitude: 33.4600,
|
||||
longitude: -112.0700,
|
||||
lastSeen: DateTime.utc(2026, 6),
|
||||
);
|
||||
final selectedPreferred = _contact(
|
||||
prefix: 0x48,
|
||||
secondByte: 0x02,
|
||||
name: 'Selected Preferred 48',
|
||||
latitude: 33.9000,
|
||||
longitude: -111.7000,
|
||||
lastSeen: DateTime.utc(2026, 1),
|
||||
);
|
||||
final secondHopGeneral = _contact(
|
||||
prefix: 0x53,
|
||||
name: 'Second Hop 53',
|
||||
latitude: 33.9500,
|
||||
longitude: -111.6500,
|
||||
);
|
||||
|
||||
final resolvedWithEndpoint = PathHopResolver.resolve(
|
||||
pathBytes: const [0x48, 0x53],
|
||||
contacts: [nearerGeneral, selectedPreferred, secondHopGeneral],
|
||||
preferredContacts: [selectedPreferred],
|
||||
endpoint: self,
|
||||
);
|
||||
expect(resolvedWithEndpoint.map((c) => c?.name), [
|
||||
'Selected Preferred 48',
|
||||
'Second Hop 53',
|
||||
]);
|
||||
|
||||
final resolvedWithoutEndpoint = PathHopResolver.resolve(
|
||||
pathBytes: const [0x48, 0x53],
|
||||
contacts: [nearerGeneral, selectedPreferred, secondHopGeneral],
|
||||
preferredContacts: [selectedPreferred],
|
||||
endpoint: null,
|
||||
);
|
||||
expect(resolvedWithoutEndpoint.map((c) => c?.name), [
|
||||
'Selected Preferred 48',
|
||||
'Second Hop 53',
|
||||
]);
|
||||
},
|
||||
);
|
||||
|
||||
test(
|
||||
'impossibly far preferredContact is rejected and falls back to plausible general contact',
|
||||
() {
|
||||
const self = LatLng(33.4484, -112.0740);
|
||||
final bogusPreferred = _contact(
|
||||
prefix: 0x9C,
|
||||
secondByte: 0x01,
|
||||
name: 'East Coast Preferred 9C',
|
||||
latitude: 42.3601,
|
||||
longitude: -71.0589,
|
||||
);
|
||||
final localGeneral = _contact(
|
||||
prefix: 0x9C,
|
||||
secondByte: 0x02,
|
||||
name: 'Local General 9C',
|
||||
latitude: 33.60097,
|
||||
longitude: -112.02457,
|
||||
);
|
||||
|
||||
final resolved = PathHopResolver.resolve(
|
||||
pathBytes: const [0x9C],
|
||||
contacts: [bogusPreferred, localGeneral],
|
||||
preferredContacts: [bogusPreferred],
|
||||
endpoint: self,
|
||||
);
|
||||
expect(resolved.map((c) => c?.name), ['Local General 9C']);
|
||||
},
|
||||
);
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:meshcore_open/models/bookmarked_message.dart';
|
||||
import 'package:meshcore_open/models/channel_message.dart';
|
||||
|
||||
void main() {
|
||||
@@ -25,5 +26,52 @@ void main() {
|
||||
test('outgoing message without reply has no reply target', () {
|
||||
final message = ChannelMessage.outgoing('hello', 'Me', 0);
|
||||
expect(message.replyToMessageId, isNull);
|
||||
expect(message.fullText, 'hello');
|
||||
});
|
||||
|
||||
test('fullText restores @[username] prefix for stored replies', () {
|
||||
final storedReply = ChannelMessage(
|
||||
senderName: 'Me',
|
||||
text: 'answer',
|
||||
timestamp: DateTime(2026, 1, 1, 12),
|
||||
isOutgoing: true,
|
||||
replyToMessageId: 'msg-1',
|
||||
replyToSenderName: 'Alice',
|
||||
replyToText: 'question',
|
||||
);
|
||||
|
||||
expect(storedReply.fullText, '@[Alice] answer');
|
||||
|
||||
final bookmark = BookmarkedMessage.fromChannel(
|
||||
message: storedReply,
|
||||
channelId: 'ch-0',
|
||||
channelName: 'Public',
|
||||
senderName: 'Me',
|
||||
);
|
||||
expect(bookmark.text, '@[Alice] answer');
|
||||
});
|
||||
|
||||
test('fullText preserves nested mention and special payloads in replies', () {
|
||||
final nestedReply = ChannelMessage(
|
||||
senderName: 'Bob',
|
||||
text: '@[Alice] nested',
|
||||
timestamp: DateTime(2026, 1, 1, 12),
|
||||
isOutgoing: false,
|
||||
replyToMessageId: 'msg-1',
|
||||
replyToSenderName: 'Alice',
|
||||
replyToText: 'original',
|
||||
);
|
||||
expect(nestedReply.fullText, '@[Alice] @[Alice] nested');
|
||||
|
||||
final gifReply = ChannelMessage(
|
||||
senderName: 'Bob',
|
||||
text: 'g:abc123',
|
||||
timestamp: DateTime(2026, 1, 1, 12),
|
||||
isOutgoing: false,
|
||||
replyToMessageId: 'msg-1',
|
||||
replyToSenderName: 'Alice',
|
||||
replyToText: 'original',
|
||||
);
|
||||
expect(gifReply.fullText, '@[Alice] g:abc123');
|
||||
});
|
||||
}
|
||||
@@ -404,7 +404,9 @@ void main() {
|
||||
expect(settings.initialRouteWeight, equals(3.0));
|
||||
expect(settings.routeWeightSuccessIncrement, equals(0.5));
|
||||
expect(settings.routeWeightFailureDecrement, equals(0.2));
|
||||
expect(settings.maxMessageRetries, equals(5));
|
||||
expect(settings.directRetries, equals(4));
|
||||
expect(settings.floodRetries, equals(1));
|
||||
expect(settings.loginAttempts, equals(5));
|
||||
expect(settings.evictDiscoveredContactsEnabled, isTrue);
|
||||
});
|
||||
|
||||
@@ -415,13 +417,17 @@ void main() {
|
||||
expect(json.containsKey('initial_route_weight'), isTrue);
|
||||
expect(json.containsKey('route_weight_success_increment'), isTrue);
|
||||
expect(json.containsKey('route_weight_failure_decrement'), isTrue);
|
||||
expect(json.containsKey('max_message_retries'), isTrue);
|
||||
expect(json.containsKey('max_direct_retries'), isTrue);
|
||||
expect(json.containsKey('max_flood_retries'), isTrue);
|
||||
expect(json.containsKey('login_attempts'), isTrue);
|
||||
expect(json.containsKey('evict_discovered_contacts_enabled'), isTrue);
|
||||
expect(json['max_route_weight'], equals(5.0));
|
||||
expect(json['initial_route_weight'], equals(3.0));
|
||||
expect(json['route_weight_success_increment'], equals(0.5));
|
||||
expect(json['route_weight_failure_decrement'], equals(0.2));
|
||||
expect(json['max_message_retries'], equals(5));
|
||||
expect(json['max_direct_retries'], equals(4));
|
||||
expect(json['max_flood_retries'], equals(1));
|
||||
expect(json['login_attempts'], equals(5));
|
||||
expect(json['evict_discovered_contacts_enabled'], isTrue);
|
||||
});
|
||||
|
||||
@@ -431,7 +437,9 @@ void main() {
|
||||
'initial_route_weight': 2.0,
|
||||
'route_weight_success_increment': 1.0,
|
||||
'route_weight_failure_decrement': 1.5,
|
||||
'max_message_retries': 8,
|
||||
'max_direct_retries': 8,
|
||||
'max_flood_retries': 3,
|
||||
'login_attempts': 7,
|
||||
'evict_discovered_contacts_enabled': false,
|
||||
};
|
||||
final settings = AppSettings.fromJson(json);
|
||||
@@ -439,7 +447,9 @@ void main() {
|
||||
expect(settings.initialRouteWeight, equals(2.0));
|
||||
expect(settings.routeWeightSuccessIncrement, equals(1.0));
|
||||
expect(settings.routeWeightFailureDecrement, equals(1.5));
|
||||
expect(settings.maxMessageRetries, equals(8));
|
||||
expect(settings.directRetries, equals(8));
|
||||
expect(settings.floodRetries, equals(3));
|
||||
expect(settings.loginAttempts, equals(7));
|
||||
expect(settings.evictDiscoveredContactsEnabled, isFalse);
|
||||
});
|
||||
|
||||
@@ -503,7 +513,9 @@ void main() {
|
||||
expect(settings.initialRouteWeight, equals(3.0));
|
||||
expect(settings.routeWeightSuccessIncrement, equals(0.5));
|
||||
expect(settings.routeWeightFailureDecrement, equals(0.2));
|
||||
expect(settings.maxMessageRetries, equals(5));
|
||||
expect(settings.directRetries, equals(4));
|
||||
expect(settings.floodRetries, equals(1));
|
||||
expect(settings.loginAttempts, equals(5));
|
||||
},
|
||||
);
|
||||
|
||||
@@ -513,7 +525,7 @@ void main() {
|
||||
expect(updated.maxRouteWeight, equals(8.0));
|
||||
// Other fields should be unchanged
|
||||
expect(updated.initialRouteWeight, equals(settings.initialRouteWeight));
|
||||
expect(updated.maxMessageRetries, equals(settings.maxMessageRetries));
|
||||
expect(updated.directRetries, equals(settings.directRetries));
|
||||
});
|
||||
|
||||
test('copyWith works for initialRouteWeight', () {
|
||||
@@ -543,10 +555,10 @@ void main() {
|
||||
);
|
||||
});
|
||||
|
||||
test('copyWith works for maxMessageRetries', () {
|
||||
test('copyWith works for directRetries', () {
|
||||
final settings = AppSettings();
|
||||
final updated = settings.copyWith(maxMessageRetries: 10);
|
||||
expect(updated.maxMessageRetries, equals(10));
|
||||
final updated = settings.copyWith(directRetries: 10);
|
||||
expect(updated.directRetries, equals(10));
|
||||
expect(updated.maxRouteWeight, equals(settings.maxRouteWeight));
|
||||
});
|
||||
});
|
||||
|
||||
@@ -0,0 +1,176 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
|
||||
import 'package:meshcore_open/models/app_settings.dart';
|
||||
import 'package:meshcore_open/models/send_attempt_plan.dart';
|
||||
import 'package:meshcore_open/services/app_settings_service.dart';
|
||||
import 'package:meshcore_open/storage/prefs_manager.dart';
|
||||
|
||||
void main() {
|
||||
group('SendAttemptPlan', () {
|
||||
const rotating = SendAttemptPlan(
|
||||
directRetries: 4,
|
||||
floodRetries: 1,
|
||||
rotateRoutes: true,
|
||||
);
|
||||
const fixed = SendAttemptPlan(
|
||||
directRetries: 4,
|
||||
floodRetries: 2,
|
||||
rotateRoutes: false,
|
||||
);
|
||||
|
||||
test('rotation spends direct attempts then flood attempts', () {
|
||||
expect(rotating.attemptLimit(floodPath: false), 5);
|
||||
expect(rotating.attemptLimit(floodPath: true), 5);
|
||||
expect(rotating.floodFromAttempt, 4);
|
||||
});
|
||||
|
||||
test('a fixed path uses only that path kind', () {
|
||||
expect(fixed.attemptLimit(floodPath: false), 4);
|
||||
expect(fixed.attemptLimit(floodPath: true), 2);
|
||||
expect(fixed.floodFromAttempt, isNull);
|
||||
});
|
||||
|
||||
test('both limits at zero still send once and do not switch to flood', () {
|
||||
const plan = SendAttemptPlan(
|
||||
directRetries: 0,
|
||||
floodRetries: 0,
|
||||
rotateRoutes: true,
|
||||
);
|
||||
expect(plan.attemptLimit(floodPath: false), 1);
|
||||
expect(plan.floodFromAttempt, isNull);
|
||||
});
|
||||
|
||||
test('direct zero with rotation floods from the first attempt', () {
|
||||
const plan = SendAttemptPlan(
|
||||
directRetries: 0,
|
||||
floodRetries: 3,
|
||||
rotateRoutes: true,
|
||||
);
|
||||
expect(plan.attemptLimit(floodPath: false), 3);
|
||||
expect(plan.floodFromAttempt, 0);
|
||||
});
|
||||
|
||||
test('flood zero with rotation never switches to flood', () {
|
||||
const plan = SendAttemptPlan(
|
||||
directRetries: 6,
|
||||
floodRetries: 0,
|
||||
rotateRoutes: true,
|
||||
);
|
||||
expect(plan.attemptLimit(floodPath: true), 6);
|
||||
expect(plan.floodFromAttempt, isNull);
|
||||
});
|
||||
});
|
||||
|
||||
group('AppSettings retry migration', () {
|
||||
test('a saved single retry limit becomes direct plus one flood', () {
|
||||
final settings = AppSettings.fromJson({'max_message_retries': 5});
|
||||
expect(settings.directRetries, 4);
|
||||
expect(settings.floodRetries, 1);
|
||||
expect(settings.toJson().containsKey('max_message_retries'), isFalse);
|
||||
});
|
||||
|
||||
test('the old maximum of 10 keeps nine direct attempts and one flood', () {
|
||||
final settings = AppSettings.fromJson({'max_message_retries': 10});
|
||||
expect(settings.directRetries, 9);
|
||||
expect(settings.floodRetries, 1);
|
||||
});
|
||||
|
||||
test('new keys win over a leftover single limit and are clamped', () {
|
||||
final settings = AppSettings.fromJson({
|
||||
'max_message_retries': 5,
|
||||
'max_direct_retries': 40,
|
||||
'max_flood_retries': -2,
|
||||
'login_attempts': 0,
|
||||
});
|
||||
expect(settings.directRetries, SendAttemptPlan.maxDirectRetries);
|
||||
expect(settings.floodRetries, SendAttemptPlan.minFloodRetries);
|
||||
expect(settings.loginAttempts, SendAttemptPlan.minLoginAttempts);
|
||||
});
|
||||
|
||||
test('round trip keeps the split limits', () {
|
||||
final saved = AppSettings(
|
||||
directRetries: 12,
|
||||
floodRetries: 7,
|
||||
loginAttempts: 3,
|
||||
clearPathOnMaxRetry: true,
|
||||
autoRouteRotationEnabled: false,
|
||||
channelMinHopsEnabled: true,
|
||||
).toJson();
|
||||
final restored = AppSettings.fromJson(saved);
|
||||
expect(restored.directRetries, 12);
|
||||
expect(restored.floodRetries, 7);
|
||||
expect(restored.loginAttempts, 3);
|
||||
expect(restored.clearPathOnMaxRetry, isTrue);
|
||||
expect(restored.autoRouteRotationEnabled, isFalse);
|
||||
expect(restored.channelMinHopsEnabled, isTrue);
|
||||
});
|
||||
});
|
||||
|
||||
test('reset routing settings restores the moved controls', () async {
|
||||
SharedPreferences.setMockInitialValues({});
|
||||
await PrefsManager.initialize();
|
||||
final service = AppSettingsService();
|
||||
await service.loadSettings();
|
||||
await service.updateSettings(
|
||||
service.settings.copyWith(
|
||||
clearPathOnMaxRetry: true,
|
||||
autoRouteRotationEnabled: false,
|
||||
directRetries: 15,
|
||||
floodRetries: 10,
|
||||
loginAttempts: 9,
|
||||
channelMinHopsEnabled: true,
|
||||
channelMinHops: 6,
|
||||
channelMinHopsRetries: 4,
|
||||
channelMinHopsCountRepeaters: true,
|
||||
maxRouteWeight: 9,
|
||||
),
|
||||
);
|
||||
|
||||
await service.resetRoutingSettingsToDefault();
|
||||
final settings = service.settings;
|
||||
expect(settings.clearPathOnMaxRetry, isFalse);
|
||||
expect(settings.autoRouteRotationEnabled, isTrue);
|
||||
expect(settings.directRetries, SendAttemptPlan.defaultDirectRetries);
|
||||
expect(settings.floodRetries, SendAttemptPlan.defaultFloodRetries);
|
||||
expect(settings.loginAttempts, 9);
|
||||
expect(settings.channelMinHopsEnabled, isFalse);
|
||||
expect(settings.channelMinHops, 2);
|
||||
expect(settings.channelMinHopsRetries, 1);
|
||||
expect(settings.channelMinHopsCountRepeaters, isFalse);
|
||||
expect(settings.maxRouteWeight, AppSettings.defaultMaxRouteWeight);
|
||||
|
||||
final reloaded = AppSettingsService();
|
||||
await reloaded.loadSettings();
|
||||
expect(
|
||||
reloaded.settings.directRetries,
|
||||
SendAttemptPlan.defaultDirectRetries,
|
||||
);
|
||||
expect(reloaded.settings.floodRetries, SendAttemptPlan.defaultFloodRetries);
|
||||
expect(reloaded.settings.loginAttempts, 9);
|
||||
});
|
||||
|
||||
test('reset repeater and room settings restores that section', () async {
|
||||
SharedPreferences.setMockInitialValues({});
|
||||
await PrefsManager.initialize();
|
||||
final service = AppSettingsService();
|
||||
await service.loadSettings();
|
||||
await service.updateSettings(
|
||||
service.settings.copyWith(
|
||||
clockSyncAfterLogin: true,
|
||||
loginPasswordAutofocus: true,
|
||||
autoFetchRepeaterSettings: true,
|
||||
loginAttempts: 8,
|
||||
directRetries: 12,
|
||||
),
|
||||
);
|
||||
|
||||
await service.resetRepeaterRoomSettingsToDefault();
|
||||
final settings = service.settings;
|
||||
expect(settings.clockSyncAfterLogin, isFalse);
|
||||
expect(settings.loginPasswordAutofocus, isFalse);
|
||||
expect(settings.autoFetchRepeaterSettings, isFalse);
|
||||
expect(settings.loginAttempts, SendAttemptPlan.defaultLoginAttempts);
|
||||
expect(settings.directRetries, 12);
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,546 @@
|
||||
import 'dart:io';
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_localizations/flutter_localizations.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
|
||||
import 'package:meshcore_open/connector/meshcore_connector.dart';
|
||||
import 'package:meshcore_open/connector/meshcore_protocol.dart';
|
||||
import 'package:meshcore_open/l10n/app_localizations.dart';
|
||||
import 'package:meshcore_open/l10n/app_localizations_en.dart';
|
||||
import 'package:meshcore_open/review_mode/review_radio.dart';
|
||||
import 'package:meshcore_open/screens/add_contact_screen.dart';
|
||||
import 'package:meshcore_open/screens/contacts_screen.dart';
|
||||
import 'package:meshcore_open/screens/discovery_screen.dart';
|
||||
import 'package:meshcore_open/services/app_debug_log_service.dart';
|
||||
import 'package:meshcore_open/services/app_settings_service.dart';
|
||||
import 'package:meshcore_open/services/ble_debug_log_service.dart';
|
||||
import 'package:meshcore_open/services/chat_text_scale_service.dart';
|
||||
import 'package:meshcore_open/services/image_codec_service.dart';
|
||||
import 'package:meshcore_open/services/map_tile_cache_service.dart';
|
||||
import 'package:meshcore_open/services/message_retry_service.dart';
|
||||
import 'package:meshcore_open/services/network_map/network_map_upload_service.dart';
|
||||
import 'package:meshcore_open/services/path_history_service.dart';
|
||||
import 'package:meshcore_open/services/received_image_store.dart';
|
||||
import 'package:meshcore_open/services/storage_service.dart';
|
||||
import 'package:meshcore_open/services/timeout_prediction_service.dart';
|
||||
import 'package:meshcore_open/services/translation_service.dart';
|
||||
import 'package:meshcore_open/services/ui_view_state_service.dart';
|
||||
import 'package:meshcore_open/storage/prefs_manager.dart';
|
||||
import 'package:meshcore_open/theme/mesh_theme.dart';
|
||||
|
||||
final _l10n = AppLocalizationsEn();
|
||||
|
||||
MeshCoreConnector? _sharedConnector;
|
||||
|
||||
Future<MeshCoreConnector> _connectedConnector(WidgetTester tester) async {
|
||||
if (_sharedConnector != null) {
|
||||
return _sharedConnector!;
|
||||
}
|
||||
final storage = StorageService();
|
||||
final connector = MeshCoreConnector();
|
||||
final retry = MessageRetryService();
|
||||
final settings = AppSettingsService();
|
||||
final translation = TranslationService(settings);
|
||||
await tester.runAsync(() async {
|
||||
await settings.loadSettings();
|
||||
connector.initialize(
|
||||
retryService: retry,
|
||||
pathHistoryService: PathHistoryService(storage),
|
||||
appSettingsService: settings,
|
||||
translationService: translation,
|
||||
);
|
||||
connector.reviewRadioFactoryForTest = () => ReviewRadio(
|
||||
scheduledMessageInterval: const Duration(hours: 1),
|
||||
ackDelay: const Duration(milliseconds: 50),
|
||||
replyDelay: const Duration(hours: 1),
|
||||
);
|
||||
await connector.connectReview();
|
||||
final end = DateTime.now().add(const Duration(seconds: 8));
|
||||
while (!connector.hasLoadedContacts && DateTime.now().isBefore(end)) {
|
||||
await Future<void>.delayed(const Duration(milliseconds: 25));
|
||||
}
|
||||
});
|
||||
_sharedConnector = connector;
|
||||
return connector;
|
||||
}
|
||||
|
||||
Widget _wrapApp({
|
||||
required MeshCoreConnector connector,
|
||||
required Widget home,
|
||||
ThemeData? theme,
|
||||
Locale locale = const Locale('en'),
|
||||
double textScale = 1.0,
|
||||
}) {
|
||||
final storage = StorageService();
|
||||
final settings = AppSettingsService();
|
||||
return MultiProvider(
|
||||
providers: [
|
||||
ChangeNotifierProvider.value(value: connector),
|
||||
ChangeNotifierProvider(create: (_) => MessageRetryService()),
|
||||
ChangeNotifierProvider(create: (_) => PathHistoryService(storage)),
|
||||
ChangeNotifierProvider.value(value: settings),
|
||||
ChangeNotifierProvider(create: (_) => BleDebugLogService()),
|
||||
ChangeNotifierProvider(create: (_) => AppDebugLogService()),
|
||||
ChangeNotifierProvider(create: (_) => ChatTextScaleService()),
|
||||
ChangeNotifierProvider(create: (_) => TranslationService(settings)),
|
||||
ChangeNotifierProvider(create: (_) => UiViewStateService()),
|
||||
Provider.value(value: storage),
|
||||
ChangeNotifierProvider(
|
||||
create: (_) => MapTileCacheService(appSettingsService: settings),
|
||||
),
|
||||
ChangeNotifierProvider(create: (_) => TimeoutPredictionService(storage)),
|
||||
ChangeNotifierProvider(create: (_) => ImageCodecService(settings)),
|
||||
ChangeNotifierProvider(create: (_) => ReceivedImageStore()),
|
||||
ChangeNotifierProvider(
|
||||
create: (_) =>
|
||||
NetworkMapUploadService(connector: connector, settings: settings),
|
||||
),
|
||||
],
|
||||
child: MaterialApp(
|
||||
theme: theme ?? MeshTheme.dark(),
|
||||
locale: locale,
|
||||
localizationsDelegates: const [
|
||||
AppLocalizations.delegate,
|
||||
GlobalMaterialLocalizations.delegate,
|
||||
GlobalWidgetsLocalizations.delegate,
|
||||
GlobalCupertinoLocalizations.delegate,
|
||||
],
|
||||
supportedLocales: AppLocalizations.supportedLocales,
|
||||
builder: (context, child) => MediaQuery(
|
||||
data: MediaQuery.of(
|
||||
context,
|
||||
).copyWith(textScaler: TextScaler.linear(textScale)),
|
||||
child: child!,
|
||||
),
|
||||
home: home,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
void main() {
|
||||
TestWidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
final tempDir = Directory.systemTemp.createTempSync('add_contact_test');
|
||||
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
|
||||
.setMockMethodCallHandler(
|
||||
const MethodChannel('plugins.flutter.io/path_provider'),
|
||||
(call) async => tempDir.path,
|
||||
);
|
||||
|
||||
setUp(() async {
|
||||
SharedPreferences.setMockInitialValues({});
|
||||
PrefsManager.reset();
|
||||
await PrefsManager.initialize();
|
||||
});
|
||||
|
||||
tearDownAll(() {
|
||||
_sharedConnector?.dispose();
|
||||
_sharedConnector = null;
|
||||
if (tempDir.existsSync()) {
|
||||
tempDir.deleteSync(recursive: true);
|
||||
}
|
||||
});
|
||||
|
||||
testWidgets('validates empty fields and invalid public key', (tester) async {
|
||||
final connector = await _connectedConnector(tester);
|
||||
|
||||
await tester.pumpWidget(
|
||||
_wrapApp(connector: connector, home: const AddContactScreen()),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.text(_l10n.addContact_title), findsOneWidget);
|
||||
expect(find.text(_l10n.addContact_infoBanner), findsOneWidget);
|
||||
expect(find.text(_l10n.contacts_addContactFromClipboard), findsOneWidget);
|
||||
expect(find.text(_l10n.addContact_fromDiscovered), findsOneWidget);
|
||||
expect(find.text(_l10n.contacts_scanQrCode), findsOneWidget);
|
||||
|
||||
await tester.tap(find.byIcon(Icons.check));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.text(_l10n.addContact_nameRequired), findsOneWidget);
|
||||
expect(find.text(_l10n.addContact_publicKeyRequired), findsOneWidget);
|
||||
|
||||
await tester.enterText(find.byType(TextFormField).first, 'Repeater One');
|
||||
await tester.enterText(find.byType(TextFormField).last, 'abcd');
|
||||
await tester.tap(find.byIcon(Icons.check));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.text(_l10n.addContact_publicKeyInvalid), findsOneWidget);
|
||||
await tester.pumpWidget(const SizedBox());
|
||||
});
|
||||
|
||||
testWidgets('selects contact type and submits manual contact', (
|
||||
tester,
|
||||
) async {
|
||||
final connector = await _connectedConnector(tester);
|
||||
|
||||
final keyHex = List.generate(
|
||||
32,
|
||||
(i) => (i + 1).toRadixString(16).padLeft(2, '0'),
|
||||
).join();
|
||||
|
||||
await tester.pumpWidget(
|
||||
_wrapApp(
|
||||
connector: connector,
|
||||
home: Builder(
|
||||
builder: (context) => Scaffold(
|
||||
body: Center(
|
||||
child: FilledButton(
|
||||
onPressed: () => Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (_) => const AddContactScreen()),
|
||||
),
|
||||
child: const Text('Open'),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
await tester.tap(find.text('Open'));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
// Change Contact Type from Chat to Repeater.
|
||||
expect(find.text(_l10n.contact_typeChat), findsOneWidget);
|
||||
await tester.tap(find.text(_l10n.contact_typeChat));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.text(_l10n.contact_typeRepeater), findsOneWidget);
|
||||
expect(find.text(_l10n.contact_typeRoom), findsOneWidget);
|
||||
expect(find.text(_l10n.contact_typeSensor), findsOneWidget);
|
||||
|
||||
await tester.tap(find.text(_l10n.contact_typeRepeater));
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.text(_l10n.contact_typeRepeater), findsOneWidget);
|
||||
|
||||
await tester.enterText(find.byType(TextFormField).first, ' North Ridge ');
|
||||
await tester.enterText(
|
||||
find.byType(TextFormField).last,
|
||||
' 0x${keyHex.toUpperCase()} ',
|
||||
);
|
||||
|
||||
await tester.runAsync(() async {
|
||||
await tester.tap(find.byIcon(Icons.check));
|
||||
final end = DateTime.now().add(const Duration(seconds: 5));
|
||||
while (!connector.contacts.any((c) => c.publicKeyHex == keyHex) &&
|
||||
DateTime.now().isBefore(end)) {
|
||||
await Future<void>.delayed(const Duration(milliseconds: 25));
|
||||
}
|
||||
});
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
final added = connector.contacts.firstWhere(
|
||||
(c) => c.publicKeyHex == keyHex,
|
||||
);
|
||||
expect(added.name, 'North Ridge');
|
||||
expect(added.type, advTypeRepeater);
|
||||
expect(find.byType(AddContactScreen), findsNothing);
|
||||
expect(find.text(_l10n.discoveredContacts_contactAdded), findsOneWidget);
|
||||
await tester.pumpWidget(const SizedBox());
|
||||
});
|
||||
|
||||
testWidgets('bare hex key in clipboard fills Public Key and focuses Name', (
|
||||
tester,
|
||||
) async {
|
||||
final connector = await _connectedConnector(tester);
|
||||
|
||||
final keyHex = 'ab' * 32;
|
||||
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
|
||||
.setMockMethodCallHandler(SystemChannels.platform, (call) async {
|
||||
if (call.method == 'Clipboard.getData') {
|
||||
return <String, dynamic>{'text': ' 0x${keyHex.toUpperCase()} \n'};
|
||||
}
|
||||
return null;
|
||||
});
|
||||
addTearDown(
|
||||
() => TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
|
||||
.setMockMethodCallHandler(SystemChannels.platform, null),
|
||||
);
|
||||
|
||||
await tester.pumpWidget(
|
||||
_wrapApp(connector: connector, home: const AddContactScreen()),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
// Trigger empty validation error first, then ensure pasting a bare key clears it.
|
||||
await tester.tap(find.byIcon(Icons.check));
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.text(_l10n.addContact_publicKeyRequired), findsOneWidget);
|
||||
|
||||
await tester.tap(find.text(_l10n.contacts_addContactFromClipboard));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
final nameField = tester.widget<TextField>(find.byType(TextField).first);
|
||||
final keyField = tester.widget<TextField>(find.byType(TextField).last);
|
||||
expect(keyField.controller!.text, keyHex);
|
||||
expect(nameField.focusNode!.hasFocus, isTrue);
|
||||
expect(find.text(_l10n.addContact_publicKeyRequired), findsNothing);
|
||||
expect(find.text(_l10n.addContact_clipboardKeyLoaded), findsOneWidget);
|
||||
await tester.pumpWidget(const SizedBox());
|
||||
});
|
||||
|
||||
testWidgets('empty and invalid clipboard show feedback snackbars', (
|
||||
tester,
|
||||
) async {
|
||||
final connector = await _connectedConnector(tester);
|
||||
|
||||
String? clipboardText;
|
||||
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
|
||||
.setMockMethodCallHandler(SystemChannels.platform, (call) async {
|
||||
if (call.method == 'Clipboard.getData') {
|
||||
return clipboardText == null
|
||||
? null
|
||||
: <String, dynamic>{'text': clipboardText};
|
||||
}
|
||||
return null;
|
||||
});
|
||||
addTearDown(
|
||||
() => TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
|
||||
.setMockMethodCallHandler(SystemChannels.platform, null),
|
||||
);
|
||||
|
||||
await tester.pumpWidget(
|
||||
_wrapApp(connector: connector, home: const AddContactScreen()),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
await tester.tap(find.text(_l10n.contacts_addContactFromClipboard));
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.text(_l10n.contacts_clipboardEmpty), findsOneWidget);
|
||||
|
||||
clipboardText = 'not-a-valid-key-or-uri';
|
||||
await tester.tap(find.text(_l10n.contacts_addContactFromClipboard));
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.text(_l10n.contacts_invalidAdvertFormat), findsOneWidget);
|
||||
await tester.pumpWidget(const SizedBox());
|
||||
});
|
||||
|
||||
testWidgets('rejects adding own public key manually', (tester) async {
|
||||
final connector = await _connectedConnector(tester);
|
||||
|
||||
await tester.pumpWidget(
|
||||
_wrapApp(connector: connector, home: const AddContactScreen()),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
await tester.enterText(find.byType(TextFormField).first, 'Self');
|
||||
await tester.enterText(
|
||||
find.byType(TextFormField).last,
|
||||
connector.selfPublicKeyHex,
|
||||
);
|
||||
await tester.tap(find.byIcon(Icons.check));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.text(_l10n.contactShare_isYou), findsOneWidget);
|
||||
expect(find.byType(AddContactScreen), findsOneWidget);
|
||||
await tester.pumpWidget(const SizedBox());
|
||||
});
|
||||
|
||||
testWidgets('meshcore:// contact URI in clipboard imports contact', (
|
||||
tester,
|
||||
) async {
|
||||
final connector = await _connectedConnector(tester);
|
||||
|
||||
final keyHex = 'cd' * 32;
|
||||
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
|
||||
.setMockMethodCallHandler(SystemChannels.platform, (call) async {
|
||||
if (call.method == 'Clipboard.getData') {
|
||||
return <String, dynamic>{
|
||||
'text': 'meshcore://contact/add?name=UriPeer&public_key=$keyHex',
|
||||
};
|
||||
}
|
||||
return null;
|
||||
});
|
||||
addTearDown(
|
||||
() => TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
|
||||
.setMockMethodCallHandler(SystemChannels.platform, null),
|
||||
);
|
||||
|
||||
await tester.pumpWidget(
|
||||
_wrapApp(
|
||||
connector: connector,
|
||||
home: Builder(
|
||||
builder: (context) => Scaffold(
|
||||
body: Center(
|
||||
child: FilledButton(
|
||||
onPressed: () => Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (_) => const AddContactScreen()),
|
||||
),
|
||||
child: const Text('Open'),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
await tester.tap(find.text('Open'));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
await tester.runAsync(() async {
|
||||
await tester.tap(find.text(_l10n.contacts_addContactFromClipboard));
|
||||
final end = DateTime.now().add(const Duration(seconds: 5));
|
||||
while (!connector.contacts.any((c) => c.publicKeyHex == keyHex) &&
|
||||
DateTime.now().isBefore(end)) {
|
||||
await Future<void>.delayed(const Duration(milliseconds: 25));
|
||||
}
|
||||
});
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(connector.contacts.any((c) => c.name == 'UriPeer'), isTrue);
|
||||
expect(find.byType(AddContactScreen), findsNothing);
|
||||
await tester.pumpWidget(const SizedBox());
|
||||
});
|
||||
|
||||
testWidgets('Contacts FAB and menu item both open AddContactScreen', (
|
||||
tester,
|
||||
) async {
|
||||
final connector = await _connectedConnector(tester);
|
||||
|
||||
await tester.pumpWidget(
|
||||
_wrapApp(connector: connector, home: const ContactsScreen()),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
// Entry point 1: Contacts FAB.
|
||||
await tester.tap(find.byType(FloatingActionButton));
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.byType(AddContactScreen), findsOneWidget);
|
||||
|
||||
await tester.pageBack();
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.byType(AddContactScreen), findsNothing);
|
||||
|
||||
// Entry point 2: Overflow menu item.
|
||||
await tester.tap(find.byIcon(Icons.more_vert));
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text(_l10n.addContact_title));
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.byType(AddContactScreen), findsOneWidget);
|
||||
await tester.pumpWidget(const SizedBox());
|
||||
});
|
||||
|
||||
testWidgets('navigates to Discovered Contacts and adds a discovered node', (
|
||||
tester,
|
||||
) async {
|
||||
final connector = await _connectedConnector(tester);
|
||||
|
||||
final discoveredKey = Uint8List.fromList(List<int>.filled(32, 0x5E));
|
||||
final discoveredKeyHex = pubKeyToHex(discoveredKey);
|
||||
const name = 'Discovered Node';
|
||||
final frameData = ByteData(1 + 32 + 3 + 64 + 32 + 4 + 12);
|
||||
final frame = frameData.buffer.asUint8List();
|
||||
frame[0] = pushCodeNewAdvert;
|
||||
frame.setRange(1, 33, discoveredKey);
|
||||
frame[33] = advTypeChat;
|
||||
frame[35] = 0xFF;
|
||||
frame.setRange(100, 100 + name.length, name.codeUnits);
|
||||
frameData.setUint32(132, 1700000000, Endian.little);
|
||||
connector.handleFrameForTest(frame);
|
||||
|
||||
await tester.pumpWidget(
|
||||
_wrapApp(connector: connector, home: const AddContactScreen()),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
await tester.tap(find.text(_l10n.addContact_fromDiscovered));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.byType(DiscoveryScreen), findsOneWidget);
|
||||
expect(find.text(name), findsOneWidget);
|
||||
|
||||
await tester.runAsync(() async {
|
||||
await tester.tap(find.byIcon(Icons.person_add_alt_1));
|
||||
final end = DateTime.now().add(const Duration(seconds: 5));
|
||||
while (!connector.contacts.any(
|
||||
(c) => c.publicKeyHex == discoveredKeyHex,
|
||||
) &&
|
||||
DateTime.now().isBefore(end)) {
|
||||
await Future<void>.delayed(const Duration(milliseconds: 25));
|
||||
}
|
||||
});
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(
|
||||
connector.contacts.any((c) => c.publicKeyHex == discoveredKeyHex),
|
||||
isTrue,
|
||||
);
|
||||
expect(find.text(_l10n.discoveredContacts_contactAdded), findsOneWidget);
|
||||
await tester.pumpWidget(const SizedBox());
|
||||
});
|
||||
|
||||
testWidgets('disconnected manual submit shows offline error snackbar', (
|
||||
tester,
|
||||
) async {
|
||||
final connector = MeshCoreConnector();
|
||||
addTearDown(connector.dispose);
|
||||
final keyHex = 'ef' * 32;
|
||||
|
||||
await tester.pumpWidget(
|
||||
_wrapApp(connector: connector, home: const AddContactScreen()),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
await tester.enterText(find.byType(TextFormField).first, 'Offline Node');
|
||||
await tester.enterText(find.byType(TextFormField).last, keyHex);
|
||||
await tester.tap(find.byIcon(Icons.check));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.text(_l10n.settings_notConnectedError), findsOneWidget);
|
||||
expect(find.byType(AddContactScreen), findsOneWidget);
|
||||
await tester.pumpWidget(const SizedBox());
|
||||
});
|
||||
|
||||
for (final (label, theme, locale) in [
|
||||
('light en', MeshTheme.light(), const Locale('en')),
|
||||
('dark en', MeshTheme.dark(), const Locale('en')),
|
||||
('dark de', MeshTheme.dark(), const Locale('de')),
|
||||
]) {
|
||||
for (final scale in [1.3, 2.0]) {
|
||||
testWidgets('fits 320dp width at ${scale}x in $label', (tester) async {
|
||||
tester.view.physicalSize = const Size(320, 568);
|
||||
tester.view.devicePixelRatio = 1.0;
|
||||
addTearDown(tester.view.reset);
|
||||
|
||||
final connector = await _connectedConnector(tester);
|
||||
|
||||
final overflows = <String>[];
|
||||
final previous = FlutterError.onError;
|
||||
FlutterError.onError = (details) {
|
||||
final text = details.exceptionAsString();
|
||||
if (text.contains('overflowed')) {
|
||||
overflows.add(text.split('\n').first);
|
||||
} else {
|
||||
previous?.call(details);
|
||||
}
|
||||
};
|
||||
addTearDown(() => FlutterError.onError = previous);
|
||||
|
||||
await tester.pumpWidget(
|
||||
_wrapApp(
|
||||
connector: connector,
|
||||
home: const AddContactScreen(),
|
||||
theme: theme,
|
||||
locale: locale,
|
||||
textScale: scale,
|
||||
),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
FlutterError.onError = previous;
|
||||
expect(overflows, isEmpty, reason: overflows.join('\n'));
|
||||
await tester.pumpWidget(const SizedBox());
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Loaded 100 of 121 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user