remove bootstrap, popper, perfect-scrollbar, and smooth-scrollbar from javascript block and added to importmap

This commit is contained in:
Ryan Prather 2024-12-25 17:19:52 +00:00
parent ff50c96b74
commit 5b0ededa27
2 changed files with 40 additions and 6 deletions

View File

@ -32,4 +32,42 @@ return [
'@symfony/ux-leaflet-map' => [
'path' => './vendor/symfony/ux-leaflet-map/assets/dist/map_controller.js',
],
'bootstrap' => [
'version' => '5.3.3',
],
'@popperjs/core' => [
'version' => '2.11.8',
],
'bootstrap/dist/css/bootstrap.min.css' => [
'version' => '5.3.3',
'type' => 'css',
],
'perfect-scrollbar' => [
'version' => '1.5.6',
],
'perfect-scrollbar/css/perfect-scrollbar.min.css' => [
'version' => '1.5.6',
'type' => 'css',
],
'smooth-scrollbar' => [
'version' => '8.8.4',
],
'tslib' => [
'version' => '1.14.1',
],
'core-js/es/map' => [
'version' => '3.33.2',
],
'core-js/es/set' => [
'version' => '3.33.2',
],
'core-js/es/weak-map' => [
'version' => '3.33.2',
],
'core-js/es/array/from' => [
'version' => '3.33.2',
],
'core-js/es/object/assign' => [
'version' => '3.33.2',
],
];

View File

@ -11,8 +11,8 @@
</title>
<!-- Simple CSS
<link
rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css">-->
<link
rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css">-->
<!-- Fonts and icons -->
<link
@ -35,10 +35,6 @@
{% block javascripts %}
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js" integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script>
<script src="{{ asset('js/core/popper.min.js') }}"></script>
<script src="{{ asset('js/core/bootstrap.min.js') }}"></script>
<script src="{{ asset('js/plugins/perfect-scrollbar.min.js') }}"></script>
<script src="{{ asset('js/plugins/smooth-scrollbar.min.js') }}"></script>
<script>
var win = navigator.platform.indexOf('Win') > -1;
if (win && document.querySelector('#sidenav-scrollbar')) {