mirror of
https://github.com/grocy/grocy.git
synced 2025-08-28 00:52:07 +00:00
* Replaced barcode scanning library with ZXing * Applied code formatting rules * Delete now obsolete user settings * Review --------- Co-authored-by: Bernd Bestel <bernd@berrnd.de>
28 lines
555 B
PHP
28 lines
555 B
PHP
@if (!GROCY_FEATURE_FLAG_DISABLE_BROWSER_BARCODE_CAMERA_SCANNING)
|
|
|
|
@php require_frontend_packages(['zxing']); @endphp
|
|
|
|
@once
|
|
@push('componentScripts')
|
|
<script src="{{ $U('/viewjs/components/camerabarcodescanner.js', true) }}?v={{ $version }}"></script>
|
|
@endpush
|
|
@endonce
|
|
|
|
@push('pageStyles')
|
|
<style>
|
|
#camerabarcodescanner-start-button {
|
|
position: absolute;
|
|
right: 0;
|
|
margin-top: 4px;
|
|
margin-right: 5px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.combobox-container #camerabarcodescanner-start-button {
|
|
margin-right: 38px !important;
|
|
}
|
|
</style>
|
|
@endpush
|
|
|
|
@endif
|