lasthourcloud/resources/views/livewire/project/shared/get-logs.blade.php

23 lines
984 B
PHP
Raw Normal View History

2023-10-02 11:38:16 +00:00
<div x-init="$wire.getLogs">
<div class="flex gap-2">
<h2>Logs</h2>
@if ($streamLogs)
2023-10-02 12:01:16 +00:00
<span wire:poll.2000ms='getLogs(true)' class="loading loading-xs text-warning loading-spinner"></span>
2023-10-02 11:38:16 +00:00
@endif
</div>
2023-10-02 12:01:16 +00:00
<form wire:submit.prevent='getLogs(true)' class="flex items-end gap-2">
<x-forms.input label="Only Show Number of Lines" placeholder="1000" required id="numberOfLines"></x-forms.input>
2023-10-02 12:01:54 +00:00
<x-forms.button type="submit">Refresh</x-forms.button>
2023-10-02 12:01:16 +00:00
</form>
2023-10-02 11:38:16 +00:00
<div class="w-32">
<x-forms.checkbox instantSave label="Stream Logs" id="streamLogs"></x-forms.checkbox>
</div>
<div class="container w-full pt-4 mx-auto">
<div
class="scrollbar flex flex-col-reverse w-full overflow-y-auto border border-solid rounded border-coolgray-300 max-h-[32rem] p-4 pt-6 text-xs text-white">
<pre class="font-mono whitespace-pre-wrap">{{ $outputs }}</pre>
</div>
</div>
</div>