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

31 lines
1.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-04-19 12:42:15 +02:00
<div x-data="{ tab: window.location.hash ? window.location.hash.substring(1) : 'general' }">
<div class="flex gap-4">
2023-04-19 14:47:11 +02:00
<a @click.prevent="tab = 'general'; window.location.hash = 'general'" href="#">General</a>
2023-04-19 15:38:59 +02:00
<a @click.prevent="tab = 'envs'; window.location.hash = 'envs'" href="#">Environment Variables</a>
2023-04-19 14:47:11 +02:00
<a @click.prevent="tab = 'source'; window.location.hash = 'source'" href="#">Source</a>
<a @click.prevent="tab = 'destination'; window.location.hash = 'destination'" href="#">Destination
</a>
<a @click.prevent="tab = 'storages'; window.location.hash = 'storages'" href="#">Storage
</a>
2023-04-19 12:42:15 +02:00
</div>
<div x-cloak x-show="tab === 'general'">
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-04-19 15:38:59 +02:00
<div x-cloak x-show="tab === 'envs'">
2023-04-25 11:01:56 +02:00
<livewire:project.application.environment-variables />
2023-04-19 12:42:15 +02:00
</div>
<div x-cloak x-show="tab === 'source'">
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="tab === 'destination'">
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="tab === 'storages'">
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>