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

42 lines
2.2 KiB
PHP
Raw Normal View History

2023-04-26 11:01:09 +00:00
<x-layout>
<h1>Configuration</h1>
2023-05-10 10:22:27 +00:00
<x-applications.navbar :applicationId="$application->id" :gitBranchLocation="$application->gitBranchLocation" />
2023-05-04 13:45:53 +00:00
<div x-data="{ activeTab: window.location.hash ? window.location.hash.substring(1) : 'general' }">
2023-04-19 10:42:15 +00:00
<div class="flex gap-4">
2023-05-04 13:45:53 +00: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 12:47:11 +00:00
</a>
2023-05-04 13:45:53 +00:00
<a :class="activeTab === 'storages' && 'text-purple-500'"
@click.prevent="activeTab = 'storages'; window.location.hash = 'storages'" href="#">Storage
2023-04-19 12:47:11 +00:00
</a>
2023-04-19 10:42:15 +00:00
</div>
<div x-cloak x-show="activeTab === 'general'">
2023-05-04 13:45:53 +00:00
<h3>General Configurations</h3>
2023-04-25 09:01:56 +00:00
<livewire:project.application.general :applicationId="$application->id" />
2023-04-19 10:42:15 +00:00
</div>
2023-05-05 07:28:00 +00:00
<div x-cloak x-show="activeTab === 'environment-variables'">
<livewire:project.application.environment-variable.all :application="$application" />
2023-04-19 10:42:15 +00:00
</div>
<div x-cloak x-show="activeTab === 'source'">
2023-05-04 13:45:53 +00:00
<h3>Source</h3>
2023-04-25 09:01:56 +00:00
<livewire:project.application.source :applicationId="$application->id" />
2023-04-19 10:42:15 +00:00
</div>
<div x-cloak x-show="activeTab === 'destination'">
2023-05-04 13:45:53 +00:00
<h3>Destination</h3>
2023-04-25 09:01:56 +00:00
<livewire:project.application.destination :destination="$application->destination" />
2023-04-19 12:00:31 +00:00
</div>
<div x-cloak x-show="activeTab === 'storages'">
2023-05-05 10:08:38 +00:00
<livewire:project.application.storages.all :application="$application" />
2023-04-19 10:42:15 +00:00
</div>
</div>
2023-04-26 11:01:09 +00:00
</x-layout>