From 9a42aacc3afdd1f7e6b67021923ad74770d22eec Mon Sep 17 00:00:00 2001 From: Julien Nahum Date: Fri, 30 May 2025 11:49:13 +0200 Subject: [PATCH] Enhance Barcode Input and File Input Components with Client-Only Wrapper - Updated `nuxt.config.ts` to include `@zxing/library` in the transpile list, ensuring compatibility with the new barcode scanning functionality. - Modified `BarcodeInput.vue` and `FileInput.vue` components to wrap the `CameraUpload` component in a `` tag, preventing server-side rendering issues and improving the user experience during barcode scanning. These changes aim to enhance the functionality of the barcode scanning feature while ensuring proper rendering in client-side environments. --- client/components/forms/BarcodeInput.vue | 2 ++ client/components/forms/FileInput.vue | 4 +++- client/nuxt.config.ts | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/client/components/forms/BarcodeInput.vue b/client/components/forms/BarcodeInput.vue index f283459e..a7f1414e 100644 --- a/client/components/forms/BarcodeInput.vue +++ b/client/components/forms/BarcodeInput.vue @@ -8,12 +8,14 @@ v-if="isScanning" class="relative w-full" > + +
- + +