Refactor Livewire/Boarding/Index.php and resources/views/livewire/boarding/index.blade.php
This commit is contained in:
		@@ -15,14 +15,11 @@ class Index extends Component
 | 
			
		||||
{
 | 
			
		||||
    protected $listeners = ['serverInstalled' => 'validateServer'];
 | 
			
		||||
 | 
			
		||||
    #[Url()]
 | 
			
		||||
    public string $state = 'welcome';
 | 
			
		||||
 | 
			
		||||
    #[Url()]
 | 
			
		||||
    public ?string $selectedServerType = null;
 | 
			
		||||
    public ?Collection $privateKeys = null;
 | 
			
		||||
 | 
			
		||||
    #[Url()]
 | 
			
		||||
    public ?int $selectedExistingPrivateKey = null;
 | 
			
		||||
    public ?string $privateKeyType = null;
 | 
			
		||||
    public ?string $privateKey = null;
 | 
			
		||||
@@ -33,7 +30,6 @@ class Index extends Component
 | 
			
		||||
 | 
			
		||||
    public ?Collection $servers = null;
 | 
			
		||||
 | 
			
		||||
    #[Url()]
 | 
			
		||||
    public ?int $selectedExistingServer = null;
 | 
			
		||||
    public ?string $remoteServerName = null;
 | 
			
		||||
    public ?string $remoteServerDescription = null;
 | 
			
		||||
@@ -46,7 +42,6 @@ class Index extends Component
 | 
			
		||||
 | 
			
		||||
    public Collection $projects;
 | 
			
		||||
 | 
			
		||||
    #[Url()]
 | 
			
		||||
    public ?int $selectedProject = null;
 | 
			
		||||
    public ?Project $createdProject = null;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -329,14 +329,17 @@
 | 
			
		||||
        </div>
 | 
			
		||||
        <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">
 | 
			
		||||
                <x-forms.button wire:click='skipBoarding'>Skip onboarding</x-forms.button>
 | 
			
		||||
                <x-forms.button wire:click='restartBoarding'>Restart onboarding</x-forms.button>
 | 
			
		||||
                <div class="cursor-pointer hover:underline dark:hover:text-white" wire:click='skipBoarding'>Skip
 | 
			
		||||
                    onboarding</div>
 | 
			
		||||
                <div class="cursor-pointer hover:underline dark:hover:text-white" wire:click='restartBoarding'>Restart
 | 
			
		||||
                    onboarding</div>
 | 
			
		||||
            </div>
 | 
			
		||||
            <x-modal-input title="How can we help?">
 | 
			
		||||
                <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
 | 
			
		||||
                    </x-forms.button>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </x-slot:content>
 | 
			
		||||
                <livewire:help />
 | 
			
		||||
            </x-modal-input>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user