mirror of
https://github.com/bdnugget/speedtest-tracker.git
synced 2026-11-07 08:37:27 +00:00
[Feature] Added home nav item (#921)
This commit is contained in:
1 parent
0a94c552a7
commit
2cbace6c1b
4 files changed
+12
No files matched your search
@@ -16,6 +16,10 @@ class Dashboard extends BasePage
|
||||
{
|
||||
protected static ?string $pollingInterval = null;
|
||||
|
||||
protected static ?string $navigationIcon = 'heroicon-o-chart-bar';
|
||||
|
||||
protected static ?int $navigationSort = 1;
|
||||
|
||||
protected static string $view = 'filament.pages.dashboard';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
|
||||
@@ -26,6 +26,8 @@ class ResultResource extends Resource
|
||||
|
||||
protected static ?string $navigationIcon = 'heroicon-o-table-cells';
|
||||
|
||||
protected static ?int $navigationSort = 2;
|
||||
|
||||
public static function form(Form $form): Form
|
||||
{
|
||||
$settings = new GeneralSettings();
|
||||
|
||||
@@ -21,6 +21,8 @@ class UserResource extends Resource
|
||||
|
||||
protected static ?string $navigationIcon = 'heroicon-o-users';
|
||||
|
||||
protected static ?int $navigationSort = 3;
|
||||
|
||||
public static function form(Form $form): Form
|
||||
{
|
||||
return $form
|
||||
|
||||
@@ -80,6 +80,10 @@ class AdminPanelProvider extends PanelProvider
|
||||
->collapsible(false),
|
||||
])
|
||||
->navigationItems([
|
||||
NavigationItem::make('Home')
|
||||
->url('/')
|
||||
->icon('heroicon-o-home')
|
||||
->sort(0),
|
||||
NavigationItem::make('Documentation')
|
||||
->url('https://docs.speedtest-tracker.dev/', shouldOpenInNewTab: true)
|
||||
->icon('heroicon-o-book-open')
|
||||
|
||||
Reference in new issue
Block a user