wip
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
@if ($private_keys->count() === 0)
|
||||
<h2>Create private key</h2>
|
||||
<div>You need to create a private key before you can create a server.</div>
|
||||
<livewire:private-key.create />
|
||||
<livewire:private-key.create from="server" />
|
||||
@else
|
||||
<livewire:server.new.by-ip :private_keys="$private_keys" />
|
||||
@endif
|
||||
|
||||
@@ -1,12 +1,5 @@
|
||||
<x-layout>
|
||||
<div class="text-3xl font-bold">Server</div>
|
||||
<div class="flex flex-col pb-4">
|
||||
@if ($server->settings->is_validated)
|
||||
<div class="text-green-400">Validated</div>
|
||||
@else
|
||||
<div class="text-red-400">Not validated</div>
|
||||
@endif
|
||||
</div>
|
||||
<div x-data="{ activeTab: window.location.hash ? window.location.hash.substring(1) : 'general' }">
|
||||
<div class="flex gap-4">
|
||||
<a :class="activeTab === 'general' && 'text-purple-500'"
|
||||
@@ -39,7 +32,7 @@
|
||||
<div class="flex items-center gap-2">
|
||||
<h3>Destinations</h3>
|
||||
<a href="{{ route('destination.new', ['server_id' => $server->id]) }}">
|
||||
<x-inputs.button isBold>New</x-inputs.button>
|
||||
<x-inputs.button>Add a new</x-inputs.button>
|
||||
</a>
|
||||
</div>
|
||||
@if ($server->standaloneDockers->count() > 0)
|
||||
@@ -51,17 +44,7 @@
|
||||
@endif
|
||||
</div>
|
||||
<div x-cloak x-show="activeTab === 'proxy'">
|
||||
<div class="flex items-center gap-2">
|
||||
<h3>Proxy</h3>
|
||||
@if ($server->settings->is_validated)
|
||||
<div>{{ $server->extra_attributes->proxy_status }}</div>
|
||||
@endif
|
||||
</div>
|
||||
<livewire:server.proxy :server="$server" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</x-layout>
|
||||
|
||||
Reference in New Issue
Block a user