user can configure visible columns in track-list
This commit is contained in:
+5
@@ -1,5 +1,6 @@
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
import {tracklist} from '../models';
|
||||
import {context} from '../models';
|
||||
|
||||
export function GetLibraryDirectory():Promise<string>;
|
||||
@@ -10,6 +11,8 @@ export function GetThemeAccentColor():Promise<string>;
|
||||
|
||||
export function GetThemeBackgroundShade():Promise<string>;
|
||||
|
||||
export function GetTrackListColumns():Promise<Array<tracklist.Column>>;
|
||||
|
||||
export function Load():Promise<void>;
|
||||
|
||||
export function Save():Promise<void>;
|
||||
@@ -24,4 +27,6 @@ export function SetThemeAccentColor(arg1:string):Promise<void>;
|
||||
|
||||
export function SetThemeBackgroundShade(arg1:string):Promise<void>;
|
||||
|
||||
export function SetTrackListColumns(arg1:Array<tracklist.Column>):Promise<void>;
|
||||
|
||||
export function Validate():Promise<void>;
|
||||
|
||||
@@ -18,6 +18,10 @@ export function GetThemeBackgroundShade() {
|
||||
return window['go']['config']['Config']['GetThemeBackgroundShade']();
|
||||
}
|
||||
|
||||
export function GetTrackListColumns() {
|
||||
return window['go']['config']['Config']['GetTrackListColumns']();
|
||||
}
|
||||
|
||||
export function Load() {
|
||||
return window['go']['config']['Config']['Load']();
|
||||
}
|
||||
@@ -46,6 +50,10 @@ export function SetThemeBackgroundShade(arg1) {
|
||||
return window['go']['config']['Config']['SetThemeBackgroundShade'](arg1);
|
||||
}
|
||||
|
||||
export function SetTrackListColumns(arg1) {
|
||||
return window['go']['config']['Config']['SetTrackListColumns'](arg1);
|
||||
}
|
||||
|
||||
export function Validate() {
|
||||
return window['go']['config']['Config']['Validate']();
|
||||
}
|
||||
|
||||
@@ -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"];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user