coolify/resources/views/livewire/notifications/discord.blade.php

89 lines
5.7 KiB
PHP
Raw Normal View History

2023-06-01 10:15:33 +00:00
<div>
2024-06-07 09:01:10 +00:00
<x-slot:title>
Notifications | Coolify
</x-slot>
<x-notification.navbar />
2024-12-09 15:38:25 +00:00
<form wire:submit='submit' class="flex flex-col gap-4 pb-4">
2023-06-01 10:15:33 +00:00
<div class="flex items-center gap-2">
2023-06-02 10:34:45 +00:00
<h2>Discord</h2>
<x-forms.button canGate="update" :canResource="$settings" type="submit">
2023-06-01 10:15:33 +00:00
Save
</x-forms.button>
2024-11-03 22:19:44 +00:00
@if ($discordEnabled)
<x-forms.button canGate="sendTest" :canResource="$settings" class="normal-case dark:text-white btn btn-xs no-animation btn-primary"
2023-08-11 18:19:42 +00:00
wire:click="sendTestNotification">
2024-12-09 15:38:25 +00:00
Send Test Notification
2023-06-09 13:55:21 +00:00
</x-forms.button>
2024-12-11 09:14:12 +00:00
@else
<x-forms.button canGate="sendTest" :canResource="$settings" disabled class="normal-case dark:text-white btn btn-xs no-animation btn-primary">
2024-12-11 09:14:12 +00:00
Send Test Notification
</x-forms.button>
2023-06-09 13:55:21 +00:00
@endif
2023-06-01 10:15:33 +00:00
</div>
<div class="w-48">
<x-forms.checkbox canGate="update" :canResource="$settings" instantSave="instantSaveDiscordEnabled" id="discordEnabled" label="Enabled" />
<x-forms.checkbox canGate="update" :canResource="$settings" instantSave="instantSaveDiscordPingEnabled" id="discordPingEnabled"
helper="If enabled, a ping (@here) will be sent to the notification when a critical event happens."
label="Ping Enabled" />
2023-05-25 16:27:52 +00:00
</div>
<x-forms.input canGate="update" :canResource="$settings" type="password"
helper="Create a Discord Server and generate a Webhook URL. <br><a class='inline-block underline dark:text-white' href='https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks' target='_blank'>Webhook Documentation</a>"
required id="discordWebhookUrl" label="Webhook" />
2023-05-25 16:27:52 +00:00
</form>
2024-12-11 09:14:12 +00:00
<h2 class="mt-4">Notification Settings</h2>
<p class="mb-4">
Select events for which you would like to receive Discord notifications.
</p>
<div class="flex flex-col gap-4 max-w-2xl">
<div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg">
2024-12-11 09:14:12 +00:00
<h3 class="font-medium mb-3">Deployments</h3>
<div class="flex flex-col gap-1.5 pl-1">
<x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="deploymentSuccessDiscordNotifications"
2024-12-11 09:14:12 +00:00
label="Deployment Success" />
<x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="deploymentFailureDiscordNotifications"
2024-12-11 09:14:12 +00:00
label="Deployment Failure" />
<x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel"
2024-12-11 10:28:56 +00:00
helper="Send a notification when a container status changes. It will notify for Stopped and Restarted events of a container."
id="statusChangeDiscordNotifications" label="Container Status Changes" />
2024-12-09 15:38:25 +00:00
</div>
2024-12-11 09:14:12 +00:00
</div>
<div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg">
2024-12-11 09:14:12 +00:00
<h3 class="font-medium mb-3">Backups</h3>
<div class="flex flex-col gap-1.5 pl-1">
<x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="backupSuccessDiscordNotifications"
2024-12-11 09:14:12 +00:00
label="Backup Success" />
<x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="backupFailureDiscordNotifications"
2024-12-11 09:14:12 +00:00
label="Backup Failure" />
2024-12-09 15:38:25 +00:00
</div>
2024-12-11 09:14:12 +00:00
</div>
<div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg">
2024-12-11 09:14:12 +00:00
<h3 class="font-medium mb-3">Scheduled Tasks</h3>
<div class="flex flex-col gap-1.5 pl-1">
<x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="scheduledTaskSuccessDiscordNotifications"
2024-12-11 09:14:12 +00:00
label="Scheduled Task Success" />
<x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="scheduledTaskFailureDiscordNotifications"
2024-12-11 09:14:12 +00:00
label="Scheduled Task Failure" />
2024-12-09 15:38:25 +00:00
</div>
2024-12-11 09:14:12 +00:00
</div>
<div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg">
2024-12-11 09:14:12 +00:00
<h3 class="font-medium mb-3">Server</h3>
<div class="flex flex-col gap-1.5 pl-1">
<x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="dockerCleanupSuccessDiscordNotifications"
2024-12-11 09:14:12 +00:00
label="Docker Cleanup Success" />
<x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="dockerCleanupFailureDiscordNotifications"
2024-12-11 09:14:12 +00:00
label="Docker Cleanup Failure" />
<x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverDiskUsageDiscordNotifications"
2024-12-11 09:14:12 +00:00
label="Server Disk Usage" />
<x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverReachableDiscordNotifications"
2024-12-11 09:14:12 +00:00
label="Server Reachable" />
<x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverUnreachableDiscordNotifications"
2024-12-11 09:14:12 +00:00
label="Server Unreachable" />
<x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverPatchDiscordNotifications"
label="Server Patching" />
<x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="traefikOutdatedDiscordNotifications"
label="Traefik Proxy Outdated" />
2024-12-09 15:38:25 +00:00
</div>
2024-12-11 09:14:12 +00:00
</div>
</div>
2023-05-25 16:27:52 +00:00
</div>