coolify/resources/views/project/application/configuration.blade.php

50 lines
2.6 KiB
PHP
Raw Normal View History

2023-04-26 13:01:09 +02:00
<x-layout>
<h1>Configuration</h1>
<x-applications.navbar :applicationId="$application->id" />
2023-05-04 15:45:53 +02:00
<div x-data="{ activeTab: window.location.hash ? window.location.hash.substring(1) : 'general' }">
2023-04-19 12:42:15 +02:00
<div class="flex gap-4">
2023-05-04 15:45:53 +02:00
<a :class="activeTab === 'general' && 'text-purple-500'"
@click.prevent="activeTab = 'general'; window.location.hash = 'general'" href="#">General</a>
<a :class="activeTab === 'environment-variables' && 'text-purple-500'"
@click.prevent="activeTab = 'environment-variables'; window.location.hash = 'environment-variables'"
href="#">Environment
Variables</a>
<a :class="activeTab === 'source' && 'text-purple-500'"
@click.prevent="activeTab = 'source'; window.location.hash = 'source'" href="#">Source</a>
<a :class="activeTab === 'destination' && 'text-purple-500'"
@click.prevent="activeTab = 'destination'; window.location.hash = 'destination'"
href="#">Destination
2023-04-19 14:47:11 +02:00
</a>
2023-05-04 15:45:53 +02:00
<a :class="activeTab === 'storages' && 'text-purple-500'"
@click.prevent="activeTab = 'storages'; window.location.hash = 'storages'" href="#">Storage
2023-04-19 14:47:11 +02:00
</a>
2023-04-19 12:42:15 +02:00
</div>
<div x-cloak x-show="activeTab === 'general'">
2023-05-04 15:45:53 +02:00
<h3>General Configurations</h3>
2023-04-25 11:01:56 +02:00
<livewire:project.application.general :applicationId="$application->id" />
2023-04-19 12:42:15 +02:00
</div>
2023-05-04 15:45:53 +02:00
<div x-cloak x-show="activeTab === 'environment-variables'" class="flex flex-col gap-2">
<h3>Environment Variables</h3>
2023-05-04 22:29:14 +02:00
@forelse ($application->environment_variables as $env)
<livewire:project.application.environment-variable.show :env="$env" />
2023-05-04 15:45:53 +02:00
@empty
<p>There are no environment variables for this application.</p>
@endforelse
2023-05-04 22:29:14 +02:00
<h4>Add new environment variable</h4>
<livewire:project.application.environment-variable.add />
2023-04-19 12:42:15 +02:00
</div>
<div x-cloak x-show="activeTab === 'source'">
2023-05-04 15:45:53 +02:00
<h3>Source</h3>
2023-04-25 11:01:56 +02:00
<livewire:project.application.source :applicationId="$application->id" />
2023-04-19 12:42:15 +02:00
</div>
<div x-cloak x-show="activeTab === 'destination'">
2023-05-04 15:45:53 +02:00
<h3>Destination</h3>
2023-04-25 11:01:56 +02:00
<livewire:project.application.destination :destination="$application->destination" />
2023-04-19 14:00:31 +02:00
</div>
<div x-cloak x-show="activeTab === 'storages'">
2023-05-04 15:45:53 +02:00
<h3>Persistent Storages</h3>
2023-04-25 11:01:56 +02:00
<livewire:project.application.storages :storages="$application->persistentStorages" />
2023-04-19 12:42:15 +02:00
</div>
</div>
2023-04-26 13:01:09 +02:00
</x-layout>