From 6b5f87eec844e32c4c1e06e031e44fc929ad9812 Mon Sep 17 00:00:00 2001 From: ShadowArcanist Date: Mon, 22 Sep 2025 23:38:36 +0530 Subject: [PATCH 1/2] Added new callout component --- resources/views/components/callout.blade.php | 59 ++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 resources/views/components/callout.blade.php diff --git a/resources/views/components/callout.blade.php b/resources/views/components/callout.blade.php new file mode 100644 index 000000000..e65dad63b --- /dev/null +++ b/resources/views/components/callout.blade.php @@ -0,0 +1,59 @@ +@props(['type' => 'warning', 'title' => 'Warning', 'class' => '']) + +@php + $icons = [ + 'warning' => '', + + 'danger' => '', + + 'info' => '', + + 'success' => '' + ]; + + $colors = [ + 'warning' => [ + 'bg' => 'bg-yellow-50 dark:bg-yellow-900/30', + 'border' => 'border-yellow-300 dark:border-yellow-800', + 'title' => 'text-yellow-800 dark:text-yellow-300', + 'text' => 'text-yellow-700 dark:text-yellow-200' + ], + 'danger' => [ + 'bg' => 'bg-red-50 dark:bg-red-900/30', + 'border' => 'border-red-300 dark:border-red-800', + 'title' => 'text-red-800 dark:text-red-300', + 'text' => 'text-red-700 dark:text-red-200' + ], + 'info' => [ + 'bg' => 'bg-blue-50 dark:bg-blue-900/30', + 'border' => 'border-blue-300 dark:border-blue-800', + 'title' => 'text-blue-800 dark:text-blue-300', + 'text' => 'text-blue-700 dark:text-blue-200' + ], + 'success' => [ + 'bg' => 'bg-green-50 dark:bg-green-900/30', + 'border' => 'border-green-300 dark:border-green-800', + 'title' => 'text-green-800 dark:text-green-300', + 'text' => 'text-green-700 dark:text-green-200' + ] + ]; + + $colorScheme = $colors[$type] ?? $colors['warning']; + $icon = $icons[$type] ?? $icons['warning']; +@endphp + +
merge(['class' => 'p-4 border rounded-lg ' . $colorScheme['bg'] . ' ' . $colorScheme['border'] . ' ' . $class]) }}> +
+
+ {!! $icon !!} +
+
+
+ {{ $title }} +
+
+ {{ $slot }} +
+
+
+
\ No newline at end of file From dc8398ada813c42427edb386d01a45431c4a3fb3 Mon Sep 17 00:00:00 2001 From: ShadowArcanist Date: Mon, 22 Sep 2025 23:56:08 +0530 Subject: [PATCH 2/2] Cleaned up docker cleanup page --- .../livewire/server/docker-cleanup.blade.php | 81 ++++++++++--------- 1 file changed, 43 insertions(+), 38 deletions(-) diff --git a/resources/views/livewire/server/docker-cleanup.blade.php b/resources/views/livewire/server/docker-cleanup.blade.php index 04d133181..4d440b23b 100644 --- a/resources/views/livewire/server/docker-cleanup.blade.php +++ b/resources/views/livewire/server/docker-cleanup.blade.php @@ -11,13 +11,6 @@

Docker Cleanup

Save -
-
Configure Docker cleanup settings for your server.
- - -
-
-

Docker Cleanup

@can('update', $server) @endcan
-
+
Configure Docker cleanup settings for your server.
+
+ +
+
+

Cleanup Configuration

+
+
@@ -40,43 +40,48 @@ label="Docker cleanup threshold (%)" required helper="The Docker cleanup tasks will run when the disk usage exceeds this threshold." /> @endif -
- -
-

- Warning: Enable these - options only if you fully understand their implications and - consequences!
Improper use will result in data loss and could cause - functional issues. -

+
+ +
+ +
+ +
+

Advanced

+ +

These options can cause permanent data loss and functional issues. Only enable if you fully understand the consequences

+
+ helper="This option will remove all unused Docker volumes during cleanup.

Warning: Data from stopped containers will be lost!

Consequences include:
+
    +
  • Volumes not attached to running containers will be deleted and data will be permanently lost (stopped containers are affected).
  • +
  • Data from stopped containers volumes will be permanently lost.
  • +
  • No way to recover deleted volume data.
  • +
" + /> +
    +
  • Networks not attached to running containers will be permanently deleted (stopped containers are affected).
  • +
  • Custom networks for stopped containers will be permanently deleted.
  • +
  • Functionality may be lost and containers may not be able to communicate with each other.
  • +
" + />