move files around

This commit is contained in:
Andras Bacsai
2023-04-25 11:01:56 +02:00
parent 18a2d0bd90
commit dd51b002b8
29 changed files with 63 additions and 38 deletions

View File

@@ -1,5 +1,5 @@
<nav class="flex gap-4 py-2 bg-gray-100">
<a href="{{ route('project.applications.configuration', Route::current()->parameters()) }}">Configuration</a>
<a href="{{ route('project.applications.deployments', Route::current()->parameters()) }}">Deployments</a>
<livewire:deploy-application :applicationId="$applicationId" />
<a href="{{ route('project.application.configuration', Route::current()->parameters()) }}">Configuration</a>
<a href="{{ route('project.application.deployments', Route::current()->parameters()) }}">Deployments</a>
<livewire:project.application.deploy :applicationId="$applicationId" />
</nav>

View File

@@ -1,5 +1,5 @@
<x-layout>
<h1>Projects</h1>
<h1>Projects <button><a class="no-underline" href="{{ route('project.new') }}">New</a></button></h1>
@forelse ($projects as $project)
<a href="{{ route('project.environments', [$project->uuid]) }}">{{ data_get($project, 'name') }}</a>
@empty

View File

@@ -0,0 +1,11 @@
<div>
<div class="flex flex-col w-64 gap-2">
<button>Repository (any git)</button>
<button>Repository through GitHub App</button>
<button>Repository through GitLab App</button>
<button>Repository through Bitbucket App</button>
<button>Deploy Database</button>
<button>Deploy Service</button>
<button>Empty Project</button>
</div>
</div>

View File

@@ -10,19 +10,19 @@
</a>
</div>
<div x-cloak x-show="tab === 'general'">
<livewire:application.general :applicationId="$application->id" />
<livewire:project.application.general :applicationId="$application->id" />
</div>
<div x-cloak x-show="tab === 'envs'">
<livewire:application.environment-variables />
<livewire:project.application.environment-variables />
</div>
<div x-cloak x-show="tab === 'source'">
<livewire:application.source :applicationId="$application->id" />
<livewire:project.application.source :applicationId="$application->id" />
</div>
<div x-cloak x-show="tab === 'destination'">
<livewire:application.destination :destination="$application->destination" />
<livewire:project.application.destination :destination="$application->destination" />
</div>
<div x-cloak x-show="tab === 'storages'">
<livewire:application.storages :storages="$application->persistentStorages" />
<livewire:project.application.storages :storages="$application->persistentStorages" />
</div>
</div>
</x-applications.layout>

View File

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

View File

@@ -1,8 +1,7 @@
<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')" />
<livewire:project.application.get-deployments :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

View File

@@ -1,3 +0,0 @@
<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,4 @@
<x-layout>
<h1>New Project</h1>
<livewire:project.new-project />
</x-layout>

View File

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