mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-24 03:59:08 -05:00
Merge pull request #3380 from Roardom/livewire-types
(Fix) Some Livewire types
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
namespace App\Http\Livewire;
|
||||
|
||||
use App\Models\Announce;
|
||||
use App\Traits\LivewireSort;
|
||||
use Livewire\Component;
|
||||
use Livewire\WithPagination;
|
||||
|
||||
@@ -22,6 +23,7 @@ use Livewire\WithPagination;
|
||||
*/
|
||||
class AnnounceSearch extends Component
|
||||
{
|
||||
use LivewireSort;
|
||||
use WithPagination;
|
||||
|
||||
public int $perPage = 50;
|
||||
@@ -35,7 +37,7 @@ class AnnounceSearch extends Component
|
||||
public string $sortDirection = 'desc';
|
||||
|
||||
/**
|
||||
* @var array<string, mixed>
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'page' => ['except' => 1],
|
||||
@@ -73,17 +75,6 @@ class AnnounceSearch extends Component
|
||||
->paginate($this->perPage);
|
||||
}
|
||||
|
||||
final public function sortBy(string $field): void
|
||||
{
|
||||
if ($this->sortField === $field) {
|
||||
$this->sortDirection = $this->sortDirection === 'asc' ? 'desc' : 'asc';
|
||||
} else {
|
||||
$this->sortDirection = 'asc';
|
||||
}
|
||||
|
||||
$this->sortField = $field;
|
||||
}
|
||||
|
||||
final public function render(): \Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View|\Illuminate\Contracts\Foundation\Application
|
||||
{
|
||||
return view('livewire.announce-search', [
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace App\Http\Livewire;
|
||||
|
||||
use App\Models\Apikey;
|
||||
use App\Models\User;
|
||||
use App\Traits\LivewireSort;
|
||||
use Livewire\Component;
|
||||
use Livewire\WithPagination;
|
||||
|
||||
@@ -23,6 +24,7 @@ use Livewire\WithPagination;
|
||||
*/
|
||||
class ApikeySearch extends Component
|
||||
{
|
||||
use LivewireSort;
|
||||
use WithPagination;
|
||||
|
||||
public string $username = '';
|
||||
@@ -36,7 +38,7 @@ class ApikeySearch extends Component
|
||||
public int $perPage = 25;
|
||||
|
||||
/**
|
||||
* @var array<string, mixed>
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'username' => ['except' => ''],
|
||||
@@ -70,15 +72,4 @@ class ApikeySearch extends Component
|
||||
'apikeys' => $this->apikeys,
|
||||
]);
|
||||
}
|
||||
|
||||
final public function sortBy(string $field): void
|
||||
{
|
||||
if ($this->sortField === $field) {
|
||||
$this->sortDirection = $this->sortDirection === 'asc' ? 'desc' : 'asc';
|
||||
} else {
|
||||
$this->sortDirection = 'asc';
|
||||
}
|
||||
|
||||
$this->sortField = $field;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,6 +58,9 @@ class AttachmentUpload extends Component
|
||||
$this->dispatchBrowserEvent('success', ['type' => 'success', 'message' => 'Ticket Attachment Uploaded Successfully!']);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Database\Eloquent\Collection<int, TicketAttachment>
|
||||
*/
|
||||
final public function getAttachmentsProperty(): \Illuminate\Database\Eloquent\Collection
|
||||
{
|
||||
return Ticket::find($this->ticket)->attachments;
|
||||
|
||||
@@ -38,6 +38,9 @@ class AuditLogSearch extends Component
|
||||
|
||||
public string $sortDirection = 'desc';
|
||||
|
||||
/**
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'username' => ['except' => ''],
|
||||
'modelName' => ['except' => ''],
|
||||
@@ -53,6 +56,9 @@ class AuditLogSearch extends Component
|
||||
$this->emit('paginationChanged');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
final public function getModelNamesProperty()
|
||||
{
|
||||
$modelList = [];
|
||||
@@ -71,6 +77,9 @@ class AuditLogSearch extends Component
|
||||
return $modelList;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Audit>
|
||||
*/
|
||||
final public function getAuditsProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
$audits = Audit::with('user')
|
||||
|
||||
@@ -32,6 +32,9 @@ class BackupPanel extends Component
|
||||
{
|
||||
protected $listeners = ['refreshBackups' => '$refresh'];
|
||||
|
||||
/**
|
||||
* @return array<mixed>
|
||||
*/
|
||||
final public function getBackupStatusesProperty(): array
|
||||
{
|
||||
return BackupDestinationStatusFactory::createForMonitorConfig(config('backup.monitor_backups'))
|
||||
@@ -59,6 +62,9 @@ class BackupPanel extends Component
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<mixed>
|
||||
*/
|
||||
final public function getDisksProperty(): array
|
||||
{
|
||||
return collect($this->backupStatuses)
|
||||
|
||||
@@ -27,6 +27,9 @@ class BlockIpAddress extends Component
|
||||
|
||||
public int $perPage = 25;
|
||||
|
||||
/**
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'page' => ['except' => 1],
|
||||
'perPage' => ['except' => ''],
|
||||
|
||||
@@ -21,7 +21,7 @@ class CollectionSearch extends Component
|
||||
{
|
||||
use WithPagination;
|
||||
|
||||
public $search = '';
|
||||
public string $search = '';
|
||||
|
||||
final public function updatedPage(): void
|
||||
{
|
||||
@@ -33,6 +33,9 @@ class CollectionSearch extends Component
|
||||
$this->resetPage();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Collection>
|
||||
*/
|
||||
final public function getCollectionsProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return Collection::withCount('movie')
|
||||
|
||||
@@ -29,17 +29,20 @@ use App\Models\User;
|
||||
use App\Notifications\NewComment;
|
||||
use App\Notifications\NewCommentTag;
|
||||
use App\Repositories\ChatRepository;
|
||||
use App\Traits\CastLivewireProperties;
|
||||
use Illuminate\Support\Facades\Notification;
|
||||
use Livewire\Component;
|
||||
use voku\helper\AntiXSS;
|
||||
|
||||
class Comment extends Component
|
||||
{
|
||||
use CastLivewireProperties;
|
||||
|
||||
protected ChatRepository $chatRepository;
|
||||
|
||||
public $comment;
|
||||
|
||||
public $anon = false;
|
||||
public bool $anon = false;
|
||||
|
||||
public ?User $user;
|
||||
|
||||
@@ -73,6 +76,11 @@ class Comment extends Component
|
||||
$this->user = auth()->user();
|
||||
}
|
||||
|
||||
final public function updating(string $field, mixed &$value): void
|
||||
{
|
||||
$this->castLivewireProperties($field, $value);
|
||||
}
|
||||
|
||||
final public function taggedUsers(): array
|
||||
{
|
||||
preg_match_all('/@([\w\-]+)/', implode('', $this->editState), $matches);
|
||||
|
||||
@@ -30,6 +30,7 @@ use App\Models\User;
|
||||
use App\Notifications\NewComment;
|
||||
use App\Notifications\NewCommentTag;
|
||||
use App\Repositories\ChatRepository;
|
||||
use App\Traits\CastLivewireProperties;
|
||||
use Illuminate\Support\Facades\Notification;
|
||||
use Livewire\Component;
|
||||
use Livewire\WithPagination;
|
||||
@@ -37,6 +38,8 @@ use voku\helper\AntiXSS;
|
||||
|
||||
class Comments extends Component
|
||||
{
|
||||
use CastLivewireProperties;
|
||||
|
||||
use WithPagination;
|
||||
|
||||
protected ChatRepository $chatRepository;
|
||||
@@ -45,7 +48,7 @@ class Comments extends Component
|
||||
|
||||
public $model;
|
||||
|
||||
public $anon = false;
|
||||
public bool $anon = false;
|
||||
|
||||
public int $perPage = 10;
|
||||
|
||||
@@ -71,6 +74,11 @@ class Comments extends Component
|
||||
$this->user = auth()->user();
|
||||
}
|
||||
|
||||
final public function updating(string $field, mixed &$value): void
|
||||
{
|
||||
$this->castLivewireProperties($field, $value);
|
||||
}
|
||||
|
||||
final public function taggedUsers(): array
|
||||
{
|
||||
preg_match_all('/@([\w\-]+)/', implode('', $this->newCommentState), $matches);
|
||||
@@ -196,6 +204,9 @@ class Comments extends Component
|
||||
$this->gotoPage(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Comment>
|
||||
*/
|
||||
final public function getCommentsProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return $this->model
|
||||
|
||||
@@ -21,7 +21,7 @@ class CompanySearch extends Component
|
||||
{
|
||||
use WithPagination;
|
||||
|
||||
public $search = '';
|
||||
public string $search = '';
|
||||
|
||||
final public function updatedPage(): void
|
||||
{
|
||||
@@ -33,6 +33,9 @@ class CompanySearch extends Component
|
||||
$this->resetPage();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Company>
|
||||
*/
|
||||
final public function getCompaniesProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return Company::withCount('tv', 'movie')
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
namespace App\Http\Livewire;
|
||||
|
||||
use App\Models\FailedLoginAttempt;
|
||||
use App\Traits\LivewireSort;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Livewire\Component;
|
||||
@@ -21,6 +22,7 @@ use Livewire\WithPagination;
|
||||
|
||||
class FailedLoginSearch extends Component
|
||||
{
|
||||
use LivewireSort;
|
||||
use WithPagination;
|
||||
|
||||
public string $username = '';
|
||||
@@ -35,6 +37,9 @@ class FailedLoginSearch extends Component
|
||||
|
||||
public string $sortDirection = 'desc';
|
||||
|
||||
/**
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'username' => ['except' => ''],
|
||||
'userId' => ['except' => ''],
|
||||
@@ -48,6 +53,9 @@ class FailedLoginSearch extends Component
|
||||
$this->emit('paginationChanged');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Database\Eloquent\Collection<int, FailedLoginAttempt>
|
||||
*/
|
||||
final public function getFailedLoginsTop10IpProperty(): \Illuminate\Database\Eloquent\Collection
|
||||
{
|
||||
return FailedLoginAttempt::query()
|
||||
@@ -60,6 +68,9 @@ class FailedLoginSearch extends Component
|
||||
->get();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<FailedLoginAttempt>
|
||||
*/
|
||||
final public function getFailedLoginsProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return FailedLoginAttempt::query()
|
||||
@@ -71,17 +82,6 @@ class FailedLoginSearch extends Component
|
||||
->paginate($this->perPage);
|
||||
}
|
||||
|
||||
final public function sortBy($field): void
|
||||
{
|
||||
if ($this->sortField === $field) {
|
||||
$this->sortDirection = $this->sortDirection === 'asc' ? 'desc' : 'asc';
|
||||
} else {
|
||||
$this->sortDirection = 'asc';
|
||||
}
|
||||
|
||||
$this->sortField = $field;
|
||||
}
|
||||
|
||||
final public function render(): \Illuminate\Contracts\View\View|\Illuminate\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\Foundation\Application
|
||||
{
|
||||
return view('livewire.failed-login-search', [
|
||||
|
||||
@@ -22,14 +22,17 @@ class ForumCategoryTopicSearch extends Component
|
||||
{
|
||||
use WithPagination;
|
||||
|
||||
public String $search = '';
|
||||
public String $sortField = 'last_reply_at';
|
||||
public String $sortDirection = 'desc';
|
||||
public String $label = '';
|
||||
public String $state = '';
|
||||
public String $subscribed = '';
|
||||
public string $search = '';
|
||||
public string $sortField = 'last_reply_at';
|
||||
public string $sortDirection = 'desc';
|
||||
public string $label = '';
|
||||
public string $state = '';
|
||||
public string $subscribed = '';
|
||||
public Forum $category;
|
||||
|
||||
/**
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'search' => ['except' => ''],
|
||||
'sortField' => ['except' => 'last_reply_at'],
|
||||
@@ -54,6 +57,9 @@ class ForumCategoryTopicSearch extends Component
|
||||
$this->resetPage();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Topic>
|
||||
*/
|
||||
final public function getTopicsProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return Topic::query()
|
||||
|
||||
@@ -23,15 +23,18 @@ class ForumTopicSearch extends Component
|
||||
{
|
||||
use WithPagination;
|
||||
|
||||
public String $search = '';
|
||||
public String $sortField = 'last_reply_at';
|
||||
public String $sortDirection = 'desc';
|
||||
public String $label = '';
|
||||
public String $state = '';
|
||||
public String $subscribed = '';
|
||||
public string $search = '';
|
||||
public string $sortField = 'last_reply_at';
|
||||
public string $sortDirection = 'desc';
|
||||
public string $label = '';
|
||||
public string $state = '';
|
||||
public string $subscribed = '';
|
||||
public Forum $forum;
|
||||
public ?Subscription $subscription;
|
||||
|
||||
/**
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'search' => ['except' => ''],
|
||||
'sortField' => ['except' => 'last_reply_at'],
|
||||
@@ -57,6 +60,9 @@ class ForumTopicSearch extends Component
|
||||
$this->resetPage();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Topic>
|
||||
*/
|
||||
final public function getTopicsProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return Topic::query()
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace App\Http\Livewire;
|
||||
|
||||
use App\Models\BonTransactions;
|
||||
use App\Models\User;
|
||||
use App\Traits\LivewireSort;
|
||||
use Livewire\Component;
|
||||
use Livewire\WithPagination;
|
||||
|
||||
@@ -23,6 +24,7 @@ use Livewire\WithPagination;
|
||||
*/
|
||||
class GiftLogSearch extends Component
|
||||
{
|
||||
use LivewireSort;
|
||||
use WithPagination;
|
||||
|
||||
public string $sender = '';
|
||||
@@ -37,6 +39,9 @@ class GiftLogSearch extends Component
|
||||
|
||||
public int $perPage = 25;
|
||||
|
||||
/**
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'sender' => ['except' => ''],
|
||||
'receiver' => ['except' => ''],
|
||||
@@ -49,6 +54,9 @@ class GiftLogSearch extends Component
|
||||
$this->emit('paginationChanged');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<BonTransactions>
|
||||
*/
|
||||
final public function getGiftsProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return BonTransactions::with([
|
||||
@@ -69,15 +77,4 @@ class GiftLogSearch extends Component
|
||||
'gifts' => $this->gifts,
|
||||
]);
|
||||
}
|
||||
|
||||
final public function sortBy($field): void
|
||||
{
|
||||
if ($this->sortField === $field) {
|
||||
$this->sortDirection = $this->sortDirection === 'asc' ? 'desc' : 'asc';
|
||||
} else {
|
||||
$this->sortDirection = 'asc';
|
||||
}
|
||||
|
||||
$this->sortField = $field;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ namespace App\Http\Livewire;
|
||||
use App\Models\History;
|
||||
use App\Models\Torrent;
|
||||
use App\Models\User;
|
||||
use App\Traits\LivewireSort;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Livewire\Component;
|
||||
use Livewire\WithPagination;
|
||||
@@ -25,6 +26,7 @@ use Livewire\WithPagination;
|
||||
*/
|
||||
class HistorySearch extends Component
|
||||
{
|
||||
use LivewireSort;
|
||||
use WithPagination;
|
||||
|
||||
public int $perPage = 25;
|
||||
@@ -37,6 +39,9 @@ class HistorySearch extends Component
|
||||
public string $sortField = '';
|
||||
public string $sortDirection = 'desc';
|
||||
|
||||
/**
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'page' => ['except' => 1],
|
||||
'perPage' => ['except' => 25],
|
||||
@@ -85,6 +90,9 @@ class HistorySearch extends Component
|
||||
$this->resetPage();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<History>
|
||||
*/
|
||||
final public function getHistoriesProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return History::query()
|
||||
@@ -154,17 +162,6 @@ class HistorySearch extends Component
|
||||
->paginate($this->perPage);
|
||||
}
|
||||
|
||||
final public function sortBy($field): void
|
||||
{
|
||||
if ($this->sortField === $field) {
|
||||
$this->sortDirection = $this->sortDirection === 'asc' ? 'desc' : 'asc';
|
||||
} else {
|
||||
$this->sortDirection = 'asc';
|
||||
}
|
||||
|
||||
$this->sortField = $field;
|
||||
}
|
||||
|
||||
final public function render(): \Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View|\Illuminate\Contracts\Foundation\Application
|
||||
{
|
||||
return view('livewire.history-search', [
|
||||
|
||||
@@ -15,12 +15,14 @@ namespace App\Http\Livewire;
|
||||
|
||||
use App\Models\Invite;
|
||||
use App\Models\User;
|
||||
use App\Traits\LivewireSort;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Livewire\Component;
|
||||
use Livewire\WithPagination;
|
||||
|
||||
class InviteLogSearch extends Component
|
||||
{
|
||||
use LivewireSort;
|
||||
use WithPagination;
|
||||
|
||||
public string $sender = '';
|
||||
@@ -43,6 +45,9 @@ class InviteLogSearch extends Component
|
||||
|
||||
public int $perPage = 25;
|
||||
|
||||
/**
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'sender' => ['except' => ''],
|
||||
'email' => ['except' => ''],
|
||||
@@ -78,6 +83,9 @@ class InviteLogSearch extends Component
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Invite>
|
||||
*/
|
||||
final public function getInvitesProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return Invite::withTrashed()
|
||||
@@ -137,15 +145,4 @@ class InviteLogSearch extends Component
|
||||
'invites' => $this->invites,
|
||||
]);
|
||||
}
|
||||
|
||||
final public function sortBy($field): void
|
||||
{
|
||||
if ($this->sortField === $field) {
|
||||
$this->sortDirection = $this->sortDirection === 'asc' ? 'desc' : 'asc';
|
||||
} else {
|
||||
$this->sortDirection = 'asc';
|
||||
}
|
||||
|
||||
$this->sortField = $field;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
namespace App\Http\Livewire;
|
||||
|
||||
use App\Traits\CastLivewireProperties;
|
||||
use Illuminate\Pagination\LengthAwarePaginator;
|
||||
use Illuminate\Support\Facades\File;
|
||||
use Livewire\Component;
|
||||
@@ -25,16 +26,26 @@ use SplFileInfo;
|
||||
*/
|
||||
class LaravelLogViewer extends Component
|
||||
{
|
||||
use CastLivewireProperties;
|
||||
use WithPagination;
|
||||
|
||||
public $logs = [0];
|
||||
/**
|
||||
* @var int[]|string[]
|
||||
*/
|
||||
public array $logs = [0];
|
||||
|
||||
public $page = 1;
|
||||
|
||||
public $perPage = 5;
|
||||
public int $perPage = 5;
|
||||
|
||||
/**
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = ['page'];
|
||||
|
||||
final public function updating(string $field, mixed &$value): void
|
||||
{
|
||||
$this->castLivewireProperties($field, $value);
|
||||
}
|
||||
|
||||
final public function updatedPage(): void
|
||||
{
|
||||
$this->emit('paginationChanged');
|
||||
|
||||
@@ -4,11 +4,13 @@ namespace App\Http\Livewire;
|
||||
|
||||
use App\Models\Movie;
|
||||
use App\Models\Type;
|
||||
use App\Traits\LivewireSort;
|
||||
use Livewire\Component;
|
||||
use Livewire\WithPagination;
|
||||
|
||||
class MissingMediaSearch extends Component
|
||||
{
|
||||
use LivewireSort;
|
||||
use WithPagination;
|
||||
|
||||
public array $categories = [];
|
||||
@@ -19,6 +21,9 @@ class MissingMediaSearch extends Component
|
||||
|
||||
public string $sortDirection = 'desc';
|
||||
|
||||
/**
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'categories' => ['except' => []],
|
||||
'sortField' => ['except' => 'created_at'],
|
||||
@@ -27,6 +32,9 @@ class MissingMediaSearch extends Component
|
||||
'perPage' => ['except' => ''],
|
||||
];
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Movie>
|
||||
*/
|
||||
final public function getMediasProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return Movie::with(['torrents:tmdb,resolution_id,type_id' => ['resolution:id,position,name']])
|
||||
@@ -35,21 +43,14 @@ class MissingMediaSearch extends Component
|
||||
->paginate($this->perPage);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Database\Eloquent\Collection<int, Type>
|
||||
*/
|
||||
final public function getTypesProperty(): \Illuminate\Database\Eloquent\Collection
|
||||
{
|
||||
return Type::select('id', 'position', 'name')->orderBy('position')->get();
|
||||
}
|
||||
|
||||
final public function sortBy($field): void
|
||||
{
|
||||
if ($this->sortField === $field) {
|
||||
$this->sortDirection = $this->sortDirection === 'asc' ? 'desc' : 'asc';
|
||||
} else {
|
||||
$this->sortDirection = 'asc';
|
||||
}
|
||||
$this->sortField = $field;
|
||||
}
|
||||
|
||||
final public function render(): \Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View|\Illuminate\Contracts\Foundation\Application
|
||||
{
|
||||
return view('livewire.missing-media-search', ['medias' => $this->medias, 'types' => $this->types]);
|
||||
|
||||
@@ -21,7 +21,7 @@ class NetworkSearch extends Component
|
||||
{
|
||||
use WithPagination;
|
||||
|
||||
public $search = '';
|
||||
public string $search = '';
|
||||
|
||||
final public function updatedPage(): void
|
||||
{
|
||||
@@ -33,6 +33,9 @@ class NetworkSearch extends Component
|
||||
$this->resetPage();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Network>
|
||||
*/
|
||||
final public function getNetworksProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return Network::withCount('tv')
|
||||
|
||||
@@ -14,6 +14,9 @@ class NoteSearch extends Component
|
||||
|
||||
public string $search = '';
|
||||
|
||||
/**
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'search' => ['except' => ''],
|
||||
'page' => ['except' => 1],
|
||||
@@ -30,6 +33,9 @@ class NoteSearch extends Component
|
||||
$this->resetPage();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Note>
|
||||
*/
|
||||
final public function getNotesProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return Note::query()
|
||||
|
||||
@@ -14,11 +14,13 @@
|
||||
namespace App\Http\Livewire;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Traits\LivewireSort;
|
||||
use Livewire\Component;
|
||||
use Livewire\WithPagination;
|
||||
|
||||
class NotificationSearch extends Component
|
||||
{
|
||||
use LivewireSort;
|
||||
use WithPagination;
|
||||
|
||||
public bool $bon_gifts = false;
|
||||
@@ -70,6 +72,9 @@ class NotificationSearch extends Component
|
||||
$this->emit('paginationChanged');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<\Illuminate\Notifications\DatabaseNotification>
|
||||
*/
|
||||
final public function getNotificationsProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return auth()->user()->notifications()
|
||||
@@ -138,17 +143,6 @@ class NotificationSearch extends Component
|
||||
->paginate($this->perPage);
|
||||
}
|
||||
|
||||
final public function sortBy($field): void
|
||||
{
|
||||
if ($this->sortField === $field) {
|
||||
$this->sortDirection = $this->sortDirection === 'asc' ? 'desc' : 'asc';
|
||||
} else {
|
||||
$this->sortDirection = 'asc';
|
||||
}
|
||||
|
||||
$this->sortField = $field;
|
||||
}
|
||||
|
||||
final public function render(): \Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View|\Illuminate\Contracts\Foundation\Application
|
||||
{
|
||||
return view('livewire.notification-search', [
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace App\Http\Livewire;
|
||||
|
||||
use App\Models\Passkey;
|
||||
use App\Models\User;
|
||||
use App\Traits\LivewireSort;
|
||||
use Livewire\Component;
|
||||
use Livewire\WithPagination;
|
||||
|
||||
@@ -23,6 +24,7 @@ use Livewire\WithPagination;
|
||||
*/
|
||||
class PasskeySearch extends Component
|
||||
{
|
||||
use LivewireSort;
|
||||
use WithPagination;
|
||||
|
||||
public string $username = '';
|
||||
@@ -36,7 +38,7 @@ class PasskeySearch extends Component
|
||||
public int $perPage = 25;
|
||||
|
||||
/**
|
||||
* @var array<string, mixed>
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'username' => ['except' => ''],
|
||||
@@ -70,15 +72,4 @@ class PasskeySearch extends Component
|
||||
'passkeys' => $this->passkeys,
|
||||
]);
|
||||
}
|
||||
|
||||
final public function sortBy(string $field): void
|
||||
{
|
||||
if ($this->sortField === $field) {
|
||||
$this->sortDirection = $this->sortDirection === 'asc' ? 'desc' : 'asc';
|
||||
} else {
|
||||
$this->sortDirection = 'asc';
|
||||
}
|
||||
|
||||
$this->sortField = $field;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,12 +15,14 @@ namespace App\Http\Livewire;
|
||||
|
||||
use App\Models\Peer;
|
||||
use App\Models\Torrent;
|
||||
use App\Traits\LivewireSort;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Livewire\Component;
|
||||
use Livewire\WithPagination;
|
||||
|
||||
class PeerSearch extends Component
|
||||
{
|
||||
use LivewireSort;
|
||||
use WithPagination;
|
||||
|
||||
public bool $duplicateIpsOnly = false;
|
||||
@@ -36,6 +38,9 @@ class PeerSearch extends Component
|
||||
public string $sortField = 'created_at';
|
||||
public string $sortDirection = 'desc';
|
||||
|
||||
/**
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'page' => ['except' => 1],
|
||||
'duplicateIpsOnly' => ['except' => false],
|
||||
@@ -84,6 +89,9 @@ class PeerSearch extends Component
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Peer>
|
||||
*/
|
||||
final public function getPeersProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return Peer::query()
|
||||
@@ -211,17 +219,6 @@ class PeerSearch extends Component
|
||||
->paginate($this->perPage);
|
||||
}
|
||||
|
||||
final public function sortBy($field): void
|
||||
{
|
||||
if ($this->sortField === $field) {
|
||||
$this->sortDirection = $this->sortDirection === 'asc' ? 'desc' : 'asc';
|
||||
} else {
|
||||
$this->sortDirection = 'desc';
|
||||
}
|
||||
|
||||
$this->sortField = $field;
|
||||
}
|
||||
|
||||
final public function render(): \Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View|\Illuminate\Contracts\Foundation\Application
|
||||
{
|
||||
return view('livewire.peer-search', [
|
||||
|
||||
@@ -26,6 +26,9 @@ class PersonCredit extends Component
|
||||
|
||||
public ?int $occupationId = null;
|
||||
|
||||
/**
|
||||
* @var array<mixed>
|
||||
*/
|
||||
public $queryString = [
|
||||
'occupationId',
|
||||
];
|
||||
@@ -47,9 +50,9 @@ class PersonCredit extends Component
|
||||
};
|
||||
}
|
||||
|
||||
final public function getPersonalFreeleechProperty()
|
||||
final public function getPersonalFreeleechProperty(): bool
|
||||
{
|
||||
return cache()->get('personal_freeleech:'.auth()->user()->id);
|
||||
return cache()->get('personal_freeleech:'.auth()->user()->id) ?? false;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -110,6 +113,9 @@ class PersonCredit extends Component
|
||||
return $this->person->actedMovies()->count() + $this->person->actedTv()->count();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Support\Collection<int, Torrent>
|
||||
*/
|
||||
final public function getMediasProperty(): \Illuminate\Support\Collection
|
||||
{
|
||||
if ($this->occupationId === null) {
|
||||
|
||||
@@ -21,7 +21,7 @@ class PersonSearch extends Component
|
||||
{
|
||||
use WithPagination;
|
||||
|
||||
public $search = '';
|
||||
public string $search = '';
|
||||
|
||||
final public function updatedPage(): void
|
||||
{
|
||||
@@ -33,6 +33,9 @@ class PersonSearch extends Component
|
||||
$this->resetPage();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Person>
|
||||
*/
|
||||
final public function getPersonsProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return Person::select(['id', 'still', 'name'])
|
||||
|
||||
@@ -24,6 +24,9 @@ class PostSearch extends Component
|
||||
|
||||
public String $search = '';
|
||||
|
||||
/**
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'search' => ['except' => ''],
|
||||
];
|
||||
@@ -37,6 +40,9 @@ class PostSearch extends Component
|
||||
$this->resetPage();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Post>
|
||||
*/
|
||||
final public function getPostsProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return Post::query()
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace App\Http\Livewire;
|
||||
|
||||
use App\Models\Rsskey;
|
||||
use App\Models\User;
|
||||
use App\Traits\LivewireSort;
|
||||
use Livewire\Component;
|
||||
use Livewire\WithPagination;
|
||||
|
||||
@@ -23,6 +24,7 @@ use Livewire\WithPagination;
|
||||
*/
|
||||
class RsskeySearch extends Component
|
||||
{
|
||||
use LivewireSort;
|
||||
use WithPagination;
|
||||
|
||||
public string $username = '';
|
||||
@@ -36,7 +38,7 @@ class RsskeySearch extends Component
|
||||
public int $perPage = 25;
|
||||
|
||||
/**
|
||||
* @var array<string, mixed>
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'username' => ['except' => ''],
|
||||
@@ -70,15 +72,4 @@ class RsskeySearch extends Component
|
||||
'rsskeys' => $this->rsskeys,
|
||||
]);
|
||||
}
|
||||
|
||||
final public function sortBy(string $field): void
|
||||
{
|
||||
if ($this->sortField === $field) {
|
||||
$this->sortDirection = $this->sortDirection === 'asc' ? 'desc' : 'asc';
|
||||
} else {
|
||||
$this->sortDirection = 'asc';
|
||||
}
|
||||
|
||||
$this->sortField = $field;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,22 +21,30 @@ use App\Models\Torrent;
|
||||
use App\Models\TorrentRequest;
|
||||
use App\Models\Tv;
|
||||
use App\Services\Unit3dAnnounce;
|
||||
use App\Traits\CastLivewireProperties;
|
||||
use App\Traits\LivewireSort;
|
||||
use Livewire\Component;
|
||||
use MarcReichel\IGDBLaravel\Models\Game;
|
||||
|
||||
class SimilarTorrent extends Component
|
||||
{
|
||||
use CastLivewireProperties;
|
||||
use LivewireSort;
|
||||
|
||||
public Category $category;
|
||||
|
||||
public Movie|Tv|Game $work;
|
||||
|
||||
public $tmdbId;
|
||||
public int $tmdbId;
|
||||
|
||||
public $igdbId;
|
||||
public int $igdbId;
|
||||
|
||||
public $reason;
|
||||
public string $reason;
|
||||
|
||||
public $checked = [];
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public array $checked = [];
|
||||
|
||||
public bool $selectPage = false;
|
||||
|
||||
@@ -48,6 +56,11 @@ class SimilarTorrent extends Component
|
||||
|
||||
protected $listeners = ['destroy' => 'deleteRecords'];
|
||||
|
||||
final public function updating(string $field, mixed &$value): void
|
||||
{
|
||||
$this->castLivewireProperties($field, $value);
|
||||
}
|
||||
|
||||
final public function updatedSelectPage($value): void
|
||||
{
|
||||
$this->checked = $value ? $this->torrents->pluck('id')->map(fn ($item) => (string) $item)->toArray() : [];
|
||||
@@ -69,6 +82,9 @@ class SimilarTorrent extends Component
|
||||
return \in_array($torrentId, $this->checked);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Support\Collection<int, Torrent>
|
||||
*/
|
||||
final public function getTorrentsProperty(): \Illuminate\Support\Collection
|
||||
{
|
||||
$user = auth()->user();
|
||||
@@ -113,7 +129,10 @@ class SimilarTorrent extends Component
|
||||
->get();
|
||||
}
|
||||
|
||||
final public function getTorrentRequestsProperty(): array|\Illuminate\Database\Eloquent\Collection
|
||||
/**
|
||||
* @return \Illuminate\Database\Eloquent\Collection<int, TorrentRequest>
|
||||
*/
|
||||
final public function getTorrentRequestsProperty(): \Illuminate\Database\Eloquent\Collection
|
||||
{
|
||||
return TorrentRequest::with(['user:id,username,group_id', 'user.group', 'category', 'type', 'resolution'])
|
||||
->withCount(['comments'])
|
||||
@@ -123,17 +142,6 @@ class SimilarTorrent extends Component
|
||||
->get();
|
||||
}
|
||||
|
||||
final public function sortBy($field): void
|
||||
{
|
||||
if ($this->sortField === $field) {
|
||||
$this->sortDirection = $this->sortDirection === 'asc' ? 'desc' : 'asc';
|
||||
} else {
|
||||
$this->sortDirection = 'asc';
|
||||
}
|
||||
|
||||
$this->sortField = $field;
|
||||
}
|
||||
|
||||
final public function alertConfirm(): void
|
||||
{
|
||||
if (!auth()->user()->group->is_modo) {
|
||||
@@ -238,9 +246,9 @@ class SimilarTorrent extends Component
|
||||
]);
|
||||
}
|
||||
|
||||
final public function getPersonalFreeleechProperty()
|
||||
final public function getPersonalFreeleechProperty(): bool
|
||||
{
|
||||
return cache()->get('personal_freeleech:'.auth()->id());
|
||||
return cache()->get('personal_freeleech:'.auth()->id()) ?? false;
|
||||
}
|
||||
|
||||
final public function render(): \Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View|\Illuminate\Contracts\Foundation\Application
|
||||
|
||||
@@ -21,6 +21,9 @@ class SubscribedForum extends Component
|
||||
{
|
||||
use WithPagination;
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Forum>
|
||||
*/
|
||||
final public function getForumsProperty()
|
||||
{
|
||||
return Forum::query()
|
||||
|
||||
@@ -21,6 +21,9 @@ class SubscribedTopic extends Component
|
||||
{
|
||||
use WithPagination;
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Topic>
|
||||
*/
|
||||
final public function getTopicsProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return Topic::query()
|
||||
|
||||
@@ -16,17 +16,22 @@ namespace App\Http\Livewire;
|
||||
use App\Models\Subtitle;
|
||||
use App\Models\Torrent;
|
||||
use App\Models\User;
|
||||
use App\Traits\LivewireSort;
|
||||
use Livewire\Component;
|
||||
use Livewire\WithPagination;
|
||||
|
||||
class SubtitleSearch extends Component
|
||||
{
|
||||
use LivewireSort;
|
||||
use WithPagination;
|
||||
|
||||
public int $perPage = 25;
|
||||
|
||||
public string $search = '';
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public array $categories = [];
|
||||
|
||||
public string $language = '';
|
||||
@@ -47,6 +52,9 @@ class SubtitleSearch extends Component
|
||||
$this->resetPage();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Subtitle>
|
||||
*/
|
||||
final public function getSubtitlesProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return Subtitle::with(['user.group', 'torrent.category', 'language'])
|
||||
@@ -71,17 +79,6 @@ class SubtitleSearch extends Component
|
||||
->paginate($this->perPage);
|
||||
}
|
||||
|
||||
final public function sortBy($field): void
|
||||
{
|
||||
if ($this->sortField === $field) {
|
||||
$this->sortDirection = $this->sortDirection === 'asc' ? 'desc' : 'asc';
|
||||
} else {
|
||||
$this->sortDirection = 'asc';
|
||||
}
|
||||
|
||||
$this->sortField = $field;
|
||||
}
|
||||
|
||||
final public function render(): \Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View|\Illuminate\Contracts\Foundation\Application
|
||||
{
|
||||
return view('livewire.subtitle-search', [
|
||||
|
||||
@@ -21,11 +21,11 @@ use Livewire\Component;
|
||||
|
||||
class ThankButton extends Component
|
||||
{
|
||||
public $torrent;
|
||||
public ?Torrent $torrent = null;
|
||||
|
||||
public ?User $user = null;
|
||||
|
||||
final public function mount($torrent): void
|
||||
final public function mount(int $torrent): void
|
||||
{
|
||||
$this->user = auth()->user();
|
||||
$this->torrent = Torrent::withoutGlobalScope(ApprovedScope::class)->findOrFail($torrent);
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace App\Http\Livewire;
|
||||
|
||||
use App\Models\Ticket;
|
||||
use App\Models\User;
|
||||
use App\Traits\LivewireSort;
|
||||
use Livewire\Component;
|
||||
use Livewire\WithPagination;
|
||||
|
||||
@@ -23,6 +24,7 @@ use Livewire\WithPagination;
|
||||
*/
|
||||
class TicketSearch extends Component
|
||||
{
|
||||
use LivewireSort;
|
||||
use WithPagination;
|
||||
|
||||
public ?User $user = null;
|
||||
@@ -37,6 +39,9 @@ class TicketSearch extends Component
|
||||
|
||||
public string $sortDirection = 'desc';
|
||||
|
||||
/**
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'search' => ['except' => ''],
|
||||
'tab' => ['except' => 'open'],
|
||||
@@ -62,6 +67,9 @@ class TicketSearch extends Component
|
||||
$this->resetPage();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Ticket>
|
||||
*/
|
||||
final public function getTicketsProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return Ticket::query()
|
||||
@@ -77,17 +85,6 @@ class TicketSearch extends Component
|
||||
->paginate($this->perPage);
|
||||
}
|
||||
|
||||
final public function sortBy($field): void
|
||||
{
|
||||
if ($this->sortField === $field) {
|
||||
$this->sortDirection = $this->sortDirection === 'asc' ? 'desc' : 'asc';
|
||||
} else {
|
||||
$this->sortDirection = 'asc';
|
||||
}
|
||||
|
||||
$this->sortField = $field;
|
||||
}
|
||||
|
||||
final public function render(): \Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View|\Illuminate\Contracts\Foundation\Application
|
||||
{
|
||||
return view('livewire.ticket-search', [
|
||||
|
||||
@@ -30,7 +30,7 @@ class Top10 extends Component
|
||||
public string $interval = 'day';
|
||||
|
||||
/**
|
||||
* @var array<string, mixed>
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'metaType' => ['except' => 'movie_meta'],
|
||||
|
||||
@@ -22,10 +22,13 @@ class TopicPostSearch extends Component
|
||||
{
|
||||
use WithPagination;
|
||||
|
||||
public String $search = '';
|
||||
public string $search = '';
|
||||
|
||||
public Topic $topic;
|
||||
|
||||
/**
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'search' => ['except' => ''],
|
||||
];
|
||||
@@ -45,6 +48,9 @@ class TopicPostSearch extends Component
|
||||
$this->resetPage();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Post>
|
||||
*/
|
||||
final public function getPostsProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return Post::query()
|
||||
|
||||
@@ -22,14 +22,17 @@ class TopicSearch extends Component
|
||||
{
|
||||
use WithPagination;
|
||||
|
||||
public String $search = '';
|
||||
public String $sortField = 'last_reply_at';
|
||||
public String $sortDirection = 'desc';
|
||||
public String $label = '';
|
||||
public String $state = '';
|
||||
public String $subscribed = '';
|
||||
public string $search = '';
|
||||
public string $sortField = 'last_reply_at';
|
||||
public string $sortDirection = 'desc';
|
||||
public string $label = '';
|
||||
public string $state = '';
|
||||
public string $subscribed = '';
|
||||
public String $forumId = '';
|
||||
|
||||
/**
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'search' => ['except' => ''],
|
||||
'sortField' => ['except' => 'last_reply_at'],
|
||||
@@ -50,7 +53,10 @@ class TopicSearch extends Component
|
||||
$this->resetPage();
|
||||
}
|
||||
|
||||
final public function getForumCategoriesProperty()
|
||||
/**
|
||||
* @return \Illuminate\Support\Collection<int, Forum>
|
||||
*/
|
||||
final public function getForumCategoriesProperty(): \Illuminate\Support\Collection
|
||||
{
|
||||
return Forum::query()
|
||||
->with(['forums' => fn ($query) => $query
|
||||
@@ -62,6 +68,9 @@ class TopicSearch extends Component
|
||||
->get();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Topic>
|
||||
*/
|
||||
final public function getTopicsProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return Topic::query()
|
||||
|
||||
@@ -16,49 +16,65 @@ namespace App\Http\Livewire;
|
||||
use App\Models\TorrentRequest;
|
||||
use App\Models\TorrentRequestBounty;
|
||||
use App\Models\TorrentRequestClaim;
|
||||
use App\Traits\CastLivewireProperties;
|
||||
use App\Traits\LivewireSort;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Livewire\Component;
|
||||
use Livewire\WithPagination;
|
||||
|
||||
class TorrentRequestSearch extends Component
|
||||
{
|
||||
use CastLivewireProperties;
|
||||
use LivewireSort;
|
||||
use WithPagination;
|
||||
|
||||
public string $name = '';
|
||||
|
||||
public string $requestor = '';
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public array $categories = [];
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public array $types = [];
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public array $resolutions = [];
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public array $genres = [];
|
||||
|
||||
public string $tmdbId = '';
|
||||
public ?int $tmdbId = null;
|
||||
|
||||
public string $imdbId = '';
|
||||
|
||||
public string $tvdbId = '';
|
||||
public ?int $tvdbId = null;
|
||||
|
||||
public string $malId = '';
|
||||
public ?int $malId = null;
|
||||
|
||||
public $unfilled;
|
||||
public bool $unfilled = false;
|
||||
|
||||
public $claimed;
|
||||
public bool $claimed = false;
|
||||
|
||||
public $pending;
|
||||
public bool $pending = false;
|
||||
|
||||
public $filled;
|
||||
public bool $filled = false;
|
||||
|
||||
public $myRequests;
|
||||
public bool $myRequests = false;
|
||||
|
||||
public $myClaims;
|
||||
public bool $myClaims = false;
|
||||
|
||||
public $myVoted;
|
||||
public bool $myVoted = false;
|
||||
|
||||
public $myFilled;
|
||||
public bool $myFilled = false;
|
||||
|
||||
public int $perPage = 25;
|
||||
|
||||
@@ -68,6 +84,9 @@ class TorrentRequestSearch extends Component
|
||||
|
||||
public bool $showFilters = false;
|
||||
|
||||
/**
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'name' => ['except' => ''],
|
||||
'requestor' => ['except' => ''],
|
||||
@@ -92,6 +111,11 @@ class TorrentRequestSearch extends Component
|
||||
'page' => ['except' => 1],
|
||||
];
|
||||
|
||||
final public function updating(string $field, mixed &$value): void
|
||||
{
|
||||
$this->castLivewireProperties($field, $value);
|
||||
}
|
||||
|
||||
final public function updatedPage(): void
|
||||
{
|
||||
$this->emit('paginationChanged');
|
||||
@@ -120,6 +144,9 @@ class TorrentRequestSearch extends Component
|
||||
->first();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<TorrentRequest>
|
||||
*/
|
||||
final public function getTorrentRequestsProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
$user = auth()->user();
|
||||
@@ -137,10 +164,10 @@ class TorrentRequestSearch extends Component
|
||||
->when($this->categories !== [], fn ($query) => $query->ofCategory($this->categories))
|
||||
->when($this->types !== [], fn ($query) => $query->ofType($this->types))
|
||||
->when($this->resolutions !== [], fn ($query) => $query->ofResolution($this->resolutions))
|
||||
->when($this->tmdbId !== '', fn ($query) => $query->ofTmdb((int) $this->tmdbId))
|
||||
->when($this->tmdbId !== null, fn ($query) => $query->ofTmdb($this->tmdbId))
|
||||
->when($this->imdbId !== '', fn ($query) => $query->ofImdb((int) (preg_match('/tt0*(?=(\d{7,}))/', $this->imdbId, $matches) ? $matches[1] : $this->imdbId)))
|
||||
->when($this->tvdbId !== '', fn ($query) => $query->ofTvdb((int) $this->tvdbId))
|
||||
->when($this->malId !== '', fn ($query) => $query->ofMal((int) $this->malId))
|
||||
->when($this->tvdbId !== null, fn ($query) => $query->ofTvdb((int) $this->tvdbId))
|
||||
->when($this->malId !== null, fn ($query) => $query->ofMal((int) $this->malId))
|
||||
->when($this->unfilled || $this->claimed || $this->pending || $this->filled, function ($query): void {
|
||||
$query->where(function ($query): void {
|
||||
$query->where(function ($query): void {
|
||||
@@ -183,17 +210,6 @@ class TorrentRequestSearch extends Component
|
||||
->paginate($this->perPage);
|
||||
}
|
||||
|
||||
final public function sortBy($field): void
|
||||
{
|
||||
if ($this->sortField === $field) {
|
||||
$this->sortDirection = $this->sortDirection === 'asc' ? 'desc' : 'asc';
|
||||
} else {
|
||||
$this->sortDirection = 'asc';
|
||||
}
|
||||
|
||||
$this->sortField = $field;
|
||||
}
|
||||
|
||||
final public function render(): \Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View|\Illuminate\Contracts\Foundation\Application
|
||||
{
|
||||
return view('livewire.torrent-request-search', [
|
||||
|
||||
@@ -18,6 +18,8 @@ use App\Models\Movie;
|
||||
use App\Models\Torrent;
|
||||
use App\Models\Tv;
|
||||
use App\Models\User;
|
||||
use App\Traits\CastLivewireProperties;
|
||||
use App\Traits\LivewireSort;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Livewire\Component;
|
||||
use Livewire\WithPagination;
|
||||
@@ -25,6 +27,8 @@ use Closure;
|
||||
|
||||
class TorrentSearch extends Component
|
||||
{
|
||||
use CastLivewireProperties;
|
||||
use LivewireSort;
|
||||
use WithPagination;
|
||||
|
||||
public string $name = '';
|
||||
@@ -37,9 +41,9 @@ class TorrentSearch extends Component
|
||||
|
||||
public string $keywords = '';
|
||||
|
||||
public string $startYear = '';
|
||||
public ?int $startYear = null;
|
||||
|
||||
public string $endYear = '';
|
||||
public ?int $endYear = null;
|
||||
|
||||
public ?int $minSize = null;
|
||||
|
||||
@@ -49,39 +53,60 @@ class TorrentSearch extends Component
|
||||
|
||||
public int $maxSizeMultiplier = 1;
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public array $categories = [];
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public array $types = [];
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public array $resolutions = [];
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public array $genres = [];
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public array $regions = [];
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public array $distributors = [];
|
||||
|
||||
public string $tmdbId = '';
|
||||
public ?int $tmdbId = null;
|
||||
|
||||
public string $imdbId = '';
|
||||
|
||||
public string $tvdbId = '';
|
||||
public ?int $tvdbId = null;
|
||||
|
||||
public string $malId = '';
|
||||
public ?int $malId = null;
|
||||
|
||||
public string $playlistId = '';
|
||||
public ?int $playlistId = null;
|
||||
|
||||
public string $collectionId = '';
|
||||
public ?int $collectionId = null;
|
||||
|
||||
public string $networkId = '';
|
||||
public ?int $networkId = null;
|
||||
|
||||
public string $companyId = '';
|
||||
public ?int $companyId = null;
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public array $primaryLanguages = [];
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public array $free = [];
|
||||
|
||||
public bool $doubleup = false;
|
||||
@@ -130,6 +155,9 @@ class TorrentSearch extends Component
|
||||
|
||||
public string $view = 'list';
|
||||
|
||||
/**
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'name' => ['except' => ''],
|
||||
'description' => ['except' => ''],
|
||||
@@ -181,6 +209,11 @@ class TorrentSearch extends Component
|
||||
'view' => ['except' => 'list'],
|
||||
];
|
||||
|
||||
final public function updating(string $field, mixed &$value): void
|
||||
{
|
||||
$this->castLivewireProperties($field, $value);
|
||||
}
|
||||
|
||||
final public function updatedPage(): void
|
||||
{
|
||||
$this->emit('paginationChanged');
|
||||
@@ -196,11 +229,14 @@ class TorrentSearch extends Component
|
||||
$this->perPage = \in_array($this->view, ['card', 'poster']) ? 24 : 25;
|
||||
}
|
||||
|
||||
final public function getPersonalFreeleechProperty()
|
||||
final public function getPersonalFreeleechProperty(): bool
|
||||
{
|
||||
return cache()->get('personal_freeleech:'.auth()->id());
|
||||
return cache()->get('personal_freeleech:'.auth()->id()) ?? false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Closure(Builder<Torrent>): Builder<Torrent>
|
||||
*/
|
||||
final public function filters(): Closure
|
||||
{
|
||||
$user = auth()->user();
|
||||
@@ -217,24 +253,24 @@ class TorrentSearch extends Component
|
||||
->when($this->mediainfo !== '', fn ($query) => $query->ofMediainfo($this->mediainfo, $isRegex($this->mediainfo)))
|
||||
->when($this->uploader !== '', fn ($query) => $query->ofUploader($this->uploader))
|
||||
->when($this->keywords !== '', fn ($query) => $query->ofKeyword(array_map('trim', explode(',', $this->keywords))))
|
||||
->when($this->startYear !== '', fn ($query) => $query->releasedAfterOrIn((int) $this->startYear))
|
||||
->when($this->endYear !== '', fn ($query) => $query->releasedBeforeOrIn((int) $this->endYear))
|
||||
->when($this->minSize !== null, fn ($query) => $query->ofSizeGreaterOrEqualto((int) $this->minSize * $this->minSizeMultiplier))
|
||||
->when($this->maxSize !== null, fn ($query) => $query->ofSizeLesserOrEqualTo((int) $this->maxSize * $this->maxSizeMultiplier))
|
||||
->when($this->startYear !== null, fn ($query) => $query->releasedAfterOrIn($this->startYear))
|
||||
->when($this->endYear !== null, fn ($query) => $query->releasedBeforeOrIn($this->endYear))
|
||||
->when($this->minSize !== null, fn ($query) => $query->ofSizeGreaterOrEqualto($this->minSize * $this->minSizeMultiplier))
|
||||
->when($this->maxSize !== null, fn ($query) => $query->ofSizeLesserOrEqualTo($this->maxSize * $this->maxSizeMultiplier))
|
||||
->when($this->categories !== [], fn ($query) => $query->ofCategory($this->categories))
|
||||
->when($this->types !== [], fn ($query) => $query->ofType($this->types))
|
||||
->when($this->resolutions !== [], fn ($query) => $query->ofResolution($this->resolutions))
|
||||
->when($this->genres !== [], fn ($query) => $query->ofGenre($this->genres))
|
||||
->when($this->regions !== [], fn ($query) => $query->ofRegion($this->regions))
|
||||
->when($this->distributors !== [], fn ($query) => $query->ofDistributor($this->distributors))
|
||||
->when($this->tmdbId !== '', fn ($query) => $query->ofTmdb((int) $this->tmdbId))
|
||||
->when($this->tmdbId !== null, fn ($query) => $query->ofTmdb($this->tmdbId))
|
||||
->when($this->imdbId !== '', fn ($query) => $query->ofImdb((int) (preg_match('/tt0*(?=(\d{7,}))/', $this->imdbId, $matches) ? $matches[1] : $this->imdbId)))
|
||||
->when($this->tvdbId !== '', fn ($query) => $query->ofTvdb((int) $this->tvdbId))
|
||||
->when($this->malId !== '', fn ($query) => $query->ofMal((int) $this->malId))
|
||||
->when($this->playlistId !== '', fn ($query) => $query->ofPlaylist((int) $this->playlistId))
|
||||
->when($this->collectionId !== '', fn ($query) => $query->ofCollection((int) $this->collectionId))
|
||||
->when($this->companyId !== '', fn ($query) => $query->ofCompany((int) $this->companyId))
|
||||
->when($this->networkId !== '', fn ($query) => $query->ofNetwork((int) $this->networkId))
|
||||
->when($this->tvdbId !== null, fn ($query) => $query->ofTvdb($this->tvdbId))
|
||||
->when($this->malId !== null, fn ($query) => $query->ofMal($this->malId))
|
||||
->when($this->playlistId !== null, fn ($query) => $query->ofPlaylist($this->playlistId))
|
||||
->when($this->collectionId !== null, fn ($query) => $query->ofCollection($this->collectionId))
|
||||
->when($this->companyId !== null, fn ($query) => $query->ofCompany($this->companyId))
|
||||
->when($this->networkId !== null, fn ($query) => $query->ofNetwork($this->networkId))
|
||||
->when($this->primaryLanguages !== [], fn ($query) => $query->ofPrimaryLanguage($this->primaryLanguages))
|
||||
->when($this->free !== [], fn ($query) => $query->ofFreeleech($this->free))
|
||||
->when($this->doubleup, fn ($query) => $query->doubleup())
|
||||
@@ -258,6 +294,9 @@ class TorrentSearch extends Component
|
||||
->when($this->incomplete, fn ($query) => $query->uncompletedBy($user));
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Torrent>
|
||||
*/
|
||||
final public function getTorrentsProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
$user = auth()->user();
|
||||
@@ -338,6 +377,9 @@ class TorrentSearch extends Component
|
||||
return $torrents;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Torrent>
|
||||
*/
|
||||
final public function getGroupedTorrentsProperty()
|
||||
{
|
||||
$user = auth()->user();
|
||||
@@ -579,6 +621,9 @@ class TorrentSearch extends Component
|
||||
return $medias;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Torrent>
|
||||
*/
|
||||
final public function getGroupedPostersProperty()
|
||||
{
|
||||
// Whitelist which columns are allowed to be ordered by
|
||||
@@ -628,17 +673,6 @@ class TorrentSearch extends Component
|
||||
return $groups;
|
||||
}
|
||||
|
||||
final public function sortBy($field): void
|
||||
{
|
||||
if ($this->sortField === $field) {
|
||||
$this->sortDirection = $this->sortDirection === 'asc' ? 'desc' : 'asc';
|
||||
} else {
|
||||
$this->sortDirection = 'asc';
|
||||
}
|
||||
|
||||
$this->sortField = $field;
|
||||
}
|
||||
|
||||
final public function render(): \Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View|\Illuminate\Contracts\Foundation\Application
|
||||
{
|
||||
return view('livewire.torrent-search', [
|
||||
|
||||
@@ -21,7 +21,7 @@ class TvSearch extends Component
|
||||
{
|
||||
use WithPagination;
|
||||
|
||||
public $search;
|
||||
public string $search;
|
||||
|
||||
final public function updatedPage(): void
|
||||
{
|
||||
@@ -33,6 +33,9 @@ class TvSearch extends Component
|
||||
$this->resetPage();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Tv>
|
||||
*/
|
||||
final public function getShowsProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return Tv::with(['networks', 'genres'])
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace App\Http\Livewire;
|
||||
|
||||
use App\Models\Peer;
|
||||
use App\Models\User;
|
||||
use App\Traits\LivewireSort;
|
||||
use Livewire\Component;
|
||||
use Livewire\WithPagination;
|
||||
|
||||
@@ -23,6 +24,7 @@ use Livewire\WithPagination;
|
||||
*/
|
||||
class UserActive extends Component
|
||||
{
|
||||
use LivewireSort;
|
||||
use WithPagination;
|
||||
|
||||
public ?User $user = null;
|
||||
@@ -45,8 +47,11 @@ class UserActive extends Component
|
||||
|
||||
public string $sortDirection = 'desc';
|
||||
|
||||
public $showMorePrecision = false;
|
||||
public bool $showMorePrecision = false;
|
||||
|
||||
/**
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'perPage' => ['except' => 50],
|
||||
'name' => ['except' => ''],
|
||||
@@ -75,6 +80,9 @@ class UserActive extends Component
|
||||
$this->resetPage();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Peer>
|
||||
*/
|
||||
final public function getActivesProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return Peer::query()
|
||||
@@ -123,15 +131,4 @@ class UserActive extends Component
|
||||
'actives' => $this->actives,
|
||||
]);
|
||||
}
|
||||
|
||||
final public function sortBy($field): void
|
||||
{
|
||||
if ($this->sortField === $field) {
|
||||
$this->sortDirection = $this->sortDirection === 'asc' ? 'desc' : 'asc';
|
||||
} else {
|
||||
$this->sortDirection = 'asc';
|
||||
}
|
||||
|
||||
$this->sortField = $field;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,6 +39,9 @@ class UserNotes extends Component
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Note>
|
||||
*/
|
||||
final public function getNotesProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return Note::query()
|
||||
|
||||
@@ -15,11 +15,13 @@ namespace App\Http\Livewire;
|
||||
|
||||
use App\Models\Resurrection;
|
||||
use App\Models\User;
|
||||
use App\Traits\LivewireSort;
|
||||
use Livewire\Component;
|
||||
use Livewire\WithPagination;
|
||||
|
||||
class UserResurrections extends Component
|
||||
{
|
||||
use LivewireSort;
|
||||
use WithPagination;
|
||||
|
||||
public ?User $user = null;
|
||||
@@ -34,6 +36,9 @@ class UserResurrections extends Component
|
||||
|
||||
public string $sortDirection = 'desc';
|
||||
|
||||
/**
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'perPage' => ['except' => ''],
|
||||
'name' => ['except' => ''],
|
||||
@@ -57,6 +62,9 @@ class UserResurrections extends Component
|
||||
$this->resetPage();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Resurrection>
|
||||
*/
|
||||
final public function getResurrectionsProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return Resurrection::query()
|
||||
@@ -87,15 +95,4 @@ class UserResurrections extends Component
|
||||
'resurrections' => $this->resurrections,
|
||||
]);
|
||||
}
|
||||
|
||||
final public function sortBy($field): void
|
||||
{
|
||||
if ($this->sortField === $field) {
|
||||
$this->sortDirection = $this->sortDirection === 'asc' ? 'desc' : 'asc';
|
||||
} else {
|
||||
$this->sortDirection = 'asc';
|
||||
}
|
||||
|
||||
$this->sortField = $field;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,11 +14,13 @@
|
||||
namespace App\Http\Livewire;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Traits\LivewireSort;
|
||||
use Livewire\Component;
|
||||
use Livewire\WithPagination;
|
||||
|
||||
class UserSearch extends Component
|
||||
{
|
||||
use LivewireSort;
|
||||
use WithPagination;
|
||||
|
||||
public bool $show = false;
|
||||
@@ -31,6 +33,9 @@ class UserSearch extends Component
|
||||
|
||||
public string $sortDirection = 'desc';
|
||||
|
||||
/**
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'search' => ['except' => ''],
|
||||
'show' => ['except' => false],
|
||||
@@ -60,6 +65,9 @@ class UserSearch extends Component
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<User>
|
||||
*/
|
||||
final public function getUsersProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return User::query()
|
||||
@@ -78,17 +86,6 @@ class UserSearch extends Component
|
||||
->paginate($this->perPage);
|
||||
}
|
||||
|
||||
final public function sortBy($field): void
|
||||
{
|
||||
if ($this->sortField === $field) {
|
||||
$this->sortDirection = $this->sortDirection === 'asc' ? 'desc' : 'asc';
|
||||
} else {
|
||||
$this->sortDirection = 'asc';
|
||||
}
|
||||
|
||||
$this->sortField = $field;
|
||||
}
|
||||
|
||||
final public function render(): \Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View|\Illuminate\Contracts\Foundation\Application
|
||||
{
|
||||
return view('livewire.user-search', [
|
||||
|
||||
@@ -15,11 +15,13 @@ namespace App\Http\Livewire;
|
||||
|
||||
use App\Models\History;
|
||||
use App\Models\User;
|
||||
use App\Traits\LivewireSort;
|
||||
use Livewire\Component;
|
||||
use Livewire\WithPagination;
|
||||
|
||||
class UserTorrents extends Component
|
||||
{
|
||||
use LivewireSort;
|
||||
use WithPagination;
|
||||
|
||||
public ?User $user = null;
|
||||
@@ -44,14 +46,20 @@ class UserTorrents extends Component
|
||||
|
||||
public string $downloaded = 'any';
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public array $status = [];
|
||||
|
||||
public string $sortField = 'created_at';
|
||||
|
||||
public string $sortDirection = 'desc';
|
||||
|
||||
public $showMorePrecision = false;
|
||||
public bool $showMorePrecision = false;
|
||||
|
||||
/**
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'perPage' => ['except' => ''],
|
||||
'name' => ['except' => ''],
|
||||
@@ -84,6 +92,9 @@ class UserTorrents extends Component
|
||||
$this->resetPage();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<History>
|
||||
*/
|
||||
final public function getHistoryProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return History::query()
|
||||
@@ -169,15 +180,4 @@ class UserTorrents extends Component
|
||||
'histories' => $this->history,
|
||||
]);
|
||||
}
|
||||
|
||||
final public function sortBy($field): void
|
||||
{
|
||||
if ($this->sortField === $field) {
|
||||
$this->sortDirection = $this->sortDirection === 'asc' ? 'desc' : 'asc';
|
||||
} else {
|
||||
$this->sortDirection = 'asc';
|
||||
}
|
||||
|
||||
$this->sortField = $field;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,11 +16,13 @@ namespace App\Http\Livewire;
|
||||
use App\Models\Scopes\ApprovedScope;
|
||||
use App\Models\Torrent;
|
||||
use App\Models\User;
|
||||
use App\Traits\LivewireSort;
|
||||
use Livewire\Component;
|
||||
use Livewire\WithPagination;
|
||||
|
||||
class UserUploads extends Component
|
||||
{
|
||||
use LivewireSort;
|
||||
use WithPagination;
|
||||
|
||||
public ?User $user = null;
|
||||
@@ -31,14 +33,20 @@ class UserUploads extends Component
|
||||
|
||||
public string $personalRelease = 'any';
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public array $status = [];
|
||||
|
||||
public string $sortField = 'created_at';
|
||||
|
||||
public string $sortDirection = 'desc';
|
||||
|
||||
public $showMorePrecision = false;
|
||||
public bool $showMorePrecision = false;
|
||||
|
||||
/**
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'perPage' => ['except' => ''],
|
||||
'name' => ['except' => ''],
|
||||
@@ -63,6 +71,9 @@ class UserUploads extends Component
|
||||
$this->resetPage();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Torrent>
|
||||
*/
|
||||
final public function getUploadsProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return Torrent::query()
|
||||
@@ -89,15 +100,4 @@ class UserUploads extends Component
|
||||
'uploads' => $this->uploads,
|
||||
]);
|
||||
}
|
||||
|
||||
final public function sortBy($field): void
|
||||
{
|
||||
if ($this->sortField === $field) {
|
||||
$this->sortDirection = $this->sortDirection === 'asc' ? 'desc' : 'asc';
|
||||
} else {
|
||||
$this->sortDirection = 'asc';
|
||||
}
|
||||
|
||||
$this->sortField = $field;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ namespace App\Http\Livewire;
|
||||
use App\Models\PrivateMessage;
|
||||
use App\Models\User;
|
||||
use App\Models\Warning;
|
||||
use App\Traits\LivewireSort;
|
||||
use Illuminate\Support\Carbon;
|
||||
use Livewire\Component;
|
||||
use Livewire\WithPagination;
|
||||
@@ -28,6 +29,8 @@ use Livewire\WithPagination;
|
||||
*/
|
||||
class UserWarnings extends Component
|
||||
{
|
||||
use LivewireSort;
|
||||
use LivewireSort;
|
||||
use WithPagination;
|
||||
|
||||
public User $user;
|
||||
@@ -42,6 +45,9 @@ class UserWarnings extends Component
|
||||
|
||||
public string $sortDirection = 'desc';
|
||||
|
||||
/**
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'warningTab' => ['except' => 'automated'],
|
||||
];
|
||||
@@ -54,6 +60,9 @@ class UserWarnings extends Component
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Warning>
|
||||
*/
|
||||
final public function getWarningsProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return $this->user
|
||||
@@ -251,17 +260,6 @@ class UserWarnings extends Component
|
||||
$this->dispatchBrowserEvent('success', ['type' => 'success', 'message' => 'Warning Was Successfully Restored']);
|
||||
}
|
||||
|
||||
final public function sortBy(string $field): void
|
||||
{
|
||||
if ($this->sortField === $field) {
|
||||
$this->sortDirection = $this->sortDirection === 'asc' ? 'desc' : 'asc';
|
||||
} else {
|
||||
$this->sortDirection = 'asc';
|
||||
}
|
||||
|
||||
$this->sortField = $field;
|
||||
}
|
||||
|
||||
final public function render(): \Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View|\Illuminate\Contracts\Foundation\Application
|
||||
{
|
||||
return view('livewire.user-warnings', [
|
||||
|
||||
@@ -16,11 +16,13 @@ namespace App\Http\Livewire;
|
||||
use App\Models\Torrent;
|
||||
use App\Models\User;
|
||||
use App\Models\Warning;
|
||||
use App\Traits\LivewireSort;
|
||||
use Livewire\Component;
|
||||
use Livewire\WithPagination;
|
||||
|
||||
class WarningLogSearch extends Component
|
||||
{
|
||||
use LivewireSort;
|
||||
use WithPagination;
|
||||
|
||||
public string $sender = '';
|
||||
@@ -39,6 +41,9 @@ class WarningLogSearch extends Component
|
||||
|
||||
public string $sortDirection = 'desc';
|
||||
|
||||
/**
|
||||
* @var array<mixed>
|
||||
*/
|
||||
protected $queryString = [
|
||||
'sender' => ['except' => ''],
|
||||
'receiver' => ['except' => ''],
|
||||
@@ -61,6 +66,9 @@ class WarningLogSearch extends Component
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<Warning>
|
||||
*/
|
||||
final public function getWarningsProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return Warning::query()
|
||||
@@ -74,17 +82,6 @@ class WarningLogSearch extends Component
|
||||
->paginate($this->perPage);
|
||||
}
|
||||
|
||||
final public function sortBy($field): void
|
||||
{
|
||||
if ($this->sortField === $field) {
|
||||
$this->sortDirection = $this->sortDirection === 'asc' ? 'desc' : 'asc';
|
||||
} else {
|
||||
$this->sortDirection = 'asc';
|
||||
}
|
||||
|
||||
$this->sortField = $field;
|
||||
}
|
||||
|
||||
final public function render(): \Illuminate\Contracts\View\View|\Illuminate\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\Foundation\Application
|
||||
{
|
||||
return view('livewire.warning-log-search', [
|
||||
|
||||
@@ -14,11 +14,13 @@
|
||||
namespace App\Http\Livewire;
|
||||
|
||||
use App\Models\Watchlist;
|
||||
use App\Traits\LivewireSort;
|
||||
use Livewire\Component;
|
||||
use Livewire\WithPagination;
|
||||
|
||||
class WatchlistSearch extends Component
|
||||
{
|
||||
use LivewireSort;
|
||||
use WithPagination;
|
||||
|
||||
public ?\Illuminate\Contracts\Auth\Authenticatable $user = null;
|
||||
@@ -46,6 +48,9 @@ class WatchlistSearch extends Component
|
||||
$this->resetPage();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<\App\Models\User>
|
||||
*/
|
||||
final public function getUsersProperty(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
{
|
||||
return Watchlist::query()
|
||||
@@ -55,17 +60,6 @@ class WatchlistSearch extends Component
|
||||
->paginate($this->perPage);
|
||||
}
|
||||
|
||||
final public function sortBy($field): void
|
||||
{
|
||||
if ($this->sortField === $field) {
|
||||
$this->sortDirection = $this->sortDirection === 'asc' ? 'desc' : 'asc';
|
||||
} else {
|
||||
$this->sortDirection = 'asc';
|
||||
}
|
||||
|
||||
$this->sortField = $field;
|
||||
}
|
||||
|
||||
final public function render(): \Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View|\Illuminate\Contracts\Foundation\Application
|
||||
{
|
||||
return view('livewire.watchlist-search', [
|
||||
|
||||
@@ -0,0 +1,102 @@
|
||||
<?php
|
||||
/**
|
||||
* NOTICE OF LICENSE.
|
||||
*
|
||||
* UNIT3D Community Edition is open-sourced software licensed under the GNU Affero General Public License v3.0
|
||||
* The details is bundled with this project in the file LICENSE.txt.
|
||||
*
|
||||
* @project UNIT3D Community Edition
|
||||
*
|
||||
* @author Roardom <roardom@protonmail.com>
|
||||
* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
|
||||
*/
|
||||
|
||||
namespace App\Traits;
|
||||
|
||||
use ReflectionClass;
|
||||
use ReflectionNamedType;
|
||||
use Closure;
|
||||
|
||||
use function theodorejb\polycast\safe_float;
|
||||
use function theodorejb\polycast\safe_int;
|
||||
use function theodorejb\polycast\safe_string;
|
||||
|
||||
trait CastLivewireProperties
|
||||
{
|
||||
/**
|
||||
* Cast incoming livewire property updates from string form to the type of
|
||||
* the property if the type is either int, float, or bool. If the type of
|
||||
* the property is ?int, ?float, or ?bool and the incoming property update
|
||||
* is an empty string, then set it to null.
|
||||
*
|
||||
* TODO: Livewire will automatically call lifecycle hooks in traits if the
|
||||
* function is suffixed by the trait name, however, in livewire v2, this
|
||||
* doesn't work when passing the value by reference since livewire v2 uses
|
||||
* listeners to pass the value around. In livewire v3, this is fixed, and
|
||||
* we can rename this trait to updatingCastLivewireProperties so that
|
||||
* livewire uses the method directly.
|
||||
*/
|
||||
public function castLivewireProperties(string $field, mixed &$value): void
|
||||
{
|
||||
$class = new ReflectionClass(static::class);
|
||||
|
||||
if (!$class->hasProperty($field)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (($type = $class->getProperty($field)->getType()) instanceof ReflectionNamedType) {
|
||||
if ($type->allowsNull() && $value === '') {
|
||||
$value = null;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
switch ($type->getName()) {
|
||||
case 'array':
|
||||
$value = (array) $value;
|
||||
|
||||
break;
|
||||
case 'string':
|
||||
validator([$field => $value], [$field => [
|
||||
function (string $attribute, mixed $value, Closure $fail): void {
|
||||
if (!safe_string($value)) {
|
||||
$fail(':attribute must be a string');
|
||||
}
|
||||
},
|
||||
]])->validate();
|
||||
|
||||
$value = (string) $value;
|
||||
|
||||
break;
|
||||
case 'int':
|
||||
validator([$field => $value], [$field => [
|
||||
function (string $attribute, mixed $value, Closure $fail): void {
|
||||
if (!safe_int($value)) {
|
||||
$fail(':attribute must be a number');
|
||||
}
|
||||
},
|
||||
]])->validate();
|
||||
|
||||
$value = (int) $value;
|
||||
|
||||
break;
|
||||
case 'float':
|
||||
validator([$field => $value], [$field => [
|
||||
function (string $attribute, mixed $value, Closure $fail): void {
|
||||
if (!safe_float($value)) {
|
||||
$fail(':attribute must be a float');
|
||||
}
|
||||
},
|
||||
]])->validate();
|
||||
|
||||
$value = (float) $value;
|
||||
|
||||
break;
|
||||
case 'bool':
|
||||
$value = (bool) $value;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* NOTICE OF LICENSE.
|
||||
*
|
||||
* UNIT3D Community Edition is open-sourced software licensed under the GNU Affero General Public License v3.0
|
||||
* The details is bundled with this project in the file LICENSE.txt.
|
||||
*
|
||||
* @project UNIT3D Community Edition
|
||||
*
|
||||
* @author Roardom <roardom@protonmail.com>
|
||||
* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
|
||||
*/
|
||||
|
||||
namespace App\Traits;
|
||||
|
||||
trait LivewireSort
|
||||
{
|
||||
final public function sortBy(string $field): void
|
||||
{
|
||||
if ($this->sortField === $field) {
|
||||
$this->sortDirection = $this->sortDirection === 'asc' ? 'desc' : 'asc';
|
||||
} else {
|
||||
$this->sortDirection = 'asc';
|
||||
}
|
||||
|
||||
$this->sortField = $field;
|
||||
}
|
||||
}
|
||||
@@ -910,11 +910,6 @@ parameters:
|
||||
count: 1
|
||||
path: app/Http/Controllers/User/GeneralSettingController.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\AttachmentUpload\\:\\:getAttachmentsProperty\\(\\) return type with generic class Illuminate\\\\Database\\\\Eloquent\\\\Collection does not specify its types\\: TKey, TModel$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/AttachmentUpload.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\AttachmentUpload\\:\\:\\$attachment has no type specified\\.$#"
|
||||
count: 1
|
||||
@@ -930,41 +925,16 @@ parameters:
|
||||
count: 1
|
||||
path: app/Http/Livewire/AuditLogSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\AuditLogSearch\\:\\:getAuditsProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/AuditLogSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\AuditLogSearch\\:\\:getModelNamesProperty\\(\\) has no return type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/AuditLogSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\AuditLogSearch\\:\\:\\$queryString has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/AuditLogSearch.php
|
||||
|
||||
-
|
||||
message: "#^Cannot call method sizeInBytes\\(\\) on class\\-string\\|object\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/BackupPanel.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\BackupPanel\\:\\:getBackupStatusesProperty\\(\\) return type has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/BackupPanel.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\BackupPanel\\:\\:getBackupsProperty\\(\\) return type has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/BackupPanel.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\BackupPanel\\:\\:getDisksProperty\\(\\) return type has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/BackupPanel.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\BackupPanel\\:\\:\\$listeners has no type specified\\.$#"
|
||||
count: 1
|
||||
@@ -995,26 +965,11 @@ parameters:
|
||||
count: 1
|
||||
path: app/Http/Livewire/BlockIpAddress.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\BlockIpAddress\\:\\:\\$queryString has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/BlockIpAddress.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\BlockIpAddress\\:\\:\\$rules has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/BlockIpAddress.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\CollectionSearch\\:\\:getCollectionsProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/CollectionSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\CollectionSearch\\:\\:\\$search has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/CollectionSearch.php
|
||||
|
||||
-
|
||||
message: "#^Call to an undefined method App\\\\Models\\\\User\\|Illuminate\\\\Database\\\\Eloquent\\\\Collection\\<int, App\\\\Models\\\\User\\>\\:\\:notify\\(\\)\\.$#"
|
||||
count: 4
|
||||
@@ -1030,11 +985,6 @@ parameters:
|
||||
count: 1
|
||||
path: app/Http/Livewire/Comment.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\Comment\\:\\:\\$anon has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/Comment.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\Comment\\:\\:\\$comment has no type specified\\.$#"
|
||||
count: 1
|
||||
@@ -1080,21 +1030,11 @@ parameters:
|
||||
count: 3
|
||||
path: app/Http/Livewire/Comments.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\Comments\\:\\:getCommentsProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/Comments.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\Comments\\:\\:taggedUsers\\(\\) return type has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/Comments.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\Comments\\:\\:\\$anon has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/Comments.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\Comments\\:\\:\\$listeners has no type specified\\.$#"
|
||||
count: 1
|
||||
@@ -1120,106 +1060,11 @@ parameters:
|
||||
count: 1
|
||||
path: app/Http/Livewire/Comments.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\CompanySearch\\:\\:getCompaniesProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/CompanySearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\CompanySearch\\:\\:\\$search has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/CompanySearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\FailedLoginSearch\\:\\:getFailedLoginsProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/FailedLoginSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\FailedLoginSearch\\:\\:getFailedLoginsTop10IpProperty\\(\\) return type with generic class Illuminate\\\\Database\\\\Eloquent\\\\Collection does not specify its types\\: TKey, TModel$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/FailedLoginSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\FailedLoginSearch\\:\\:sortBy\\(\\) has parameter \\$field with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/FailedLoginSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\FailedLoginSearch\\:\\:\\$queryString has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/FailedLoginSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\ForumCategoryTopicSearch\\:\\:getTopicsProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/ForumCategoryTopicSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\ForumCategoryTopicSearch\\:\\:\\$queryString has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/ForumCategoryTopicSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\ForumTopicSearch\\:\\:getTopicsProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/ForumTopicSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\ForumTopicSearch\\:\\:\\$queryString has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/ForumTopicSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\GiftLogSearch\\:\\:getGiftsProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/GiftLogSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\GiftLogSearch\\:\\:sortBy\\(\\) has parameter \\$field with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/GiftLogSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\GiftLogSearch\\:\\:\\$queryString has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/GiftLogSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\HistorySearch\\:\\:getHistoriesProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/HistorySearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\HistorySearch\\:\\:sortBy\\(\\) has parameter \\$field with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/HistorySearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\HistorySearch\\:\\:\\$queryString has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/HistorySearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\InviteLogSearch\\:\\:getInvitesProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/InviteLogSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\InviteLogSearch\\:\\:sortBy\\(\\) has parameter \\$field with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/InviteLogSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\InviteLogSearch\\:\\:updatingGroupBy\\(\\) has parameter \\$value with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/InviteLogSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\InviteLogSearch\\:\\:\\$queryString has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/InviteLogSearch.php
|
||||
|
||||
-
|
||||
message: "#^Cannot access offset 0 on array\\<int, string\\>\\|false\\.$#"
|
||||
count: 1
|
||||
@@ -1240,81 +1085,11 @@ parameters:
|
||||
count: 1
|
||||
path: app/Http/Livewire/LaravelLogViewer.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\LaravelLogViewer\\:\\:\\$logs has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/LaravelLogViewer.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\LaravelLogViewer\\:\\:\\$page has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/LaravelLogViewer.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\LaravelLogViewer\\:\\:\\$perPage has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/LaravelLogViewer.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\LaravelLogViewer\\:\\:\\$queryString has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/LaravelLogViewer.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\MissingMediaSearch\\:\\:getMediasProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/MissingMediaSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\MissingMediaSearch\\:\\:getTypesProperty\\(\\) return type with generic class Illuminate\\\\Database\\\\Eloquent\\\\Collection does not specify its types\\: TKey, TModel$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/MissingMediaSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\MissingMediaSearch\\:\\:sortBy\\(\\) has parameter \\$field with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/MissingMediaSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\MissingMediaSearch\\:\\:\\$categories type has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/MissingMediaSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\MissingMediaSearch\\:\\:\\$queryString has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/MissingMediaSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\NetworkSearch\\:\\:getNetworksProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/NetworkSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\NetworkSearch\\:\\:\\$search has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/NetworkSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\NoteSearch\\:\\:getNotesProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/NoteSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\NoteSearch\\:\\:\\$queryString has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/NoteSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\NotificationSearch\\:\\:getNotificationsProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/NotificationSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\NotificationSearch\\:\\:sortBy\\(\\) has parameter \\$field with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/NotificationSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\PasswordStrength\\:\\:updatedPassword\\(\\) has parameter \\$password with no type specified\\.$#"
|
||||
count: 1
|
||||
@@ -1325,21 +1100,6 @@ parameters:
|
||||
count: 1
|
||||
path: app/Http/Livewire/PasswordStrength.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\PeerSearch\\:\\:getPeersProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/PeerSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\PeerSearch\\:\\:sortBy\\(\\) has parameter \\$field with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/PeerSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\PeerSearch\\:\\:\\$queryString has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/PeerSearch.php
|
||||
|
||||
-
|
||||
message: "#^Access to an undefined property App\\\\Models\\\\Movie\\:\\:\\$category_id\\.$#"
|
||||
count: 1
|
||||
@@ -1360,26 +1120,11 @@ parameters:
|
||||
count: 1
|
||||
path: app/Http/Livewire/PersonCredit.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\PersonCredit\\:\\:getMediasProperty\\(\\) return type with generic class Illuminate\\\\Support\\\\Collection does not specify its types\\: TKey, TValue$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/PersonCredit.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\PersonCredit\\:\\:getPersonalFreeleechProperty\\(\\) has no return type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/PersonCredit.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\PersonCredit\\:\\:updatingOccupation\\(\\) has parameter \\$value with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/PersonCredit.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\PersonCredit\\:\\:\\$queryString has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/PersonCredit.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Models\\\\Movie\\:\\:\\$torrents is not writable\\.$#"
|
||||
count: 1
|
||||
@@ -1390,266 +1135,26 @@ parameters:
|
||||
count: 1
|
||||
path: app/Http/Livewire/PersonCredit.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\PersonSearch\\:\\:getPersonsProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/PersonSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\PersonSearch\\:\\:\\$search has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/PersonSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\PostSearch\\:\\:getPostsProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/PostSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\PostSearch\\:\\:\\$queryString has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/PostSearch.php
|
||||
|
||||
-
|
||||
message: "#^Access to an undefined property App\\\\Models\\\\Movie\\|Illuminate\\\\Database\\\\Eloquent\\\\Collection\\<int, App\\\\Models\\\\Movie\\>\\:\\:\\$release_date\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/SimilarTorrent.php
|
||||
|
||||
-
|
||||
message: "#^Access to an undefined property App\\\\Models\\\\Movie\\|Illuminate\\\\Database\\\\Eloquent\\\\Collection\\<int, App\\\\Models\\\\Movie\\>\\:\\:\\$title\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/SimilarTorrent.php
|
||||
|
||||
-
|
||||
message: "#^Access to an undefined property App\\\\Models\\\\Tv\\|Illuminate\\\\Database\\\\Eloquent\\\\Collection\\<int, App\\\\Models\\\\Tv\\>\\:\\:\\$first_air_date\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/SimilarTorrent.php
|
||||
|
||||
-
|
||||
message: "#^Access to an undefined property App\\\\Models\\\\Tv\\|Illuminate\\\\Database\\\\Eloquent\\\\Collection\\<int, App\\\\Models\\\\Tv\\>\\:\\:\\$name\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/SimilarTorrent.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\SimilarTorrent\\:\\:getPersonalFreeleechProperty\\(\\) has no return type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/SimilarTorrent.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\SimilarTorrent\\:\\:getTorrentRequestsProperty\\(\\) return type has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/SimilarTorrent.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\SimilarTorrent\\:\\:getTorrentRequestsProperty\\(\\) return type has no value type specified in iterable type array\\|Illuminate\\\\Database\\\\Eloquent\\\\Collection\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/SimilarTorrent.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\SimilarTorrent\\:\\:getTorrentRequestsProperty\\(\\) return type with generic class Illuminate\\\\Database\\\\Eloquent\\\\Collection does not specify its types\\: TKey, TModel$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/SimilarTorrent.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\SimilarTorrent\\:\\:getTorrentsProperty\\(\\) return type with generic class Illuminate\\\\Support\\\\Collection does not specify its types\\: TKey, TValue$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/SimilarTorrent.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\SimilarTorrent\\:\\:isChecked\\(\\) has parameter \\$torrentId with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/SimilarTorrent.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\SimilarTorrent\\:\\:sortBy\\(\\) has parameter \\$field with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/SimilarTorrent.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\SimilarTorrent\\:\\:updatedSelectPage\\(\\) has parameter \\$value with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/SimilarTorrent.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\SimilarTorrent\\:\\:\\$checked has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/SimilarTorrent.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\SimilarTorrent\\:\\:\\$igdbId has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/SimilarTorrent.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\SimilarTorrent\\:\\:\\$listeners has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/SimilarTorrent.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\SimilarTorrent\\:\\:\\$reason has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/SimilarTorrent.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\SimilarTorrent\\:\\:\\$tmdbId has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/SimilarTorrent.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\SubscribedForum\\:\\:getForumsProperty\\(\\) has no return type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/SubscribedForum.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\SubscribedTopic\\:\\:getTopicsProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/SubscribedTopic.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\SubtitleSearch\\:\\:getSubtitlesProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/SubtitleSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\SubtitleSearch\\:\\:sortBy\\(\\) has parameter \\$field with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/SubtitleSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\SubtitleSearch\\:\\:\\$categories type has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/SubtitleSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\ThankButton\\:\\:mount\\(\\) has parameter \\$torrent with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/ThankButton.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\ThankButton\\:\\:\\$torrent has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/ThankButton.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\TicketSearch\\:\\:getTicketsProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TicketSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\TicketSearch\\:\\:sortBy\\(\\) has parameter \\$field with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TicketSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\TicketSearch\\:\\:\\$queryString has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TicketSearch.php
|
||||
|
||||
-
|
||||
message: "#^Possibly invalid array key type \\(array\\|string\\)\\.$#"
|
||||
count: 2
|
||||
path: app/Http/Livewire/Top10.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\TopicPostSearch\\:\\:getPostsProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TopicPostSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\TopicPostSearch\\:\\:\\$queryString has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TopicPostSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\TopicSearch\\:\\:getForumCategoriesProperty\\(\\) has no return type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TopicSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\TopicSearch\\:\\:getTopicsProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TopicSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\TopicSearch\\:\\:\\$queryString has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TopicSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\TorrentRequestSearch\\:\\:getTorrentRequestsProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentRequestSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\TorrentRequestSearch\\:\\:sortBy\\(\\) has parameter \\$field with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentRequestSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\TorrentRequestSearch\\:\\:\\$categories type has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentRequestSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\TorrentRequestSearch\\:\\:\\$claimed has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentRequestSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\TorrentRequestSearch\\:\\:\\$filled has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentRequestSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\TorrentRequestSearch\\:\\:\\$genres type has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentRequestSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\TorrentRequestSearch\\:\\:\\$myClaims has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentRequestSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\TorrentRequestSearch\\:\\:\\$myFilled has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentRequestSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\TorrentRequestSearch\\:\\:\\$myRequests has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentRequestSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\TorrentRequestSearch\\:\\:\\$myVoted has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentRequestSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\TorrentRequestSearch\\:\\:\\$pending has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentRequestSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\TorrentRequestSearch\\:\\:\\$queryString has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentRequestSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\TorrentRequestSearch\\:\\:\\$resolutions type has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentRequestSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\TorrentRequestSearch\\:\\:\\$types type has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentRequestSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\TorrentRequestSearch\\:\\:\\$unfilled has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentRequestSearch.php
|
||||
|
||||
-
|
||||
message: "#^Access to an undefined property App\\\\Models\\\\Movie\\|Illuminate\\\\Support\\\\Collection\\<\\(int\\|string\\), mixed\\>\\:\\:\\$category_id\\.$#"
|
||||
count: 1
|
||||
@@ -1685,246 +1190,31 @@ parameters:
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\TorrentSearch\\:\\:getGroupedPostersProperty\\(\\) has no return type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\TorrentSearch\\:\\:getGroupedTorrentsProperty\\(\\) has no return type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\TorrentSearch\\:\\:getPersonalFreeleechProperty\\(\\) has no return type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\TorrentSearch\\:\\:getTorrentsProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\TorrentSearch\\:\\:sortBy\\(\\) has parameter \\$field with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\TorrentSearch\\:\\:\\$categories type has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\TorrentSearch\\:\\:\\$distributors type has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\TorrentSearch\\:\\:\\$free type has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\TorrentSearch\\:\\:\\$genres type has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\TorrentSearch\\:\\:\\$queryString has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\TorrentSearch\\:\\:\\$regions type has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\TorrentSearch\\:\\:\\$resolutions type has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\TorrentSearch\\:\\:\\$types type has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TorrentSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\TvSearch\\:\\:getShowsProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TvSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\TvSearch\\:\\:\\$search has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TvSearch.php
|
||||
|
||||
-
|
||||
message: "#^Access to an undefined property App\\\\Models\\\\User\\:\\:\\$two_factor_confirmed_at\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/TwoFactorAuthForm.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\UserActive\\:\\:getActivesProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/UserActive.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\UserActive\\:\\:sortBy\\(\\) has parameter \\$field with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/UserActive.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\UserActive\\:\\:\\$queryString has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/UserActive.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\UserActive\\:\\:\\$showMorePrecision has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/UserActive.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\UserNotes\\:\\:getNotesProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/UserNotes.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\UserNotes\\:\\:\\$rules has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/UserNotes.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\UserResurrections\\:\\:getResurrectionsProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/UserResurrections.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\UserResurrections\\:\\:sortBy\\(\\) has parameter \\$field with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/UserResurrections.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\UserResurrections\\:\\:\\$queryString has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/UserResurrections.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\UserSearch\\:\\:getUsersProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/UserSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\UserSearch\\:\\:sortBy\\(\\) has parameter \\$field with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/UserSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\UserSearch\\:\\:toggleProperties\\(\\) has parameter \\$property with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/UserSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\UserSearch\\:\\:\\$queryString has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/UserSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\UserTorrents\\:\\:getHistoryProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/UserTorrents.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\UserTorrents\\:\\:sortBy\\(\\) has parameter \\$field with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/UserTorrents.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\UserTorrents\\:\\:\\$queryString has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/UserTorrents.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\UserTorrents\\:\\:\\$showMorePrecision has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/UserTorrents.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\UserTorrents\\:\\:\\$status type has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/UserTorrents.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\UserUploads\\:\\:getUploadsProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/UserUploads.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\UserUploads\\:\\:sortBy\\(\\) has parameter \\$field with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/UserUploads.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\UserUploads\\:\\:\\$queryString has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/UserUploads.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\UserUploads\\:\\:\\$showMorePrecision has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/UserUploads.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\UserUploads\\:\\:\\$status type has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/UserUploads.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\UserWarnings\\:\\:getWarningsProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/UserWarnings.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\UserWarnings\\:\\:\\$queryString has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/UserWarnings.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\UserWarnings\\:\\:\\$rules has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/UserWarnings.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\WarningLogSearch\\:\\:getWarningsProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/WarningLogSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\WarningLogSearch\\:\\:sortBy\\(\\) has parameter \\$field with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/WarningLogSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\WarningLogSearch\\:\\:toggleProperties\\(\\) has parameter \\$property with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/WarningLogSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\WarningLogSearch\\:\\:\\$queryString has no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/WarningLogSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\WatchlistSearch\\:\\:getUsersProperty\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/WatchlistSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\WatchlistSearch\\:\\:sortBy\\(\\) has parameter \\$field with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/WatchlistSearch.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Middleware\\\\SetLanguage\\:\\:setSystemLocale\\(\\) has parameter \\$request with no type specified\\.$#"
|
||||
count: 1
|
||||
|
||||
@@ -80,6 +80,8 @@
|
||||
id="startYear"
|
||||
wire:model="startYear"
|
||||
class="form__text"
|
||||
inputmode="numeric"
|
||||
pattern="[0-9]*"
|
||||
placeholder=" "
|
||||
/>
|
||||
<label class="form__label form__label--floating" for="startYear">
|
||||
@@ -91,6 +93,8 @@
|
||||
id="endYear"
|
||||
wire:model="endYear"
|
||||
class="form__text"
|
||||
inputmode="numeric"
|
||||
pattern="[0-9]*"
|
||||
placeholder=" "
|
||||
/>
|
||||
<label class="form__label form__label--floating" for="endYear">
|
||||
@@ -103,6 +107,8 @@
|
||||
id="minSize"
|
||||
wire:model="minSize"
|
||||
class="form__text"
|
||||
inputmode="numeric"
|
||||
pattern="[0-9]*"
|
||||
placeholder=" "
|
||||
/>
|
||||
<label class="form__label form__label--floating" for="minSize">
|
||||
@@ -140,6 +146,8 @@
|
||||
id="maxSize"
|
||||
wire:model="maxSize"
|
||||
class="form__text"
|
||||
inputmode="numeric"
|
||||
pattern="[0-9]*"
|
||||
placeholder=" "
|
||||
/>
|
||||
<label class="form__label form__label--floating" for="maxSize">
|
||||
@@ -202,6 +210,8 @@
|
||||
id="playlistId"
|
||||
wire:model="playlistId"
|
||||
class="form__text"
|
||||
inputmode="numeric"
|
||||
pattern="[0-9]*"
|
||||
placeholder=" "
|
||||
/>
|
||||
<label class="form__label form__label--floating" for="playlistId">
|
||||
@@ -213,6 +223,8 @@
|
||||
id="collectionId"
|
||||
wire:model="collectionId"
|
||||
class="form__text"
|
||||
inputmode="numeric"
|
||||
pattern="[0-9]*"
|
||||
placeholder=" "
|
||||
/>
|
||||
<label class="form__label form__label--floating" for="collectionId">
|
||||
@@ -224,6 +236,8 @@
|
||||
id="companyId"
|
||||
wire:model="companyId"
|
||||
class="form__text"
|
||||
inputmode="numeric"
|
||||
pattern="[0-9]*"
|
||||
placeholder=" "
|
||||
/>
|
||||
<label class="form__label form__label--floating" for="companyId">
|
||||
@@ -235,6 +249,8 @@
|
||||
id="networkId"
|
||||
wire:model="networkId"
|
||||
class="form__text"
|
||||
inputmode="numeric"
|
||||
pattern="[0-9]*"
|
||||
placeholder=" "
|
||||
/>
|
||||
<label class="form__label form__label--floating" for="networkId">
|
||||
@@ -244,25 +260,53 @@
|
||||
</div>
|
||||
<div class="form__group--short-horizontal">
|
||||
<p class="form__group">
|
||||
<input id="tmdbId" wire:model="tmdbId" class="form__text" placeholder=" " />
|
||||
<input
|
||||
id="tmdbId"
|
||||
wire:model="tmdbId"
|
||||
class="form__text"
|
||||
inputmode="numeric"
|
||||
pattern="[0-9]*"
|
||||
placeholder=" "
|
||||
/>
|
||||
<label class="form__label form__label--floating" for="tmdbId">
|
||||
TMDb ID
|
||||
</label>
|
||||
</p>
|
||||
<p class="form__group">
|
||||
<input id="imdbId" wire:model="imdbId" class="form__text" placeholder=" " />
|
||||
<input
|
||||
id="imdbId"
|
||||
wire:model="imdbId"
|
||||
class="form__text"
|
||||
inputmode="numeric"
|
||||
pattern="[0-9]*"
|
||||
placeholder=" "
|
||||
/>
|
||||
<label class="form__label form__label--floating" for="imdbId">
|
||||
IMDb ID
|
||||
</label>
|
||||
</p>
|
||||
<p class="form__group">
|
||||
<input id="tvdbId" wire:model="tvdbId" class="form__text" placeholder=" " />
|
||||
<input
|
||||
id="tvdbId"
|
||||
wire:model="tvdbId"
|
||||
class="form__text"
|
||||
inputmode="numeric"
|
||||
pattern="[0-9]*"
|
||||
placeholder=" "
|
||||
/>
|
||||
<label class="form__label form__label--floating" for="tvdbId">
|
||||
TVDb ID
|
||||
</label>
|
||||
</p>
|
||||
<p class="form__group">
|
||||
<input id="malId" wire:model="malId" class="form__text" placeholder=" " />
|
||||
<input
|
||||
id="malId"
|
||||
wire:model="malId"
|
||||
class="form__text"
|
||||
inputmode="numeric"
|
||||
pattern="[0-9]*"
|
||||
placeholder=" "
|
||||
/>
|
||||
<label class="form__label form__label--floating" for="malId">MAL ID</label>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user