stream calendar

This commit is contained in:
Benjamin Takats
2022-12-19 13:40:31 +01:00
parent 0b72899058
commit bd7ac36190
9 changed files with 280 additions and 4 deletions

View File

@@ -3,13 +3,25 @@
<x-button
amber
wire:click="meetupEventSearch({{ $row->id }})">
<i class="fa fa-thin fa-calendar mr-2"></i>
{{ __('Show dates') }} ({{ $row->meetup_events_count }})
</x-button>
<x-button
x-data="{
textToCopy: '{{ route('meetup.ics', ['country' => $country, 'meetup' => $row->id]) }}',
}"
@click.prevent="window.navigator.clipboard.writeText(textToCopy);window.$wireui.notify({title:'Kalendar URL kopiert!',description:'Füge den Kalender Stream-Link in eine kompatible Kalender-App ein.',icon:'success'});"
amber>
<i class="fa fa-thin fa-calendar-arrow-down mr-2"></i>
{{ __('Stream Calendar (WIP)') }} ({{ $row->meetup_events_count }})
</x-button>
@endif
@if($row->meetup_events_count < 1)
<x-button
outlined
wire:click="meetupEventSearch({{ $row->id }})">
<i class="fa fa-thin fa-calendar-circle-exclamation mr-2"></i>
{{ __('Show dates') }} ({{ $row->meetup_events_count }})
</x-button>
@endif

View File

@@ -23,8 +23,8 @@
<div class="flex justify-end w-full">
<div
x-data="{
textToCopy: 'lightning:{{ $this->lnurl }}',
}"
textToCopy: 'lightning:{{ $this->lnurl }}',
}"
@click.prevent="window.navigator.clipboard.writeText(textToCopy);window.$wireui.notify({title:'URL kopiert!',icon:'success'});"
>
<x-button

View File

@@ -4,6 +4,19 @@
{{-- MAIN --}}
<section class="w-full mb-12">
<div class="max-w-screen-2xl mx-auto px-2 sm:px-10 space-y-4" id="table">
<div class="w-full flex justify-end">
<x-button
x-data="{
textToCopy: '{{ route('bitcoinEvent.ics', ['country' => $country]) }}',
}"
@click.prevent="window.navigator.clipboard.writeText(textToCopy);window.$wireui.notify({title:'Kalendar URL kopiert!',description:'Füge den Kalender Stream-Link in eine kompatible Kalender-App ein.',icon:'success'});"
amber>
<i class="fa fa-thin fa-calendar-arrow-down mr-2"></i>
{{ __('Stream Calendar (WIP)') }} ({{ $events->count() }})
</x-button>
</div>
<div class="flex items-start">
<div class="w-full sm:w-1/2">
@@ -123,6 +136,18 @@
</div>
</div>
<div class="w-full flex justify-end">
<x-button
x-data="{
textToCopy: '{{ route('bitcoinEvent.ics', ['country' => $country]) }}',
}"
@click.prevent="window.navigator.clipboard.writeText(textToCopy);window.$wireui.notify({title:'Kalendar URL kopiert!',description:'Füge den Kalender Stream-Link in eine kompatible Kalender-App ein.',icon:'success'});"
amber>
<i class="fa fa-thin fa-calendar-arrow-down mr-2"></i>
{{ __('Stream Calendar (WIP)') }} ({{ $events->count() }})
</x-button>
</div>
<livewire:tables.bitcoin-event-table :country="$country->code"/>
</div>
</section>