wip
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
<div>
|
||||
<form wire:submit.prevent='submit' class="flex flex-col">
|
||||
<x-input name="name" required="true" />
|
||||
<x-input name="fqdn" />
|
||||
<x-input name="git_repository" />
|
||||
<x-input name="git_branch" />
|
||||
<x-input name="git_commit_sha" />
|
||||
<button type="submit">
|
||||
Submit
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
<p>{{$destination->name}}</p>
|
||||
</div>
|
||||
26
resources/views/livewire/application/general.blade.php
Normal file
26
resources/views/livewire/application/general.blade.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<div>
|
||||
<form wire:submit.prevent='submit' class="flex flex-col">
|
||||
|
||||
<div class="flex flex-col xl:flex-row gap-2">
|
||||
<div class="flex-col flex w-96">
|
||||
<x-input name="application.name" label="Name" required />
|
||||
<x-input name="application.fqdn" label="FQDN" />
|
||||
</div>
|
||||
<div class="flex-col flex w-96">
|
||||
<x-input name="application.install_command" label="Install Command" />
|
||||
<x-input name="application.build_command" label="Build Command" />
|
||||
<x-input name="application.start_command" label="Start Command" />
|
||||
<x-input name="application.build_pack" label="Build Pack" />
|
||||
</div>
|
||||
<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>
|
||||
3
resources/views/livewire/application/secrets.blade.php
Normal file
3
resources/views/livewire/application/secrets.blade.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
{{-- Nothing in the world is as soft and yielding as water. --}}
|
||||
</div>
|
||||
8
resources/views/livewire/application/source.blade.php
Normal file
8
resources/views/livewire/application/source.blade.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<div>
|
||||
<p>{{ $application->source->name }}</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 />
|
||||
<x-input name="application.git_commit_sha" label="Git Commit SHA" readonly />
|
||||
</div>
|
||||
</div>
|
||||
@@ -5,5 +5,11 @@
|
||||
<button wire:click='start'>Start</button>
|
||||
@endif
|
||||
<button wire:click='kill'>Kill</button>
|
||||
<span wire:poll='pollingStatus'>status: {{ $application->status }}</span>
|
||||
<span wire:poll='pollingStatus'>
|
||||
@if ($application->status === 'running')
|
||||
<span class="text-green-500">{{ $application->status }}</span>
|
||||
@else
|
||||
<span class="text-red-500">{{ $application->status }}</span>
|
||||
@endif
|
||||
</span>
|
||||
</div>
|
||||
|
||||
6
resources/views/livewire/poll-deployment.blade.php
Normal file
6
resources/views/livewire/poll-deployment.blade.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<div>
|
||||
<a @if ($status === 'in_progress' || $status === 'holding') wire:poll='polling' @endif href="{{ url()->current() }}/{{ $deployment_uuid }}">
|
||||
{{ $created_at }}
|
||||
{{ $deployment_uuid }}</a>
|
||||
{{ $status }}
|
||||
</div>
|
||||
Reference in New Issue
Block a user