From a9da5e88209f1013a5190e5631fa79240134370d Mon Sep 17 00:00:00 2001 From: Bozhidar Slaveykov Date: Mon, 27 Nov 2023 00:14:33 +0200 Subject: [PATCH] update --- web/app/Filament/Pages/CronJobs.php | 13 ++++ .../Filament/Resources/CronJobResource.php | 66 ------------------- .../CronJobResource/Pages/CreateCronJob.php | 12 ---- .../CronJobResource/Pages/EditCronJob.php | 19 ------ .../CronJobResource/Pages/ListCronJobs.php | 19 ------ .../views/filament/pages/cron-jobs.blade.php | 3 + web/routes/web.php | 1 + 7 files changed, 17 insertions(+), 116 deletions(-) create mode 100644 web/app/Filament/Pages/CronJobs.php delete mode 100644 web/app/Filament/Resources/CronJobResource.php delete mode 100644 web/app/Filament/Resources/CronJobResource/Pages/CreateCronJob.php delete mode 100644 web/app/Filament/Resources/CronJobResource/Pages/EditCronJob.php delete mode 100644 web/app/Filament/Resources/CronJobResource/Pages/ListCronJobs.php create mode 100644 web/resources/views/filament/pages/cron-jobs.blade.php diff --git a/web/app/Filament/Pages/CronJobs.php b/web/app/Filament/Pages/CronJobs.php new file mode 100644 index 0000000..d6ec7c1 --- /dev/null +++ b/web/app/Filament/Pages/CronJobs.php @@ -0,0 +1,13 @@ +schema([ - // - ]); - } - - public static function table(Table $table): Table - { - return $table - ->columns([ - // - ]) - ->filters([ - // - ]) - ->actions([ - Tables\Actions\EditAction::make(), - ]) - ->bulkActions([ - Tables\Actions\BulkActionGroup::make([ - Tables\Actions\DeleteBulkAction::make(), - ]), - ]); - } - - public static function getRelations(): array - { - return [ - // - ]; - } - - public static function getPages(): array - { - return [ - 'index' => Pages\ListCronJobs::route('/'), - 'create' => Pages\CreateCronJob::route('/create'), - 'edit' => Pages\EditCronJob::route('/{record}/edit'), - ]; - } -} diff --git a/web/app/Filament/Resources/CronJobResource/Pages/CreateCronJob.php b/web/app/Filament/Resources/CronJobResource/Pages/CreateCronJob.php deleted file mode 100644 index aa1465a..0000000 --- a/web/app/Filament/Resources/CronJobResource/Pages/CreateCronJob.php +++ /dev/null @@ -1,12 +0,0 @@ - + + diff --git a/web/routes/web.php b/web/routes/web.php index 5cdb00f..fc06f37 100644 --- a/web/routes/web.php +++ b/web/routes/web.php @@ -22,3 +22,4 @@ Route::get('/', function () { return view('welcome'); }); +