From ed947e5777d3a02f92da5a7cfe14bb5f88ced082 Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Tue, 15 Jul 2025 13:19:59 +0200 Subject: [PATCH] remodel scan process and visualize external --- src/components/Notification.vue | 7 ++ src/components/Pagination.vue | 2 +- src/components/TextCopy.vue | 2 +- src/components/scanner/ManageScanModal.vue | 64 +++++++++++++++ src/components/scanner/Phone.vue | 80 +++++++++++++++++++ src/components/{ => scanner}/ScanInput.vue | 4 +- src/components/scanner/ScanQRCodeModal.vue | 51 ++++++++++++ src/components/scanner/ScanResultsModal.vue | 41 ++++++++++ src/components/scanner/ScanSidebarInfo.vue | 42 ++++++++++ .../{CodeDetector.vue => scanner/Scanner.vue} | 20 ++--- .../search/EquipmentSearchSelect.vue | 2 +- src/components/search/VehicleSearchSelect.vue | 2 +- .../search/WearableSearchSelect.vue | 2 +- src/helpers/{codeScanner.ts => scanner.ts} | 0 src/stores/admin/scanner.ts | 28 +++++++ src/views/admin/View.vue | 6 ++ .../admin/unit/equipment/CreateEquipment.vue | 2 +- .../admin/unit/equipment/UpdateEquipment.vue | 2 +- .../inspectionPlan/UpdateInspectionPlan.vue | 2 +- .../admin/unit/vehicle/CreateVehicle.vue | 2 +- .../admin/unit/vehicle/UpdateVehicle.vue | 2 +- .../admin/unit/wearable/CreateWearable.vue | 2 +- .../admin/unit/wearable/UpdateWearable.vue | 2 +- 23 files changed, 338 insertions(+), 29 deletions(-) create mode 100644 src/components/scanner/ManageScanModal.vue create mode 100644 src/components/scanner/Phone.vue rename src/components/{ => scanner}/ScanInput.vue (94%) create mode 100644 src/components/scanner/ScanQRCodeModal.vue create mode 100644 src/components/scanner/ScanResultsModal.vue create mode 100644 src/components/scanner/ScanSidebarInfo.vue rename src/components/{CodeDetector.vue => scanner/Scanner.vue} (76%) rename src/helpers/{codeScanner.ts => scanner.ts} (100%) create mode 100644 src/stores/admin/scanner.ts diff --git a/src/components/Notification.vue b/src/components/Notification.vue index e320e19..d302eef 100644 --- a/src/components/Notification.vue +++ b/src/components/Notification.vue @@ -20,6 +20,7 @@ notification.type == 'error' ? 'border border-red-400' : '', notification.type == 'warning' ? 'border border-red-400' : '', notification.type == 'info' ? 'border border-gray-400' : '', + notification.type == 'success' ? 'border border-green-400' : '', ]" >