Introduce filament

This commit is contained in:
xiaomlove
2022-06-27 01:39:01 +08:00
parent aae45835ee
commit 1aca20070d
92 changed files with 3535 additions and 83 deletions
+15
View File
@@ -0,0 +1,15 @@
<?php
return [
'sidebar' => [
'exam_users' => 'Exam Users',
'hit_and_runs' => 'Hit And Runs',
'users_list' => 'Users',
'tags_list' => 'Tags',
'agent_allows' => 'Agent Allows',
'agent_denies' => 'Agent Denies',
'exams_list' => 'Exams',
'medals_list' => 'Medals',
'settings' => 'Settings',
],
];
+7 -1
View File
@@ -52,6 +52,12 @@ return [
],
'latest_torrent' => [
'page_title' => 'Torrent latest',
]
],
'torrent_trend' => [
'page_title' => 'Torrent trend',
],
'user_trend' => [
'page_title' => 'User trend',
],
];
+6 -1
View File
@@ -5,5 +5,10 @@ return [
'list' => [
'page_title' => 'Exam users'
]
]
],
'status' => [
\App\Models\ExamUser::STATUS_FINISHED => 'Finished',
\App\Models\ExamUser::STATUS_AVOIDED => 'Avoided',
\App\Models\ExamUser::STATUS_NORMAL => 'Normal',
],
];
+5 -1
View File
@@ -6,5 +6,9 @@ return [
'list' => [
'page_title' => 'Medal list'
]
]
],
'get_types' => [
\App\Models\Medal::GET_TYPE_EXCHANGE => 'Exchange',
\App\Models\Medal::GET_TYPE_GRANT => 'Grant',
],
];
+15
View File
@@ -0,0 +1,15 @@
<?php
return [
'sidebar' => [
'exam_users' => '用户考核',
'hit_and_runs' => '用户 H&R',
'users_list' => '用户列表',
'tags_list' => '标签',
'agent_allows' => '允许客户端',
'agent_denies' => '拒绝客户端',
'exams_list' => '考核',
'medals_list' => '勋章',
'settings' => '设置',
],
];
+7 -1
View File
@@ -52,6 +52,12 @@ return [
],
'latest_torrent' => [
'page_title' => '最新种子',
]
],
'torrent_trend' => [
'page_title' => '种子趋势',
],
'user_trend' => [
'page_title' => '用户趋势',
],
];
+6 -1
View File
@@ -5,5 +5,10 @@ return [
'list' => [
'page_title' => '考核用户列表'
]
]
],
'status' => [
\App\Models\ExamUser::STATUS_FINISHED => '已结束',
\App\Models\ExamUser::STATUS_AVOIDED => '已免除',
\App\Models\ExamUser::STATUS_NORMAL => '考核中',
],
];
+5 -1
View File
@@ -6,5 +6,9 @@ return [
'list' => [
'page_title' => '勋章列表'
]
]
],
'get_types' => [
\App\Models\Medal::GET_TYPE_EXCHANGE => '兑换',
\App\Models\Medal::GET_TYPE_GRANT => '授予',
],
];
+15
View File
@@ -0,0 +1,15 @@
<?php
return [
'sidebar' => [
'exam_users' => '用戶考核',
'hit_and_runs' => '用戶 H&R',
'users_list' => '用戶列表',
'tags_list' => '標簽',
'agent_allows' => '允許客戶端',
'agent_denies' => '拒絕客戶端',
'exams_list' => '考核',
'medals_list' => '勛章',
'settings' => '設置',
],
];
+7 -1
View File
@@ -52,6 +52,12 @@ return [
],
'latest_torrent' => [
'page_title' => '最新種子',
]
],
'torrent_trend' => [
'page_title' => '種子趨勢',
],
'user_trend' => [
'page_title' => '用戶趨勢',
],
];
+6 -1
View File
@@ -5,5 +5,10 @@ return [
'list' => [
'page_title' => '考核用戶列表'
]
]
],
'status' => [
\App\Models\ExamUser::STATUS_FINISHED => '已結束',
\App\Models\ExamUser::STATUS_AVOIDED => '已免除',
\App\Models\ExamUser::STATUS_NORMAL => '考核中',
],
];
+5 -1
View File
@@ -6,5 +6,9 @@ return [
'list' => [
'page_title' => '勛章列表'
]
]
],
'get_types' => [
\App\Models\Medal::GET_TYPE_EXCHANGE => '兌換',
\App\Models\Medal::GET_TYPE_GRANT => '授予',
],
];
@@ -0,0 +1,3 @@
<x-filament::page>
</x-filament::page>
@@ -0,0 +1,16 @@
<x-filament::widget>
<x-filament::card>
@php
$user = \Filament\Facades\Filament::auth()->user();
@endphp
<div class="h-12 flex items-center space-x-4 rtl:space-x-reverse">
<div>
<h2 class="text-lg sm:text-xl font-bold tracking-tight">
{{ __('filament::widgets/account-widget.welcome', ['user' => \Filament\Facades\Filament::getUserName($user) . '(' . $user->classText . ')']) }}
</h2>
</div>
</div>
</x-filament::card>
</x-filament::widget>