user can configure visible columns in track-list

This commit is contained in:
2026-02-22 11:24:19 -05:00
parent 9d84a11543
commit b5e70a8ce6
15 changed files with 1137 additions and 82 deletions
+27
View File
@@ -93,6 +93,11 @@ export namespace library {
FilePath: string;
TrackNumber: number;
DiscNumber: number;
Album: string;
Genre: string;
Year: number;
Composer: string;
FileType: string;
static createFrom(source: any = {}) {
return new Track(source);
@@ -106,6 +111,11 @@ export namespace library {
this.FilePath = source["FilePath"];
this.TrackNumber = source["TrackNumber"];
this.DiscNumber = source["DiscNumber"];
this.Album = source["Album"];
this.Genre = source["Genre"];
this.Year = source["Year"];
this.Composer = source["Composer"];
this.FileType = source["FileType"];
}
}
@@ -196,3 +206,20 @@ export namespace playlist {
}
export namespace tracklist {
export class Column {
id: string;
static createFrom(source: any = {}) {
return new Column(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.id = source["id"];
}
}
}