Skip to content

Commit

Permalink
Changes to files: app/Filament/Resources/BlacklistResource.php
Browse files Browse the repository at this point in the history
app/Filament/Resources/BlacklistResource/Pages/Creating.php
app/Filament/Resources/BlacklistResource/Pages/Editing.php
app/Filament/Resources/BlacklistResource/Pages/Listing.php
app/Filament/Resources/QueueResource.php
app/Filament/Resources/QueueResource/Pages/Creating.php
app/Filament/Resources/QueueResource/Pages/Editing.php
app/Filament/Resources/QueueResource/Pages/Listing.php
app/Filament/Resources/SignatureResource.php
app/Filament/Resources/SignatureResource/Pages/Creating.php
app/Filament/Resources/SignatureResource/Pages/Editing.php
app/Filament/Resources/SignatureResource/Pages/Listing.php
app/Filament/Resources/ThemeResource.php
app/Filament/Resources/ThemeResource/Pages/Creating.php
app/Filament/Resources/ThemeResource/Pages/Editing.php
app/Filament/Resources/ThemeResource/Pages/Listing.php
app/Filament/Resources/WhitelistResource.php
app/Filament/Resources/WhitelistResource/Pages/Creating.php
app/Filament/Resources/WhitelistResource/Pages/Editing.php
app/Filament/Resources/WhitelistResource/Pages/Listing.php
  • Loading branch information
dedanirungu committed Oct 13, 2024
1 parent 29f34dd commit def6710
Show file tree
Hide file tree
Showing 20 changed files with 50 additions and 30 deletions.
10 changes: 4 additions & 6 deletions app/Filament/Resources/BlacklistResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Filament\Tables;
use Filament\Tables\Table;
use Modules\Base\Filament\Resources\BaseResource;
use Modules\Base\Filament\Resources\Pages;
use Modules\Mail\Filament\Resources\BlacklistResource\Pages;
use Modules\Mail\Models\Blacklist;

class BlacklistResource extends BaseResource
Expand Down Expand Up @@ -64,12 +64,10 @@ public static function table(Table $table): Table
public static function getPages(): array
{

Pages\ListBase::setResource(static::class);

return [
'index' => Pages\ListBase::route('/'),
'create' => Pages\CreateBase::route('/create'),
'edit' => Pages\EditBase::route('/{record}/edit'),
'index' => Pages\Listing::route('/'),
'create' => Pages\Creating::route('/create'),
'edit' => Pages\Editing::route('/{record}/edit'),
];
}
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/BlacklistResource/Pages/Creating.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Mail\Filament\Resources\BlacklistResource\Pages;

use Modules\Base\Filament\Resources\Pages\CreatingBase;
use Modules\Mail\Filament\Resources\BlacklistResource;

// Class List that extends ListBase
class Creating extends CreatingBase
{
protected static string $resource = BlacklistResource::class;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/BlacklistResource/Pages/Editing.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Mail\Filament\Resources\BlacklistResource\Pages;

use Modules\Base\Filament\Resources\Pages\EditingBase;
use Modules\Mail\Filament\Resources\BlacklistResource;

// Class List that extends ListBase
class Editing extends EditingBase
{
protected static string $resource = BlacklistResource::class;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/BlacklistResource/Pages/Listing.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Mail\Filament\Resources\BlacklistResource\Pages;

use Modules\Base\Filament\Resources\Pages\ListingBase;
use Modules\Mail\Filament\Resources\BlacklistResource;

// Class List that extends ListBase
class Listing extends ListingBase
{
protected static string $resource = BlacklistResource::class;
}
10 changes: 4 additions & 6 deletions app/Filament/Resources/QueueResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Filament\Tables;
use Filament\Tables\Table;
use Modules\Base\Filament\Resources\BaseResource;
use Modules\Base\Filament\Resources\Pages;
use Modules\Mail\Filament\Resources\QueueResource\Pages;
use Modules\Mail\Models\Queue;

class QueueResource extends BaseResource
Expand Down Expand Up @@ -79,12 +79,10 @@ public static function table(Table $table): Table
public static function getPages(): array
{

Pages\ListBase::setResource(static::class);

return [
'index' => Pages\ListBase::route('/'),
'create' => Pages\CreateBase::route('/create'),
'edit' => Pages\EditBase::route('/{record}/edit'),
'index' => Pages\Listing::route('/'),
'create' => Pages\Creating::route('/create'),
'edit' => Pages\Editing::route('/{record}/edit'),
];
}
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/QueueResource/Pages/Creating.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Mail\Filament\Resources\QueueResource\Pages;

use Modules\Base\Filament\Resources\Pages\CreatingBase;
use Modules\Mail\Filament\Resources\QueueResource;

// Class List that extends ListBase
class Creating extends CreatingBase
{
protected static string $resource = QueueResource::class;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/QueueResource/Pages/Editing.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Mail\Filament\Resources\QueueResource\Pages;

use Modules\Base\Filament\Resources\Pages\EditingBase;
use Modules\Mail\Filament\Resources\QueueResource;

// Class List that extends ListBase
class Editing extends EditingBase
{
protected static string $resource = QueueResource::class;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/QueueResource/Pages/Listing.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Mail\Filament\Resources\QueueResource\Pages;

use Modules\Base\Filament\Resources\Pages\ListingBase;
use Modules\Mail\Filament\Resources\QueueResource;

// Class List that extends ListBase
class Listing extends ListingBase
{
protected static string $resource = QueueResource::class;
}
10 changes: 4 additions & 6 deletions app/Filament/Resources/SignatureResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Filament\Tables;
use Filament\Tables\Table;
use Modules\Base\Filament\Resources\BaseResource;
use Modules\Base\Filament\Resources\Pages;
use Modules\Mail\Filament\Resources\SignatureResource\Pages;
use Modules\Mail\Models\Signature;

class SignatureResource extends BaseResource
Expand Down Expand Up @@ -82,12 +82,10 @@ public static function table(Table $table): Table
public static function getPages(): array
{

Pages\ListBase::setResource(static::class);

return [
'index' => Pages\ListBase::route('/'),
'create' => Pages\CreateBase::route('/create'),
'edit' => Pages\EditBase::route('/{record}/edit'),
'index' => Pages\Listing::route('/'),
'create' => Pages\Creating::route('/create'),
'edit' => Pages\Editing::route('/{record}/edit'),
];
}
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/SignatureResource/Pages/Creating.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Mail\Filament\Resources\SignatureResource\Pages;

use Modules\Base\Filament\Resources\Pages\CreatingBase;
use Modules\Mail\Filament\Resources\SignatureResource;

// Class List that extends ListBase
class Creating extends CreatingBase
{
protected static string $resource = SignatureResource::class;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/SignatureResource/Pages/Editing.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Mail\Filament\Resources\SignatureResource\Pages;

use Modules\Base\Filament\Resources\Pages\EditingBase;
use Modules\Mail\Filament\Resources\SignatureResource;

// Class List that extends ListBase
class Editing extends EditingBase
{
protected static string $resource = SignatureResource::class;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/SignatureResource/Pages/Listing.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Mail\Filament\Resources\SignatureResource\Pages;

use Modules\Base\Filament\Resources\Pages\ListingBase;
use Modules\Mail\Filament\Resources\SignatureResource;

// Class List that extends ListBase
class Listing extends ListingBase
{
protected static string $resource = SignatureResource::class;
}
10 changes: 4 additions & 6 deletions app/Filament/Resources/ThemeResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Filament\Tables;
use Filament\Tables\Table;
use Modules\Base\Filament\Resources\BaseResource;
use Modules\Base\Filament\Resources\Pages;
use Modules\Mail\Filament\Resources\ThemeResource\Pages;
use Modules\Mail\Models\Theme;

class ThemeResource extends BaseResource
Expand Down Expand Up @@ -84,12 +84,10 @@ public static function table(Table $table): Table
public static function getPages(): array
{

Pages\ListBase::setResource(static::class);

return [
'index' => Pages\ListBase::route('/'),
'create' => Pages\CreateBase::route('/create'),
'edit' => Pages\EditBase::route('/{record}/edit'),
'index' => Pages\Listing::route('/'),
'create' => Pages\Creating::route('/create'),
'edit' => Pages\Editing::route('/{record}/edit'),
];
}
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/ThemeResource/Pages/Creating.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Mail\Filament\Resources\ThemeResource\Pages;

use Modules\Base\Filament\Resources\Pages\CreatingBase;
use Modules\Mail\Filament\Resources\ThemeResource;

// Class List that extends ListBase
class Creating extends CreatingBase
{
protected static string $resource = ThemeResource::class;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/ThemeResource/Pages/Editing.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Mail\Filament\Resources\ThemeResource\Pages;

use Modules\Base\Filament\Resources\Pages\EditingBase;
use Modules\Mail\Filament\Resources\ThemeResource;

// Class List that extends ListBase
class Editing extends EditingBase
{
protected static string $resource = ThemeResource::class;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/ThemeResource/Pages/Listing.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Mail\Filament\Resources\ThemeResource\Pages;

use Modules\Base\Filament\Resources\Pages\ListingBase;
use Modules\Mail\Filament\Resources\ThemeResource;

// Class List that extends ListBase
class Listing extends ListingBase
{
protected static string $resource = ThemeResource::class;
}
10 changes: 4 additions & 6 deletions app/Filament/Resources/WhitelistResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Filament\Tables;
use Filament\Tables\Table;
use Modules\Base\Filament\Resources\BaseResource;
use Modules\Base\Filament\Resources\Pages;
use Modules\Mail\Filament\Resources\WhitelistResource\Pages;
use Modules\Mail\Models\Whitelist;

class WhitelistResource extends BaseResource
Expand Down Expand Up @@ -64,12 +64,10 @@ public static function table(Table $table): Table
public static function getPages(): array
{

Pages\ListBase::setResource(static::class);

return [
'index' => Pages\ListBase::route('/'),
'create' => Pages\CreateBase::route('/create'),
'edit' => Pages\EditBase::route('/{record}/edit'),
'index' => Pages\Listing::route('/'),
'create' => Pages\Creating::route('/create'),
'edit' => Pages\Editing::route('/{record}/edit'),
];
}
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/WhitelistResource/Pages/Creating.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Mail\Filament\Resources\WhitelistResource\Pages;

use Modules\Base\Filament\Resources\Pages\CreatingBase;
use Modules\Mail\Filament\Resources\WhitelistResource;

// Class List that extends ListBase
class Creating extends CreatingBase
{
protected static string $resource = WhitelistResource::class;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/WhitelistResource/Pages/Editing.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Mail\Filament\Resources\WhitelistResource\Pages;

use Modules\Base\Filament\Resources\Pages\EditingBase;
use Modules\Mail\Filament\Resources\WhitelistResource;

// Class List that extends ListBase
class Editing extends EditingBase
{
protected static string $resource = WhitelistResource::class;
}
2 changes: 2 additions & 0 deletions app/Filament/Resources/WhitelistResource/Pages/Listing.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Modules\Mail\Filament\Resources\WhitelistResource\Pages;

use Modules\Base\Filament\Resources\Pages\ListingBase;
use Modules\Mail\Filament\Resources\WhitelistResource;

// Class List that extends ListBase
class Listing extends ListingBase
{
protected static string $resource = WhitelistResource::class;
}

0 comments on commit def6710

Please sign in to comment.