Chore: Upgrade to Laravel 12 + remove Mary and Jetstream dependencies (#141)
* docs: remove requirement for setting APP_KEY manually * optimize date picker * clean up modals * spot light working * reorganization * add lazy load * wip * remove filament * styling
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<x-guest-layout>
|
||||
<x-authentication-card>
|
||||
<x-layouts.guest>
|
||||
<x-ui.authentication-card>
|
||||
<x-slot name="logo">
|
||||
<div class="w-24 mb-10">
|
||||
<x-glyph-only-logo />
|
||||
<x-ui.logo />
|
||||
</div>
|
||||
</x-slot>
|
||||
|
||||
@@ -10,20 +10,20 @@
|
||||
{{ __('This is a secure area of the application. Please confirm your password before continuing.') }}
|
||||
</div>
|
||||
|
||||
<x-errors class="mb-4" />
|
||||
<x-ui.errors class="mb-4" />
|
||||
|
||||
<form method="POST" action="{{ route('password.confirm') }}">
|
||||
@csrf
|
||||
|
||||
<div>
|
||||
<x-input id="password" label="{{ __('Password') }}" class="block mt-1 w-full" type="password" name="password" required autocomplete="current-password" autofocus />
|
||||
<x-ui.input id="password" label="{{ __('Password') }}" class="block mt-1 w-full" type="password" name="password" required autocomplete="current-password" autofocus />
|
||||
</div>
|
||||
|
||||
<div class="flex justify-end mt-4">
|
||||
<x-button type="submit" class="btn-primary ms-4">
|
||||
<x-ui.button type="submit" class="btn-primary ms-4">
|
||||
{{ __('Confirm') }}
|
||||
</x-button>
|
||||
</x-ui.button>
|
||||
</div>
|
||||
</form>
|
||||
</x-authentication-card>
|
||||
</x-guest-layout>
|
||||
</x-ui.authentication-card>
|
||||
</x-layouts.guest>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<x-guest-layout>
|
||||
<x-authentication-card>
|
||||
<x-layouts.guest>
|
||||
<x-ui.authentication-card>
|
||||
<x-slot name="logo">
|
||||
<div class="w-24 mb-10">
|
||||
<x-glyph-only-logo />
|
||||
<x-ui.logo />
|
||||
</div>
|
||||
</x-slot>
|
||||
|
||||
@@ -11,26 +11,26 @@
|
||||
</div>
|
||||
|
||||
@session('status')
|
||||
<x-alert icon="o-envelope" class="alert-success mb-4">
|
||||
<x-ui.alert icon="o-envelope" class="alert-success mb-4">
|
||||
{{ $value }}
|
||||
</x-alert>
|
||||
</x-ui.alert>
|
||||
@endsession
|
||||
|
||||
<x-errors class="mb-4" />
|
||||
<x-ui.errors class="mb-4" />
|
||||
|
||||
<form method="POST" action="{{ route('password.email') }}">
|
||||
@csrf
|
||||
|
||||
<div class="block">
|
||||
|
||||
<x-input id="email" label="{{ __('Email') }}" class="block mt-1 w-full" type="email" name="email" :value="old('email')" required autofocus autocomplete="username" />
|
||||
<x-ui.input id="email" label="{{ __('Email') }}" class="block mt-1 w-full" type="email" name="email" :value="old('email')" required autofocus autocomplete="username" />
|
||||
</div>
|
||||
|
||||
<div class="flex items-center justify-end mt-4">
|
||||
<x-button class="btn-primary" type="submit">
|
||||
<x-ui.button class="btn-primary" type="submit">
|
||||
{{ __('Email Password Reset Link') }}
|
||||
</x-button>
|
||||
</x-ui.button>
|
||||
</div>
|
||||
</form>
|
||||
</x-authentication-card>
|
||||
</x-guest-layout>
|
||||
</x-ui.authentication-card>
|
||||
</x-layouts.guest>
|
||||
|
||||
@@ -6,10 +6,11 @@ use Illuminate\Support\Facades\Auth;
|
||||
use Livewire\Attributes\Rule;
|
||||
use Livewire\Volt\Component;
|
||||
|
||||
new class extends Component {
|
||||
|
||||
new class extends Component
|
||||
{
|
||||
// props
|
||||
public Portfolio $portfolio;
|
||||
|
||||
public User $user;
|
||||
|
||||
#[Rule('required|string')]
|
||||
@@ -41,30 +42,29 @@ new class extends Component {
|
||||
|
||||
return redirect(route('portfolio.show', ['portfolio' => $this->portfolio->id]));
|
||||
}
|
||||
|
||||
}; ?>
|
||||
|
||||
<x-form wire:submit="updateUserInformation" class="">
|
||||
|
||||
<div class="mt-2">
|
||||
|
||||
<x-input wire:model="name" label="{{ __('Name') }}" class="block mt-1 w-full" required autofocus />
|
||||
<x-ui.input wire:model="name" label="{{ __('Name') }}" class="block mt-1 w-full" required autofocus />
|
||||
</div>
|
||||
|
||||
<div class="mt-2">
|
||||
|
||||
<x-input wire:model="password" label="{{ __('Password') }}" class="block mt-1 w-full" type="password" required autocomplete="new-password" />
|
||||
<x-ui.input wire:model="password" label="{{ __('Password') }}" class="block mt-1 w-full" type="password" required autocomplete="new-password" />
|
||||
</div>
|
||||
|
||||
<div class="mt-2">
|
||||
|
||||
<x-input wire:model="password_confirmation" label="{{ __('Confirm Password') }}" class="block mt-1 w-full" type="password" required autocomplete="new-password" />
|
||||
<x-ui.input wire:model="password_confirmation" label="{{ __('Confirm Password') }}" class="block mt-1 w-full" type="password" required autocomplete="new-password" />
|
||||
</div>
|
||||
|
||||
<div class="flex items-center justify-end mt-2">
|
||||
|
||||
<x-button class="btn-primary" type="submit">
|
||||
<x-ui.button class="btn-primary" type="submit">
|
||||
{{ __('Get Started') }}
|
||||
</x-button>
|
||||
</x-ui.button>
|
||||
</div>
|
||||
</x-form>
|
||||
@@ -1,8 +1,8 @@
|
||||
<x-guest-layout>
|
||||
<x-authentication-card>
|
||||
<x-layouts.guest>
|
||||
<x-ui.authentication-card>
|
||||
<x-slot:logo>
|
||||
<div class="w-24 mb-10">
|
||||
<x-glyph-only-logo />
|
||||
<x-ui.logo />
|
||||
</div>
|
||||
</x-slot:logo>
|
||||
|
||||
@@ -14,5 +14,5 @@
|
||||
'user' => $user,
|
||||
])
|
||||
|
||||
</x-authentication-card>
|
||||
</x-guest-layout>
|
||||
</x-ui.authentication-card>
|
||||
</x-layouts.guest>
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
<x-guest-layout>
|
||||
<x-authentication-card>
|
||||
<x-layouts.guest>
|
||||
<x-ui.authentication-card>
|
||||
<x-slot name="logo">
|
||||
<div class="w-24 mb-10">
|
||||
<x-glyph-only-logo />
|
||||
<x-ui.logo />
|
||||
</div>
|
||||
</x-slot>
|
||||
|
||||
<x-errors class="mb-4" />
|
||||
<x-ui.errors class="mb-4" />
|
||||
|
||||
@session('status')
|
||||
<x-alert icon="o-envelope" class="alert-success mb-4">
|
||||
<x-ui.alert icon="o-envelope" class="alert-success mb-4">
|
||||
{{ $value }}
|
||||
</x-alert>
|
||||
</x-ui.alert>
|
||||
@endsession
|
||||
|
||||
<form method="POST" action="{{ route('login') }}">
|
||||
@@ -19,16 +19,16 @@
|
||||
|
||||
<div>
|
||||
|
||||
<x-input id="email" label="{{ __('Email') }}" class="block mt-1 w-full" type="email" name="email" :value="old('email')" required autofocus autocomplete="username" />
|
||||
<x-ui.input id="email" label="{{ __('Email') }}" class="block mt-1 w-full" type="email" name="email" :value="old('email')" required autofocus autocomplete="username" />
|
||||
</div>
|
||||
|
||||
<div class="mt-4">
|
||||
|
||||
<x-input id="password" label="{{ __('Password') }}" class="block mt-1 w-full" type="password" name="password" required autocomplete="current-password" />
|
||||
<x-ui.input id="password" label="{{ __('Password') }}" class="block mt-1 w-full" type="password" name="password" required autocomplete="current-password" />
|
||||
</div>
|
||||
|
||||
<div class="block mt-4">
|
||||
<x-checkbox id="remember_me" name="remember" class="text-sm" label="{{ __('Remember me') }}" />
|
||||
<x-ui.checkbox id="remember_me" name="remember" class="text-sm" label="{{ __('Remember me') }}" />
|
||||
</div>
|
||||
|
||||
<div class="flex items-center justify-end mt-4">
|
||||
@@ -38,26 +38,26 @@
|
||||
</a>
|
||||
@endif
|
||||
|
||||
<x-button type="submit" class="btn-primary ms-4" >
|
||||
<x-ui.button type="submit" class="btn-primary ms-4" >
|
||||
{{ __('Log in') }}
|
||||
</x-button>
|
||||
</x-ui.button>
|
||||
|
||||
</div>
|
||||
|
||||
@if (\Laravel\Fortify\Features::enabled('registration'))
|
||||
|
||||
<x-section-border />
|
||||
<x-ui.section-border />
|
||||
|
||||
<x-connected-accounts-login />
|
||||
<x-social.connected-accounts-login />
|
||||
|
||||
<x-button
|
||||
<x-ui.button
|
||||
link="{{ route('register') }}"
|
||||
class="btn-sm btn-block btn-outline btn-secondary my-1"
|
||||
>
|
||||
{{ __('Sign up with email') }}
|
||||
</x-button>
|
||||
</x-ui.button>
|
||||
|
||||
@endif
|
||||
</form>
|
||||
</x-authentication-card>
|
||||
</x-guest-layout>
|
||||
</x-ui.authentication-card>
|
||||
</x-layouts.guest>
|
||||
|
||||
@@ -1,41 +1,41 @@
|
||||
<x-guest-layout>
|
||||
<x-authentication-card>
|
||||
<x-layouts.guest>
|
||||
<x-ui.authentication-card>
|
||||
<x-slot name="logo">
|
||||
<div class="w-24 mb-10">
|
||||
<x-glyph-only-logo />
|
||||
<x-ui.logo />
|
||||
</div>
|
||||
</x-slot>
|
||||
|
||||
<x-errors class="mb-4" />
|
||||
<x-ui.errors class="mb-4" />
|
||||
|
||||
<form method="POST" action="{{ route('register') }}">
|
||||
@csrf
|
||||
|
||||
<div>
|
||||
|
||||
<x-input id="name" label="{{ __('Name') }}" class="block mt-1 w-full" type="text" name="name" :value="old('name')" required autofocus autocomplete="name" />
|
||||
<x-ui.input id="name" label="{{ __('Name') }}" class="block mt-1 w-full" type="text" name="name" :value="old('name')" required autofocus autocomplete="name" />
|
||||
</div>
|
||||
|
||||
<div class="mt-4">
|
||||
|
||||
<x-input id="email" label="{{ __('Email') }}" class="block mt-1 w-full" type="email" name="email" :value="old('email')" required autocomplete="username" />
|
||||
<x-ui.input id="email" label="{{ __('Email') }}" class="block mt-1 w-full" type="email" name="email" :value="old('email')" required autocomplete="username" />
|
||||
</div>
|
||||
|
||||
<div class="mt-4">
|
||||
|
||||
<x-input id="password" label="{{ __('Password') }}" class="block mt-1 w-full" type="password" name="password" required autocomplete="new-password" />
|
||||
<x-ui.input id="password" label="{{ __('Password') }}" class="block mt-1 w-full" type="password" name="password" required autocomplete="new-password" />
|
||||
</div>
|
||||
|
||||
<div class="mt-4">
|
||||
|
||||
<x-input id="password_confirmation" label="{{ __('Confirm Password') }}" class="block mt-1 w-full" type="password" name="password_confirmation" required autocomplete="new-password" />
|
||||
<x-ui.input id="password_confirmation" label="{{ __('Confirm Password') }}" class="block mt-1 w-full" type="password" name="password_confirmation" required autocomplete="new-password" />
|
||||
</div>
|
||||
|
||||
@if (! config('investbrain.self_hosted'))
|
||||
<div class="mt-4">
|
||||
<label>
|
||||
<div class="flex items-center">
|
||||
<x-checkbox name="terms" id="terms" required />
|
||||
<x-ui.checkbox name="terms" id="terms" required />
|
||||
|
||||
<div class="ms-2 text-sm">
|
||||
{!! __('I agree to the :terms_of_service and :privacy_policy', [
|
||||
@@ -53,10 +53,10 @@
|
||||
{{ __('Already registered?') }}
|
||||
</a>
|
||||
|
||||
<x-button type="submit" class="btn-primary ms-4">
|
||||
<x-ui.button type="submit" class="btn-primary ms-4">
|
||||
{{ __('Register') }}
|
||||
</x-button>
|
||||
</x-ui.button>
|
||||
</div>
|
||||
</form>
|
||||
</x-authentication-card>
|
||||
</x-guest-layout>
|
||||
</x-ui.authentication-card>
|
||||
</x-layouts.guest>
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<x-guest-layout>
|
||||
<x-authentication-card>
|
||||
<x-layouts.guest>
|
||||
<x-ui.authentication-card>
|
||||
<x-slot name="logo">
|
||||
<div class="w-24 mb-10">
|
||||
<x-glyph-only-logo />
|
||||
<x-ui.logo />
|
||||
</div>
|
||||
</x-slot>
|
||||
|
||||
<x-errors class="mb-4" />
|
||||
<x-ui.errors class="mb-4" />
|
||||
|
||||
<form method="POST" action="{{ route('password.update') }}">
|
||||
@csrf
|
||||
@@ -15,24 +15,24 @@
|
||||
|
||||
<div class="block">
|
||||
|
||||
<x-input id="email" label="{{ __('Email') }}" class="block mt-1 w-full" type="email" name="email" :value="old('email', $request->email)" required autofocus autocomplete="username" />
|
||||
<x-ui.input id="email" label="{{ __('Email') }}" class="block mt-1 w-full" type="email" name="email" :value="old('email', $request->email)" required autofocus autocomplete="username" />
|
||||
</div>
|
||||
|
||||
<div class="mt-4">
|
||||
|
||||
<x-input id="password" label="{{ __('Password') }}" class="block mt-1 w-full" type="password" name="password" required autocomplete="new-password" />
|
||||
<x-ui.input id="password" label="{{ __('Password') }}" class="block mt-1 w-full" type="password" name="password" required autocomplete="new-password" />
|
||||
</div>
|
||||
|
||||
<div class="mt-4">
|
||||
|
||||
<x-input id="password_confirmation" label="{{ __('Confirm Password') }}" class="block mt-1 w-full" type="password" name="password_confirmation" required autocomplete="new-password" />
|
||||
<x-ui.input id="password_confirmation" label="{{ __('Confirm Password') }}" class="block mt-1 w-full" type="password" name="password_confirmation" required autocomplete="new-password" />
|
||||
</div>
|
||||
|
||||
<div class="flex items-center justify-end mt-4">
|
||||
<x-button class="btn-primary" type="submit">
|
||||
<x-ui.button class="btn-primary" type="submit">
|
||||
{{ __('Reset Password') }}
|
||||
</x-button>
|
||||
</x-ui.button>
|
||||
</div>
|
||||
</form>
|
||||
</x-authentication-card>
|
||||
</x-guest-layout>
|
||||
</x-ui.authentication-card>
|
||||
</x-layouts.guest>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<x-guest-layout>
|
||||
<x-authentication-card>
|
||||
<x-layouts.guest>
|
||||
<x-ui.authentication-card>
|
||||
<x-slot name="logo">
|
||||
<div class="w-24 mb-10">
|
||||
<x-glyph-only-logo />
|
||||
<x-ui.logo />
|
||||
</div>
|
||||
</x-slot>
|
||||
|
||||
@@ -15,19 +15,19 @@
|
||||
{{ __('Please confirm access to your account by entering one of your emergency recovery codes.') }}
|
||||
</div>
|
||||
|
||||
<x-errors class="mb-4" />
|
||||
<x-ui.errors class="mb-4" />
|
||||
|
||||
<form method="POST" action="{{ route('two-factor.login') }}">
|
||||
@csrf
|
||||
|
||||
<div class="mt-4" x-show="! recovery">
|
||||
|
||||
<x-input id="code" label="{{ __('Code') }}" class="block mt-1 w-full" type="text" inputmode="numeric" name="code" autofocus x-ref="code" autocomplete="one-time-code" />
|
||||
<x-ui.input id="code" label="{{ __('Code') }}" class="block mt-1 w-full" type="text" inputmode="numeric" name="code" autofocus x-ref="code" autocomplete="one-time-code" />
|
||||
</div>
|
||||
|
||||
<div class="mt-4" x-cloak x-show="recovery">
|
||||
|
||||
<x-input id="recovery_code" label="{{ __('Recovery Code') }}" class="block mt-1 w-full" type="text" name="recovery_code" x-ref="recovery_code" autocomplete="one-time-code" />
|
||||
<x-ui.input id="recovery_code" label="{{ __('Recovery Code') }}" class="block mt-1 w-full" type="text" name="recovery_code" x-ref="recovery_code" autocomplete="one-time-code" />
|
||||
</div>
|
||||
|
||||
<div class="flex items-center justify-end mt-4">
|
||||
@@ -50,11 +50,11 @@
|
||||
{{ __('Use an authentication code') }}
|
||||
</button>
|
||||
|
||||
<x-button type="submit" class="btn-primary ms-4">
|
||||
<x-ui.button type="submit" class="btn-primary ms-4">
|
||||
{{ __('Log in') }}
|
||||
</x-button>
|
||||
</x-ui.button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</x-authentication-card>
|
||||
</x-guest-layout>
|
||||
</x-ui.authentication-card>
|
||||
</x-layouts.guest>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<x-guest-layout>
|
||||
<x-authentication-card>
|
||||
<x-layouts.guest>
|
||||
<x-ui.authentication-card>
|
||||
<x-slot name="logo">
|
||||
<div class="w-24 mb-10">
|
||||
<x-glyph-only-logo />
|
||||
<x-ui.logo />
|
||||
</div>
|
||||
</x-slot>
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
</div>
|
||||
|
||||
@if (session('status') == 'verification-link-sent')
|
||||
<x-alert icon="o-envelope" class="alert-success mb-4">
|
||||
<x-ui.alert icon="o-envelope" class="alert-success mb-4">
|
||||
{{ __('A new verification link has been sent to the email address you provided in your profile settings.') }}
|
||||
</x-alert>
|
||||
</x-ui.alert>
|
||||
@endif
|
||||
|
||||
<div class="mt-4 flex items-center justify-between">
|
||||
@@ -21,9 +21,9 @@
|
||||
@csrf
|
||||
|
||||
<div>
|
||||
<x-button type="submit" type="submit" class="btn-primary">
|
||||
{{ __('Resend Verification Email') }}
|
||||
</x-button>
|
||||
<x-ui.button label="{{ __('Resend Verification Email') }}" type="submit" class="bg-primary hover:bg-secondary focus:ring-2 focus:ring-offset-2 focus:ring-neutral-900 focus:shadow-outline focus:outline-none" />
|
||||
|
||||
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -43,5 +43,5 @@
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</x-authentication-card>
|
||||
</x-guest-layout>
|
||||
</x-ui.authentication-card>
|
||||
</x-layouts.guest>
|
||||
|
||||
Reference in New Issue
Block a user