1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Refactor: viewitemcontainer

This commit is contained in:
grafixeyehero 2023-10-04 23:14:14 +03:00 committed by Bill Thornton
parent 550ad476af
commit c61df2eb92
28 changed files with 520 additions and 1001 deletions

View file

@ -1,4 +1,5 @@
import type { BaseItemDto } from '@jellyfin/sdk/lib/generated-client';
import { CollectionType } from './collectionType';
export interface CardOptions {
itemsContainer?: HTMLElement | null;
@ -32,7 +33,7 @@ export interface CardOptions {
showUnplayedIndicator?: boolean;
showChildCountIndicator?: boolean;
lines?: number;
context?: string | null;
context?: CollectionType;
action?: string | null;
defaultShape?: string;
indexBy?: string;

View file

@ -1,29 +0,0 @@
export interface ViewQuerySettings {
showTitle?: boolean;
showYear?: boolean;
imageType?: string;
viewType?: string;
cardLayout?: boolean;
SortBy?: string | null;
SortOrder?: string | null;
IsPlayed?: boolean | null;
IsUnplayed?: boolean | null;
IsFavorite?: boolean | null;
IsResumable?: boolean | null;
Is4K?: boolean | null;
IsHD?: boolean | null;
IsSD?: boolean | null;
Is3D?: boolean | null;
VideoTypes?: string | null;
SeriesStatus?: string | null;
HasSubtitles?: boolean | null;
HasTrailer?: boolean | null;
HasSpecialFeature?: boolean | null;
ParentIndexNumber?: boolean | null;
HasThemeSong?: boolean | null;
HasThemeVideo?: boolean | null;
GenreIds?: string | null;
NameLessThan?: string | null;
NameStartsWith?: string | null;
StartIndex?: number;
}

View file

@ -8,7 +8,7 @@ import { ItemSortBy } from '@jellyfin/sdk/lib/models/api/item-sort-by';
export type ParentId = string | null | undefined;
export interface LibraryViewProps {
parentId: string | null;
parentId: ParentId;
}
export enum FeatureFilters {