mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 15:02:34 +00:00
Migrate to HTMX (#114)
Dropped Livewire Added HTMX Added Blade code lint Drop Mysql and Redis Migrate to SQLite
This commit is contained in:
@ -0,0 +1,15 @@
|
||||
<div>
|
||||
<x-input-label for="branch" :value="__('Branch')" />
|
||||
<x-text-input
|
||||
value="{{ old('branch') }}"
|
||||
id="branch"
|
||||
name="branch"
|
||||
type="text"
|
||||
class="mt-1 block w-full"
|
||||
autocomplete="branch"
|
||||
placeholder="main"
|
||||
/>
|
||||
@error("branch")
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
</div>
|
@ -0,0 +1,14 @@
|
||||
<div class="mt-6">
|
||||
<label for="composer" class="inline-flex items-center">
|
||||
<input
|
||||
id="composer"
|
||||
type="checkbox"
|
||||
class="rounded border-gray-300 text-indigo-600 shadow-sm focus:ring-indigo-500 dark:border-gray-700 dark:bg-gray-900 dark:focus:ring-indigo-600 dark:focus:ring-offset-gray-800"
|
||||
name="composer"
|
||||
@if (old("composer") === "on") checked @endif
|
||||
/>
|
||||
<span class="ml-2 text-sm text-gray-600 dark:text-gray-400">
|
||||
{{ __("Run `composer install --no-dev`") }}
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
@ -0,0 +1,14 @@
|
||||
<div>
|
||||
<x-input-label for="php_version" :value="__('PHP Version')" />
|
||||
<x-select-input id="php_version" name="php_version" class="mt-1 w-full">
|
||||
<option value="" selected>{{ __("Select") }}</option>
|
||||
@foreach ($server->installedPHPVersions() as $version)
|
||||
<option value="{{ $version }}" @if($version == old('php_version')) selected @endif>
|
||||
PHP {{ $version }}
|
||||
</option>
|
||||
@endforeach
|
||||
</x-select-input>
|
||||
@error("php_version")
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
</div>
|
@ -0,0 +1,15 @@
|
||||
<div>
|
||||
<x-input-label for="repository" :value="__('Repository')" />
|
||||
<x-text-input
|
||||
value="{{ old('repository') }}"
|
||||
id="repository"
|
||||
name="repository"
|
||||
type="text"
|
||||
class="mt-1 block w-full"
|
||||
autocomplete="repository"
|
||||
placeholder="organization/repository"
|
||||
/>
|
||||
@error("repository")
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
</div>
|
@ -0,0 +1,23 @@
|
||||
<div>
|
||||
<x-input-label for="source_control" :value="__('Source Control')" />
|
||||
<div class="mt-1 flex items-center">
|
||||
<x-select-input id="source_control" name="source_control" class="mt-1 w-full">
|
||||
<option value="" selected>{{ __("Select") }}</option>
|
||||
@foreach ($sourceControls as $sourceControl)
|
||||
<option
|
||||
value="{{ $sourceControl->id }}"
|
||||
@if($sourceControl->id === old('source_control')) selected @endif
|
||||
>
|
||||
{{ $sourceControl->profile }}
|
||||
({{ $sourceControl->provider }})
|
||||
</option>
|
||||
@endforeach
|
||||
</x-select-input>
|
||||
<x-secondary-button :href="route('source-controls', ['redirect' => request()->url()])" class="ml-2 flex-none">
|
||||
{{ __("Connect") }}
|
||||
</x-secondary-button>
|
||||
</div>
|
||||
@error("source_control")
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
</div>
|
@ -0,0 +1,17 @@
|
||||
<div>
|
||||
<x-input-label for="web_directory" :value="__('Web Directory')" />
|
||||
<x-text-input
|
||||
value="{{ old('web_directory') }}"
|
||||
id="web_directory"
|
||||
name="web_directory"
|
||||
type="text"
|
||||
class="mt-1 block w-full"
|
||||
autocomplete="web_directory"
|
||||
/>
|
||||
<x-input-help>
|
||||
{{ __("For root, leave this blank") }}
|
||||
</x-input-help>
|
||||
@error("web_directory")
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
</div>
|
11
resources/views/sites/partials/create/laravel.blade.php
Normal file
11
resources/views/sites/partials/create/laravel.blade.php
Normal file
@ -0,0 +1,11 @@
|
||||
@include("sites.partials.create.fields.php-version")
|
||||
|
||||
@include("sites.partials.create.fields.web-directory")
|
||||
|
||||
@include("sites.partials.create.fields.source-control")
|
||||
|
||||
@include("sites.partials.create.fields.repository")
|
||||
|
||||
@include("sites.partials.create.fields.branch")
|
||||
|
||||
@include("sites.partials.create.fields.composer")
|
@ -0,0 +1,3 @@
|
||||
@include("sites.partials.create.fields.php-version")
|
||||
|
||||
@include("sites.partials.create.fields.web-directory")
|
11
resources/views/sites/partials/create/php.blade.php
Normal file
11
resources/views/sites/partials/create/php.blade.php
Normal file
@ -0,0 +1,11 @@
|
||||
@include("sites.partials.create.fields.php-version")
|
||||
|
||||
@include("sites.partials.create.fields.web-directory")
|
||||
|
||||
@include("sites.partials.create.fields.source-control")
|
||||
|
||||
@include("sites.partials.create.fields.repository")
|
||||
|
||||
@include("sites.partials.create.fields.branch")
|
||||
|
||||
@include("sites.partials.create.fields.composer")
|
114
resources/views/sites/partials/create/wordpress.blade.php
Normal file
114
resources/views/sites/partials/create/wordpress.blade.php
Normal file
@ -0,0 +1,114 @@
|
||||
@include("sites.partials.create.fields.php-version")
|
||||
|
||||
<div>
|
||||
<x-input-label for="title" :value="__('Title')" />
|
||||
<x-text-input
|
||||
value="{{ old('title') }}"
|
||||
id="title"
|
||||
name="title"
|
||||
type="text"
|
||||
class="mt-1 block w-full"
|
||||
autocomplete="branch"
|
||||
/>
|
||||
@error("title")
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 gap-5 lg:grid-cols-3">
|
||||
<div>
|
||||
<x-input-label for="email" :value="__('WP Admin Email')" />
|
||||
<x-text-input
|
||||
value="{{ old('email') }}"
|
||||
id="email"
|
||||
name="email"
|
||||
type="email"
|
||||
class="mt-1 block w-full"
|
||||
autocomplete="email"
|
||||
/>
|
||||
@error("email")
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<x-input-label for="username" :value="__('WP Admin Username')" />
|
||||
<x-text-input
|
||||
value="{{ old('username') }}"
|
||||
id="username"
|
||||
name="username"
|
||||
type="text"
|
||||
class="mt-1 block w-full"
|
||||
autocomplete="username"
|
||||
/>
|
||||
@error("username")
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<x-input-label for="password" :value="__('WP Admin Password')" />
|
||||
<x-text-input
|
||||
value="{{ old('password') }}"
|
||||
id="password"
|
||||
name="password"
|
||||
type="text"
|
||||
class="mt-1 block w-full"
|
||||
/>
|
||||
@error("title")
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 gap-5 lg:grid-cols-3">
|
||||
<div>
|
||||
<x-input-label for="database" :value="__('Database Name')" />
|
||||
<x-text-input
|
||||
value="{{ old('database') }}"
|
||||
id="database"
|
||||
name="database"
|
||||
type="text"
|
||||
class="mt-1 block w-full"
|
||||
autocomplete="database"
|
||||
/>
|
||||
<x-input-help>
|
||||
{{ __("It will create a database with this name") }}
|
||||
</x-input-help>
|
||||
@error("database")
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<x-input-label for="database" :value="__('Database User')" />
|
||||
<x-text-input
|
||||
value="{{ old('database_user') }}"
|
||||
id="database_user"
|
||||
name="database_user"
|
||||
type="text"
|
||||
class="mt-1 block w-full"
|
||||
autocomplete="database_user"
|
||||
/>
|
||||
<x-input-help>
|
||||
{{ __("It will create a database user with this username") }}
|
||||
</x-input-help>
|
||||
@error("database_user")
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<x-input-label for="password" :value="__('Database Password')" />
|
||||
<x-text-input
|
||||
value="{{ old('database_password') }}"
|
||||
id="database_password"
|
||||
name="database_password"
|
||||
type="text"
|
||||
class="mt-1 block w-full"
|
||||
/>
|
||||
@error("database_password")
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user