feat(Password process for new admin, cleaning translations)
All checks were successful
Deploy Roxane to Preprod / deploy (push) Successful in 1m21s
All checks were successful
Deploy Roxane to Preprod / deploy (push) Successful in 1m21s
This commit is contained in:
@@ -16,7 +16,7 @@ PHP_CLI_SERVER_WORKERS=4
|
|||||||
BCRYPT_ROUNDS=12
|
BCRYPT_ROUNDS=12
|
||||||
|
|
||||||
LOG_CHANNEL=stack
|
LOG_CHANNEL=stack
|
||||||
LOG_STACK=single
|
LOG_STACK=daily
|
||||||
LOG_DEPRECATIONS_CHANNEL=null
|
LOG_DEPRECATIONS_CHANNEL=null
|
||||||
LOG_LEVEL=debug
|
LOG_LEVEL=debug
|
||||||
|
|
||||||
@@ -86,9 +86,15 @@ ISPCONFIG_TEST_SOAP_URI=
|
|||||||
ISPCONFIG_TEST_USERNAME=
|
ISPCONFIG_TEST_USERNAME=
|
||||||
ISPCONFIG_TEST_PASSWORD=
|
ISPCONFIG_TEST_PASSWORD=
|
||||||
|
|
||||||
|
# NextCloud Server
|
||||||
NEXTCLOUD_URL=
|
NEXTCLOUD_URL=
|
||||||
NEXTCLOUD_USERNAME=
|
NEXTCLOUD_USERNAME=
|
||||||
NEXTCLOUD_PASSWORD=
|
NEXTCLOUD_PASSWORD=
|
||||||
|
|
||||||
|
#ListMonk server
|
||||||
|
LISTMONK_URL=
|
||||||
|
LISTMONK_USERNAME=
|
||||||
|
LISTMONK_PASSWORD=
|
||||||
|
|
||||||
#SYMPA_API_ID=
|
#SYMPA_API_ID=
|
||||||
#SYMPA_API_PWD=
|
#SYMPA_API_PWD=
|
||||||
|
|||||||
@@ -34,6 +34,14 @@ services:
|
|||||||
type: redis:5
|
type: redis:5
|
||||||
persist: false
|
persist: false
|
||||||
portforward: true
|
portforward: true
|
||||||
|
worker:
|
||||||
|
type: php:8.3
|
||||||
|
via: cli
|
||||||
|
command: php artisan queue:work --sleep=3 --tries=3 --timeout=60
|
||||||
|
overrides:
|
||||||
|
volumes:
|
||||||
|
- .:/app
|
||||||
|
working_dir: /app
|
||||||
|
|
||||||
tooling:
|
tooling:
|
||||||
npm:
|
npm:
|
||||||
|
|||||||
@@ -3,22 +3,22 @@
|
|||||||
namespace App\Filament\Resources\Members\Schemas;
|
namespace App\Filament\Resources\Members\Schemas;
|
||||||
|
|
||||||
use App\Enums\IspconfigType;
|
use App\Enums\IspconfigType;
|
||||||
|
use App\Filament\Actions\ServiceToggleAction;
|
||||||
use App\Models\Member;
|
use App\Models\Member;
|
||||||
use Filament\Actions\Action;
|
use Filament\Actions\Action;
|
||||||
use Filament\Forms\Components\DatePicker;
|
use Filament\Forms\Components\DatePicker;
|
||||||
use Filament\Forms\Components\Select;
|
use Filament\Forms\Components\Select;
|
||||||
use Filament\Infolists\Components\ViewEntry;
|
|
||||||
use Filament\Schemas\Components\Tabs;
|
|
||||||
use Filament\Schemas\Components\Tabs\Tab;
|
|
||||||
use Filament\Forms\Components\TextInput;
|
use Filament\Forms\Components\TextInput;
|
||||||
use Filament\Forms\Components\Toggle;
|
use Filament\Forms\Components\Toggle;
|
||||||
use Filament\Schemas\Components\Grid;
|
|
||||||
use Filament\Schemas\Components\Section;
|
|
||||||
use Filament\Schemas\Schema;
|
|
||||||
use Filament\Infolists\Components\RepeatableEntry;
|
use Filament\Infolists\Components\RepeatableEntry;
|
||||||
use Filament\Infolists\Components\TextEntry;
|
use Filament\Infolists\Components\TextEntry;
|
||||||
|
use Filament\Infolists\Components\ViewEntry;
|
||||||
|
use Filament\Schemas\Components\Grid;
|
||||||
|
use Filament\Schemas\Components\Section;
|
||||||
|
use Filament\Schemas\Components\Tabs;
|
||||||
|
use Filament\Schemas\Components\Tabs\Tab;
|
||||||
|
use Filament\Schemas\Schema;
|
||||||
use Filament\Support\Icons\Heroicon;
|
use Filament\Support\Icons\Heroicon;
|
||||||
use App\Filament\Actions\ServiceToggleAction;
|
|
||||||
|
|
||||||
class MemberForm
|
class MemberForm
|
||||||
{
|
{
|
||||||
@@ -42,10 +42,10 @@ class MemberForm
|
|||||||
| TAB : Informations générales
|
| TAB : Informations générales
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
Tabs\Tab::make('Informations générales')
|
Tabs\Tab::make(__('members.tabs.general_info'))
|
||||||
->icon(Heroicon::OutlinedInformationCircle)
|
->icon(Heroicon::OutlinedInformationCircle)
|
||||||
->schema([
|
->schema([
|
||||||
Section::make('Informations personnelles')
|
Section::make(__('members.sections.personal_info'))
|
||||||
->collapsible()
|
->collapsible()
|
||||||
->schema([
|
->schema([
|
||||||
TextInput::make('lastname')
|
TextInput::make('lastname')
|
||||||
@@ -64,7 +64,7 @@ class MemberForm
|
|||||||
])
|
])
|
||||||
->columns(2),
|
->columns(2),
|
||||||
|
|
||||||
Section::make('Informations administratives')
|
Section::make(__('members.sections.administrative_info'))
|
||||||
->collapsible()
|
->collapsible()
|
||||||
->schema([
|
->schema([
|
||||||
TextInput::make('keycloak_id')
|
TextInput::make('keycloak_id')
|
||||||
@@ -86,7 +86,7 @@ class MemberForm
|
|||||||
])
|
])
|
||||||
->columns(2),
|
->columns(2),
|
||||||
|
|
||||||
Section::make('Coordonnées')
|
Section::make(__('members.sections.contact_info'))
|
||||||
->collapsible()
|
->collapsible()
|
||||||
->schema([
|
->schema([
|
||||||
TextInput::make('email')
|
TextInput::make('email')
|
||||||
@@ -122,143 +122,135 @@ class MemberForm
|
|||||||
| TAB : Services/Modules
|
| TAB : Services/Modules
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
Tabs\Tab::make('Modules')
|
Tabs\Tab::make(__('members.tabs.modules'))
|
||||||
->icon(Heroicon::OutlinedPuzzlePiece)
|
->icon(Heroicon::OutlinedPuzzlePiece)
|
||||||
->schema([
|
->schema([
|
||||||
/*
|
Section::make(__('members.sections.ispconfig_mail'))
|
||||||
| Messageries ISPConfig (lecture seule)
|
|
||||||
*/
|
|
||||||
Section::make('Messagerie ISPConfig')
|
|
||||||
->afterHeader([
|
->afterHeader([
|
||||||
ServiceToggleAction::forService('mail'),
|
ServiceToggleAction::forService('mail'),
|
||||||
])
|
])
|
||||||
->collapsible()
|
->collapsible()
|
||||||
->schema([
|
->schema([
|
||||||
RepeatableEntry::make('ispconfig_mails')
|
RepeatableEntry::make('ispconfig_mails')
|
||||||
->label('Données ISPConfig Mail')
|
->label(__('members.ispconfig.mail_data'))
|
||||||
->state(fn(?Member $record) => $record?->ispconfigs()
|
->state(fn (?Member $record) => $record?->ispconfigs()
|
||||||
->where('type', IspconfigType::MAIL)
|
->where('type', IspconfigType::MAIL)
|
||||||
->get()
|
->get()
|
||||||
)
|
)
|
||||||
->schema([
|
->schema([
|
||||||
TextEntry::make('email')
|
TextEntry::make('email')
|
||||||
->label('Adresse email'),
|
->label(__('members.ispconfig.email')),
|
||||||
|
|
||||||
TextEntry::make('ispconfig_service_user_id')
|
TextEntry::make('ispconfig_service_user_id')
|
||||||
->label('ID ISPConfig'),
|
->label(__('members.ispconfig.id')),
|
||||||
|
|
||||||
TextEntry::make('data.mailuser.quota')
|
TextEntry::make('data.mailuser.quota')
|
||||||
->label('Quota'),
|
->label(__('members.ispconfig.quota')),
|
||||||
//->formatStateUsing(fn($state) => $state ? "{$state} Mo" : 'Non défini'
|
|
||||||
//),
|
|
||||||
|
|
||||||
TextEntry::make('data.mailuser.domain')
|
TextEntry::make('data.mailuser.domain')
|
||||||
->label('Domaine')
|
->label(__('members.ispconfig.domain'))
|
||||||
->default('retzien.fr'),
|
->default('retzien.fr'),
|
||||||
ViewEntry::make('data')
|
ViewEntry::make('data')
|
||||||
->label('JSON')
|
->label('JSON')
|
||||||
->view('filament.components.json-viewer')
|
->view('filament.components.json-viewer')
|
||||||
->viewData(fn($state) => [
|
->viewData(fn ($state) => [
|
||||||
'data' => $state,
|
'data' => $state,
|
||||||
])
|
])
|
||||||
->columnSpanFull(),
|
->columnSpanFull(),
|
||||||
])
|
])
|
||||||
->columns(2),
|
->columns(2),
|
||||||
])
|
])
|
||||||
->visible(fn(?Member $record) => $record?->ispconfigs()
|
->visible(fn (?Member $record) => $record?->ispconfigs()
|
||||||
->where('type', IspconfigType::MAIL)
|
->where('type', IspconfigType::MAIL)
|
||||||
->exists()
|
->exists()
|
||||||
),
|
),
|
||||||
|
|
||||||
/*
|
Section::make(__('members.sections.ispconfig_web'))
|
||||||
| Hébergements web ISPConfig
|
|
||||||
*/
|
|
||||||
Section::make('Hébergements Web')
|
|
||||||
->afterHeader([
|
->afterHeader([
|
||||||
ServiceToggleAction::forService('webhosting'),
|
ServiceToggleAction::forService('webhosting'),
|
||||||
])
|
])
|
||||||
->collapsible()
|
->collapsible()
|
||||||
->schema([
|
->schema([
|
||||||
RepeatableEntry::make('ispconfigs_web')
|
RepeatableEntry::make('ispconfigs_web')
|
||||||
->label('Données ISPConfig Web')
|
->label(__('members.ispconfig.web_data'))
|
||||||
->state(fn(?Member $record) => $record?->ispconfigs()
|
->state(fn (?Member $record) => $record?->ispconfigs()
|
||||||
->where('type', IspconfigType::WEB)
|
->where('type', IspconfigType::WEB)
|
||||||
->get()
|
->get()
|
||||||
->map(fn($ispconfig) => $ispconfig->toArray())
|
->map(fn ($ispconfig) => $ispconfig->toArray())
|
||||||
->all()
|
->all()
|
||||||
)
|
)
|
||||||
->schema([
|
->schema([
|
||||||
TextEntry::make('data.domain_id')
|
TextEntry::make('data.domain_id')
|
||||||
->label('ID ISPConfig'),
|
->label(__('members.ispconfig.id')),
|
||||||
|
|
||||||
TextEntry::make('data.domain')
|
TextEntry::make('data.domain')
|
||||||
->label('Domaine'),
|
->label(__('members.ispconfig.domain')),
|
||||||
|
|
||||||
TextEntry::make('data.active')
|
TextEntry::make('data.active')
|
||||||
->label('État')
|
->label(__('members.ispconfig.state'))
|
||||||
->formatStateUsing(fn($state) => $state === 'y' ? 'Activé' : 'Désactivé'
|
->formatStateUsing(fn ($state) => $state === 'y'
|
||||||
|
? __('members.ispconfig.enabled')
|
||||||
|
: __('members.ispconfig.disabled')
|
||||||
),
|
),
|
||||||
ViewEntry::make('data')
|
ViewEntry::make('data')
|
||||||
->label('JSON')
|
->label('JSON')
|
||||||
->view('filament.components.json-viewer')
|
->view('filament.components.json-viewer')
|
||||||
->viewData(fn($state) => [
|
->viewData(fn ($state) => [
|
||||||
'data' => $state,
|
'data' => $state,
|
||||||
])
|
])
|
||||||
->columnSpanFull(),
|
->columnSpanFull(),
|
||||||
// @todo: background color : #F5F8FA
|
|
||||||
])
|
])
|
||||||
->columns(3),
|
->columns(3),
|
||||||
|
|
||||||
])
|
])
|
||||||
->visible(fn(?Member $record) => $record?->ispconfigs()
|
->visible(fn (?Member $record) => $record?->ispconfigs()
|
||||||
->where('type', IspconfigType::WEB)
|
->where('type', IspconfigType::WEB)
|
||||||
->exists()
|
->exists()
|
||||||
),
|
),
|
||||||
|
|
||||||
/*
|
Section::make(__('members.sections.nextcloud'))
|
||||||
| Compte(s) NextCloud (lecture seule)
|
|
||||||
*/
|
|
||||||
Section::make('NextCloud')
|
|
||||||
->afterHeader([
|
->afterHeader([
|
||||||
ServiceToggleAction::forService('nextcloud'),
|
ServiceToggleAction::forService('nextcloud'),
|
||||||
])
|
])
|
||||||
->collapsible()
|
->collapsible()
|
||||||
->schema([
|
->schema([
|
||||||
RepeatableEntry::make('nextcloud_accounts')
|
RepeatableEntry::make('nextcloud_accounts')
|
||||||
->label('Données NextCloud')
|
->label(__('members.ispconfig.nextcloud_data'))
|
||||||
->state(fn(?Member $record) => $record?->nextcloudAccounts()
|
->state(fn (?Member $record) => $record?->nextcloudAccounts()
|
||||||
->get()
|
->get()
|
||||||
->map(fn($nextcloudAccount) => $nextcloudAccount->toArray())
|
->map(fn ($nextcloudAccount) => $nextcloudAccount->toArray())
|
||||||
->all()
|
->all()
|
||||||
)
|
)
|
||||||
->schema([
|
->schema([
|
||||||
TextEntry::make('nextcloud_user_id')
|
TextEntry::make('nextcloud_user_id')
|
||||||
->label('Id Nextcloud'),
|
->label(__('members.ispconfig.nextcloud_id')),
|
||||||
|
|
||||||
TextEntry::make('data.displayname')
|
TextEntry::make('data.displayname')
|
||||||
->label('Nom de l\'utilisateur'),
|
->label(__('members.ispconfig.display_name')),
|
||||||
|
|
||||||
TextEntry::make('data.enabled')
|
TextEntry::make('data.enabled')
|
||||||
->label('État')
|
->label(__('members.ispconfig.state'))
|
||||||
->formatStateUsing(fn($state) => $state == 'true' ? 'Activé' : 'Désactivé'
|
->formatStateUsing(fn ($state) => $state == 'true'
|
||||||
|
? __('members.ispconfig.enabled')
|
||||||
|
: __('members.ispconfig.disabled')
|
||||||
),
|
),
|
||||||
|
|
||||||
ViewEntry::make('data')
|
ViewEntry::make('data')
|
||||||
->label('JSON')
|
->label('JSON')
|
||||||
->view('filament.components.json-viewer')
|
->view('filament.components.json-viewer')
|
||||||
->viewData(fn($state) => [
|
->viewData(fn ($state) => [
|
||||||
'data' => $state,
|
'data' => $state,
|
||||||
])
|
])
|
||||||
->columnSpanFull(),
|
->columnSpanFull(),
|
||||||
])
|
])
|
||||||
->columns(3),
|
->columns(3),
|
||||||
])
|
])
|
||||||
->visible(fn(?Member $record) => $record?->nextcloudAccounts()
|
->visible(fn (?Member $record) => $record?->nextcloudAccounts()
|
||||||
->exists()
|
->exists()
|
||||||
),
|
),
|
||||||
]),
|
]),
|
||||||
])
|
])
|
||||||
->contained(false)
|
->contained(false),
|
||||||
])
|
])
|
||||||
->columnSpan(3),
|
->columnSpan(3),
|
||||||
|
|
||||||
@@ -269,7 +261,7 @@ class MemberForm
|
|||||||
*/
|
*/
|
||||||
Grid::make(1)
|
Grid::make(1)
|
||||||
->schema([
|
->schema([
|
||||||
Section::make('Statut')
|
Section::make(__('members.sections.status'))
|
||||||
->collapsible()
|
->collapsible()
|
||||||
->schema([
|
->schema([
|
||||||
Select::make('status')
|
Select::make('status')
|
||||||
@@ -290,18 +282,18 @@ class MemberForm
|
|||||||
])
|
])
|
||||||
->extraAttributes(['class' => 'sticky top-4 h-fit']),
|
->extraAttributes(['class' => 'sticky top-4 h-fit']),
|
||||||
|
|
||||||
Section::make('Actions')
|
Section::make(__('members.sections.actions'))
|
||||||
->collapsible()
|
->collapsible()
|
||||||
->schema([
|
->schema([
|
||||||
Action::make('send-payment-mail')
|
Action::make('send-payment-mail')
|
||||||
->label('Envoyer le mail de paiement')
|
->label(__('members.actions.send_payment_mail'))
|
||||||
->icon('heroicon-o-envelope')
|
->icon('heroicon-o-envelope')
|
||||||
->action(function () {
|
->action(function () {
|
||||||
// Mail de paiement pour nouvelle inscription (Job)
|
// Mail de paiement pour nouvelle inscription (Job)
|
||||||
}),
|
}),
|
||||||
|
|
||||||
Action::make('send-renewal-mail')
|
Action::make('send-renewal-mail')
|
||||||
->label('Envoyer un mail de relance')
|
->label(__('members.actions.send_renewal_mail'))
|
||||||
->icon('heroicon-o-envelope')
|
->icon('heroicon-o-envelope')
|
||||||
->action(function () {
|
->action(function () {
|
||||||
// Mail de relance à créer (Job)
|
// Mail de relance à créer (Job)
|
||||||
|
|||||||
@@ -40,14 +40,14 @@ class MembershipForm
|
|||||||
| TAB : Informations générales
|
| TAB : Informations générales
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
Tabs\Tab::make('Informations générales')
|
Tabs\Tab::make(__('memberships.tabs.general_info'))
|
||||||
->icon(Heroicon::OutlinedInformationCircle)
|
->icon(Heroicon::OutlinedInformationCircle)
|
||||||
->schema([
|
->schema([
|
||||||
Section::make('Adhérent')
|
Section::make(__('memberships.sections.member'))
|
||||||
->headerActions([
|
->headerActions([
|
||||||
Action::make('view-profile')
|
Action::make('view-profile')
|
||||||
->icon('heroicon-o-user')
|
->icon('heroicon-o-user')
|
||||||
->label('Voir le profil du membre')
|
->label(__('memberships.actions.view_profile'))
|
||||||
->action(function (Membership $record) {
|
->action(function (Membership $record) {
|
||||||
return redirect()->route('filament.admin.resources.members.edit', ['record' => $record->member_id]);
|
return redirect()->route('filament.admin.resources.members.edit', ['record' => $record->member_id]);
|
||||||
}),
|
}),
|
||||||
@@ -62,7 +62,7 @@ class MembershipForm
|
|||||||
])
|
])
|
||||||
->columns(2),
|
->columns(2),
|
||||||
|
|
||||||
Section::make('Informations de transaction')
|
Section::make(__('memberships.sections.transaction'))
|
||||||
->schema([
|
->schema([
|
||||||
Select::make('package_id')
|
Select::make('package_id')
|
||||||
->label(Membership::getAttributeLabel('package_id'))
|
->label(Membership::getAttributeLabel('package_id'))
|
||||||
@@ -89,136 +89,131 @@ class MembershipForm
|
|||||||
| TAB : Services/Modules
|
| TAB : Services/Modules
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
Tabs\Tab::make('Modules')
|
Tabs\Tab::make(__('memberships.tabs.modules'))
|
||||||
->icon(Heroicon::OutlinedPuzzlePiece)
|
->icon(Heroicon::OutlinedPuzzlePiece)
|
||||||
->schema([
|
->schema([
|
||||||
/*
|
Section::make(__('memberships.sections.ispconfig_mail'))
|
||||||
| Messageries ISPConfig (lecture seule)
|
|
||||||
*/
|
|
||||||
Section::make('Messagerie ISPConfig')
|
|
||||||
->afterHeader([
|
->afterHeader([
|
||||||
ServiceToggleAction::forService('mail'),
|
ServiceToggleAction::forService('mail'),
|
||||||
])
|
])
|
||||||
->collapsible()
|
->collapsible()
|
||||||
->schema([
|
->schema([
|
||||||
RepeatableEntry::make('ispconfig_mails')
|
RepeatableEntry::make('ispconfig_mails')
|
||||||
->label('Données ISPConfig Mail')
|
->label(__('members.ispconfig.mail_data'))
|
||||||
->state(fn(?Membership $record) => $record?->member?->ispconfigs()
|
->state(fn (?Membership $record) => $record?->member?->ispconfigs()
|
||||||
->where('type', IspconfigType::MAIL)
|
->where('type', IspconfigType::MAIL)
|
||||||
->get()
|
->get()
|
||||||
)
|
)
|
||||||
->schema([
|
->schema([
|
||||||
TextEntry::make('email')
|
TextEntry::make('email')
|
||||||
->label('Adresse email'),
|
->label(__('members.ispconfig.email')),
|
||||||
|
|
||||||
TextEntry::make('ispconfig_service_user_id')
|
TextEntry::make('ispconfig_service_user_id')
|
||||||
->label('ID ISPConfig'),
|
->label(__('members.ispconfig.id')),
|
||||||
|
|
||||||
TextEntry::make('data.mailuser.quota')
|
TextEntry::make('data.mailuser.quota')
|
||||||
->label('Quota'),
|
->label(__('members.ispconfig.quota')),
|
||||||
|
|
||||||
TextEntry::make('data.mailuser.domain')
|
TextEntry::make('data.mailuser.domain')
|
||||||
->label('Domaine')
|
->label(__('members.ispconfig.domain'))
|
||||||
->default('retzien.fr'),
|
->default('retzien.fr'),
|
||||||
|
|
||||||
ViewEntry::make('data')
|
ViewEntry::make('data')
|
||||||
->label('JSON')
|
->label('JSON')
|
||||||
->view('filament.components.json-viewer')
|
->view('filament.components.json-viewer')
|
||||||
->viewData(fn($state) => [
|
->viewData(fn ($state) => [
|
||||||
'data' => $state,
|
'data' => $state,
|
||||||
])
|
])
|
||||||
->columnSpanFull(),
|
->columnSpanFull(),
|
||||||
])
|
])
|
||||||
->columns(2),
|
->columns(2),
|
||||||
])
|
])
|
||||||
->visible(fn(?Membership $record) => $record?->member?->ispconfigs()
|
->visible(fn (?Membership $record) => $record?->member?->ispconfigs()
|
||||||
->where('type', IspconfigType::MAIL)
|
->where('type', IspconfigType::MAIL)
|
||||||
->exists() ?? false
|
->exists() ?? false
|
||||||
),
|
),
|
||||||
|
|
||||||
/*
|
Section::make(__('memberships.sections.ispconfig_web'))
|
||||||
| Hébergements web ISPConfig
|
|
||||||
*/
|
|
||||||
Section::make('Hébergements Web')
|
|
||||||
->afterHeader([
|
->afterHeader([
|
||||||
ServiceToggleAction::forService('webhosting'),
|
ServiceToggleAction::forService('webhosting'),
|
||||||
])
|
])
|
||||||
->collapsible()
|
->collapsible()
|
||||||
->schema([
|
->schema([
|
||||||
RepeatableEntry::make('ispconfigs_web')
|
RepeatableEntry::make('ispconfigs_web')
|
||||||
->label('Données ISPConfig Web')
|
->label(__('members.ispconfig.web_data'))
|
||||||
->state(fn(?Membership $record) => $record?->member?->ispconfigs()
|
->state(fn (?Membership $record) => $record?->member?->ispconfigs()
|
||||||
->where('type', IspconfigType::WEB)
|
->where('type', IspconfigType::WEB)
|
||||||
->get()
|
->get()
|
||||||
->map(fn($ispconfig) => $ispconfig->toArray())
|
->map(fn ($ispconfig) => $ispconfig->toArray())
|
||||||
->all()
|
->all()
|
||||||
)
|
)
|
||||||
->schema([
|
->schema([
|
||||||
TextEntry::make('data.domain_id')
|
TextEntry::make('data.domain_id')
|
||||||
->label('ID ISPConfig'),
|
->label(__('members.ispconfig.id')),
|
||||||
|
|
||||||
TextEntry::make('data.domain')
|
TextEntry::make('data.domain')
|
||||||
->label('Domaine'),
|
->label(__('members.ispconfig.domain')),
|
||||||
|
|
||||||
TextEntry::make('data.active')
|
TextEntry::make('data.active')
|
||||||
->label('État')
|
->label(__('members.ispconfig.state'))
|
||||||
->formatStateUsing(fn($state) => $state === 'y' ? 'Activé' : 'Désactivé'
|
->formatStateUsing(fn ($state) => $state === 'y'
|
||||||
|
? __('members.ispconfig.enabled')
|
||||||
|
: __('members.ispconfig.disabled')
|
||||||
),
|
),
|
||||||
|
|
||||||
ViewEntry::make('data')
|
ViewEntry::make('data')
|
||||||
->label('JSON')
|
->label('JSON')
|
||||||
->view('filament.components.json-viewer')
|
->view('filament.components.json-viewer')
|
||||||
->viewData(fn($state) => [
|
->viewData(fn ($state) => [
|
||||||
'data' => $state,
|
'data' => $state,
|
||||||
])
|
])
|
||||||
->columnSpanFull(),
|
->columnSpanFull(),
|
||||||
])
|
])
|
||||||
->columns(3),
|
->columns(3),
|
||||||
])
|
])
|
||||||
->visible(fn(?Membership $record) => $record?->member?->ispconfigs()
|
->visible(fn (?Membership $record) => $record?->member?->ispconfigs()
|
||||||
->where('type', IspconfigType::WEB)
|
->where('type', IspconfigType::WEB)
|
||||||
->exists() ?? false
|
->exists() ?? false
|
||||||
),
|
),
|
||||||
|
|
||||||
/*
|
Section::make(__('memberships.sections.nextcloud'))
|
||||||
| Compte(s) NextCloud (lecture seule)
|
|
||||||
*/
|
|
||||||
Section::make('NextCloud')
|
|
||||||
->afterHeader([
|
->afterHeader([
|
||||||
ServiceToggleAction::forService('nextcloud'),
|
ServiceToggleAction::forService('nextcloud'),
|
||||||
])
|
])
|
||||||
->collapsible()
|
->collapsible()
|
||||||
->schema([
|
->schema([
|
||||||
RepeatableEntry::make('nextcloud_accounts')
|
RepeatableEntry::make('nextcloud_accounts')
|
||||||
->label('Données NextCloud')
|
->label(__('members.ispconfig.nextcloud_data'))
|
||||||
->state(fn(?Membership $record) => $record?->member?->nextcloudAccounts()
|
->state(fn (?Membership $record) => $record?->member?->nextcloudAccounts()
|
||||||
->get()
|
->get()
|
||||||
->map(fn($nextcloudAccount) => $nextcloudAccount->toArray())
|
->map(fn ($nextcloudAccount) => $nextcloudAccount->toArray())
|
||||||
->all()
|
->all()
|
||||||
)
|
)
|
||||||
->schema([
|
->schema([
|
||||||
TextEntry::make('nextcloud_user_id')
|
TextEntry::make('nextcloud_user_id')
|
||||||
->label('Id Nextcloud'),
|
->label(__('members.ispconfig.nextcloud_id')),
|
||||||
|
|
||||||
TextEntry::make('data.displayname')
|
TextEntry::make('data.displayname')
|
||||||
->label('Nom de l\'utilisateur'),
|
->label(__('members.ispconfig.display_name')),
|
||||||
|
|
||||||
TextEntry::make('data.enabled')
|
TextEntry::make('data.enabled')
|
||||||
->label('État')
|
->label(__('members.ispconfig.state'))
|
||||||
->formatStateUsing(fn($state) => $state == 'true' ? 'Activé' : 'Désactivé'
|
->formatStateUsing(fn ($state) => $state == 'true'
|
||||||
|
? __('members.ispconfig.enabled')
|
||||||
|
: __('members.ispconfig.disabled')
|
||||||
),
|
),
|
||||||
|
|
||||||
ViewEntry::make('data')
|
ViewEntry::make('data')
|
||||||
->label('JSON')
|
->label('JSON')
|
||||||
->view('filament.components.json-viewer')
|
->view('filament.components.json-viewer')
|
||||||
->viewData(fn($state) => [
|
->viewData(fn ($state) => [
|
||||||
'data' => $state,
|
'data' => $state,
|
||||||
])
|
])
|
||||||
->columnSpanFull(),
|
->columnSpanFull(),
|
||||||
])
|
])
|
||||||
->columns(3),
|
->columns(3),
|
||||||
])
|
])
|
||||||
->visible(fn(?Membership $record) => $record?->member?->nextcloudAccounts()
|
->visible(fn (?Membership $record) => $record?->member?->nextcloudAccounts()
|
||||||
->exists() ?? false
|
->exists() ?? false
|
||||||
),
|
),
|
||||||
]),
|
]),
|
||||||
@@ -234,7 +229,7 @@ class MembershipForm
|
|||||||
*/
|
*/
|
||||||
Grid::make(1)
|
Grid::make(1)
|
||||||
->schema([
|
->schema([
|
||||||
Section::make('Statut')
|
Section::make(__('memberships.sections.status'))
|
||||||
->schema([
|
->schema([
|
||||||
Select::make('status')
|
Select::make('status')
|
||||||
->label(Membership::getAttributeLabel('status'))
|
->label(Membership::getAttributeLabel('status'))
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ use Filament\Tables\Enums\FiltersLayout;
|
|||||||
use Filament\Tables\Filters\QueryBuilder;
|
use Filament\Tables\Filters\QueryBuilder;
|
||||||
use Filament\Tables\Filters\QueryBuilder\Constraints\DateConstraint;
|
use Filament\Tables\Filters\QueryBuilder\Constraints\DateConstraint;
|
||||||
use Filament\Tables\Filters\QueryBuilder\Constraints\SelectConstraint;
|
use Filament\Tables\Filters\QueryBuilder\Constraints\SelectConstraint;
|
||||||
use Filament\Tables\Filters\SelectFilter;
|
|
||||||
use Filament\Tables\Table;
|
use Filament\Tables\Table;
|
||||||
|
|
||||||
class MembershipsTable
|
class MembershipsTable
|
||||||
@@ -84,29 +83,27 @@ class MembershipsTable
|
|||||||
'amount',
|
'amount',
|
||||||
])
|
])
|
||||||
->filters([
|
->filters([
|
||||||
// Filtres pour status, date de début et date de fin, status de paiement
|
|
||||||
|
|
||||||
QueryBuilder::make()
|
QueryBuilder::make()
|
||||||
->constraints([
|
->constraints([
|
||||||
SelectConstraint::make('status')
|
SelectConstraint::make('status')
|
||||||
->label('Statut de l\'adhésion')
|
->label(Membership::getAttributeLabel('status'))
|
||||||
->options([
|
->options([
|
||||||
'active' => 'Active',
|
'active' => Membership::getAttributeLabel('active'),
|
||||||
'expired' => 'Expirée',
|
'expired' => Membership::getAttributeLabel('expired'),
|
||||||
'pending' => 'En attente',
|
'pending' => Membership::getAttributeLabel('pending'),
|
||||||
]),
|
]),
|
||||||
DateConstraint::make('start_date')
|
DateConstraint::make('start_date')
|
||||||
->label('Date de début'),
|
->label(Membership::getAttributeLabel('start_date')),
|
||||||
DateConstraint::make('end_date')
|
DateConstraint::make('end_date')
|
||||||
->label('Date de fin'),
|
->label(Membership::getAttributeLabel('end_date')),
|
||||||
SelectConstraint::make('payment_status')
|
SelectConstraint::make('payment_status')
|
||||||
->label('Statut de paiement')
|
->label(Membership::getAttributeLabel('payment_status'))
|
||||||
->options([
|
->options([
|
||||||
'paid' => 'Payée',
|
'paid' => Membership::getAttributeLabel('paid'),
|
||||||
'unpaid' => 'Impayée',
|
'unpaid' => Membership::getAttributeLabel('unpaid'),
|
||||||
'partial' => 'Partiellement payée'
|
'partial' => Membership::getAttributeLabel('partial'),
|
||||||
]),
|
]),
|
||||||
]),
|
]),
|
||||||
], layout: FiltersLayout::Modal)
|
], layout: FiltersLayout::Modal)
|
||||||
->recordActions([
|
->recordActions([
|
||||||
EditAction::make(),
|
EditAction::make(),
|
||||||
|
|||||||
@@ -32,11 +32,15 @@ class NotificationTemplateForm
|
|||||||
TextInput::make('subject')
|
TextInput::make('subject')
|
||||||
->label(NotificationTemplate::getAttributeLabel('subject'))
|
->label(NotificationTemplate::getAttributeLabel('subject'))
|
||||||
->required()
|
->required()
|
||||||
->helperText('Variables : {member_name}, {expiry_date}'),
|
->helperText(fn (?NotificationTemplate $record) => $record?->variables
|
||||||
|
? NotificationTemplate::getAttributeLabel('variables').' : '.implode(', ', array_map(fn ($k) => '{'.$k.'}', array_keys($record->variables)))
|
||||||
|
: null),
|
||||||
RichEditor::make('body')
|
RichEditor::make('body')
|
||||||
->label(NotificationTemplate::getAttributeLabel('body'))
|
->label(NotificationTemplate::getAttributeLabel('body'))
|
||||||
->required()
|
->required()
|
||||||
->helperText('Variables : {member_name}, {expiry_date}')
|
->helperText(fn (?NotificationTemplate $record) => $record?->variables
|
||||||
|
? NotificationTemplate::getAttributeLabel('variables').' : '.implode(', ', array_map(fn ($k) => '{'.$k.'}', array_keys($record->variables)))
|
||||||
|
: null)
|
||||||
->columnSpanFull(),
|
->columnSpanFull(),
|
||||||
]),
|
]),
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -7,14 +7,12 @@ use App\Filament\Resources\Packages\Pages\EditPackage;
|
|||||||
use App\Filament\Resources\Packages\Pages\ListPackages;
|
use App\Filament\Resources\Packages\Pages\ListPackages;
|
||||||
use App\Filament\Resources\Packages\Schemas\PackageForm;
|
use App\Filament\Resources\Packages\Schemas\PackageForm;
|
||||||
use App\Filament\Resources\Packages\Tables\PackagesTable;
|
use App\Filament\Resources\Packages\Tables\PackagesTable;
|
||||||
|
use App\Models\Package;
|
||||||
use BackedEnum;
|
use BackedEnum;
|
||||||
use Filament\Resources\Resource;
|
use Filament\Resources\Resource;
|
||||||
use Filament\Schemas\Schema;
|
use Filament\Schemas\Schema;
|
||||||
use Filament\Support\Icons\Heroicon;
|
use Filament\Support\Icons\Heroicon;
|
||||||
use Filament\Tables\Table;
|
use Filament\Tables\Table;
|
||||||
use Illuminate\Database\Eloquent\Builder;
|
|
||||||
use Illuminate\Database\Eloquent\SoftDeletingScope;
|
|
||||||
use App\Models\Package;
|
|
||||||
|
|
||||||
class PackageResource extends Resource
|
class PackageResource extends Resource
|
||||||
{
|
{
|
||||||
@@ -24,6 +22,16 @@ class PackageResource extends Resource
|
|||||||
|
|
||||||
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedShoppingCart;
|
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedShoppingCart;
|
||||||
|
|
||||||
|
public static function getModelLabel(): string
|
||||||
|
{
|
||||||
|
return Package::getAttributeLabel('package');
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function getPluralModelLabel(): string
|
||||||
|
{
|
||||||
|
return Package::getAttributeLabel('packages');
|
||||||
|
}
|
||||||
|
|
||||||
public static function form(Schema $schema): Schema
|
public static function form(Schema $schema): Schema
|
||||||
{
|
{
|
||||||
return PackageForm::configure($schema);
|
return PackageForm::configure($schema);
|
||||||
|
|||||||
@@ -22,6 +22,16 @@ class ServiceResource extends Resource
|
|||||||
|
|
||||||
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedPuzzlePiece;
|
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedPuzzlePiece;
|
||||||
|
|
||||||
|
public static function getModelLabel(): string
|
||||||
|
{
|
||||||
|
return Service::getAttributeLabel('service');
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function getPluralModelLabel(): string
|
||||||
|
{
|
||||||
|
return Service::getAttributeLabel('services');
|
||||||
|
}
|
||||||
|
|
||||||
public static function form(Schema $schema): Schema
|
public static function form(Schema $schema): Schema
|
||||||
{
|
{
|
||||||
return ServiceForm::configure($schema);
|
return ServiceForm::configure($schema);
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ use App\Models\Service;
|
|||||||
use Filament\Actions\BulkActionGroup;
|
use Filament\Actions\BulkActionGroup;
|
||||||
use Filament\Actions\DeleteBulkAction;
|
use Filament\Actions\DeleteBulkAction;
|
||||||
use Filament\Actions\EditAction;
|
use Filament\Actions\EditAction;
|
||||||
use Filament\Support\Icons\Heroicon;
|
|
||||||
use Filament\Tables\Columns\IconColumn;
|
use Filament\Tables\Columns\IconColumn;
|
||||||
use Filament\Tables\Columns\TextColumn;
|
use Filament\Tables\Columns\TextColumn;
|
||||||
use Filament\Tables\Table;
|
use Filament\Tables\Table;
|
||||||
@@ -24,8 +23,8 @@ class ServicesTable
|
|||||||
->label(Service::getAttributeLabel('identifier'))
|
->label(Service::getAttributeLabel('identifier'))
|
||||||
->searchable(),
|
->searchable(),
|
||||||
IconColumn::make('icon')
|
IconColumn::make('icon')
|
||||||
->label('Icône')
|
->label(Service::getAttributeLabel('icon'))
|
||||||
->icon(fn (Service $record) => 'heroicon-o-' . $record->icon),
|
->icon(fn (Service $record) => 'heroicon-o-'.$record->icon),
|
||||||
TextColumn::make('created_at')
|
TextColumn::make('created_at')
|
||||||
->dateTime()
|
->dateTime()
|
||||||
->sortable()
|
->sortable()
|
||||||
|
|||||||
@@ -3,9 +3,44 @@
|
|||||||
namespace App\Filament\Resources\Users\Pages;
|
namespace App\Filament\Resources\Users\Pages;
|
||||||
|
|
||||||
use App\Filament\Resources\Users\UserResource;
|
use App\Filament\Resources\Users\UserResource;
|
||||||
|
use App\Models\User;
|
||||||
|
use App\Notifications\AdminInvitationNotification;
|
||||||
use Filament\Resources\Pages\CreateRecord;
|
use Filament\Resources\Pages\CreateRecord;
|
||||||
|
use Illuminate\Support\Facades\Log;
|
||||||
|
use Illuminate\Support\Facades\Password;
|
||||||
|
use Illuminate\Support\Str;
|
||||||
|
|
||||||
class CreateUser extends CreateRecord
|
class CreateUser extends CreateRecord
|
||||||
{
|
{
|
||||||
protected static string $resource = UserResource::class;
|
protected static string $resource = UserResource::class;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generate a random password if none was provided, so the invitation
|
||||||
|
* flow can proceed without requiring the admin to set one manually.
|
||||||
|
*
|
||||||
|
* @param array<string, mixed> $data
|
||||||
|
* @return array<string, mixed>
|
||||||
|
*/
|
||||||
|
protected function mutateFormDataBeforeCreate(array $data): array
|
||||||
|
{
|
||||||
|
if (empty($data['password'])) {
|
||||||
|
$data['password'] = Str::random(32);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $data;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Send an invitation email after the user is created so they can
|
||||||
|
* set their own password via the admin panel reset flow.
|
||||||
|
*/
|
||||||
|
protected function afterCreate(): void
|
||||||
|
{
|
||||||
|
/** @var User $user */
|
||||||
|
$user = $this->record;
|
||||||
|
$token = Password::broker()->createToken($user);
|
||||||
|
|
||||||
|
$user->notify(new AdminInvitationNotification($token));
|
||||||
|
Log::info('User invited: '.$user->email);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ class UserForm
|
|||||||
->required(),
|
->required(),
|
||||||
TextInput::make('email')
|
TextInput::make('email')
|
||||||
->label(User::getAttributeLabel('email'))
|
->label(User::getAttributeLabel('email'))
|
||||||
->label('Email address')
|
|
||||||
->email()
|
->email()
|
||||||
->required(),
|
->required(),
|
||||||
DateTimePicker::make('email_verified_at')
|
DateTimePicker::make('email_verified_at')
|
||||||
@@ -28,14 +27,19 @@ class UserForm
|
|||||||
TextInput::make('password')
|
TextInput::make('password')
|
||||||
->label(User::getAttributeLabel('password'))
|
->label(User::getAttributeLabel('password'))
|
||||||
->password()
|
->password()
|
||||||
|
->revealable()
|
||||||
->dehydrated(fn ($state) => filled($state))
|
->dehydrated(fn ($state) => filled($state))
|
||||||
->dehydrateStateUsing(fn ($state) => Hash::make($state)),
|
->dehydrateStateUsing(fn ($state) => Hash::make($state))
|
||||||
|
->hint(fn (string $operation) => $operation === 'create'
|
||||||
|
? __('users.hints.password_create')
|
||||||
|
: __('users.hints.password_edit'))
|
||||||
|
->hintIcon('heroicon-m-information-circle'),
|
||||||
Select::make('role')
|
Select::make('role')
|
||||||
->label(User::getAttributeLabel('role'))
|
->label(User::getAttributeLabel('role'))
|
||||||
->relationship('roles', 'name')
|
->relationship('roles', 'name')
|
||||||
->multiple()
|
->multiple()
|
||||||
->preload()
|
->preload()
|
||||||
->searchable()
|
->searchable(),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Filament\Resources\Users\Tables;
|
namespace App\Filament\Resources\Users\Tables;
|
||||||
|
|
||||||
|
use App\Models\User;
|
||||||
use Filament\Actions\BulkActionGroup;
|
use Filament\Actions\BulkActionGroup;
|
||||||
use Filament\Actions\DeleteBulkAction;
|
use Filament\Actions\DeleteBulkAction;
|
||||||
use Filament\Actions\EditAction;
|
use Filament\Actions\EditAction;
|
||||||
@@ -15,11 +16,13 @@ class UsersTable
|
|||||||
return $table
|
return $table
|
||||||
->columns([
|
->columns([
|
||||||
TextColumn::make('name')
|
TextColumn::make('name')
|
||||||
|
->label(User::getAttributeLabel('name'))
|
||||||
->searchable(),
|
->searchable(),
|
||||||
TextColumn::make('email')
|
TextColumn::make('email')
|
||||||
->label('Email address')
|
->label(User::getAttributeLabel('email'))
|
||||||
->searchable(),
|
->searchable(),
|
||||||
TextColumn::make('email_verified_at')
|
TextColumn::make('email_verified_at')
|
||||||
|
->label(User::getAttributeLabel('email_verified_at'))
|
||||||
->dateTime()
|
->dateTime()
|
||||||
->sortable(),
|
->sortable(),
|
||||||
TextColumn::make('created_at')
|
TextColumn::make('created_at')
|
||||||
|
|||||||
@@ -3,14 +3,15 @@
|
|||||||
namespace App\Models;
|
namespace App\Models;
|
||||||
|
|
||||||
// use Illuminate\Contracts\Auth\MustVerifyEmail;
|
// use Illuminate\Contracts\Auth\MustVerifyEmail;
|
||||||
|
use App\Notifications\AdminPasswordResetNotification;
|
||||||
|
use Filament\Models\Contracts\FilamentUser;
|
||||||
|
use Filament\Panel;
|
||||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||||
use Illuminate\Notifications\Notifiable;
|
use Illuminate\Notifications\Notifiable;
|
||||||
use Laravel\Fortify\TwoFactorAuthenticatable;
|
use Laravel\Fortify\TwoFactorAuthenticatable;
|
||||||
use Spatie\Permission\Traits\HasRoles;
|
use Spatie\Permission\Traits\HasRoles;
|
||||||
use Filament\Models\Contracts\FilamentUser;
|
|
||||||
use Filament\Panel;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @property int $id
|
* @property int $id
|
||||||
@@ -29,6 +30,7 @@ use Filament\Panel;
|
|||||||
* @property-read int|null $permissions_count
|
* @property-read int|null $permissions_count
|
||||||
* @property-read \Illuminate\Database\Eloquent\Collection<int, \Spatie\Permission\Models\Role> $roles
|
* @property-read \Illuminate\Database\Eloquent\Collection<int, \Spatie\Permission\Models\Role> $roles
|
||||||
* @property-read int|null $roles_count
|
* @property-read int|null $roles_count
|
||||||
|
*
|
||||||
* @method static \Database\Factories\UserFactory factory($count = null, $state = [])
|
* @method static \Database\Factories\UserFactory factory($count = null, $state = [])
|
||||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|User newModelQuery()
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|User newModelQuery()
|
||||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|User newQuery()
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|User newQuery()
|
||||||
@@ -45,11 +47,12 @@ use Filament\Panel;
|
|||||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|User whereUpdatedAt($value)
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|User whereUpdatedAt($value)
|
||||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|User withoutPermission($permissions)
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|User withoutPermission($permissions)
|
||||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|User withoutRole($roles, $guard = null)
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|User withoutRole($roles, $guard = null)
|
||||||
|
*
|
||||||
* @mixin \Eloquent
|
* @mixin \Eloquent
|
||||||
*/
|
*/
|
||||||
class User extends Authenticatable implements FilamentUser
|
class User extends Authenticatable implements FilamentUser
|
||||||
{
|
{
|
||||||
use HasRoles, HasFactory, Notifiable, TwoFactorAuthenticatable;
|
use HasFactory, HasRoles, Notifiable, TwoFactorAuthenticatable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The attributes that are mass assignable.
|
* The attributes that are mass assignable.
|
||||||
@@ -87,12 +90,11 @@ class User extends Authenticatable implements FilamentUser
|
|||||||
|
|
||||||
public function canAccessPanel(Panel $panel): bool
|
public function canAccessPanel(Panel $panel): bool
|
||||||
{
|
{
|
||||||
//return str_ends_with($this->email, '@yourdomain.com') && $this->hasVerifiedEmail();
|
// return str_ends_with($this->email, '@yourdomain.com') && $this->hasVerifiedEmail();
|
||||||
//@todo : restreindre aux adresses retzien.fr pour la prod
|
// @todo : restreindre aux adresses retzien.fr pour la prod
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static function getAttributeLabel(string $attribute): string
|
public static function getAttributeLabel(string $attribute): string
|
||||||
{
|
{
|
||||||
return __("users.fields.$attribute");
|
return __("users.fields.$attribute");
|
||||||
@@ -103,6 +105,10 @@ class User extends Authenticatable implements FilamentUser
|
|||||||
return __("roles.fields.' . $role");
|
return __("roles.fields.' . $role");
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
|
public function sendPasswordResetNotification($token): void
|
||||||
|
{
|
||||||
|
$this->notify(new AdminPasswordResetNotification($token));
|
||||||
|
}
|
||||||
|
|
||||||
public function members(): hasMany
|
public function members(): hasMany
|
||||||
{
|
{
|
||||||
|
|||||||
44
app/Notifications/AdminInvitationNotification.php
Normal file
44
app/Notifications/AdminInvitationNotification.php
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Notifications;
|
||||||
|
|
||||||
|
use App\Models\NotificationTemplate;
|
||||||
|
use Filament\Facades\Filament;
|
||||||
|
use Illuminate\Bus\Queueable;
|
||||||
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||||
|
use Illuminate\Notifications\Messages\MailMessage;
|
||||||
|
use Illuminate\Notifications\Notification;
|
||||||
|
|
||||||
|
class AdminInvitationNotification extends Notification implements ShouldQueue
|
||||||
|
{
|
||||||
|
use Queueable;
|
||||||
|
|
||||||
|
public function __construct(protected string $token) {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array<int, string>
|
||||||
|
*/
|
||||||
|
public function via(object $notifiable): array
|
||||||
|
{
|
||||||
|
return ['mail'];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function toMail(object $notifiable): MailMessage
|
||||||
|
{
|
||||||
|
$template = NotificationTemplate::findByIdentifier('admin_invitation');
|
||||||
|
$url = Filament::getPanel('admin')->getResetPasswordUrl($this->token, $notifiable);
|
||||||
|
|
||||||
|
$vars = [
|
||||||
|
'name' => $notifiable->name,
|
||||||
|
'url' => $url,
|
||||||
|
'app_name' => config('app.name'),
|
||||||
|
'expire_minutes' => config('auth.passwords.users.expire'),
|
||||||
|
];
|
||||||
|
|
||||||
|
return (new MailMessage)
|
||||||
|
->subject($template->renderSubject($vars))
|
||||||
|
->view('notifications.mail-template', [
|
||||||
|
'body' => $template->renderBody($vars),
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
||||||
44
app/Notifications/AdminPasswordResetNotification.php
Normal file
44
app/Notifications/AdminPasswordResetNotification.php
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Notifications;
|
||||||
|
|
||||||
|
use App\Models\NotificationTemplate;
|
||||||
|
use Filament\Facades\Filament;
|
||||||
|
use Illuminate\Bus\Queueable;
|
||||||
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||||
|
use Illuminate\Notifications\Messages\MailMessage;
|
||||||
|
use Illuminate\Notifications\Notification;
|
||||||
|
|
||||||
|
class AdminPasswordResetNotification extends Notification implements ShouldQueue
|
||||||
|
{
|
||||||
|
use Queueable;
|
||||||
|
|
||||||
|
public function __construct(protected string $token) {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array<int, string>
|
||||||
|
*/
|
||||||
|
public function via(object $notifiable): array
|
||||||
|
{
|
||||||
|
return ['mail'];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function toMail(object $notifiable): MailMessage
|
||||||
|
{
|
||||||
|
$template = NotificationTemplate::findByIdentifier('admin_password_reset');
|
||||||
|
$url = Filament::getPanel('admin')->getResetPasswordUrl($this->token, $notifiable);
|
||||||
|
|
||||||
|
$vars = [
|
||||||
|
'name' => $notifiable->name,
|
||||||
|
'url' => $url,
|
||||||
|
'app_name' => config('app.name'),
|
||||||
|
'expire_minutes' => config('auth.passwords.users.expire'),
|
||||||
|
];
|
||||||
|
|
||||||
|
return (new MailMessage)
|
||||||
|
->subject($template->renderSubject($vars))
|
||||||
|
->view('notifications.mail-template', [
|
||||||
|
'body' => $template->renderBody($vars),
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -3,9 +3,9 @@
|
|||||||
namespace App\Providers\Filament;
|
namespace App\Providers\Filament;
|
||||||
|
|
||||||
use Andreia\FilamentNordTheme\FilamentNordThemePlugin;
|
use Andreia\FilamentNordTheme\FilamentNordThemePlugin;
|
||||||
use BezhanSalleh\FilamentShield\FilamentShieldPlugin;
|
|
||||||
use App\Filament\Resources\Members\Widgets\MemberCount;
|
use App\Filament\Resources\Members\Widgets\MemberCount;
|
||||||
use App\Filament\Resources\Memberships\Widgets\MembershipsChart;
|
use App\Filament\Resources\Memberships\Widgets\MembershipsChart;
|
||||||
|
use BezhanSalleh\FilamentShield\FilamentShieldPlugin;
|
||||||
use Filament\Http\Middleware\Authenticate;
|
use Filament\Http\Middleware\Authenticate;
|
||||||
use Filament\Http\Middleware\AuthenticateSession;
|
use Filament\Http\Middleware\AuthenticateSession;
|
||||||
use Filament\Http\Middleware\DisableBladeIconComponents;
|
use Filament\Http\Middleware\DisableBladeIconComponents;
|
||||||
@@ -33,6 +33,8 @@ class AdminPanelProvider extends PanelProvider
|
|||||||
->id('admin')
|
->id('admin')
|
||||||
->path('admin')
|
->path('admin')
|
||||||
->login()
|
->login()
|
||||||
|
->passwordReset()
|
||||||
|
->profile(isSimple: false)
|
||||||
->colors([
|
->colors([
|
||||||
'primary' => Color::Rose,
|
'primary' => Color::Rose,
|
||||||
])
|
])
|
||||||
@@ -46,7 +48,7 @@ class AdminPanelProvider extends PanelProvider
|
|||||||
AccountWidget::class,
|
AccountWidget::class,
|
||||||
FilamentInfoWidget::class,
|
FilamentInfoWidget::class,
|
||||||
MemberCount::class,
|
MemberCount::class,
|
||||||
//MembershipsChart::class,
|
// MembershipsChart::class,
|
||||||
])
|
])
|
||||||
->middleware([
|
->middleware([
|
||||||
EncryptCookies::class,
|
EncryptCookies::class,
|
||||||
|
|||||||
222
app/Services/ListMonk/ListMonkService.php
Normal file
222
app/Services/ListMonk/ListMonkService.php
Normal file
@@ -0,0 +1,222 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Services\ListMonk;
|
||||||
|
|
||||||
|
use Illuminate\Http\Client\ConnectionException;
|
||||||
|
use Illuminate\Http\Client\PendingRequest;
|
||||||
|
use Illuminate\Support\Facades\Http;
|
||||||
|
|
||||||
|
class ListMonkService
|
||||||
|
{
|
||||||
|
protected PendingRequest $http;
|
||||||
|
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->http = Http::withBasicAuth(
|
||||||
|
config('services.listmonk.username'),
|
||||||
|
config('services.listmonk.password')
|
||||||
|
)
|
||||||
|
->withHeaders(['Accept' => 'application/json'])
|
||||||
|
->baseUrl(config('services.listmonk.base_url').'/api');
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// Lists
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieve all mailing lists.
|
||||||
|
*
|
||||||
|
* @throws ConnectionException
|
||||||
|
*/
|
||||||
|
public function getLists(): array
|
||||||
|
{
|
||||||
|
return $this->http
|
||||||
|
->get('/lists', ['per_page' => 'all'])
|
||||||
|
->json('data.results') ?? [];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieve a single list by its ID.
|
||||||
|
*
|
||||||
|
* @throws ConnectionException
|
||||||
|
*/
|
||||||
|
public function getList(int $listId): ?array
|
||||||
|
{
|
||||||
|
$response = $this->http->get("/lists/{$listId}");
|
||||||
|
|
||||||
|
if (! $response->successful()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $response->json('data');
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// Subscribers
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieve subscribers with optional pagination.
|
||||||
|
*
|
||||||
|
* @throws ConnectionException
|
||||||
|
*/
|
||||||
|
public function getSubscribers(int $page = 1, int $perPage = 100): array
|
||||||
|
{
|
||||||
|
return $this->http
|
||||||
|
->get('/subscribers', [
|
||||||
|
'page' => $page,
|
||||||
|
'per_page' => $perPage,
|
||||||
|
])
|
||||||
|
->json('data.results') ?? [];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieve a single subscriber by their Listmonk ID.
|
||||||
|
*
|
||||||
|
* @throws ConnectionException
|
||||||
|
*/
|
||||||
|
public function getSubscriber(int $subscriberId): ?array
|
||||||
|
{
|
||||||
|
$response = $this->http->get("/subscribers/{$subscriberId}");
|
||||||
|
|
||||||
|
if (! $response->successful()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $response->json('data');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Find a subscriber by their email address.
|
||||||
|
*
|
||||||
|
* @throws ConnectionException
|
||||||
|
*/
|
||||||
|
public function getSubscriberByEmail(string $email): ?array
|
||||||
|
{
|
||||||
|
$results = $this->http
|
||||||
|
->get('/subscribers', ['query' => "subscribers.email = '{$email}'"])
|
||||||
|
->json('data.results') ?? [];
|
||||||
|
|
||||||
|
return $results[0] ?? null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new subscriber and enrol them in the given lists.
|
||||||
|
*
|
||||||
|
* @param array<int> $listIds IDs of the lists to subscribe to.
|
||||||
|
* @param array<string, mixed> $attribs Custom attributes (e.g. language preference).
|
||||||
|
*
|
||||||
|
* @throws ConnectionException
|
||||||
|
*/
|
||||||
|
public function createSubscriber(
|
||||||
|
string $email,
|
||||||
|
string $name,
|
||||||
|
array $listIds = [],
|
||||||
|
array $attribs = [],
|
||||||
|
string $status = 'enabled',
|
||||||
|
): ?array {
|
||||||
|
$response = $this->http->post('/subscribers', [
|
||||||
|
'email' => $email,
|
||||||
|
'name' => $name,
|
||||||
|
'status' => $status,
|
||||||
|
'lists' => $listIds,
|
||||||
|
'attribs' => $attribs,
|
||||||
|
]);
|
||||||
|
|
||||||
|
if (! $response->successful()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $response->json('data');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update an existing subscriber's information.
|
||||||
|
*
|
||||||
|
* @param array<int> $listIds
|
||||||
|
* @param array<string, mixed> $attribs
|
||||||
|
*
|
||||||
|
* @throws ConnectionException
|
||||||
|
*/
|
||||||
|
public function updateSubscriber(
|
||||||
|
int $subscriberId,
|
||||||
|
string $email,
|
||||||
|
string $name,
|
||||||
|
array $listIds = [],
|
||||||
|
array $attribs = [],
|
||||||
|
string $status = 'enabled',
|
||||||
|
): bool {
|
||||||
|
$response = $this->http->put("/subscribers/{$subscriberId}", [
|
||||||
|
'email' => $email,
|
||||||
|
'name' => $name,
|
||||||
|
'status' => $status,
|
||||||
|
'lists' => $listIds,
|
||||||
|
'attribs' => $attribs,
|
||||||
|
]);
|
||||||
|
|
||||||
|
return $response->successful();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Subscribe or unsubscribe a set of subscribers from lists.
|
||||||
|
*
|
||||||
|
* @param array<int> $subscriberIds
|
||||||
|
* @param array<int> $listIds
|
||||||
|
* @param string $action subscribe | unsubscribe
|
||||||
|
* @param string $status confirmed | unconfirmed
|
||||||
|
*
|
||||||
|
* @throws ConnectionException
|
||||||
|
*/
|
||||||
|
public function updateSubscriberLists(
|
||||||
|
array $subscriberIds,
|
||||||
|
array $listIds,
|
||||||
|
string $action = 'subscribe',
|
||||||
|
string $status = 'confirmed',
|
||||||
|
): bool {
|
||||||
|
$response = $this->http->put('/subscribers/lists', [
|
||||||
|
'ids' => $subscriberIds,
|
||||||
|
'action' => $action,
|
||||||
|
'status' => $status,
|
||||||
|
'list_ids' => $listIds,
|
||||||
|
]);
|
||||||
|
|
||||||
|
return $response->successful();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add a subscriber to the blocklist.
|
||||||
|
*
|
||||||
|
* @throws ConnectionException
|
||||||
|
*/
|
||||||
|
public function blocklistSubscriber(int $subscriberId): bool
|
||||||
|
{
|
||||||
|
return $this->http
|
||||||
|
->put("/subscribers/{$subscriberId}/blocklist")
|
||||||
|
->successful();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Permanently delete a subscriber.
|
||||||
|
*
|
||||||
|
* @throws ConnectionException
|
||||||
|
*/
|
||||||
|
public function deleteSubscriber(int $subscriberId): bool
|
||||||
|
{
|
||||||
|
return $this->http
|
||||||
|
->delete("/subscribers/{$subscriberId}")
|
||||||
|
->successful();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Send an opt-in confirmation email to a subscriber.
|
||||||
|
*
|
||||||
|
* @throws ConnectionException
|
||||||
|
*/
|
||||||
|
public function sendOptin(int $subscriberId): bool
|
||||||
|
{
|
||||||
|
return $this->http
|
||||||
|
->post("/subscribers/{$subscriberId}/optin")
|
||||||
|
->successful();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -145,7 +145,7 @@ return [
|
|||||||
|
|
||||||
'features' => [
|
'features' => [
|
||||||
// Features::registration(),
|
// Features::registration(),
|
||||||
// Features::resetPasswords(),
|
Features::resetPasswords(),
|
||||||
// Features::emailVerification(),
|
// Features::emailVerification(),
|
||||||
// Features::updateProfileInformation(),
|
// Features::updateProfileInformation(),
|
||||||
// Features::updatePasswords(),
|
// Features::updatePasswords(),
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'default' => env('LOG_CHANNEL', 'daily'),
|
'default' => env('LOG_CHANNEL', 'stack'),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@@ -63,6 +63,7 @@ return [
|
|||||||
'path' => storage_path('logs/laravel.log'),
|
'path' => storage_path('logs/laravel.log'),
|
||||||
'level' => env('LOG_LEVEL', 'debug'),
|
'level' => env('LOG_LEVEL', 'debug'),
|
||||||
'replace_placeholders' => true,
|
'replace_placeholders' => true,
|
||||||
|
'days' => 30,
|
||||||
],
|
],
|
||||||
|
|
||||||
'daily' => [
|
'daily' => [
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ return [
|
|||||||
'htaccess_url' => env('DOLIBARR_URL_HTACCESS'),
|
'htaccess_url' => env('DOLIBARR_URL_HTACCESS'),
|
||||||
'username' => env('DOLIBARR_USERNAME'),
|
'username' => env('DOLIBARR_USERNAME'),
|
||||||
'password' => env('DOLIBARR_PWD'),
|
'password' => env('DOLIBARR_PWD'),
|
||||||
'api_key' => env('DOLIBARR_APIKEY')
|
'api_key' => env('DOLIBARR_APIKEY'),
|
||||||
],
|
],
|
||||||
'ispconfig' => [
|
'ispconfig' => [
|
||||||
'servers' => [
|
'servers' => [
|
||||||
@@ -71,6 +71,11 @@ return [
|
|||||||
'nextcloud' => [
|
'nextcloud' => [
|
||||||
'url' => env('NEXTCLOUD_URL'),
|
'url' => env('NEXTCLOUD_URL'),
|
||||||
'user' => env('NEXTCLOUD_USERNAME'),
|
'user' => env('NEXTCLOUD_USERNAME'),
|
||||||
'password' => env('NEXTCLOUD_PASSWORD')
|
'password' => env('NEXTCLOUD_PASSWORD'),
|
||||||
|
],
|
||||||
|
'listmonk' => [
|
||||||
|
'base_url' => env('LISTMONK_URL'),
|
||||||
|
'username' => env('LISTMONK_USERNAME'),
|
||||||
|
'password' => env('LISTMONK_PASSWORD'),
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -25,5 +25,46 @@ class NotificationTemplateSeeder extends Seeder
|
|||||||
'is_active' => true,
|
'is_active' => true,
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
NotificationTemplate::updateOrCreate(
|
||||||
|
['identifier' => 'admin_invitation'],
|
||||||
|
[
|
||||||
|
'name' => 'Invitation administrateur',
|
||||||
|
'subject' => 'Bienvenue sur {app_name} — Configurez votre mot de passe',
|
||||||
|
'body' => '<p>Bonjour {name},</p>'
|
||||||
|
.'<p>Un administrateur a créé un compte pour vous sur {app_name}.</p>'
|
||||||
|
.'<p>Cliquez sur le lien ci-dessous pour configurer votre mot de passe et accéder au back office.</p>'
|
||||||
|
.'<p><a href="{url}">Configurer mon mot de passe</a></p>'
|
||||||
|
.'<p>Ce lien expire dans {expire_minutes} minutes.</p>'
|
||||||
|
.'<p>Si vous n\'attendiez pas cette invitation, vous pouvez ignorer cet e-mail en toute sécurité.</p>',
|
||||||
|
'variables' => [
|
||||||
|
'name' => 'Nom de l\'utilisateur',
|
||||||
|
'url' => 'URL de configuration du mot de passe',
|
||||||
|
'app_name' => 'Nom de l\'application',
|
||||||
|
'expire_minutes' => 'Durée de validité du lien (minutes)',
|
||||||
|
],
|
||||||
|
'is_active' => true,
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
|
NotificationTemplate::updateOrCreate(
|
||||||
|
['identifier' => 'admin_password_reset'],
|
||||||
|
[
|
||||||
|
'name' => 'Réinitialisation de mot de passe',
|
||||||
|
'subject' => 'Réinitialiser votre mot de passe — {app_name}',
|
||||||
|
'body' => '<p>Bonjour {name},</p>'
|
||||||
|
.'<p>Vous recevez cet e-mail car une demande de réinitialisation de mot de passe a été effectuée pour votre compte.</p>'
|
||||||
|
.'<p><a href="{url}">Réinitialiser mon mot de passe</a></p>'
|
||||||
|
.'<p>Ce lien expire dans {expire_minutes} minutes.</p>'
|
||||||
|
.'<p>Si vous n\'avez pas demandé de réinitialisation de mot de passe, aucune action supplémentaire n\'est requise.</p>',
|
||||||
|
'variables' => [
|
||||||
|
'name' => 'Nom de l\'utilisateur',
|
||||||
|
'url' => 'URL de réinitialisation du mot de passe',
|
||||||
|
'app_name' => 'Nom de l\'application',
|
||||||
|
'expire_minutes' => 'Durée de validité du lien (minutes)',
|
||||||
|
],
|
||||||
|
'is_active' => true,
|
||||||
|
]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,4 +23,40 @@ return [
|
|||||||
'updated_at' => 'Updated at',
|
'updated_at' => 'Updated at',
|
||||||
'deleted_at' => 'Deleted at',
|
'deleted_at' => 'Deleted at',
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'tabs' => [
|
||||||
|
'general_info' => 'General information',
|
||||||
|
'modules' => 'Modules',
|
||||||
|
],
|
||||||
|
|
||||||
|
'sections' => [
|
||||||
|
'personal_info' => 'Personal information',
|
||||||
|
'administrative_info' => 'Administrative information',
|
||||||
|
'contact_info' => 'Contact details',
|
||||||
|
'status' => 'Status',
|
||||||
|
'actions' => 'Actions',
|
||||||
|
'ispconfig_mail' => 'ISPConfig Mail',
|
||||||
|
'ispconfig_web' => 'Web Hosting',
|
||||||
|
'nextcloud' => 'NextCloud',
|
||||||
|
],
|
||||||
|
|
||||||
|
'ispconfig' => [
|
||||||
|
'mail_data' => 'ISPConfig Mail data',
|
||||||
|
'web_data' => 'ISPConfig Web data',
|
||||||
|
'nextcloud_data' => 'NextCloud data',
|
||||||
|
'email' => 'Email address',
|
||||||
|
'id' => 'ISPConfig ID',
|
||||||
|
'quota' => 'Quota',
|
||||||
|
'domain' => 'Domain',
|
||||||
|
'state' => 'State',
|
||||||
|
'enabled' => 'Enabled',
|
||||||
|
'disabled' => 'Disabled',
|
||||||
|
'nextcloud_id' => 'Nextcloud ID',
|
||||||
|
'display_name' => 'Display name',
|
||||||
|
],
|
||||||
|
|
||||||
|
'actions' => [
|
||||||
|
'send_payment_mail' => 'Send payment email',
|
||||||
|
'send_renewal_mail' => 'Send follow-up email',
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,27 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
'membership' => 'Membership',
|
|
||||||
'memberships' => 'Memberships',
|
|
||||||
'member' => 'Member',
|
|
||||||
'members' => 'Members',
|
|
||||||
'member_id' => 'Member ID',
|
|
||||||
'admin_id' => 'Created by',
|
|
||||||
'status' => 'Status',
|
|
||||||
'pending' => 'Pending',
|
|
||||||
'active' => 'Active',
|
|
||||||
'expired' => 'Expired',
|
|
||||||
'start_date' => 'Start date',
|
|
||||||
'end_date' => 'End date',
|
|
||||||
'amount' => 'Amount',
|
|
||||||
'payment_status' => 'Payment status',
|
|
||||||
'paid' => 'Paid',
|
|
||||||
'unpaid' => 'Unpaid',
|
|
||||||
'partial' => 'Partially paid',
|
|
||||||
'created_at' => 'Created at',
|
|
||||||
'updated_at' => 'Updated at',
|
|
||||||
'subscription' => [
|
|
||||||
'success' => 'Your subscription has been successfully sent. We will contact you as soon as possible.',
|
|
||||||
'error' => 'An error occurred while sending your subscription.',
|
|
||||||
]
|
|
||||||
];
|
|
||||||
52
lang/en/memberships.php
Normal file
52
lang/en/memberships.php
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
'fields' => [
|
||||||
|
'membership' => 'Membership',
|
||||||
|
'memberships' => 'Memberships',
|
||||||
|
'member' => 'Member',
|
||||||
|
'members' => 'Members',
|
||||||
|
'member_id' => 'Member',
|
||||||
|
'select_member' => 'Select a member...',
|
||||||
|
'select_author' => 'Select an author...',
|
||||||
|
'admin_id' => 'Created by',
|
||||||
|
'status' => 'Status',
|
||||||
|
'pending' => 'Pending',
|
||||||
|
'active' => 'Active',
|
||||||
|
'expired' => 'Expired',
|
||||||
|
'package_id' => 'Package',
|
||||||
|
'select_package' => 'Select a package...',
|
||||||
|
'start_date' => 'Start date',
|
||||||
|
'end_date' => 'End date',
|
||||||
|
'amount' => 'Amount',
|
||||||
|
'payment_status' => 'Payment status',
|
||||||
|
'paid' => 'Paid',
|
||||||
|
'unpaid' => 'Unpaid',
|
||||||
|
'partial' => 'Partially paid',
|
||||||
|
'services' => 'Services',
|
||||||
|
'created_at' => 'Created at',
|
||||||
|
'updated_at' => 'Updated at',
|
||||||
|
'subscription' => [
|
||||||
|
'success' => 'Your subscription has been successfully submitted. We will contact you as soon as possible.',
|
||||||
|
'error' => 'An error occurred while submitting your subscription.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
|
||||||
|
'tabs' => [
|
||||||
|
'general_info' => 'General information',
|
||||||
|
'modules' => 'Modules',
|
||||||
|
],
|
||||||
|
|
||||||
|
'sections' => [
|
||||||
|
'member' => 'Member',
|
||||||
|
'transaction' => 'Transaction details',
|
||||||
|
'status' => 'Status',
|
||||||
|
'ispconfig_mail' => 'ISPConfig Mail',
|
||||||
|
'ispconfig_web' => 'Web Hosting',
|
||||||
|
'nextcloud' => 'NextCloud',
|
||||||
|
],
|
||||||
|
|
||||||
|
'actions' => [
|
||||||
|
'view_profile' => 'View member profile',
|
||||||
|
],
|
||||||
|
];
|
||||||
23
lang/en/modal.php
Normal file
23
lang/en/modal.php
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
|
||||||
|
'confirmation' => 'Are you sure you want to delete?',
|
||||||
|
|
||||||
|
'actions' => [
|
||||||
|
|
||||||
|
'cancel' => [
|
||||||
|
'label' => 'Cancel',
|
||||||
|
],
|
||||||
|
|
||||||
|
'confirm' => [
|
||||||
|
'label' => 'Confirm',
|
||||||
|
],
|
||||||
|
|
||||||
|
'submit' => [
|
||||||
|
'label' => 'Submit',
|
||||||
|
],
|
||||||
|
|
||||||
|
],
|
||||||
|
|
||||||
|
];
|
||||||
14
lang/en/notification_templates.php
Normal file
14
lang/en/notification_templates.php
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
'fields' => [
|
||||||
|
'singular_name' => 'Email Template',
|
||||||
|
'plural_name' => 'Email Templates',
|
||||||
|
'identifier' => 'Identifier',
|
||||||
|
'name' => 'Name',
|
||||||
|
'subject' => 'Subject',
|
||||||
|
'body' => 'Content',
|
||||||
|
'variables' => 'Available variables',
|
||||||
|
'is_active' => 'Active',
|
||||||
|
],
|
||||||
|
];
|
||||||
@@ -8,6 +8,11 @@ return [
|
|||||||
'email' => 'Email',
|
'email' => 'Email',
|
||||||
'email_verified_at' => 'Email verified at',
|
'email_verified_at' => 'Email verified at',
|
||||||
'password' => 'Password',
|
'password' => 'Password',
|
||||||
'role' => 'Role'
|
'role' => 'Role',
|
||||||
]
|
],
|
||||||
|
|
||||||
|
'hints' => [
|
||||||
|
'password_create' => 'Leave empty to send an invitation email.',
|
||||||
|
'password_edit' => 'Leave empty to keep the current password.',
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -36,7 +36,43 @@ return [
|
|||||||
'stats' => [
|
'stats' => [
|
||||||
'name' => 'Nouveaux Membres',
|
'name' => 'Nouveaux Membres',
|
||||||
'description' => 'Nombre de nouveaux membres par an',
|
'description' => 'Nombre de nouveaux membres par an',
|
||||||
]
|
],
|
||||||
]
|
],
|
||||||
|
],
|
||||||
|
|
||||||
|
'tabs' => [
|
||||||
|
'general_info' => 'Informations générales',
|
||||||
|
'modules' => 'Modules',
|
||||||
|
],
|
||||||
|
|
||||||
|
'sections' => [
|
||||||
|
'personal_info' => 'Informations personnelles',
|
||||||
|
'administrative_info' => 'Informations administratives',
|
||||||
|
'contact_info' => 'Coordonnées',
|
||||||
|
'status' => 'Statut',
|
||||||
|
'actions' => 'Actions',
|
||||||
|
'ispconfig_mail' => 'Messagerie ISPConfig',
|
||||||
|
'ispconfig_web' => 'Hébergements Web',
|
||||||
|
'nextcloud' => 'NextCloud',
|
||||||
|
],
|
||||||
|
|
||||||
|
'ispconfig' => [
|
||||||
|
'mail_data' => 'Données ISPConfig Mail',
|
||||||
|
'web_data' => 'Données ISPConfig Web',
|
||||||
|
'nextcloud_data' => 'Données NextCloud',
|
||||||
|
'email' => 'Adresse email',
|
||||||
|
'id' => 'ID ISPConfig',
|
||||||
|
'quota' => 'Quota',
|
||||||
|
'domain' => 'Domaine',
|
||||||
|
'state' => 'État',
|
||||||
|
'enabled' => 'Activé',
|
||||||
|
'disabled' => 'Désactivé',
|
||||||
|
'nextcloud_id' => 'Id Nextcloud',
|
||||||
|
'display_name' => 'Nom de l\'utilisateur',
|
||||||
|
],
|
||||||
|
|
||||||
|
'actions' => [
|
||||||
|
'send_payment_mail' => 'Envoyer le mail de paiement',
|
||||||
|
'send_renewal_mail' => 'Envoyer un mail de relance',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -29,7 +29,24 @@ return [
|
|||||||
'subscription' => [
|
'subscription' => [
|
||||||
'success' => 'Votre inscription a bien été envoyée. Nous vous recontacterons dans les plus brefs délais.',
|
'success' => 'Votre inscription a bien été envoyée. Nous vous recontacterons dans les plus brefs délais.',
|
||||||
'error' => 'Une erreur est survenue lors de l\'envoi de votre inscription.',
|
'error' => 'Une erreur est survenue lors de l\'envoi de votre inscription.',
|
||||||
]
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'tabs' => [
|
||||||
|
'general_info' => 'Informations générales',
|
||||||
|
'modules' => 'Modules',
|
||||||
|
],
|
||||||
|
|
||||||
|
'sections' => [
|
||||||
|
'member' => 'Adhérent',
|
||||||
|
'transaction' => 'Informations de transaction',
|
||||||
|
'status' => 'Statut',
|
||||||
|
'ispconfig_mail' => 'Messagerie ISPConfig',
|
||||||
|
'ispconfig_web' => 'Hébergements Web',
|
||||||
|
'nextcloud' => 'NextCloud',
|
||||||
|
],
|
||||||
|
|
||||||
|
'actions' => [
|
||||||
|
'view_profile' => 'Voir le profil du membre',
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -8,6 +8,6 @@ return [
|
|||||||
'name' => 'Nom',
|
'name' => 'Nom',
|
||||||
'description' => 'Description',
|
'description' => 'Description',
|
||||||
'url' => 'URL',
|
'url' => 'URL',
|
||||||
'icon' => 'Icon',
|
'icon' => 'Icône',
|
||||||
]
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -8,6 +8,11 @@ return [
|
|||||||
'email' => 'Email',
|
'email' => 'Email',
|
||||||
'email_verified_at' => 'Email vérifié le',
|
'email_verified_at' => 'Email vérifié le',
|
||||||
'password' => 'Mot de passe (si changement)',
|
'password' => 'Mot de passe (si changement)',
|
||||||
'role' => 'Rôle'
|
'role' => 'Rôle',
|
||||||
]
|
],
|
||||||
|
|
||||||
|
'hints' => [
|
||||||
|
'password_create' => 'Laisser vide pour envoyer un email d\'invitation.',
|
||||||
|
'password_edit' => 'Laisser vide pour conserver le mot de passe actuel.',
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
import AuthenticatedSessionController from './AuthenticatedSessionController'
|
import AuthenticatedSessionController from './AuthenticatedSessionController'
|
||||||
import RegisteredUserController from './RegisteredUserController'
|
|
||||||
import PasswordResetLinkController from './PasswordResetLinkController'
|
import PasswordResetLinkController from './PasswordResetLinkController'
|
||||||
import NewPasswordController from './NewPasswordController'
|
import NewPasswordController from './NewPasswordController'
|
||||||
|
import RegisteredUserController from './RegisteredUserController'
|
||||||
import EmailVerificationPromptController from './EmailVerificationPromptController'
|
import EmailVerificationPromptController from './EmailVerificationPromptController'
|
||||||
import VerifyEmailController from './VerifyEmailController'
|
import VerifyEmailController from './VerifyEmailController'
|
||||||
import EmailVerificationNotificationController from './EmailVerificationNotificationController'
|
import EmailVerificationNotificationController from './EmailVerificationNotificationController'
|
||||||
|
|
||||||
const Auth = {
|
const Auth = {
|
||||||
AuthenticatedSessionController: Object.assign(AuthenticatedSessionController, AuthenticatedSessionController),
|
AuthenticatedSessionController: Object.assign(AuthenticatedSessionController, AuthenticatedSessionController),
|
||||||
RegisteredUserController: Object.assign(RegisteredUserController, RegisteredUserController),
|
|
||||||
PasswordResetLinkController: Object.assign(PasswordResetLinkController, PasswordResetLinkController),
|
PasswordResetLinkController: Object.assign(PasswordResetLinkController, PasswordResetLinkController),
|
||||||
NewPasswordController: Object.assign(NewPasswordController, NewPasswordController),
|
NewPasswordController: Object.assign(NewPasswordController, NewPasswordController),
|
||||||
|
RegisteredUserController: Object.assign(RegisteredUserController, RegisteredUserController),
|
||||||
EmailVerificationPromptController: Object.assign(EmailVerificationPromptController, EmailVerificationPromptController),
|
EmailVerificationPromptController: Object.assign(EmailVerificationPromptController, EmailVerificationPromptController),
|
||||||
VerifyEmailController: Object.assign(VerifyEmailController, VerifyEmailController),
|
VerifyEmailController: Object.assign(VerifyEmailController, VerifyEmailController),
|
||||||
EmailVerificationNotificationController: Object.assign(EmailVerificationNotificationController, EmailVerificationNotificationController),
|
EmailVerificationNotificationController: Object.assign(EmailVerificationNotificationController, EmailVerificationNotificationController),
|
||||||
|
|||||||
83
resources/js/actions/Filament/Auth/Pages/EditProfile.ts
Normal file
83
resources/js/actions/Filament/Auth/Pages/EditProfile.ts
Normal file
@@ -0,0 +1,83 @@
|
|||||||
|
import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../wayfinder'
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\EditProfile::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/EditProfile.php:7
|
||||||
|
* @route '/admin/profile'
|
||||||
|
*/
|
||||||
|
const EditProfile = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||||
|
url: EditProfile.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
EditProfile.definition = {
|
||||||
|
methods: ["get","head"],
|
||||||
|
url: '/admin/profile',
|
||||||
|
} satisfies RouteDefinition<["get","head"]>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\EditProfile::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/EditProfile.php:7
|
||||||
|
* @route '/admin/profile'
|
||||||
|
*/
|
||||||
|
EditProfile.url = (options?: RouteQueryOptions) => {
|
||||||
|
return EditProfile.definition.url + queryParams(options)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\EditProfile::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/EditProfile.php:7
|
||||||
|
* @route '/admin/profile'
|
||||||
|
*/
|
||||||
|
EditProfile.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||||
|
url: EditProfile.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\EditProfile::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/EditProfile.php:7
|
||||||
|
* @route '/admin/profile'
|
||||||
|
*/
|
||||||
|
EditProfile.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
||||||
|
url: EditProfile.url(options),
|
||||||
|
method: 'head',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\EditProfile::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/EditProfile.php:7
|
||||||
|
* @route '/admin/profile'
|
||||||
|
*/
|
||||||
|
const EditProfileForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||||
|
action: EditProfile.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\EditProfile::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/EditProfile.php:7
|
||||||
|
* @route '/admin/profile'
|
||||||
|
*/
|
||||||
|
EditProfileForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||||
|
action: EditProfile.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\EditProfile::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/EditProfile.php:7
|
||||||
|
* @route '/admin/profile'
|
||||||
|
*/
|
||||||
|
EditProfileForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||||
|
action: EditProfile.url({
|
||||||
|
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||||
|
_method: 'HEAD',
|
||||||
|
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
EditProfile.form = EditProfileForm
|
||||||
|
|
||||||
|
export default EditProfile
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../wayfinder'
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\RequestPasswordReset::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/RequestPasswordReset.php:7
|
||||||
|
* @route '/admin/password-reset/request'
|
||||||
|
*/
|
||||||
|
const RequestPasswordReset = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||||
|
url: RequestPasswordReset.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
RequestPasswordReset.definition = {
|
||||||
|
methods: ["get","head"],
|
||||||
|
url: '/admin/password-reset/request',
|
||||||
|
} satisfies RouteDefinition<["get","head"]>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\RequestPasswordReset::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/RequestPasswordReset.php:7
|
||||||
|
* @route '/admin/password-reset/request'
|
||||||
|
*/
|
||||||
|
RequestPasswordReset.url = (options?: RouteQueryOptions) => {
|
||||||
|
return RequestPasswordReset.definition.url + queryParams(options)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\RequestPasswordReset::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/RequestPasswordReset.php:7
|
||||||
|
* @route '/admin/password-reset/request'
|
||||||
|
*/
|
||||||
|
RequestPasswordReset.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||||
|
url: RequestPasswordReset.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\RequestPasswordReset::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/RequestPasswordReset.php:7
|
||||||
|
* @route '/admin/password-reset/request'
|
||||||
|
*/
|
||||||
|
RequestPasswordReset.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
||||||
|
url: RequestPasswordReset.url(options),
|
||||||
|
method: 'head',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\RequestPasswordReset::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/RequestPasswordReset.php:7
|
||||||
|
* @route '/admin/password-reset/request'
|
||||||
|
*/
|
||||||
|
const RequestPasswordResetForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||||
|
action: RequestPasswordReset.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\RequestPasswordReset::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/RequestPasswordReset.php:7
|
||||||
|
* @route '/admin/password-reset/request'
|
||||||
|
*/
|
||||||
|
RequestPasswordResetForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||||
|
action: RequestPasswordReset.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\RequestPasswordReset::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/RequestPasswordReset.php:7
|
||||||
|
* @route '/admin/password-reset/request'
|
||||||
|
*/
|
||||||
|
RequestPasswordResetForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||||
|
action: RequestPasswordReset.url({
|
||||||
|
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||||
|
_method: 'HEAD',
|
||||||
|
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
RequestPasswordReset.form = RequestPasswordResetForm
|
||||||
|
|
||||||
|
export default RequestPasswordReset
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../wayfinder'
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\ResetPassword::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/ResetPassword.php:7
|
||||||
|
* @route '/admin/password-reset/reset'
|
||||||
|
*/
|
||||||
|
const ResetPassword = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||||
|
url: ResetPassword.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
ResetPassword.definition = {
|
||||||
|
methods: ["get","head"],
|
||||||
|
url: '/admin/password-reset/reset',
|
||||||
|
} satisfies RouteDefinition<["get","head"]>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\ResetPassword::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/ResetPassword.php:7
|
||||||
|
* @route '/admin/password-reset/reset'
|
||||||
|
*/
|
||||||
|
ResetPassword.url = (options?: RouteQueryOptions) => {
|
||||||
|
return ResetPassword.definition.url + queryParams(options)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\ResetPassword::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/ResetPassword.php:7
|
||||||
|
* @route '/admin/password-reset/reset'
|
||||||
|
*/
|
||||||
|
ResetPassword.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||||
|
url: ResetPassword.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\ResetPassword::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/ResetPassword.php:7
|
||||||
|
* @route '/admin/password-reset/reset'
|
||||||
|
*/
|
||||||
|
ResetPassword.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
||||||
|
url: ResetPassword.url(options),
|
||||||
|
method: 'head',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\ResetPassword::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/ResetPassword.php:7
|
||||||
|
* @route '/admin/password-reset/reset'
|
||||||
|
*/
|
||||||
|
const ResetPasswordForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||||
|
action: ResetPassword.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\ResetPassword::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/ResetPassword.php:7
|
||||||
|
* @route '/admin/password-reset/reset'
|
||||||
|
*/
|
||||||
|
ResetPasswordForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||||
|
action: ResetPassword.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\ResetPassword::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/ResetPassword.php:7
|
||||||
|
* @route '/admin/password-reset/reset'
|
||||||
|
*/
|
||||||
|
ResetPasswordForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||||
|
action: ResetPassword.url({
|
||||||
|
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||||
|
_method: 'HEAD',
|
||||||
|
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
ResetPassword.form = ResetPasswordForm
|
||||||
|
|
||||||
|
export default ResetPassword
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
import RequestPasswordReset from './RequestPasswordReset'
|
||||||
|
import ResetPassword from './ResetPassword'
|
||||||
|
|
||||||
|
const PasswordReset = {
|
||||||
|
RequestPasswordReset: Object.assign(RequestPasswordReset, RequestPasswordReset),
|
||||||
|
ResetPassword: Object.assign(ResetPassword, ResetPassword),
|
||||||
|
}
|
||||||
|
|
||||||
|
export default PasswordReset
|
||||||
@@ -1,7 +1,11 @@
|
|||||||
import Login from './Login'
|
import Login from './Login'
|
||||||
|
import PasswordReset from './PasswordReset'
|
||||||
|
import EditProfile from './EditProfile'
|
||||||
|
|
||||||
const Pages = {
|
const Pages = {
|
||||||
Login: Object.assign(Login, Login),
|
Login: Object.assign(Login, Login),
|
||||||
|
PasswordReset: Object.assign(PasswordReset, PasswordReset),
|
||||||
|
EditProfile: Object.assign(EditProfile, EditProfile),
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Pages
|
export default Pages
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../wayfinder'
|
import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../wayfinder'
|
||||||
|
import passwordReset from './password-reset'
|
||||||
/**
|
/**
|
||||||
* @see \Filament\Auth\Pages\Login::__invoke
|
* @see \Filament\Auth\Pages\Login::__invoke
|
||||||
* @see vendor/filament/filament/src/Auth/Pages/Login.php:7
|
* @see vendor/filament/filament/src/Auth/Pages/Login.php:7
|
||||||
@@ -136,9 +137,92 @@ logoutForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> =>
|
|||||||
|
|
||||||
logout.form = logoutForm
|
logout.form = logoutForm
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\EditProfile::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/EditProfile.php:7
|
||||||
|
* @route '/admin/profile'
|
||||||
|
*/
|
||||||
|
export const profile = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||||
|
url: profile.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
profile.definition = {
|
||||||
|
methods: ["get","head"],
|
||||||
|
url: '/admin/profile',
|
||||||
|
} satisfies RouteDefinition<["get","head"]>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\EditProfile::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/EditProfile.php:7
|
||||||
|
* @route '/admin/profile'
|
||||||
|
*/
|
||||||
|
profile.url = (options?: RouteQueryOptions) => {
|
||||||
|
return profile.definition.url + queryParams(options)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\EditProfile::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/EditProfile.php:7
|
||||||
|
* @route '/admin/profile'
|
||||||
|
*/
|
||||||
|
profile.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||||
|
url: profile.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\EditProfile::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/EditProfile.php:7
|
||||||
|
* @route '/admin/profile'
|
||||||
|
*/
|
||||||
|
profile.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
||||||
|
url: profile.url(options),
|
||||||
|
method: 'head',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\EditProfile::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/EditProfile.php:7
|
||||||
|
* @route '/admin/profile'
|
||||||
|
*/
|
||||||
|
const profileForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||||
|
action: profile.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\EditProfile::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/EditProfile.php:7
|
||||||
|
* @route '/admin/profile'
|
||||||
|
*/
|
||||||
|
profileForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||||
|
action: profile.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\EditProfile::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/EditProfile.php:7
|
||||||
|
* @route '/admin/profile'
|
||||||
|
*/
|
||||||
|
profileForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||||
|
action: profile.url({
|
||||||
|
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||||
|
_method: 'HEAD',
|
||||||
|
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
profile.form = profileForm
|
||||||
|
|
||||||
const auth = {
|
const auth = {
|
||||||
login: Object.assign(login, login),
|
login: Object.assign(login, login),
|
||||||
|
passwordReset: Object.assign(passwordReset, passwordReset),
|
||||||
logout: Object.assign(logout, logout),
|
logout: Object.assign(logout, logout),
|
||||||
|
profile: Object.assign(profile, profile),
|
||||||
}
|
}
|
||||||
|
|
||||||
export default auth
|
export default auth
|
||||||
169
resources/js/routes/filament/admin/auth/password-reset/index.ts
Normal file
169
resources/js/routes/filament/admin/auth/password-reset/index.ts
Normal file
@@ -0,0 +1,169 @@
|
|||||||
|
import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../wayfinder'
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\RequestPasswordReset::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/RequestPasswordReset.php:7
|
||||||
|
* @route '/admin/password-reset/request'
|
||||||
|
*/
|
||||||
|
export const request = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||||
|
url: request.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
request.definition = {
|
||||||
|
methods: ["get","head"],
|
||||||
|
url: '/admin/password-reset/request',
|
||||||
|
} satisfies RouteDefinition<["get","head"]>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\RequestPasswordReset::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/RequestPasswordReset.php:7
|
||||||
|
* @route '/admin/password-reset/request'
|
||||||
|
*/
|
||||||
|
request.url = (options?: RouteQueryOptions) => {
|
||||||
|
return request.definition.url + queryParams(options)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\RequestPasswordReset::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/RequestPasswordReset.php:7
|
||||||
|
* @route '/admin/password-reset/request'
|
||||||
|
*/
|
||||||
|
request.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||||
|
url: request.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\RequestPasswordReset::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/RequestPasswordReset.php:7
|
||||||
|
* @route '/admin/password-reset/request'
|
||||||
|
*/
|
||||||
|
request.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
||||||
|
url: request.url(options),
|
||||||
|
method: 'head',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\RequestPasswordReset::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/RequestPasswordReset.php:7
|
||||||
|
* @route '/admin/password-reset/request'
|
||||||
|
*/
|
||||||
|
const requestForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||||
|
action: request.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\RequestPasswordReset::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/RequestPasswordReset.php:7
|
||||||
|
* @route '/admin/password-reset/request'
|
||||||
|
*/
|
||||||
|
requestForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||||
|
action: request.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\RequestPasswordReset::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/RequestPasswordReset.php:7
|
||||||
|
* @route '/admin/password-reset/request'
|
||||||
|
*/
|
||||||
|
requestForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||||
|
action: request.url({
|
||||||
|
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||||
|
_method: 'HEAD',
|
||||||
|
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
request.form = requestForm
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\ResetPassword::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/ResetPassword.php:7
|
||||||
|
* @route '/admin/password-reset/reset'
|
||||||
|
*/
|
||||||
|
export const reset = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||||
|
url: reset.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
reset.definition = {
|
||||||
|
methods: ["get","head"],
|
||||||
|
url: '/admin/password-reset/reset',
|
||||||
|
} satisfies RouteDefinition<["get","head"]>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\ResetPassword::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/ResetPassword.php:7
|
||||||
|
* @route '/admin/password-reset/reset'
|
||||||
|
*/
|
||||||
|
reset.url = (options?: RouteQueryOptions) => {
|
||||||
|
return reset.definition.url + queryParams(options)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\ResetPassword::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/ResetPassword.php:7
|
||||||
|
* @route '/admin/password-reset/reset'
|
||||||
|
*/
|
||||||
|
reset.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||||
|
url: reset.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\ResetPassword::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/ResetPassword.php:7
|
||||||
|
* @route '/admin/password-reset/reset'
|
||||||
|
*/
|
||||||
|
reset.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
||||||
|
url: reset.url(options),
|
||||||
|
method: 'head',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\ResetPassword::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/ResetPassword.php:7
|
||||||
|
* @route '/admin/password-reset/reset'
|
||||||
|
*/
|
||||||
|
const resetForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||||
|
action: reset.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\ResetPassword::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/ResetPassword.php:7
|
||||||
|
* @route '/admin/password-reset/reset'
|
||||||
|
*/
|
||||||
|
resetForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||||
|
action: reset.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \Filament\Auth\Pages\PasswordReset\ResetPassword::__invoke
|
||||||
|
* @see vendor/filament/filament/src/Auth/Pages/PasswordReset/ResetPassword.php:7
|
||||||
|
* @route '/admin/password-reset/reset'
|
||||||
|
*/
|
||||||
|
resetForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||||
|
action: reset.url({
|
||||||
|
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||||
|
_method: 'HEAD',
|
||||||
|
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
reset.form = resetForm
|
||||||
|
|
||||||
|
const passwordReset = {
|
||||||
|
request: Object.assign(request, request),
|
||||||
|
reset: Object.assign(reset, reset),
|
||||||
|
}
|
||||||
|
|
||||||
|
export default passwordReset
|
||||||
@@ -1,5 +1,297 @@
|
|||||||
import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition, applyUrlDefaults } from './../../wayfinder'
|
import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition, applyUrlDefaults } from './../../wayfinder'
|
||||||
import confirmD7e05f from './confirm'
|
import confirmD7e05f from './confirm'
|
||||||
|
/**
|
||||||
|
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::request
|
||||||
|
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:17
|
||||||
|
* @route '/forgot-password'
|
||||||
|
*/
|
||||||
|
export const request = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||||
|
url: request.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
request.definition = {
|
||||||
|
methods: ["get","head"],
|
||||||
|
url: '/forgot-password',
|
||||||
|
} satisfies RouteDefinition<["get","head"]>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::request
|
||||||
|
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:17
|
||||||
|
* @route '/forgot-password'
|
||||||
|
*/
|
||||||
|
request.url = (options?: RouteQueryOptions) => {
|
||||||
|
return request.definition.url + queryParams(options)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::request
|
||||||
|
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:17
|
||||||
|
* @route '/forgot-password'
|
||||||
|
*/
|
||||||
|
request.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||||
|
url: request.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::request
|
||||||
|
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:17
|
||||||
|
* @route '/forgot-password'
|
||||||
|
*/
|
||||||
|
request.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
||||||
|
url: request.url(options),
|
||||||
|
method: 'head',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::request
|
||||||
|
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:17
|
||||||
|
* @route '/forgot-password'
|
||||||
|
*/
|
||||||
|
const requestForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||||
|
action: request.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::request
|
||||||
|
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:17
|
||||||
|
* @route '/forgot-password'
|
||||||
|
*/
|
||||||
|
requestForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||||
|
action: request.url(options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::request
|
||||||
|
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:17
|
||||||
|
* @route '/forgot-password'
|
||||||
|
*/
|
||||||
|
requestForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||||
|
action: request.url({
|
||||||
|
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||||
|
_method: 'HEAD',
|
||||||
|
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
request.form = requestForm
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \App\Http\Controllers\Auth\NewPasswordController::reset
|
||||||
|
* @see app/Http/Controllers/Auth/NewPasswordController.php:23
|
||||||
|
* @route '/reset-password/{token}'
|
||||||
|
*/
|
||||||
|
export const reset = (args: { token: string | number } | [token: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||||
|
url: reset.url(args, options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
reset.definition = {
|
||||||
|
methods: ["get","head"],
|
||||||
|
url: '/reset-password/{token}',
|
||||||
|
} satisfies RouteDefinition<["get","head"]>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \App\Http\Controllers\Auth\NewPasswordController::reset
|
||||||
|
* @see app/Http/Controllers/Auth/NewPasswordController.php:23
|
||||||
|
* @route '/reset-password/{token}'
|
||||||
|
*/
|
||||||
|
reset.url = (args: { token: string | number } | [token: string | number ] | string | number, options?: RouteQueryOptions) => {
|
||||||
|
if (typeof args === 'string' || typeof args === 'number') {
|
||||||
|
args = { token: args }
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Array.isArray(args)) {
|
||||||
|
args = {
|
||||||
|
token: args[0],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
args = applyUrlDefaults(args)
|
||||||
|
|
||||||
|
const parsedArgs = {
|
||||||
|
token: args.token,
|
||||||
|
}
|
||||||
|
|
||||||
|
return reset.definition.url
|
||||||
|
.replace('{token}', parsedArgs.token.toString())
|
||||||
|
.replace(/\/+$/, '') + queryParams(options)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \App\Http\Controllers\Auth\NewPasswordController::reset
|
||||||
|
* @see app/Http/Controllers/Auth/NewPasswordController.php:23
|
||||||
|
* @route '/reset-password/{token}'
|
||||||
|
*/
|
||||||
|
reset.get = (args: { token: string | number } | [token: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||||
|
url: reset.url(args, options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \App\Http\Controllers\Auth\NewPasswordController::reset
|
||||||
|
* @see app/Http/Controllers/Auth/NewPasswordController.php:23
|
||||||
|
* @route '/reset-password/{token}'
|
||||||
|
*/
|
||||||
|
reset.head = (args: { token: string | number } | [token: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
||||||
|
url: reset.url(args, options),
|
||||||
|
method: 'head',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \App\Http\Controllers\Auth\NewPasswordController::reset
|
||||||
|
* @see app/Http/Controllers/Auth/NewPasswordController.php:23
|
||||||
|
* @route '/reset-password/{token}'
|
||||||
|
*/
|
||||||
|
const resetForm = (args: { token: string | number } | [token: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||||
|
action: reset.url(args, options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \App\Http\Controllers\Auth\NewPasswordController::reset
|
||||||
|
* @see app/Http/Controllers/Auth/NewPasswordController.php:23
|
||||||
|
* @route '/reset-password/{token}'
|
||||||
|
*/
|
||||||
|
resetForm.get = (args: { token: string | number } | [token: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||||
|
action: reset.url(args, options),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \App\Http\Controllers\Auth\NewPasswordController::reset
|
||||||
|
* @see app/Http/Controllers/Auth/NewPasswordController.php:23
|
||||||
|
* @route '/reset-password/{token}'
|
||||||
|
*/
|
||||||
|
resetForm.head = (args: { token: string | number } | [token: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||||
|
action: reset.url(args, {
|
||||||
|
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||||
|
_method: 'HEAD',
|
||||||
|
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
|
||||||
|
reset.form = resetForm
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::email
|
||||||
|
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:29
|
||||||
|
* @route '/forgot-password'
|
||||||
|
*/
|
||||||
|
export const email = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
|
||||||
|
url: email.url(options),
|
||||||
|
method: 'post',
|
||||||
|
})
|
||||||
|
|
||||||
|
email.definition = {
|
||||||
|
methods: ["post"],
|
||||||
|
url: '/forgot-password',
|
||||||
|
} satisfies RouteDefinition<["post"]>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::email
|
||||||
|
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:29
|
||||||
|
* @route '/forgot-password'
|
||||||
|
*/
|
||||||
|
email.url = (options?: RouteQueryOptions) => {
|
||||||
|
return email.definition.url + queryParams(options)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::email
|
||||||
|
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:29
|
||||||
|
* @route '/forgot-password'
|
||||||
|
*/
|
||||||
|
email.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
|
||||||
|
url: email.url(options),
|
||||||
|
method: 'post',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::email
|
||||||
|
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:29
|
||||||
|
* @route '/forgot-password'
|
||||||
|
*/
|
||||||
|
const emailForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||||
|
action: email.url(options),
|
||||||
|
method: 'post',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::email
|
||||||
|
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:29
|
||||||
|
* @route '/forgot-password'
|
||||||
|
*/
|
||||||
|
emailForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||||
|
action: email.url(options),
|
||||||
|
method: 'post',
|
||||||
|
})
|
||||||
|
|
||||||
|
email.form = emailForm
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \App\Http\Controllers\Auth\NewPasswordController::store
|
||||||
|
* @see app/Http/Controllers/Auth/NewPasswordController.php:36
|
||||||
|
* @route '/reset-password'
|
||||||
|
*/
|
||||||
|
export const store = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
|
||||||
|
url: store.url(options),
|
||||||
|
method: 'post',
|
||||||
|
})
|
||||||
|
|
||||||
|
store.definition = {
|
||||||
|
methods: ["post"],
|
||||||
|
url: '/reset-password',
|
||||||
|
} satisfies RouteDefinition<["post"]>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \App\Http\Controllers\Auth\NewPasswordController::store
|
||||||
|
* @see app/Http/Controllers/Auth/NewPasswordController.php:36
|
||||||
|
* @route '/reset-password'
|
||||||
|
*/
|
||||||
|
store.url = (options?: RouteQueryOptions) => {
|
||||||
|
return store.definition.url + queryParams(options)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \App\Http\Controllers\Auth\NewPasswordController::store
|
||||||
|
* @see app/Http/Controllers/Auth/NewPasswordController.php:36
|
||||||
|
* @route '/reset-password'
|
||||||
|
*/
|
||||||
|
store.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
|
||||||
|
url: store.url(options),
|
||||||
|
method: 'post',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \App\Http\Controllers\Auth\NewPasswordController::store
|
||||||
|
* @see app/Http/Controllers/Auth/NewPasswordController.php:36
|
||||||
|
* @route '/reset-password'
|
||||||
|
*/
|
||||||
|
const storeForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||||
|
action: store.url(options),
|
||||||
|
method: 'post',
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see \App\Http\Controllers\Auth\NewPasswordController::store
|
||||||
|
* @see app/Http/Controllers/Auth/NewPasswordController.php:36
|
||||||
|
* @route '/reset-password'
|
||||||
|
*/
|
||||||
|
storeForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||||
|
action: store.url(options),
|
||||||
|
method: 'post',
|
||||||
|
})
|
||||||
|
|
||||||
|
store.form = storeForm
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see \Laravel\Fortify\Http\Controllers\ConfirmablePasswordController::confirm
|
* @see \Laravel\Fortify\Http\Controllers\ConfirmablePasswordController::confirm
|
||||||
* @see vendor/laravel/fortify/src/Http/Controllers/ConfirmablePasswordController.php:40
|
* @see vendor/laravel/fortify/src/Http/Controllers/ConfirmablePasswordController.php:40
|
||||||
@@ -309,307 +601,15 @@ updateForm.put = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => (
|
|||||||
|
|
||||||
update.form = updateForm
|
update.form = updateForm
|
||||||
|
|
||||||
/**
|
|
||||||
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::request
|
|
||||||
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:17
|
|
||||||
* @route '/forgot-password'
|
|
||||||
*/
|
|
||||||
export const request = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
|
||||||
url: request.url(options),
|
|
||||||
method: 'get',
|
|
||||||
})
|
|
||||||
|
|
||||||
request.definition = {
|
|
||||||
methods: ["get","head"],
|
|
||||||
url: '/forgot-password',
|
|
||||||
} satisfies RouteDefinition<["get","head"]>
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::request
|
|
||||||
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:17
|
|
||||||
* @route '/forgot-password'
|
|
||||||
*/
|
|
||||||
request.url = (options?: RouteQueryOptions) => {
|
|
||||||
return request.definition.url + queryParams(options)
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::request
|
|
||||||
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:17
|
|
||||||
* @route '/forgot-password'
|
|
||||||
*/
|
|
||||||
request.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
|
||||||
url: request.url(options),
|
|
||||||
method: 'get',
|
|
||||||
})
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::request
|
|
||||||
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:17
|
|
||||||
* @route '/forgot-password'
|
|
||||||
*/
|
|
||||||
request.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
|
||||||
url: request.url(options),
|
|
||||||
method: 'head',
|
|
||||||
})
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::request
|
|
||||||
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:17
|
|
||||||
* @route '/forgot-password'
|
|
||||||
*/
|
|
||||||
const requestForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
|
||||||
action: request.url(options),
|
|
||||||
method: 'get',
|
|
||||||
})
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::request
|
|
||||||
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:17
|
|
||||||
* @route '/forgot-password'
|
|
||||||
*/
|
|
||||||
requestForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
|
||||||
action: request.url(options),
|
|
||||||
method: 'get',
|
|
||||||
})
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::request
|
|
||||||
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:17
|
|
||||||
* @route '/forgot-password'
|
|
||||||
*/
|
|
||||||
requestForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
|
||||||
action: request.url({
|
|
||||||
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
|
||||||
_method: 'HEAD',
|
|
||||||
...(options?.query ?? options?.mergeQuery ?? {}),
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
method: 'get',
|
|
||||||
})
|
|
||||||
|
|
||||||
request.form = requestForm
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::email
|
|
||||||
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:29
|
|
||||||
* @route '/forgot-password'
|
|
||||||
*/
|
|
||||||
export const email = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
|
|
||||||
url: email.url(options),
|
|
||||||
method: 'post',
|
|
||||||
})
|
|
||||||
|
|
||||||
email.definition = {
|
|
||||||
methods: ["post"],
|
|
||||||
url: '/forgot-password',
|
|
||||||
} satisfies RouteDefinition<["post"]>
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::email
|
|
||||||
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:29
|
|
||||||
* @route '/forgot-password'
|
|
||||||
*/
|
|
||||||
email.url = (options?: RouteQueryOptions) => {
|
|
||||||
return email.definition.url + queryParams(options)
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::email
|
|
||||||
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:29
|
|
||||||
* @route '/forgot-password'
|
|
||||||
*/
|
|
||||||
email.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
|
|
||||||
url: email.url(options),
|
|
||||||
method: 'post',
|
|
||||||
})
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::email
|
|
||||||
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:29
|
|
||||||
* @route '/forgot-password'
|
|
||||||
*/
|
|
||||||
const emailForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
|
||||||
action: email.url(options),
|
|
||||||
method: 'post',
|
|
||||||
})
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::email
|
|
||||||
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:29
|
|
||||||
* @route '/forgot-password'
|
|
||||||
*/
|
|
||||||
emailForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
|
||||||
action: email.url(options),
|
|
||||||
method: 'post',
|
|
||||||
})
|
|
||||||
|
|
||||||
email.form = emailForm
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see \App\Http\Controllers\Auth\NewPasswordController::reset
|
|
||||||
* @see app/Http/Controllers/Auth/NewPasswordController.php:23
|
|
||||||
* @route '/reset-password/{token}'
|
|
||||||
*/
|
|
||||||
export const reset = (args: { token: string | number } | [token: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
|
||||||
url: reset.url(args, options),
|
|
||||||
method: 'get',
|
|
||||||
})
|
|
||||||
|
|
||||||
reset.definition = {
|
|
||||||
methods: ["get","head"],
|
|
||||||
url: '/reset-password/{token}',
|
|
||||||
} satisfies RouteDefinition<["get","head"]>
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see \App\Http\Controllers\Auth\NewPasswordController::reset
|
|
||||||
* @see app/Http/Controllers/Auth/NewPasswordController.php:23
|
|
||||||
* @route '/reset-password/{token}'
|
|
||||||
*/
|
|
||||||
reset.url = (args: { token: string | number } | [token: string | number ] | string | number, options?: RouteQueryOptions) => {
|
|
||||||
if (typeof args === 'string' || typeof args === 'number') {
|
|
||||||
args = { token: args }
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Array.isArray(args)) {
|
|
||||||
args = {
|
|
||||||
token: args[0],
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
args = applyUrlDefaults(args)
|
|
||||||
|
|
||||||
const parsedArgs = {
|
|
||||||
token: args.token,
|
|
||||||
}
|
|
||||||
|
|
||||||
return reset.definition.url
|
|
||||||
.replace('{token}', parsedArgs.token.toString())
|
|
||||||
.replace(/\/+$/, '') + queryParams(options)
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see \App\Http\Controllers\Auth\NewPasswordController::reset
|
|
||||||
* @see app/Http/Controllers/Auth/NewPasswordController.php:23
|
|
||||||
* @route '/reset-password/{token}'
|
|
||||||
*/
|
|
||||||
reset.get = (args: { token: string | number } | [token: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
|
||||||
url: reset.url(args, options),
|
|
||||||
method: 'get',
|
|
||||||
})
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see \App\Http\Controllers\Auth\NewPasswordController::reset
|
|
||||||
* @see app/Http/Controllers/Auth/NewPasswordController.php:23
|
|
||||||
* @route '/reset-password/{token}'
|
|
||||||
*/
|
|
||||||
reset.head = (args: { token: string | number } | [token: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
|
||||||
url: reset.url(args, options),
|
|
||||||
method: 'head',
|
|
||||||
})
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see \App\Http\Controllers\Auth\NewPasswordController::reset
|
|
||||||
* @see app/Http/Controllers/Auth/NewPasswordController.php:23
|
|
||||||
* @route '/reset-password/{token}'
|
|
||||||
*/
|
|
||||||
const resetForm = (args: { token: string | number } | [token: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
|
||||||
action: reset.url(args, options),
|
|
||||||
method: 'get',
|
|
||||||
})
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see \App\Http\Controllers\Auth\NewPasswordController::reset
|
|
||||||
* @see app/Http/Controllers/Auth/NewPasswordController.php:23
|
|
||||||
* @route '/reset-password/{token}'
|
|
||||||
*/
|
|
||||||
resetForm.get = (args: { token: string | number } | [token: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
|
||||||
action: reset.url(args, options),
|
|
||||||
method: 'get',
|
|
||||||
})
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see \App\Http\Controllers\Auth\NewPasswordController::reset
|
|
||||||
* @see app/Http/Controllers/Auth/NewPasswordController.php:23
|
|
||||||
* @route '/reset-password/{token}'
|
|
||||||
*/
|
|
||||||
resetForm.head = (args: { token: string | number } | [token: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
|
||||||
action: reset.url(args, {
|
|
||||||
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
|
||||||
_method: 'HEAD',
|
|
||||||
...(options?.query ?? options?.mergeQuery ?? {}),
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
method: 'get',
|
|
||||||
})
|
|
||||||
|
|
||||||
reset.form = resetForm
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see \App\Http\Controllers\Auth\NewPasswordController::store
|
|
||||||
* @see app/Http/Controllers/Auth/NewPasswordController.php:36
|
|
||||||
* @route '/reset-password'
|
|
||||||
*/
|
|
||||||
export const store = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
|
|
||||||
url: store.url(options),
|
|
||||||
method: 'post',
|
|
||||||
})
|
|
||||||
|
|
||||||
store.definition = {
|
|
||||||
methods: ["post"],
|
|
||||||
url: '/reset-password',
|
|
||||||
} satisfies RouteDefinition<["post"]>
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see \App\Http\Controllers\Auth\NewPasswordController::store
|
|
||||||
* @see app/Http/Controllers/Auth/NewPasswordController.php:36
|
|
||||||
* @route '/reset-password'
|
|
||||||
*/
|
|
||||||
store.url = (options?: RouteQueryOptions) => {
|
|
||||||
return store.definition.url + queryParams(options)
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see \App\Http\Controllers\Auth\NewPasswordController::store
|
|
||||||
* @see app/Http/Controllers/Auth/NewPasswordController.php:36
|
|
||||||
* @route '/reset-password'
|
|
||||||
*/
|
|
||||||
store.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
|
|
||||||
url: store.url(options),
|
|
||||||
method: 'post',
|
|
||||||
})
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see \App\Http\Controllers\Auth\NewPasswordController::store
|
|
||||||
* @see app/Http/Controllers/Auth/NewPasswordController.php:36
|
|
||||||
* @route '/reset-password'
|
|
||||||
*/
|
|
||||||
const storeForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
|
||||||
action: store.url(options),
|
|
||||||
method: 'post',
|
|
||||||
})
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see \App\Http\Controllers\Auth\NewPasswordController::store
|
|
||||||
* @see app/Http/Controllers/Auth/NewPasswordController.php:36
|
|
||||||
* @route '/reset-password'
|
|
||||||
*/
|
|
||||||
storeForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
|
||||||
action: store.url(options),
|
|
||||||
method: 'post',
|
|
||||||
})
|
|
||||||
|
|
||||||
store.form = storeForm
|
|
||||||
|
|
||||||
const password = {
|
const password = {
|
||||||
|
request: Object.assign(request, request),
|
||||||
|
reset: Object.assign(reset, reset),
|
||||||
|
email: Object.assign(email, email),
|
||||||
|
store: Object.assign(store, store),
|
||||||
confirm: Object.assign(confirm, confirmD7e05f),
|
confirm: Object.assign(confirm, confirmD7e05f),
|
||||||
confirmation: Object.assign(confirmation, confirmation),
|
confirmation: Object.assign(confirmation, confirmation),
|
||||||
edit: Object.assign(edit, edit),
|
edit: Object.assign(edit, edit),
|
||||||
update: Object.assign(update, update),
|
update: Object.assign(update, update),
|
||||||
request: Object.assign(request, request),
|
|
||||||
email: Object.assign(email, email),
|
|
||||||
reset: Object.assign(reset, reset),
|
|
||||||
store: Object.assign(store, store),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default password
|
export default password
|
||||||
Reference in New Issue
Block a user