Upgrade with history search

This commit is contained in:
Torben Pi Jensen
2026-05-09 13:12:37 +02:00
parent 9b4103a8b2
commit 8b2ab7958f
13 changed files with 262 additions and 286 deletions
+14 -2
View File
@@ -1,5 +1,5 @@
import { Song, PlayingSong, QueuedSong, Playlist, PlaylistDescription } from "./dataTypes";
export type StuenMessages = ListenerList | SendChatMessage | SearchSong | SearchSongResult | Join | QueueSong | CurrentQueue | CurrentSong | UnqueueSong | ReorderSong | SkipSong | SongLikes | ToggleSongLike | CreatePlaylist | RemovePlaylist | AddSongToPlaylist | RemoveSongFromPlaylist | Playlists | GetPlaylist | PlaylistSongs | GetOtherPlaylists | ToggleTag | Shuffle | RemoveFromAutoPlay;
import { Song, PlayingSong, QueuedSong, Playlist, PlaylistDescription, PlayerControl } from "./dataTypes";
export type StuenMessages = ListenerList | SendChatMessage | SearchSong | SearchSongResult | SearchHistory | HistoryContent | Join | QueueSong | CurrentQueue | CurrentSong | CurrentPlayerControl | UnqueueSong | ReorderSong | SkipSong | SongLikes | ToggleSongLike | CreatePlaylist | RemovePlaylist | AddSongToPlaylist | RemoveSongFromPlaylist | Playlists | GetPlaylist | PlaylistSongs | GetOtherPlaylists | ToggleTag | Shuffle | RemoveFromAutoPlay;
export declare abstract class StuenMessage {
type: string;
constructor(type: string);
@@ -29,6 +29,14 @@ export declare class SearchSongResult extends StuenMessage {
result: Song[];
constructor(result: Song[]);
}
export declare class SearchHistory extends StuenMessage {
query: string;
constructor(query: string);
}
export declare class HistoryContent extends StuenMessage {
result: Song[];
constructor(result: Song[]);
}
export declare class QueueSong extends StuenMessage {
song: Song;
constructor(song: Song);
@@ -41,6 +49,10 @@ export declare class CurrentSong extends StuenMessage {
song: PlayingSong | null;
constructor(song: PlayingSong | null);
}
export declare class CurrentPlayerControl extends StuenMessage {
playerControl: PlayerControl | null;
constructor(playerControl: PlayerControl | null);
}
export declare class UnqueueSong extends StuenMessage {
position: number | null;
all: boolean | undefined;