wip
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<x-layout>
|
||||
<h1>Servers</h1>
|
||||
@forelse ($servers as $server)
|
||||
<a href="{{ route('project.environments', [$server->uuid]) }}">{{ data_get($server, 'name') }}</a>
|
||||
<a href="{{ route('server.show', [$server->uuid]) }}">{{ data_get($server, 'name') }}</a>
|
||||
@empty
|
||||
<p>No servers found.</p>
|
||||
@endforelse
|
||||
|
||||
17
resources/views/livewire/activity-monitor.blade.php
Normal file
17
resources/views/livewire/activity-monitor.blade.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<div class="mt-8">
|
||||
@isset($this->activity)
|
||||
<span>Activity: {{ $this->activity?->id }}</span>
|
||||
<span>Status: {{ $this->activity?->properties->get('status') }}</span>
|
||||
<pre
|
||||
class="h-[400px] flex flex-col-reverse w-full bg-[#cbcbcb] overflow-y-scroll"
|
||||
@if($isPollingActive)
|
||||
wire:poll.750ms="polling"
|
||||
@endif
|
||||
>{{
|
||||
\App\Actions\CoolifyTask\RunRemoteProcess::decodeOutput($this->activity)
|
||||
}}</pre>
|
||||
@else
|
||||
Not monitoring any activity.
|
||||
@endisset
|
||||
|
||||
</div>
|
||||
30
resources/views/livewire/server/proxy.blade.php
Normal file
30
resources/views/livewire/server/proxy.blade.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<div>
|
||||
<h2> Proxy </h2>
|
||||
|
||||
@if($this->server->extra_attributes->proxy)
|
||||
<div class="mt-12">
|
||||
<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>
|
||||
@else
|
||||
No proxy installed.
|
||||
<select wire:model="selectedProxy">
|
||||
<option value="{{ \App\Enums\ProxyTypes::TRAEFIK_V2 }}">
|
||||
{{ \App\Enums\ProxyTypes::TRAEFIK_V2 }}
|
||||
</option>
|
||||
</select>
|
||||
<button wire:click="runInstallProxy">Install Proxy</button>
|
||||
@endif
|
||||
|
||||
<livewire:activity-monitor />
|
||||
|
||||
</div>
|
||||
5
resources/views/server/show.blade.php
Normal file
5
resources/views/server/show.blade.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<x-layout>
|
||||
<h1> {{ $server->name }}</h1>
|
||||
|
||||
<livewire:server.proxy :server="$server"/>
|
||||
</x-layout>
|
||||
Reference in New Issue
Block a user