mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add Filter setting components
This commit is contained in:
parent
5598f49c32
commit
3ae27e05c7
14 changed files with 1392 additions and 8 deletions
|
@ -1,3 +1,39 @@
|
|||
import type { ItemFilter } from '@jellyfin/sdk/lib/generated-client/models/item-filter';
|
||||
import type { VideoType } from '@jellyfin/sdk/lib/generated-client/models/video-type';
|
||||
import type { SortOrder } from '@jellyfin/sdk/lib/generated-client/models/sort-order';
|
||||
import type { SeriesStatus } from '@jellyfin/sdk/lib/generated-client/models/series-status';
|
||||
import { ItemSortBy } from '@jellyfin/sdk/lib/models/api/item-sort-by';
|
||||
|
||||
export interface LibraryViewProps {
|
||||
parentId: string | null;
|
||||
}
|
||||
|
||||
interface Filters {
|
||||
Features?: string[];
|
||||
Genres?: string[];
|
||||
OfficialRatings?: string[];
|
||||
Status?: ItemFilter[];
|
||||
EpisodesStatus?: string[];
|
||||
SeriesStatus?: SeriesStatus[];
|
||||
StudioIds?: string[];
|
||||
Tags?: string[];
|
||||
VideoTypes?: VideoType[];
|
||||
Years?: number[];
|
||||
}
|
||||
|
||||
export interface LibraryViewSettings {
|
||||
SortBy: ItemSortBy;
|
||||
SortOrder: SortOrder;
|
||||
StartIndex: number;
|
||||
CardLayout: boolean;
|
||||
ImageType: string;
|
||||
ShowTitle: boolean;
|
||||
ShowYear?: boolean;
|
||||
Filters?: Filters;
|
||||
IsSD?: boolean;
|
||||
IsHD?: boolean;
|
||||
Is4K?: boolean;
|
||||
Is3D?: boolean;
|
||||
NameLessThan?: string | null;
|
||||
NameStartsWith?: string | null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue