From 2d3c63457afee1f991f918389f7660554401955b Mon Sep 17 00:00:00 2001 From: Benjamin Takats Date: Mon, 12 Dec 2022 17:58:20 +0100 Subject: [PATCH] footer changed --- .blueprint | 13 ++----------- app/Http/Livewire/Tables/MeetupEventTable.php | 16 +++++++++++++++- app/Http/Livewire/Tables/MeetupTable.php | 16 +++++++++++++++- .../views/livewire/frontend/footer.blade.php | 10 ++++++---- 4 files changed, 38 insertions(+), 17 deletions(-) diff --git a/.blueprint b/.blueprint index 1312ea02..84aabfbb 100644 --- a/.blueprint +++ b/.blueprint @@ -1,12 +1,3 @@ -created: - - database/factories/MeetupFactory.php - - database/factories/MeetupEventFactory.php - - database/migrations/2022_12_12_155928_create_meetups_table.php - - database/migrations/2022_12_12_155929_create_meetup_events_table.php - - app/Models/Meetup.php - - app/Models/MeetupEvent.php - - app/Nova/Meetup.php - - app/Nova/MeetupEvent.php models: BookCase: { title: string, latitude: 'float:10', longitude: 'float:10', address: 'text nullable', type: string, open: 'string nullable', comment: 'text nullable', contact: 'text nullable', bcz: 'text nullable', digital: boolean, icontype: string, deactivated: boolean, deactreason: string, entrytype: string, homepage: 'text nullable' } Category: { name: string, slug: string } @@ -19,6 +10,8 @@ models: Library: { name: string, is_public: 'boolean default:1', language_codes: 'json default:[]' } LibraryItem: { lecturer_id: biginteger, episode_id: 'biginteger nullable', order_column: integer, name: string, type: string, language_code: string, value: 'text nullable' } LoginKey: { k1: string, user_id: biginteger } + Meetup: { city_id: biginteger, name: string, link: string } + MeetupEvent: { meetup_id: biginteger, start: datetime, location: 'string nullable', description: 'text nullable', link: 'string nullable' } Membership: { team_id: biginteger, user_id: biginteger, role: 'string nullable' } OrangePill: { user_id: biginteger, book_case_id: biginteger, date: datetime, amount: integer } Participant: { first_name: string, last_name: string } @@ -29,5 +22,3 @@ models: TeamInvitation: { team_id: biginteger, email: string, role: 'string nullable' } User: { name: string, public_key: 'string nullable', email: 'string nullable', email_verified_at: 'datetime nullable', password: 'string nullable', remember_token: 'string:100 nullable', current_team_id: 'biginteger nullable', profile_photo_path: 'string:2048 nullable', is_lecturer: 'boolean default:', two_factor_secret: 'text nullable', two_factor_recovery_codes: 'text nullable', two_factor_confirmed_at: 'datetime nullable', timezone: 'string default:Europe/Berlin' } Venue: { city_id: biginteger, name: string, slug: string, street: string } - Meetup: { city_id: foreign, name: 'string unique', link: string } - MeetupEvent: { meetup_id: foreign, date: date, start: time, end: time, location: string, description: text, link: string } diff --git a/app/Http/Livewire/Tables/MeetupEventTable.php b/app/Http/Livewire/Tables/MeetupEventTable.php index d8b05e6e..972faee0 100644 --- a/app/Http/Livewire/Tables/MeetupEventTable.php +++ b/app/Http/Livewire/Tables/MeetupEventTable.php @@ -14,7 +14,21 @@ class MeetupEventTable extends DataTableComponent public function configure(): void { - $this->setPrimaryKey('id'); + $this->setPrimaryKey('id') + ->setThAttributes(function (Column $column) { + return [ + 'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400', + 'default' => false, + ]; + }) + ->setTdAttributes(function (Column $column, $row, $columnIndex, $rowIndex) { + return [ + 'class' => 'px-6 py-4 text-sm font-medium dark:text-white', + 'default' => false, + ]; + }) + ->setColumnSelectStatus(false) + ->setPerPage(50); } public function columns(): array diff --git a/app/Http/Livewire/Tables/MeetupTable.php b/app/Http/Livewire/Tables/MeetupTable.php index c42a3ce0..9a1bff14 100644 --- a/app/Http/Livewire/Tables/MeetupTable.php +++ b/app/Http/Livewire/Tables/MeetupTable.php @@ -14,7 +14,21 @@ class MeetupTable extends DataTableComponent public function configure(): void { - $this->setPrimaryKey('id'); + $this->setPrimaryKey('id') + ->setThAttributes(function (Column $column) { + return [ + 'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400', + 'default' => false, + ]; + }) + ->setTdAttributes(function (Column $column, $row, $columnIndex, $rowIndex) { + return [ + 'class' => 'px-6 py-4 text-sm font-medium dark:text-white', + 'default' => false, + ]; + }) + ->setColumnSelectStatus(false) + ->setPerPage(50); } public function columns(): array diff --git a/resources/views/livewire/frontend/footer.blade.php b/resources/views/livewire/frontend/footer.blade.php index dedaaa93..05cb6526 100644 --- a/resources/views/livewire/frontend/footer.blade.php +++ b/resources/views/livewire/frontend/footer.blade.php @@ -23,10 +23,12 @@

Built with ❤️ by our team.