Refactor Livewire/Boarding/Index.php and resources/views/livewire/boarding/index.blade.php

This commit is contained in:
Andras Bacsai 2024-03-25 14:34:11 +01:00
parent 9c03525369
commit 995c303f27
2 changed files with 7 additions and 9 deletions

View File

@ -15,14 +15,11 @@ class Index extends Component
{ {
protected $listeners = ['serverInstalled' => 'validateServer']; protected $listeners = ['serverInstalled' => 'validateServer'];
#[Url()]
public string $state = 'welcome'; public string $state = 'welcome';
#[Url()]
public ?string $selectedServerType = null; public ?string $selectedServerType = null;
public ?Collection $privateKeys = null; public ?Collection $privateKeys = null;
#[Url()]
public ?int $selectedExistingPrivateKey = null; public ?int $selectedExistingPrivateKey = null;
public ?string $privateKeyType = null; public ?string $privateKeyType = null;
public ?string $privateKey = null; public ?string $privateKey = null;
@ -33,7 +30,6 @@ class Index extends Component
public ?Collection $servers = null; public ?Collection $servers = null;
#[Url()]
public ?int $selectedExistingServer = null; public ?int $selectedExistingServer = null;
public ?string $remoteServerName = null; public ?string $remoteServerName = null;
public ?string $remoteServerDescription = null; public ?string $remoteServerDescription = null;
@ -46,7 +42,6 @@ class Index extends Component
public Collection $projects; public Collection $projects;
#[Url()]
public ?int $selectedProject = null; public ?int $selectedProject = null;
public ?Project $createdProject = null; public ?Project $createdProject = null;

View File

@ -329,14 +329,17 @@
</div> </div>
<div class="flex flex-col justify-center gap-4 pt-4 lg:gap-2 lg:flex"> <div class="flex flex-col justify-center gap-4 pt-4 lg:gap-2 lg:flex">
<div class="flex justify-center w-full gap-2"> <div class="flex justify-center w-full gap-2">
<x-forms.button wire:click='skipBoarding'>Skip onboarding</x-forms.button> <div class="cursor-pointer hover:underline dark:hover:text-white" wire:click='skipBoarding'>Skip
<x-forms.button wire:click='restartBoarding'>Restart onboarding</x-forms.button> onboarding</div>
<div class="cursor-pointer hover:underline dark:hover:text-white" wire:click='restartBoarding'>Restart
onboarding</div>
</div> </div>
<x-modal-input title="How can we help?"> <x-modal-input title="How can we help?">
<x-slot:content> <x-slot:content>
<x-forms.button class="w-full" title="Send us feedback or get help!"> <div class="w-full text-center cursor-pointer hover:underline dark:hover:text-white"
title="Send us feedback or get help!">
Feedback Feedback
</x-forms.button> </div>
</x-slot:content> </x-slot:content>
<livewire:help /> <livewire:help />
</x-modal-input> </x-modal-input>