Replaced barcode scanning library with ZXing (#2706)

* Replaced barcode scanning library with ZXing

* Applied code formatting rules

* Delete now obsolete user settings

* Review

---------

Co-authored-by: Bernd Bestel <bernd@berrnd.de>
This commit is contained in:
Fándly Gergő
2025-03-21 18:41:39 +02:00
committed by GitHub
parent 03ab765ccd
commit e786433273
9 changed files with 78 additions and 624 deletions

View File

@@ -1,6 +1,6 @@
@if (!GROCY_FEATURE_FLAG_DISABLE_BROWSER_BARCODE_CAMERA_SCANNING)
@php require_frontend_packages(['quagga2']); @endphp
@php require_frontend_packages(['zxing']); @endphp
@once
@push('componentScripts')

View File

@@ -740,8 +740,8 @@
@if(in_array('daterangepicker', $GROCY_REQUIRED_FRONTEND_PACKAGES))
<script src="{{ $U('/packages/daterangepicker/daterangepicker.js?v=', true) }}{{ $version }}"></script>
@endif
@if(in_array('quagga2', $GROCY_REQUIRED_FRONTEND_PACKAGES))
<script src="{{ $U('/packages/@ericblade/quagga2/dist/quagga.min.js?v=', true) }}{{ $version }}"></script>
@if(in_array('zxing', $GROCY_REQUIRED_FRONTEND_PACKAGES))
<script src="{{ $U('/packages/@zxing/library/umd/index.min.js?v=', true) }}{{ $version }}"></script>
@endif
@if(in_array('bwipjs', $GROCY_REQUIRED_FRONTEND_PACKAGES))
<script src="{{ $U('/packages/bwip-js/dist/bwip-js-min.js?v=', true) }}{{ $version }}"></script>