Skip to content

Commit 206c992

Browse files
committed
Adding latest updates
1 parent 0fb3996 commit 206c992

17 files changed

+96
-314
lines changed

app/Filament/Widgets/DashboardPlaceholderWidget.php renamed to app/Filament/Widgets/DashboardWidget.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Filament\Widgets\Widget;
66

7-
class DashboardPlaceholderWidget extends Widget
7+
class DashboardWidget extends Widget
88
{
99
protected static ?int $sort = 10;
1010

@@ -15,5 +15,5 @@ class DashboardPlaceholderWidget extends Widget
1515
/**
1616
* @var view-string
1717
*/
18-
protected string $view = 'filament.widgets.dashboard-placeholder-widget';
18+
protected string $view = 'filament.widgets.dashboard-widget';
1919
}

app/Providers/Filament/AdminPanelProvider.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22

33
namespace App\Providers\Filament;
44

5-
use Wave\Widgets\WaveInfoWidget;
6-
use Wave\Widgets\WelcomeWidget;
7-
use Wave\Widgets\UsersWidget;
8-
use Wave\Widgets\PostsPagesWidget;
9-
use App\Filament\Widgets\DashboardPlaceholderWidget;
5+
use App\Filament\Widgets\DashboardWidget;
106
use Filament\Facades\Filament;
117
use Filament\Http\Middleware\Authenticate;
128
use Filament\Http\Middleware\DisableBladeIconComponents;
@@ -56,11 +52,7 @@ public function panel(Panel $panel): Panel
5652
->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\\Filament\\Widgets')
5753
// ->discoverWidgets(in: app_path('BezhanSalleh\FilamentGoogleAnalytics\Widgets'), for: 'BezhanSalleh\\FilamentGoogleAnalytics\\Widgets')
5854
->widgets([
59-
WaveInfoWidget::class,
60-
WelcomeWidget::class,
61-
UsersWidget::class,
62-
PostsPagesWidget::class,
63-
DashboardPlaceholderWidget::class,
55+
DashboardWidget::class,
6456
])
6557
->middleware([
6658
EncryptCookies::class,

public/build/assets/app-BRpsLNjo.css renamed to public/build/assets/app-CtNeIsDo.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/build/assets/theme-Dpn6QWEb.css renamed to public/build/assets/theme-CHhKjvB9.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/build/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"resources/css/filament/admin/theme.css": {
3-
"file": "assets/theme-Dpn6QWEb.css",
3+
"file": "assets/theme-CHhKjvB9.css",
44
"src": "resources/css/filament/admin/theme.css",
55
"isEntry": true
66
},
77
"resources/themes/anchor/assets/css/app.css": {
8-
"file": "assets/app-BRpsLNjo.css",
8+
"file": "assets/app-CtNeIsDo.css",
99
"src": "resources/themes/anchor/assets/css/app.css",
1010
"isEntry": true
1111
},

resources/views/filament/widgets/dashboard-placeholder-widget.blade.php

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
<x-filament-widgets::widget class="gap-5 fi-filament-info-widget">
2+
<section class="flex flex-col gap-5 mb-5 space-x-5 w-full xl:flex-row">
3+
<x-filament::section class="w-full">
4+
<div class="flex gap-x-3 items-center w-full">
5+
<div class="flex-1">
6+
<a href="/" rel="noopener noreferrer" target="_blank"><x-logo class="w-auto h-6"></x-logo></a>
7+
<p class="mt-2 text-xs text-gray-500 dark:text-gray-400">{{ wave_version() }}</p>
8+
</div>
9+
<div class="flex flex-col gap-y-1 items-end">
10+
<x-filament::link color="gray" href="https://wave.devdojo.com/docs" icon="heroicon-m-book-open" icon-alias="panels::widgets.filament-info.open-documentation-button" rel="noopener noreferrer" target="_blank">
11+
{{ __('filament-panels::widgets/filament-info-widget.actions.open_documentation.label') }}
12+
</x-filament::link>
13+
<x-filament::link color="gray" href="https://github.com/thedevdojo/wave" icon-alias="panels::widgets.filament-info.open-github-button" rel="noopener noreferrer" target="_blank">
14+
<x-slot name="icon"><svg viewBox="0 0 98 96" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" fill="currentColor" fill-rule="evenodd" d="M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z" /></svg></x-slot>
15+
{{ __('filament-panels::widgets/filament-info-widget.actions.open_github.label') }}
16+
</x-filament::link>
17+
</div>
18+
</div>
19+
</x-filament::section>
20+
<x-filament::section class="w-full">
21+
<div class="flex gap-x-3 items-center w-full">
22+
<div class="flex-1">
23+
<h2 class="grid flex-1 text-base font-semibold leading-6 text-gray-950 dark:text-white">Welcome to the Wave Admin</h2>
24+
<p class="text-sm text-gray-500 dark:text-gray-400"><span class="font-medium text-blue-600">Active Theme: </span>{{ \Wave\Theme::where('active', 1)->first()->name }}</p>
25+
</div>
26+
<x-filament::button color="gray" icon="heroicon-m-arrow-top-right-on-square" icon-alias="panels::widgets.account.logout-button" labeled-from="sm" tag="a" type="submit" href="/" target="_blank">
27+
Visit your Site
28+
</x-filament::button>
29+
</div>
30+
</x-filament::section>
31+
</section>
32+
<section class="flex gap-5 mb-5">
33+
<section class="flex flex-col gap-5 items-center w-full xl:flex-row">
34+
<x-filament::section class="w-full">
35+
<div class="flex gap-x-5 items-center">
36+
<div class="flex-">
37+
<x-phosphor-users-duotone class="h-10 text-blue-600 fill-current" />
38+
</div>
39+
<div class="flex flex-col w-full">
40+
<div class="mt-1 text-2xl font-semibold tracking-tight text-gray-900 dark:text-gray-200">{{ \Wave\User::count() }}</div>
41+
</div>
42+
</div>
43+
<div class="mt-2 text-xs font-medium text-gray-500 truncate">User Accounts</div>
44+
</x-filament::section>
45+
<x-filament::section class="w-full">
46+
<div class="flex gap-x-5 items-center">
47+
<div class="flex-">
48+
<x-phosphor-credit-card-duotone class="h-10 text-blue-600 fill-current" />
49+
</div>
50+
<div class="flex flex-col w-full">
51+
<div class="mt-1 text-xl font-semibold tracking-tight text-gray-900 dark:text-gray-200">{{ \Wave\User::count() }}</div>
52+
</div>
53+
</div>
54+
<div class="mt-2 text-xs font-medium text-gray-500 truncate">Subscribers</div>
55+
</x-filament::section>
56+
</section>
57+
<section class="flex flex-col gap-5 items-center w-full xl:flex-row">
58+
<x-filament::section class="w-full">
59+
<div class="flex gap-x-5 items-center">
60+
<div class="hidden lg:inline">
61+
<x-phosphor-pencil-line-duotone class="h-10 text-blue-600 fill-current" />
62+
</div>
63+
<div class="flex flex-col w-full">
64+
<div class="mt-1 text-2xl font-semibold tracking-tight text-gray-900 dark:text-gray-200">{{ \Wave\Post::count() }}</div>
65+
</div>
66+
</div>
67+
<div class="mt-2 text-xs font-medium text-gray-500 truncate">Total Post Articles</div>
68+
</x-filament::section>
69+
<x-filament::section class="w-full">
70+
<div class="flex gap-x-5 items-center">
71+
<div class="flex-">
72+
<x-phosphor-file-text-duotone class="h-10 text-blue-600 fill-current" />
73+
</div>
74+
<div class="flex flex-col w-full">
75+
<div class="mt-1 text-xl font-semibold tracking-tight text-gray-900 dark:text-gray-200">{{ \Wave\Page::count() }}</div>
76+
</div>
77+
</div>
78+
<div class="mt-2 text-xs font-medium text-gray-500 truncate">Total Pages</div>
79+
</x-filament::section>
80+
</section>
81+
</section>
82+
<x-filament::section>
83+
<div class="flex flex-col relative gap-x-3 justify-center space-y-2 items-center min-h-[400px] w-full ">
84+
<p class="text-center text-gray-400 dark:text-gray-500">Welcome to your Admin Dashboard. Modify this page at:</p>
85+
<code class="px-2 py-1 text-xs text-center text-gray-500 rounded-lg dark:text-gray-400 bg-stone-200 dark:bg-stone-800">resources/views/filament/widgets/dashboard-placeholder-widget.blade.php</code>
86+
</div>
87+
</x-filament::section>
88+
</x-filament-widgets::widget>

wave/resources/views/widgets/posts-pages-widget.blade.php

Lines changed: 0 additions & 32 deletions
This file was deleted.

wave/resources/views/widgets/users-widget.blade.php

Lines changed: 0 additions & 32 deletions
This file was deleted.

wave/resources/views/widgets/wave-info-widget.blade.php

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)