mirror of
https://github.com/cupcakearmy/coolify.git
synced 2024-10-23 00:24:15 +02:00
smaller ui fixes
This commit is contained in:
parent
ef428f844f
commit
c5932ed337
@ -18,7 +18,9 @@
|
|||||||
href="#">Environment
|
href="#">Environment
|
||||||
Variables</a>
|
Variables</a>
|
||||||
@endif
|
@endif
|
||||||
|
<a :class="activeTab === 'scheduled-tasks' && 'text-white'"
|
||||||
|
@click.prevent="activeTab = 'scheduled-tasks'; window.location.hash = 'scheduled-tasks'" href="#">Scheduled Tasks
|
||||||
|
</a>
|
||||||
@if ($application->git_based())
|
@if ($application->git_based())
|
||||||
<a :class="activeTab === 'source' && 'text-white'"
|
<a :class="activeTab === 'source' && 'text-white'"
|
||||||
@click.prevent="activeTab = 'source'; window.location.hash = 'source'" href="#">Source</a>
|
@click.prevent="activeTab = 'source'; window.location.hash = 'source'" href="#">Source</a>
|
||||||
@ -54,9 +56,7 @@
|
|||||||
href="#">Resource Limits
|
href="#">Resource Limits
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
<a :class="activeTab === 'scheduled-tasks' && 'text-white'"
|
|
||||||
@click.prevent="activeTab = 'scheduled-tasks'; window.location.hash = 'scheduled-tasks'" href="#">Scheduled Tasks
|
|
||||||
</a>
|
|
||||||
<a :class="activeTab === 'danger' && 'text-white'"
|
<a :class="activeTab === 'danger' && 'text-white'"
|
||||||
@click.prevent="activeTab = 'danger'; window.location.hash = 'danger'" href="#">Danger Zone
|
@click.prevent="activeTab = 'danger'; window.location.hash = 'danger'" href="#">Danger Zone
|
||||||
</a>
|
</a>
|
||||||
|
@ -1,7 +1,20 @@
|
|||||||
<div class="flex flex-col-reverse gap-2">
|
<div class="flex flex-col-reverse gap-2">
|
||||||
@forelse($executions as $execution)
|
@forelse($executions as $execution)
|
||||||
<a class="flex flex-col box" wire:click="selectTask({{ data_get($execution, 'id') }})"
|
@if (data_get($execution, 'id') == $selectedKey)
|
||||||
@class([
|
<div class="p-2">
|
||||||
|
@if (data_get($execution, 'message'))
|
||||||
|
<div>
|
||||||
|
<pre>{{ data_get($execution, 'message') }}</pre>
|
||||||
|
</div>
|
||||||
|
@else
|
||||||
|
<div>No output was recorded for this execution.</div>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
<a wire:click="selectTask({{ data_get($execution, 'id') }})" @class([
|
||||||
|
'flex flex-col border-l border-dashed transition-colors box-without-bg bg-coolgray-100 hover:bg-coolgray-100',
|
||||||
|
'bg-coolgray-200 text-white hover:bg-coolgray-200' =>
|
||||||
|
data_get($execution, 'id') == $selectedKey,
|
||||||
'border-green-500' => data_get($execution, 'status') === 'success',
|
'border-green-500' => data_get($execution, 'status') === 'success',
|
||||||
'border-red-500' => data_get($execution, 'status') === 'failed',
|
'border-red-500' => data_get($execution, 'status') === 'failed',
|
||||||
])>
|
])>
|
||||||
@ -12,14 +25,6 @@
|
|||||||
@endif
|
@endif
|
||||||
<div>Status: {{ data_get($execution, 'status') }}</div>
|
<div>Status: {{ data_get($execution, 'status') }}</div>
|
||||||
<div>Started At: {{ data_get($execution, 'created_at') }}</div>
|
<div>Started At: {{ data_get($execution, 'created_at') }}</div>
|
||||||
@if (data_get($execution, 'id') == $selectedKey)
|
|
||||||
@if (data_get($execution, 'message'))
|
|
||||||
<div>Output: <pre>{{ data_get($execution, 'message') }}</pre></div>
|
|
||||||
@else
|
|
||||||
<div>No output was recorded for this execution.</div>
|
|
||||||
@endif
|
|
||||||
@endif
|
|
||||||
</a>
|
|
||||||
</a>
|
</a>
|
||||||
@empty
|
@empty
|
||||||
<div>No executions found.</div>
|
<div>No executions found.</div>
|
||||||
|
@ -13,8 +13,8 @@ class="font-bold text-warning">({{ $task->name }})</span>?</p>
|
|||||||
<livewire:project.service.navbar :service="$resource" :parameters="$parameters" />
|
<livewire:project.service.navbar :service="$resource" :parameters="$parameters" />
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<form wire:submit="submit">
|
<form wire:submit="submit" class="w-full">
|
||||||
<div class="flex flex-col gap-2 pb-10">
|
<div class="flex flex-col gap-2 pb-4">
|
||||||
<div class="flex items-end gap-2 pt-4">
|
<div class="flex items-end gap-2 pt-4">
|
||||||
<h2>Scheduled Task</h2>
|
<h2>Scheduled Task</h2>
|
||||||
<x-forms.button type="submit">
|
<x-forms.button type="submit">
|
||||||
@ -27,16 +27,17 @@ class="font-bold text-warning">({{ $task->name }})</span>?</p>
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="flex w-full gap-2">
|
||||||
<x-forms.input placeholder="Run cron" id="task.name" label="Name" required />
|
<x-forms.input placeholder="Name" id="task.name" label="Name" required />
|
||||||
<x-forms.input placeholder="php artisan schedule:run" id="task.command" label="Command" required />
|
<x-forms.input placeholder="php artisan schedule:run" id="task.command" label="Command" required />
|
||||||
<x-forms.input placeholder="0 0 * * * or daily" id="task.frequency" label="Frequency" required />
|
<x-forms.input placeholder="0 0 * * * or daily" id="task.frequency" label="Frequency" required />
|
||||||
<x-forms.input placeholder="php" id="task.container" label="Container name" />
|
<x-forms.input placeholder="php" helper="You can leave it empty if your resource only have one container."
|
||||||
|
id="task.container" label="Container name" />
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<div class="pt-10">
|
<div class="pt-4">
|
||||||
<h3 class="py-4">Recent executions</h3>
|
<h3 class="py-4">Recent executions</h3>
|
||||||
<livewire:project.shared.scheduled-task.executions key="{{ $task->id }}" selectedKey=""
|
<livewire:project.shared.scheduled-task.executions key="{{ $task->id }}" selectedKey="" :executions="$task->executions->take(-20)" />
|
||||||
:executions="$task->executions->take(-20)" />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user