From 7dfa269ff7dc51edcb478dadd51c6487de6cbe25 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Mon, 23 Dec 2024 21:33:02 +0100 Subject: [PATCH] Add contribution index page --- config/app.php | 1 + modules/Contribution/Components/FillList.php | 16 ++++++++++ .../Contribution/Components/FillListTest.php | 18 +++++++++++ .../ContributionServiceProvider.php | 31 +++++++++++++++++++ 4 files changed, 66 insertions(+) create mode 100644 modules/Contribution/Components/FillList.php create mode 100644 modules/Contribution/Components/FillListTest.php create mode 100644 modules/Contribution/ContributionServiceProvider.php diff --git a/config/app.php b/config/app.php index 0fb18e81..8c42c9e1 100644 --- a/config/app.php +++ b/config/app.php @@ -186,6 +186,7 @@ return [ Modules\Auth\AuthServiceProvider::class, Modules\Form\FormServiceProvider::class, Modules\Fileshare\FileshareServiceProvider::class, + Modules\Contribution\ContributionServiceProvider::class, ], /* diff --git a/modules/Contribution/Components/FillList.php b/modules/Contribution/Components/FillList.php new file mode 100644 index 00000000..625dd14e --- /dev/null +++ b/modules/Contribution/Components/FillList.php @@ -0,0 +1,16 @@ + + + HTML; + } +} diff --git a/modules/Contribution/Components/FillListTest.php b/modules/Contribution/Components/FillListTest.php new file mode 100644 index 00000000..68a1ceaf --- /dev/null +++ b/modules/Contribution/Components/FillListTest.php @@ -0,0 +1,18 @@ +login()->loginNami(); +}); + +it('displays page', function () { + test()->get(route('contribution.index')) + ->assertSeeLivewire(FillList::class); +}); diff --git a/modules/Contribution/ContributionServiceProvider.php b/modules/Contribution/ContributionServiceProvider.php new file mode 100644 index 00000000..342edd98 --- /dev/null +++ b/modules/Contribution/ContributionServiceProvider.php @@ -0,0 +1,31 @@ +middleware(['web', 'auth:web'])->group(function ($router) { + $router->get('/contribution', FillList::class)->name('contribution.index'); + }); + } +}