Skip to content

Commit ba381b5

Browse files
authored
feat(typesense-dashboard): add typesense dashboard to Tools navigation (#22)
1 parent 391bf0f commit ba381b5

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

config/eclipse.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@
133133
*/
134134
'tools' => [
135135
'phpmyadmin' => env('PHPMYADMIN_URL'),
136+
'typesense_dashboard' => env('TYPESENSE_DASHBOARD_URL'),
136137
],
137138

138139
];

src/Providers/AdminPanelProvider.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,16 @@ public function panel(Panel $panel): Panel
207207
]);
208208
}
209209

210+
if (config('eclipse.tools.typesense_dashboard')) {
211+
$panel->navigationItems([
212+
NavigationItem::make('Typesense Dashboard')
213+
->url(config('eclipse.tools.typesense_dashboard'), shouldOpenInNewTab: true)
214+
->icon('heroicon-s-arrow-top-right-on-square')
215+
->group('Tools')
216+
->sort(910),
217+
]);
218+
}
219+
210220
// Configure notifications
211221
Notifications::alignment(Alignment::Center);
212222
Notifications::verticalAlignment(VerticalAlignment::End);

0 commit comments

Comments
 (0)