mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Load all frontend packages conditionally
This commit is contained in:
@@ -1,17 +1,13 @@
|
||||
@if (!GROCY_FEATURE_FLAG_DISABLE_BROWSER_BARCODE_CAMERA_SCANNING)
|
||||
|
||||
@php require_frontend_packages(['quagga2']); @endphp
|
||||
|
||||
@once
|
||||
@push('componentScripts')
|
||||
<script src="{{ $U('/viewjs/components/barcodescanner.js', true) }}?v={{ $version }}"></script>
|
||||
@endpush
|
||||
@endonce
|
||||
|
||||
@once
|
||||
@push('pageScripts')
|
||||
<script src="{{ $U('/node_modules/@ericblade/quagga2/dist/quagga.min.js?v=', true) }}{{ $version }}"></script>
|
||||
@endpush
|
||||
@endonce
|
||||
|
||||
@push('pageStyles')
|
||||
<style>
|
||||
#barcodescanner-start-button {
|
||||
@@ -25,7 +21,6 @@
|
||||
.combobox-container #barcodescanner-start-button {
|
||||
margin-right: 36px !important;
|
||||
}
|
||||
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@php require_frontend_packages(['tempusdominus']); @endphp
|
||||
|
||||
@once
|
||||
@push('componentScripts')
|
||||
<script src="{{ $U('/viewjs/components/calendarcard.js', true) }}?v={{ $version }}"></script>
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@php require_frontend_packages(['tempusdominus']); @endphp
|
||||
|
||||
@once
|
||||
@push('componentScripts')
|
||||
<script src="{{ $U('/viewjs/components/datetimepicker.js', true) }}?v={{ $version }}"></script>
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@php require_frontend_packages(['tempusdominus']); @endphp
|
||||
|
||||
@once
|
||||
@push('componentScripts')
|
||||
<script src="{{ $U('/viewjs/components/datetimepicker2.js', true) }}?v={{ $version }}"></script>
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@php require_frontend_packages(['bootstrap-combobox']); @endphp
|
||||
|
||||
@once
|
||||
@push('componentScripts')
|
||||
<script src="{{ $U('/viewjs/components/locationpicker.js', true) }}?v={{ $version }}"></script>
|
||||
|
@@ -1,6 +1,7 @@
|
||||
@php require_frontend_packages(['chartjs']); @endphp
|
||||
|
||||
@once
|
||||
@push('componentScripts')
|
||||
<script src="{{ $U('/node_modules/chart.js/dist/Chart.min.js?v=', true) }}{{ $version }}"></script>
|
||||
<script src="{{ $U('/viewjs/components/productcard.js', true) }}?v={{ $version }}"></script>
|
||||
@endpush
|
||||
@endonce
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@php require_frontend_packages(['bootstrap-combobox']); @endphp
|
||||
|
||||
@once
|
||||
@push('componentScripts')
|
||||
<script src="{{ $U('/viewjs/components/productpicker.js', true) }}?v={{ $version }}"></script>
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@php require_frontend_packages(['bootstrap-combobox']); @endphp
|
||||
|
||||
@once
|
||||
@push('componentScripts')
|
||||
<script src="{{ $U('/viewjs/components/recipepicker.js', true) }}?v={{ $version }}"></script>
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@php require_frontend_packages(['bootstrap-combobox']); @endphp
|
||||
|
||||
@once
|
||||
@push('componentScripts')
|
||||
<script src="{{ $U('/viewjs/components/shoppinglocationpicker.js', true) }}?v={{ $version }}"></script>
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@php require_frontend_packages(['bootstrap-select']); @endphp
|
||||
|
||||
@once
|
||||
@push('componentScripts')
|
||||
<script src="{{ $U('/viewjs/components/userfieldsform.js', true) }}?v={{ $version }}"></script>
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@php require_frontend_packages(['bootstrap-combobox']); @endphp
|
||||
|
||||
@once
|
||||
@push('componentScripts')
|
||||
<script src="{{ $U('/viewjs/components/userpicker.js', true) }}?v={{ $version }}"></script>
|
||||
|
Reference in New Issue
Block a user