From cdf2b2e42921e6ae5ad1634ed832e54dfc9c4f9f Mon Sep 17 00:00:00 2001 From: philipp lang Date: Sat, 29 Apr 2023 21:30:41 +0200 Subject: [PATCH] Rename dashboard to home --- app/{Home => Dashboard}/Actions/IndexAction.php | 6 +++--- app/{Home => Dashboard}/Blocks/Block.php | 2 +- app/{Home => Dashboard}/DashboardFactory.php | 4 ++-- .../DashboardServiceProvider.php} | 4 ++-- app/Efz/EfzPendingBlock.php | 2 +- app/Member/PsPendingBlock.php | 2 +- app/Membership/AgeGroupCountBlock.php | 2 +- app/Membership/TestersBlock.php | 2 +- app/Payment/MemberPaymentBlock.php | 2 +- config/app.php | 2 +- resources/js/views/{home => dashboard}/AgeGroupCount.vue | 0 resources/js/views/{home => dashboard}/EfzPending.vue | 0 resources/js/views/{home => dashboard}/MemberPayment.vue | 0 resources/js/views/{home => dashboard}/PsPending.vue | 0 resources/js/views/{home => dashboard}/Testers.vue | 0 resources/js/views/{home => dashboard}/VBlock.vue | 0 resources/js/views/{home => dashboard}/VIndex.vue | 0 routes/web.php | 4 ++-- tests/Feature/{HomeTest.php => DashboardTest.php} | 6 +++--- 19 files changed, 19 insertions(+), 19 deletions(-) rename app/{Home => Dashboard}/Actions/IndexAction.php (78%) rename app/{Home => Dashboard}/Blocks/Block.php (94%) rename app/{Home => Dashboard}/DashboardFactory.php (94%) rename app/{Home/HomeServiceProvider.php => Dashboard/DashboardServiceProvider.php} (81%) rename resources/js/views/{home => dashboard}/AgeGroupCount.vue (100%) rename resources/js/views/{home => dashboard}/EfzPending.vue (100%) rename resources/js/views/{home => dashboard}/MemberPayment.vue (100%) rename resources/js/views/{home => dashboard}/PsPending.vue (100%) rename resources/js/views/{home => dashboard}/Testers.vue (100%) rename resources/js/views/{home => dashboard}/VBlock.vue (100%) rename resources/js/views/{home => dashboard}/VIndex.vue (100%) rename tests/Feature/{HomeTest.php => DashboardTest.php} (90%) diff --git a/app/Home/Actions/IndexAction.php b/app/Dashboard/Actions/IndexAction.php similarity index 78% rename from app/Home/Actions/IndexAction.php rename to app/Dashboard/Actions/IndexAction.php index 9e0a2eac..a10302f9 100644 --- a/app/Home/Actions/IndexAction.php +++ b/app/Dashboard/Actions/IndexAction.php @@ -1,8 +1,8 @@ put('menu', 'dashboard'); session()->put('title', 'Dashboard'); - return Inertia::render('home/VIndex', $this->handle()); + return Inertia::render('dashboard/VIndex', $this->handle()); } } diff --git a/app/Home/Blocks/Block.php b/app/Dashboard/Blocks/Block.php similarity index 94% rename from app/Home/Blocks/Block.php rename to app/Dashboard/Blocks/Block.php index ad3bdfa0..73f14549 100644 --- a/app/Home/Blocks/Block.php +++ b/app/Dashboard/Blocks/Block.php @@ -1,6 +1,6 @@ 'App\\Http\\Controllers'], function (): void { }); Route::group(['middleware' => 'auth:web'], function (): void { - Route::get('/', HomeIndexAction::class)->name('home'); + Route::get('/', DashboardIndexAction::class)->name('home'); Route::post('/api/member/search', SearchAction::class)->name('member.search'); Route::get('/initialize', InitializeFormAction::class)->name('initialize.form'); Route::post('/initialize', InitializeAction::class)->name('initialize.store'); diff --git a/tests/Feature/HomeTest.php b/tests/Feature/DashboardTest.php similarity index 90% rename from tests/Feature/HomeTest.php rename to tests/Feature/DashboardTest.php index e414cf82..1407049f 100644 --- a/tests/Feature/HomeTest.php +++ b/tests/Feature/DashboardTest.php @@ -2,12 +2,12 @@ namespace Tests\Feature; -use App\Home\Blocks\Block; -use App\Home\DashboardFactory; +use App\Dashboard\Blocks\Block; +use App\Dashboard\DashboardFactory; use Illuminate\Foundation\Testing\DatabaseTransactions; use Tests\TestCase; -class HomeTest extends TestCase +class DashboardTest extends TestCase { use DatabaseTransactions;