update to livewire 3

This commit is contained in:
HolgerHatGarKeineNode
2023-11-20 18:20:40 +01:00
parent a392e6fee0
commit adc9d625d9
577 changed files with 585 additions and 7703 deletions

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Http\Livewire\Bindle;
namespace App\Livewire\Bindle;
use App\Models\LibraryItem;
use Illuminate\Database\Eloquent\Collection;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Http\Livewire\BooksForPlebs;
namespace App\Livewire\BooksForPlebs;
use Livewire\Component;
use RalphJSmit\Laravel\SEO\Support\SEOData;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Http\Livewire\Helper;
namespace App\Livewire\Helper;
use Livewire\Component;
use RalphJSmit\Laravel\SEO\Support\SEOData;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Http\Livewire;
namespace App\Livewire;
use Livewire\Component;
use WireUi\Traits\Actions;

View File

@@ -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');
}
}

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Http\Livewire\Meetup;
namespace App\Livewire\Meetup;
use Livewire\Component;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Http\Livewire\Nostr;
namespace App\Livewire\Nostr;
use Livewire\Component;

View File

@@ -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;

View File

@@ -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.

View File

@@ -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.