Add playqueue table

This commit is contained in:
jeffvli
2022-11-19 20:30:57 -08:00
parent 4cb78bb656
commit d66c756af5
20 changed files with 1332 additions and 213 deletions
+28
View File
@@ -1,3 +1,4 @@
import { Song } from '@/renderer/api/types';
import { AppRoute } from './router/routes';
export type RouteSlug = {
@@ -10,6 +11,8 @@ export type CardRoute = {
slugs?: RouteSlug[];
};
export type TableType = 'nowPlaying' | 'sideQueue' | 'sideDrawerQueue';
export type CardRow = {
arrayProperty?: string;
property: string;
@@ -93,6 +96,31 @@ export enum SortOrder {
DESC = 'desc',
}
export enum TableColumn {
ALBUM = 'album',
ALBUM_ARTIST = 'albumArtist',
ARTIST = 'artist',
BIT_RATE = 'bitRate',
DATE_ADDED = 'dateAdded',
DISC_NUMBER = 'discNumber',
DURATION = 'duration',
// FAVORITE = 'favorite',
GENRE = 'genre',
// PATH = 'path',
// PLAY_COUNT = 'playCount',
// RATING = 'rating',
RELEASE_DATE = 'releaseDate',
ROW_INDEX = 'rowIndex',
// SKIP = 'skip',
// SIZE = 'size',
TITLE = 'title',
TITLE_COMBINED = 'titleCombined',
TRACK_NUMBER = 'trackNumber',
YEAR = 'releaseYear',
}
export type QueueSong = Song & UniqueId;
export type PlayQueueAddOptions = {
byData?: any[];
byItemType?: {