-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Chore] Added deprecated image warning to admin panel (#1380)
- Loading branch information
1 parent
d02452d
commit 2e76515
Showing
4 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace App\Filament\Widgets; | ||
|
||
use Filament\Widgets\Widget; | ||
use Illuminate\Support\Facades\Storage; | ||
|
||
class DeprecatedImage extends Widget | ||
{ | ||
protected static string $view = 'filament.widgets.deprecated-image'; | ||
|
||
protected int|string|array $columnSpan = 'full'; | ||
|
||
public static function canView(): bool | ||
{ | ||
return Storage::disk('public')->exists('.deprecated_image'); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
resources/views/filament/widgets/deprecated-image.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<x-filament-widgets::widget> | ||
<x-filament::section icon="heroicon-o-exclamation-triangle" icon-color="danger" icon-size="md"> | ||
<x-slot name="heading"> | ||
Docker Image Deprecated | ||
</x-slot> | ||
|
||
<div class="text-sm font-medium text-gray-500 dark:text-gray-400"> | ||
<p> | ||
The Docker image you're using has been deprecated and will be replaced in <code>v0.20.0</code>. To upgrade to the new image | ||
follow the steps in the <x-filament::link href="https://github.com/alexjustesen/speedtest-tracker/issues/1117" target="_blank" rel="nofollow">GitHub issue</x-filament::link> to continue to receive updates. | ||
</p> | ||
</div> | ||
</x-filament::section> | ||
</x-filament-widgets::widget> |