From df2dcfc500b3e72c75b2bba06167761c0b212276 Mon Sep 17 00:00:00 2001 From: Spitfire Date: Mon, 1 Jul 2024 14:09:13 -0600 Subject: [PATCH 1/4] Updated leaflet --- config/app.php | 8 ++++++++ resources/views/home.blade.php | 4 ++-- resources/views/layouts/map.blade.php | 4 ++-- resources/views/maps/form/_markers.blade.php | 4 ++-- resources/views/maps/markers/create.blade.php | 4 ++-- resources/views/maps/markers/edit.blade.php | 2 +- 6 files changed, 17 insertions(+), 9 deletions(-) diff --git a/config/app.php b/config/app.php index 955850b13a..8571fab125 100644 --- a/config/app.php +++ b/config/app.php @@ -166,6 +166,14 @@ */ 'default_country' => env('DEFAULT_COUNTRY', 'CH'), + /** + * Leaflet version. + */ + + 'leaflet_source' => env('LEAFLET_SOURCE', '1.9.4'), + 'leaflet_css' => env('LEAFLET_CSS', 'sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY='), + 'leaflet_js' => env('LEAFLET_JS', 'sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo='), + /* |-------------------------------------------------------------------------- | Autoloaded Service Providers diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index a3ed61087b..67691281f2 100644 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -87,7 +87,7 @@ @vite('resources/js/dashboard.js') @if ($hasMap) - + @endif @@ -95,7 +95,7 @@ @section('styles') @if ($hasMap) - + @endif @vite([ diff --git a/resources/views/layouts/map.blade.php b/resources/views/layouts/map.blade.php index fc2e8ad21c..0bef0bf660 100644 --- a/resources/views/layouts/map.blade.php +++ b/resources/views/layouts/map.blade.php @@ -37,7 +37,7 @@ 'resources/sass/map-v3.scss', ]) @if (!config('fontawesome.kit'))@endif - + @if (!empty($themeOverride) && in_array($themeOverride, ['dark', 'midnight', 'base'])) @php $specificTheme = $themeOverride; @endphp @if($themeOverride != 'base') @@ -152,7 +152,7 @@ @endif - + diff --git a/resources/views/maps/form/_markers.blade.php b/resources/views/maps/form/_markers.blade.php index f70fbe4dd7..5ce3f7a29d 100644 --- a/resources/views/maps/form/_markers.blade.php +++ b/resources/views/maps/form/_markers.blade.php @@ -25,7 +25,7 @@ @section('scripts') @parent - + @@ -91,7 +91,7 @@ @section('styles') @parent - + @vite('resources/sass/map-v3.scss')