beginnings of artist grid and artist details view

This commit is contained in:
2026-02-22 19:17:27 -05:00
parent 30bbdd7c53
commit 9dabfb81c5
15 changed files with 1186 additions and 10 deletions
+4
View File
@@ -7,8 +7,12 @@ export function FullRescan():Promise<library.ScanMetrics>;
export function GetAlbumTracks(arg1:number):Promise<Array<library.Track>>;
export function GetAlbumsByArtist(arg1:number):Promise<Array<library.Album>>;
export function GetAllAlbums():Promise<Array<library.Album>>;
export function GetAllArtists():Promise<Array<library.Artist>>;
export function GetAllTracks():Promise<Array<library.Track>>;
export function Scan():Promise<library.ScanMetrics>;
+8
View File
@@ -10,10 +10,18 @@ export function GetAlbumTracks(arg1) {
return window['go']['library']['Library']['GetAlbumTracks'](arg1);
}
export function GetAlbumsByArtist(arg1) {
return window['go']['library']['Library']['GetAlbumsByArtist'](arg1);
}
export function GetAllAlbums() {
return window['go']['library']['Library']['GetAllAlbums']();
}
export function GetAllArtists() {
return window['go']['library']['Library']['GetAllArtists']();
}
export function GetAllTracks() {
return window['go']['library']['Library']['GetAllTracks']();
}
+14
View File
@@ -26,6 +26,20 @@ export namespace library {
this.Year = source["Year"];
}
}
export class Artist {
ID: number;
Name: string;
static createFrom(source: any = {}) {
return new Artist(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.ID = source["ID"];
this.Name = source["Name"];
}
}
export class ScanMetrics {
total: number;
loadExisting: number;