This commit is contained in:
Andras Bacsai
2023-04-19 12:42:15 +02:00
parent d6c725ea83
commit d947175e4b
35 changed files with 333 additions and 112 deletions

View File

@@ -1,15 +0,0 @@
<x-layout>
<h1>Application</h1>
<livewire:deploy-application :applicationId="$application->id" />
<livewire:application-form :applicationId="$application->id" />
<div>
<h2>Deployments</h2>
@foreach ($deployments as $deployment)
<p>
<a href="{{ url()->current() }}/deployment/{{ data_get($deployment->properties, 'deployment_uuid') }}">
{{ data_get($deployment->properties, 'deployment_uuid') }}</a>
{{ data_get($deployment->properties, 'status') }}
</p>
@endforeach
</div>
</x-layout>

View File

@@ -0,0 +1,23 @@
<x-applications.layout :applicationId="$application->id" title="Configurations">
<div x-data="{ tab: window.location.hash ? window.location.hash.substring(1) : 'general' }">
<div class="flex gap-4">
<button @click.prevent="tab = 'general'; window.location.hash = 'general'" href="#">General</button>
<button @click.prevent="tab = 'secrets'; window.location.hash = 'secrets'" href="#">Secrets</button>
<button @click.prevent="tab = 'source'; window.location.hash = 'source'" href="#">Source</button>
<button @click.prevent="tab = 'destination'; window.location.hash = 'destination'" href="#">Destination
</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" />
</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" />
</div>
</div>
</x-applications.layout>

View File

@@ -0,0 +1,3 @@
<x-applications.layout :applicationId="$application->id" title="Deployment">
<livewire:poll-activity :activity="$activity" :deployment_uuid="$deployment_uuid" />
</x-applications.layout>

View File

@@ -0,0 +1,10 @@
<x-applications.layout :applicationId="$application->id" title="Deployments">
<div class="pt-2">
@forelse ($deployments as $deployment)
<livewire:poll-deployment :deployment_uuid="data_get($deployment->properties, 'deployment_uuid')" :created_at="data_get($deployment, 'created_at')" :status="data_get($deployment->properties, 'status')" />
@empty
<p>No deployments found.</p>
@endforelse
</div>
</x-applications.layout>

View File

@@ -1,4 +0,0 @@
<x-layout>
<h1>Deployment</h1>
<livewire:poll-activity :activity="$activity" :deployment_uuid="$deployment_uuid" />
</x-layout>

View File

@@ -3,7 +3,7 @@
<div>
@foreach ($environment->applications as $application)
<p>
<a href="{{ route('project.application', [$project->uuid, $environment->name, $application->uuid]) }}">
<a href="{{ route('project.applications.configuration', [$project->uuid, $environment->name, $application->uuid]) }}">
{{ $application->name }}
</a>
</p>