mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-30 19:50:15 -07:00
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:
parent
01e21c09db
commit
f509ca0f72
117 changed files with 4704 additions and 5511 deletions
12
frontend/src/typings/CustomFormat.ts
Normal file
12
frontend/src/typings/CustomFormat.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
export interface QualityProfileFormatItem {
|
||||
format: number;
|
||||
name: string;
|
||||
score: number;
|
||||
}
|
||||
|
||||
interface CustomFormat {
|
||||
id: number;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export default CustomFormat;
|
39
frontend/src/typings/MetadataProfile.ts
Normal file
39
frontend/src/typings/MetadataProfile.ts
Normal 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;
|
23
frontend/src/typings/QualityProfile.ts
Normal file
23
frontend/src/typings/QualityProfile.ts
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue