Merge upstream/dev (2 commits) [upstream-sync]
This commit is contained in:
commit
b984e1d9a3
60 files changed
+989
-1472
No files matched your search
@@ -426,7 +426,8 @@ lib/
|
||||
│ ├── meshcore_protocol.dart # Protocol definitions & frame parsing
|
||||
│ └── meshcore_uuids.dart # NUS UUIDs; reference name prefixes (not filters)
|
||||
├── screens/
|
||||
│ ├── scanner_screen.dart # Device scanning (home screen)
|
||||
│ ├── connect_screen.dart # Connect a radio: Bluetooth, USB and TCP tabs (home screen)
|
||||
│ ├── scanner_screen.dart # Bluetooth tab: device scanning
|
||||
│ ├── contacts_screen.dart # Contact list
|
||||
│ ├── chat_screen.dart # Direct messaging
|
||||
│ ├── channels_screen.dart # Public channels
|
||||
|
||||
@@ -137,6 +137,7 @@ Icon sizes in use: 24 for tile and banner icons, 20 for menu icons and small act
|
||||
| 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 |
|
||||
| Alternatives on one page | `TabBar` (icon and label per tab) in `AppBar.bottom` with a `TabBarView` | Connect a radio (`connect_screen.dart`). A tab that needs its own FAB is its own `Scaffold` inside its own `ScaffoldMessenger`, so its snackbars lift its FAB. Labels shrink to fit (`FittedBox`) rather than fade. While an action runs that leaving the tab would cancel, lock the tabs: `ExcludeFocus` and `IgnorePointer` at 50 % opacity, and `NeverScrollableScrollPhysics`. When the keyboard leaves under 400 dp, drop the tab bar and the header so a form keeps room |
|
||||
| Status | `StatusChip` | Mono label, coloured dot or icon |
|
||||
| On-device model | `ModelDownloadList` | Name, size, status, selection and one action. See [Model downloads](#model-downloads). |
|
||||
| Metric | `StatTile` | Label wraps to 2 lines; value wraps |
|
||||
@@ -146,6 +147,7 @@ Icon sizes in use: 24 for tile and banner icons, 20 for menu icons and small act
|
||||
| Empty list | `EmptyState(icon:, title:, subtitle:, action:)` | Scrolls rather than overflowing at large text |
|
||||
| Inline error with retry | `ErrorRetryCard(message:, onRetry:, retryLabel:)` | Pass `retryLabel: context.l10n.common_retry` |
|
||||
| Radio offline on a remote-node screen | `RadioDisconnectedBanner` | Renders nothing while connected |
|
||||
| Card the user can close | `GetNodeBanner` (bottom of Connect a radio) | Close `IconButton` (`common_close` tooltip) at the end of the title row; closing hides it with `RevealOnEnable` until the page closes. At most 40 % of the screen height, scrolling inside at large text; hidden on screens under 480 dp tall (a landscape phone) |
|
||||
| Progress bar | `MeshProgressBar`; `MeshProgressAppBarBottom` as an app bar `bottom`; `SyncProgressAppBarBottom` for the app syncs, with `busy: true` while the screen waits for the radio (Settings actions) (`widgets/sync_progress_overlay.dart`) | See [Progress bars](#progress-bars) |
|
||||
| Toast message | `showDismissibleSnackBar(context, content: Text(...))` | Tap to dismiss, replaces the current snackbar, safe after an async gap |
|
||||
| List item entrance | `ListEntrance(index:)` | Optional. Plays only for rows built while the list is at rest at the top; rows scrolled into view appear at once |
|
||||
@@ -177,7 +179,7 @@ Icon sizes in use: 24 for tile and banner icons, 20 for menu icons and small act
|
||||
|
||||
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`. 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.
|
||||
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, the device-info rows on the Settings screen, and the node banner on Connect a radio.
|
||||
|
||||
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`.
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
The app follows this general flow:
|
||||
|
||||
```
|
||||
Launch → Scanner Screen → [Connect via BLE/USB/TCP] → Channels Screen
|
||||
Launch → Connect a radio → [Connect via BLE/USB/TCP] → Channels Screen
|
||||
Launch (a radio connected before) → Channels Screen (offline until connected)
|
||||
```
|
||||
|
||||
@@ -32,17 +32,16 @@ Tapping a tab replaces the current screen with a subtle fade + slight horizontal
|
||||
|
||||
- **Theme mode** is user-configurable in App Settings (System / Light / Dark) — not locked to system
|
||||
- **Language** can be overridden to one of 18 supported languages, or follow the system locale
|
||||
- On web, if a non-Chromium browser is detected, the app shows a `ChromeRequiredScreen` instead of the Scanner (the web client needs Chrome for Web Serial USB)
|
||||
- On web, if a non-Chromium browser is detected, the app shows a `ChromeRequiredScreen` instead of Connect a radio (the web client needs Chrome for Web Serial USB)
|
||||
|
||||
## Full Navigation Graph
|
||||
|
||||
```
|
||||
ScannerScreen (root when no radio is remembered; otherwise pushed from the connect sheet)
|
||||
├─ [BLE connect] → ChannelsScreen as the only route
|
||||
├─ [TCP icon button] → push → TcpScreen
|
||||
│ └─ [TCP connected] → ChannelsScreen as the only route
|
||||
└─ [USB icon button] → push → UsbScreen
|
||||
└─ [USB connected] → ChannelsScreen as the only route
|
||||
ConnectScreen (root when no radio is remembered; otherwise pushed from the connect sheet,
|
||||
on the tab of the last radio's connection type)
|
||||
├─ [Bluetooth tab: BLE connect] → ChannelsScreen as the only route
|
||||
├─ [USB tab: USB connect] → ChannelsScreen as the only route
|
||||
└─ [TCP tab: TCP connect] → ChannelsScreen as the only route
|
||||
|
||||
ContactsScreen (selected=0)
|
||||
├─ [quick-switch 1] → pushReplacement → ChannelsScreen
|
||||
@@ -71,7 +70,7 @@ Settings (push from any main screen)
|
||||
└─ [Offline Map Cache] → push → MapCacheScreen
|
||||
```
|
||||
|
||||
A connection made from the scanner, USB, TCP or review mode replaces the whole stack with ChannelsScreen (`navigateToMainAfterConnect`). Leaving the scanner cancels only a Bluetooth connection it started; a pending automatic reconnect is left alone.
|
||||
A connection made from any tab or from review mode replaces the whole stack with ChannelsScreen (`navigateToMainAfterConnect`). Leaving the Bluetooth tab cancels a Bluetooth connection in progress, leaving the USB tab a USB one, and leaving the TCP tab only a connection started from it (the tabs are locked while connecting); a pending automatic reconnect is left alone.
|
||||
|
||||
## Additional settings destinations
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ When no radio is connected, the app keeps showing the last radio you connected t
|
||||
|
||||
## What you see
|
||||
|
||||
- **Launch.** If a radio has connected before, the app opens on Channels instead of the scanner. With no remembered radio it opens on the scanner, as before.
|
||||
- **Launch.** If a radio has connected before, the app opens on Channels instead of Connect a radio. With no remembered radio it opens on Connect a radio, as before.
|
||||
- **Contacts, channels, messages, unread counts and the map** show that radio's saved data. Chats open, scroll, search and jump as usual.
|
||||
- **App bar.** The battery and signal indicators are replaced by a **Connect** button (icon only on narrow screens). The subtitle reads "Offline · *radio name*". While the app is connecting, or a dropped link will be retried, a "Reconnecting…" chip shows instead; tapping it opens the same sheet.
|
||||
- **Message box.** Each chat replaces the message box with "Connect to a radio to send messages" and a Connect button. Text you typed before the link dropped is kept and comes back when the radio reconnects.
|
||||
@@ -13,13 +13,13 @@ When no radio is connected, the app keeps showing the last radio you connected t
|
||||
|
||||
The Connect button and the overflow menu's **Connect** entry (it replaces **Disconnect** while offline) open a sheet with:
|
||||
|
||||
- **Reconnect to *name*.** For a Bluetooth or TCP radio. It connects directly, without the scanner. Not offered on web.
|
||||
- **Choose a radio.** Opens the scanner (Bluetooth, USB or TCP). For a USB radio, or on web, it opens the USB screen.
|
||||
- **Reconnect to *name*.** For a Bluetooth or TCP radio. It connects directly, without Connect a radio. Not offered on web.
|
||||
- **Choose a radio.** Opens Connect a radio on the tab of the last radio's connection type (Bluetooth, USB or TCP); on web, the USB tab.
|
||||
- **Stop reconnecting.** Shown while an automatic reconnect is pending.
|
||||
|
||||
After a connection made from the scanner, USB, TCP or review mode, the app shows Channels as its only screen. Reconnecting from the sheet keeps you on the screen you were on.
|
||||
After a connection made from Connect a radio or review mode, the app shows Channels as its only screen. Reconnecting from the sheet keeps you on the screen you were on.
|
||||
|
||||
**Disconnect** asks for confirmation and then leaves you on the same screen, offline. The app no longer returns to the scanner when a radio disconnects.
|
||||
**Disconnect** asks for confirmation and then leaves you on the same screen, offline. The app no longer returns to Connect a radio when a radio disconnects.
|
||||
|
||||
## What is available offline
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@ Review mode is a hidden mode for Google Play and App Store reviewers who have no
|
||||
|
||||
## Entering and Exiting
|
||||
|
||||
1. Open the **Connect** (scanner) screen.
|
||||
2. **Long-press the "MeshCore Open" title.**
|
||||
1. Open the **Connect a radio** screen.
|
||||
2. **Long-press the "Connect a radio" title.**
|
||||
3. Tap **Enter** in the dialog. The app connects to the simulated radio and opens the channel list.
|
||||
|
||||
While review mode is active, a banner at the top of the channel and contact lists shows **Send test message** and **Exit**. Tap **Exit**, or disconnect as usual, to leave review mode. The simulator is shut down, its data is deleted, and the app returns to the Connect screen.
|
||||
|
||||
@@ -1,39 +1,38 @@
|
||||
# Scanner & Connection
|
||||
|
||||
## BLE Scanner (Home Screen)
|
||||
## Connect a Radio
|
||||
|
||||
The BLE Scanner is the app's home screen until a radio has connected once. After that the app opens on Channels with the last radio's saved data ([offline mode](offline-mode.md)).
|
||||
**Connect a radio** is the app's home screen until a radio has connected once. After that the app opens on Channels with the last radio's saved data ([offline mode](offline-mode.md)).
|
||||
|
||||
### How to Access
|
||||
|
||||
- Opens automatically when the app starts and no radio is remembered
|
||||
- From the main screens: **Connect** (app bar or overflow menu) → **Choose a radio**
|
||||
- From the main screens: **Connect** (app bar or overflow menu) → **Choose a radio**. It opens on the tab of the last radio's connection type (on web, the USB tab)
|
||||
- Disconnecting no longer returns here; the main screens stay open, read-only
|
||||
|
||||
### What the User Sees
|
||||
|
||||
**App Bar**: Centered title "Scanner".
|
||||
**App Bar**: Centered title "Connect a radio" with **Bluetooth**, **USB** and **TCP** tabs below it. Tap a tab or swipe between them. There is no USB tab on iOS, and no TCP tab on web (Chrome). The tabs stay put while a connection is being made, because leaving a tab cancels its connection.
|
||||
|
||||
**Bluetooth-Off Warning Banner** (conditional): Appears when the Bluetooth adapter is off, showing a `bluetooth_disabled` icon, a warning message, and on Android, an "Enable Bluetooth" button.
|
||||
|
||||
**Status Bar**: A full-width colored strip reflecting the current connection state:
|
||||
**Status Chip**: Under the tabs, the same on every tab:
|
||||
|
||||
| State | Text | Color |
|
||||
|---|---|---|
|
||||
| Disconnected | "Not connected" | Grey |
|
||||
| Scanning | "Scanning..." | Blue |
|
||||
| Scanning (Bluetooth) | "Scanning for devices..." | Blue |
|
||||
| Connecting | "Connecting..." | Orange |
|
||||
| Connected | "Connected to \<device name\>" | Green |
|
||||
| Connected | "Connected to \<device name, USB port or TCP endpoint\>" | Green |
|
||||
| Disconnecting | "Disconnecting..." | Orange |
|
||||
|
||||
**Device List**: When no devices are found, shows a large Bluetooth icon with a prompt. The prompt text is dynamic: "Searching for devices..." while actively scanning, or "Tap Scan to search" when idle. When devices are found, shows a scrollable list of `DeviceTile` widgets.
|
||||
**Need a new node? card** (bottom of the page): Shown only when the remote `_banner.meshcoreopen.org` record turns it on, and not on a screen too short for it (under 480 dp, such as a landscape phone). Tapping it opens the shop link. **Close** hides it on every tab until you leave the page; it shows again the next time you open it.
|
||||
|
||||
**App Bar Actions**: Icon buttons in the top-right corner of the app bar:
|
||||
- **USB** icon button - Opens USB connection screen (Android, Windows, Linux, macOS, Chrome web only)
|
||||
- **TCP/IP** icon button - Opens TCP connection screen (all non-web platforms)
|
||||
## Bluetooth Tab
|
||||
|
||||
**Bottom FAB**: A single floating action button:
|
||||
- **BLE Scan** button - Toggles BLE scanning on/off; shows a spinner when scanning. **Disabled** (greyed out, not tappable) when Bluetooth is off
|
||||
**Bluetooth-Off Warning Banner** (conditional): Appears when the Bluetooth adapter is off, showing a `bluetooth_disabled` icon, a warning message, and on Android, an "Enable Bluetooth" button.
|
||||
|
||||
**Device List**: When no devices are found, shows a large Bluetooth icon with a prompt: "Searching for MeshCore devices..." while scanning, or "Tap Scan to find MeshCore devices" when idle. When devices are found, shows a scrollable list of `DeviceTile` rows.
|
||||
|
||||
**Scan Button** (bottom right): Toggles BLE scanning on/off; shows a spinner when scanning. **Disabled** (greyed out, not tappable) when Bluetooth is off. Leaving the tab stops a scan, so the other tabs can connect straight away. On web, Scan explains that Bluetooth isn't available in the browser.
|
||||
|
||||
### Device Tile
|
||||
|
||||
@@ -47,7 +46,7 @@ Each discovered device is displayed as a list tile showing:
|
||||
- **RSSI value** in dBm (e.g., "-72 dBm")
|
||||
- **Device name** (falls back to "Unknown Device")
|
||||
- **Device ID** (BLE MAC address on Android; a system-assigned UUID on iOS/macOS)
|
||||
- **Connect button** (the entire tile row is also tappable — both trigger connection)
|
||||
- The whole row is tappable to connect; a progress ring replaces the signal while connecting
|
||||
|
||||
Note: The weak (-80 to -90 dBm) and poor (< -90 dBm) tiers share the same icon shape and are only differentiated by color (orange vs. red).
|
||||
|
||||
@@ -61,7 +60,7 @@ Note: The weak (-80 to -90 dBm) and poor (< -90 dBm) tiers share the same icon s
|
||||
|
||||
### Connecting to a Device
|
||||
|
||||
Tap a device tile or its Connect button:
|
||||
Tap a device row:
|
||||
1. The connector stops scanning and transitions to "connecting"
|
||||
2. Connects to the device with a 15-second timeout (6 seconds on Linux)
|
||||
3. Requests MTU 185 bytes for optimal throughput
|
||||
@@ -72,57 +71,46 @@ Tap a device tile or its Connect button:
|
||||
|
||||
---
|
||||
|
||||
## USB Connection
|
||||
|
||||
### How to Access
|
||||
|
||||
From the Scanner screen, tap the **USB** icon button in the app bar.
|
||||
## USB Tab
|
||||
|
||||
### What the User Sees
|
||||
|
||||
- A colored status bar at the top (same color scheme as BLE scanner)
|
||||
- A list of detected USB serial ports, each showing:
|
||||
- A list of detected USB serial ports, in the same rows as Bluetooth devices:
|
||||
- Friendly display name
|
||||
- Raw port name (subtitle, only shown when it differs from the display name)
|
||||
- Chevron trailing icon (the entire tile is tappable to connect)
|
||||
- Transport switcher buttons (outlined, not FABs) to switch to BLE or TCP (these use `pushReplacement`, so back navigation returns to Scanner, not between USB/TCP)
|
||||
- Raw port name (only shown when it differs from the display name)
|
||||
- A progress ring on the port being connected
|
||||
- On web: a **Choose serial port** button opens the browser's port picker; ports you already allowed are listed below it
|
||||
|
||||
### Key Interactions
|
||||
|
||||
- On desktop (Windows, Linux, macOS): ports are polled every 2 seconds for hot-plug detection (polling pauses while connecting/connected)
|
||||
- On mobile: tap the "Scan" FAB to manually refresh
|
||||
- Tap a port tile to connect
|
||||
- On desktop (Windows, Linux, macOS): ports are polled every 2 seconds for hot-plug detection (polling pauses while connecting/connected); with nothing plugged in, the list says a radio shows up by itself
|
||||
- On Android: tap **Refresh** to look for ports again
|
||||
- Tap a port row to connect
|
||||
- On successful connection, navigates to Channels screen
|
||||
- On connection failure, the port list automatically refreshes
|
||||
- Platform-specific error messages for common USB failures (permission denied, device missing, device detached, device busy, driver missing, port invalid, timeout, and more)
|
||||
|
||||
---
|
||||
|
||||
## TCP Connection
|
||||
|
||||
### How to Access
|
||||
|
||||
From the Scanner screen, tap the **TCP/IP** icon button in the app bar.
|
||||
## TCP Tab
|
||||
|
||||
### What the User Sees
|
||||
|
||||
- A colored status bar at the top
|
||||
- **Host address** text field
|
||||
- **Port number** text field
|
||||
- **Endpoint** text field
|
||||
- **Port** text field
|
||||
- **Connect** button
|
||||
- Transport switcher buttons (outlined, not FABs) to switch to USB or BLE
|
||||
|
||||
### Key Interactions
|
||||
|
||||
- Last-used host and port are pre-populated from saved settings
|
||||
- Last-used endpoint and port are pre-populated from saved settings
|
||||
- On short screens, the tabs and the status chip hide while the keyboard is open
|
||||
- Tap Connect to validate inputs and connect
|
||||
- Host must not be empty
|
||||
- Endpoint must not be empty
|
||||
- Port must be a number between 1 and 65535
|
||||
- Validation errors are shown as red snackbars
|
||||
- Validation errors are shown under the fields
|
||||
- The Connect button shows a spinner and "Connecting..." label while in progress
|
||||
- The status bar shows the specific host:port being connected to (e.g., "Connecting to 192.168.1.1:5000")
|
||||
- On success, navigates to Channels screen and saves the host/port to settings
|
||||
- On connection, the status bar shows the active TCP endpoint (e.g., "Connected to 192.168.1.1:5000")
|
||||
- On success, navigates to Channels screen and saves the endpoint and port to settings
|
||||
- On connection, the status chip shows the active TCP endpoint (e.g., "Connected to 192.168.1.1:5000")
|
||||
- Error messages for timeout, unsupported platform, and connection failures
|
||||
|
||||
### Automatic Reconnect
|
||||
|
||||
@@ -16,7 +16,7 @@ Use Chrome (or a Chromium browser that identifies as Chrome) and HTTPS (or an ap
|
||||
|
||||
## Unexpected disconnect
|
||||
|
||||
BLE and TCP retry an unexpected disconnect with exponential backoff; manual disconnects do not trigger reconnect. USB requires reconnection through its connection screen. If a TCP companion still drops in the background on Android, allow background activity (App Settings → Notifications → **Background Activity**) and check the phone's Wi-Fi power-saving settings. Navigation returns to the scanner when a connection is lost. If reconnect continues to fail, check power, firmware, adapter state, and competing clients.
|
||||
BLE and TCP retry an unexpected disconnect with exponential backoff; manual disconnects do not trigger reconnect. USB requires reconnecting from the USB tab of **Connect a radio**. If a TCP companion still drops in the background on Android, allow background activity (App Settings → Notifications → **Background Activity**) and check the phone's Wi-Fi power-saving settings. When a connection is lost, the app stays on the current screen, read-only. If reconnect continues to fail, check power, firmware, adapter state, and competing clients.
|
||||
|
||||
## Feature unavailable or no data
|
||||
|
||||
|
||||
+1
-15
@@ -54,7 +54,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"scanner_title": "MeshCore – Отворена версия",
|
||||
"scanner_scanning": "Сканиране за устройства...",
|
||||
"scanner_connecting": "Свързвам се...",
|
||||
"scanner_disconnecting": "Изключване...",
|
||||
@@ -2164,12 +2163,12 @@
|
||||
"map_guessedLocation": "Предполагано местоположение",
|
||||
"map_showGuessedLocations": "Покажете местоположенията на предположените възли.",
|
||||
"connectionChoiceUsbLabel": "USB",
|
||||
"usbScreenTitle": "Свържете се чрез USB",
|
||||
"connectionChoiceBluetoothLabel": "Bluetooth",
|
||||
"usbScreenSubtitle": "Изберете открития сериен уред и свържете директно към вашия MeshCore възел.",
|
||||
"usbScreenStatus": "Изберете USB устройство",
|
||||
"usbScreenNote": "USB серийната връзка е активна на поддържаните Android устройства и настолни платформи.",
|
||||
"usbScreenEmptyState": "Няма открити USB устройства. Включете едно и опитайте отново.",
|
||||
"usbScreenEmptyStateAuto": "Няма открити USB устройства. Включете едно и то ще се появи тук.",
|
||||
"usbErrorPermissionDenied": "Не беше разрешено достъпът през USB.",
|
||||
"usbErrorDeviceMissing": "Избраното USB устройство вече не е налично.",
|
||||
"usbErrorInvalidPort": "Изберете валитно USB устройство.",
|
||||
@@ -2189,18 +2188,9 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"usbStatus_connecting": "Свързване към USB устройство...",
|
||||
"usbConnectionFailed": "Неуспешно свързване през USB: {error}",
|
||||
"usbStatus_notConnected": "Изберете USB устройство",
|
||||
"usbStatus_searching": "Търсене на USB устройства...",
|
||||
"usbErrorConnectTimedOut": "Връзката прекъсна. Уверете се, че устройството има софтуер за USB връзка.",
|
||||
"@tcpStatus_connectingTo": {
|
||||
"placeholders": {
|
||||
"endpoint": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@tcpConnectionFailed": {
|
||||
"placeholders": {
|
||||
"error": {
|
||||
@@ -2209,13 +2199,10 @@
|
||||
}
|
||||
},
|
||||
"tcpHostHint": "192.168.40.10",
|
||||
"tcpScreenTitle": "Свържете се чрез TCP",
|
||||
"connectionChoiceTcpLabel": "TCP",
|
||||
"tcpHostLabel": "IP адрес",
|
||||
"tcpPortLabel": "Пристанище",
|
||||
"tcpPortHint": "5000",
|
||||
"tcpStatus_notConnected": "Въведете крайната точка и свържете се.",
|
||||
"tcpStatus_connectingTo": "Свързване към {endpoint}...",
|
||||
"tcpErrorHostRequired": "Необходим е IP адрес.",
|
||||
"tcpErrorPortInvalid": "Портът трябва да бъде между 1 и 65535.",
|
||||
"tcpErrorUnsupported": "Транспортът чрез TCP не се поддържа на тази платформа.",
|
||||
@@ -3412,7 +3399,6 @@
|
||||
}
|
||||
},
|
||||
"community_shortId": "ID: {id}…",
|
||||
"tcpSectionTitle": "TCP / IP",
|
||||
"tcpConnectedToHeader": "Свързан с",
|
||||
"usbChooseSerialPort": "Изберете сериен порт",
|
||||
"neighbors_durationSeconds": "{seconds}с",
|
||||
|
||||
+1
-15
@@ -90,24 +90,13 @@
|
||||
},
|
||||
"common_autoRefresh": "Automatické obnovení",
|
||||
"common_interval": "Interval",
|
||||
"scanner_title": "MeshCore Open",
|
||||
"connectionChoiceUsbLabel": "USB",
|
||||
"connectionChoiceBluetoothLabel": "Bluetooth",
|
||||
"connectionChoiceTcpLabel": "TCP",
|
||||
"tcpScreenTitle": "Připojení přes TCP",
|
||||
"tcpHostLabel": "Koncový bod",
|
||||
"tcpHostHint": "192.168.40.10 / example.com",
|
||||
"tcpPortLabel": "Port",
|
||||
"tcpPortHint": "5000",
|
||||
"tcpStatus_notConnected": "Zadejte koncový bod a připojte se",
|
||||
"tcpStatus_connectingTo": "Připojování k {endpoint}...",
|
||||
"@tcpStatus_connectingTo": {
|
||||
"placeholders": {
|
||||
"endpoint": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"tcpErrorHostRequired": "Hostitel je povinný.",
|
||||
"tcpErrorPortInvalid": "Port musí být mezi 1 a 65535.",
|
||||
"tcpErrorUnsupported": "Přenos přes TCP není na této platformě podporován.",
|
||||
@@ -120,11 +109,11 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"usbScreenTitle": "Připojení přes USB",
|
||||
"usbScreenSubtitle": "Vyberte rozpoznané sériové zařízení a připojte se přímo ke svému uzlu MeshCore.",
|
||||
"usbScreenStatus": "Vyberte zařízení USB",
|
||||
"usbScreenNote": "Sériové USB funguje na podporovaných zařízeních Android a na desktopových platformách.",
|
||||
"usbScreenEmptyState": "Nebyla nalezena žádná zařízení USB. Připojte nějaké a obnovte.",
|
||||
"usbScreenEmptyStateAuto": "Nebyla nalezena žádná zařízení USB. Připojte nějaké a zobrazí se zde.",
|
||||
"usbErrorPermissionDenied": "Oprávnění k USB bylo odepřeno.",
|
||||
"usbErrorDeviceMissing": "Vybrané zařízení USB už není dostupné.",
|
||||
"usbErrorInvalidPort": "Vyberte platné zařízení USB.",
|
||||
@@ -138,8 +127,6 @@
|
||||
"usbErrorPortClosed": "Připojení USB není otevřené.",
|
||||
"usbErrorConnectTimedOut": "Časový limit připojení vypršel. Ujistěte se, že zařízení má firmware USB Companion.",
|
||||
"usbFallbackDeviceName": "Zařízení Web Serial",
|
||||
"usbStatus_notConnected": "Vyberte zařízení USB",
|
||||
"usbStatus_connecting": "Připojování k zařízení USB...",
|
||||
"usbStatus_searching": "Hledání zařízení USB...",
|
||||
"usbConnectionFailed": "Připojení USB se nezdařilo: {error}",
|
||||
"@usbConnectionFailed": {
|
||||
@@ -4016,7 +4003,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"tcpSectionTitle": "TCP / IP",
|
||||
"tcpConnectedToHeader": "Připojeno k",
|
||||
"usbChooseSerialPort": "Vyberte sériový port",
|
||||
"neighbors_durationSeconds": "{seconds} s",
|
||||
|
||||
+1
-15
@@ -54,7 +54,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"scanner_title": "MeshCore Open",
|
||||
"scanner_scanning": "Suche nach Geräten...",
|
||||
"scanner_connecting": "Verbinde...",
|
||||
"scanner_disconnecting": "Trenne...",
|
||||
@@ -2292,11 +2291,11 @@
|
||||
"map_guessedLocation": "Vermuteter Standort",
|
||||
"usbScreenSubtitle": "Wählen Sie ein erkanntes serielles Gerät aus und verbinden Sie es direkt mit Ihrem MeshCore-Knoten.",
|
||||
"connectionChoiceUsbLabel": "USB",
|
||||
"usbScreenTitle": "Über USB verbinden",
|
||||
"connectionChoiceBluetoothLabel": "Bluetooth",
|
||||
"usbScreenStatus": "Wählen Sie ein USB-Gerät aus",
|
||||
"usbScreenNote": "USB-Seriell ist auf unterstützten Android-Geräten und Desktop-Plattformen verfügbar.",
|
||||
"usbScreenEmptyState": "Keine USB-Geräte gefunden. Schließen Sie eines an und aktualisieren Sie.",
|
||||
"usbScreenEmptyStateAuto": "Keine USB-Geräte gefunden. Schließen Sie eines an, dann erscheint es hier.",
|
||||
"usbErrorPermissionDenied": "Die USB-Berechtigung wurde abgelehnt.",
|
||||
"usbErrorDeviceMissing": "Das ausgewählte USB-Gerät ist nicht mehr verfügbar.",
|
||||
"usbErrorInvalidPort": "Wählen Sie ein gültiges USB-Gerät aus.",
|
||||
@@ -2317,17 +2316,8 @@
|
||||
}
|
||||
},
|
||||
"usbStatus_searching": "Suche nach USB-Geräten...",
|
||||
"usbStatus_notConnected": "Wählen Sie ein USB-Gerät aus",
|
||||
"usbStatus_connecting": "Verbindung zum USB-Gerät wird hergestellt...",
|
||||
"usbConnectionFailed": "USB-Verbindung fehlgeschlagen: {error}",
|
||||
"usbErrorConnectTimedOut": "Verbindung konnte nicht hergestellt werden. Stellen Sie sicher, dass das Gerät über USB-Companion-Firmware verfügt.",
|
||||
"@tcpStatus_connectingTo": {
|
||||
"placeholders": {
|
||||
"endpoint": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@tcpConnectionFailed": {
|
||||
"placeholders": {
|
||||
"error": {
|
||||
@@ -2338,11 +2328,8 @@
|
||||
"tcpHostLabel": "Endpunkt",
|
||||
"connectionChoiceTcpLabel": "TCP",
|
||||
"tcpHostHint": "192.168.40.10 / example.com",
|
||||
"tcpScreenTitle": "Verbinden über TCP",
|
||||
"tcpPortLabel": "Port",
|
||||
"tcpPortHint": "5000",
|
||||
"tcpStatus_notConnected": "Endpunkt eingeben und verbinden",
|
||||
"tcpStatus_connectingTo": "Verbindung zu {endpoint}...",
|
||||
"tcpErrorHostRequired": "Ein Endpunkt ist erforderlich.",
|
||||
"tcpErrorPortInvalid": "Die Portnummer muss zwischen 1 und 65535 liegen.",
|
||||
"tcpErrorUnsupported": "TCP wird auf dieser Plattform nicht unterstützt.",
|
||||
@@ -3547,7 +3534,6 @@
|
||||
}
|
||||
},
|
||||
"community_shortId": "ID: {id}…",
|
||||
"tcpSectionTitle": "TCP / IP",
|
||||
"tcpConnectedToHeader": "Verbunden mit",
|
||||
"usbChooseSerialPort": "Serielle Schnittstelle wählen",
|
||||
"neighbors_durationSeconds": "{seconds} s",
|
||||
|
||||
+1
-15
@@ -91,24 +91,13 @@
|
||||
},
|
||||
"common_autoRefresh": "Autorefresh",
|
||||
"common_interval": "Interval",
|
||||
"scanner_title": "MeshCore Open",
|
||||
"connectionChoiceUsbLabel": "USB",
|
||||
"connectionChoiceBluetoothLabel": "Bluetooth",
|
||||
"connectionChoiceTcpLabel": "TCP",
|
||||
"tcpScreenTitle": "Connect over TCP",
|
||||
"tcpHostLabel": "Endpoint",
|
||||
"tcpHostHint": "192.168.40.10 / example.com",
|
||||
"tcpPortLabel": "Port",
|
||||
"tcpPortHint": "5000",
|
||||
"tcpStatus_notConnected": "Enter endpoint and connect",
|
||||
"tcpStatus_connectingTo": "Connecting to {endpoint}...",
|
||||
"@tcpStatus_connectingTo": {
|
||||
"placeholders": {
|
||||
"endpoint": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"tcpErrorHostRequired": "Host is required.",
|
||||
"tcpErrorPortInvalid": "Port must be between 1 and 65535.",
|
||||
"tcpErrorUnsupported": "TCP transport is not supported on this platform.",
|
||||
@@ -121,11 +110,11 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"usbScreenTitle": "Connect over USB",
|
||||
"usbScreenSubtitle": "Choose a detected serial device and connect directly to your MeshCore node.",
|
||||
"usbScreenStatus": "Select a USB device",
|
||||
"usbScreenNote": "USB serial is active on supported Android devices and desktop platforms.",
|
||||
"usbScreenEmptyState": "No USB devices found. Plug one in and refresh.",
|
||||
"usbScreenEmptyStateAuto": "No USB devices found. Plug one in and it shows up here.",
|
||||
"usbErrorPermissionDenied": "USB permission was denied.",
|
||||
"usbErrorDeviceMissing": "The selected USB device is no longer available.",
|
||||
"usbErrorInvalidPort": "Select a valid USB device.",
|
||||
@@ -139,8 +128,6 @@
|
||||
"usbErrorPortClosed": "The USB connection is not open.",
|
||||
"usbErrorConnectTimedOut": "Connection timed out. Make sure the device has USB Companion firmware.",
|
||||
"usbFallbackDeviceName": "Web Serial Device",
|
||||
"usbStatus_notConnected": "Select a USB device",
|
||||
"usbStatus_connecting": "Connecting to USB device...",
|
||||
"usbStatus_searching": "Searching for USB devices...",
|
||||
"usbConnectionFailed": "USB connection failed: {error}",
|
||||
"@usbConnectionFailed": {
|
||||
@@ -4077,7 +4064,6 @@
|
||||
"@contacts_keyPrefixSemantics": {"placeholders": {"prefix": {"type": "String"}}},
|
||||
"community_shortId": "ID: {id}…",
|
||||
"@community_shortId": {"placeholders": {"id": {"type": "String"}}},
|
||||
"tcpSectionTitle": "TCP / IP",
|
||||
"tcpConnectedToHeader": "Connected to",
|
||||
"usbChooseSerialPort": "Choose serial port",
|
||||
"neighbors_durationSeconds": "{seconds}s",
|
||||
|
||||
+1
-15
@@ -54,7 +54,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"scanner_title": "MeshCore Open",
|
||||
"scanner_scanning": "Escaneando dispositivos...",
|
||||
"scanner_connecting": "Conectando...",
|
||||
"scanner_disconnecting": "Desconectando...",
|
||||
@@ -2221,13 +2220,13 @@
|
||||
},
|
||||
"map_guessedLocation": "Ubicación estimada",
|
||||
"map_showGuessedLocations": "Mostrar las ubicaciones estimadas de los nodos.",
|
||||
"usbScreenTitle": "Conecte mediante USB",
|
||||
"connectionChoiceUsbLabel": "USB",
|
||||
"connectionChoiceBluetoothLabel": "Bluetooth",
|
||||
"usbScreenSubtitle": "Seleccione el dispositivo de serie detectado y conéctelo directamente a su nodo MeshCore.",
|
||||
"usbScreenStatus": "Seleccione un dispositivo USB",
|
||||
"usbScreenNote": "La comunicación serial a través de USB está activa en dispositivos Android compatibles y en plataformas de escritorio.",
|
||||
"usbScreenEmptyState": "No se encontraron dispositivos USB. Conecte uno y vuelva a intentar.",
|
||||
"usbScreenEmptyStateAuto": "No se encontraron dispositivos USB. Conecte uno y aparecerá aquí.",
|
||||
"usbErrorPermissionDenied": "Se denegó el permiso de acceso a través de USB.",
|
||||
"usbErrorDeviceMissing": "El dispositivo USB seleccionado ya no está disponible.",
|
||||
"usbErrorInvalidPort": "Seleccione un dispositivo USB válido.",
|
||||
@@ -2247,18 +2246,9 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"usbStatus_connecting": "Conectándose al dispositivo USB...",
|
||||
"usbStatus_searching": "Buscando dispositivos USB...",
|
||||
"usbStatus_notConnected": "Seleccione un dispositivo USB",
|
||||
"usbConnectionFailed": "Error al conectar mediante USB: {error}",
|
||||
"usbErrorConnectTimedOut": "La conexión ha caducado. Asegúrese de que el dispositivo tenga el firmware USB Companion.",
|
||||
"@tcpStatus_connectingTo": {
|
||||
"placeholders": {
|
||||
"endpoint": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@tcpConnectionFailed": {
|
||||
"placeholders": {
|
||||
"error": {
|
||||
@@ -2266,14 +2256,11 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"tcpScreenTitle": "Establecer conexión a través de TCP",
|
||||
"connectionChoiceTcpLabel": "TCP",
|
||||
"tcpHostHint": "192.168.40.10",
|
||||
"tcpHostLabel": "Dirección IP",
|
||||
"tcpPortLabel": "Puerto",
|
||||
"tcpPortHint": "5000",
|
||||
"tcpStatus_notConnected": "Ingrese la dirección final y conecte.",
|
||||
"tcpStatus_connectingTo": "Conectándose a {endpoint}...",
|
||||
"tcpErrorHostRequired": "Se requiere la dirección IP.",
|
||||
"tcpErrorPortInvalid": "El puerto debe estar entre 1 y 65535.",
|
||||
"tcpErrorUnsupported": "El protocolo de transporte TCP no está soportado en esta plataforma.",
|
||||
@@ -3424,7 +3411,6 @@
|
||||
"contacts_advertFailed": "No se pudo enviar el anuncio",
|
||||
"contacts_manageGroups": "Gestionar grupos",
|
||||
"community_shortId": "ID: {id}…",
|
||||
"tcpSectionTitle": "TCP / IP",
|
||||
"tcpConnectedToHeader": "Conectado a",
|
||||
"usbChooseSerialPort": "Elegir puerto serie",
|
||||
"neighbors_durationSeconds": "{seconds} s",
|
||||
|
||||
+1
-15
@@ -54,7 +54,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"scanner_title": "MeshCore Open",
|
||||
"scanner_scanning": "Recherche de périphériques...",
|
||||
"scanner_connecting": "Connexion en cours...",
|
||||
"scanner_disconnecting": "Déconnexion...",
|
||||
@@ -2215,12 +2214,12 @@
|
||||
"map_showGuessedLocations": "Afficher les emplacements estimés des nœuds",
|
||||
"map_guessedLocation": "Localisation estimée",
|
||||
"connectionChoiceUsbLabel": "USB",
|
||||
"usbScreenTitle": "Connectez via USB",
|
||||
"connectionChoiceBluetoothLabel": "Bluetooth",
|
||||
"usbScreenSubtitle": "Sélectionnez un périphérique série détecté et connectez-vous directement à votre nœud MeshCore.",
|
||||
"usbScreenStatus": "Sélectionnez un périphérique USB",
|
||||
"usbScreenNote": "La communication série USB est active sur les appareils Android et les plateformes de bureau compatibles.",
|
||||
"usbScreenEmptyState": "Aucun périphérique USB n'a été trouvé. Veuillez en brancher un et rafraîchir la page.",
|
||||
"usbScreenEmptyStateAuto": "Aucun périphérique USB n'a été trouvé. Veuillez en brancher un et il apparaîtra ici.",
|
||||
"usbErrorPermissionDenied": "L'accès via USB a été refusé.",
|
||||
"usbErrorDeviceMissing": "Le périphérique USB sélectionné n'est plus disponible.",
|
||||
"usbErrorInvalidPort": "Sélectionnez un périphérique USB valide.",
|
||||
@@ -2240,18 +2239,9 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"usbStatus_notConnected": "Sélectionnez un périphérique USB",
|
||||
"usbConnectionFailed": "Échec de la connexion USB : {error}",
|
||||
"usbStatus_connecting": "Connexion au périphérique USB...",
|
||||
"usbStatus_searching": "Recherche de périphériques USB...",
|
||||
"usbErrorConnectTimedOut": "La connexion a expiré. Assurez-vous que l'appareil dispose du firmware USB Companion.",
|
||||
"@tcpStatus_connectingTo": {
|
||||
"placeholders": {
|
||||
"endpoint": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@tcpConnectionFailed": {
|
||||
"placeholders": {
|
||||
"error": {
|
||||
@@ -2261,12 +2251,9 @@
|
||||
},
|
||||
"tcpHostLabel": "Adresse IP",
|
||||
"connectionChoiceTcpLabel": "TCP",
|
||||
"tcpScreenTitle": "Établir une connexion via TCP",
|
||||
"tcpHostHint": "192.168.40.10",
|
||||
"tcpPortLabel": "Port",
|
||||
"tcpPortHint": "5000",
|
||||
"tcpStatus_notConnected": "Entrez l'adresse de destination et connectez-vous.",
|
||||
"tcpStatus_connectingTo": "Connexion à {endpoint}...",
|
||||
"tcpErrorHostRequired": "Une adresse IP est obligatoire.",
|
||||
"tcpErrorPortInvalid": "La taille du port doit être comprise entre 1 et 65535.",
|
||||
"tcpErrorUnsupported": "Le protocole TCP n'est pas pris en charge sur cette plateforme.",
|
||||
@@ -3424,7 +3411,6 @@
|
||||
"contacts_advertFailed": "Impossible d'envoyer l'annonce",
|
||||
"contacts_manageGroups": "Gérer les groupes",
|
||||
"community_shortId": "ID : {id}…",
|
||||
"tcpSectionTitle": "TCP / IP",
|
||||
"tcpConnectedToHeader": "Connecté à",
|
||||
"usbChooseSerialPort": "Choisir le port série",
|
||||
"neighbors_durationSeconds": "{seconds} s",
|
||||
|
||||
+1
-15
@@ -48,24 +48,13 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"scanner_title": "MeshCore Open",
|
||||
"connectionChoiceUsbLabel": "USB",
|
||||
"connectionChoiceBluetoothLabel": "Bluetooth",
|
||||
"connectionChoiceTcpLabel": "TCP",
|
||||
"tcpScreenTitle": "Csatlakozzon TCP-n keresztül",
|
||||
"tcpHostLabel": "Végpont",
|
||||
"tcpHostHint": "192.168.40.10 / example.com",
|
||||
"tcpPortLabel": "Kikötő",
|
||||
"tcpPortHint": "5000",
|
||||
"tcpStatus_notConnected": "Adja meg a végpontot, és csatlakozzon",
|
||||
"tcpStatus_connectingTo": "Csatlakozás a következőhöz: {endpoint}...",
|
||||
"@tcpStatus_connectingTo": {
|
||||
"placeholders": {
|
||||
"endpoint": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"tcpErrorHostRequired": "Házigazda szükséges.",
|
||||
"tcpErrorPortInvalid": "A portnak 1 és 65535 között kell lennie.",
|
||||
"tcpErrorUnsupported": "A TCP-átvitel nem támogatott ezen a platformon.",
|
||||
@@ -78,11 +67,11 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"usbScreenTitle": "Csatlakoztassa USB-n keresztül",
|
||||
"usbScreenSubtitle": "Válasszon egy észlelt soros eszközt, és csatlakozzon közvetlenül a MeshCore csomóponthoz.",
|
||||
"usbScreenStatus": "Válasszon ki egy USB-eszközt",
|
||||
"usbScreenNote": "Az USB-soros aktív a támogatott Android-eszközökön és asztali platformokon.",
|
||||
"usbScreenEmptyState": "Nem található USB-eszköz. Csatlakoztasson egyet, és frissítse.",
|
||||
"usbScreenEmptyStateAuto": "Nem található USB-eszköz. Csatlakoztasson egyet, és megjelenik itt.",
|
||||
"usbErrorPermissionDenied": "Az USB-engedély megtagadva.",
|
||||
"usbErrorDeviceMissing": "A kiválasztott USB-eszköz már nem érhető el.",
|
||||
"usbErrorInvalidPort": "Válasszon ki egy érvényes USB-eszközt.",
|
||||
@@ -96,8 +85,6 @@
|
||||
"usbErrorPortClosed": "Az USB-csatlakozás nincs nyitva.",
|
||||
"usbErrorConnectTimedOut": "A kapcsolat időtúllépése lejárt. Győződjön meg arról, hogy az eszköz rendelkezik USB Companion firmware-rel.",
|
||||
"usbFallbackDeviceName": "Web soros eszköz",
|
||||
"usbStatus_notConnected": "Válasszon ki egy USB-eszközt",
|
||||
"usbStatus_connecting": "Csatlakozás USB-eszközhöz...",
|
||||
"usbStatus_searching": "USB-eszközök keresése...",
|
||||
"usbConnectionFailed": "USB csatlakozás sikertelen: {error}",
|
||||
"@usbConnectionFailed": {
|
||||
@@ -3451,7 +3438,6 @@
|
||||
}
|
||||
},
|
||||
"community_shortId": "ID: {id}…",
|
||||
"tcpSectionTitle": "TCP / IP",
|
||||
"tcpConnectedToHeader": "Csatlakozva:",
|
||||
"usbChooseSerialPort": "Soros port kiválasztása",
|
||||
"neighbors_durationSeconds": "{seconds} mp",
|
||||
|
||||
+1
-15
@@ -54,7 +54,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"scanner_title": "MeshCore Open",
|
||||
"scanner_scanning": "Scansione in corso per i dispositivi...",
|
||||
"scanner_connecting": "Connessione...",
|
||||
"scanner_disconnecting": "Disconnessione...",
|
||||
@@ -2228,10 +2227,10 @@
|
||||
"connectionChoiceBluetoothLabel": "Bluetooth",
|
||||
"usbScreenSubtitle": "Seleziona il dispositivo seriale rilevato e connettilo direttamente al tuo nodo MeshCore.",
|
||||
"connectionChoiceUsbLabel": "USB",
|
||||
"usbScreenTitle": "Connessione tramite USB",
|
||||
"usbScreenStatus": "Seleziona un dispositivo USB",
|
||||
"usbScreenNote": "La comunicazione seriale USB è attiva sui dispositivi Android supportati e sulle piattaforme desktop.",
|
||||
"usbScreenEmptyState": "Nessun dispositivo USB rilevato. Collegare uno e aggiornare.",
|
||||
"usbScreenEmptyStateAuto": "Nessun dispositivo USB rilevato. Collegare uno e apparirà qui.",
|
||||
"usbErrorPermissionDenied": "È stato negato l'accesso tramite USB.",
|
||||
"usbErrorDeviceMissing": "Il dispositivo USB selezionato non è più disponibile.",
|
||||
"usbErrorInvalidPort": "Seleziona un dispositivo USB valido.",
|
||||
@@ -2253,16 +2252,7 @@
|
||||
},
|
||||
"usbStatus_searching": "Ricerca di dispositivi USB...",
|
||||
"usbConnectionFailed": "Errore nella connessione USB: {error}",
|
||||
"usbStatus_notConnected": "Seleziona un dispositivo USB",
|
||||
"usbStatus_connecting": "Connessione al dispositivo USB...",
|
||||
"usbErrorConnectTimedOut": "La connessione è scaduta. Assicurarsi che il dispositivo abbia il firmware USB Companion.",
|
||||
"@tcpStatus_connectingTo": {
|
||||
"placeholders": {
|
||||
"endpoint": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@tcpConnectionFailed": {
|
||||
"placeholders": {
|
||||
"error": {
|
||||
@@ -2273,11 +2263,8 @@
|
||||
"tcpHostLabel": "Indirizzo IP",
|
||||
"tcpHostHint": "192.168.40.10",
|
||||
"connectionChoiceTcpLabel": "TCP",
|
||||
"tcpScreenTitle": "Stabilire una connessione tramite TCP",
|
||||
"tcpPortLabel": "Porta",
|
||||
"tcpPortHint": "5000",
|
||||
"tcpStatus_notConnected": "Inserisci l'endpoint e connettiti.",
|
||||
"tcpStatus_connectingTo": "Connessione a {endpoint}...",
|
||||
"tcpErrorHostRequired": "È necessario fornire un indirizzo IP.",
|
||||
"tcpErrorPortInvalid": "La dimensione della porta deve essere compresa tra 1 e 65535.",
|
||||
"tcpErrorUnsupported": "Il protocollo TCP non è supportato su questa piattaforma.",
|
||||
@@ -3424,7 +3411,6 @@
|
||||
"contacts_advertFailed": "Impossibile inviare l'annuncio",
|
||||
"contacts_manageGroups": "Gestisci gruppi",
|
||||
"community_shortId": "ID: {id}…",
|
||||
"tcpSectionTitle": "TCP / IP",
|
||||
"tcpConnectedToHeader": "Connesso a",
|
||||
"usbChooseSerialPort": "Scegli porta seriale",
|
||||
"neighbors_durationSeconds": "{seconds} s",
|
||||
|
||||
+1
-15
@@ -54,24 +54,13 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"scanner_title": "MeshCore Open",
|
||||
"connectionChoiceUsbLabel": "USB",
|
||||
"connectionChoiceBluetoothLabel": "Bluetooth",
|
||||
"connectionChoiceTcpLabel": "TCP",
|
||||
"tcpScreenTitle": "TCP で接続",
|
||||
"tcpHostLabel": "接続先",
|
||||
"tcpHostHint": "192.168.40.10 / example.com",
|
||||
"tcpPortLabel": "ポート",
|
||||
"tcpPortHint": "5000",
|
||||
"tcpStatus_notConnected": "接続先を入力して接続してください",
|
||||
"tcpStatus_connectingTo": "{endpoint} への接続中...",
|
||||
"@tcpStatus_connectingTo": {
|
||||
"placeholders": {
|
||||
"endpoint": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"tcpErrorHostRequired": "接続先は必須です。",
|
||||
"tcpErrorPortInvalid": "ポート番号は1から65535の範囲で指定してください。",
|
||||
"tcpErrorUnsupported": "このプラットフォームでは、TCP 転送はサポートされていません。",
|
||||
@@ -84,11 +73,11 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"usbScreenTitle": "USB経由で接続",
|
||||
"usbScreenSubtitle": "検出されたシリアルデバイスを選択して、MeshCore ノードに直接接続します。",
|
||||
"usbScreenStatus": "USB デバイスを選択してください",
|
||||
"usbScreenNote": "USB シリアルは、対応する Android デバイスとデスクトップ プラットフォームで利用できます。",
|
||||
"usbScreenEmptyState": "USB デバイスが見つかりません。接続してから再度更新してください。",
|
||||
"usbScreenEmptyStateAuto": "USB デバイスが見つかりません。接続するとここに表示されます。",
|
||||
"usbErrorPermissionDenied": "USBへのアクセス許可が拒否されました。",
|
||||
"usbErrorDeviceMissing": "選択されたUSBデバイスは、もう利用できません。",
|
||||
"usbErrorInvalidPort": "有効なUSBデバイスを選択してください。",
|
||||
@@ -102,8 +91,6 @@
|
||||
"usbErrorPortClosed": "USB 接続は開かれていません。",
|
||||
"usbErrorConnectTimedOut": "接続がタイムアウトしました。デバイスにUSBコンパニオンファームウェアがインストールされていることを確認してください。",
|
||||
"usbFallbackDeviceName": "ウェブシリアルデバイス",
|
||||
"usbStatus_notConnected": "USB デバイスを選択してください",
|
||||
"usbStatus_connecting": "USBデバイスへの接続中...",
|
||||
"usbStatus_searching": "USBデバイスを検索中...",
|
||||
"usbConnectionFailed": "USB接続に失敗しました:{error}",
|
||||
"@usbConnectionFailed": {
|
||||
@@ -3424,7 +3411,6 @@
|
||||
"contacts_advertFailed": "アドバートを送信できませんでした",
|
||||
"contacts_manageGroups": "グループを管理",
|
||||
"community_shortId": "ID: {id}…",
|
||||
"tcpSectionTitle": "TCP / IP",
|
||||
"tcpConnectedToHeader": "接続先",
|
||||
"usbChooseSerialPort": "シリアルポートを選択",
|
||||
"neighbors_durationSeconds": "{seconds}秒",
|
||||
|
||||
+1
-15
@@ -48,24 +48,13 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"scanner_title": "MeshCore Open",
|
||||
"connectionChoiceUsbLabel": "USB",
|
||||
"connectionChoiceBluetoothLabel": "블루투스",
|
||||
"connectionChoiceTcpLabel": "TCP",
|
||||
"tcpScreenTitle": "TCP를 통해 연결",
|
||||
"tcpHostLabel": "IP 주소",
|
||||
"tcpHostHint": "192.168.40.10 / example.com",
|
||||
"tcpPortLabel": "포트",
|
||||
"tcpPortHint": "5000",
|
||||
"tcpStatus_notConnected": "엔드포인트를 입력한 뒤 연결하세요.",
|
||||
"tcpStatus_connectingTo": "{endpoint}에 연결 중...",
|
||||
"@tcpStatus_connectingTo": {
|
||||
"placeholders": {
|
||||
"endpoint": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"tcpErrorHostRequired": "IP 주소가 필요합니다.",
|
||||
"tcpErrorPortInvalid": "포트 번호는 1에서 65535 사이여야 합니다.",
|
||||
"tcpErrorUnsupported": "이 플랫폼에서는 TCP 트랜스포트를 지원하지 않습니다.",
|
||||
@@ -78,11 +67,11 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"usbScreenTitle": "USB를 통해 연결",
|
||||
"usbScreenSubtitle": "감지된 시리얼 장치를 선택하고 MeshCore 노드에 직접 연결하십시오.",
|
||||
"usbScreenStatus": "USB 장치를 선택하세요.",
|
||||
"usbScreenNote": "USB 직렬 통신은 지원되는 Android 기기 및 데스크톱 플랫폼에서 사용할 수 있습니다.",
|
||||
"usbScreenEmptyState": "USB 장치가 없습니다. 하나 연결한 뒤 새로고침하세요.",
|
||||
"usbScreenEmptyStateAuto": "USB 장치가 없습니다. 하나 연결하면 여기에 표시됩니다.",
|
||||
"usbErrorPermissionDenied": "USB 접근 권한이 거부되었습니다.",
|
||||
"usbErrorDeviceMissing": "선택한 USB 장치를 더 이상 사용할 수 없습니다.",
|
||||
"usbErrorInvalidPort": "유효한 USB 장치를 선택하세요.",
|
||||
@@ -96,8 +85,6 @@
|
||||
"usbErrorPortClosed": "USB 연결이 열려 있지 않습니다.",
|
||||
"usbErrorConnectTimedOut": "연결 시간이 초과되었습니다. 장치에 USB Companion 펌웨어가 있는지 확인하세요.",
|
||||
"usbFallbackDeviceName": "웹 시리얼 장치",
|
||||
"usbStatus_notConnected": "USB 장치를 선택합니다.",
|
||||
"usbStatus_connecting": "USB 장치에 연결 중...",
|
||||
"usbStatus_searching": "USB 장치 검색 중...",
|
||||
"usbConnectionFailed": "USB 연결 실패: {error}",
|
||||
"@usbConnectionFailed": {
|
||||
@@ -3424,7 +3411,6 @@
|
||||
"contacts_advertFailed": "어드버트를 보낼 수 없습니다",
|
||||
"contacts_manageGroups": "그룹 관리",
|
||||
"community_shortId": "ID: {id}…",
|
||||
"tcpSectionTitle": "TCP / IP",
|
||||
"tcpConnectedToHeader": "연결 대상",
|
||||
"usbChooseSerialPort": "시리얼 포트 선택",
|
||||
"neighbors_durationSeconds": "{seconds}초",
|
||||
|
||||
@@ -433,12 +433,6 @@ abstract class AppLocalizations {
|
||||
/// **'Interval'**
|
||||
String get common_interval;
|
||||
|
||||
/// No description provided for @scanner_title.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'MeshCore Open'**
|
||||
String get scanner_title;
|
||||
|
||||
/// No description provided for @connectionChoiceUsbLabel.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -457,12 +451,6 @@ abstract class AppLocalizations {
|
||||
/// **'TCP'**
|
||||
String get connectionChoiceTcpLabel;
|
||||
|
||||
/// No description provided for @tcpScreenTitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Connect over TCP'**
|
||||
String get tcpScreenTitle;
|
||||
|
||||
/// No description provided for @tcpHostLabel.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -487,18 +475,6 @@ abstract class AppLocalizations {
|
||||
/// **'5000'**
|
||||
String get tcpPortHint;
|
||||
|
||||
/// No description provided for @tcpStatus_notConnected.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Enter endpoint and connect'**
|
||||
String get tcpStatus_notConnected;
|
||||
|
||||
/// No description provided for @tcpStatus_connectingTo.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Connecting to {endpoint}...'**
|
||||
String tcpStatus_connectingTo(String endpoint);
|
||||
|
||||
/// No description provided for @tcpErrorHostRequired.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -529,12 +505,6 @@ abstract class AppLocalizations {
|
||||
/// **'TCP connection failed: {error}'**
|
||||
String tcpConnectionFailed(String error);
|
||||
|
||||
/// No description provided for @usbScreenTitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Connect over USB'**
|
||||
String get usbScreenTitle;
|
||||
|
||||
/// No description provided for @usbScreenSubtitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -559,6 +529,12 @@ abstract class AppLocalizations {
|
||||
/// **'No USB devices found. Plug one in and refresh.'**
|
||||
String get usbScreenEmptyState;
|
||||
|
||||
/// No description provided for @usbScreenEmptyStateAuto.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'No USB devices found. Plug one in and it shows up here.'**
|
||||
String get usbScreenEmptyStateAuto;
|
||||
|
||||
/// No description provided for @usbErrorPermissionDenied.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -637,18 +613,6 @@ abstract class AppLocalizations {
|
||||
/// **'Web Serial Device'**
|
||||
String get usbFallbackDeviceName;
|
||||
|
||||
/// No description provided for @usbStatus_notConnected.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Select a USB device'**
|
||||
String get usbStatus_notConnected;
|
||||
|
||||
/// No description provided for @usbStatus_connecting.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Connecting to USB device...'**
|
||||
String get usbStatus_connecting;
|
||||
|
||||
/// No description provided for @usbStatus_searching.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -12256,12 +12220,6 @@ abstract class AppLocalizations {
|
||||
/// **'ID: {id}…'**
|
||||
String community_shortId(String id);
|
||||
|
||||
/// No description provided for @tcpSectionTitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'TCP / IP'**
|
||||
String get tcpSectionTitle;
|
||||
|
||||
/// No description provided for @tcpConnectedToHeader.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
|
||||
@@ -179,9 +179,6 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
@override
|
||||
String get common_interval => 'Интервал';
|
||||
|
||||
@override
|
||||
String get scanner_title => 'MeshCore – Отворена версия';
|
||||
|
||||
@override
|
||||
String get connectionChoiceUsbLabel => 'USB';
|
||||
|
||||
@@ -191,9 +188,6 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
@override
|
||||
String get connectionChoiceTcpLabel => 'TCP';
|
||||
|
||||
@override
|
||||
String get tcpScreenTitle => 'Свържете се чрез TCP';
|
||||
|
||||
@override
|
||||
String get tcpHostLabel => 'IP адрес';
|
||||
|
||||
@@ -206,14 +200,6 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
@override
|
||||
String get tcpPortHint => '5000';
|
||||
|
||||
@override
|
||||
String get tcpStatus_notConnected => 'Въведете крайната точка и свържете се.';
|
||||
|
||||
@override
|
||||
String tcpStatus_connectingTo(String endpoint) {
|
||||
return 'Свързване към $endpoint...';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpErrorHostRequired => 'Необходим е IP адрес.';
|
||||
|
||||
@@ -232,9 +218,6 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
return 'Неуспешно е установено TCP връзката: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get usbScreenTitle => 'Свържете се чрез USB';
|
||||
|
||||
@override
|
||||
String get usbScreenSubtitle =>
|
||||
'Изберете открития сериен уред и свържете директно към вашия MeshCore възел.';
|
||||
@@ -250,6 +233,10 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
String get usbScreenEmptyState =>
|
||||
'Няма открити USB устройства. Включете едно и опитайте отново.';
|
||||
|
||||
@override
|
||||
String get usbScreenEmptyStateAuto =>
|
||||
'Няма открити USB устройства. Включете едно и то ще се появи тук.';
|
||||
|
||||
@override
|
||||
String get usbErrorPermissionDenied => 'Не беше разрешено достъпът през USB.';
|
||||
|
||||
@@ -296,12 +283,6 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
String get usbFallbackDeviceName =>
|
||||
'Устройство за четене на уеб серийни данни';
|
||||
|
||||
@override
|
||||
String get usbStatus_notConnected => 'Изберете USB устройство';
|
||||
|
||||
@override
|
||||
String get usbStatus_connecting => 'Свързване към USB устройство...';
|
||||
|
||||
@override
|
||||
String get usbStatus_searching => 'Търсене на USB устройства...';
|
||||
|
||||
@@ -7373,9 +7354,6 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
return 'ID: $id…';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpSectionTitle => 'TCP / IP';
|
||||
|
||||
@override
|
||||
String get tcpConnectedToHeader => 'Свързан с';
|
||||
|
||||
|
||||
@@ -181,9 +181,6 @@ class AppLocalizationsCs extends AppLocalizations {
|
||||
@override
|
||||
String get common_interval => 'Interval';
|
||||
|
||||
@override
|
||||
String get scanner_title => 'MeshCore Open';
|
||||
|
||||
@override
|
||||
String get connectionChoiceUsbLabel => 'USB';
|
||||
|
||||
@@ -193,9 +190,6 @@ class AppLocalizationsCs extends AppLocalizations {
|
||||
@override
|
||||
String get connectionChoiceTcpLabel => 'TCP';
|
||||
|
||||
@override
|
||||
String get tcpScreenTitle => 'Připojení přes TCP';
|
||||
|
||||
@override
|
||||
String get tcpHostLabel => 'Koncový bod';
|
||||
|
||||
@@ -208,14 +202,6 @@ class AppLocalizationsCs extends AppLocalizations {
|
||||
@override
|
||||
String get tcpPortHint => '5000';
|
||||
|
||||
@override
|
||||
String get tcpStatus_notConnected => 'Zadejte koncový bod a připojte se';
|
||||
|
||||
@override
|
||||
String tcpStatus_connectingTo(String endpoint) {
|
||||
return 'Připojování k $endpoint...';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpErrorHostRequired => 'Hostitel je povinný.';
|
||||
|
||||
@@ -234,9 +220,6 @@ class AppLocalizationsCs extends AppLocalizations {
|
||||
return 'Připojení TCP se nezdařilo: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get usbScreenTitle => 'Připojení přes USB';
|
||||
|
||||
@override
|
||||
String get usbScreenSubtitle =>
|
||||
'Vyberte rozpoznané sériové zařízení a připojte se přímo ke svému uzlu MeshCore.';
|
||||
@@ -252,6 +235,10 @@ class AppLocalizationsCs extends AppLocalizations {
|
||||
String get usbScreenEmptyState =>
|
||||
'Nebyla nalezena žádná zařízení USB. Připojte nějaké a obnovte.';
|
||||
|
||||
@override
|
||||
String get usbScreenEmptyStateAuto =>
|
||||
'Nebyla nalezena žádná zařízení USB. Připojte nějaké a zobrazí se zde.';
|
||||
|
||||
@override
|
||||
String get usbErrorPermissionDenied => 'Oprávnění k USB bylo odepřeno.';
|
||||
|
||||
@@ -295,12 +282,6 @@ class AppLocalizationsCs extends AppLocalizations {
|
||||
@override
|
||||
String get usbFallbackDeviceName => 'Zařízení Web Serial';
|
||||
|
||||
@override
|
||||
String get usbStatus_notConnected => 'Vyberte zařízení USB';
|
||||
|
||||
@override
|
||||
String get usbStatus_connecting => 'Připojování k zařízení USB...';
|
||||
|
||||
@override
|
||||
String get usbStatus_searching => 'Hledání zařízení USB...';
|
||||
|
||||
@@ -7356,9 +7337,6 @@ class AppLocalizationsCs extends AppLocalizations {
|
||||
return 'ID: $id…';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpSectionTitle => 'TCP / IP';
|
||||
|
||||
@override
|
||||
String get tcpConnectedToHeader => 'Připojeno k';
|
||||
|
||||
|
||||
@@ -179,9 +179,6 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
@override
|
||||
String get common_interval => 'Intervall';
|
||||
|
||||
@override
|
||||
String get scanner_title => 'MeshCore Open';
|
||||
|
||||
@override
|
||||
String get connectionChoiceUsbLabel => 'USB';
|
||||
|
||||
@@ -191,9 +188,6 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
@override
|
||||
String get connectionChoiceTcpLabel => 'TCP';
|
||||
|
||||
@override
|
||||
String get tcpScreenTitle => 'Verbinden über TCP';
|
||||
|
||||
@override
|
||||
String get tcpHostLabel => 'Endpunkt';
|
||||
|
||||
@@ -206,14 +200,6 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
@override
|
||||
String get tcpPortHint => '5000';
|
||||
|
||||
@override
|
||||
String get tcpStatus_notConnected => 'Endpunkt eingeben und verbinden';
|
||||
|
||||
@override
|
||||
String tcpStatus_connectingTo(String endpoint) {
|
||||
return 'Verbindung zu $endpoint...';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpErrorHostRequired => 'Ein Endpunkt ist erforderlich.';
|
||||
|
||||
@@ -233,9 +219,6 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
return 'TCP-Verbindung fehlgeschlagen: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get usbScreenTitle => 'Über USB verbinden';
|
||||
|
||||
@override
|
||||
String get usbScreenSubtitle =>
|
||||
'Wählen Sie ein erkanntes serielles Gerät aus und verbinden Sie es direkt mit Ihrem MeshCore-Knoten.';
|
||||
@@ -251,6 +234,10 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
String get usbScreenEmptyState =>
|
||||
'Keine USB-Geräte gefunden. Schließen Sie eines an und aktualisieren Sie.';
|
||||
|
||||
@override
|
||||
String get usbScreenEmptyStateAuto =>
|
||||
'Keine USB-Geräte gefunden. Schließen Sie eines an, dann erscheint es hier.';
|
||||
|
||||
@override
|
||||
String get usbErrorPermissionDenied =>
|
||||
'Die USB-Berechtigung wurde abgelehnt.';
|
||||
@@ -298,13 +285,6 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
@override
|
||||
String get usbFallbackDeviceName => 'Web-Serial-Gerät';
|
||||
|
||||
@override
|
||||
String get usbStatus_notConnected => 'Wählen Sie ein USB-Gerät aus';
|
||||
|
||||
@override
|
||||
String get usbStatus_connecting =>
|
||||
'Verbindung zum USB-Gerät wird hergestellt...';
|
||||
|
||||
@override
|
||||
String get usbStatus_searching => 'Suche nach USB-Geräten...';
|
||||
|
||||
@@ -7384,9 +7364,6 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
return 'ID: $id…';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpSectionTitle => 'TCP / IP';
|
||||
|
||||
@override
|
||||
String get tcpConnectedToHeader => 'Verbunden mit';
|
||||
|
||||
|
||||
@@ -178,9 +178,6 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
@override
|
||||
String get common_interval => 'Interval';
|
||||
|
||||
@override
|
||||
String get scanner_title => 'MeshCore Open';
|
||||
|
||||
@override
|
||||
String get connectionChoiceUsbLabel => 'USB';
|
||||
|
||||
@@ -190,9 +187,6 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
@override
|
||||
String get connectionChoiceTcpLabel => 'TCP';
|
||||
|
||||
@override
|
||||
String get tcpScreenTitle => 'Connect over TCP';
|
||||
|
||||
@override
|
||||
String get tcpHostLabel => 'Endpoint';
|
||||
|
||||
@@ -205,14 +199,6 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
@override
|
||||
String get tcpPortHint => '5000';
|
||||
|
||||
@override
|
||||
String get tcpStatus_notConnected => 'Enter endpoint and connect';
|
||||
|
||||
@override
|
||||
String tcpStatus_connectingTo(String endpoint) {
|
||||
return 'Connecting to $endpoint...';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpErrorHostRequired => 'Host is required.';
|
||||
|
||||
@@ -231,9 +217,6 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
return 'TCP connection failed: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get usbScreenTitle => 'Connect over USB';
|
||||
|
||||
@override
|
||||
String get usbScreenSubtitle =>
|
||||
'Choose a detected serial device and connect directly to your MeshCore node.';
|
||||
@@ -249,6 +232,10 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
String get usbScreenEmptyState =>
|
||||
'No USB devices found. Plug one in and refresh.';
|
||||
|
||||
@override
|
||||
String get usbScreenEmptyStateAuto =>
|
||||
'No USB devices found. Plug one in and it shows up here.';
|
||||
|
||||
@override
|
||||
String get usbErrorPermissionDenied => 'USB permission was denied.';
|
||||
|
||||
@@ -293,12 +280,6 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
@override
|
||||
String get usbFallbackDeviceName => 'Web Serial Device';
|
||||
|
||||
@override
|
||||
String get usbStatus_notConnected => 'Select a USB device';
|
||||
|
||||
@override
|
||||
String get usbStatus_connecting => 'Connecting to USB device...';
|
||||
|
||||
@override
|
||||
String get usbStatus_searching => 'Searching for USB devices...';
|
||||
|
||||
@@ -7272,9 +7253,6 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
return 'ID: $id…';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpSectionTitle => 'TCP / IP';
|
||||
|
||||
@override
|
||||
String get tcpConnectedToHeader => 'Connected to';
|
||||
|
||||
|
||||
@@ -179,9 +179,6 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
@override
|
||||
String get common_interval => 'Intervalo';
|
||||
|
||||
@override
|
||||
String get scanner_title => 'MeshCore Open';
|
||||
|
||||
@override
|
||||
String get connectionChoiceUsbLabel => 'USB';
|
||||
|
||||
@@ -191,9 +188,6 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
@override
|
||||
String get connectionChoiceTcpLabel => 'TCP';
|
||||
|
||||
@override
|
||||
String get tcpScreenTitle => 'Establecer conexión a través de TCP';
|
||||
|
||||
@override
|
||||
String get tcpHostLabel => 'Dirección IP';
|
||||
|
||||
@@ -206,14 +200,6 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
@override
|
||||
String get tcpPortHint => '5000';
|
||||
|
||||
@override
|
||||
String get tcpStatus_notConnected => 'Ingrese la dirección final y conecte.';
|
||||
|
||||
@override
|
||||
String tcpStatus_connectingTo(String endpoint) {
|
||||
return 'Conectándose a $endpoint...';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpErrorHostRequired => 'Se requiere la dirección IP.';
|
||||
|
||||
@@ -232,9 +218,6 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
return 'Error en la conexión TCP: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get usbScreenTitle => 'Conecte mediante USB';
|
||||
|
||||
@override
|
||||
String get usbScreenSubtitle =>
|
||||
'Seleccione el dispositivo de serie detectado y conéctelo directamente a su nodo MeshCore.';
|
||||
@@ -250,6 +233,10 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
String get usbScreenEmptyState =>
|
||||
'No se encontraron dispositivos USB. Conecte uno y vuelva a intentar.';
|
||||
|
||||
@override
|
||||
String get usbScreenEmptyStateAuto =>
|
||||
'No se encontraron dispositivos USB. Conecte uno y aparecerá aquí.';
|
||||
|
||||
@override
|
||||
String get usbErrorPermissionDenied =>
|
||||
'Se denegó el permiso de acceso a través de USB.';
|
||||
@@ -297,12 +284,6 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
@override
|
||||
String get usbFallbackDeviceName => 'Dispositivo de serie web';
|
||||
|
||||
@override
|
||||
String get usbStatus_notConnected => 'Seleccione un dispositivo USB';
|
||||
|
||||
@override
|
||||
String get usbStatus_connecting => 'Conectándose al dispositivo USB...';
|
||||
|
||||
@override
|
||||
String get usbStatus_searching => 'Buscando dispositivos USB...';
|
||||
|
||||
@@ -7370,9 +7351,6 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
return 'ID: $id…';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpSectionTitle => 'TCP / IP';
|
||||
|
||||
@override
|
||||
String get tcpConnectedToHeader => 'Conectado a';
|
||||
|
||||
|
||||
@@ -179,9 +179,6 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
@override
|
||||
String get common_interval => 'Intervalle';
|
||||
|
||||
@override
|
||||
String get scanner_title => 'MeshCore Open';
|
||||
|
||||
@override
|
||||
String get connectionChoiceUsbLabel => 'USB';
|
||||
|
||||
@@ -191,9 +188,6 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
@override
|
||||
String get connectionChoiceTcpLabel => 'TCP';
|
||||
|
||||
@override
|
||||
String get tcpScreenTitle => 'Établir une connexion via TCP';
|
||||
|
||||
@override
|
||||
String get tcpHostLabel => 'Adresse IP';
|
||||
|
||||
@@ -206,15 +200,6 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
@override
|
||||
String get tcpPortHint => '5000';
|
||||
|
||||
@override
|
||||
String get tcpStatus_notConnected =>
|
||||
'Entrez l\'adresse de destination et connectez-vous.';
|
||||
|
||||
@override
|
||||
String tcpStatus_connectingTo(String endpoint) {
|
||||
return 'Connexion à $endpoint...';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpErrorHostRequired => 'Une adresse IP est obligatoire.';
|
||||
|
||||
@@ -234,9 +219,6 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
return 'Échec de la connexion TCP : $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get usbScreenTitle => 'Connectez via USB';
|
||||
|
||||
@override
|
||||
String get usbScreenSubtitle =>
|
||||
'Sélectionnez un périphérique série détecté et connectez-vous directement à votre nœud MeshCore.';
|
||||
@@ -252,6 +234,10 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
String get usbScreenEmptyState =>
|
||||
'Aucun périphérique USB n\'a été trouvé. Veuillez en brancher un et rafraîchir la page.';
|
||||
|
||||
@override
|
||||
String get usbScreenEmptyStateAuto =>
|
||||
'Aucun périphérique USB n\'a été trouvé. Veuillez en brancher un et il apparaîtra ici.';
|
||||
|
||||
@override
|
||||
String get usbErrorPermissionDenied => 'L\'accès via USB a été refusé.';
|
||||
|
||||
@@ -299,12 +285,6 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
String get usbFallbackDeviceName =>
|
||||
'Dispositif de communication série sur le Web';
|
||||
|
||||
@override
|
||||
String get usbStatus_notConnected => 'Sélectionnez un périphérique USB';
|
||||
|
||||
@override
|
||||
String get usbStatus_connecting => 'Connexion au périphérique USB...';
|
||||
|
||||
@override
|
||||
String get usbStatus_searching => 'Recherche de périphériques USB...';
|
||||
|
||||
@@ -7389,9 +7369,6 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
return 'ID : $id…';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpSectionTitle => 'TCP / IP';
|
||||
|
||||
@override
|
||||
String get tcpConnectedToHeader => 'Connecté à';
|
||||
|
||||
|
||||
@@ -179,9 +179,6 @@ class AppLocalizationsHu extends AppLocalizations {
|
||||
@override
|
||||
String get common_interval => 'Intervallum';
|
||||
|
||||
@override
|
||||
String get scanner_title => 'MeshCore Open';
|
||||
|
||||
@override
|
||||
String get connectionChoiceUsbLabel => 'USB';
|
||||
|
||||
@@ -191,9 +188,6 @@ class AppLocalizationsHu extends AppLocalizations {
|
||||
@override
|
||||
String get connectionChoiceTcpLabel => 'TCP';
|
||||
|
||||
@override
|
||||
String get tcpScreenTitle => 'Csatlakozzon TCP-n keresztül';
|
||||
|
||||
@override
|
||||
String get tcpHostLabel => 'Végpont';
|
||||
|
||||
@@ -206,14 +200,6 @@ class AppLocalizationsHu extends AppLocalizations {
|
||||
@override
|
||||
String get tcpPortHint => '5000';
|
||||
|
||||
@override
|
||||
String get tcpStatus_notConnected => 'Adja meg a végpontot, és csatlakozzon';
|
||||
|
||||
@override
|
||||
String tcpStatus_connectingTo(String endpoint) {
|
||||
return 'Csatlakozás a következőhöz: $endpoint...';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpErrorHostRequired => 'Házigazda szükséges.';
|
||||
|
||||
@@ -232,9 +218,6 @@ class AppLocalizationsHu extends AppLocalizations {
|
||||
return 'A TCP-kapcsolat sikertelen: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get usbScreenTitle => 'Csatlakoztassa USB-n keresztül';
|
||||
|
||||
@override
|
||||
String get usbScreenSubtitle =>
|
||||
'Válasszon egy észlelt soros eszközt, és csatlakozzon közvetlenül a MeshCore csomóponthoz.';
|
||||
@@ -250,6 +233,10 @@ class AppLocalizationsHu extends AppLocalizations {
|
||||
String get usbScreenEmptyState =>
|
||||
'Nem található USB-eszköz. Csatlakoztasson egyet, és frissítse.';
|
||||
|
||||
@override
|
||||
String get usbScreenEmptyStateAuto =>
|
||||
'Nem található USB-eszköz. Csatlakoztasson egyet, és megjelenik itt.';
|
||||
|
||||
@override
|
||||
String get usbErrorPermissionDenied => 'Az USB-engedély megtagadva.';
|
||||
|
||||
@@ -295,12 +282,6 @@ class AppLocalizationsHu extends AppLocalizations {
|
||||
@override
|
||||
String get usbFallbackDeviceName => 'Web soros eszköz';
|
||||
|
||||
@override
|
||||
String get usbStatus_notConnected => 'Válasszon ki egy USB-eszközt';
|
||||
|
||||
@override
|
||||
String get usbStatus_connecting => 'Csatlakozás USB-eszközhöz...';
|
||||
|
||||
@override
|
||||
String get usbStatus_searching => 'USB-eszközök keresése...';
|
||||
|
||||
@@ -7362,9 +7343,6 @@ class AppLocalizationsHu extends AppLocalizations {
|
||||
return 'ID: $id…';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpSectionTitle => 'TCP / IP';
|
||||
|
||||
@override
|
||||
String get tcpConnectedToHeader => 'Csatlakozva:';
|
||||
|
||||
|
||||
@@ -179,9 +179,6 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
@override
|
||||
String get common_interval => 'Intervallo';
|
||||
|
||||
@override
|
||||
String get scanner_title => 'MeshCore Open';
|
||||
|
||||
@override
|
||||
String get connectionChoiceUsbLabel => 'USB';
|
||||
|
||||
@@ -191,9 +188,6 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
@override
|
||||
String get connectionChoiceTcpLabel => 'TCP';
|
||||
|
||||
@override
|
||||
String get tcpScreenTitle => 'Stabilire una connessione tramite TCP';
|
||||
|
||||
@override
|
||||
String get tcpHostLabel => 'Indirizzo IP';
|
||||
|
||||
@@ -206,14 +200,6 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
@override
|
||||
String get tcpPortHint => '5000';
|
||||
|
||||
@override
|
||||
String get tcpStatus_notConnected => 'Inserisci l\'endpoint e connettiti.';
|
||||
|
||||
@override
|
||||
String tcpStatus_connectingTo(String endpoint) {
|
||||
return 'Connessione a $endpoint...';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpErrorHostRequired => 'È necessario fornire un indirizzo IP.';
|
||||
|
||||
@@ -233,9 +219,6 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
return 'Impossibile stabilire la connessione TCP: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get usbScreenTitle => 'Connessione tramite USB';
|
||||
|
||||
@override
|
||||
String get usbScreenSubtitle =>
|
||||
'Seleziona il dispositivo seriale rilevato e connettilo direttamente al tuo nodo MeshCore.';
|
||||
@@ -251,6 +234,10 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
String get usbScreenEmptyState =>
|
||||
'Nessun dispositivo USB rilevato. Collegare uno e aggiornare.';
|
||||
|
||||
@override
|
||||
String get usbScreenEmptyStateAuto =>
|
||||
'Nessun dispositivo USB rilevato. Collegare uno e apparirà qui.';
|
||||
|
||||
@override
|
||||
String get usbErrorPermissionDenied =>
|
||||
'È stato negato l\'accesso tramite USB.';
|
||||
@@ -299,12 +286,6 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
String get usbFallbackDeviceName =>
|
||||
'Dispositivo per comunicazione seriale su rete';
|
||||
|
||||
@override
|
||||
String get usbStatus_notConnected => 'Seleziona un dispositivo USB';
|
||||
|
||||
@override
|
||||
String get usbStatus_connecting => 'Connessione al dispositivo USB...';
|
||||
|
||||
@override
|
||||
String get usbStatus_searching => 'Ricerca di dispositivi USB...';
|
||||
|
||||
@@ -7377,9 +7358,6 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
return 'ID: $id…';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpSectionTitle => 'TCP / IP';
|
||||
|
||||
@override
|
||||
String get tcpConnectedToHeader => 'Connesso a';
|
||||
|
||||
|
||||
@@ -175,9 +175,6 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
@override
|
||||
String get common_interval => '間隔';
|
||||
|
||||
@override
|
||||
String get scanner_title => 'MeshCore Open';
|
||||
|
||||
@override
|
||||
String get connectionChoiceUsbLabel => 'USB';
|
||||
|
||||
@@ -187,9 +184,6 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
@override
|
||||
String get connectionChoiceTcpLabel => 'TCP';
|
||||
|
||||
@override
|
||||
String get tcpScreenTitle => 'TCP で接続';
|
||||
|
||||
@override
|
||||
String get tcpHostLabel => '接続先';
|
||||
|
||||
@@ -202,14 +196,6 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
@override
|
||||
String get tcpPortHint => '5000';
|
||||
|
||||
@override
|
||||
String get tcpStatus_notConnected => '接続先を入力して接続してください';
|
||||
|
||||
@override
|
||||
String tcpStatus_connectingTo(String endpoint) {
|
||||
return '$endpoint への接続中...';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpErrorHostRequired => '接続先は必須です。';
|
||||
|
||||
@@ -227,9 +213,6 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
return 'TCP接続に失敗しました:$error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get usbScreenTitle => 'USB経由で接続';
|
||||
|
||||
@override
|
||||
String get usbScreenSubtitle => '検出されたシリアルデバイスを選択して、MeshCore ノードに直接接続します。';
|
||||
|
||||
@@ -243,6 +226,9 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
@override
|
||||
String get usbScreenEmptyState => 'USB デバイスが見つかりません。接続してから再度更新してください。';
|
||||
|
||||
@override
|
||||
String get usbScreenEmptyStateAuto => 'USB デバイスが見つかりません。接続するとここに表示されます。';
|
||||
|
||||
@override
|
||||
String get usbErrorPermissionDenied => 'USBへのアクセス許可が拒否されました。';
|
||||
|
||||
@@ -283,12 +269,6 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
@override
|
||||
String get usbFallbackDeviceName => 'ウェブシリアルデバイス';
|
||||
|
||||
@override
|
||||
String get usbStatus_notConnected => 'USB デバイスを選択してください';
|
||||
|
||||
@override
|
||||
String get usbStatus_connecting => 'USBデバイスへの接続中...';
|
||||
|
||||
@override
|
||||
String get usbStatus_searching => 'USBデバイスを検索中...';
|
||||
|
||||
@@ -7040,9 +7020,6 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
return 'ID: $id…';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpSectionTitle => 'TCP / IP';
|
||||
|
||||
@override
|
||||
String get tcpConnectedToHeader => '接続先';
|
||||
|
||||
|
||||
@@ -175,9 +175,6 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
@override
|
||||
String get common_interval => '간격';
|
||||
|
||||
@override
|
||||
String get scanner_title => 'MeshCore Open';
|
||||
|
||||
@override
|
||||
String get connectionChoiceUsbLabel => 'USB';
|
||||
|
||||
@@ -187,9 +184,6 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
@override
|
||||
String get connectionChoiceTcpLabel => 'TCP';
|
||||
|
||||
@override
|
||||
String get tcpScreenTitle => 'TCP를 통해 연결';
|
||||
|
||||
@override
|
||||
String get tcpHostLabel => 'IP 주소';
|
||||
|
||||
@@ -202,14 +196,6 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
@override
|
||||
String get tcpPortHint => '5000';
|
||||
|
||||
@override
|
||||
String get tcpStatus_notConnected => '엔드포인트를 입력한 뒤 연결하세요.';
|
||||
|
||||
@override
|
||||
String tcpStatus_connectingTo(String endpoint) {
|
||||
return '$endpoint에 연결 중...';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpErrorHostRequired => 'IP 주소가 필요합니다.';
|
||||
|
||||
@@ -227,9 +213,6 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
return 'TCP 연결 실패: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get usbScreenTitle => 'USB를 통해 연결';
|
||||
|
||||
@override
|
||||
String get usbScreenSubtitle => '감지된 시리얼 장치를 선택하고 MeshCore 노드에 직접 연결하십시오.';
|
||||
|
||||
@@ -243,6 +226,9 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
@override
|
||||
String get usbScreenEmptyState => 'USB 장치가 없습니다. 하나 연결한 뒤 새로고침하세요.';
|
||||
|
||||
@override
|
||||
String get usbScreenEmptyStateAuto => 'USB 장치가 없습니다. 하나 연결하면 여기에 표시됩니다.';
|
||||
|
||||
@override
|
||||
String get usbErrorPermissionDenied => 'USB 접근 권한이 거부되었습니다.';
|
||||
|
||||
@@ -283,12 +269,6 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
@override
|
||||
String get usbFallbackDeviceName => '웹 시리얼 장치';
|
||||
|
||||
@override
|
||||
String get usbStatus_notConnected => 'USB 장치를 선택합니다.';
|
||||
|
||||
@override
|
||||
String get usbStatus_connecting => 'USB 장치에 연결 중...';
|
||||
|
||||
@override
|
||||
String get usbStatus_searching => 'USB 장치 검색 중...';
|
||||
|
||||
@@ -7051,9 +7031,6 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
return 'ID: $id…';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpSectionTitle => 'TCP / IP';
|
||||
|
||||
@override
|
||||
String get tcpConnectedToHeader => '연결 대상';
|
||||
|
||||
|
||||
@@ -180,9 +180,6 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
@override
|
||||
String get common_interval => 'Tijdsinterval';
|
||||
|
||||
@override
|
||||
String get scanner_title => 'MeshCore Open';
|
||||
|
||||
@override
|
||||
String get connectionChoiceUsbLabel => 'USB';
|
||||
|
||||
@@ -192,9 +189,6 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
@override
|
||||
String get connectionChoiceTcpLabel => 'TCP';
|
||||
|
||||
@override
|
||||
String get tcpScreenTitle => 'Verbind via TCP';
|
||||
|
||||
@override
|
||||
String get tcpHostLabel => 'Eindpunt';
|
||||
|
||||
@@ -207,14 +201,6 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
@override
|
||||
String get tcpPortHint => '5000';
|
||||
|
||||
@override
|
||||
String get tcpStatus_notConnected => 'Voer het eindpunt in en verbind';
|
||||
|
||||
@override
|
||||
String tcpStatus_connectingTo(String endpoint) {
|
||||
return 'Verbinding maken met $endpoint...';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpErrorHostRequired => 'Host is vereist.';
|
||||
|
||||
@@ -234,9 +220,6 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
return 'Verbinding met TCP mislukt: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get usbScreenTitle => 'Verbind via USB';
|
||||
|
||||
@override
|
||||
String get usbScreenSubtitle =>
|
||||
'Selecteer een gedetecteerd serieel apparaat en maak direct verbinding met je MeshCore-node.';
|
||||
@@ -252,6 +235,10 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
String get usbScreenEmptyState =>
|
||||
'Geen USB-apparaten gevonden. Sluit er een aan en herlaad.';
|
||||
|
||||
@override
|
||||
String get usbScreenEmptyStateAuto =>
|
||||
'Geen USB-apparaten gevonden. Sluit er een aan en het verschijnt hier.';
|
||||
|
||||
@override
|
||||
String get usbErrorPermissionDenied => 'Toegang via USB is geweigerd.';
|
||||
|
||||
@@ -296,12 +283,6 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
@override
|
||||
String get usbFallbackDeviceName => 'Web Serial-apparaat';
|
||||
|
||||
@override
|
||||
String get usbStatus_notConnected => 'Selecteer een USB-apparaat';
|
||||
|
||||
@override
|
||||
String get usbStatus_connecting => 'Verbinding maken met USB-apparaat...';
|
||||
|
||||
@override
|
||||
String get usbStatus_searching => 'Zoeken naar USB-apparaten...';
|
||||
|
||||
@@ -7335,9 +7316,6 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
return 'ID: $id…';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpSectionTitle => 'TCP / IP';
|
||||
|
||||
@override
|
||||
String get tcpConnectedToHeader => 'Verbonden met';
|
||||
|
||||
|
||||
@@ -181,9 +181,6 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
@override
|
||||
String get common_interval => 'Interwał';
|
||||
|
||||
@override
|
||||
String get scanner_title => 'MeshCore – wersja open source';
|
||||
|
||||
@override
|
||||
String get connectionChoiceUsbLabel => 'USB';
|
||||
|
||||
@@ -193,9 +190,6 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
@override
|
||||
String get connectionChoiceTcpLabel => 'TCP';
|
||||
|
||||
@override
|
||||
String get tcpScreenTitle => 'Połącz się za pomocą protokołu TCP';
|
||||
|
||||
@override
|
||||
String get tcpHostLabel => 'Adres IP';
|
||||
|
||||
@@ -208,14 +202,6 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
@override
|
||||
String get tcpPortHint => '5000';
|
||||
|
||||
@override
|
||||
String get tcpStatus_notConnected => 'Wprowadź adres URL i połącz';
|
||||
|
||||
@override
|
||||
String tcpStatus_connectingTo(String endpoint) {
|
||||
return 'Połączenie z $endpoint...';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpErrorHostRequired => 'Wymagana jest adresa IP.';
|
||||
|
||||
@@ -236,9 +222,6 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
return 'Błąd połączenia TCP: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get usbScreenTitle => 'Połącz przez USB';
|
||||
|
||||
@override
|
||||
String get usbScreenSubtitle =>
|
||||
'Wybierz wykryte urządzenie szeregowe i połącz się bezpośrednio ze swoim węzłem MeshCore.';
|
||||
@@ -254,6 +237,10 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
String get usbScreenEmptyState =>
|
||||
'Nie znaleziono żadnych urządzeń USB. Podłącz jedno i zaktualizuj.';
|
||||
|
||||
@override
|
||||
String get usbScreenEmptyStateAuto =>
|
||||
'Nie znaleziono żadnych urządzeń USB. Podłącz jedno, a pojawi się tutaj.';
|
||||
|
||||
@override
|
||||
String get usbErrorPermissionDenied =>
|
||||
'Zostało odrzucone żądanie dostępu przez USB.';
|
||||
@@ -302,12 +289,6 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
String get usbFallbackDeviceName =>
|
||||
'Urządzenie do komunikacji przez sieć (seria)';
|
||||
|
||||
@override
|
||||
String get usbStatus_notConnected => 'Wybierz urządzenie USB';
|
||||
|
||||
@override
|
||||
String get usbStatus_connecting => 'Połączenie z urządzeniem USB...';
|
||||
|
||||
@override
|
||||
String get usbStatus_searching => 'Wyszukiwanie urządzeń USB...';
|
||||
|
||||
@@ -7418,9 +7399,6 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
return 'ID: $id…';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpSectionTitle => 'TCP / IP';
|
||||
|
||||
@override
|
||||
String get tcpConnectedToHeader => 'Połączono z';
|
||||
|
||||
|
||||
@@ -179,9 +179,6 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
@override
|
||||
String get common_interval => 'Intervalo';
|
||||
|
||||
@override
|
||||
String get scanner_title => 'MeshCore: Versão aberta';
|
||||
|
||||
@override
|
||||
String get connectionChoiceUsbLabel => 'USB';
|
||||
|
||||
@@ -191,9 +188,6 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
@override
|
||||
String get connectionChoiceTcpLabel => 'TCP';
|
||||
|
||||
@override
|
||||
String get tcpScreenTitle => 'Estabelecer conexão via TCP';
|
||||
|
||||
@override
|
||||
String get tcpHostLabel => 'Endereço IP';
|
||||
|
||||
@@ -206,14 +200,6 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
@override
|
||||
String get tcpPortHint => '5000';
|
||||
|
||||
@override
|
||||
String get tcpStatus_notConnected => 'Insira o endereço final e conecte-se.';
|
||||
|
||||
@override
|
||||
String tcpStatus_connectingTo(String endpoint) {
|
||||
return 'Conectando a $endpoint...';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpErrorHostRequired => 'É necessário fornecer um endereço IP.';
|
||||
|
||||
@@ -233,9 +219,6 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
return 'Falha na conexão TCP: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get usbScreenTitle => 'Conecte via USB';
|
||||
|
||||
@override
|
||||
String get usbScreenSubtitle =>
|
||||
'Selecione um dispositivo serial detectado e conecte-o diretamente ao seu nó MeshCore.';
|
||||
@@ -251,6 +234,10 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
String get usbScreenEmptyState =>
|
||||
'Nenhum dispositivo USB encontrado. Conecte um e atualize.';
|
||||
|
||||
@override
|
||||
String get usbScreenEmptyStateAuto =>
|
||||
'Nenhum dispositivo USB encontrado. Conecte um e ele aparecerá aqui.';
|
||||
|
||||
@override
|
||||
String get usbErrorPermissionDenied =>
|
||||
'A permissão para acesso via USB foi negada.';
|
||||
@@ -298,12 +285,6 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
@override
|
||||
String get usbFallbackDeviceName => 'Dispositivo de Serial para a Web';
|
||||
|
||||
@override
|
||||
String get usbStatus_notConnected => 'Selecione um dispositivo USB';
|
||||
|
||||
@override
|
||||
String get usbStatus_connecting => 'Conectando ao dispositivo USB...';
|
||||
|
||||
@override
|
||||
String get usbStatus_searching => 'Procurando por dispositivos USB...';
|
||||
|
||||
@@ -7361,9 +7342,6 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
return 'ID: $id…';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpSectionTitle => 'TCP / IP';
|
||||
|
||||
@override
|
||||
String get tcpConnectedToHeader => 'Conectado a';
|
||||
|
||||
@@ -8500,9 +8478,6 @@ class AppLocalizationsPtPt extends AppLocalizationsPt {
|
||||
@override
|
||||
String get common_interval => 'Intervalo';
|
||||
|
||||
@override
|
||||
String get scanner_title => 'MeshCore Open';
|
||||
|
||||
@override
|
||||
String get connectionChoiceUsbLabel => 'USB';
|
||||
|
||||
@@ -8512,9 +8487,6 @@ class AppLocalizationsPtPt extends AppLocalizationsPt {
|
||||
@override
|
||||
String get connectionChoiceTcpLabel => 'TCP';
|
||||
|
||||
@override
|
||||
String get tcpScreenTitle => 'Ligar por TCP';
|
||||
|
||||
@override
|
||||
String get tcpHostLabel => 'Endereço';
|
||||
|
||||
@@ -8527,14 +8499,6 @@ class AppLocalizationsPtPt extends AppLocalizationsPt {
|
||||
@override
|
||||
String get tcpPortHint => '5000';
|
||||
|
||||
@override
|
||||
String get tcpStatus_notConnected => 'Introduza o endereço e ligue';
|
||||
|
||||
@override
|
||||
String tcpStatus_connectingTo(String endpoint) {
|
||||
return 'A ligar a $endpoint...';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpErrorHostRequired => 'O endereço é obrigatório.';
|
||||
|
||||
@@ -8553,9 +8517,6 @@ class AppLocalizationsPtPt extends AppLocalizationsPt {
|
||||
return 'Falha na ligação TCP: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get usbScreenTitle => 'Ligar por USB';
|
||||
|
||||
@override
|
||||
String get usbScreenSubtitle =>
|
||||
'Escolha um dispositivo série detetado e ligue-se diretamente ao seu nó MeshCore.';
|
||||
@@ -8571,6 +8532,10 @@ class AppLocalizationsPtPt extends AppLocalizationsPt {
|
||||
String get usbScreenEmptyState =>
|
||||
'Nenhum dispositivo USB encontrado. Ligue um e atualize.';
|
||||
|
||||
@override
|
||||
String get usbScreenEmptyStateAuto =>
|
||||
'Nenhum dispositivo USB encontrado. Ligue um e aparece aqui.';
|
||||
|
||||
@override
|
||||
String get usbErrorPermissionDenied => 'A permissão USB foi recusada.';
|
||||
|
||||
@@ -8616,12 +8581,6 @@ class AppLocalizationsPtPt extends AppLocalizationsPt {
|
||||
@override
|
||||
String get usbFallbackDeviceName => 'Dispositivo Web Serial';
|
||||
|
||||
@override
|
||||
String get usbStatus_notConnected => 'Selecione um dispositivo USB';
|
||||
|
||||
@override
|
||||
String get usbStatus_connecting => 'A ligar ao dispositivo USB...';
|
||||
|
||||
@override
|
||||
String get usbStatus_searching => 'A procurar dispositivos USB...';
|
||||
|
||||
@@ -15634,9 +15593,6 @@ class AppLocalizationsPtPt extends AppLocalizationsPt {
|
||||
return 'ID: $id…';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpSectionTitle => 'TCP / IP';
|
||||
|
||||
@override
|
||||
String get tcpConnectedToHeader => 'Ligado a';
|
||||
|
||||
|
||||
@@ -179,9 +179,6 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
@override
|
||||
String get common_interval => 'Интервал';
|
||||
|
||||
@override
|
||||
String get scanner_title => 'MeshCore Open';
|
||||
|
||||
@override
|
||||
String get connectionChoiceUsbLabel => 'USB';
|
||||
|
||||
@@ -191,9 +188,6 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
@override
|
||||
String get connectionChoiceTcpLabel => 'TCP';
|
||||
|
||||
@override
|
||||
String get tcpScreenTitle => 'Установить соединение по протоколу TCP';
|
||||
|
||||
@override
|
||||
String get tcpHostLabel => 'IP-адрес';
|
||||
|
||||
@@ -206,14 +200,6 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
@override
|
||||
String get tcpPortHint => '5000';
|
||||
|
||||
@override
|
||||
String get tcpStatus_notConnected => 'Введите адрес и подключитесь.';
|
||||
|
||||
@override
|
||||
String tcpStatus_connectingTo(String endpoint) {
|
||||
return 'Подключение к $endpoint...';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpErrorHostRequired => 'Необходимо указать IP-адрес.';
|
||||
|
||||
@@ -233,9 +219,6 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
return 'Не удалось установить соединение TCP: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get usbScreenTitle => 'Подключение через USB';
|
||||
|
||||
@override
|
||||
String get usbScreenSubtitle =>
|
||||
'Выберите обнаруженное устройство с последовательным интерфейсом и подключите его напрямую к вашему узлу MeshCore.';
|
||||
@@ -251,6 +234,10 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
String get usbScreenEmptyState =>
|
||||
'Не обнаружено устройств USB. Подключите одно из них и обновите список.';
|
||||
|
||||
@override
|
||||
String get usbScreenEmptyStateAuto =>
|
||||
'Не обнаружено устройств USB. Подключите одно из них, и оно появится здесь.';
|
||||
|
||||
@override
|
||||
String get usbErrorPermissionDenied =>
|
||||
'Запрос на доступ через USB был отклонен.';
|
||||
@@ -299,12 +286,6 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
String get usbFallbackDeviceName =>
|
||||
'Устройство для последовательного подключения к сети';
|
||||
|
||||
@override
|
||||
String get usbStatus_notConnected => 'Выберите USB-устройство';
|
||||
|
||||
@override
|
||||
String get usbStatus_connecting => 'Подключение к USB-устройству...';
|
||||
|
||||
@override
|
||||
String get usbStatus_searching => 'Поиск USB-устройств...';
|
||||
|
||||
@@ -7395,9 +7376,6 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
return 'ID: $id…';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpSectionTitle => 'TCP / IP';
|
||||
|
||||
@override
|
||||
String get tcpConnectedToHeader => 'Подключено к';
|
||||
|
||||
|
||||
@@ -180,9 +180,6 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
@override
|
||||
String get common_interval => 'Časový interval';
|
||||
|
||||
@override
|
||||
String get scanner_title => 'MeshCore – Verzia pre verejnosť';
|
||||
|
||||
@override
|
||||
String get connectionChoiceUsbLabel => 'USB';
|
||||
|
||||
@@ -192,9 +189,6 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
@override
|
||||
String get connectionChoiceTcpLabel => 'TCP';
|
||||
|
||||
@override
|
||||
String get tcpScreenTitle => 'Spojte sa pomocou protokolu TCP';
|
||||
|
||||
@override
|
||||
String get tcpHostLabel => 'IP adresa';
|
||||
|
||||
@@ -207,14 +201,6 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
@override
|
||||
String get tcpPortHint => '5 000';
|
||||
|
||||
@override
|
||||
String get tcpStatus_notConnected => 'Zadajte cieľovú adresu a pripojte sa.';
|
||||
|
||||
@override
|
||||
String tcpStatus_connectingTo(String endpoint) {
|
||||
return 'Pripojenie k $endpoint...';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpErrorHostRequired => 'Je potrebné zadať IP adresu.';
|
||||
|
||||
@@ -233,9 +219,6 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
return 'Neúspešné vytvorenie TCP spojenia: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get usbScreenTitle => 'Pripojte cez USB';
|
||||
|
||||
@override
|
||||
String get usbScreenSubtitle =>
|
||||
'Vyberte detekovaný sériový zariadenie a pripojte ho priamo k vašej MeshCore uzlu.';
|
||||
@@ -251,6 +234,10 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
String get usbScreenEmptyState =>
|
||||
'Nenašli sa žiadne USB zariadenia. Pripojte jedno a obnovte.';
|
||||
|
||||
@override
|
||||
String get usbScreenEmptyStateAuto =>
|
||||
'Nenašli sa žiadne USB zariadenia. Pripojte jedno a zobrazí sa tu.';
|
||||
|
||||
@override
|
||||
String get usbErrorPermissionDenied =>
|
||||
'Žiadosť o prístup cez USB bola zamietnutá.';
|
||||
@@ -298,12 +285,6 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
@override
|
||||
String get usbFallbackDeviceName => 'Webový sériový zariadenie';
|
||||
|
||||
@override
|
||||
String get usbStatus_notConnected => 'Vyberte USB zariadenie';
|
||||
|
||||
@override
|
||||
String get usbStatus_connecting => 'Pripojenie k USB zariadeniu...';
|
||||
|
||||
@override
|
||||
String get usbStatus_searching => 'Hľadanie USB zariadení...';
|
||||
|
||||
@@ -7361,9 +7342,6 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
return 'ID: $id…';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpSectionTitle => 'TCP / IP';
|
||||
|
||||
@override
|
||||
String get tcpConnectedToHeader => 'Pripojené k';
|
||||
|
||||
|
||||
@@ -181,9 +181,6 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
@override
|
||||
String get common_interval => 'Časovni interval';
|
||||
|
||||
@override
|
||||
String get scanner_title => 'MeshCore – Odprto';
|
||||
|
||||
@override
|
||||
String get connectionChoiceUsbLabel => 'USB';
|
||||
|
||||
@@ -193,9 +190,6 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
@override
|
||||
String get connectionChoiceTcpLabel => 'TCP';
|
||||
|
||||
@override
|
||||
String get tcpScreenTitle => 'Komunicirajte preko protokola TCP';
|
||||
|
||||
@override
|
||||
String get tcpHostLabel => 'IP naslov';
|
||||
|
||||
@@ -208,14 +202,6 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
@override
|
||||
String get tcpPortHint => '5000';
|
||||
|
||||
@override
|
||||
String get tcpStatus_notConnected => 'Vnesite končni naslov in se povežite';
|
||||
|
||||
@override
|
||||
String tcpStatus_connectingTo(String endpoint) {
|
||||
return 'Povezava z $endpoint...';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpErrorHostRequired => 'Potrebna je IP-naslov.';
|
||||
|
||||
@@ -234,9 +220,6 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
return 'Napaka pri povezavi TCP: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get usbScreenTitle => 'Povežite preko USB';
|
||||
|
||||
@override
|
||||
String get usbScreenSubtitle =>
|
||||
'Izberite zaznano serijsko napravo in se neposredno povežite z vašo MeshCore napravo.';
|
||||
@@ -252,6 +235,10 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
String get usbScreenEmptyState =>
|
||||
'Niti en USB naprave niso najdeni. Povežite eno in posodobite.';
|
||||
|
||||
@override
|
||||
String get usbScreenEmptyStateAuto =>
|
||||
'Niti en USB naprave niso najdeni. Povežite eno in prikazala se bo tukaj.';
|
||||
|
||||
@override
|
||||
String get usbErrorPermissionDenied =>
|
||||
'Dovoljenje za dostop preko USB-ja je bilo zavrnjeno.';
|
||||
@@ -297,12 +284,6 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
String get usbFallbackDeviceName =>
|
||||
'Naprave za serijsko komunikacijo preko spleta';
|
||||
|
||||
@override
|
||||
String get usbStatus_notConnected => 'Izberite USB naprave.';
|
||||
|
||||
@override
|
||||
String get usbStatus_connecting => 'Povezava z USB napravo...';
|
||||
|
||||
@override
|
||||
String get usbStatus_searching => 'Iskanje USB naprav...';
|
||||
|
||||
@@ -7356,9 +7337,6 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
return 'ID: $id…';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpSectionTitle => 'TCP / IP';
|
||||
|
||||
@override
|
||||
String get tcpConnectedToHeader => 'Povezano z';
|
||||
|
||||
|
||||
@@ -178,9 +178,6 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
@override
|
||||
String get common_interval => 'Intervall';
|
||||
|
||||
@override
|
||||
String get scanner_title => 'MeshCore – Öppen version';
|
||||
|
||||
@override
|
||||
String get connectionChoiceUsbLabel => 'USB';
|
||||
|
||||
@@ -190,9 +187,6 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
@override
|
||||
String get connectionChoiceTcpLabel => 'TCP';
|
||||
|
||||
@override
|
||||
String get tcpScreenTitle => 'Anslut via TCP';
|
||||
|
||||
@override
|
||||
String get tcpHostLabel => 'IP-adress';
|
||||
|
||||
@@ -205,14 +199,6 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
@override
|
||||
String get tcpPortHint => '5000';
|
||||
|
||||
@override
|
||||
String get tcpStatus_notConnected => 'Ange slutpunkt och anslut';
|
||||
|
||||
@override
|
||||
String tcpStatus_connectingTo(String endpoint) {
|
||||
return 'Anslutning till $endpoint...';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpErrorHostRequired => 'IP-adress krävs.';
|
||||
|
||||
@@ -231,9 +217,6 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
return 'Fel vid TCP-anslutning: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get usbScreenTitle => 'Anslut via USB';
|
||||
|
||||
@override
|
||||
String get usbScreenSubtitle =>
|
||||
'Välj en detekterad seriell enhet och anslut direkt till din MeshCore-nod.';
|
||||
@@ -249,6 +232,10 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
String get usbScreenEmptyState =>
|
||||
'Inga USB-enheter hittades. Anslut en och uppdatera.';
|
||||
|
||||
@override
|
||||
String get usbScreenEmptyStateAuto =>
|
||||
'Inga USB-enheter hittades. Anslut en så visas den här.';
|
||||
|
||||
@override
|
||||
String get usbErrorPermissionDenied => 'Tillgången via USB nekas.';
|
||||
|
||||
@@ -294,12 +281,6 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
@override
|
||||
String get usbFallbackDeviceName => 'Web Serial-enhet';
|
||||
|
||||
@override
|
||||
String get usbStatus_notConnected => 'Välj en USB-enhet';
|
||||
|
||||
@override
|
||||
String get usbStatus_connecting => 'Anslutning till USB-enhet...';
|
||||
|
||||
@override
|
||||
String get usbStatus_searching => 'Söker efter USB-enheter...';
|
||||
|
||||
@@ -7311,9 +7292,6 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
return 'ID: $id…';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpSectionTitle => 'TCP / IP';
|
||||
|
||||
@override
|
||||
String get tcpConnectedToHeader => 'Ansluten till';
|
||||
|
||||
|
||||
@@ -179,9 +179,6 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
@override
|
||||
String get common_interval => 'Інтервал';
|
||||
|
||||
@override
|
||||
String get scanner_title => 'MeshCore: Відкритий доступ';
|
||||
|
||||
@override
|
||||
String get connectionChoiceUsbLabel => 'USB';
|
||||
|
||||
@@ -191,9 +188,6 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
@override
|
||||
String get connectionChoiceTcpLabel => 'TCP';
|
||||
|
||||
@override
|
||||
String get tcpScreenTitle => 'Підключитись через TCP';
|
||||
|
||||
@override
|
||||
String get tcpHostLabel => 'IP-адреса';
|
||||
|
||||
@@ -206,14 +200,6 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
@override
|
||||
String get tcpPortHint => '5000';
|
||||
|
||||
@override
|
||||
String get tcpStatus_notConnected => 'Введіть кінцеву точку та підключіться';
|
||||
|
||||
@override
|
||||
String tcpStatus_connectingTo(String endpoint) {
|
||||
return 'Підключення до $endpoint...';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpErrorHostRequired => 'Необхідно вказати IP-адресу.';
|
||||
|
||||
@@ -233,9 +219,6 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
return 'Не вдалось встановити з\'єднання TCP: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get usbScreenTitle => 'Підключити через USB';
|
||||
|
||||
@override
|
||||
String get usbScreenSubtitle =>
|
||||
'Виберіть виявлений USB-пристрій і підключіть його безпосередньо до вашого вузла MeshCore.';
|
||||
@@ -251,6 +234,10 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
String get usbScreenEmptyState =>
|
||||
'Не знайдено жодних пристроїв USB. Підключіть один і перезавантажте.';
|
||||
|
||||
@override
|
||||
String get usbScreenEmptyStateAuto =>
|
||||
'Не знайдено жодних пристроїв USB. Підключіть один, і він з\'явиться тут.';
|
||||
|
||||
@override
|
||||
String get usbErrorPermissionDenied =>
|
||||
'Було відмовлено у наданні дозволу на використання USB.';
|
||||
@@ -297,12 +284,6 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
String get usbFallbackDeviceName =>
|
||||
'Пристрій для передачі даних по веб-серіалах';
|
||||
|
||||
@override
|
||||
String get usbStatus_notConnected => 'Виберіть пристрій USB';
|
||||
|
||||
@override
|
||||
String get usbStatus_connecting => 'Підключення до USB-пристрою...';
|
||||
|
||||
@override
|
||||
String get usbStatus_searching => 'Пошук пристроїв USB...';
|
||||
|
||||
@@ -7405,9 +7386,6 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
return 'ID: $id…';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpSectionTitle => 'TCP / IP';
|
||||
|
||||
@override
|
||||
String get tcpConnectedToHeader => 'Підключено до';
|
||||
|
||||
|
||||
@@ -174,9 +174,6 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
@override
|
||||
String get common_interval => '间隔';
|
||||
|
||||
@override
|
||||
String get scanner_title => '连接设备';
|
||||
|
||||
@override
|
||||
String get connectionChoiceUsbLabel => 'USB';
|
||||
|
||||
@@ -186,9 +183,6 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
@override
|
||||
String get connectionChoiceTcpLabel => 'TCP';
|
||||
|
||||
@override
|
||||
String get tcpScreenTitle => '通过 TCP 连接';
|
||||
|
||||
@override
|
||||
String get tcpHostLabel => 'IP地址';
|
||||
|
||||
@@ -201,14 +195,6 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
@override
|
||||
String get tcpPortHint => '5000';
|
||||
|
||||
@override
|
||||
String get tcpStatus_notConnected => '输入目标地址,然后连接';
|
||||
|
||||
@override
|
||||
String tcpStatus_connectingTo(String endpoint) {
|
||||
return '连接到 $endpoint...';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpErrorHostRequired => '需要提供IP地址。';
|
||||
|
||||
@@ -226,9 +212,6 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
return 'TCP 连接失败:$error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get usbScreenTitle => '通过USB连接';
|
||||
|
||||
@override
|
||||
String get usbScreenSubtitle => '选择已检测到的串行设备,并直接连接到您的 MeshCore 节点。';
|
||||
|
||||
@@ -241,6 +224,9 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
@override
|
||||
String get usbScreenEmptyState => '未找到任何 USB 设备。请插入一个,然后刷新。';
|
||||
|
||||
@override
|
||||
String get usbScreenEmptyStateAuto => '未找到任何 USB 设备。请插入一个,它会显示在这里。';
|
||||
|
||||
@override
|
||||
String get usbErrorPermissionDenied => '拒绝了USB权限。';
|
||||
|
||||
@@ -280,12 +266,6 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
@override
|
||||
String get usbFallbackDeviceName => 'Web 串流设备';
|
||||
|
||||
@override
|
||||
String get usbStatus_notConnected => '选择一个 USB 设备';
|
||||
|
||||
@override
|
||||
String get usbStatus_connecting => '连接USB设备...';
|
||||
|
||||
@override
|
||||
String get usbStatus_searching => '正在搜索 USB 设备...';
|
||||
|
||||
@@ -6893,9 +6873,6 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
return 'ID:$id…';
|
||||
}
|
||||
|
||||
@override
|
||||
String get tcpSectionTitle => 'TCP / IP';
|
||||
|
||||
@override
|
||||
String get tcpConnectedToHeader => '已连接到';
|
||||
|
||||
|
||||
+1
-15
@@ -54,7 +54,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"scanner_title": "MeshCore Open",
|
||||
"scanner_scanning": "Scannen naar apparaten...",
|
||||
"scanner_connecting": "Verbinden...",
|
||||
"scanner_disconnecting": "Verbinding verbreken...",
|
||||
@@ -2207,10 +2206,10 @@
|
||||
"connectionChoiceUsbLabel": "USB",
|
||||
"usbScreenSubtitle": "Selecteer een gedetecteerd serieel apparaat en maak direct verbinding met je MeshCore-node.",
|
||||
"connectionChoiceBluetoothLabel": "Bluetooth",
|
||||
"usbScreenTitle": "Verbind via USB",
|
||||
"usbScreenStatus": "Selecteer een USB-apparaat",
|
||||
"usbScreenNote": "USB-serieel is actief op ondersteunde Android-apparaten en desktop-platforms.",
|
||||
"usbScreenEmptyState": "Geen USB-apparaten gevonden. Sluit er een aan en herlaad.",
|
||||
"usbScreenEmptyStateAuto": "Geen USB-apparaten gevonden. Sluit er een aan en het verschijnt hier.",
|
||||
"usbErrorPermissionDenied": "Toegang via USB is geweigerd.",
|
||||
"usbErrorDeviceMissing": "Het geselecteerde USB-apparaat is niet meer beschikbaar.",
|
||||
"usbErrorInvalidPort": "Selecteer een geldig USB-apparaat.",
|
||||
@@ -2231,17 +2230,8 @@
|
||||
}
|
||||
},
|
||||
"usbConnectionFailed": "Fout bij de USB-verbinding: {error}",
|
||||
"usbStatus_notConnected": "Selecteer een USB-apparaat",
|
||||
"usbStatus_connecting": "Verbinding maken met USB-apparaat...",
|
||||
"usbStatus_searching": "Zoeken naar USB-apparaten...",
|
||||
"usbErrorConnectTimedOut": "Time-out bij verbinden. Zorg dat het apparaat USB Companion-firmware heeft.",
|
||||
"@tcpStatus_connectingTo": {
|
||||
"placeholders": {
|
||||
"endpoint": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@tcpConnectionFailed": {
|
||||
"placeholders": {
|
||||
"error": {
|
||||
@@ -2249,14 +2239,11 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"tcpScreenTitle": "Verbind via TCP",
|
||||
"tcpHostLabel": "Eindpunt",
|
||||
"tcpHostHint": "192.168.40.10 / example.com",
|
||||
"connectionChoiceTcpLabel": "TCP",
|
||||
"tcpPortLabel": "Poort",
|
||||
"tcpPortHint": "5000",
|
||||
"tcpStatus_notConnected": "Voer het eindpunt in en verbind",
|
||||
"tcpStatus_connectingTo": "Verbinding maken met {endpoint}...",
|
||||
"tcpErrorHostRequired": "Host is vereist.",
|
||||
"tcpErrorPortInvalid": "De poortwaarde moet tussen 1 en 65535 liggen.",
|
||||
"tcpErrorUnsupported": "TCP-transport wordt niet ondersteund op dit platform.",
|
||||
@@ -3313,7 +3300,6 @@
|
||||
}
|
||||
},
|
||||
"community_shortId": "ID: {id}…",
|
||||
"tcpSectionTitle": "TCP / IP",
|
||||
"tcpConnectedToHeader": "Verbonden met",
|
||||
"usbChooseSerialPort": "Seriële poort kiezen",
|
||||
"neighbors_durationSeconds": "{seconds}s",
|
||||
|
||||
+1
-15
@@ -54,7 +54,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"scanner_title": "MeshCore – wersja open source",
|
||||
"scanner_scanning": "Skanowanie urządzeń...",
|
||||
"scanner_connecting": "Łączenie...",
|
||||
"scanner_disconnecting": "Odłączanie...",
|
||||
@@ -2202,12 +2201,12 @@
|
||||
"map_guessedLocation": "Przypuszczalna lokalizacja",
|
||||
"map_showGuessedLocations": "Pokaż przypuszczalne lokalizacje węzłów",
|
||||
"usbScreenSubtitle": "Wybierz wykryte urządzenie szeregowe i połącz się bezpośrednio ze swoim węzłem MeshCore.",
|
||||
"usbScreenTitle": "Połącz przez USB",
|
||||
"connectionChoiceUsbLabel": "USB",
|
||||
"connectionChoiceBluetoothLabel": "Bluetooth",
|
||||
"usbScreenStatus": "Wybierz urządzenie USB",
|
||||
"usbScreenNote": "Port szeregowy USB jest aktywny na urządzeniach z systemem Android i platformach stacjonarnych, które go obsługują.",
|
||||
"usbScreenEmptyState": "Nie znaleziono żadnych urządzeń USB. Podłącz jedno i zaktualizuj.",
|
||||
"usbScreenEmptyStateAuto": "Nie znaleziono żadnych urządzeń USB. Podłącz jedno, a pojawi się tutaj.",
|
||||
"usbErrorPermissionDenied": "Zostało odrzucone żądanie dostępu przez USB.",
|
||||
"usbErrorDeviceMissing": "Wybór urządzenia USB już nie jest dostępny.",
|
||||
"usbErrorInvalidPort": "Wybierz prawidłowe urządzenie USB.",
|
||||
@@ -2228,17 +2227,8 @@
|
||||
}
|
||||
},
|
||||
"usbStatus_searching": "Wyszukiwanie urządzeń USB...",
|
||||
"usbStatus_connecting": "Połączenie z urządzeniem USB...",
|
||||
"usbStatus_notConnected": "Wybierz urządzenie USB",
|
||||
"usbConnectionFailed": "Błąd połączenia USB: {error}",
|
||||
"usbErrorConnectTimedOut": "Połączenie nie zostało nawiązane. Upewnij się, że urządzenie posiada oprogramowanie \"USB Companion\".",
|
||||
"@tcpStatus_connectingTo": {
|
||||
"placeholders": {
|
||||
"endpoint": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@tcpConnectionFailed": {
|
||||
"placeholders": {
|
||||
"error": {
|
||||
@@ -2248,12 +2238,9 @@
|
||||
},
|
||||
"connectionChoiceTcpLabel": "TCP",
|
||||
"tcpHostHint": "192.168.40.10",
|
||||
"tcpScreenTitle": "Połącz się za pomocą protokołu TCP",
|
||||
"tcpHostLabel": "Adres IP",
|
||||
"tcpPortLabel": "Port",
|
||||
"tcpPortHint": "5000",
|
||||
"tcpStatus_notConnected": "Wprowadź adres URL i połącz",
|
||||
"tcpStatus_connectingTo": "Połączenie z {endpoint}...",
|
||||
"tcpErrorHostRequired": "Wymagana jest adresa IP.",
|
||||
"tcpErrorPortInvalid": "Numer portu musi mieścić się w zakresie od 1 do 65535.",
|
||||
"tcpErrorUnsupported": "Transport TCP nie jest obsługiwany na tej platformie.",
|
||||
@@ -3445,7 +3432,6 @@
|
||||
}
|
||||
},
|
||||
"community_shortId": "ID: {id}…",
|
||||
"tcpSectionTitle": "TCP / IP",
|
||||
"tcpConnectedToHeader": "Połączono z",
|
||||
"usbChooseSerialPort": "Wybierz port szeregowy",
|
||||
"neighbors_durationSeconds": "{seconds} s",
|
||||
|
||||
+1
-15
@@ -54,7 +54,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"scanner_title": "MeshCore: Versão aberta",
|
||||
"scanner_scanning": "Procurando por dispositivos...",
|
||||
"scanner_connecting": "Conectando...",
|
||||
"scanner_disconnecting": "Desconectando...",
|
||||
@@ -2096,11 +2095,11 @@
|
||||
"map_showGuessedLocations": "Mostrar as localizações dos nós estimados",
|
||||
"connectionChoiceUsbLabel": "USB",
|
||||
"connectionChoiceBluetoothLabel": "Bluetooth",
|
||||
"usbScreenTitle": "Conecte via USB",
|
||||
"usbScreenSubtitle": "Selecione um dispositivo serial detectado e conecte-o diretamente ao seu nó MeshCore.",
|
||||
"usbScreenStatus": "Selecione um dispositivo USB",
|
||||
"usbScreenNote": "A comunicação serial via USB está ativa em dispositivos Android e plataformas de desktop compatíveis.",
|
||||
"usbScreenEmptyState": "Nenhum dispositivo USB encontrado. Conecte um e atualize.",
|
||||
"usbScreenEmptyStateAuto": "Nenhum dispositivo USB encontrado. Conecte um e ele aparecerá aqui.",
|
||||
"usbErrorPermissionDenied": "A permissão para acesso via USB foi negada.",
|
||||
"usbErrorDeviceMissing": "O dispositivo USB selecionado não está mais disponível.",
|
||||
"usbErrorInvalidPort": "Selecione um dispositivo USB válido.",
|
||||
@@ -2121,17 +2120,8 @@
|
||||
}
|
||||
},
|
||||
"usbStatus_searching": "Procurando por dispositivos USB...",
|
||||
"usbStatus_notConnected": "Selecione um dispositivo USB",
|
||||
"usbConnectionFailed": "Falha na conexão USB: {error}",
|
||||
"usbStatus_connecting": "Conectando ao dispositivo USB...",
|
||||
"usbErrorConnectTimedOut": "A conexão expirou. Verifique se o dispositivo possui o firmware USB Companion.",
|
||||
"@tcpStatus_connectingTo": {
|
||||
"placeholders": {
|
||||
"endpoint": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@tcpConnectionFailed": {
|
||||
"placeholders": {
|
||||
"error": {
|
||||
@@ -2141,12 +2131,9 @@
|
||||
},
|
||||
"tcpHostLabel": "Endereço IP",
|
||||
"connectionChoiceTcpLabel": "TCP",
|
||||
"tcpScreenTitle": "Estabelecer conexão via TCP",
|
||||
"tcpHostHint": "192.168.40.10",
|
||||
"tcpPortLabel": "Porta",
|
||||
"tcpPortHint": "5000",
|
||||
"tcpStatus_notConnected": "Insira o endereço final e conecte-se.",
|
||||
"tcpStatus_connectingTo": "Conectando a {endpoint}...",
|
||||
"tcpErrorHostRequired": "É necessário fornecer um endereço IP.",
|
||||
"tcpErrorPortInvalid": "O valor do porto deve estar entre 1 e 65535.",
|
||||
"tcpErrorUnsupported": "O protocolo TCP não é suportado nesta plataforma.",
|
||||
@@ -3290,7 +3277,6 @@
|
||||
"contacts_advertFailed": "Não foi possível enviar o anúncio",
|
||||
"contacts_manageGroups": "Gerenciar grupos",
|
||||
"community_shortId": "ID: {id}…",
|
||||
"tcpSectionTitle": "TCP / IP",
|
||||
"tcpConnectedToHeader": "Conectado a",
|
||||
"usbChooseSerialPort": "Escolher porta serial",
|
||||
"neighbors_durationSeconds": "{seconds}s",
|
||||
|
||||
@@ -50,27 +50,23 @@
|
||||
"common_percentValue": "{percent}%",
|
||||
"common_autoRefresh": "Atualização automática",
|
||||
"common_interval": "Intervalo",
|
||||
"scanner_title": "MeshCore Open",
|
||||
"connectionChoiceUsbLabel": "USB",
|
||||
"connectionChoiceBluetoothLabel": "Bluetooth",
|
||||
"connectionChoiceTcpLabel": "TCP",
|
||||
"tcpScreenTitle": "Ligar por TCP",
|
||||
"tcpHostLabel": "Endereço",
|
||||
"tcpHostHint": "192.168.40.10 / example.com",
|
||||
"tcpPortLabel": "Porta",
|
||||
"tcpPortHint": "5000",
|
||||
"tcpStatus_notConnected": "Introduza o endereço e ligue",
|
||||
"tcpStatus_connectingTo": "A ligar a {endpoint}...",
|
||||
"tcpErrorHostRequired": "O endereço é obrigatório.",
|
||||
"tcpErrorPortInvalid": "A porta tem de estar entre 1 e 65535.",
|
||||
"tcpErrorUnsupported": "O transporte TCP não é suportado nesta plataforma.",
|
||||
"tcpErrorTimedOut": "A ligação TCP excedeu o tempo limite.",
|
||||
"tcpConnectionFailed": "Falha na ligação TCP: {error}",
|
||||
"usbScreenTitle": "Ligar por USB",
|
||||
"usbScreenSubtitle": "Escolha um dispositivo série detetado e ligue-se diretamente ao seu nó MeshCore.",
|
||||
"usbScreenStatus": "Selecione um dispositivo USB",
|
||||
"usbScreenNote": "O USB série está ativo em dispositivos Android compatíveis e em plataformas de computador.",
|
||||
"usbScreenEmptyState": "Nenhum dispositivo USB encontrado. Ligue um e atualize.",
|
||||
"usbScreenEmptyStateAuto": "Nenhum dispositivo USB encontrado. Ligue um e aparece aqui.",
|
||||
"usbErrorPermissionDenied": "A permissão USB foi recusada.",
|
||||
"usbErrorDeviceMissing": "O dispositivo USB selecionado já não está disponível.",
|
||||
"usbErrorInvalidPort": "Selecione um dispositivo USB válido.",
|
||||
@@ -84,8 +80,6 @@
|
||||
"usbErrorPortClosed": "A ligação USB não está aberta.",
|
||||
"usbErrorConnectTimedOut": "A ligação excedeu o tempo limite. Confirme que o dispositivo tem firmware USB Companion.",
|
||||
"usbFallbackDeviceName": "Dispositivo Web Serial",
|
||||
"usbStatus_notConnected": "Selecione um dispositivo USB",
|
||||
"usbStatus_connecting": "A ligar ao dispositivo USB...",
|
||||
"usbStatus_searching": "A procurar dispositivos USB...",
|
||||
"usbConnectionFailed": "Falha na ligação USB: {error}",
|
||||
"scanner_scanning": "A procurar dispositivos...",
|
||||
@@ -1967,7 +1961,6 @@
|
||||
"contacts_manageGroups": "Gerir grupos",
|
||||
"contacts_keyPrefixSemantics": "Prefixo da chave {prefix}",
|
||||
"community_shortId": "ID: {id}…",
|
||||
"tcpSectionTitle": "TCP / IP",
|
||||
"tcpConnectedToHeader": "Ligado a",
|
||||
"usbChooseSerialPort": "Escolher porta série",
|
||||
"neighbors_durationSeconds": "{seconds}s",
|
||||
|
||||
+1
-15
@@ -41,7 +41,6 @@
|
||||
"common_percentValue": "{percent}%",
|
||||
"common_autoRefresh": "Автообновление",
|
||||
"common_interval": "Интервал",
|
||||
"scanner_title": "MeshCore Open",
|
||||
"scanner_scanning": "Поиск устройств...",
|
||||
"scanner_connecting": "Подключение...",
|
||||
"scanner_disconnecting": "Отключение...",
|
||||
@@ -1344,11 +1343,11 @@
|
||||
"map_showGuessedLocations": "Отобразить предполагаемые места расположения узлов",
|
||||
"connectionChoiceUsbLabel": "USB",
|
||||
"usbScreenSubtitle": "Выберите обнаруженное устройство с последовательным интерфейсом и подключите его напрямую к вашему узлу MeshCore.",
|
||||
"usbScreenTitle": "Подключение через USB",
|
||||
"connectionChoiceBluetoothLabel": "Bluetooth",
|
||||
"usbScreenStatus": "Выберите USB-устройство",
|
||||
"usbScreenNote": "USB-серийный порт активен на поддерживаемых устройствах Android и на настольных платформах.",
|
||||
"usbScreenEmptyState": "Не обнаружено устройств USB. Подключите одно из них и обновите список.",
|
||||
"usbScreenEmptyStateAuto": "Не обнаружено устройств USB. Подключите одно из них, и оно появится здесь.",
|
||||
"usbErrorPermissionDenied": "Запрос на доступ через USB был отклонен.",
|
||||
"usbErrorDeviceMissing": "Выбранное USB-устройство больше недоступно.",
|
||||
"usbErrorInvalidPort": "Выберите действительное USB-устройство.",
|
||||
@@ -1369,17 +1368,8 @@
|
||||
}
|
||||
},
|
||||
"usbStatus_searching": "Поиск USB-устройств...",
|
||||
"usbStatus_connecting": "Подключение к USB-устройству...",
|
||||
"usbConnectionFailed": "Не удалось установить соединение через USB: {error}",
|
||||
"usbStatus_notConnected": "Выберите USB-устройство",
|
||||
"usbErrorConnectTimedOut": "Соединение не установлено. Убедитесь, что устройство имеет установленное программное обеспечение USB Companion.",
|
||||
"@tcpStatus_connectingTo": {
|
||||
"placeholders": {
|
||||
"endpoint": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@tcpConnectionFailed": {
|
||||
"placeholders": {
|
||||
"error": {
|
||||
@@ -1390,11 +1380,8 @@
|
||||
"tcpHostHint": "192.168.40.10",
|
||||
"connectionChoiceTcpLabel": "TCP",
|
||||
"tcpHostLabel": "IP-адрес",
|
||||
"tcpScreenTitle": "Установить соединение по протоколу TCP",
|
||||
"tcpPortLabel": "Порт",
|
||||
"tcpPortHint": "5000",
|
||||
"tcpStatus_notConnected": "Введите адрес и подключитесь.",
|
||||
"tcpStatus_connectingTo": "Подключение к {endpoint}...",
|
||||
"tcpErrorHostRequired": "Необходимо указать IP-адрес.",
|
||||
"tcpErrorPortInvalid": "Порт должен находиться в диапазоне от 1 до 65535.",
|
||||
"tcpErrorUnsupported": "Протокол TCP не поддерживается на этой платформе.",
|
||||
@@ -2709,7 +2696,6 @@
|
||||
}
|
||||
},
|
||||
"community_shortId": "ID: {id}…",
|
||||
"tcpSectionTitle": "TCP / IP",
|
||||
"tcpConnectedToHeader": "Подключено к",
|
||||
"usbChooseSerialPort": "Выберите последовательный порт",
|
||||
"neighbors_durationSeconds": "{seconds}с",
|
||||
|
||||
+1
-15
@@ -54,7 +54,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"scanner_title": "MeshCore – Verzia pre verejnosť",
|
||||
"scanner_scanning": "Skrívania zariadení...",
|
||||
"scanner_connecting": "Pripojujem sa...",
|
||||
"scanner_disconnecting": "Odpojuje sa...",
|
||||
@@ -2168,13 +2167,13 @@
|
||||
"discoveredContacts_deleteContactAllContent": "Ste si istí, že chcete zmazať všetky objavené kontakty?",
|
||||
"map_showGuessedLocations": "Zobraziť umiestnenia odhadnutých uzlov",
|
||||
"map_guessedLocation": "Odhadnutá lokalita",
|
||||
"usbScreenTitle": "Pripojte cez USB",
|
||||
"usbScreenSubtitle": "Vyberte detekovaný sériový zariadenie a pripojte ho priamo k vašej MeshCore uzlu.",
|
||||
"connectionChoiceUsbLabel": "USB",
|
||||
"connectionChoiceBluetoothLabel": "Bluetooth",
|
||||
"usbScreenStatus": "Vyberte USB zariadenie",
|
||||
"usbScreenNote": "USB sériová komunikácia je aktívna na podporovaných zariadeniach s Androidom a na desktopových platformách.",
|
||||
"usbScreenEmptyState": "Nenašli sa žiadne USB zariadenia. Pripojte jedno a obnovte.",
|
||||
"usbScreenEmptyStateAuto": "Nenašli sa žiadne USB zariadenia. Pripojte jedno a zobrazí sa tu.",
|
||||
"usbErrorPermissionDenied": "Žiadosť o prístup cez USB bola zamietnutá.",
|
||||
"usbErrorDeviceMissing": "Vybrané USB zariadenie už nie je dostupné.",
|
||||
"usbErrorInvalidPort": "Vyberte platné USB zariadenie.",
|
||||
@@ -2196,16 +2195,7 @@
|
||||
},
|
||||
"usbStatus_searching": "Hľadanie USB zariadení...",
|
||||
"usbConnectionFailed": "Neúspešné pripojenie cez USB: {error}",
|
||||
"usbStatus_notConnected": "Vyberte USB zariadenie",
|
||||
"usbStatus_connecting": "Pripojenie k USB zariadeniu...",
|
||||
"usbErrorConnectTimedOut": "Pripojenie nebolo úspešné. Uistite sa, že zariadenie má nainštalovaný firmware USB Companion.",
|
||||
"@tcpStatus_connectingTo": {
|
||||
"placeholders": {
|
||||
"endpoint": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@tcpConnectionFailed": {
|
||||
"placeholders": {
|
||||
"error": {
|
||||
@@ -2215,12 +2205,9 @@
|
||||
},
|
||||
"tcpHostHint": "192.168.40.10",
|
||||
"tcpHostLabel": "IP adresa",
|
||||
"tcpScreenTitle": "Spojte sa pomocou protokolu TCP",
|
||||
"connectionChoiceTcpLabel": "TCP",
|
||||
"tcpPortLabel": "Prístav",
|
||||
"tcpPortHint": "5 000",
|
||||
"tcpStatus_notConnected": "Zadajte cieľovú adresu a pripojte sa.",
|
||||
"tcpStatus_connectingTo": "Pripojenie k {endpoint}...",
|
||||
"tcpErrorHostRequired": "Je potrebné zadať IP adresu.",
|
||||
"tcpErrorPortInvalid": "Číslo portu musí byť medzi 1 a 65535.",
|
||||
"tcpErrorUnsupported": "Prevoz prostredníctvom protokolu TCP nie je na tejto platforme podporovaný.",
|
||||
@@ -3434,7 +3421,6 @@
|
||||
}
|
||||
},
|
||||
"community_shortId": "ID: {id}…",
|
||||
"tcpSectionTitle": "TCP / IP",
|
||||
"tcpConnectedToHeader": "Pripojené k",
|
||||
"usbChooseSerialPort": "Vyberte sériový port",
|
||||
"neighbors_durationSeconds": "{seconds}s",
|
||||
|
||||
+1
-15
@@ -54,7 +54,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"scanner_title": "MeshCore – Odprto",
|
||||
"scanner_scanning": "Skeniram za naprave...",
|
||||
"scanner_connecting": "Povezujem se...",
|
||||
"scanner_disconnecting": "Odklapljam se...",
|
||||
@@ -2087,13 +2086,13 @@
|
||||
"discoveredContacts_deleteContactAll": "Izbriši vse odkrite kontakte",
|
||||
"map_guessedLocation": "Predpostavljena lokacija",
|
||||
"map_showGuessedLocations": "Pokaži lokacije domnevnih not.",
|
||||
"usbScreenTitle": "Povežite preko USB",
|
||||
"usbScreenSubtitle": "Izberite zaznano serijsko napravo in se neposredno povežite z vašo MeshCore napravo.",
|
||||
"connectionChoiceBluetoothLabel": "Bluetooth",
|
||||
"connectionChoiceUsbLabel": "USB",
|
||||
"usbScreenStatus": "Izberite USB naprave",
|
||||
"usbScreenNote": "USB serijska povezava je aktivna na podprtih napravah Android in na desktop platformah.",
|
||||
"usbScreenEmptyState": "Niti en USB naprave niso najdeni. Povežite eno in posodobite.",
|
||||
"usbScreenEmptyStateAuto": "Niti en USB naprave niso najdeni. Povežite eno in prikazala se bo tukaj.",
|
||||
"usbErrorPermissionDenied": "Dovoljenje za dostop preko USB-ja je bilo zavrnjeno.",
|
||||
"usbErrorDeviceMissing": "Izbrani USB napravej je več ne.",
|
||||
"usbErrorInvalidPort": "Izberite veljavno USB naprave.",
|
||||
@@ -2113,18 +2112,9 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"usbStatus_notConnected": "Izberite USB naprave.",
|
||||
"usbStatus_connecting": "Povezava z USB napravo...",
|
||||
"usbStatus_searching": "Iskanje USB naprav...",
|
||||
"usbConnectionFailed": "Napaka pri povezavi preko USB: {error}",
|
||||
"usbErrorConnectTimedOut": "Vzpostavitve ni bilo mogo. Prosimo, da se prepričate, da ima naprave trenutno nameštan firmware USB Companion.",
|
||||
"@tcpStatus_connectingTo": {
|
||||
"placeholders": {
|
||||
"endpoint": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@tcpConnectionFailed": {
|
||||
"placeholders": {
|
||||
"error": {
|
||||
@@ -2135,11 +2125,8 @@
|
||||
"connectionChoiceTcpLabel": "TCP",
|
||||
"tcpHostLabel": "IP naslov",
|
||||
"tcpHostHint": "192.168.40.10",
|
||||
"tcpScreenTitle": "Komunicirajte preko protokola TCP",
|
||||
"tcpPortLabel": "Vrata",
|
||||
"tcpPortHint": "5000",
|
||||
"tcpStatus_notConnected": "Vnesite končni naslov in se povežite",
|
||||
"tcpStatus_connectingTo": "Povezava z {endpoint}...",
|
||||
"tcpErrorHostRequired": "Potrebna je IP-naslov.",
|
||||
"tcpErrorPortInvalid": "Port mora biti med 1 in 65535.",
|
||||
"tcpErrorUnsupported": "Transport preko protokola TCP ni podprt na tej platformi.",
|
||||
@@ -3291,7 +3278,6 @@
|
||||
"contacts_advertFailed": "Oglasa ni bilo mogoče poslati",
|
||||
"contacts_manageGroups": "Upravljaj skupine",
|
||||
"community_shortId": "ID: {id}…",
|
||||
"tcpSectionTitle": "TCP / IP",
|
||||
"tcpConnectedToHeader": "Povezano z",
|
||||
"usbChooseSerialPort": "Izberite serijska vrata",
|
||||
"neighbors_durationSeconds": "{seconds} s",
|
||||
|
||||
+1
-15
@@ -54,7 +54,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"scanner_title": "MeshCore – Öppen version",
|
||||
"scanner_scanning": "Söker efter enheter...",
|
||||
"scanner_connecting": "Ansluter...",
|
||||
"scanner_disconnecting": "Anslutning bryts...",
|
||||
@@ -2091,10 +2090,10 @@
|
||||
"connectionChoiceBluetoothLabel": "Bluetooth",
|
||||
"connectionChoiceUsbLabel": "USB",
|
||||
"usbScreenSubtitle": "Välj en detekterad seriell enhet och anslut direkt till din MeshCore-nod.",
|
||||
"usbScreenTitle": "Anslut via USB",
|
||||
"usbScreenStatus": "Välj en USB-enhet",
|
||||
"usbScreenNote": "USB-seriell kommunikation är aktiv på stödda Android-enheter och på skrivbordsplattformar.",
|
||||
"usbScreenEmptyState": "Inga USB-enheter hittades. Anslut en och uppdatera.",
|
||||
"usbScreenEmptyStateAuto": "Inga USB-enheter hittades. Anslut en så visas den här.",
|
||||
"usbErrorPermissionDenied": "Tillgången via USB nekas.",
|
||||
"usbErrorDeviceMissing": "Den valda USB-enheten är inte längre tillgänglig.",
|
||||
"usbErrorInvalidPort": "Välj en giltig USB-enhet.",
|
||||
@@ -2114,18 +2113,9 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"usbStatus_connecting": "Anslutning till USB-enhet...",
|
||||
"usbStatus_notConnected": "Välj en USB-enhet",
|
||||
"usbConnectionFailed": "Fel vid USB-anslutning: {error}",
|
||||
"usbStatus_searching": "Söker efter USB-enheter...",
|
||||
"usbErrorConnectTimedOut": "Anslutningen tog för lång tid. Kontrollera att enheten har USB Companion-firmware.",
|
||||
"@tcpStatus_connectingTo": {
|
||||
"placeholders": {
|
||||
"endpoint": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@tcpConnectionFailed": {
|
||||
"placeholders": {
|
||||
"error": {
|
||||
@@ -2135,12 +2125,9 @@
|
||||
},
|
||||
"tcpHostHint": "192.168.40.10",
|
||||
"tcpHostLabel": "IP-adress",
|
||||
"tcpScreenTitle": "Anslut via TCP",
|
||||
"connectionChoiceTcpLabel": "TCP",
|
||||
"tcpPortLabel": "Port",
|
||||
"tcpPortHint": "5000",
|
||||
"tcpStatus_notConnected": "Ange slutpunkt och anslut",
|
||||
"tcpStatus_connectingTo": "Anslutning till {endpoint}...",
|
||||
"tcpErrorHostRequired": "IP-adress krävs.",
|
||||
"tcpErrorPortInvalid": "Porten måste vara mellan 1 och 65535.",
|
||||
"tcpErrorUnsupported": "TCP-transport fungerar inte på denna plattform.",
|
||||
@@ -3285,7 +3272,6 @@
|
||||
"contacts_advertFailed": "Kunde inte skicka annonsen",
|
||||
"contacts_manageGroups": "Hantera grupper",
|
||||
"community_shortId": "ID: {id}…",
|
||||
"tcpSectionTitle": "TCP / IP",
|
||||
"tcpConnectedToHeader": "Ansluten till",
|
||||
"usbChooseSerialPort": "Välj serieport",
|
||||
"neighbors_durationSeconds": "{seconds} s",
|
||||
|
||||
+1
-15
@@ -55,7 +55,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"scanner_title": "MeshCore: Відкритий доступ",
|
||||
"scanner_scanning": "Пошук пристроїв...",
|
||||
"scanner_connecting": "Підключення...",
|
||||
"scanner_disconnecting": "Відключення...",
|
||||
@@ -2167,12 +2166,12 @@
|
||||
"map_showGuessedLocations": "Показати геопозиції передбачених вузлів",
|
||||
"map_guessedLocation": "Передбачена геопозиція",
|
||||
"usbScreenSubtitle": "Виберіть виявлений USB-пристрій і підключіть його безпосередньо до вашого вузла MeshCore.",
|
||||
"usbScreenTitle": "Підключити через USB",
|
||||
"connectionChoiceBluetoothLabel": "Bluetooth",
|
||||
"connectionChoiceUsbLabel": "USB",
|
||||
"usbScreenStatus": "Виберіть пристрій USB",
|
||||
"usbScreenNote": "USB-серіальний інтерфейс активний на підтримуваних пристроях на базі Android та на десктопних платформах.",
|
||||
"usbScreenEmptyState": "Не знайдено жодних пристроїв USB. Підключіть один і перезавантажте.",
|
||||
"usbScreenEmptyStateAuto": "Не знайдено жодних пристроїв USB. Підключіть один, і він з'явиться тут.",
|
||||
"usbErrorPermissionDenied": "Було відмовлено у наданні дозволу на використання USB.",
|
||||
"usbErrorDeviceMissing": "Вибране USB-пристрій більше недоступне.",
|
||||
"usbErrorInvalidPort": "Виберіть дійсний USB-пристрій.",
|
||||
@@ -2193,17 +2192,8 @@
|
||||
}
|
||||
},
|
||||
"usbStatus_searching": "Пошук пристроїв USB...",
|
||||
"usbStatus_notConnected": "Виберіть пристрій USB",
|
||||
"usbConnectionFailed": "Не вдалось встановити з'єднання через USB: {error}",
|
||||
"usbStatus_connecting": "Підключення до USB-пристрою...",
|
||||
"usbErrorConnectTimedOut": "З'єднання не вдалось встановити. Переконайтесь, що пристрій має встановлене програмне забезпечення USB Companion.",
|
||||
"@tcpStatus_connectingTo": {
|
||||
"placeholders": {
|
||||
"endpoint": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@tcpConnectionFailed": {
|
||||
"placeholders": {
|
||||
"error": {
|
||||
@@ -2214,11 +2204,8 @@
|
||||
"connectionChoiceTcpLabel": "TCP",
|
||||
"tcpHostHint": "192.168.40.10",
|
||||
"tcpHostLabel": "IP-адреса",
|
||||
"tcpScreenTitle": "Підключитись через TCP",
|
||||
"tcpPortLabel": "Порт",
|
||||
"tcpPortHint": "5000",
|
||||
"tcpStatus_notConnected": "Введіть кінцеву точку та підключіться",
|
||||
"tcpStatus_connectingTo": "Підключення до {endpoint}...",
|
||||
"tcpErrorHostRequired": "Необхідно вказати IP-адресу.",
|
||||
"tcpErrorPortInvalid": "Порт має бути в межах від 1 до 65535.",
|
||||
"tcpErrorUnsupported": "Транспорт TCP не підтримується на цій платформі.",
|
||||
@@ -3392,7 +3379,6 @@
|
||||
}
|
||||
},
|
||||
"community_shortId": "ID: {id}…",
|
||||
"tcpSectionTitle": "TCP / IP",
|
||||
"tcpConnectedToHeader": "Підключено до",
|
||||
"usbChooseSerialPort": "Виберіть послідовний порт",
|
||||
"neighbors_durationSeconds": "{seconds}с",
|
||||
|
||||
+1
-15
@@ -55,7 +55,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"scanner_title": "连接设备",
|
||||
"scanner_scanning": "正在搜索设备...",
|
||||
"scanner_connecting": "正在连接...",
|
||||
"scanner_disconnecting": "断开连接...",
|
||||
@@ -2093,12 +2092,12 @@
|
||||
"map_showGuessedLocations": "显示猜测的节点位置",
|
||||
"map_guessedLocation": "猜测的位置",
|
||||
"connectionChoiceUsbLabel": "USB",
|
||||
"usbScreenTitle": "通过USB连接",
|
||||
"usbScreenSubtitle": "选择已检测到的串行设备,并直接连接到您的 MeshCore 节点。",
|
||||
"connectionChoiceBluetoothLabel": "蓝牙",
|
||||
"usbScreenStatus": "选择一个 USB 设备",
|
||||
"usbScreenNote": "USB 串行接口在支持的 Android 设备和桌面平台上处于活动状态。",
|
||||
"usbScreenEmptyState": "未找到任何 USB 设备。请插入一个,然后刷新。",
|
||||
"usbScreenEmptyStateAuto": "未找到任何 USB 设备。请插入一个,它会显示在这里。",
|
||||
"usbErrorPermissionDenied": "拒绝了USB权限。",
|
||||
"usbErrorDeviceMissing": "所选的USB设备已不再可用。",
|
||||
"usbErrorInvalidPort": "选择一个有效的USB设备。",
|
||||
@@ -2119,17 +2118,8 @@
|
||||
}
|
||||
},
|
||||
"usbStatus_searching": "正在搜索 USB 设备...",
|
||||
"usbStatus_connecting": "连接USB设备...",
|
||||
"usbStatus_notConnected": "选择一个 USB 设备",
|
||||
"usbConnectionFailed": "USB 连接失败:{error}",
|
||||
"usbErrorConnectTimedOut": "连接超时。请确保设备已安装 USB 伴侣固件。",
|
||||
"@tcpStatus_connectingTo": {
|
||||
"placeholders": {
|
||||
"endpoint": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@tcpConnectionFailed": {
|
||||
"placeholders": {
|
||||
"error": {
|
||||
@@ -2139,12 +2129,9 @@
|
||||
},
|
||||
"tcpHostLabel": "IP地址",
|
||||
"tcpHostHint": "192.168.40.10",
|
||||
"tcpScreenTitle": "通过 TCP 连接",
|
||||
"connectionChoiceTcpLabel": "TCP",
|
||||
"tcpPortLabel": "端口",
|
||||
"tcpPortHint": "5000",
|
||||
"tcpStatus_notConnected": "输入目标地址,然后连接",
|
||||
"tcpStatus_connectingTo": "连接到 {endpoint}...",
|
||||
"tcpErrorHostRequired": "需要提供IP地址。",
|
||||
"tcpErrorPortInvalid": "端口号必须在 1 到 65535 之间。",
|
||||
"tcpErrorUnsupported": "此平台不支持 TCP 传输。",
|
||||
@@ -3295,7 +3282,6 @@
|
||||
"contacts_advertFailed": "无法发送广播",
|
||||
"contacts_manageGroups": "管理分组",
|
||||
"community_shortId": "ID:{id}…",
|
||||
"tcpSectionTitle": "TCP / IP",
|
||||
"tcpConnectedToHeader": "已连接到",
|
||||
"usbChooseSerialPort": "选择串口",
|
||||
"neighbors_durationSeconds": "{seconds}秒",
|
||||
|
||||
+2
-2
@@ -18,7 +18,7 @@ import 'games/chess/chess_link.dart';
|
||||
import 'games/chess/chess_service.dart';
|
||||
import 'helpers/message_url_image_helper.dart';
|
||||
import 'models/image_codec_support.dart';
|
||||
import 'screens/scanner_screen.dart';
|
||||
import 'screens/connect_screen.dart';
|
||||
import 'services/image_chunk_transport.dart';
|
||||
import 'services/image_codec_service.dart';
|
||||
import 'services/image_codec_settings_store.dart';
|
||||
@@ -437,7 +437,7 @@ class _MeshCoreAppState extends State<MeshCoreApp> with WidgetsBindingObserver {
|
||||
? const ChromeRequiredScreen()
|
||||
: widget.connector.hasRadioData
|
||||
? const ChannelsScreen()
|
||||
: const ScannerScreen();
|
||||
: const ConnectScreen();
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
|
||||
@@ -0,0 +1,216 @@
|
||||
import 'dart:math' as math;
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
import '../connector/meshcore_connector.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../review_mode/review_mode_entry.dart';
|
||||
import '../theme/mesh_theme.dart';
|
||||
import '../utils/platform_info.dart';
|
||||
import '../widgets/adaptive_app_bar_title.dart';
|
||||
import '../widgets/get_node_banner.dart';
|
||||
import '../widgets/mesh_ui.dart';
|
||||
import 'scanner_screen.dart';
|
||||
import 'tcp_screen.dart';
|
||||
import 'usb_screen.dart';
|
||||
|
||||
/// Connects a radio over Bluetooth, USB or TCP, one tab each. Only the
|
||||
/// transports the platform offers get a tab: no USB on iOS, no TCP on web.
|
||||
class ConnectScreen extends StatefulWidget {
|
||||
/// The tab to open on; the first tab when the platform lacks it.
|
||||
final MeshCoreTransportType initialTransport;
|
||||
|
||||
const ConnectScreen({
|
||||
super.key,
|
||||
this.initialTransport = MeshCoreTransportType.bluetooth,
|
||||
});
|
||||
|
||||
@override
|
||||
State<ConnectScreen> createState() => _ConnectScreenState();
|
||||
}
|
||||
|
||||
class _ConnectScreenState extends State<ConnectScreen>
|
||||
with SingleTickerProviderStateMixin {
|
||||
late final List<MeshCoreTransportType> _transports;
|
||||
late final TabController _tabController;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_transports = [
|
||||
MeshCoreTransportType.bluetooth,
|
||||
if (PlatformInfo.supportsUsbSerial) MeshCoreTransportType.usb,
|
||||
if (!PlatformInfo.isWeb) MeshCoreTransportType.tcp,
|
||||
];
|
||||
_tabController = TabController(
|
||||
length: _transports.length,
|
||||
initialIndex: math.max(0, _transports.indexOf(widget.initialTransport)),
|
||||
vsync: this,
|
||||
)..addListener(_closeKeyboardLeavingTcp);
|
||||
}
|
||||
|
||||
/// A focused field keeps the TCP tab alive and the keyboard open.
|
||||
void _closeKeyboardLeavingTcp() {
|
||||
final focus = FocusManager.instance.primaryFocus;
|
||||
if (_transports[_tabController.previousIndex] ==
|
||||
MeshCoreTransportType.tcp &&
|
||||
focus?.context?.findAncestorWidgetOfExactType<EditableText>() != null) {
|
||||
focus!.unfocus();
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_tabController.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final l10n = context.l10n;
|
||||
final state = context.select<MeshCoreConnector, MeshCoreConnectionState>(
|
||||
(connector) => connector.state,
|
||||
);
|
||||
// On a short screen, an open keyboard leaves room only for the TCP form.
|
||||
final keyboard = MediaQuery.viewInsetsOf(context).bottom;
|
||||
final cramped =
|
||||
keyboard > 0 && MediaQuery.sizeOf(context).height - keyboard < 400;
|
||||
// Leaving a tab cancels its connection, so tabs stay put meanwhile.
|
||||
final locked =
|
||||
state == MeshCoreConnectionState.connecting ||
|
||||
state == MeshCoreConnectionState.disconnecting;
|
||||
final tabBar = TabBar(
|
||||
controller: _tabController,
|
||||
tabs: [
|
||||
for (final transport in _transports)
|
||||
Tab(
|
||||
icon: Icon(switch (transport) {
|
||||
MeshCoreTransportType.usb => Icons.usb,
|
||||
MeshCoreTransportType.tcp => Icons.lan,
|
||||
_ => Icons.bluetooth,
|
||||
}),
|
||||
child: FittedBox(
|
||||
fit: BoxFit.scaleDown,
|
||||
child: Text(switch (transport) {
|
||||
MeshCoreTransportType.usb => l10n.connectionChoiceUsbLabel,
|
||||
MeshCoreTransportType.tcp => l10n.connectionChoiceTcpLabel,
|
||||
_ => l10n.connectionChoiceBluetoothLabel,
|
||||
}),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: ReviewModeLongPress(
|
||||
child: AdaptiveAppBarTitle(l10n.connectSheet_title),
|
||||
),
|
||||
centerTitle: true,
|
||||
bottom: cramped
|
||||
? null
|
||||
: PreferredSize(
|
||||
preferredSize: tabBar.preferredSize,
|
||||
child: ExcludeFocus(
|
||||
excluding: locked,
|
||||
child: IgnorePointer(
|
||||
ignoring: locked,
|
||||
child: Opacity(opacity: locked ? 0.5 : 1, child: tabBar),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
body: SafeArea(
|
||||
top: false,
|
||||
child: Column(
|
||||
children: [
|
||||
if (!cramped)
|
||||
Consumer<MeshCoreConnector>(
|
||||
builder: (context, connector, _) =>
|
||||
_ConnectionStatusHeader(connector: connector),
|
||||
),
|
||||
Expanded(
|
||||
child: TabBarView(
|
||||
controller: _tabController,
|
||||
physics: locked ? const NeverScrollableScrollPhysics() : null,
|
||||
children: [
|
||||
// Its own messenger lets a tab's snackbar lift its FAB.
|
||||
for (final transport in _transports)
|
||||
ScaffoldMessenger(
|
||||
child: switch (transport) {
|
||||
MeshCoreTransportType.usb => const UsbScreen(),
|
||||
MeshCoreTransportType.tcp => const TcpScreen(),
|
||||
_ => const ScannerScreen(),
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
bottomNavigationBar: const GetNodeBanner(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// Connection status header with AnimatedSwitcher between states.
|
||||
class _ConnectionStatusHeader extends StatelessWidget {
|
||||
final MeshCoreConnector connector;
|
||||
|
||||
const _ConnectionStatusHeader({required this.connector});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final l10n = context.l10n;
|
||||
final scheme = Theme.of(context).colorScheme;
|
||||
final connectedName = switch (connector.activeTransport) {
|
||||
MeshCoreTransportType.usb =>
|
||||
connector.activeUsbPortDisplayLabel ?? l10n.connectionChoiceUsbLabel,
|
||||
MeshCoreTransportType.tcp =>
|
||||
connector.activeTcpEndpoint ?? l10n.connectionChoiceTcpLabel,
|
||||
_ => connector.deviceDisplayName,
|
||||
};
|
||||
|
||||
final (String label, Color color, bool pulse) = switch (connector.state) {
|
||||
MeshCoreConnectionState.scanning => (
|
||||
l10n.scanner_scanning,
|
||||
MeshPalette.blue,
|
||||
true,
|
||||
),
|
||||
MeshCoreConnectionState.connecting => (
|
||||
l10n.scanner_connecting,
|
||||
MeshPalette.warn,
|
||||
true,
|
||||
),
|
||||
MeshCoreConnectionState.connected => (
|
||||
l10n.scanner_connectedTo(connectedName),
|
||||
MeshPalette.signal,
|
||||
false,
|
||||
),
|
||||
MeshCoreConnectionState.disconnecting => (
|
||||
l10n.scanner_disconnecting,
|
||||
MeshPalette.warn,
|
||||
true,
|
||||
),
|
||||
MeshCoreConnectionState.disconnected => (
|
||||
l10n.scanner_notConnected,
|
||||
scheme.onSurfaceVariant,
|
||||
false,
|
||||
),
|
||||
};
|
||||
|
||||
return Padding(
|
||||
padding: const EdgeInsets.fromLTRB(16, 12, 16, 4),
|
||||
child: AnimatedSwitcher(
|
||||
duration: const Duration(milliseconds: 300),
|
||||
child: Align(
|
||||
key: ValueKey(connector.state),
|
||||
alignment: Alignment.centerLeft,
|
||||
child: StatusChip(label: label, color: color, pulse: pulse),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
+18
-108
@@ -8,20 +8,16 @@ import 'package:provider/provider.dart';
|
||||
import '../connector/meshcore_connector.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../services/linux_ble_error_classifier.dart';
|
||||
import '../theme/mesh_theme.dart';
|
||||
import '../utils/app_logger.dart';
|
||||
import '../widgets/adaptive_app_bar_title.dart';
|
||||
import '../widgets/device_tile.dart';
|
||||
import '../widgets/empty_state.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';
|
||||
import 'tcp_screen.dart';
|
||||
import 'usb_screen.dart';
|
||||
|
||||
/// Screen for scanning and connecting to MeshCore devices
|
||||
/// Bluetooth tab of the connect screen: scans for and connects to MeshCore
|
||||
/// devices.
|
||||
class ScannerScreen extends StatefulWidget {
|
||||
const ScannerScreen({super.key});
|
||||
|
||||
@@ -49,8 +45,7 @@ class _ScannerScreenState extends State<ScannerScreen> {
|
||||
if (_connector.state == MeshCoreConnectionState.disconnected) {
|
||||
_changedNavigation = false;
|
||||
} else if (_connector.state == MeshCoreConnectionState.connected &&
|
||||
// TCP lands here after an auto-reconnect: a dropped link popped
|
||||
// back to this screen, and the TCP screen is no longer on the stack.
|
||||
// A TCP auto-reconnect can finish while this tab is shown.
|
||||
(_connector.activeTransport == MeshCoreTransportType.bluetooth ||
|
||||
_connector.activeTransport == MeshCoreTransportType.tcp) &&
|
||||
isCurrentRoute &&
|
||||
@@ -96,55 +91,20 @@ class _ScannerScreenState extends State<ScannerScreen> {
|
||||
unawaited(_connector.disconnect(manual: true));
|
||||
});
|
||||
}
|
||||
// A scan would keep the other tabs from connecting until it times out.
|
||||
if (state == MeshCoreConnectionState.scanning) {
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (_connector.state == MeshCoreConnectionState.scanning) {
|
||||
unawaited(_connector.stopScan());
|
||||
}
|
||||
});
|
||||
}
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final canPop = Navigator.of(context).canPop();
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
leading: canPop
|
||||
? IconButton(
|
||||
icon: const Icon(Icons.arrow_back),
|
||||
onPressed: () {
|
||||
appLogger.info('Back button pressed', tag: 'ScannerScreen');
|
||||
Navigator.of(context).maybePop();
|
||||
},
|
||||
)
|
||||
: null,
|
||||
title: ReviewModeLongPress(
|
||||
child: AdaptiveAppBarTitle(context.l10n.scanner_title),
|
||||
),
|
||||
centerTitle: true,
|
||||
automaticallyImplyLeading: false,
|
||||
actions: [
|
||||
if (PlatformInfo.supportsUsbSerial)
|
||||
IconButton(
|
||||
icon: const Icon(Icons.usb),
|
||||
tooltip: context.l10n.connectionChoiceUsbLabel,
|
||||
onPressed: () {
|
||||
appLogger.info(
|
||||
'USB selected, opening UsbScreen',
|
||||
tag: 'ScannerScreen',
|
||||
);
|
||||
Navigator.of(
|
||||
context,
|
||||
).push(MaterialPageRoute(builder: (_) => const UsbScreen()));
|
||||
},
|
||||
),
|
||||
if (!PlatformInfo.isWeb)
|
||||
IconButton(
|
||||
icon: const Icon(Icons.lan),
|
||||
tooltip: context.l10n.connectionChoiceTcpLabel,
|
||||
onPressed: () {
|
||||
Navigator.of(
|
||||
context,
|
||||
).push(MaterialPageRoute(builder: (_) => const TcpScreen()));
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
body: SafeArea(
|
||||
top: false,
|
||||
child: Consumer<MeshCoreConnector>(
|
||||
@@ -160,9 +120,6 @@ class _ScannerScreenState extends State<ScannerScreen> {
|
||||
),
|
||||
),
|
||||
|
||||
// Connection status header
|
||||
_ConnectionStatusHeader(connector: connector),
|
||||
|
||||
// Device list
|
||||
Expanded(child: _buildDeviceList(context, connector)),
|
||||
],
|
||||
@@ -259,10 +216,16 @@ class _ScannerScreenState extends State<ScannerScreen> {
|
||||
itemBuilder: (context, index) {
|
||||
final result = connector.scanResults[index];
|
||||
final deviceId = result.device.remoteId.toString();
|
||||
final name = result.device.platformName.isNotEmpty
|
||||
? result.device.platformName
|
||||
: result.advertisementData.advName;
|
||||
return ListEntrance(
|
||||
index: index,
|
||||
child: DeviceTile(
|
||||
scanResult: result,
|
||||
name: name.isNotEmpty ? name : context.l10n.common_unknownDevice,
|
||||
id: deviceId,
|
||||
icon: Icons.router,
|
||||
rssi: result.rssi,
|
||||
isConnecting: isConnecting && _connectingDeviceId == deviceId,
|
||||
onTap: isConnecting
|
||||
? null
|
||||
@@ -463,56 +426,3 @@ class _BluetoothOffBanner extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// Connection status header with AnimatedSwitcher between states.
|
||||
class _ConnectionStatusHeader extends StatelessWidget {
|
||||
final MeshCoreConnector connector;
|
||||
|
||||
const _ConnectionStatusHeader({required this.connector});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final l10n = context.l10n;
|
||||
final scheme = Theme.of(context).colorScheme;
|
||||
|
||||
final (String label, Color color, bool pulse) = switch (connector.state) {
|
||||
MeshCoreConnectionState.scanning => (
|
||||
l10n.scanner_scanning,
|
||||
MeshPalette.blue,
|
||||
true,
|
||||
),
|
||||
MeshCoreConnectionState.connecting => (
|
||||
l10n.scanner_connecting,
|
||||
MeshPalette.warn,
|
||||
true,
|
||||
),
|
||||
MeshCoreConnectionState.connected => (
|
||||
l10n.scanner_connectedTo(connector.deviceDisplayName),
|
||||
MeshPalette.signal,
|
||||
false,
|
||||
),
|
||||
MeshCoreConnectionState.disconnecting => (
|
||||
l10n.scanner_disconnecting,
|
||||
MeshPalette.warn,
|
||||
true,
|
||||
),
|
||||
MeshCoreConnectionState.disconnected => (
|
||||
l10n.scanner_notConnected,
|
||||
scheme.onSurfaceVariant,
|
||||
false,
|
||||
),
|
||||
};
|
||||
|
||||
return Padding(
|
||||
padding: const EdgeInsets.fromLTRB(16, 12, 16, 4),
|
||||
child: AnimatedSwitcher(
|
||||
duration: const Duration(milliseconds: 300),
|
||||
child: Align(
|
||||
key: ValueKey(connector.state),
|
||||
alignment: Alignment.centerLeft,
|
||||
child: StatusChip(label: label, color: color, pulse: pulse),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -8,12 +8,9 @@ import '../connector/meshcore_connector.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../services/app_settings_service.dart';
|
||||
import '../theme/mesh_theme.dart';
|
||||
import '../utils/platform_info.dart';
|
||||
import '../widgets/adaptive_app_bar_title.dart';
|
||||
import '../widgets/mesh_ui.dart';
|
||||
import '../helpers/snack_bar_builder.dart';
|
||||
import '../utils/main_navigation.dart';
|
||||
import 'usb_screen.dart';
|
||||
|
||||
class TcpScreen extends StatefulWidget {
|
||||
const TcpScreen({super.key});
|
||||
@@ -28,6 +25,7 @@ class _TcpScreenState extends State<TcpScreen> {
|
||||
late final MeshCoreConnector _connector;
|
||||
late final VoidCallback _connectionListener;
|
||||
bool _navigatedToChannels = false;
|
||||
bool _startedConnect = false;
|
||||
String? _hostError;
|
||||
String? _portError;
|
||||
|
||||
@@ -74,7 +72,10 @@ class _TcpScreenState extends State<TcpScreen> {
|
||||
_hostController.dispose();
|
||||
_portController.dispose();
|
||||
_connector.removeListener(_connectionListener);
|
||||
if (!_navigatedToChannels &&
|
||||
// Only cancel a connection this tab started; an automatic reconnect is
|
||||
// left alone.
|
||||
if (_startedConnect &&
|
||||
!_navigatedToChannels &&
|
||||
_connector.activeTransport == MeshCoreTransportType.tcp &&
|
||||
_connector.state != MeshCoreConnectionState.disconnected) {
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
@@ -87,14 +88,6 @@ class _TcpScreenState extends State<TcpScreen> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
leading: IconButton(
|
||||
icon: const Icon(Icons.arrow_back),
|
||||
onPressed: () => Navigator.of(context).maybePop(),
|
||||
),
|
||||
title: AdaptiveAppBarTitle(context.l10n.tcpScreenTitle),
|
||||
centerTitle: true,
|
||||
),
|
||||
body: SafeArea(
|
||||
top: false,
|
||||
child: Consumer<MeshCoreConnector>(
|
||||
@@ -107,26 +100,9 @@ class _TcpScreenState extends State<TcpScreen> {
|
||||
final isButtonDisabled =
|
||||
connector.state != MeshCoreConnectionState.disconnected;
|
||||
return ListView(
|
||||
padding: const EdgeInsets.only(bottom: 32),
|
||||
padding: const EdgeInsets.only(top: 8, bottom: 32),
|
||||
children: [
|
||||
// Status header
|
||||
Padding(
|
||||
padding: const EdgeInsets.fromLTRB(16, 12, 16, 4),
|
||||
child: AnimatedSwitcher(
|
||||
duration: const Duration(milliseconds: 300),
|
||||
child: Align(
|
||||
key: ValueKey(connector.state),
|
||||
alignment: Alignment.centerLeft,
|
||||
child: _buildStatusChip(context, connector),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
// Transport switcher
|
||||
_buildTransportLinks(context),
|
||||
|
||||
// Connection form
|
||||
SectionHeader(context.l10n.tcpSectionTitle),
|
||||
MeshCard(
|
||||
padding: const EdgeInsets.all(16),
|
||||
child: Column(
|
||||
@@ -233,65 +209,6 @@ class _TcpScreenState extends State<TcpScreen> {
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildStatusChip(BuildContext context, MeshCoreConnector connector) {
|
||||
final l10n = context.l10n;
|
||||
|
||||
if (connector.isTcpTransportConnected) {
|
||||
return StatusChip(
|
||||
label: l10n.scanner_connectedTo(connector.activeTcpEndpoint ?? 'TCP'),
|
||||
color: MeshPalette.signal,
|
||||
);
|
||||
} else if (connector.state == MeshCoreConnectionState.connecting &&
|
||||
connector.activeTransport == MeshCoreTransportType.tcp) {
|
||||
return StatusChip(
|
||||
label: l10n.tcpStatus_connectingTo(
|
||||
'${_hostController.text}:${_portController.text}',
|
||||
),
|
||||
color: MeshPalette.warn,
|
||||
pulse: true,
|
||||
);
|
||||
} else if (connector.state == MeshCoreConnectionState.disconnecting &&
|
||||
connector.activeTransport == MeshCoreTransportType.tcp) {
|
||||
return StatusChip(
|
||||
label: l10n.scanner_disconnecting,
|
||||
color: MeshPalette.warn,
|
||||
pulse: true,
|
||||
);
|
||||
} else {
|
||||
return StatusChip(
|
||||
label: l10n.tcpStatus_notConnected,
|
||||
color: Theme.of(context).colorScheme.onSurfaceVariant,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Widget _buildTransportLinks(BuildContext context) {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
|
||||
child: Wrap(
|
||||
spacing: 12,
|
||||
runSpacing: 8,
|
||||
children: [
|
||||
if (PlatformInfo.supportsUsbSerial)
|
||||
OutlinedButton.icon(
|
||||
onPressed: () {
|
||||
Navigator.of(context).pushReplacement(
|
||||
MaterialPageRoute(builder: (_) => const UsbScreen()),
|
||||
);
|
||||
},
|
||||
icon: const Icon(Icons.usb),
|
||||
label: Text(context.l10n.connectionChoiceUsbLabel),
|
||||
),
|
||||
OutlinedButton.icon(
|
||||
onPressed: () => Navigator.of(context).maybePop(),
|
||||
icon: const Icon(Icons.bluetooth),
|
||||
label: Text(context.l10n.connectionChoiceBluetoothLabel),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> _connectTcp() async {
|
||||
if (_connector.state == MeshCoreConnectionState.connecting ||
|
||||
_connector.state == MeshCoreConnectionState.connected ||
|
||||
@@ -313,6 +230,7 @@ class _TcpScreenState extends State<TcpScreen> {
|
||||
return;
|
||||
}
|
||||
|
||||
_startedConnect = true;
|
||||
try {
|
||||
await _connector.connectTcp(host: host, port: parsedPort);
|
||||
} catch (error) {
|
||||
|
||||
+39
-177
@@ -6,16 +6,14 @@ import 'package:provider/provider.dart';
|
||||
|
||||
import '../connector/meshcore_connector.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../theme/mesh_theme.dart';
|
||||
import '../utils/app_logger.dart';
|
||||
import '../utils/platform_info.dart';
|
||||
import '../utils/usb_port_labels.dart';
|
||||
import '../widgets/adaptive_app_bar_title.dart';
|
||||
import '../widgets/device_tile.dart';
|
||||
import '../widgets/empty_state.dart';
|
||||
import '../widgets/mesh_ui.dart';
|
||||
import '../helpers/snack_bar_builder.dart';
|
||||
import '../utils/main_navigation.dart';
|
||||
import 'tcp_screen.dart';
|
||||
|
||||
class UsbScreen extends StatefulWidget {
|
||||
const UsbScreen({super.key});
|
||||
@@ -27,6 +25,7 @@ class UsbScreen extends StatefulWidget {
|
||||
class _UsbScreenState extends State<UsbScreen> with WidgetsBindingObserver {
|
||||
final List<String> _ports = <String>[];
|
||||
bool _isLoadingPorts = true;
|
||||
String? _connectingPort;
|
||||
bool _navigatedToChannels = false;
|
||||
bool _didScheduleInitialLoad = false;
|
||||
Timer? _hotPlugTimer;
|
||||
@@ -36,6 +35,9 @@ class _UsbScreenState extends State<UsbScreen> with WidgetsBindingObserver {
|
||||
bool get _supportsHotPlug =>
|
||||
PlatformInfo.isWindows || PlatformInfo.isLinux || PlatformInfo.isMacOS;
|
||||
|
||||
/// Desktop hot-plugs automatically; web uses the port-picker button.
|
||||
bool get _showRefreshButton => !_supportsHotPlug && !PlatformInfo.isWeb;
|
||||
|
||||
/// Web Serial lists a synthetic "request a port" entry plus ports the user
|
||||
/// already authorised; the request entry opens the browser's port picker.
|
||||
static const String _webRequestPortName = 'web:request';
|
||||
@@ -109,141 +111,27 @@ class _UsbScreenState extends State<UsbScreen> with WidgetsBindingObserver {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
leading: IconButton(
|
||||
icon: const Icon(Icons.arrow_back),
|
||||
onPressed: () => Navigator.of(context).maybePop(),
|
||||
),
|
||||
title: AdaptiveAppBarTitle(context.l10n.usbScreenTitle),
|
||||
centerTitle: true,
|
||||
),
|
||||
body: SafeArea(
|
||||
top: false,
|
||||
child: Consumer<MeshCoreConnector>(
|
||||
builder: (context, connector, child) {
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
// Status header
|
||||
Padding(
|
||||
padding: const EdgeInsets.fromLTRB(16, 12, 16, 4),
|
||||
child: AnimatedSwitcher(
|
||||
duration: const Duration(milliseconds: 300),
|
||||
child: Align(
|
||||
key: ValueKey('${connector.state}_$_isLoadingPorts'),
|
||||
alignment: Alignment.centerLeft,
|
||||
child: _buildStatusChip(context, connector),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
// Transport switcher
|
||||
_buildTransportLinks(context),
|
||||
|
||||
// Port list
|
||||
Expanded(child: _buildPortList(context, connector)),
|
||||
],
|
||||
);
|
||||
},
|
||||
builder: (context, connector, child) =>
|
||||
_buildPortList(context, connector),
|
||||
),
|
||||
),
|
||||
// Desktop hot-plugs automatically; web uses the port-picker button.
|
||||
bottomNavigationBar: _supportsHotPlug || PlatformInfo.isWeb
|
||||
? null
|
||||
: SafeArea(
|
||||
top: false,
|
||||
minimum: const EdgeInsets.fromLTRB(16, 8, 16, 16),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: [
|
||||
FloatingActionButton.extended(
|
||||
onPressed: _isLoadingPorts ? null : _loadPorts,
|
||||
heroTag: 'usb_refresh_action',
|
||||
icon: _isLoadingPorts
|
||||
? const SizedBox(
|
||||
width: 20,
|
||||
height: 20,
|
||||
child: CircularProgressIndicator(strokeWidth: 2),
|
||||
)
|
||||
: const Icon(Icons.usb),
|
||||
label: Text(context.l10n.scanner_scan),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildStatusChip(BuildContext context, MeshCoreConnector connector) {
|
||||
final l10n = context.l10n;
|
||||
final scheme = Theme.of(context).colorScheme;
|
||||
|
||||
if (_isLoadingPorts) {
|
||||
return StatusChip(
|
||||
label: l10n.usbStatus_searching,
|
||||
color: scheme.primary,
|
||||
pulse: true,
|
||||
);
|
||||
} else if (connector.isUsbTransportConnected) {
|
||||
switch (connector.state) {
|
||||
case MeshCoreConnectionState.connected:
|
||||
return StatusChip(
|
||||
label: l10n.scanner_connectedTo(
|
||||
connector.activeUsbPortDisplayLabel ?? 'USB',
|
||||
),
|
||||
color: MeshPalette.signal,
|
||||
);
|
||||
case MeshCoreConnectionState.disconnecting:
|
||||
return StatusChip(
|
||||
label: l10n.scanner_disconnecting,
|
||||
color: MeshPalette.warn,
|
||||
pulse: true,
|
||||
);
|
||||
default:
|
||||
return StatusChip(
|
||||
label: l10n.usbStatus_notConnected,
|
||||
color: scheme.onSurfaceVariant,
|
||||
);
|
||||
}
|
||||
} else if (connector.state == MeshCoreConnectionState.connecting &&
|
||||
connector.activeTransport == MeshCoreTransportType.usb) {
|
||||
return StatusChip(
|
||||
label: l10n.usbStatus_connecting,
|
||||
color: MeshPalette.warn,
|
||||
pulse: true,
|
||||
);
|
||||
} else {
|
||||
return StatusChip(
|
||||
label: l10n.usbStatus_notConnected,
|
||||
color: scheme.onSurfaceVariant,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Widget _buildTransportLinks(BuildContext context) {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
|
||||
child: Wrap(
|
||||
spacing: 12,
|
||||
runSpacing: 8,
|
||||
children: [
|
||||
if (!PlatformInfo.isWeb)
|
||||
OutlinedButton.icon(
|
||||
onPressed: () {
|
||||
Navigator.of(context).pushReplacement(
|
||||
MaterialPageRoute(builder: (_) => const TcpScreen()),
|
||||
);
|
||||
},
|
||||
icon: const Icon(Icons.lan),
|
||||
label: Text(context.l10n.connectionChoiceTcpLabel),
|
||||
),
|
||||
OutlinedButton.icon(
|
||||
onPressed: () => Navigator.of(context).maybePop(),
|
||||
icon: const Icon(Icons.bluetooth),
|
||||
label: Text(context.l10n.connectionChoiceBluetoothLabel),
|
||||
),
|
||||
],
|
||||
),
|
||||
floatingActionButton: _showRefreshButton
|
||||
? FloatingActionButton.extended(
|
||||
onPressed: _isLoadingPorts ? null : _loadPorts,
|
||||
heroTag: 'usb_refresh_action',
|
||||
icon: _isLoadingPorts
|
||||
? const SizedBox(
|
||||
width: 20,
|
||||
height: 20,
|
||||
child: CircularProgressIndicator(strokeWidth: 2),
|
||||
)
|
||||
: const Icon(Icons.refresh),
|
||||
label: Text(context.l10n.repeater_refresh),
|
||||
)
|
||||
: null,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -263,7 +151,12 @@ class _UsbScreenState extends State<UsbScreen> with WidgetsBindingObserver {
|
||||
}
|
||||
|
||||
if (_ports.isEmpty) {
|
||||
return EmptyState(icon: Icons.usb, title: l10n.usbScreenEmptyState);
|
||||
return EmptyState(
|
||||
icon: Icons.usb,
|
||||
title: _supportsHotPlug
|
||||
? l10n.usbScreenEmptyStateAuto
|
||||
: l10n.usbScreenEmptyState,
|
||||
);
|
||||
}
|
||||
|
||||
return _buildPortListView(context, _ports, isConnecting);
|
||||
@@ -296,7 +189,7 @@ class _UsbScreenState extends State<UsbScreen> with WidgetsBindingObserver {
|
||||
_connectPort(_webRequestPortName);
|
||||
}
|
||||
: null,
|
||||
icon: isConnecting
|
||||
icon: isConnecting && _connectingPort == _webRequestPortName
|
||||
? const SizedBox(
|
||||
width: 20,
|
||||
height: 20,
|
||||
@@ -323,7 +216,7 @@ class _UsbScreenState extends State<UsbScreen> with WidgetsBindingObserver {
|
||||
bool isConnecting,
|
||||
) {
|
||||
return ListView.builder(
|
||||
padding: const EdgeInsets.only(bottom: 32),
|
||||
padding: EdgeInsets.only(top: 8, bottom: _showRefreshButton ? 88 : 32),
|
||||
itemCount: ports.length,
|
||||
itemBuilder: (context, index) {
|
||||
final port = ports[index];
|
||||
@@ -334,47 +227,13 @@ class _UsbScreenState extends State<UsbScreen> with WidgetsBindingObserver {
|
||||
|
||||
return ListEntrance(
|
||||
index: index,
|
||||
child: MeshCard(
|
||||
padding: EdgeInsets.zero,
|
||||
child: ListTile(
|
||||
onTap: isConnecting
|
||||
? null
|
||||
: () {
|
||||
HapticFeedback.selectionClick();
|
||||
_connectPort(port);
|
||||
},
|
||||
leading: AvatarCircle(
|
||||
name: displayName,
|
||||
size: 40,
|
||||
icon: Icons.usb,
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
),
|
||||
title: Text(
|
||||
displayName,
|
||||
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
|
||||
fontWeight: FontWeight.w600,
|
||||
color: Theme.of(context).colorScheme.onSurface,
|
||||
),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
subtitle: showRawName
|
||||
? Text(
|
||||
rawName,
|
||||
style: MeshTheme.mono(
|
||||
fontSize: 13,
|
||||
color: Theme.of(context).colorScheme.onSurfaceVariant,
|
||||
),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
)
|
||||
: null,
|
||||
trailing: Icon(
|
||||
Icons.chevron_right,
|
||||
size: 24,
|
||||
color: Theme.of(context).colorScheme.onSurfaceVariant,
|
||||
),
|
||||
),
|
||||
child: DeviceTile(
|
||||
name: displayName,
|
||||
id: showRawName ? rawName : null,
|
||||
icon: Icons.usb,
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
isConnecting: isConnecting && _connectingPort == port,
|
||||
onTap: isConnecting ? null : () => _connectPort(port),
|
||||
),
|
||||
);
|
||||
},
|
||||
@@ -448,6 +307,7 @@ class _UsbScreenState extends State<UsbScreen> with WidgetsBindingObserver {
|
||||
tag: 'UsbScreen',
|
||||
);
|
||||
|
||||
setState(() => _connectingPort = port);
|
||||
try {
|
||||
await _connector.connectUsb(portName: rawPortName);
|
||||
} catch (error, stackTrace) {
|
||||
@@ -458,6 +318,8 @@ class _UsbScreenState extends State<UsbScreen> with WidgetsBindingObserver {
|
||||
if (!mounted) return;
|
||||
_showError(error);
|
||||
unawaited(_loadPorts());
|
||||
} finally {
|
||||
if (mounted) setState(() => _connectingPort = null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,9 +4,8 @@ import 'package:provider/provider.dart';
|
||||
import '../connector/meshcore_connector.dart';
|
||||
import '../helpers/snack_bar_builder.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../screens/scanner_screen.dart';
|
||||
import '../screens/connect_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';
|
||||
@@ -42,13 +41,15 @@ class _ConnectSheet extends StatelessWidget {
|
||||
void _chooseRadio(BuildContext context, LastRadio? lastRadio) {
|
||||
Navigator.of(context).pop();
|
||||
if (!hostContext.mounted) return;
|
||||
final usb =
|
||||
PlatformInfo.isWeb ||
|
||||
(lastRadio?.transport == LastRadio.transportUsb &&
|
||||
PlatformInfo.supportsUsbSerial);
|
||||
final transport = switch (lastRadio?.transport) {
|
||||
_ when PlatformInfo.isWeb => MeshCoreTransportType.usb,
|
||||
LastRadio.transportUsb => MeshCoreTransportType.usb,
|
||||
LastRadio.transportTcp => MeshCoreTransportType.tcp,
|
||||
_ => MeshCoreTransportType.bluetooth,
|
||||
};
|
||||
Navigator.of(hostContext).push(
|
||||
MaterialPageRoute(
|
||||
builder: (_) => usb ? const UsbScreen() : const ScannerScreen(),
|
||||
builder: (_) => ConnectScreen(initialTransport: transport),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,51 +1,48 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_blue_plus/flutter_blue_plus.dart';
|
||||
|
||||
import '../l10n/l10n.dart';
|
||||
import '../theme/mesh_theme.dart';
|
||||
import 'mesh_ui.dart';
|
||||
import 'signal_ui.dart';
|
||||
|
||||
/// A MeshCard-based row for displaying a scanned BLE device.
|
||||
/// Shows an AvatarCircle (router icon, deterministic hue from device name),
|
||||
/// device name, mono MAC address, mono RSSI dBm, and SignalBars on the right.
|
||||
/// While connecting, shows a small progress ring instead of signal bars.
|
||||
/// A MeshCard row for a radio to connect to: an AvatarCircle, the name, a
|
||||
/// mono id and, for a scanned BLE device, its signal ([rssi]) on the right.
|
||||
/// While connecting, shows a small progress ring instead of the signal.
|
||||
class DeviceTile extends StatelessWidget {
|
||||
final ScanResult scanResult;
|
||||
final String name;
|
||||
final String? id;
|
||||
final IconData icon;
|
||||
final Color? color;
|
||||
final int? rssi;
|
||||
final VoidCallback? onTap;
|
||||
final bool isConnecting;
|
||||
|
||||
const DeviceTile({
|
||||
super.key,
|
||||
required this.scanResult,
|
||||
required this.name,
|
||||
this.id,
|
||||
required this.icon,
|
||||
this.color,
|
||||
this.rssi,
|
||||
required this.onTap,
|
||||
this.isConnecting = false,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final device = scanResult.device;
|
||||
final rssi = scanResult.rssi;
|
||||
final name = device.platformName.isNotEmpty
|
||||
? device.platformName
|
||||
: scanResult.advertisementData.advName;
|
||||
final displayName = name.isNotEmpty
|
||||
? name
|
||||
: context.l10n.common_unknownDevice;
|
||||
final mac = device.remoteId.toString();
|
||||
final scheme = Theme.of(context).colorScheme;
|
||||
|
||||
final tier = rssi >= -60
|
||||
? 0
|
||||
: rssi >= -70
|
||||
? 1
|
||||
: rssi >= -80
|
||||
? 2
|
||||
: rssi >= -90
|
||||
? 3
|
||||
: 4;
|
||||
final signalUi = signalUiForStrengthTier(tier);
|
||||
final trailing = isConnecting
|
||||
? SizedBox(
|
||||
width: 20,
|
||||
height: 20,
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 2,
|
||||
color: scheme.primary,
|
||||
),
|
||||
)
|
||||
: rssi == null
|
||||
? null
|
||||
: _signal(rssi!);
|
||||
|
||||
return MeshCard(
|
||||
onTap: onTap == null
|
||||
@@ -57,7 +54,7 @@ class DeviceTile extends StatelessWidget {
|
||||
padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 12),
|
||||
child: Row(
|
||||
children: [
|
||||
AvatarCircle(name: displayName, size: 42, icon: Icons.router),
|
||||
AvatarCircle(name: name, size: 42, icon: icon, color: color),
|
||||
const SizedBox(width: 12),
|
||||
Expanded(
|
||||
child: Column(
|
||||
@@ -65,7 +62,7 @@ class DeviceTile extends StatelessWidget {
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Text(
|
||||
displayName,
|
||||
name,
|
||||
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
|
||||
fontWeight: FontWeight.w600,
|
||||
color: scheme.onSurface,
|
||||
@@ -73,48 +70,53 @@ class DeviceTile extends StatelessWidget {
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
const SizedBox(height: 3),
|
||||
Text(
|
||||
mac,
|
||||
style: MeshTheme.mono(
|
||||
fontSize: 13,
|
||||
color: scheme.onSurfaceVariant,
|
||||
if (id != null) ...[
|
||||
const SizedBox(height: 3),
|
||||
Text(
|
||||
id!,
|
||||
style: MeshTheme.mono(
|
||||
fontSize: 13,
|
||||
color: scheme.onSurfaceVariant,
|
||||
),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
],
|
||||
],
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 12),
|
||||
if (isConnecting)
|
||||
SizedBox(
|
||||
width: 20,
|
||||
height: 20,
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 2,
|
||||
color: scheme.primary,
|
||||
),
|
||||
)
|
||||
else
|
||||
Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.end,
|
||||
children: [
|
||||
Icon(signalUi.icon, size: 20, color: signalUi.color),
|
||||
const SizedBox(height: 3),
|
||||
Text(
|
||||
'$rssi dBm',
|
||||
style: MeshTheme.mono(
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: signalUi.color,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
if (trailing != null) ...[const SizedBox(width: 12), trailing],
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Widget _signal(int rssi) {
|
||||
final tier = rssi >= -60
|
||||
? 0
|
||||
: rssi >= -70
|
||||
? 1
|
||||
: rssi >= -80
|
||||
? 2
|
||||
: rssi >= -90
|
||||
? 3
|
||||
: 4;
|
||||
final signalUi = signalUiForStrengthTier(tier);
|
||||
return Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.end,
|
||||
children: [
|
||||
Icon(signalUi.icon, size: 20, color: signalUi.color),
|
||||
const SizedBox(height: 3),
|
||||
Text(
|
||||
'$rssi dBm',
|
||||
style: MeshTheme.mono(
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: signalUi.color,
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -4,11 +4,12 @@ import 'package:url_launcher/url_launcher.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../services/node_banner_service.dart';
|
||||
import '../theme/mesh_theme.dart';
|
||||
import 'settings_reveal.dart';
|
||||
|
||||
/// Bottom banner on the connect screen pointing new users at a node to buy.
|
||||
/// Its link (and optionally its text) comes from the `_banner` DNS TXT
|
||||
/// record; it stays hidden until that loads, and when the lookup fails or the
|
||||
/// record turns it off.
|
||||
/// record turns it off. Close hides it until the screen closes.
|
||||
class GetNodeBanner extends StatefulWidget {
|
||||
final Future<NodeBannerConfig?> Function()? loadConfig;
|
||||
|
||||
@@ -20,6 +21,7 @@ class GetNodeBanner extends StatefulWidget {
|
||||
|
||||
class _GetNodeBannerState extends State<GetNodeBanner> {
|
||||
NodeBannerConfig? _config;
|
||||
bool _closed = false;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
@@ -32,17 +34,34 @@ class _GetNodeBannerState extends State<GetNodeBanner> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final config = _config;
|
||||
if (config == null) return const SizedBox.shrink();
|
||||
// A landscape phone has no room for it next to the screen's content.
|
||||
final roomy = MediaQuery.sizeOf(context).height >= 480;
|
||||
// The bottom inset stays reserved while hidden, so the screen's content
|
||||
// keeps clear of the system bar.
|
||||
return SafeArea(
|
||||
top: false,
|
||||
child: RevealOnEnable(
|
||||
visible: config != null && !_closed && roomy,
|
||||
child: config == null
|
||||
? const SizedBox.shrink()
|
||||
: _buildBanner(context, config),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildBanner(BuildContext context, NodeBannerConfig config) {
|
||||
final l10n = context.l10n;
|
||||
final scheme = Theme.of(context).colorScheme;
|
||||
final textTheme = Theme.of(context).textTheme;
|
||||
final ink = scheme.onPrimaryContainer;
|
||||
void open() => launchUrl(config.url, mode: LaunchMode.externalApplication);
|
||||
|
||||
return SafeArea(
|
||||
top: false,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.fromLTRB(12, 4, 12, 12),
|
||||
return Padding(
|
||||
padding: const EdgeInsets.fromLTRB(16, 4, 16, 12),
|
||||
child: ConstrainedBox(
|
||||
constraints: BoxConstraints(
|
||||
maxHeight: MediaQuery.sizeOf(context).height * 0.4,
|
||||
),
|
||||
child: Material(
|
||||
color: scheme.primaryContainer,
|
||||
shape: RoundedRectangleBorder(
|
||||
@@ -52,56 +71,62 @@ class _GetNodeBannerState extends State<GetNodeBanner> {
|
||||
clipBehavior: Clip.antiAlias,
|
||||
child: InkWell(
|
||||
onTap: open,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.fromLTRB(14, 12, 14, 10),
|
||||
child: SingleChildScrollView(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(14, 2, 2, 10),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
Icon(
|
||||
Icons.router_outlined,
|
||||
size: 28,
|
||||
color: scheme.onPrimaryContainer,
|
||||
),
|
||||
const SizedBox(width: 10),
|
||||
Icon(Icons.router_outlined, size: 24, color: ink),
|
||||
const SizedBox(width: 12),
|
||||
Expanded(
|
||||
child: Text(
|
||||
config.title ?? l10n.scanner_getNodeTitle,
|
||||
style: textTheme.titleMedium?.copyWith(
|
||||
color: scheme.onPrimaryContainer,
|
||||
color: ink,
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
),
|
||||
),
|
||||
IconButton(
|
||||
icon: Icon(Icons.close, color: ink),
|
||||
tooltip: l10n.common_close,
|
||||
onPressed: () => setState(() => _closed = true),
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 6),
|
||||
Text(
|
||||
config.body ?? l10n.scanner_getNodeBody,
|
||||
style: textTheme.bodyMedium?.copyWith(
|
||||
color: scheme.onPrimaryContainer,
|
||||
height: 1.35,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 10),
|
||||
SizedBox(
|
||||
width: double.infinity,
|
||||
child: FilledButton.icon(
|
||||
onPressed: open,
|
||||
icon: const Icon(Icons.shopping_cart_outlined, size: 22),
|
||||
label: Text(config.action ?? l10n.scanner_getNodeAction),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 6),
|
||||
Center(
|
||||
child: Text(
|
||||
l10n.scanner_getNodeDisclosure,
|
||||
textAlign: TextAlign.center,
|
||||
style: textTheme.bodySmall?.copyWith(
|
||||
color: scheme.onPrimaryContainer.withValues(alpha: 0.8),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsetsDirectional.only(end: 12),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Text(
|
||||
config.body ?? l10n.scanner_getNodeBody,
|
||||
style: textTheme.bodyMedium?.copyWith(
|
||||
color: ink,
|
||||
height: 1.35,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 10),
|
||||
FilledButton.icon(
|
||||
onPressed: open,
|
||||
icon: const Icon(Icons.shopping_cart_outlined),
|
||||
label: Text(
|
||||
config.action ?? l10n.scanner_getNodeAction,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 6),
|
||||
Text(
|
||||
l10n.scanner_getNodeDisclosure,
|
||||
textAlign: TextAlign.center,
|
||||
style: textTheme.bodySmall?.copyWith(
|
||||
color: ink.withValues(alpha: 0.8),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
@@ -0,0 +1,265 @@
|
||||
import 'package:flutter/material.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/l10n/app_localizations.dart';
|
||||
import 'package:meshcore_open/screens/connect_screen.dart';
|
||||
import 'package:meshcore_open/screens/scanner_screen.dart';
|
||||
import 'package:meshcore_open/screens/tcp_screen.dart';
|
||||
import 'package:meshcore_open/screens/usb_screen.dart';
|
||||
import 'package:meshcore_open/services/app_settings_service.dart';
|
||||
import 'package:meshcore_open/storage/last_radio_store.dart';
|
||||
import 'package:meshcore_open/storage/prefs_manager.dart';
|
||||
import 'package:meshcore_open/utils/platform_info.dart';
|
||||
import 'package:meshcore_open/widgets/connect_sheet.dart';
|
||||
|
||||
class _FakeMeshCoreConnector extends MeshCoreConnector {
|
||||
MeshCoreConnectionState fakeState = MeshCoreConnectionState.disconnected;
|
||||
LastRadio? fakeLastRadio;
|
||||
Object? listUsbPortsError;
|
||||
int stopScanCalls = 0;
|
||||
|
||||
@override
|
||||
MeshCoreConnectionState get state => fakeState;
|
||||
|
||||
@override
|
||||
LastRadio? get lastRadio => fakeLastRadio;
|
||||
|
||||
@override
|
||||
Future<List<String>> listUsbPorts() async {
|
||||
if (listUsbPortsError != null) throw listUsbPortsError!;
|
||||
return <String>[];
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> stopScan() async => stopScanCalls++;
|
||||
}
|
||||
|
||||
LastRadio _lastRadio(String transport) => LastRadio(
|
||||
publicKeyHex: 'a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4',
|
||||
name: 'Radio',
|
||||
transport: transport,
|
||||
savedAt: DateTime(2026),
|
||||
);
|
||||
|
||||
Widget _buildTestApp(MeshCoreConnector connector, {Widget? home}) {
|
||||
return MultiProvider(
|
||||
providers: [
|
||||
ChangeNotifierProvider<MeshCoreConnector>.value(value: connector),
|
||||
ChangeNotifierProvider<AppSettingsService>(
|
||||
create: (_) => AppSettingsService(),
|
||||
),
|
||||
],
|
||||
child: MaterialApp(
|
||||
localizationsDelegates: AppLocalizations.localizationsDelegates,
|
||||
supportedLocales: AppLocalizations.supportedLocales,
|
||||
home: home ?? const Scaffold(body: Center(child: ConnectButton())),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> _openConnectScreen(WidgetTester tester) async {
|
||||
await tester.tap(find.byType(ConnectButton));
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text('Choose a radio'));
|
||||
await tester.pumpAndSettle();
|
||||
}
|
||||
|
||||
/// Runs a second of frames; a pulsing status chip never lets
|
||||
/// pumpAndSettle finish.
|
||||
Future<void> _pumpFrames(WidgetTester tester) async {
|
||||
for (var i = 0; i < 20; i++) {
|
||||
await tester.pump(const Duration(milliseconds: 50));
|
||||
}
|
||||
}
|
||||
|
||||
/// Tears the tree down and drains the scanner's post-frame disconnect work.
|
||||
Future<void> _unmount(WidgetTester tester) async {
|
||||
await tester.pumpWidget(const SizedBox.shrink());
|
||||
await tester.pump(const Duration(milliseconds: 60));
|
||||
}
|
||||
|
||||
void main() {
|
||||
testWidgets('a USB last radio opens the USB tab, and Bluetooth is a tap '
|
||||
'away', (tester) async {
|
||||
final connector = _FakeMeshCoreConnector()
|
||||
..fakeLastRadio = _lastRadio(LastRadio.transportUsb);
|
||||
await tester.pumpWidget(_buildTestApp(connector));
|
||||
|
||||
await _openConnectScreen(tester);
|
||||
expect(find.byType(UsbScreen), findsOneWidget);
|
||||
|
||||
await tester.tap(find.widgetWithText(Tab, 'Bluetooth'));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.byType(ScannerScreen), findsOneWidget);
|
||||
expect(find.byType(UsbScreen), findsNothing);
|
||||
await _unmount(tester);
|
||||
});
|
||||
|
||||
testWidgets('a TCP last radio opens the TCP tab', (tester) async {
|
||||
final connector = _FakeMeshCoreConnector()
|
||||
..fakeLastRadio = _lastRadio(LastRadio.transportTcp);
|
||||
await tester.pumpWidget(_buildTestApp(connector));
|
||||
|
||||
await _openConnectScreen(tester);
|
||||
|
||||
expect(find.byType(TcpScreen), findsOneWidget);
|
||||
await _unmount(tester);
|
||||
});
|
||||
|
||||
testWidgets('tabs stay put while connecting', (tester) async {
|
||||
final connector = _FakeMeshCoreConnector()
|
||||
..fakeState = MeshCoreConnectionState.connecting;
|
||||
await tester.pumpWidget(
|
||||
_buildTestApp(connector, home: const ConnectScreen()),
|
||||
);
|
||||
await tester.pump();
|
||||
|
||||
await tester.tap(find.widgetWithText(Tab, 'TCP'), warnIfMissed: false);
|
||||
await _pumpFrames(tester);
|
||||
|
||||
expect(find.byType(ScannerScreen), findsOneWidget);
|
||||
expect(find.byType(TcpScreen), findsNothing);
|
||||
await _unmount(tester);
|
||||
});
|
||||
|
||||
testWidgets('leaving the Bluetooth tab stops a scan', (tester) async {
|
||||
final connector = _FakeMeshCoreConnector()
|
||||
..fakeState = MeshCoreConnectionState.scanning;
|
||||
await tester.pumpWidget(
|
||||
_buildTestApp(connector, home: const ConnectScreen()),
|
||||
);
|
||||
await tester.pump();
|
||||
|
||||
await tester.tap(find.widgetWithText(Tab, 'TCP'));
|
||||
await _pumpFrames(tester);
|
||||
|
||||
expect(find.byType(TcpScreen), findsOneWidget);
|
||||
expect(connector.stopScanCalls, 1);
|
||||
await _unmount(tester);
|
||||
});
|
||||
|
||||
testWidgets('a tab shows its snackbars inside the tab', (tester) async {
|
||||
final connector = _FakeMeshCoreConnector()
|
||||
..listUsbPortsError = StateError('Failed to open the port');
|
||||
await tester.pumpWidget(
|
||||
_buildTestApp(
|
||||
connector,
|
||||
home: const ConnectScreen(initialTransport: MeshCoreTransportType.usb),
|
||||
),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(
|
||||
find.descendant(
|
||||
of: find.byType(UsbScreen),
|
||||
matching: find.byType(SnackBar),
|
||||
),
|
||||
findsOneWidget,
|
||||
);
|
||||
await _unmount(tester);
|
||||
});
|
||||
|
||||
testWidgets('leaving the TCP tab closes the keyboard and the tab', (
|
||||
tester,
|
||||
) async {
|
||||
final connector = _FakeMeshCoreConnector();
|
||||
await tester.pumpWidget(
|
||||
_buildTestApp(
|
||||
connector,
|
||||
home: const ConnectScreen(initialTransport: MeshCoreTransportType.tcp),
|
||||
),
|
||||
);
|
||||
await _pumpFrames(tester);
|
||||
await tester.tap(find.byType(TextField).first);
|
||||
await _pumpFrames(tester);
|
||||
|
||||
await tester.tap(find.widgetWithText(Tab, 'Bluetooth'));
|
||||
await _pumpFrames(tester);
|
||||
|
||||
expect(find.byType(TcpScreen, skipOffstage: false), findsNothing);
|
||||
expect(tester.testTextInput.isVisible, isFalse);
|
||||
await _unmount(tester);
|
||||
});
|
||||
|
||||
testWidgets('a landscape phone with the keyboard open keeps the TCP form', (
|
||||
tester,
|
||||
) async {
|
||||
tester.view.physicalSize = const Size(740, 360);
|
||||
tester.view.devicePixelRatio = 1;
|
||||
tester.view.viewInsets = const FakeViewPadding(bottom: 200);
|
||||
addTearDown(tester.view.reset);
|
||||
final connector = _FakeMeshCoreConnector();
|
||||
await tester.pumpWidget(
|
||||
_buildTestApp(
|
||||
connector,
|
||||
home: const ConnectScreen(initialTransport: MeshCoreTransportType.tcp),
|
||||
),
|
||||
);
|
||||
await _pumpFrames(tester);
|
||||
|
||||
expect(tester.takeException(), isNull);
|
||||
expect(
|
||||
tester.getSize(find.byType(TabBarView)).height,
|
||||
greaterThanOrEqualTo(80),
|
||||
);
|
||||
await _unmount(tester);
|
||||
});
|
||||
|
||||
testWidgets('a landscape phone keeps the tabs while no keyboard is open', (
|
||||
tester,
|
||||
) async {
|
||||
tester.view.physicalSize = const Size(780, 360);
|
||||
tester.view.devicePixelRatio = 1;
|
||||
addTearDown(tester.view.reset);
|
||||
await tester.pumpWidget(
|
||||
_buildTestApp(_FakeMeshCoreConnector(), home: const ConnectScreen()),
|
||||
);
|
||||
await _pumpFrames(tester);
|
||||
|
||||
expect(find.byType(TabBar), findsOneWidget);
|
||||
await _unmount(tester);
|
||||
});
|
||||
|
||||
group('Need a new node? banner', () {
|
||||
setUp(() {
|
||||
SharedPreferences.setMockInitialValues({
|
||||
'node_banner_txt': 'v=1;on=1;url=https://example.com/node',
|
||||
'node_banner_expires_ms': DateTime(2100).millisecondsSinceEpoch,
|
||||
});
|
||||
PrefsManager.reset();
|
||||
});
|
||||
|
||||
testWidgets('Close keeps it hidden on every tab until the page closes', (
|
||||
tester,
|
||||
) async {
|
||||
await tester.runAsync(PrefsManager.initialize);
|
||||
final connector = _FakeMeshCoreConnector();
|
||||
await tester.pumpWidget(_buildTestApp(connector));
|
||||
|
||||
await _openConnectScreen(tester);
|
||||
expect(find.text('Need a new node?'), findsOneWidget);
|
||||
|
||||
await tester.tap(find.byTooltip('Close'));
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.text('Need a new node?'), findsNothing);
|
||||
|
||||
final tabs = ['TCP', 'Bluetooth'];
|
||||
if (PlatformInfo.supportsUsbSerial) tabs.insert(0, 'USB');
|
||||
for (final tab in tabs) {
|
||||
await tester.tap(find.widgetWithText(Tab, tab));
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.text('Need a new node?'), findsNothing);
|
||||
}
|
||||
|
||||
await tester.pageBack();
|
||||
await tester.pumpAndSettle();
|
||||
await _openConnectScreen(tester);
|
||||
expect(find.text('Need a new node?'), findsOneWidget);
|
||||
await _unmount(tester);
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -52,6 +52,7 @@ import 'package:meshcore_open/screens/repeater_cli_screen.dart';
|
||||
import 'package:meshcore_open/screens/repeater_hub_screen.dart';
|
||||
import 'package:meshcore_open/screens/repeater_settings_screen.dart';
|
||||
import 'package:meshcore_open/screens/repeater_status_screen.dart';
|
||||
import 'package:meshcore_open/screens/connect_screen.dart';
|
||||
import 'package:meshcore_open/screens/scanner_screen.dart';
|
||||
import 'package:meshcore_open/screens/settings_screen.dart';
|
||||
import 'package:meshcore_open/screens/tcp_screen.dart';
|
||||
@@ -244,6 +245,7 @@ final Map<String, _ScreenBuilder> _screens = {
|
||||
'Contacts add page': (_) => const ContactsScreen(),
|
||||
'AddContact': (_) => const AddContactScreen(),
|
||||
'Routing sheet': (c) => ChatScreen(contact: _contactOfType(c, advTypeChat)),
|
||||
'Connect': (_) => const ConnectScreen(),
|
||||
'Scanner': (_) => const ScannerScreen(),
|
||||
'Tcp': (_) => const TcpScreen(),
|
||||
'Usb': (_) => const UsbScreen(),
|
||||
@@ -333,7 +335,11 @@ void main() {
|
||||
);
|
||||
|
||||
setUpAll(() async {
|
||||
SharedPreferences.setMockInitialValues({});
|
||||
// A cached banner record, so the connect screen shows its banner.
|
||||
SharedPreferences.setMockInitialValues({
|
||||
'node_banner_txt': 'v=1;on=1;url=https://example.com/node',
|
||||
'node_banner_expires_ms': DateTime(2100).millisecondsSinceEpoch,
|
||||
});
|
||||
PrefsManager.reset();
|
||||
await PrefsManager.initialize();
|
||||
});
|
||||
|
||||
@@ -4,7 +4,7 @@ import 'package:provider/provider.dart';
|
||||
|
||||
import 'package:meshcore_open/connector/meshcore_connector.dart';
|
||||
import 'package:meshcore_open/l10n/app_localizations.dart';
|
||||
import 'package:meshcore_open/screens/scanner_screen.dart';
|
||||
import 'package:meshcore_open/screens/connect_screen.dart';
|
||||
import 'package:meshcore_open/screens/tcp_screen.dart';
|
||||
import 'package:meshcore_open/services/app_settings_service.dart';
|
||||
|
||||
@@ -15,6 +15,7 @@ class _FakeMeshCoreConnector extends MeshCoreConnector {
|
||||
MeshCoreTransportType initialTransport = MeshCoreTransportType.bluetooth;
|
||||
String? initialEndpoint;
|
||||
int connectTcpCalls = 0;
|
||||
int manualDisconnectCalls = 0;
|
||||
String? lastHost;
|
||||
int? lastPort;
|
||||
|
||||
@@ -38,6 +39,14 @@ class _FakeMeshCoreConnector extends MeshCoreConnector {
|
||||
lastHost = host;
|
||||
lastPort = port;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> disconnect({
|
||||
bool manual = true,
|
||||
bool skipBleDeviceDisconnect = false,
|
||||
}) async {
|
||||
if (manual) manualDisconnectCalls += 1;
|
||||
}
|
||||
}
|
||||
|
||||
Widget _buildTestApp({
|
||||
@@ -77,10 +86,8 @@ void main() {
|
||||
final context = tester.element(find.byType(TcpScreen));
|
||||
final l10n = AppLocalizations.of(context);
|
||||
|
||||
expect(find.text(l10n.tcpScreenTitle), findsOneWidget);
|
||||
expect(find.text(l10n.tcpHostLabel), findsOneWidget);
|
||||
expect(find.text(l10n.tcpPortLabel), findsOneWidget);
|
||||
expect(find.text(l10n.tcpStatus_notConnected), findsOneWidget);
|
||||
});
|
||||
|
||||
testWidgets('TcpScreen validation errors are localized', (tester) async {
|
||||
@@ -113,34 +120,44 @@ void main() {
|
||||
expect(connector.connectTcpCalls, 0);
|
||||
});
|
||||
|
||||
testWidgets('TCP Bluetooth action returns to existing scanner route', (
|
||||
testWidgets('leaving TcpScreen keeps an automatic reconnect going', (
|
||||
tester,
|
||||
) async {
|
||||
final connector = _FakeMeshCoreConnector()
|
||||
..initialState = MeshCoreConnectionState.connecting
|
||||
..initialTransport = MeshCoreTransportType.tcp;
|
||||
|
||||
await tester.pumpWidget(
|
||||
_buildTestApp(connector: connector, child: const TcpScreen()),
|
||||
);
|
||||
await tester.pump();
|
||||
await tester.pumpWidget(const SizedBox.shrink());
|
||||
await tester.pump();
|
||||
|
||||
expect(connector.manualDisconnectCalls, 0);
|
||||
});
|
||||
|
||||
testWidgets('leaving TcpScreen cancels the connection it started', (
|
||||
tester,
|
||||
) async {
|
||||
final connector = _FakeMeshCoreConnector();
|
||||
|
||||
await tester.pumpWidget(
|
||||
_buildTestApp(connector: connector, child: const ScannerScreen()),
|
||||
_buildTestApp(connector: connector, child: const TcpScreen()),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
final scannerContext = tester.element(find.byType(ScannerScreen));
|
||||
final scannerL10n = AppLocalizations.of(scannerContext);
|
||||
await tester.tap(find.byTooltip(scannerL10n.connectionChoiceTcpLabel));
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.byType(TcpScreen), findsOneWidget);
|
||||
|
||||
await tester.tap(find.widgetWithText(OutlinedButton, 'Bluetooth'));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.byType(TcpScreen), findsNothing);
|
||||
expect(find.byType(ScannerScreen), findsOneWidget);
|
||||
final navigatorState = tester.state<NavigatorState>(find.byType(Navigator));
|
||||
expect(navigatorState.canPop(), isFalse);
|
||||
|
||||
// ScannerScreen.dispose() schedules disconnect work that debounces notify.
|
||||
// Drain that debounce timer before test teardown.
|
||||
await tester.pump();
|
||||
await tester.enterText(find.byType(TextField).first, '192.168.1.40');
|
||||
await tester.enterText(find.byType(TextField).last, '5000');
|
||||
await tester.tap(find.byKey(const Key('tcp_connect_button')));
|
||||
await tester.pump();
|
||||
connector
|
||||
..initialState = MeshCoreConnectionState.connecting
|
||||
..initialTransport = MeshCoreTransportType.tcp;
|
||||
await tester.pumpWidget(const SizedBox.shrink());
|
||||
await tester.pump(const Duration(milliseconds: 60));
|
||||
await tester.pump();
|
||||
|
||||
expect(connector.connectTcpCalls, 1);
|
||||
expect(connector.manualDisconnectCalls, 1);
|
||||
});
|
||||
|
||||
testWidgets('TcpScreen disables connect button while connector is scanning', (
|
||||
@@ -165,7 +182,7 @@ void main() {
|
||||
expect(connector.connectTcpCalls, 0);
|
||||
});
|
||||
|
||||
testWidgets('TcpScreen narrow width long status text does not overflow', (
|
||||
testWidgets('Connect screen fits a long TCP endpoint at narrow width', (
|
||||
tester,
|
||||
) async {
|
||||
await tester.binding.setSurfaceSize(const Size(320, 700));
|
||||
@@ -179,7 +196,7 @@ void main() {
|
||||
await tester.pumpWidget(
|
||||
_buildTestApp(
|
||||
connector: connector,
|
||||
child: const TcpScreen(),
|
||||
child: const ConnectScreen(initialTransport: MeshCoreTransportType.tcp),
|
||||
locale: const Locale('en'),
|
||||
),
|
||||
);
|
||||
@@ -187,7 +204,7 @@ void main() {
|
||||
|
||||
expect(tester.takeException(), isNull);
|
||||
|
||||
final context = tester.element(find.byType(TcpScreen));
|
||||
final context = tester.element(find.byType(ConnectScreen));
|
||||
final l10n = AppLocalizations.of(context);
|
||||
expect(
|
||||
find.text(l10n.scanner_connectedTo(connector.initialEndpoint!)),
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
@@ -5,9 +7,10 @@ import 'package:provider/provider.dart';
|
||||
|
||||
import 'package:meshcore_open/connector/meshcore_connector.dart';
|
||||
import 'package:meshcore_open/l10n/app_localizations.dart';
|
||||
import 'package:meshcore_open/screens/scanner_screen.dart';
|
||||
import 'package:meshcore_open/screens/connect_screen.dart';
|
||||
import 'package:meshcore_open/screens/usb_screen.dart';
|
||||
import 'package:meshcore_open/utils/platform_info.dart';
|
||||
import 'package:meshcore_open/widgets/device_tile.dart';
|
||||
|
||||
class _FakeMeshCoreConnector extends MeshCoreConnector {
|
||||
_FakeMeshCoreConnector({
|
||||
@@ -28,8 +31,15 @@ class _FakeMeshCoreConnector extends MeshCoreConnector {
|
||||
Future<List<String>> Function()? listUsbPortsImpl;
|
||||
Future<void> Function({required String portName})? connectUsbImpl;
|
||||
|
||||
MeshCoreConnectionState? currentState;
|
||||
|
||||
@override
|
||||
MeshCoreConnectionState get state => initialState;
|
||||
MeshCoreConnectionState get state => currentState ?? initialState;
|
||||
|
||||
void setState(MeshCoreConnectionState state) {
|
||||
currentState = state;
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
@override
|
||||
MeshCoreTransportType get activeTransport => MeshCoreTransportType.usb;
|
||||
@@ -116,7 +126,7 @@ void main() {
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
await tester.tap(find.byType(ListTile).first);
|
||||
await tester.tap(find.byType(DeviceTile).first);
|
||||
await tester.pump();
|
||||
|
||||
expect(connector.connectUsbCalls, 0);
|
||||
@@ -140,38 +150,35 @@ void main() {
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
await tester.tap(find.byType(ListTile).first);
|
||||
await tester.tap(find.byType(DeviceTile).first);
|
||||
await tester.pump();
|
||||
|
||||
expect(connector.connectUsbCalls, 1);
|
||||
expect(connector.lastConnectPortName, 'COM6');
|
||||
});
|
||||
|
||||
testWidgets('ScannerScreen USB action reflects platform support', (
|
||||
testWidgets('Connect screen has a USB tab only where USB works', (
|
||||
tester,
|
||||
) async {
|
||||
final connector = _FakeMeshCoreConnector();
|
||||
|
||||
await tester.pumpWidget(
|
||||
_buildTestApp(connector: connector, child: const ScannerScreen()),
|
||||
_buildTestApp(connector: connector, child: const ConnectScreen()),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
final context = tester.element(find.byType(ScannerScreen));
|
||||
final context = tester.element(find.byType(ConnectScreen));
|
||||
final l10n = AppLocalizations.of(context);
|
||||
if (PlatformInfo.supportsUsbSerial) {
|
||||
expect(find.byTooltip(l10n.connectionChoiceUsbLabel), findsOneWidget);
|
||||
} else {
|
||||
expect(find.byTooltip(l10n.connectionChoiceUsbLabel), findsNothing);
|
||||
}
|
||||
expect(
|
||||
find.widgetWithText(Tab, l10n.connectionChoiceUsbLabel),
|
||||
PlatformInfo.supportsUsbSerial ? findsOneWidget : findsNothing,
|
||||
);
|
||||
|
||||
// ScannerScreen.dispose() schedules disconnect work that debounces notify.
|
||||
// Drain that debounce timer before test teardown.
|
||||
await tester.pumpWidget(const SizedBox.shrink());
|
||||
await tester.pump(const Duration(milliseconds: 60));
|
||||
});
|
||||
|
||||
testWidgets('ScannerScreen narrow width keeps actions without overflow', (
|
||||
testWidgets('Connect screen narrow width keeps its tabs without overflow', (
|
||||
tester,
|
||||
) async {
|
||||
await tester.binding.setSurfaceSize(const Size(320, 700));
|
||||
@@ -180,28 +187,29 @@ void main() {
|
||||
final connector = _FakeMeshCoreConnector();
|
||||
|
||||
await tester.pumpWidget(
|
||||
_buildTestApp(connector: connector, child: const ScannerScreen()),
|
||||
_buildTestApp(connector: connector, child: const ConnectScreen()),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(tester.takeException(), isNull);
|
||||
|
||||
final context = tester.element(find.byType(ScannerScreen));
|
||||
final context = tester.element(find.byType(ConnectScreen));
|
||||
final l10n = AppLocalizations.of(context);
|
||||
expect(find.text(l10n.scanner_scan), findsWidgets);
|
||||
|
||||
if (PlatformInfo.supportsUsbSerial) {
|
||||
expect(find.byTooltip(l10n.connectionChoiceUsbLabel), findsOneWidget);
|
||||
}
|
||||
if (!PlatformInfo.isWeb) {
|
||||
expect(find.byTooltip(l10n.connectionChoiceTcpLabel), findsOneWidget);
|
||||
}
|
||||
expect(
|
||||
find.widgetWithText(Tab, l10n.connectionChoiceBluetoothLabel),
|
||||
findsOneWidget,
|
||||
);
|
||||
expect(
|
||||
find.widgetWithText(Tab, l10n.connectionChoiceTcpLabel),
|
||||
findsOneWidget,
|
||||
);
|
||||
|
||||
await tester.pumpWidget(const SizedBox.shrink());
|
||||
await tester.pump(const Duration(milliseconds: 60));
|
||||
});
|
||||
|
||||
testWidgets('UsbScreen narrow width long status text does not overflow', (
|
||||
testWidgets('Connect screen fits a long USB port label at narrow width', (
|
||||
tester,
|
||||
) async {
|
||||
await tester.binding.setSurfaceSize(const Size(320, 700));
|
||||
@@ -214,13 +222,16 @@ void main() {
|
||||
'/dev/bus/usb/001/002 - KD3CGK mesh-utility.org very long label';
|
||||
|
||||
await tester.pumpWidget(
|
||||
_buildTestApp(connector: connector, child: const UsbScreen()),
|
||||
_buildTestApp(
|
||||
connector: connector,
|
||||
child: const ConnectScreen(initialTransport: MeshCoreTransportType.usb),
|
||||
),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(tester.takeException(), isNull);
|
||||
|
||||
final context = tester.element(find.byType(UsbScreen));
|
||||
final context = tester.element(find.byType(ConnectScreen));
|
||||
final l10n = AppLocalizations.of(context);
|
||||
expect(
|
||||
find.text(
|
||||
@@ -233,6 +244,43 @@ void main() {
|
||||
await tester.pump(const Duration(milliseconds: 60));
|
||||
});
|
||||
|
||||
testWidgets('UsbScreen shows a progress ring on the port being connected', (
|
||||
tester,
|
||||
) async {
|
||||
final connector = _FakeMeshCoreConnector(
|
||||
ports: <String>['COM6 - USB Serial Device (COM6)'],
|
||||
);
|
||||
final done = Completer<void>();
|
||||
connector.connectUsbImpl = ({required String portName}) async {
|
||||
connector.setState(MeshCoreConnectionState.connecting);
|
||||
await done.future;
|
||||
connector.setState(MeshCoreConnectionState.disconnected);
|
||||
};
|
||||
Finder ring() => find.descendant(
|
||||
of: find.byType(DeviceTile),
|
||||
matching: find.byType(CircularProgressIndicator),
|
||||
);
|
||||
|
||||
await tester.pumpWidget(
|
||||
_buildTestApp(connector: connector, child: const UsbScreen()),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
expect(ring(), findsNothing);
|
||||
|
||||
await tester.tap(find.byType(DeviceTile).first);
|
||||
await tester.pump();
|
||||
expect(ring(), findsOneWidget);
|
||||
|
||||
done.complete();
|
||||
await tester.pump();
|
||||
await tester.pump();
|
||||
expect(ring(), findsNothing);
|
||||
|
||||
// The connector debounces notifications; drain that timer.
|
||||
await tester.pumpWidget(const SizedBox.shrink());
|
||||
await tester.pump(const Duration(milliseconds: 60));
|
||||
});
|
||||
|
||||
group('Error Handling', () {
|
||||
testWidgets('shows error SnackBar when listing ports fails', (
|
||||
tester,
|
||||
@@ -266,7 +314,7 @@ void main() {
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
await tester.tap(find.byType(ListTile).first);
|
||||
await tester.tap(find.byType(DeviceTile).first);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(connectAttempted, isTrue);
|
||||
|
||||
@@ -86,4 +86,21 @@ void main() {
|
||||
expect(find.byType(InkWell), findsNothing);
|
||||
expect(tester.getSize(find.byType(GetNodeBanner)).height, 0);
|
||||
});
|
||||
|
||||
testWidgets('stays hidden on a landscape phone', (tester) async {
|
||||
await pumpBanner(tester, size: const Size(740, 360), textScale: 1);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.text('Need a new node?'), findsNothing);
|
||||
});
|
||||
|
||||
testWidgets('Close hides the banner', (tester) async {
|
||||
await pumpBanner(tester, size: const Size(390, 844), textScale: 1);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
await tester.tap(find.byTooltip('Close'));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.text('Need a new node?'), findsNothing);
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user