Refactor code structure and remove redundant sections for improved readability and maintainability

This commit is contained in:
zjs81
2026-06-12 22:55:41 -07:00
parent 51d6210920
commit 3707acb124
34 changed files with 1008 additions and 84 deletions
+1
View File
@@ -143,6 +143,7 @@
"scanner_chromeRequired": "Chrome Browser Required",
"scanner_chromeRequiredMessage": "This web application requires Google Chrome or a Chromium-based browser for Bluetooth support.",
"scanner_enableBluetooth": "Enable Bluetooth",
"scanner_bluetoothWebUnsupported": "Bluetooth isn't available in the browser. Connect over USB instead.",
"device_quickSwitch": "Quick switch",
"device_meshcore": "MeshCore",
"settings_title": "Settings",
+6
View File
@@ -694,6 +694,12 @@ abstract class AppLocalizations {
/// **'Enable Bluetooth'**
String get scanner_enableBluetooth;
/// No description provided for @scanner_bluetoothWebUnsupported.
///
/// In en, this message translates to:
/// **'Bluetooth isn\'t available in the browser. Connect over USB instead.'**
String get scanner_bluetoothWebUnsupported;
/// No description provided for @device_quickSwitch.
///
/// In en, this message translates to:
+4
View File
@@ -318,6 +318,10 @@ class AppLocalizationsBg extends AppLocalizations {
@override
String get scanner_enableBluetooth => 'Активирайте Bluetooth';
@override
String get scanner_bluetoothWebUnsupported =>
'Bluetooth isn\'t available in the browser. Connect over USB instead.';
@override
String get device_quickSwitch => 'Бързо превключване';
+4
View File
@@ -321,6 +321,10 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get scanner_enableBluetooth => 'Bluetooth aktivieren';
@override
String get scanner_bluetoothWebUnsupported =>
'Bluetooth isn\'t available in the browser. Connect over USB instead.';
@override
String get device_quickSwitch => 'Schnelles Umschalten';
+4
View File
@@ -315,6 +315,10 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get scanner_enableBluetooth => 'Enable Bluetooth';
@override
String get scanner_bluetoothWebUnsupported =>
'Bluetooth isn\'t available in the browser. Connect over USB instead.';
@override
String get device_quickSwitch => 'Quick switch';
+4
View File
@@ -319,6 +319,10 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get scanner_enableBluetooth => 'Habilitar Bluetooth';
@override
String get scanner_bluetoothWebUnsupported =>
'Bluetooth isn\'t available in the browser. Connect over USB instead.';
@override
String get device_quickSwitch => 'Cambiar rápidamente';
+4
View File
@@ -321,6 +321,10 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get scanner_enableBluetooth => 'Activer le Bluetooth';
@override
String get scanner_bluetoothWebUnsupported =>
'Bluetooth isn\'t available in the browser. Connect over USB instead.';
@override
String get device_quickSwitch => 'Basculement rapide';
+4
View File
@@ -318,6 +318,10 @@ class AppLocalizationsHu extends AppLocalizations {
@override
String get scanner_enableBluetooth => 'Engedje be a Bluetooth funkciót';
@override
String get scanner_bluetoothWebUnsupported =>
'Bluetooth isn\'t available in the browser. Connect over USB instead.';
@override
String get device_quickSwitch => 'Gyors váltás';
+4
View File
@@ -321,6 +321,10 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get scanner_enableBluetooth => 'Abilita il Bluetooth';
@override
String get scanner_bluetoothWebUnsupported =>
'Bluetooth isn\'t available in the browser. Connect over USB instead.';
@override
String get device_quickSwitch => 'Passa velocemente';
+4
View File
@@ -308,6 +308,10 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get scanner_enableBluetooth => 'Bluetoothを有効にする';
@override
String get scanner_bluetoothWebUnsupported =>
'Bluetooth isn\'t available in the browser. Connect over USB instead.';
@override
String get device_quickSwitch => '素早い切り替え';
+4
View File
@@ -307,6 +307,10 @@ class AppLocalizationsKo extends AppLocalizations {
@override
String get scanner_enableBluetooth => '블루투스 활성화';
@override
String get scanner_bluetoothWebUnsupported =>
'Bluetooth isn\'t available in the browser. Connect over USB instead.';
@override
String get device_quickSwitch => '빠른 전환';
+4
View File
@@ -317,6 +317,10 @@ class AppLocalizationsNl extends AppLocalizations {
@override
String get scanner_enableBluetooth => 'Activeer Bluetooth';
@override
String get scanner_bluetoothWebUnsupported =>
'Bluetooth isn\'t available in the browser. Connect over USB instead.';
@override
String get device_quickSwitch => 'Snelle overschakeling';
+4
View File
@@ -322,6 +322,10 @@ class AppLocalizationsPl extends AppLocalizations {
@override
String get scanner_enableBluetooth => 'Włącz Bluetooth';
@override
String get scanner_bluetoothWebUnsupported =>
'Bluetooth isn\'t available in the browser. Connect over USB instead.';
@override
String get device_quickSwitch => 'Szybka zmiana';
+4
View File
@@ -320,6 +320,10 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get scanner_enableBluetooth => 'Ative o Bluetooth';
@override
String get scanner_bluetoothWebUnsupported =>
'Bluetooth isn\'t available in the browser. Connect over USB instead.';
@override
String get device_quickSwitch => 'Mudar rapidamente';
+4
View File
@@ -320,6 +320,10 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get scanner_enableBluetooth => 'Включите Bluetooth';
@override
String get scanner_bluetoothWebUnsupported =>
'Bluetooth isn\'t available in the browser. Connect over USB instead.';
@override
String get device_quickSwitch => 'Быстрое переключение';
+4
View File
@@ -319,6 +319,10 @@ class AppLocalizationsSk extends AppLocalizations {
@override
String get scanner_enableBluetooth => 'Povolte Bluetooth';
@override
String get scanner_bluetoothWebUnsupported =>
'Bluetooth isn\'t available in the browser. Connect over USB instead.';
@override
String get device_quickSwitch => 'Rýchle prepínač';
+4
View File
@@ -318,6 +318,10 @@ class AppLocalizationsSl extends AppLocalizations {
@override
String get scanner_enableBluetooth => 'Omogočite Bluetooth';
@override
String get scanner_bluetoothWebUnsupported =>
'Bluetooth isn\'t available in the browser. Connect over USB instead.';
@override
String get device_quickSwitch => 'Hitro preklop';
+4
View File
@@ -316,6 +316,10 @@ class AppLocalizationsSv extends AppLocalizations {
@override
String get scanner_enableBluetooth => 'Aktivera Bluetooth';
@override
String get scanner_bluetoothWebUnsupported =>
'Bluetooth isn\'t available in the browser. Connect over USB instead.';
@override
String get device_quickSwitch => 'Snabb växling';
+4
View File
@@ -319,6 +319,10 @@ class AppLocalizationsUk extends AppLocalizations {
@override
String get scanner_enableBluetooth => 'Увімкніть Bluetooth';
@override
String get scanner_bluetoothWebUnsupported =>
'Bluetooth isn\'t available in the browser. Connect over USB instead.';
@override
String get device_quickSwitch => 'Швидке перемикання';
+4
View File
@@ -305,6 +305,10 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get scanner_enableBluetooth => '启用蓝牙';
@override
String get scanner_bluetoothWebUnsupported =>
'Bluetooth isn\'t available in the browser. Connect over USB instead.';
@override
String get device_quickSwitch => '快速切换';