100 lines
5.3 KiB
PHP
100 lines
5.3 KiB
PHP
<div>
|
|
<h1>Configuration</h1>
|
|
<livewire:project.database.heading :database="$database" />
|
|
<div x-data="{ activeTab: window.location.hash ? window.location.hash.substring(1) : 'general' }" class="flex h-full pt-6">
|
|
<div class="flex flex-col gap-4 min-w-fit">
|
|
<a :class="activeTab === 'general' && 'dark:text-white'"
|
|
@click.prevent="activeTab = 'general';
|
|
window.location.hash = 'general'"
|
|
href="#">General</a>
|
|
<a :class="activeTab === 'environment-variables' && 'dark:text-white'"
|
|
@click.prevent="activeTab = 'environment-variables'; window.location.hash = 'environment-variables'"
|
|
href="#">Environment
|
|
Variables</a>
|
|
<a :class="activeTab === 'servers' && 'dark:text-white'"
|
|
@click.prevent="activeTab = 'servers';
|
|
window.location.hash = 'servers'"
|
|
href="#">Servers
|
|
</a>
|
|
<a :class="activeTab === 'storages' && 'dark:text-white'"
|
|
@click.prevent="activeTab = 'storages';
|
|
window.location.hash = 'storages'"
|
|
href="#">Storages
|
|
</a>
|
|
<a :class="activeTab === 'import' && 'dark:text-white'"
|
|
@click.prevent="activeTab = 'import';
|
|
window.location.hash = 'import'" href="#">Import
|
|
Backup
|
|
</a>
|
|
<a :class="activeTab === 'webhooks' && 'dark:text-white'"
|
|
@click.prevent="activeTab = 'webhooks'; window.location.hash = 'webhooks'" href="#">Webhooks
|
|
</a>
|
|
<a :class="activeTab === 'resource-limits' && 'dark:text-white'"
|
|
@click.prevent="activeTab = 'resource-limits';
|
|
window.location.hash = 'resource-limits'"
|
|
href="#">Resource Limits
|
|
</a>
|
|
<a :class="activeTab === 'resource-operations' && 'dark:text-white'"
|
|
@click.prevent="activeTab = 'resource-operations'; window.location.hash = 'resource-operations'"
|
|
href="#">Resource Operations
|
|
</a>
|
|
<a :class="activeTab === 'tags' && 'dark:text-white'"
|
|
@click.prevent="activeTab = 'tags'; window.location.hash = 'tags'" href="#">Tags
|
|
</a>
|
|
<a :class="activeTab === 'danger' && 'dark:text-white'"
|
|
@click.prevent="activeTab = 'danger';
|
|
window.location.hash = 'danger'"
|
|
href="#">Danger Zone
|
|
</a>
|
|
</div>
|
|
<div class="w-full pl-8">
|
|
<div x-cloak x-show="activeTab === 'general'" class="h-full">
|
|
@if ($database->type() === 'standalone-postgresql')
|
|
<livewire:project.database.postgresql.general :database="$database" />
|
|
@elseif ($database->type() === 'standalone-redis')
|
|
<livewire:project.database.redis.general :database="$database" />
|
|
@elseif ($database->type() === 'standalone-mongodb')
|
|
<livewire:project.database.mongodb.general :database="$database" />
|
|
@elseif ($database->type() === 'standalone-mysql')
|
|
<livewire:project.database.mysql.general :database="$database" />
|
|
@elseif ($database->type() === 'standalone-mariadb')
|
|
<livewire:project.database.mariadb.general :database="$database" />
|
|
@elseif ($database->type() === 'standalone-keydb')
|
|
<livewire:project.database.keydb.general :database="$database" />
|
|
@elseif ($database->type() === 'standalone-dragonfly')
|
|
<livewire:project.database.dragonfly.general :database="$database" />
|
|
@elseif ($database->type() === 'standalone-clickhouse')
|
|
<livewire:project.database.clickhouse.general :database="$database" />
|
|
@endif
|
|
</div>
|
|
<div x-cloak x-show="activeTab === 'environment-variables'">
|
|
<livewire:project.shared.environment-variable.all :resource="$database" />
|
|
</div>
|
|
<div x-cloak x-show="activeTab === 'servers'">
|
|
<livewire:project.shared.destination :resource="$database" />
|
|
</div>
|
|
<div x-cloak x-show="activeTab === 'storages'">
|
|
<livewire:project.service.storage :resource="$database" />
|
|
</div>
|
|
<div x-cloak x-show="activeTab === 'webhooks'">
|
|
<livewire:project.shared.webhooks :resource="$database" />
|
|
</div>
|
|
<div x-cloak x-show="activeTab === 'resource-limits'">
|
|
<livewire:project.shared.resource-limits :resource="$database" />
|
|
</div>
|
|
<div x-cloak x-show="activeTab === 'import'">
|
|
<livewire:project.database.import :resource="$database" />
|
|
</div>
|
|
<div x-cloak x-show="activeTab === 'resource-operations'">
|
|
<livewire:project.shared.resource-operations :resource="$database" />
|
|
</div>
|
|
<div x-cloak x-show="activeTab === 'tags'">
|
|
<livewire:project.shared.tags :resource="$database" />
|
|
</div>
|
|
<div x-cloak x-show="activeTab === 'danger'">
|
|
<livewire:project.shared.danger :resource="$database" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|