-
-
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
97483c8
commit 6241f2c
Showing
3 changed files
with
54 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
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,27 @@ | ||
<?php | ||
|
||
namespace Modules\Email\App\Http\Livewire; | ||
|
||
use Livewire\Component; | ||
use Modules\Email\DkimDomainSetup; | ||
|
||
class DkimSetup extends Component | ||
{ | ||
public $domain; | ||
|
||
public function render() | ||
{ | ||
$secure = $this->secure(); | ||
|
||
return view('email::livewire.dkim-setup', [ | ||
'secure' => $secure, | ||
]); | ||
} | ||
|
||
public function secure() | ||
{ | ||
$output = DkimDomainSetup::run($this->domain); | ||
|
||
return $output; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
web/Modules/Email/resources/views/livewire/dkim-setup.blade.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 @@ | ||
<div> | ||
@if(isset($secure['text'])) | ||
|
||
<div class="w-full p-2"> | ||
Please add the following DNS record to your domain's DNS settings: | ||
</div> | ||
|
||
<div class="w-full mt-2"> | ||
<textarea rows="10" class="w-full p-4 rounded-md border-2 border-gray-100"> | ||
{{ $secure['text'] }} | ||
</textarea> | ||
</div> | ||
|
||
<x-filament::button wire:click="verify"> | ||
Check DNS Record | ||
</x-filament::button> | ||
|
||
@endif | ||
</div> |