mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-07 00:42:34 +00:00
Upgrade to Livewire 3 (#103)
* upgrade to livewire 3 * fix updater * fix modal events * fix modal events
This commit is contained in:
@ -4,14 +4,14 @@
|
||||
</x-primary-button>
|
||||
|
||||
<x-modal name="connect-provider" :show="$open">
|
||||
<form wire:submit.prevent="connect" class="p-6">
|
||||
<form wire:submit="connect" class="p-6">
|
||||
<h2 class="text-lg font-medium text-gray-900 dark:text-gray-100">
|
||||
{{ __('Connect to a Server Provider') }}
|
||||
</h2>
|
||||
|
||||
<div class="mt-6">
|
||||
<x-input-label for="provider" value="Provider" />
|
||||
<x-select-input wire:model="provider" id="provider" name="provider" class="mt-1 w-full">
|
||||
<x-select-input wire:model.live="provider" id="provider" name="provider" class="mt-1 w-full">
|
||||
<option value="" selected disabled>{{ __("Select") }}</option>
|
||||
@foreach(config('core.server_providers') as $p)
|
||||
@if($p !== 'custom')
|
||||
@ -26,7 +26,7 @@
|
||||
|
||||
<div class="mt-6">
|
||||
<x-input-label for="name" value="Name" />
|
||||
<x-text-input wire:model.defer="name" id="name" name="name" type="text" class="mt-1 w-full" />
|
||||
<x-text-input wire:model="name" id="name" name="name" type="text" class="mt-1 w-full" />
|
||||
@error('name')
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
@ -35,7 +35,7 @@
|
||||
@if($provider === 'aws')
|
||||
<div class="mt-6">
|
||||
<x-input-label for="key" value="Access Key" />
|
||||
<x-text-input wire:model.defer="key" id="key" name="key" type="text" class="mt-1 w-full" />
|
||||
<x-text-input wire:model="key" id="key" name="key" type="text" class="mt-1 w-full" />
|
||||
@error('key')
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
@ -43,7 +43,7 @@
|
||||
|
||||
<div class="mt-6">
|
||||
<x-input-label for="secret" value="Secret" />
|
||||
<x-text-input wire:model.defer="secret" id="secret" name="secret" type="text" class="mt-1 w-full" />
|
||||
<x-text-input wire:model="secret" id="secret" name="secret" type="text" class="mt-1 w-full" />
|
||||
@error('secret')
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
@ -53,7 +53,7 @@
|
||||
@if(in_array($provider, ['hetzner', 'digitalocean', 'vultr', 'linode']))
|
||||
<div class="mt-6">
|
||||
<x-input-label for="token" value="API Key" />
|
||||
<x-text-input wire:model.defer="token" id="token" name="token" type="text" class="mt-1 w-full" />
|
||||
<x-text-input wire:model="token" id="token" name="token" type="text" class="mt-1 w-full" />
|
||||
@error('token')
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
|
Reference in New Issue
Block a user