Squash merge audio-player-component into main

This commit is contained in:
2026-02-13 20:39:23 -06:00
parent 9b7cfd5bd1
commit d78c0584e2
122 changed files with 11750 additions and 1175 deletions
@@ -1,11 +0,0 @@
// @ts-check
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export function DirectoryPicker() {
return window['go']['frontendbindings']['FrontendBindings']['DirectoryPicker']();
}
export function Init(arg1) {
return window['go']['frontendbindings']['FrontendBindings']['Init'](arg1);
}
@@ -4,4 +4,4 @@ import {context} from '../models';
export function DirectoryPicker():Promise<string>;
export function Init(arg1:context.Context):Promise<void>;
export function SetContext(arg1:context.Context):Promise<void>;
+11
View File
@@ -0,0 +1,11 @@
// @ts-check
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export function DirectoryPicker() {
return window['go']['frontendutil']['FrontendUtil']['DirectoryPicker']();
}
export function SetContext(arg1) {
return window['go']['frontendutil']['FrontendUtil']['SetContext'](arg1);
}
+8 -3
View File
@@ -1,9 +1,14 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import {library} from '../models';
import {context} from '../models';
export function GetDir():Promise<string>;
export function GetAlbumTracks(arg1:number):Promise<Array<library.Track>>;
export function Init(arg1:context.Context):Promise<void>;
export function GetAllAlbums():Promise<Array<library.Album>>;
export function SetDir(arg1:string):Promise<void>;
export function GetAllTracks():Promise<Array<library.Track>>;
export function Scan():Promise<void>;
export function SetContext(arg1:context.Context):Promise<void>;
+14 -6
View File
@@ -2,14 +2,22 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export function GetDir() {
return window['go']['library']['Library']['GetDir']();
export function GetAlbumTracks(arg1) {
return window['go']['library']['Library']['GetAlbumTracks'](arg1);
}
export function Init(arg1) {
return window['go']['library']['Library']['Init'](arg1);
export function GetAllAlbums() {
return window['go']['library']['Library']['GetAllAlbums']();
}
export function SetDir(arg1) {
return window['go']['library']['Library']['SetDir'](arg1);
export function GetAllTracks() {
return window['go']['library']['Library']['GetAllTracks']();
}
export function Scan() {
return window['go']['library']['Library']['Scan']();
}
export function SetContext(arg1) {
return window['go']['library']['Library']['SetContext'](arg1);
}
+43
View File
@@ -0,0 +1,43 @@
export namespace library {
export class Album {
ID: number;
Name: string;
ArtistName: string;
CoverArtPath: string;
Year: number;
static createFrom(source: any = {}) {
return new Album(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.ID = source["ID"];
this.Name = source["Name"];
this.ArtistName = source["ArtistName"];
this.CoverArtPath = source["CoverArtPath"];
this.Year = source["Year"];
}
}
export class Track {
TrackName: string;
ArtistName: string;
TrackLength: string;
FilePath: string;
static createFrom(source: any = {}) {
return new Track(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.TrackName = source["TrackName"];
this.ArtistName = source["ArtistName"];
this.TrackLength = source["TrackLength"];
this.FilePath = source["FilePath"];
}
}
}
-26
View File
@@ -1,26 +0,0 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import {context} from '../models';
import {player} from '../models';
export function ChangeVolume(arg1:number):Promise<void>;
export function CurrentPosition():Promise<number>;
export function Init(arg1:context.Context):Promise<void>;
export function LoadFile(arg1:string):Promise<void>;
export function MuteToggle():Promise<void>;
export function Pause():Promise<void>;
export function Play():Promise<void>;
export function Resume():Promise<void>;
export function Seek(arg1:number):Promise<void>;
export function SetVolume(arg1:player.UserVolume):Promise<void>;
export function TrackLengthInSeconds():Promise<number>;
-47
View File
@@ -1,47 +0,0 @@
// @ts-check
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export function ChangeVolume(arg1) {
return window['go']['player']['Player']['ChangeVolume'](arg1);
}
export function CurrentPosition() {
return window['go']['player']['Player']['CurrentPosition']();
}
export function Init(arg1) {
return window['go']['player']['Player']['Init'](arg1);
}
export function LoadFile(arg1) {
return window['go']['player']['Player']['LoadFile'](arg1);
}
export function MuteToggle() {
return window['go']['player']['Player']['MuteToggle']();
}
export function Pause() {
return window['go']['player']['Player']['Pause']();
}
export function Play() {
return window['go']['player']['Player']['Play']();
}
export function Resume() {
return window['go']['player']['Player']['Resume']();
}
export function Seek(arg1) {
return window['go']['player']['Player']['Seek'](arg1);
}
export function SetVolume(arg1) {
return window['go']['player']['Player']['SetVolume'](arg1);
}
export function TrackLengthInSeconds() {
return window['go']['player']['Player']['TrackLengthInSeconds']();
}