feat(sentinel): add slide-over for viewing Sentinel logs and custom Docker image input for development
This commit is contained in:
parent
4027c1426c
commit
e4c3389e12
1 changed files with 32 additions and 0 deletions
|
|
@ -211,6 +211,14 @@ class="w-full input opacity-50 cursor-not-allowed"
|
||||||
:canResource="$server">Save</x-forms.button>
|
:canResource="$server">Save</x-forms.button>
|
||||||
<x-forms.button wire:click='restartSentinel' canGate="update"
|
<x-forms.button wire:click='restartSentinel' canGate="update"
|
||||||
:canResource="$server">Restart</x-forms.button>
|
:canResource="$server">Restart</x-forms.button>
|
||||||
|
<x-slide-over fullScreen>
|
||||||
|
<x-slot:title>Sentinel Logs</x-slot:title>
|
||||||
|
<x-slot:content>
|
||||||
|
<livewire:project.shared.get-logs :server="$server"
|
||||||
|
container="coolify-sentinel" lazy />
|
||||||
|
</x-slot:content>
|
||||||
|
<x-forms.button @click="slideOverOpen=true">Logs</x-forms.button>
|
||||||
|
</x-slide-over>
|
||||||
@else
|
@else
|
||||||
<x-status.stopped status="Out of sync" noLoading
|
<x-status.stopped status="Out of sync" noLoading
|
||||||
title="{{ $sentinelUpdatedAt }}" />
|
title="{{ $sentinelUpdatedAt }}" />
|
||||||
|
|
@ -218,6 +226,14 @@ class="w-full input opacity-50 cursor-not-allowed"
|
||||||
:canResource="$server">Save</x-forms.button>
|
:canResource="$server">Save</x-forms.button>
|
||||||
<x-forms.button wire:click='restartSentinel' canGate="update"
|
<x-forms.button wire:click='restartSentinel' canGate="update"
|
||||||
:canResource="$server">Sync</x-forms.button>
|
:canResource="$server">Sync</x-forms.button>
|
||||||
|
<x-slide-over fullScreen>
|
||||||
|
<x-slot:title>Sentinel Logs</x-slot:title>
|
||||||
|
<x-slot:content>
|
||||||
|
<livewire:project.shared.get-logs :server="$server"
|
||||||
|
container="coolify-sentinel" lazy />
|
||||||
|
</x-slot:content>
|
||||||
|
<x-forms.button @click="slideOverOpen=true">Logs</x-forms.button>
|
||||||
|
</x-slide-over>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
@ -243,6 +259,22 @@ class="w-full input opacity-50 cursor-not-allowed"
|
||||||
label="Enable Metrics (enable Sentinel first)" />
|
label="Enable Metrics (enable Sentinel first)" />
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
@if (isDev() && $server->isSentinelEnabled())
|
||||||
|
<div class="pt-4" x-data="{
|
||||||
|
customImage: localStorage.getItem('sentinel_custom_docker_image_{{ $server->uuid }}') || '',
|
||||||
|
saveCustomImage() {
|
||||||
|
localStorage.setItem('sentinel_custom_docker_image_{{ $server->uuid }}', this.customImage);
|
||||||
|
$wire.set('sentinelCustomDockerImage', this.customImage);
|
||||||
|
}
|
||||||
|
}" x-init="$wire.set('sentinelCustomDockerImage', customImage)">
|
||||||
|
<x-forms.input
|
||||||
|
x-model="customImage"
|
||||||
|
@input.debounce.500ms="saveCustomImage()"
|
||||||
|
placeholder="e.g., sentinel:latest or myregistry/sentinel:dev"
|
||||||
|
label="Custom Sentinel Docker Image (Dev Only)"
|
||||||
|
helper="Override the default Sentinel Docker image for testing. Leave empty to use the default." />
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
@if ($server->isSentinelEnabled())
|
@if ($server->isSentinelEnabled())
|
||||||
<div class="flex flex-wrap gap-2 sm:flex-nowrap items-end">
|
<div class="flex flex-wrap gap-2 sm:flex-nowrap items-end">
|
||||||
<x-forms.input canGate="update" :canResource="$server" type="password" id="sentinelToken"
|
<x-forms.input canGate="update" :canResource="$server" type="password" id="sentinelToken"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue