wip
This commit is contained in:
@@ -2,6 +2,6 @@
|
||||
<h1>{{ $title ?? 'NOT SET' }}</h1>
|
||||
<x-applications.navbar :applicationId="$applicationId" />
|
||||
<div>
|
||||
{{ $slot }}
|
||||
{{ $slot }}
|
||||
</div>
|
||||
</x-layout>
|
||||
|
||||
@@ -1,16 +1,33 @@
|
||||
<label for={{ $name }}>
|
||||
@if ($label)
|
||||
{{ $label }}
|
||||
@else
|
||||
{{ $name }}
|
||||
@endif
|
||||
@if ($required)
|
||||
*
|
||||
@endif
|
||||
</label>
|
||||
<input id={{ $name }} wire:model.defer={{ $name }} type="text" name={{ $name }}
|
||||
@if ($required) required @endif
|
||||
@if ($readonly) readOnly=true disabled=true @endif />
|
||||
@if ($type === 'checkbox')
|
||||
<label for={{ $name }}>
|
||||
@if ($label)
|
||||
{{ $label }}
|
||||
@else
|
||||
{{ $name }}
|
||||
@endif
|
||||
@if ($required)
|
||||
*
|
||||
@endif
|
||||
<input type="checkbox" id={{ $name }}
|
||||
@if ($instantSave) wire:click='instantSave' wire:model.defer={{ $name }} @else wire:model.defer={{ $name }} @endif
|
||||
name={{ $name }}>
|
||||
</label>
|
||||
@else
|
||||
<label for={{ $name }}>
|
||||
@if ($label)
|
||||
{{ $label }}
|
||||
@else
|
||||
{{ $name }}
|
||||
@endif
|
||||
@if ($required)
|
||||
*
|
||||
@endif
|
||||
</label>
|
||||
<input type="text" id={{ $name }} wire:model.defer={{ $name }} name={{ $name }}
|
||||
@if ($required) required @endif
|
||||
@if ($readonly) readOnly=true disabled=true @endif />
|
||||
@endif
|
||||
|
||||
@error($name)
|
||||
<span class="text-red-500">{{ $message }}</span>
|
||||
@enderror
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
<div>
|
||||
<p>{{$destination->name}}</p>
|
||||
<p>IP: {{ $destination->server->ip }}</p>
|
||||
<p>Description: {{ $destination->server->description }}</p>
|
||||
<p>Docker Network: {{ $destination->network }}</p>
|
||||
</div>
|
||||
|
||||
@@ -15,12 +15,24 @@
|
||||
<div class="flex-col flex w-96">
|
||||
<x-input name="application.base_directory" label="Base Directory" />
|
||||
<x-input name="application.publish_directory" label="Publish Directory" />
|
||||
<x-input name="application.destination.network" readonly label="Destination Network" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<button class="flex mx-auto mt-4" type="submit">
|
||||
Submit
|
||||
</button>
|
||||
</form>
|
||||
<div class="flex flex-col pt-4 w-52 text-right">
|
||||
<x-input instantSave type="checkbox" name="is_auto_deploy" label="Auto Deploy?" />
|
||||
<x-input instantSave type="checkbox" name="is_dual_cert" label="Dual Certs?" />
|
||||
<x-input instantSave type="checkbox" name="is_previews" label="Previews?" />
|
||||
<x-input instantSave type="checkbox" name="is_bot" label="Is Bot?" />
|
||||
<x-input instantSave type="checkbox" name="is_custom_ssl" label="Is Custom SSL?" />
|
||||
<x-input instantSave type="checkbox" name="is_http2" label="Is Http2?" />
|
||||
<x-input instantSave type="checkbox" name="is_git_submodules_allowed" label="Git Submodules Allowed?" />
|
||||
<x-input instantSave type="checkbox" name="is_git_lfs_allowed" label="Git LFS Allowed?" />
|
||||
<x-input instantSave type="checkbox" name="is_debug" label="Debug" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
<div>
|
||||
{{-- Nothing in the world is as soft and yielding as water. --}}
|
||||
@forelse ($secrets as $secret)
|
||||
{{ dump($secret) }}
|
||||
@empty
|
||||
<p>There are no secrets for this application.</p>
|
||||
@endforelse
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<div>
|
||||
<p>{{ $application->source->name }}</p>
|
||||
<p>Source Name: {{ data_get($application,'source.name') }}</p>
|
||||
<p>Is Public Source: {{ data_get($application,'source.is_public') }}</p>
|
||||
<div class="flex-col flex w-96">
|
||||
<x-input name="application.git_repository" label="Git Repository" readonly />
|
||||
<x-input name="application.git_branch" label="Git Branch" readonly />
|
||||
|
||||
10
resources/views/livewire/application/storages.blade.php
Normal file
10
resources/views/livewire/application/storages.blade.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<div>
|
||||
@forelse ($storages as $storage)
|
||||
<p>Name:{{ data_get($storage, 'name') }}</p>
|
||||
<p>MountPath:{{ data_get($storage, 'mount_path') }}</p>
|
||||
<p>HostPath:{{ data_get($storage, 'host_path') }}</p>
|
||||
<p>ContainerId:{{ data_get($storage, 'container_id') }}</p>
|
||||
@empty
|
||||
<p>No storage found.</p>
|
||||
@endforelse
|
||||
</div>
|
||||
@@ -6,18 +6,23 @@
|
||||
<button @click.prevent="tab = 'source'; window.location.hash = 'source'" href="#">Source</button>
|
||||
<button @click.prevent="tab = 'destination'; window.location.hash = 'destination'" href="#">Destination
|
||||
</button>
|
||||
<button @click.prevent="tab = 'storages'; window.location.hash = 'storages'" href="#">Storage
|
||||
</button>
|
||||
</div>
|
||||
<div x-cloak x-show="tab === 'general'">
|
||||
<livewire:application.general :applicationId="$application->id" />
|
||||
</div>
|
||||
<div x-cloak x-show="tab === 'secrets'">
|
||||
<livewire:application.secrets :secrets="$application->id" />
|
||||
<livewire:application.secrets />
|
||||
</div>
|
||||
<div x-cloak x-show="tab === 'source'">
|
||||
<livewire:application.source :applicationId="$application->id" />
|
||||
</div>
|
||||
<div x-cloak x-show="tab === 'destination'">
|
||||
<livewire:application.destination :destination="$application->destination->server" />
|
||||
<livewire:application.destination :destination="$application->destination" />
|
||||
</div>
|
||||
<div x-cloak x-show="tab === 'storages'">
|
||||
<livewire:application.storages :storages="$application->persistentStorages" />
|
||||
</div>
|
||||
</div>
|
||||
</x-applications.layout>
|
||||
|
||||
Reference in New Issue
Block a user