From 4f75c8d511811d4a0e82f8c5c4b23bd6db2d20b0 Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Mon, 29 Apr 2024 12:40:39 +0300 Subject: [PATCH] update --- .../Components/QuickServiceRestartMenu.php | 42 ++++++ web/app/Providers/AppServiceProvider.php | 4 + .../Providers/Filament/AdminPanelProvider.php | 7 + .../quick-service-restart-menu.blade.php | 133 ++++++++++++++++++ 4 files changed, 186 insertions(+) create mode 100644 web/app/Livewire/Components/QuickServiceRestartMenu.php create mode 100644 web/resources/views/filament/quick-service-restart-menu.blade.php diff --git a/web/app/Livewire/Components/QuickServiceRestartMenu.php b/web/app/Livewire/Components/QuickServiceRestartMenu.php new file mode 100644 index 0000000..4e6d3d4 --- /dev/null +++ b/web/app/Livewire/Components/QuickServiceRestartMenu.php @@ -0,0 +1,42 @@ +id('admin') ->path('admin') ->login() + ->renderHook( + name: PanelsRenderHook::TOPBAR_START, + hook: fn (): string => Blade::render('@livewire(\'quick-service-restart-menu\')') + ) + // ->topNavigation() ->unsavedChangesAlerts() ->globalSearch(true) ->databaseNotifications() diff --git a/web/resources/views/filament/quick-service-restart-menu.blade.php b/web/resources/views/filament/quick-service-restart-menu.blade.php new file mode 100644 index 0000000..ce857ae --- /dev/null +++ b/web/resources/views/filament/quick-service-restart-menu.blade.php @@ -0,0 +1,133 @@ +
+ + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Restart Apache +
+
+ + +
+ + + + Restart MySQL +
+
+ + +
+ + + + Restart Supervisor +
+
+ +
+
+ + + +