Refactor Artist index to use react-window

(cherry picked from commit d022679b7dcbce3cec98e6a1fd0879e3c0d92523)

Fixed: Restoring scroll position when going back/forward to artist list

(cherry picked from commit 5aad84dba453c42b4b5a9eac43deecf91a98f4f6)
This commit is contained in:
Mark McDowall 2023-01-05 18:20:49 -08:00 committed by Bogdan
parent 01e21c09db
commit f509ca0f72
117 changed files with 4704 additions and 5511 deletions

View file

@ -0,0 +1,12 @@
export interface QualityProfileFormatItem {
format: number;
name: string;
score: number;
}
interface CustomFormat {
id: number;
name: string;
}
export default CustomFormat;

View file

@ -0,0 +1,39 @@
interface PrimaryAlbumType {
id?: number;
name?: string;
}
interface SecondaryAlbumType {
id?: number;
name?: string;
}
interface ReleaseStatus {
id?: number;
name?: string;
}
interface ProfilePrimaryAlbumTypeItem {
primaryAlbumType?: PrimaryAlbumType;
allowed: boolean;
}
interface ProfileSecondaryAlbumTypeItem {
secondaryAlbumType?: SecondaryAlbumType;
allowed: boolean;
}
interface ProfileReleaseStatusItem {
releaseStatus?: ReleaseStatus;
allowed: boolean;
}
interface MetadataProfile {
name: string;
primaryAlbumTypes: ProfilePrimaryAlbumTypeItem[];
secondaryAlbumTypes: ProfileSecondaryAlbumTypeItem[];
ReleaseStatuses: ProfileReleaseStatusItem[];
id: number;
}
export default MetadataProfile;

View file

@ -0,0 +1,23 @@
import Quality from 'Quality/Quality';
import { QualityProfileFormatItem } from './CustomFormat';
export interface QualityProfileQualityItem {
id?: number;
quality?: Quality;
items: QualityProfileQualityItem[];
allowed: boolean;
name?: string;
}
interface QualityProfile {
name: string;
upgradeAllowed: boolean;
cutoff: number;
items: QualityProfileQualityItem[];
minFormatScore: number;
cutoffFormatScore: number;
formatItems: QualityProfileFormatItem[];
id: number;
}
export default QualityProfile;