cleanup migration to filament

This commit is contained in:
Saeed Vaziry
2024-10-06 21:46:03 +02:00
parent 06d690138d
commit a94d1d42d2
420 changed files with 39 additions and 15481 deletions

View File

@ -18,7 +18,7 @@ class ProfileInformation extends Widget implements HasForms
protected static bool $isLazy = false;
protected static string $view = 'web.components.form';
protected static string $view = 'components.form';
public string $name;

View File

@ -26,7 +26,7 @@ class TwoFactor extends Widget implements HasForms, HasInfolists
protected static bool $isLazy = false;
protected static string $view = 'web.components.infolist';
protected static string $view = 'components.infolist';
public bool $enabled = false;
@ -52,7 +52,7 @@ public function infolist(Infolist $infolist): Infolist
->visible(! $this->enabled),
ViewEntry::make('qr_code')
->hiddenLabel()
->view('web.components.container', [
->view('components.container', [
'content' => $this->enabled ? auth()->user()->twoFactorQrCodeSvg() : null,
])
->visible($this->enabled && $this->showCodes),
@ -69,7 +69,7 @@ public function infolist(Infolist $infolist): Infolist
ViewEntry::make('recovery_codes')
->hiddenLabel()
->extraAttributes(['class' => 'rounded-lg border border-gray-100 p-2 dark:border-gray-700'])
->view('web.components.container', [
->view('components.container', [
'content' => $this->enabled ? implode('</br>', json_decode(decrypt(auth()->user()->two_factor_recovery_codes), true)) : null,
])
->visible($this->enabled),

View File

@ -17,7 +17,7 @@ class UpdatePassword extends Widget implements HasForms
protected static bool $isLazy = false;
protected static string $view = 'web.components.form';
protected static string $view = 'components.form';
public string $current_password = '';