Skip to content

Commit

Permalink
Add a LinkInputView widget for manual token entry via URL (#424)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmer authored Nov 7, 2024
1 parent 8b1eb1b commit f78f020
Show file tree
Hide file tree
Showing 19 changed files with 422 additions and 111 deletions.
5 changes: 4 additions & 1 deletion lib/l10n/app_cs.arb
Original file line number Diff line number Diff line change
Expand Up @@ -674,5 +674,8 @@
"qrInFileNotFound2": "Můžete mi ukázat, kde se QR kód nachází.",
"qrInFileNotFound3": "Předpokládám, že kód najdu, pokud se nachází uprostřed označené oblasti.",
"markQrCode": "Označte QR kód",
"malformedData": "Data nejsou ve správném formátu"
"malformedData": "Data nejsou ve správném formátu",
"linkMustOtpAuth" : "Odkaz musí začínat otpauth://",
"clipboardEmpty": "Schránka je prázdná",
"invalidUrl": "Neplatná adresa URL"
}
5 changes: 4 additions & 1 deletion lib/l10n/app_de.arb
Original file line number Diff line number Diff line change
Expand Up @@ -653,5 +653,8 @@
"qrInFileNotFound2": "Sie können mir zeigen, wo sich der QR-Code befindet.",
"qrInFileNotFound3": "Ich erwarte, dass ich den Code finde, wenn er sich in der Mitte des markierten Bereichs befindet.",
"markQrCode": "QR-Code markieren",
"malformedData": "Fehlerhafte Daten"
"malformedData": "Fehlerhafte Daten",
"linkMustOtpAuth" : "Der Link muss mit otpauth:// beginnen",
"clipboardEmpty": "Zwischenablage ist leer",
"invalidUrl": "Ungültige URL"
}
5 changes: 4 additions & 1 deletion lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -696,5 +696,8 @@
"qrInFileNotFound2": "You can show me where the QR code is located.",
"qrInFileNotFound3": "I expect i will find the code if it is in the middle of the marked area.",
"markQrCode": "Mark QR Code",
"malformedData": "Malformed data"
"malformedData": "Malformed data",
"linkMustOtpAuth" : "The link must start with otpauth://",
"clipboardEmpty": "Clipboard is empty",
"invalidUrl": "Invalid URL"
}
5 changes: 4 additions & 1 deletion lib/l10n/app_es.arb
Original file line number Diff line number Diff line change
Expand Up @@ -670,5 +670,8 @@
"qrInFileNotFound2": "Puedes mostrarme dónde está el código QR.",
"qrInFileNotFound3": "Espero encontrar el código si está en el centro del área marcada.",
"markQrCode": "Marcar código QR",
"malformedData": "Datos mal formados"
"malformedData": "Datos mal formados",
"linkMustOtpAuth": "El enlace debe empezar por otpauth://",
"clipboardEmpty": "El portapapeles está vacío",
"invalidUrl": "URL no válida"
}
5 changes: 4 additions & 1 deletion lib/l10n/app_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -675,5 +675,8 @@
"qrInFileNotFound2": "Vous pouvez me montrer où se trouve le code QR.",
"qrInFileNotFound3": "Je pense que je trouverai le code s'il se trouve au milieu de la zone marquée.",
"markQrCode": "Marquer le code QR",
"malformedData": "Les données ne sont pas valides"
"malformedData": "Les données ne sont pas valides",
"linkMustOtpAuth": "Le lien doit commencer par otpauth://.",
"clipboardEmpty": "Le presse-papiers est vide",
"invalidUrl": "URL invalide"
}
18 changes: 18 additions & 0 deletions lib/l10n/app_localizations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1844,6 +1844,24 @@ abstract class AppLocalizations {
/// In en, this message translates to:
/// **'Malformed data'**
String get malformedData;

/// No description provided for @linkMustOtpAuth.
///
/// In en, this message translates to:
/// **'The link must start with otpauth://'**
String get linkMustOtpAuth;

/// No description provided for @clipboardEmpty.
///
/// In en, this message translates to:
/// **'Clipboard is empty'**
String get clipboardEmpty;

/// No description provided for @invalidUrl.
///
/// In en, this message translates to:
/// **'Invalid URL'**
String get invalidUrl;
}

class _AppLocalizationsDelegate extends LocalizationsDelegate<AppLocalizations> {
Expand Down
9 changes: 9 additions & 0 deletions lib/l10n/app_localizations_cs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -975,4 +975,13 @@ class AppLocalizationsCs extends AppLocalizations {

@override
String get malformedData => 'Data nejsou ve správném formátu';

@override
String get linkMustOtpAuth => 'Odkaz musí začínat otpauth://';

@override
String get clipboardEmpty => 'Schránka je prázdná';

@override
String get invalidUrl => 'Neplatná adresa URL';
}
9 changes: 9 additions & 0 deletions lib/l10n/app_localizations_de.dart
Original file line number Diff line number Diff line change
Expand Up @@ -975,4 +975,13 @@ class AppLocalizationsDe extends AppLocalizations {

@override
String get malformedData => 'Fehlerhafte Daten';

@override
String get linkMustOtpAuth => 'Der Link muss mit otpauth:// beginnen';

@override
String get clipboardEmpty => 'Zwischenablage ist leer';

@override
String get invalidUrl => 'Ungültige URL';
}
9 changes: 9 additions & 0 deletions lib/l10n/app_localizations_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -975,4 +975,13 @@ class AppLocalizationsEn extends AppLocalizations {

@override
String get malformedData => 'Malformed data';

@override
String get linkMustOtpAuth => 'The link must start with otpauth://';

@override
String get clipboardEmpty => 'Clipboard is empty';

@override
String get invalidUrl => 'Invalid URL';
}
9 changes: 9 additions & 0 deletions lib/l10n/app_localizations_es.dart
Original file line number Diff line number Diff line change
Expand Up @@ -975,4 +975,13 @@ class AppLocalizationsEs extends AppLocalizations {

@override
String get malformedData => 'Datos mal formados';

@override
String get linkMustOtpAuth => 'El enlace debe empezar por otpauth://';

@override
String get clipboardEmpty => 'El portapapeles está vacío';

@override
String get invalidUrl => 'URL no válida';
}
9 changes: 9 additions & 0 deletions lib/l10n/app_localizations_fr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -975,4 +975,13 @@ class AppLocalizationsFr extends AppLocalizations {

@override
String get malformedData => 'Les données ne sont pas valides';

@override
String get linkMustOtpAuth => 'Le lien doit commencer par otpauth://.';

@override
String get clipboardEmpty => 'Le presse-papiers est vide';

@override
String get invalidUrl => 'URL invalide';
}
9 changes: 9 additions & 0 deletions lib/l10n/app_localizations_nl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -975,4 +975,13 @@ class AppLocalizationsNl extends AppLocalizations {

@override
String get malformedData => 'De QR code bevat onjuiste gegevens.';

@override
String get linkMustOtpAuth => 'De link moet beginnen met otpauth://';

@override
String get clipboardEmpty => 'Klembord is leeg';

@override
String get invalidUrl => 'Ongeldige URL';
}
9 changes: 9 additions & 0 deletions lib/l10n/app_localizations_pl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -975,4 +975,13 @@ class AppLocalizationsPl extends AppLocalizations {

@override
String get malformedData => 'Nieprawidłowe dane';

@override
String get linkMustOtpAuth => 'Link musi zaczynać się od otpauth://';

@override
String get clipboardEmpty => 'Schowek jest pusty';

@override
String get invalidUrl => 'Nieprawidłowy adres URL';
}
5 changes: 4 additions & 1 deletion lib/l10n/app_nl.arb
Original file line number Diff line number Diff line change
Expand Up @@ -671,5 +671,8 @@
"qrInFileNotFound2": "U kunt mij laten zien waar de QR code is.",
"qrInFileNotFound3": "Ik verwacht dat ik de code zal vinden als het in het midden van het gemarkeerde gebied is.",
"markQrCode": "Markeer QR Code",
"malformedData": "De QR code bevat onjuiste gegevens."
"malformedData": "De QR code bevat onjuiste gegevens.",
"linkMustOtpAuth": "De link moet beginnen met otpauth://",
"clipboardEmpty": "Klembord is leeg",
"invalidUrl": "Ongeldige URL"
}
5 changes: 4 additions & 1 deletion lib/l10n/app_pl.arb
Original file line number Diff line number Diff line change
Expand Up @@ -668,5 +668,8 @@
"qrInFileNotFound2": "Możesz pokazać mi, gdzie znajduje się kod QR.",
"qrInFileNotFound3": "Oczekuję, że znajdę kod, jeśli znajduje się w środku zaznaczonego obszaru.",
"markQrCode": "Zaznacz kod QR",
"malformedData": "Nieprawidłowe dane"
"malformedData": "Nieprawidłowe dane",
"linkMustOtpAuth": "Link musi zaczynać się od otpauth://",
"clipboardEmpty": "Schowek jest pusty",
"invalidUrl": "Nieprawidłowy adres URL"
}
Loading

0 comments on commit f78f020

Please sign in to comment.