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:
Saeed Vaziry
2024-01-07 09:54:08 +01:00
committed by GitHub
parent f06b8f7d20
commit e997d0deea
72 changed files with 1153 additions and 480 deletions

View File

@ -1,27 +1,22 @@
<div class="hidden sm:flex sm:items-center sm:ml-6">
<div class="flex items-center text-gray-600 dark:text-gray-300">
<x-dropdown align="right" width="48">
<x-slot name="trigger">
<button class="inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md text-gray-500 dark:text-gray-400 bg-white dark:bg-gray-800 hover:text-gray-700 dark:hover:text-gray-300 focus:outline-none transition ease-in-out duration-150">
<div>{{ Auth::user()->name }}</div>
<div class="ml-1">
<svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
<path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" />
</svg>
</div>
<button class="flex items-center">
<x-heroicon-o-cog-6-tooth class="w-7 h-7" />
</button>
</x-slot>
<x-slot name="content">
<x-dropdown-link :href="route('profile')">
{{ __('Profile') }}
</x-dropdown-link>
<x-dropdown-link :href="route('profile')">{{ __('Profile') }}</x-dropdown-link>
<x-dropdown-link :href="route('projects')">{{ __('Projects') }}</x-dropdown-link>
<x-dropdown-link :href="route('server-providers')">{{ __('Server Providers') }}</x-dropdown-link>
<x-dropdown-link :href="route('source-controls')">{{ __('Source Controls') }}</x-dropdown-link>
<x-dropdown-link :href="route('storage-providers')">{{ __('Storage Providers') }}</x-dropdown-link>
<x-dropdown-link :href="route('notification-channels')">{{ __('Notification Channels') }}</x-dropdown-link>
<x-dropdown-link :href="route('ssh-keys')">{{ __('SSH Keys') }}</x-dropdown-link>
<!-- Authentication -->
<form method="POST" action="{{ route('logout') }}">
@csrf
<x-dropdown-link :href="route('logout')" onclick="event.preventDefault(); this.closest('form').submit();">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6 mr-1">
<path stroke-linecap="round" stroke-linejoin="round" d="M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15M12 9l-3 3m0 0l3 3m-3-3h12.75" />
</svg>
{{ __('Log Out') }}
</x-dropdown-link>
</form>