mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
image processor added
This commit is contained in:
@@ -53,32 +53,35 @@ Route::middleware([])
|
||||
Route::get('btc-map-communities', function () {
|
||||
return response()->json(\App\Models\Meetup::query()
|
||||
->with([
|
||||
'media',
|
||||
'city.country',
|
||||
])
|
||||
->where('community', '=', 'einundzwanzig')
|
||||
->whereHas('city',
|
||||
fn($query) => $query
|
||||
->whereNotNull('cities.simplified_geojson')
|
||||
->whereNotNull('cities.population')
|
||||
->whereNotNull('cities.population_date')
|
||||
)
|
||||
->when(app()->environment('production'),
|
||||
fn($query) => $query->whereHas('city',
|
||||
fn($query) => $query
|
||||
->whereNotNull('cities.simplified_geojson')
|
||||
->whereNotNull('cities.population')
|
||||
->whereNotNull('cities.population_date')
|
||||
))
|
||||
->get()
|
||||
->map(fn($meetup) => [
|
||||
'id' => $meetup->slug,
|
||||
'tags' => [
|
||||
'type' => 'community',
|
||||
'name' => $meetup->name,
|
||||
'continent' => 'europe',
|
||||
'icon:square' => $meetup->getFirstMediaUrl('logo'),
|
||||
'contact:email' => null,
|
||||
'contact:twitter' => 'https://twitter.com/'.$meetup->twitter_username,
|
||||
'contact:website' => $meetup->webpage,
|
||||
'tips:lightning_address' => null,
|
||||
'organization' => 'einundzwanzig',
|
||||
'language' => $meetup->city->country->language_codes[0],
|
||||
'geo_json' => $meetup->city->simplified_geojson,
|
||||
'population' => $meetup->city->population,
|
||||
'population:date' => $meetup->city->population_date,
|
||||
'type' => 'community',
|
||||
'name' => $meetup->name,
|
||||
'continent' => 'europe',
|
||||
'icon:square' => $meetup->logoSquare,
|
||||
//'contact:email' => null,
|
||||
'contact:twitter' => 'https://twitter.com/'.$meetup->twitter_username,
|
||||
'contact:website' => $meetup->webpage,
|
||||
'contact:nostr' => $meetup->nostr,
|
||||
//'tips:lightning_address' => null,
|
||||
'organization' => 'einundzwanzig',
|
||||
'language' => $meetup->city->country->language_codes[0] ?? 'de',
|
||||
'geo_json' => $meetup->city->simplified_geojson,
|
||||
'population' => $meetup->city->population,
|
||||
'population:date' => $meetup->city->population_date,
|
||||
],
|
||||
])
|
||||
->toArray(), 200,
|
||||
|
||||
@@ -8,6 +8,9 @@ Route::middleware([])
|
||||
->get('/', \App\Http\Livewire\Frontend\Welcome::class)
|
||||
->name('welcome');
|
||||
|
||||
Route::get('/img/{path}', \App\Http\Controllers\ImageController::class)
|
||||
->where('path', '.*')->name('img');
|
||||
|
||||
Route::get('auth/auth47', \App\Http\Livewire\Auth\Auth47Component::class)
|
||||
->name('auth.auth47');
|
||||
|
||||
@@ -146,7 +149,8 @@ Route::middleware([])
|
||||
->prefix('/{country:code}/library')
|
||||
->group(function () {
|
||||
Route::get('/library-item/form/{libraryItem?}', \App\Http\Livewire\Library\Form\LibraryItemForm::class)
|
||||
->name('libraryItem.form')->middleware(['auth']);
|
||||
->name('libraryItem.form')
|
||||
->middleware(['auth']);
|
||||
|
||||
Route::get('/library-item', \App\Http\Livewire\Library\LibraryTable::class)
|
||||
->name('table.libraryItems');
|
||||
|
||||
Reference in New Issue
Block a user