Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make navigation sort configurable #112

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions resources/lang/ar/filament-logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
'nav.group' => 'إعدادات',
'nav.log.label' => 'سجل النشاطات',
'nav.log.icon' => 'heroicon-o-clipboard-document-list',
'nav.sort' => null,
'resource.label.log' => 'سجل النشاط',
'resource.label.logs' => 'سجل النشاطات',
'resource.label.user' => 'المستخدم',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/de/filament-logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
'nav.group' => 'Settings',
'nav.log.label' => 'Activity Log',
'nav.log.icon' => 'heroicon-o-clipboard-document-list',
'nav.sort' => null,
'resource.label.log' => 'Aktivitätslog',
'resource.label.logs' => 'Aktivitätslog',
'resource.label.user' => 'Nutzer',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/en/filament-logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
'nav.group' => 'Settings',
'nav.log.label' => 'Activity Log',
'nav.log.icon' => 'heroicon-o-clipboard-document-list',
'nav.sort' => null,
'resource.label.log' => 'Activity log',
'resource.label.logs' => 'Activity logs',
'resource.label.user' => 'User',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/es/filament-logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
'nav.group' => 'Settings',
'nav.log.label' => 'Bitácora de actividad',
'nav.log.icon' => 'heroicon-o-clipboard-document-list',
'nav.sort' => null,
'resource.label.log' => 'Registro de actividad',
'resource.label.logs' => 'Registros de actividad',
'resource.label.user' => 'Usuario',
Expand Down
13 changes: 7 additions & 6 deletions resources/lang/fa/filament-logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@

return [

/*
|--------------------------------------------------------------------------
| Navigation & Resource
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| Navigation & Resource
|--------------------------------------------------------------------------
*/

'nav.group' => 'تنظیمات',
'nav.log.label' => 'لاگ فعالیت ها',
'nav.log.icon' => 'heroicon-o-clipboard-document-list',
'nav.log.icon' => 'heroicon-o-clipboard-document-list',
'nav.sort' => null,
'resource.label.log' => 'لاگ فعالیت',
'resource.label.logs' => 'لاگ فعالیت ها',
'resource.label.user' => 'کاربر',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/fr/filament-logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
'nav.group' => 'Paramètres',
'nav.log.label' => 'Journal d\'activités',
'nav.log.icon' => 'heroicon-o-clipboard-document-list',
'nav.sort' => null,
'resource.label.log' => 'Journal d\'activité',
'resource.label.logs' => 'Journal d\'activités',
'resource.label.user' => 'Utilisateur',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/id/filament-logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
'nav.group' => 'Pengaturan',
'nav.log.label' => 'Catatan Aktivitas',
'nav.log.icon' => 'heroicon-o-clipboard-document-list',
'nav.sort' => null,
'resource.label.log' => 'Catatan aktivitas',
'resource.label.logs' => 'Catatan aktivitas',
'resource.label.user' => 'Pengguna',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/it/filament-logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
'nav.group' => 'Impostazioni',
'nav.log.label' => 'Registro attività',
'nav.log.icon' => 'heroicon-o-clipboard-document-list',
'nav.sort' => null,
'resource.label.log' => 'Log',
'resource.label.logs' => 'Log',
'resource.label.user' => 'User',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/ka/filament-logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
'nav.group' => 'პარამეტრები',
'nav.log.label' => 'საქმიანობის ჟურნალი',
'nav.log.icon' => 'heroicon-o-clipboard-document-list',
'nav.sort' => null,
'resource.label.log' => 'საქმიანობის ჟურნალი',
'resource.label.logs' => 'საქმიანობის ჟურნალი',
'resource.label.user' => 'მომხმარებელი',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/ko/filament-logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
'nav.group' => '설정',
'nav.log.label' => '활동 로그',
'nav.log.icon' => 'heroicon-o-clipboard-document-list',
'nav.sort' => null,
'resource.label.log' => '활동 로그',
'resource.label.logs' => '활동 로그',
'resource.label.user' => '사용자',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/nl/filament-logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
'nav.group' => 'Instellingen',
'nav.log.label' => 'Activiteitenlog',
'nav.log.icon' => 'heroicon-o-clipboard-document-list',
'nav.sort' => null,
'resource.label.log' => 'Activiteiten log',
'resource.label.logs' => 'Activiteiten logs',
'resource.label.user' => 'Gebruiker',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/pt_BR/filament-logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
'nav.group' => 'Configurações',
'nav.log.label' => 'Registro de atividade',
'nav.log.icon' => 'heroicon-o-clipboard-document-list',
'nav.sort' => null,
'resource.label.log' => 'Registro de atividade',
'resource.label.logs' => 'Registros de atividade',
'resource.label.user' => 'Usuário',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/ru/filament-logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
'nav.group' => 'Настройки',
'nav.log.label' => 'Лог действий',
'nav.log.icon' => 'heroicon-o-clipboard-document-list',
'nav.sort' => null,
'resource.label.log' => 'Лога действий',
'resource.label.logs' => 'Журнал активности',
'resource.label.user' => 'Юзер',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/tr/filament-logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
'nav.group' => 'Ayarlar',
'nav.log.label' => 'Aktivite Günlüğü',
'nav.log.icon' => 'heroicon-o-clipboard-document-list',
'nav.sort' => null,
'resource.label.log' => 'Aktivite Günlüğü',
'resource.label.logs' => 'Aktivite Günlükleri',
'resource.label.user' => 'Kullanıcı',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/uk/filament-logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
'nav.group' => 'Налаштування',
'nav.log.label' => 'Лог дій',
'nav.log.icon' => 'heroicon-o-clipboard-document-list',
'nav.sort' => null,
'resource.label.log' => 'Лога дій',
'resource.label.logs' => 'Журнал активності',
'resource.label.user' => 'Юзер',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/vi/filament-logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
'nav.group' => 'Cài đặt',
'nav.log.label' => 'Nhật ký hoạt động',
'nav.log.icon' => 'heroicon-o-clipboard-document-list',
'nav.sort' => null,
'resource.label.log' => 'Nhật ký hoạt động',
'resource.label.logs' => 'Nhật ký hoạt động',
'resource.label.user' => 'Người dùng',
Expand Down
5 changes: 5 additions & 0 deletions src/Resources/ActivityResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,4 +331,9 @@ public static function getNavigationIcon(): string
{
return __('filament-logger::filament-logger.nav.log.icon');
}

public static function getNavigationSort(): ?int
{
return __('filament-logger::filament-logger.nav.sort');
}
}