From 62553a37aa6d0264dc0b11f3db1594cfbc842412 Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Thu, 17 Apr 2025 08:07:44 +0000 Subject: [PATCH] refactor(ContactQRScanShowView): simplify QR scanning and contact processing - Remove complex camera lifecycle management code - Streamline QR code processing and contact handling - Simplify clipboard operations using native API - Remove redundant error handling and notification methods - Consolidate contact processing logic into focused methods --- src/components/QRScannerDialog.vue | 317 ++++++++++ src/views/ContactQRScanShowView.vue | 904 ++++++---------------------- 2 files changed, 513 insertions(+), 708 deletions(-) create mode 100644 src/components/QRScannerDialog.vue diff --git a/src/components/QRScannerDialog.vue b/src/components/QRScannerDialog.vue new file mode 100644 index 00000000..a14fe48f --- /dev/null +++ b/src/components/QRScannerDialog.vue @@ -0,0 +1,317 @@ + + + + + diff --git a/src/views/ContactQRScanShowView.vue b/src/views/ContactQRScanShowView.vue index ce9ffda4..8f09fbb0 100644 --- a/src/views/ContactQRScanShowView.vue +++ b/src/views/ContactQRScanShowView.vue @@ -91,35 +91,21 @@

Scan Contact Info

- - - -
- -

- If you do not see the camera, check your camera permissions. -

-
+
+