Rename dashboard to home
continuous-integration/drone/push Build is passing Details

This commit is contained in:
philipp lang 2023-04-29 21:30:41 +02:00
parent 45968d7349
commit cdf2b2e429
19 changed files with 19 additions and 19 deletions

View File

@ -1,8 +1,8 @@
<?php
namespace App\Home\Actions;
namespace App\Dashboard\Actions;
use App\Home\DashboardFactory;
use App\Dashboard\DashboardFactory;
use Illuminate\Http\Request;
use Inertia;
use Inertia\Response;
@ -27,6 +27,6 @@ class IndexAction
session()->put('menu', 'dashboard');
session()->put('title', 'Dashboard');
return Inertia::render('home/VIndex', $this->handle());
return Inertia::render('dashboard/VIndex', $this->handle());
}
}

View File

@ -1,6 +1,6 @@
<?php
namespace App\Home\Blocks;
namespace App\Dashboard\Blocks;
abstract class Block
{

View File

@ -1,9 +1,9 @@
<?php
namespace App\Home;
namespace App\Dashboard;
use App\Dashboard\Blocks\Block;
use App\Efz\EfzPendingBlock;
use App\Home\Blocks\Block;
use App\Member\PsPendingBlock;
use App\Membership\AgeGroupCountBlock;
use App\Membership\TestersBlock;

View File

@ -1,10 +1,10 @@
<?php
namespace App\Home;
namespace App\Dashboard;
use Illuminate\Support\ServiceProvider;
class HomeServiceProvider extends ServiceProvider
class DashboardServiceProvider extends ServiceProvider
{
/**
* Register services.

View File

@ -2,7 +2,7 @@
namespace App\Efz;
use App\Home\Blocks\Block;
use App\Dashboard\Blocks\Block;
use App\Member\Member;
use Illuminate\Database\Eloquent\Builder;

View File

@ -2,7 +2,7 @@
namespace App\Member;
use App\Home\Blocks\Block;
use App\Dashboard\Blocks\Block;
use Illuminate\Database\Eloquent\Builder;
class PsPendingBlock extends Block

View File

@ -2,7 +2,7 @@
namespace App\Membership;
use App\Home\Blocks\Block;
use App\Dashboard\Blocks\Block;
use App\Member\Membership;
use Illuminate\Database\Eloquent\Builder;

View File

@ -2,7 +2,7 @@
namespace App\Membership;
use App\Home\Blocks\Block;
use App\Dashboard\Blocks\Block;
use App\Member\Member;
use Illuminate\Database\Eloquent\Builder;

View File

@ -2,7 +2,7 @@
namespace App\Payment;
use App\Home\Blocks\Block;
use App\Dashboard\Blocks\Block;
use App\Member\Member;
class MemberPaymentBlock extends Block

View File

@ -188,7 +188,7 @@ return [
App\Tex\TexServiceProvider::class,
App\Dav\ServiceProvider::class,
App\Setting\SettingServiceProvider::class,
App\Home\HomeServiceProvider::class,
App\Dashboard\DashboardServiceProvider::class,
],
/*

View File

@ -13,8 +13,8 @@ use App\Contribution\Actions\FormAction as ContributionFormAction;
use App\Contribution\Actions\GenerateAction as ContributionGenerateAction;
use App\Contribution\Actions\ValidateAction as ContributionValidateAction;
use App\Course\Controllers\CourseController;
use App\Dashboard\Actions\IndexAction as DashboardIndexAction;
use App\Efz\ShowEfzDocumentAction;
use App\Home\Actions\IndexAction as HomeIndexAction;
use App\Initialize\Actions\InitializeAction;
use App\Initialize\Actions\InitializeFormAction;
use App\Member\Actions\ExportAction;
@ -37,7 +37,7 @@ Route::group(['namespace' => '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');

View File

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