This commit is contained in:
Joao Patricio
2023-05-12 19:15:36 +01:00
parent 982f5beaf5
commit 931664c0c0
9 changed files with 111 additions and 13 deletions

View File

@@ -0,0 +1,12 @@
<div class="absolute w-full h-full bg-sky-600 rounded-lg">
<div class="w-full mt-32 text-center animate-pulse">
Loading
</div>
<div class="mt-20 w-full flex justify-center">
<span class="relative flex h-28 w-28">
<span
class="animate-ping absolute inline-flex h-full w-full rounded-full bg-sky-400 opacity-75"></span>
<span class="relative inline-flex rounded-full h-28 w-28 bg-sky-500"></span>
</span>
</div>
</div>

View File

@@ -0,0 +1,48 @@
<div class="mt-4">
<label>
<div>Edit config file</div>
<textarea cols="45" rows="25"></textarea>
</label>
</div>
<div class="mt-4">
<label>
Enable dashboard?
<input type="checkbox" />
(auto-save)
</label>
</div>
<div class="mt-4">
<a href="#">Visit Dashboard</a>
</div>
<div class="mt-4">
<label>
<div>Setup hostname for Dashboard</div>
<div class="mt-2"></div>
<label>
<div>Hostname <span class="text-xs"> Eg: dashboard.example.com </span></div>
<input type="text" />
</label>
<button>Update</button>
</label>
</div>
<div class="mt-4">
<label>
<div>Dashboard credentials</div>
<div class="mt-2"></div>
<label>
Username
<input type="text" />
</label>
<label>
Password
<input type="password" />
</label>
<button>Update</button>
</label>
</div>

View File

@@ -0,0 +1,5 @@
<div class="absolute w-full h-full bg-orange-700 rounded-lg">
<div class="w-full mt-32 text-center animate-pulse">
Problems!
</div>
</div>

View File

@@ -2,20 +2,29 @@
<h2> Proxy </h2>
@if($this->server->extra_attributes->proxy)
<div class="mt-12">
<div class="mt-6">
<div>
Proxy type: {{ $this->server->extra_attributes->proxy }}
</div>
<div class="mt-12"> Features in W11.</div>
<ul>
<li>Edit config file</li>
<li>Enable dashboard (blocking port by firewall)</li>
<li>Dashboard access - login/password</li>
<li>Setup host for Traefik Dashboard</li>
<li>Visit (nav to traefik dashboard)</li>
</ul>
<div id="proxy_options" x-init="$wire.checkProxySettingsInSync()" class="relative w-fit">
{{-- Proxy is being checked against DB information --}}
@if(! $this->is_check_proxy_complete)
@include('livewire.server._proxy.loading')
@endif
@if($this->is_check_proxy_complete && (! $this->is_proxy_settings_in_sync) )
@include('livewire.server._proxy.problems')
@endif
@include('livewire.server._proxy.options')
</div>
</div>
@else
{{-- There is no Proxy installed --}}
No proxy installed.
<select wire:model="selectedProxy">
<option value="{{ \App\Enums\ProxyTypes::TRAEFIK_V2 }}">