mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
heatmap added
This commit is contained in:
@@ -718,5 +718,11 @@
|
||||
"Recurring appointment": "Wiederkehrender Termin",
|
||||
"The recurring appointments are created in the database as new entries. Please be careful with this function, otherwise you will have to change or delete all the appointments you have created manually if you make an error.": "Die Termine werden in der Datenbank als neue Einträge angelegt. Bitte sei vorsichtig mit dieser Funktion, sonst musst du alle Termine, ändern oder löschen, wenn du einen Fehler machst.",
|
||||
"Number of repetitions": "Anzahl der Wiederholungen",
|
||||
"Recurring appointments": "Wiederkehrende Termine"
|
||||
"Recurring appointments": "Wiederkehrende Termine",
|
||||
"Delete event": "Lösche Termin",
|
||||
"Are you sure you want to delete this event? This action cannot be undone.": "Bitte bestätige, dass du diesen Termin löschen möchtest. Diese Aktion kann nicht rückgängig gemacht werden.",
|
||||
"Yes, delete": "Ja, löschen",
|
||||
"No, cancel": "Nein, abbrechen",
|
||||
"Orange Pill Heatmap": "",
|
||||
"Heatmap": ""
|
||||
}
|
||||
|
||||
@@ -713,5 +713,11 @@
|
||||
"Recurring appointment": "",
|
||||
"The recurring appointments are created in the database as new entries. Please be careful with this function, otherwise you will have to change or delete all the appointments you have created manually if you make an error.": "",
|
||||
"Number of repetitions": "",
|
||||
"Recurring appointments": ""
|
||||
"Recurring appointments": "",
|
||||
"Delete event": "",
|
||||
"Are you sure you want to delete this event? This action cannot be undone.": "",
|
||||
"Yes, delete": "",
|
||||
"No, cancel": "",
|
||||
"Orange Pill Heatmap": "",
|
||||
"Heatmap": ""
|
||||
}
|
||||
@@ -713,5 +713,11 @@
|
||||
"Recurring appointment": "",
|
||||
"The recurring appointments are created in the database as new entries. Please be careful with this function, otherwise you will have to change or delete all the appointments you have created manually if you make an error.": "",
|
||||
"Number of repetitions": "",
|
||||
"Recurring appointments": ""
|
||||
"Recurring appointments": "",
|
||||
"Delete event": "",
|
||||
"Are you sure you want to delete this event? This action cannot be undone.": "",
|
||||
"Yes, delete": "",
|
||||
"No, cancel": "",
|
||||
"Orange Pill Heatmap": "",
|
||||
"Heatmap": ""
|
||||
}
|
||||
@@ -714,5 +714,11 @@
|
||||
"Recurring appointment": "",
|
||||
"The recurring appointments are created in the database as new entries. Please be careful with this function, otherwise you will have to change or delete all the appointments you have created manually if you make an error.": "",
|
||||
"Number of repetitions": "",
|
||||
"Recurring appointments": ""
|
||||
"Recurring appointments": "",
|
||||
"Delete event": "",
|
||||
"Are you sure you want to delete this event? This action cannot be undone.": "",
|
||||
"Yes, delete": "",
|
||||
"No, cancel": "",
|
||||
"Orange Pill Heatmap": "",
|
||||
"Heatmap": ""
|
||||
}
|
||||
@@ -714,5 +714,11 @@
|
||||
"Recurring appointment": "",
|
||||
"The recurring appointments are created in the database as new entries. Please be careful with this function, otherwise you will have to change or delete all the appointments you have created manually if you make an error.": "",
|
||||
"Number of repetitions": "",
|
||||
"Recurring appointments": ""
|
||||
"Recurring appointments": "",
|
||||
"Delete event": "",
|
||||
"Are you sure you want to delete this event? This action cannot be undone.": "",
|
||||
"Yes, delete": "",
|
||||
"No, cancel": "",
|
||||
"Orange Pill Heatmap": "",
|
||||
"Heatmap": ""
|
||||
}
|
||||
@@ -714,5 +714,11 @@
|
||||
"Recurring appointment": "",
|
||||
"The recurring appointments are created in the database as new entries. Please be careful with this function, otherwise you will have to change or delete all the appointments you have created manually if you make an error.": "",
|
||||
"Number of repetitions": "",
|
||||
"Recurring appointments": ""
|
||||
"Recurring appointments": "",
|
||||
"Delete event": "",
|
||||
"Are you sure you want to delete this event? This action cannot be undone.": "",
|
||||
"Yes, delete": "",
|
||||
"No, cancel": "",
|
||||
"Orange Pill Heatmap": "",
|
||||
"Heatmap": ""
|
||||
}
|
||||
@@ -714,5 +714,11 @@
|
||||
"Recurring appointment": "",
|
||||
"The recurring appointments are created in the database as new entries. Please be careful with this function, otherwise you will have to change or delete all the appointments you have created manually if you make an error.": "",
|
||||
"Number of repetitions": "",
|
||||
"Recurring appointments": ""
|
||||
"Recurring appointments": "",
|
||||
"Delete event": "",
|
||||
"Are you sure you want to delete this event? This action cannot be undone.": "",
|
||||
"Yes, delete": "",
|
||||
"No, cancel": "",
|
||||
"Orange Pill Heatmap": "",
|
||||
"Heatmap": ""
|
||||
}
|
||||
@@ -714,5 +714,11 @@
|
||||
"Recurring appointment": "",
|
||||
"The recurring appointments are created in the database as new entries. Please be careful with this function, otherwise you will have to change or delete all the appointments you have created manually if you make an error.": "",
|
||||
"Number of repetitions": "",
|
||||
"Recurring appointments": ""
|
||||
"Recurring appointments": "",
|
||||
"Delete event": "",
|
||||
"Are you sure you want to delete this event? This action cannot be undone.": "",
|
||||
"Yes, delete": "",
|
||||
"No, cancel": "",
|
||||
"Orange Pill Heatmap": "",
|
||||
"Heatmap": ""
|
||||
}
|
||||
@@ -714,5 +714,11 @@
|
||||
"Recurring appointment": "",
|
||||
"The recurring appointments are created in the database as new entries. Please be careful with this function, otherwise you will have to change or delete all the appointments you have created manually if you make an error.": "",
|
||||
"Number of repetitions": "",
|
||||
"Recurring appointments": ""
|
||||
"Recurring appointments": "",
|
||||
"Delete event": "",
|
||||
"Are you sure you want to delete this event? This action cannot be undone.": "",
|
||||
"Yes, delete": "",
|
||||
"No, cancel": "",
|
||||
"Orange Pill Heatmap": "",
|
||||
"Heatmap": ""
|
||||
}
|
||||
@@ -688,5 +688,11 @@
|
||||
"Recurring appointment": "",
|
||||
"The recurring appointments are created in the database as new entries. Please be careful with this function, otherwise you will have to change or delete all the appointments you have created manually if you make an error.": "",
|
||||
"Number of repetitions": "",
|
||||
"Recurring appointments": ""
|
||||
"Recurring appointments": "",
|
||||
"Delete event": "",
|
||||
"Are you sure you want to delete this event? This action cannot be undone.": "",
|
||||
"Yes, delete": "",
|
||||
"No, cancel": "",
|
||||
"Orange Pill Heatmap": "",
|
||||
"Heatmap": ""
|
||||
}
|
||||
@@ -31,6 +31,8 @@
|
||||
<script src="https://kit.fontawesome.com/03bc14bd1e.js" crossorigin="anonymous"></script>
|
||||
@mapstyles
|
||||
@mapscripts
|
||||
<script src="{{ asset('dist/leaflet-heat.js') }}"></script>
|
||||
<script src="{{ asset('dist/leaflet-providers.js') }}"></script>
|
||||
@wireUiScripts
|
||||
<x-comments::scripts/>
|
||||
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
||||
|
||||
@@ -30,6 +30,8 @@
|
||||
<script src="{{ asset('dist/smoothscroll.js') }}"></script>
|
||||
<script src="https://kit.fontawesome.com/03bc14bd1e.js" crossorigin="anonymous"></script>
|
||||
@mapscripts
|
||||
<script src="{{ asset('dist/leaflet-heat.js') }}"></script>
|
||||
<script src="{{ asset('dist/leaflet-providers.js') }}"></script>
|
||||
<wireui:scripts/>
|
||||
<x-comments::scripts/>
|
||||
<x-embed-styles />
|
||||
|
||||
@@ -181,19 +181,19 @@
|
||||
|
||||
<div class="rounded" wire:ignore>
|
||||
@map([
|
||||
'lat' => $bookCase->latitude,
|
||||
'lng' => $bookCase->longitude,
|
||||
'zoom' => 24,
|
||||
'markers' => [
|
||||
[
|
||||
'title' => $bookCase->title,
|
||||
'lat' => $bookCase->latitude,
|
||||
'lng' => $bookCase->longitude,
|
||||
'url' => 'https://gonoware.com',
|
||||
'icon' => asset('img/btc-logo-6219386_1280.png'),
|
||||
'icon_size' => [42, 42],
|
||||
],
|
||||
],
|
||||
'lat' => $bookCase->latitude,
|
||||
'lng' => $bookCase->longitude,
|
||||
'zoom' => 24,
|
||||
'markers' => [
|
||||
[
|
||||
'title' => $bookCase->title,
|
||||
'lat' => $bookCase->latitude,
|
||||
'lng' => $bookCase->longitude,
|
||||
'url' => 'https://gonoware.com',
|
||||
'icon' => asset('img/btc-logo-6219386_1280.png'),
|
||||
'icon_size' => [42, 42],
|
||||
],
|
||||
],
|
||||
])
|
||||
</div>
|
||||
|
||||
|
||||
34
resources/views/livewire/book-case/heatmap.blade.php
Normal file
34
resources/views/livewire/book-case/heatmap.blade.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<div class="bg-21gray flex flex-col h-screen justify-between">
|
||||
<livewire:frontend.header :country="$country"/>
|
||||
{{-- MAIN --}}
|
||||
<section class="w-full mb-12">
|
||||
<div class="max-w-screen-2xl mx-auto px-2 sm:px-10">
|
||||
|
||||
<h1 class="font-bold dark:text-white">
|
||||
{{ __('Orange Pill Heatmap') }}
|
||||
</h1>
|
||||
|
||||
<div
|
||||
x-data="{
|
||||
data: @js($heatmap_data),
|
||||
init() {
|
||||
|
||||
const map = L.map($refs.map).setView([50.5, 30.5], 8);
|
||||
|
||||
L.tileLayer.provider('Stamen.Toner').addTo(map);
|
||||
|
||||
var heat = L.heatLayer(this.data, {
|
||||
blur: 5,
|
||||
minOpacity: 0.2,
|
||||
radius: 25,
|
||||
gradient: {0.4: '#FABE75', 0.65: '#F9A949', 1: '#F7931A'}
|
||||
}).addTo(map);
|
||||
}
|
||||
}"
|
||||
>
|
||||
<div x-ref="map" style="height: 70vh;"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
@@ -82,6 +82,10 @@
|
||||
class="{{ request()->routeIs('bookCases.table.bookcases') ? 'text-amber-500 underline' : 'text-gray-400' }} mr-5 font-medium leading-6 hover:text-gray-300">
|
||||
{{ __('Bookcases') }}
|
||||
</a>
|
||||
<a href="{{ route('bookCases.heatmap', ['country' => $c]) }}"
|
||||
class="{{ request()->routeIs('bookCases.heatmap') ? 'text-amber-500 underline' : 'text-gray-400' }} mr-5 font-medium leading-6 hover:text-gray-300">
|
||||
{{ __('Heatmap') }}
|
||||
</a>
|
||||
<a href="https://openbookcase.de/" target="_blank"
|
||||
class="text-gray-400 mr-5 font-medium leading-6 hover:text-gray-300">
|
||||
{{ __('Submit new book case') }}
|
||||
|
||||
Reference in New Issue
Block a user