searchbox add size+seeders+leechers+times_completed+added

This commit is contained in:
xiaomlove
2022-12-20 22:24:31 +08:00
parent ed67b127d4
commit 63321cb20f
15 changed files with 133 additions and 34 deletions

View File

@@ -95,9 +95,8 @@ class Test extends Command
*/
public function handle()
{
$uid = "2,3,4";
$uidArr = preg_split('/[\s,]+/', $uid);
dd($uidArr);
$rep = new WorkRepository();
$rep->settleRole(2, null, true);
}
}

View File

@@ -67,6 +67,7 @@ class TorrentOperationLogResource extends Resource
->label(__('label.created_at'))
,
])
->defaultSort('id', 'desc')
->filters([
Tables\Filters\Filter::make('uid')
->form([

View File

@@ -567,10 +567,7 @@ class User extends Authenticatable implements FilamentUser, HasName
public function acceptNotification($name): bool
{
if (!isset($this->original['notifs'])) {
throw new \RuntimeException("Not fetch field: notifs");
}
return str_contains($this->notifs, "[{$name}]");
return is_null($this->original['notifs']) || str_contains($this->notifs, "[{$name}]");
}

View File

@@ -39,6 +39,7 @@ class AppServiceProvider extends ServiceProvider
Filament::registerNavigationGroups([
'User',
'Torrent',
'Role & Permission',
'Other',
'Section',
'System',