mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-05 07:52:34 +00:00
WIP notifications and other refactors (#88)
* WIP notifications and other refactors - refactor notification channels - send notifications on events related to the servers and sites - delete server log files on server deletion - add telegram notification channel - add new icons - cache configs and icons on installation and updates - new navbar for dark mode and settings * discord channel * build assets * pint
This commit is contained in:
@ -52,6 +52,24 @@
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if($provider == \App\Enums\NotificationChannel::TELEGRAM)
|
||||
<div class="mt-6">
|
||||
<x-input-label for="bot_token" :value="__('Bot Token')" />
|
||||
<x-text-input wire:model.defer="bot_token" id="bot_token" name="bot_token" type="text" class="mt-1 w-full" />
|
||||
@error('bot_token')
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div class="mt-6">
|
||||
<x-input-label for="chat_id" :value="__('Chat ID')" />
|
||||
<x-text-input wire:model.defer="chat_id" id="chat_id" name="chat_id" type="text" class="mt-1 w-full" />
|
||||
@error('chat_id')
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="mt-6 flex justify-end">
|
||||
<x-secondary-button type="button" x-on:click="$dispatch('close')">
|
||||
{{ __('Cancel') }}
|
||||
|
@ -10,8 +10,8 @@
|
||||
@if(count($channels) > 0)
|
||||
@foreach($channels as $channel)
|
||||
<x-item-card>
|
||||
<div class="flex-none">
|
||||
<img src="{{ asset('static/images/' . $channel->provider . '.svg') }}" class="h-10 w-10" alt="">
|
||||
<div class="flex-none text-gray-600 dark:text-gray-300">
|
||||
@include('livewire.notification-channels.icons.' . $channel->provider)
|
||||
</div>
|
||||
<div class="ml-3 flex flex-grow flex-col items-start justify-center">
|
||||
<span class="mb-1">{{ $channel->label }}</span>
|
||||
|
@ -0,0 +1 @@
|
||||
<x-bi-discord class="h-10 w-10" />
|
@ -0,0 +1 @@
|
||||
<x-bi-envelope class="h-10 w-10" />
|
@ -0,0 +1 @@
|
||||
<x-bi-slack class="h-10 w-10" />
|
@ -0,0 +1 @@
|
||||
<x-bi-telegram class="h-10 w-10" />
|
Reference in New Issue
Block a user