mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
update to livewire 3
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Livewire\Bindle;
|
||||
namespace App\Livewire\Bindle;
|
||||
|
||||
use App\Models\LibraryItem;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Livewire\BooksForPlebs;
|
||||
namespace App\Livewire\BooksForPlebs;
|
||||
|
||||
use Livewire\Component;
|
||||
use RalphJSmit\Laravel\SEO\Support\SEOData;
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Livewire\Helper;
|
||||
namespace App\Livewire\Helper;
|
||||
|
||||
use Livewire\Component;
|
||||
use RalphJSmit\Laravel\SEO\Support\SEOData;
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Livewire;
|
||||
namespace App\Livewire;
|
||||
|
||||
use Livewire\Component;
|
||||
use WireUi\Traits\Actions;
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Livewire\Meetup;
|
||||
namespace App\Livewire\Meetup;
|
||||
|
||||
use App\Models\Meetup;
|
||||
use Illuminate\Http\Client\Pool;
|
||||
@@ -156,7 +156,7 @@ class PrepareForBtcMapItem extends Component
|
||||
);
|
||||
|
||||
// emit event for AlpineJS
|
||||
$this->emit('geoJsonUpdated');
|
||||
$this->dispatch('geoJsonUpdated');
|
||||
} catch (\Exception $e) {
|
||||
$this->notification()
|
||||
->error('Error', $e->getMessage());
|
||||
@@ -213,7 +213,7 @@ class PrepareForBtcMapItem extends Component
|
||||
->get($getUrl);
|
||||
if ($response->json()) {
|
||||
$this->selectedItemPolygonsOSMfr = $response->json();
|
||||
$this->emit('geoJsonUpdated');
|
||||
$this->dispatch('geoJsonUpdated');
|
||||
} else {
|
||||
$this->notification()
|
||||
->warning('No data', 'No data found for this area.');
|
||||
@@ -260,14 +260,14 @@ class PrepareForBtcMapItem extends Component
|
||||
}
|
||||
|
||||
$this->selectedItemOSMBoundaries = $response->json();
|
||||
$this->emit('geoJsonUpdated');
|
||||
$this->dispatch('geoJsonUpdated');
|
||||
} else {
|
||||
$this->notification()
|
||||
->warning('Warning', 'No water boundaries found');
|
||||
}
|
||||
} else {
|
||||
$this->selectedItemOSMBoundaries = null;
|
||||
$this->emit('geoJsonUpdated');
|
||||
$this->dispatch('geoJsonUpdated');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Livewire\Meetup;
|
||||
namespace App\Livewire\Meetup;
|
||||
|
||||
use Livewire\Component;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Livewire\Nostr;
|
||||
namespace App\Livewire\Nostr;
|
||||
|
||||
use Livewire\Component;
|
||||
|
||||
@@ -7,7 +7,6 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
use Spatie\Comments\Models\Concerns\HasComments;
|
||||
use Spatie\Image\Manipulations;
|
||||
use Spatie\MediaLibrary\HasMedia;
|
||||
use Spatie\MediaLibrary\InteractsWithMedia;
|
||||
@@ -16,7 +15,6 @@ use Spatie\MediaLibrary\MediaCollections\Models\Media;
|
||||
class BookCase extends Model implements HasMedia
|
||||
{
|
||||
use HasFactory;
|
||||
use HasComments;
|
||||
use InteractsWithMedia;
|
||||
use Geoly;
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
||||
use Illuminate\Support\Facades\Cookie;
|
||||
use Spatie\Comments\Models\Concerns\HasComments;
|
||||
use Spatie\EloquentSortable\Sortable;
|
||||
use Spatie\EloquentSortable\SortableTrait;
|
||||
use Spatie\Feed\Feedable;
|
||||
@@ -27,7 +26,6 @@ class LibraryItem extends Model implements HasMedia, Sortable, Feedable
|
||||
use SortableTrait;
|
||||
use HasStatuses;
|
||||
use HasSlug;
|
||||
use HasComments;
|
||||
|
||||
/**
|
||||
* The attributes that aren't mass assignable.
|
||||
|
||||
@@ -5,12 +5,10 @@ namespace App\Models;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Spatie\Comments\Models\Concerns\HasComments;
|
||||
|
||||
class MeetupEvent extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use HasComments;
|
||||
|
||||
/**
|
||||
* The attributes that aren't mass assignable.
|
||||
|
||||
Reference in New Issue
Block a user