-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5d42587
commit 7326062
Showing
12 changed files
with
250 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
web/Modules/Email/App/Filament/Resources/DomainDkimResource.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?php | ||
|
||
namespace Modules\Email\App\Filament\Resources; | ||
|
||
use Modules\Email\App\Filament\Resources\DomainDkimResource\Pages; | ||
use Modules\Email\App\Filament\Resources\DomainDkimResource\RelationManagers; | ||
use Modules\Email\App\Models\DomainDkim; | ||
use Filament\Forms; | ||
use Filament\Forms\Form; | ||
use Filament\Resources\Resource; | ||
use Filament\Tables; | ||
use Filament\Tables\Table; | ||
use Illuminate\Database\Eloquent\Builder; | ||
use Illuminate\Database\Eloquent\SoftDeletingScope; | ||
|
||
class DomainDkimResource extends Resource | ||
{ | ||
protected static ?string $model = DomainDkim::class; | ||
|
||
protected static ?string $navigationIcon = 'heroicon-o-rectangle-stack'; | ||
|
||
public static function form(Form $form): Form | ||
{ | ||
return $form | ||
->schema([ | ||
// | ||
]); | ||
} | ||
|
||
public static function table(Table $table): Table | ||
{ | ||
return $table | ||
->columns([ | ||
Tables\Columns\TextColumn::make('domain_name'), | ||
Tables\Columns\TextColumn::make('description'), | ||
Tables\Columns\TextColumn::make('selector'), | ||
// Tables\Columns\TextColumn::make('private_key'), | ||
]) | ||
->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\ListDomainDkims::route('/'), | ||
'create' => Pages\CreateDomainDkim::route('/create'), | ||
'edit' => Pages\EditDomainDkim::route('/{record}/edit'), | ||
]; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
web/Modules/Email/App/Filament/Resources/DomainDkimResource/Pages/CreateDomainDkim.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace Modules\Email\App\Filament\Resources\DomainDkimResource\Pages; | ||
|
||
use Modules\Email\App\Filament\Resources\DomainDkimResource; | ||
use Filament\Actions; | ||
use Filament\Resources\Pages\CreateRecord; | ||
|
||
class CreateDomainDkim extends CreateRecord | ||
{ | ||
protected static string $resource = DomainDkimResource::class; | ||
} |
19 changes: 19 additions & 0 deletions
19
web/Modules/Email/App/Filament/Resources/DomainDkimResource/Pages/EditDomainDkim.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace Modules\Email\App\Filament\Resources\DomainDkimResource\Pages; | ||
|
||
use Modules\Email\App\Filament\Resources\DomainDkimResource; | ||
use Filament\Actions; | ||
use Filament\Resources\Pages\EditRecord; | ||
|
||
class EditDomainDkim extends EditRecord | ||
{ | ||
protected static string $resource = DomainDkimResource::class; | ||
|
||
protected function getHeaderActions(): array | ||
{ | ||
return [ | ||
Actions\DeleteAction::make(), | ||
]; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
web/Modules/Email/App/Filament/Resources/DomainDkimResource/Pages/ListDomainDkims.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace Modules\Email\App\Filament\Resources\DomainDkimResource\Pages; | ||
|
||
use Modules\Email\App\Filament\Resources\DomainDkimResource; | ||
use Filament\Actions; | ||
use Filament\Resources\Pages\ListRecords; | ||
|
||
class ListDomainDkims extends ListRecords | ||
{ | ||
protected static string $resource = DomainDkimResource::class; | ||
|
||
protected function getHeaderActions(): array | ||
{ | ||
return [ | ||
Actions\CreateAction::make(), | ||
]; | ||
} | ||
} |
66 changes: 66 additions & 0 deletions
66
web/Modules/Email/App/Filament/Resources/DomainDkimSigningResource.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?php | ||
|
||
namespace Modules\Email\App\Filament\Resources; | ||
|
||
use Faker\Provider\Text; | ||
use Modules\Email\App\Filament\Resources\DomainDkimSigningResource\Pages; | ||
use Modules\Email\App\Filament\Resources\DomainDkimSigningResource\RelationManagers; | ||
use Modules\Email\App\Models\DomainDkimSigning; | ||
use Filament\Forms; | ||
use Filament\Forms\Form; | ||
use Filament\Resources\Resource; | ||
use Filament\Tables; | ||
use Filament\Tables\Table; | ||
use Illuminate\Database\Eloquent\Builder; | ||
use Illuminate\Database\Eloquent\SoftDeletingScope; | ||
|
||
class DomainDkimSigningResource extends Resource | ||
{ | ||
protected static ?string $model = DomainDkimSigning::class; | ||
|
||
protected static ?string $navigationIcon = 'heroicon-o-rectangle-stack'; | ||
|
||
public static function form(Form $form): Form | ||
{ | ||
return $form | ||
->schema([ | ||
// | ||
]); | ||
} | ||
|
||
public static function table(Table $table): Table | ||
{ | ||
return $table | ||
->columns([ | ||
Tables\Columns\TextColumn::make('author'), | ||
Tables\Columns\TextColumn::make('dkim.domain_name'), | ||
]) | ||
->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\ListDomainDkimSignings::route('/'), | ||
'create' => Pages\CreateDomainDkimSigning::route('/create'), | ||
'edit' => Pages\EditDomainDkimSigning::route('/{record}/edit'), | ||
]; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
.../Email/App/Filament/Resources/DomainDkimSigningResource/Pages/CreateDomainDkimSigning.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace Modules\Email\App\Filament\Resources\DomainDkimSigningResource\Pages; | ||
|
||
use Modules\Email\App\Filament\Resources\DomainDkimSigningResource; | ||
use Filament\Actions; | ||
use Filament\Resources\Pages\CreateRecord; | ||
|
||
class CreateDomainDkimSigning extends CreateRecord | ||
{ | ||
protected static string $resource = DomainDkimSigningResource::class; | ||
} |
19 changes: 19 additions & 0 deletions
19
...es/Email/App/Filament/Resources/DomainDkimSigningResource/Pages/EditDomainDkimSigning.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace Modules\Email\App\Filament\Resources\DomainDkimSigningResource\Pages; | ||
|
||
use Modules\Email\App\Filament\Resources\DomainDkimSigningResource; | ||
use Filament\Actions; | ||
use Filament\Resources\Pages\EditRecord; | ||
|
||
class EditDomainDkimSigning extends EditRecord | ||
{ | ||
protected static string $resource = DomainDkimSigningResource::class; | ||
|
||
protected function getHeaderActions(): array | ||
{ | ||
return [ | ||
Actions\DeleteAction::make(), | ||
]; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...s/Email/App/Filament/Resources/DomainDkimSigningResource/Pages/ListDomainDkimSignings.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace Modules\Email\App\Filament\Resources\DomainDkimSigningResource\Pages; | ||
|
||
use Modules\Email\App\Filament\Resources\DomainDkimSigningResource; | ||
use Filament\Actions; | ||
use Filament\Resources\Pages\ListRecords; | ||
|
||
class ListDomainDkimSignings extends ListRecords | ||
{ | ||
protected static string $resource = DomainDkimSigningResource::class; | ||
|
||
protected function getHeaderActions(): array | ||
{ | ||
return [ | ||
Actions\CreateAction::make(), | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters