From 2b2f0ee3dc9697b29ff8650a513cdc6043707221 Mon Sep 17 00:00:00 2001 From: xGrz <33755434+xGrz@users.noreply.github.com> Date: Fri, 7 Jun 2024 15:54:39 +0200 Subject: [PATCH] Changed naming from TrackingEvent to TrackingState. --- resources/views/settings/index.blade.php | 2 +- .../tracking-state-edit.blade.php} | 0 .../tracking-state-listing.blade.php} | 0 .../views/settings/tracking-settings-index.blade.php | 2 +- routes/web.php | 2 +- src/DHLUIServiceProvider.php | 8 ++++---- .../TrackingStateEdit.php} | 8 ++++---- .../TrackingStateListing.php} | 6 +++--- 8 files changed, 14 insertions(+), 14 deletions(-) rename resources/views/settings/livewire/{tracking-events/tracking-event-edit.blade.php => tracking-states/tracking-state-edit.blade.php} (100%) rename resources/views/settings/livewire/{tracking-events/tracking-event-listing.blade.php => tracking-states/tracking-state-listing.blade.php} (100%) rename src/Livewire/Settings/{TrackingEvents/TrackingEventEdit.php => TrackingStates/TrackingStateEdit.php} (82%) rename src/Livewire/Settings/{TrackingEvents/TrackingEventListing.php => TrackingStates/TrackingStateListing.php} (66%) diff --git a/resources/views/settings/index.blade.php b/resources/views/settings/index.blade.php index 3897a1f..acfc853 100644 --- a/resources/views/settings/index.blade.php +++ b/resources/views/settings/index.blade.php @@ -17,7 +17,7 @@ class="flex gap-2 items-center p-4 bg-slate-800 hover:bg-slate-700 hover:text-sl TODO: Shipment diamentions defaults - Tracking status configuration diff --git a/resources/views/settings/livewire/tracking-events/tracking-event-edit.blade.php b/resources/views/settings/livewire/tracking-states/tracking-state-edit.blade.php similarity index 100% rename from resources/views/settings/livewire/tracking-events/tracking-event-edit.blade.php rename to resources/views/settings/livewire/tracking-states/tracking-state-edit.blade.php diff --git a/resources/views/settings/livewire/tracking-events/tracking-event-listing.blade.php b/resources/views/settings/livewire/tracking-states/tracking-state-listing.blade.php similarity index 100% rename from resources/views/settings/livewire/tracking-events/tracking-event-listing.blade.php rename to resources/views/settings/livewire/tracking-states/tracking-state-listing.blade.php diff --git a/resources/views/settings/tracking-settings-index.blade.php b/resources/views/settings/tracking-settings-index.blade.php index 0abdbac..6f7deec 100644 --- a/resources/views/settings/tracking-settings-index.blade.php +++ b/resources/views/settings/tracking-settings-index.blade.php @@ -1,5 +1,5 @@ @extends('p::app') @section('content') - @livewire('tracking-events-listing') + @livewire('tracking-states-listing') @endsection diff --git a/routes/web.php b/routes/web.php index 72d469f..bdf0d49 100644 --- a/routes/web.php +++ b/routes/web.php @@ -26,7 +26,7 @@ Route::get('/', SettingsController::class)->name('index'); Route::get('/costCenters', SettingsCostCentersController::class)->name('costCenters.index'); Route::get('/contents', SettingsContentsController::class)->name('contents.index'); - Route::get('/tracking-events',SettingsTrackingEventsController::class)->name('tracking-events.index'); + Route::get('/tracking-states',SettingsTrackingEventsController::class)->name('tracking-states.index'); }); }); diff --git a/src/DHLUIServiceProvider.php b/src/DHLUIServiceProvider.php index cb22675..21869fd 100644 --- a/src/DHLUIServiceProvider.php +++ b/src/DHLUIServiceProvider.php @@ -14,8 +14,8 @@ use xGrz\Dhl24UI\Livewire\Settings\CostsCenter\CostCenterDelete; use xGrz\Dhl24UI\Livewire\Settings\CostsCenter\CostCenterEdit; use xGrz\Dhl24UI\Livewire\Settings\CostsCenter\CostCenterListing; -use xGrz\Dhl24UI\Livewire\Settings\TrackingEvents\TrackingEventEdit; -use xGrz\Dhl24UI\Livewire\Settings\TrackingEvents\TrackingEventListing; +use xGrz\Dhl24UI\Livewire\Settings\TrackingStates\TrackingStateEdit; +use xGrz\Dhl24UI\Livewire\Settings\TrackingStates\TrackingStateListing; use xGrz\Dhl24UI\Livewire\ShipmentListItem; use xGrz\Dhl24UI\Livewire\ShipmentServices; @@ -41,8 +41,8 @@ public function boot(): void Livewire::component('content-create', ContentCreate::class); Livewire::component('content-edit', ContentEdit::class); Livewire::component('content-delete', ContentDelete::class); - Livewire::component('tracking-events-listing', TrackingEventListing::class); - Livewire::component('tracking-event-edit', TrackingEventEdit::class); + Livewire::component('tracking-states-listing', TrackingStateListing::class); + Livewire::component('tracking-event-edit', TrackingStateEdit::class); } diff --git a/src/Livewire/Settings/TrackingEvents/TrackingEventEdit.php b/src/Livewire/Settings/TrackingStates/TrackingStateEdit.php similarity index 82% rename from src/Livewire/Settings/TrackingEvents/TrackingEventEdit.php rename to src/Livewire/Settings/TrackingStates/TrackingStateEdit.php index 2ca242d..6adfa44 100644 --- a/src/Livewire/Settings/TrackingEvents/TrackingEventEdit.php +++ b/src/Livewire/Settings/TrackingStates/TrackingStateEdit.php @@ -1,6 +1,6 @@ 'Edit event description', ]); } @@ -50,7 +50,7 @@ public function update(): void ]); $this->closeModal(); session()->flash('success', 'Tracking event successfully updated.'); - $this->redirectRoute('dhl24.settings.tracking-events.index'); + $this->redirectRoute('dhl24.settings.tracking-states.index'); } } diff --git a/src/Livewire/Settings/TrackingEvents/TrackingEventListing.php b/src/Livewire/Settings/TrackingStates/TrackingStateListing.php similarity index 66% rename from src/Livewire/Settings/TrackingEvents/TrackingEventListing.php rename to src/Livewire/Settings/TrackingStates/TrackingStateListing.php index 9df953b..d86f63f 100644 --- a/src/Livewire/Settings/TrackingEvents/TrackingEventListing.php +++ b/src/Livewire/Settings/TrackingStates/TrackingStateListing.php @@ -1,13 +1,13 @@