mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-08 09:22: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">
|
||||
<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 Storage 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.storage_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 == \App\Enums\StorageProvider::DROPBOX)
|
||||
<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
|
||||
@ -46,14 +46,14 @@
|
||||
<div class="grid grid-cols-2 gap-2">
|
||||
<div class="mt-6">
|
||||
<x-input-label for="host" value="Host" />
|
||||
<x-text-input wire:model.defer="host" id="host" name="host" type="text" class="mt-1 w-full" />
|
||||
<x-text-input wire:model="host" id="host" name="host" type="text" class="mt-1 w-full" />
|
||||
@error('host')
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
</div>
|
||||
<div class="mt-6">
|
||||
<x-input-label for="port" value="Port" />
|
||||
<x-text-input wire:model.defer="port" id="port" name="port" type="text" class="mt-1 w-full" />
|
||||
<x-text-input wire:model="port" id="port" name="port" type="text" class="mt-1 w-full" />
|
||||
@error('port')
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
@ -61,7 +61,7 @@
|
||||
</div>
|
||||
<div class="mt-6">
|
||||
<x-input-label for="path" value="Path" />
|
||||
<x-text-input wire:model.defer="path" id="path" name="path" type="text" class="mt-1 w-full" />
|
||||
<x-text-input wire:model="path" id="path" name="path" type="text" class="mt-1 w-full" />
|
||||
@error('path')
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
@ -69,14 +69,14 @@
|
||||
<div class="grid grid-cols-2 gap-2">
|
||||
<div class="mt-6">
|
||||
<x-input-label for="username" value="Username" />
|
||||
<x-text-input wire:model.defer="username" id="username" name="username" type="text" class="mt-1 w-full" />
|
||||
<x-text-input wire:model="username" id="username" name="username" type="text" class="mt-1 w-full" />
|
||||
@error('username')
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
</div>
|
||||
<div class="mt-6">
|
||||
<x-input-label for="password" value="Password" />
|
||||
<x-text-input wire:model.defer="password" id="password" name="password" type="text" class="mt-1 w-full" />
|
||||
<x-text-input wire:model="password" id="password" name="password" type="text" class="mt-1 w-full" />
|
||||
@error('password')
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
@ -85,7 +85,7 @@
|
||||
<div class="grid grid-cols-2 gap-2">
|
||||
<div class="mt-6">
|
||||
<x-input-label for="ssl" :value="__('SSL')" />
|
||||
<x-select-input wire:model="ssl" id="ssl" name="ssl" class="mt-1 w-full">
|
||||
<x-select-input wire:model.live="ssl" id="ssl" name="ssl" class="mt-1 w-full">
|
||||
<option value="1" @if($ssl) selected @endif>{{ __("Yes") }}</option>
|
||||
<option value="0" @if(!$ssl) selected @endif>{{ __("No") }}</option>
|
||||
</x-select-input>
|
||||
@ -95,7 +95,7 @@
|
||||
</div>
|
||||
<div class="mt-6">
|
||||
<x-input-label for="passive" :value="__('Passive')" />
|
||||
<x-select-input wire:model="passive" id="passive" name="passive" class="mt-1 w-full">
|
||||
<x-select-input wire:model.live="passive" id="passive" name="passive" class="mt-1 w-full">
|
||||
<option value="1" @if($passive) selected @endif>{{ __("Yes") }}</option>
|
||||
<option value="0" @if(!$passive) selected @endif>{{ __("No") }}</option>
|
||||
</x-select-input>
|
||||
|
Reference in New Issue
Block a user