mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
KEY FIX
This commit is contained in:
@@ -39,7 +39,15 @@ class SyncGithubMeetups extends Command
|
||||
'github_data' => $meetup,
|
||||
]);
|
||||
} else {
|
||||
$this->info('Missing: '.$meetup['name'] . ' Url: ' . $meetup['url']);
|
||||
$this->info('Missing: '.$meetup['name'].' Url: '.$meetup['url']);
|
||||
if (app()->environment('local')) {
|
||||
Meetup::create([
|
||||
'name' => $meetup['name'],
|
||||
'city_id' => 1,
|
||||
'created_by' => 1,
|
||||
'github_data' => $meetup,
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div wire:key="bitcoin_events_action_{{ $row->id }}">
|
||||
<div>
|
||||
<a href="{{ $row->link }}" target="_blank">
|
||||
<x-badge class="whitespace-nowrap">{{ __('Link') }}</x-badge>
|
||||
</a>
|
||||
|
||||
@@ -1,11 +1,15 @@
|
||||
<div class="flex flex-col space-y-1" wire:key="bookcase_action_{{ $row->id }}">
|
||||
@auth
|
||||
@if($row->orange_pills_count > 0)
|
||||
<img class="aspect-auto max-h-12" src="{{ asset('img/social_credit_plus.webp') }}" alt="">
|
||||
@endif
|
||||
@if($row->orange_pills_count < 1)
|
||||
<img class="aspect-auto max-h-12" src="{{ asset('img/social_credit_minus.webp') }}" alt="">
|
||||
@endif
|
||||
<div>
|
||||
@if($row->orange_pills_count > 0)
|
||||
<img class="aspect-auto max-h-12" src="{{ asset('img/social_credit_plus.webp') }}" alt="">
|
||||
@endif
|
||||
</div>
|
||||
<div>
|
||||
@if($row->orange_pills_count < 1)
|
||||
<img class="aspect-auto max-h-12" src="{{ asset('img/social_credit_minus.webp') }}" alt="">
|
||||
@endif
|
||||
</div>
|
||||
<div class="flex items-center space-x-1">
|
||||
<x-button class="whitespace-nowrap" primary class="text-21gray whitespace-nowrap"
|
||||
wire:click="viewHistoryModal({{ $row->id }})">{{ __('💊 Orange Pill Now') }}</x-button>
|
||||
|
||||
@@ -1,26 +1,32 @@
|
||||
<div class="flex flex-col space-y-1" wire:key="cities_action_{{ $row->id }}">
|
||||
<div class="flex flex-col space-y-1">
|
||||
@if($type === 'school')
|
||||
<div>
|
||||
@if($row->course_events_count > 0)
|
||||
<x-button amber wire:click="proximitySearch({{ $row->id }})" class="text-21gray">
|
||||
<i class="fa fa-thin fa-person-chalkboard mr-2"></i>
|
||||
{{ __('Perimeter search course date :name (100km)', ['name' => $row->name]) }}
|
||||
</x-button>
|
||||
@endif
|
||||
@if($row->course_events_count < 1)
|
||||
<x-button outlined wire:click="proximitySearch({{ $row->id }})" class="text-21gray">
|
||||
<i class="fa fa-thin fa-person-chalkboard mr-2"></i>
|
||||
{{ __('Perimeter search course date :name (100km)', ['name' => $row->name]) }}
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
@if($type === 'bookCase')
|
||||
<div>
|
||||
<x-button amber wire:click="proximitySearchForBookCases({{ $row->id }})" class="text-21gray">
|
||||
<i class="fa fa-thin fa-book mr-2"></i>
|
||||
{{ __('Perimeter search bookcase :name (25km)', ['name' => $row->name]) }}
|
||||
</x-button>
|
||||
<div>
|
||||
@if($row->course_events_count > 0)
|
||||
<x-button amber wire:click="proximitySearch({{ $row->id }})" class="text-21gray">
|
||||
<i class="fa fa-thin fa-person-chalkboard mr-2"></i>
|
||||
{{ __('Perimeter search course date :name (100km)', ['name' => $row->name]) }}
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
<div>
|
||||
@if($row->course_events_count < 1)
|
||||
<x-button outlined wire:click="proximitySearch({{ $row->id }})" class="text-21gray">
|
||||
<i class="fa fa-thin fa-person-chalkboard mr-2"></i>
|
||||
{{ __('Perimeter search course date :name (100km)', ['name' => $row->name]) }}
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
<div>
|
||||
@if($type === 'bookCase')
|
||||
<div>
|
||||
<x-button amber wire:click="proximitySearchForBookCases({{ $row->id }})" class="text-21gray">
|
||||
<i class="fa fa-thin fa-book mr-2"></i>
|
||||
{{ __('Perimeter search bookcase :name (25km)', ['name' => $row->name]) }}
|
||||
</x-button>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div wire:key="courses_action_{{ $row->id }}">
|
||||
<div>
|
||||
<x-button amber wire:click="courseSearch({{ $row->id }})">
|
||||
{{ __('Show dates') }}
|
||||
</x-button>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<div wire:key="course_events_action_{{ $row->id }}">
|
||||
<div>
|
||||
<x-button class="whitespace-nowrap" amber wire:click="viewHistoryModal({{ $row->id }})">{{ __('Register') }}</x-button>
|
||||
</div>
|
||||
|
||||
@@ -1,32 +1,42 @@
|
||||
<div wire:key="lecturers_action_{{ $row->id }}">
|
||||
@if($row->courses_count > 0)
|
||||
<x-button amber wire:click="lecturerSearch({{ $row->id }})">
|
||||
<i class="fa fa-thin fa-calendar mr-2"></i>
|
||||
{{ __('Show dates') }} ({{ $row->courses_count }})
|
||||
<div>
|
||||
<div>
|
||||
@if($row->courses_count > 0)
|
||||
<x-button amber wire:click="lecturerSearch({{ $row->id }})">
|
||||
<i class="fa fa-thin fa-calendar mr-2"></i>
|
||||
{{ __('Show dates') }} ({{ $row->courses_count }})
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
<div>
|
||||
@if($row->courses_count < 1)
|
||||
<x-button outlined wire:click="lecturerSearch({{ $row->id }})">
|
||||
<i class="fa fa-thin fa-calendar mr-2"></i>
|
||||
{{ __('Show dates') }} ({{ $row->courses_count }})
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
<div>
|
||||
@if($row->library_items_count > 0)
|
||||
<x-button amber wire:click="lecturerSearch({{ $row->id }}, false)">
|
||||
<i class="fa fa-thin fa-book mr-2"></i>
|
||||
{{ __('Show content') }} ({{ $row->library_items_count }})
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
<div>
|
||||
@if($row->library_items_count < 1)
|
||||
<x-button outlined wire:click="lecturerSearch({{ $row->id }}, false)">
|
||||
<i class="fa fa-thin fa-book mr-2"></i>
|
||||
{{ __('Show content') }} ({{ $row->library_items_count }})
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
<div>
|
||||
<x-button
|
||||
:href="route('school.landingPage.lecturer', ['country' => $country, 'lecturer' => $row->slug])"
|
||||
amber>
|
||||
<i class="fa fa-thin fa-browser mr-2"></i>
|
||||
{{ __('Show landing page') }}
|
||||
</x-button>
|
||||
@endif
|
||||
@if($row->courses_count < 1)
|
||||
<x-button outlined wire:click="lecturerSearch({{ $row->id }})">
|
||||
<i class="fa fa-thin fa-calendar mr-2"></i>
|
||||
{{ __('Show dates') }} ({{ $row->courses_count }})
|
||||
</x-button>
|
||||
@endif
|
||||
@if($row->library_items_count > 0)
|
||||
<x-button amber wire:click="lecturerSearch({{ $row->id }}, false)">
|
||||
<i class="fa fa-thin fa-book mr-2"></i>
|
||||
{{ __('Show content') }} ({{ $row->library_items_count }})
|
||||
</x-button>
|
||||
@endif
|
||||
@if($row->library_items_count < 1)
|
||||
<x-button outlined wire:click="lecturerSearch({{ $row->id }}, false)">
|
||||
<i class="fa fa-thin fa-book mr-2"></i>
|
||||
{{ __('Show content') }} ({{ $row->library_items_count }})
|
||||
</x-button>
|
||||
@endif
|
||||
<x-button
|
||||
:href="route('school.landingPage.lecturer', ['country' => $country, 'lecturer' => $row->slug])"
|
||||
amber>
|
||||
<i class="fa fa-thin fa-browser mr-2"></i>
|
||||
{{ __('Show landing page') }}
|
||||
</x-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,39 +1,48 @@
|
||||
<div class="flex flex-col space-y-1" wire:key="library_items_action_{{ $row->id }}">
|
||||
@if(str($row->value)->contains('http'))
|
||||
<x-button xs amber :href="$row->value" target="_blank">
|
||||
<i class="fa fa-thin fa-book-open mr-2"></i>
|
||||
{{ __('Open') }}
|
||||
</x-button>
|
||||
@endif
|
||||
@if($row->type === 'downloadable_file')
|
||||
<x-button xs amber :href="$row->getFirstMediaUrl('single_file')" target="_blank">
|
||||
<i class="fa fa-thin fa-download mr-2"></i>
|
||||
{{ __('Download') }}
|
||||
</x-button>
|
||||
@endif
|
||||
@if($row->type === 'podcast_episode')
|
||||
<x-button xs amber :href="$row->episode->data['link']" target="_blank">
|
||||
<i class="fa fa-thin fa-headphones mr-2"></i>
|
||||
{{ __('Listen') }}
|
||||
</x-button>
|
||||
@endif
|
||||
@if($row->type === 'markdown_article')
|
||||
<x-button xs amber :href="route('article.view', [$row])">
|
||||
<i class="fa fa-thin fa-newspaper mr-2"></i>
|
||||
{{ __('Read') }}
|
||||
</x-button>
|
||||
@endif
|
||||
<div class="flex flex-col space-y-1">
|
||||
<div>
|
||||
@if(str($row->value)->contains('http'))
|
||||
<x-button xs amber :href="$row->value" target="_blank">
|
||||
<i class="fa fa-thin fa-book-open mr-2"></i>
|
||||
{{ __('Open') }}
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
<div>
|
||||
@if($row->type === 'downloadable_file')
|
||||
<x-button xs amber :href="$row->getFirstMediaUrl('single_file')" target="_blank">
|
||||
<i class="fa fa-thin fa-download mr-2"></i>
|
||||
{{ __('Download') }}
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
<div>
|
||||
@if($row->type === 'podcast_episode')
|
||||
<x-button xs amber :href="$row->episode->data['link']" target="_blank">
|
||||
<i class="fa fa-thin fa-headphones mr-2"></i>
|
||||
{{ __('Listen') }}
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
<div>
|
||||
@if($row->type === 'markdown_article')
|
||||
<x-button xs amber :href="route('article.view', [$row])">
|
||||
<i class="fa fa-thin fa-newspaper mr-2"></i>
|
||||
{{ __('Read') }}
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@if($row->type !== 'markdown_article')
|
||||
<x-button
|
||||
x-data="{
|
||||
<div>
|
||||
@if($row->type !== 'markdown_article')
|
||||
<x-button
|
||||
x-data="{
|
||||
textToCopy: '{{ url()->route('library.table.libraryItems', ['country' => 'de', 'table' => ['filters' => ['id' => $row->id]]]) }}',
|
||||
}"
|
||||
@click.prevent="window.navigator.clipboard.writeText(textToCopy);window.$wireui.notify({title:'{{ __('Share url copied!') }}',icon:'success'});"
|
||||
xs black>
|
||||
<i class="fa fa-thin fa-copy mr-2"></i>
|
||||
{{ __('Share link') }}
|
||||
</x-button>
|
||||
@click.prevent="window.navigator.clipboard.writeText(textToCopy);window.$wireui.notify({title:'{{ __('Share url copied!') }}',icon:'success'});"
|
||||
xs black>
|
||||
<i class="fa fa-thin fa-copy mr-2"></i>
|
||||
{{ __('Share link') }}
|
||||
</x-button>
|
||||
@else
|
||||
<x-button
|
||||
x-data="{
|
||||
@@ -44,5 +53,6 @@
|
||||
<i class="fa fa-thin fa-copy mr-2"></i>
|
||||
{{ __('Share link') }}
|
||||
</x-button>
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,43 +1,51 @@
|
||||
<div class="flex flex-col space-y-1" wire:key="meetup_events_action_{{ $row->id }}">
|
||||
<x-button
|
||||
black
|
||||
xs
|
||||
:href="route('meetup.landing', ['country' => $country, 'meetup' => $row->meetup->slug])"
|
||||
>
|
||||
<i class="fa fa-thin fa-browser mr-2"></i>
|
||||
{{ __('Show landing page') }}
|
||||
</x-button>
|
||||
@if($row->meetup->telegram_link)
|
||||
<div class="flex flex-col space-y-1">
|
||||
<div>
|
||||
<x-button
|
||||
xs
|
||||
black
|
||||
target="_blank"
|
||||
:href="$row->meetup->telegram_link"
|
||||
>
|
||||
<i class="fa fa-thin fa-external-link mr-2"></i>
|
||||
{{ __('Telegram-Link') }}
|
||||
</x-button>
|
||||
@endif
|
||||
@if($row->meetup->webpage)
|
||||
<x-button
|
||||
xs
|
||||
black
|
||||
target="_blank"
|
||||
:href="$row->meetup->webpage"
|
||||
:href="route('meetup.landing', ['country' => $country, 'meetup' => $row->meetup->slug])"
|
||||
>
|
||||
<i class="fa fa-thin fa-external-link mr-2"></i>
|
||||
{{ __('Website') }}
|
||||
<i class="fa fa-thin fa-browser mr-2"></i>
|
||||
{{ __('Show landing page') }}
|
||||
</x-button>
|
||||
@endif
|
||||
@if($row->meetup->twitter_username)
|
||||
<x-button
|
||||
xs
|
||||
black
|
||||
target="_blank"
|
||||
:href="$row->meetup->twitter_username"
|
||||
>
|
||||
<i class="fa fa-brand fa-twitter mr-2"></i>
|
||||
{{ __('Twitter') }}
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
<div>
|
||||
@if($row->meetup->telegram_link)
|
||||
<x-button
|
||||
xs
|
||||
black
|
||||
target="_blank"
|
||||
:href="$row->meetup->telegram_link"
|
||||
>
|
||||
<i class="fa fa-thin fa-external-link mr-2"></i>
|
||||
{{ __('Telegram-Link') }}
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
<div>
|
||||
@if($row->meetup->webpage)
|
||||
<x-button
|
||||
xs
|
||||
black
|
||||
target="_blank"
|
||||
:href="$row->meetup->webpage"
|
||||
>
|
||||
<i class="fa fa-thin fa-external-link mr-2"></i>
|
||||
{{ __('Website') }}
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
<div>
|
||||
@if($row->meetup->twitter_username)
|
||||
<x-button
|
||||
xs
|
||||
black
|
||||
target="_blank"
|
||||
:href="$row->meetup->twitter_username"
|
||||
>
|
||||
<i class="fa fa-brand fa-twitter mr-2"></i>
|
||||
{{ __('Twitter') }}
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,72 +1,86 @@
|
||||
<div class="flex flex-col space-y-1" wire:key="meetup_action_{{ $row->id }}">
|
||||
@if($row->meetup_events_count > 0)
|
||||
<div class="flex flex-col space-y-1">
|
||||
<div>
|
||||
@if($row->meetup_events_count > 0)
|
||||
<x-button
|
||||
xs
|
||||
amber
|
||||
wire:click="meetupEventSearch({{ $row->id }})">
|
||||
<i class="fa fa-thin fa-calendar mr-2"></i>
|
||||
{{ __('Show dates') }} ({{ $row->meetup_events_count }})
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
<div>
|
||||
@if($row->meetup_events_count < 1)
|
||||
<x-button
|
||||
xs
|
||||
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
|
||||
</div>
|
||||
<div>
|
||||
<x-button
|
||||
xs
|
||||
amber
|
||||
wire:click="meetupEventSearch({{ $row->id }})">
|
||||
<i class="fa fa-thin fa-calendar mr-2"></i>
|
||||
{{ __('Show dates') }} ({{ $row->meetup_events_count }})
|
||||
</x-button>
|
||||
@endif
|
||||
@if($row->meetup_events_count < 1)
|
||||
<x-button
|
||||
xs
|
||||
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
|
||||
<x-button
|
||||
xs
|
||||
black
|
||||
x-data="{
|
||||
black
|
||||
x-data="{
|
||||
textToCopy: '{{ route('meetup.ics', ['country' => $country ?? $row->city->country->code, 'meetup' => $row->id]) }}',
|
||||
}"
|
||||
@click.prevent="window.navigator.clipboard.writeText(textToCopy);window.$wireui.notify({title:'{{ __('Calendar Stream Url copied!') }}',description:'{{ __('Paste the calendar stream link into a compatible calendar app.') }}',icon:'success'});"
|
||||
>
|
||||
<i class="fa fa-thin fa-calendar-arrow-down mr-2"></i>
|
||||
{{ __('Calendar Stream-Url') }} ({{ $row->meetup_events_count }})
|
||||
</x-button>
|
||||
<x-button
|
||||
black
|
||||
xs
|
||||
:href="route('meetup.landing', ['country' => $country ?? $row->city->country->code, 'meetup' => $row->slug])"
|
||||
>
|
||||
<i class="fa fa-thin fa-browser mr-2"></i>
|
||||
{{ __('Show landing page') }}
|
||||
</x-button>
|
||||
@if($row->telegram_link)
|
||||
<x-button
|
||||
xs
|
||||
black
|
||||
target="_blank"
|
||||
:href="$row->telegram_link"
|
||||
@click.prevent="window.navigator.clipboard.writeText(textToCopy);window.$wireui.notify({title:'{{ __('Calendar Stream Url copied!') }}',description:'{{ __('Paste the calendar stream link into a compatible calendar app.') }}',icon:'success'});"
|
||||
>
|
||||
<i class="fa fa-thin fa-external-link mr-2"></i>
|
||||
{{ __('Telegram-Link') }}
|
||||
<i class="fa fa-thin fa-calendar-arrow-down mr-2"></i>
|
||||
{{ __('Calendar Stream-Url') }} ({{ $row->meetup_events_count }})
|
||||
</x-button>
|
||||
@endif
|
||||
@if($row->webpage)
|
||||
</div>
|
||||
<div>
|
||||
<x-button
|
||||
xs
|
||||
black
|
||||
target="_blank"
|
||||
:href="$row->webpage"
|
||||
>
|
||||
<i class="fa fa-thin fa-external-link mr-2"></i>
|
||||
{{ __('Website') }}
|
||||
</x-button>
|
||||
@endif
|
||||
@if($row->twitter_username)
|
||||
<x-button
|
||||
xs
|
||||
black
|
||||
target="_blank"
|
||||
:href="$row->twitter_username"
|
||||
:href="route('meetup.landing', ['country' => $country ?? $row->city->country->code, 'meetup' => $row->slug])"
|
||||
>
|
||||
<i class="fa fa-brand fa-twitter mr-2"></i>
|
||||
{{ __('Twitter') }}
|
||||
<i class="fa fa-thin fa-browser mr-2"></i>
|
||||
{{ __('Show landing page') }}
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
<div>
|
||||
@if($row->telegram_link)
|
||||
<x-button
|
||||
xs
|
||||
black
|
||||
target="_blank"
|
||||
:href="$row->telegram_link"
|
||||
>
|
||||
<i class="fa fa-thin fa-external-link mr-2"></i>
|
||||
{{ __('Telegram-Link') }}
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
<div>
|
||||
@if($row->webpage)
|
||||
<x-button
|
||||
xs
|
||||
black
|
||||
target="_blank"
|
||||
:href="$row->webpage"
|
||||
>
|
||||
<i class="fa fa-thin fa-external-link mr-2"></i>
|
||||
{{ __('Website') }}
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
<div>
|
||||
@if($row->twitter_username)
|
||||
<x-button
|
||||
xs
|
||||
black
|
||||
target="_blank"
|
||||
:href="$row->twitter_username"
|
||||
>
|
||||
<i class="fa fa-brand fa-twitter mr-2"></i>
|
||||
{{ __('Twitter') }}
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,12 +1,16 @@
|
||||
<div wire:key="venues_action_{{ $row->id }}">
|
||||
@if($row->course_events_count > 0)
|
||||
<x-button amber wire:click="venueSearch({{ $row->id }})">
|
||||
{{ __('Show dates') }} ({{ $row->course_events_count }})
|
||||
</x-button>
|
||||
@endif
|
||||
@if($row->course_events_count < 1)
|
||||
<x-button outlined wire:click="venueSearch({{ $row->id }})">
|
||||
{{ __('Show dates') }} ({{ $row->course_events_count }})
|
||||
</x-button>
|
||||
@endif
|
||||
<div>
|
||||
<div>
|
||||
@if($row->course_events_count > 0)
|
||||
<x-button amber wire:click="venueSearch({{ $row->id }})">
|
||||
{{ __('Show dates') }} ({{ $row->course_events_count }})
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
<div>
|
||||
@if($row->course_events_count < 1)
|
||||
<x-button outlined wire:click="venueSearch({{ $row->id }})">
|
||||
{{ __('Show dates') }} ({{ $row->course_events_count }})
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user