lasthourcloud/resources/views/livewire/run-command.blade.php

30 lines
1.1 KiB
PHP
Raw Normal View History

2023-03-20 12:04:22 +00:00
<div>
<div>
2023-03-21 08:48:38 +00:00
<label for="command">
2023-05-03 05:15:45 +00:00
<input autofocus id="command" wire:model.defer="command" type="text" wire:keydown.enter="runCommand"/>
<select wire:model.defer="server">
@foreach ($servers as $server)
<option value="{{ $server->uuid }}">{{ $server->name }}</option>
@endforeach
</select>
2023-03-21 08:48:38 +00:00
</label>
<button wire:click="runCommand">Run command</button>
<button wire:click="runSleepingBeauty">Run sleeping beauty</button>
<button wire:click="runDummyProjectBuild">Build DummyProject</button>
2023-03-20 12:04:22 +00:00
</div>
2023-03-21 08:48:38 +00:00
<div>
<input id="manualKeepAlive" name="manualKeepAlive" type="checkbox" wire:model="manualKeepAlive">
<label for="manualKeepAlive">Real-time logs</label>
@if ($isKeepAliveOn || $manualKeepAlive)
Polling...
@endif
2023-03-20 12:04:22 +00:00
</div>
2023-03-21 08:48:38 +00:00
@isset($activity?->id)
2023-05-03 05:15:45 +00:00
<pre
style="width: 100%;overflow-y: scroll;"
@if ($isKeepAliveOn) wire:poll.750ms="polling" @endif
>{{ \App\Actions\CoolifyTask\RunRemoteProcess::decodeOutput($activity) }}</pre>
2023-03-21 08:48:38 +00:00
@endisset
2023-03-20 12:04:22 +00:00
</div>