2024-10-13 17:37:01 +00:00
|
|
|
import type { Ref } from 'vue'
|
|
|
|
import type { SongUpdateResult } from '@/stores'
|
2022-09-08 05:06:49 +00:00
|
|
|
|
2022-11-15 15:52:38 +00:00
|
|
|
export interface Events {
|
|
|
|
LOG_OUT: () => void
|
|
|
|
TOGGLE_SIDEBAR: () => void
|
|
|
|
FOCUS_SEARCH_FIELD: () => void
|
|
|
|
PLAY_YOUTUBE_VIDEO: (payload: { id: string, title: string }) => void
|
|
|
|
SEARCH_KEYWORDS_CHANGED: (keywords: string) => void
|
2022-09-08 05:06:49 +00:00
|
|
|
|
2024-05-19 05:49:42 +00:00
|
|
|
PLAYABLE_CONTEXT_MENU_REQUESTED: (event: MouseEvent, playables: MaybeArray<Playable>) => void
|
2022-11-15 15:52:38 +00:00
|
|
|
ALBUM_CONTEXT_MENU_REQUESTED: (event: MouseEvent, album: Album) => void
|
|
|
|
ARTIST_CONTEXT_MENU_REQUESTED: (event: MouseEvent, artist: Artist) => void
|
2024-05-19 05:49:42 +00:00
|
|
|
PODCAST_CONTEXT_MENU_REQUESTED: (event: MouseEvent, podcast: Podcast) => void
|
2024-01-14 13:20:56 +00:00
|
|
|
CREATE_NEW_PLAYLIST_CONTEXT_MENU_REQUESTED: ({ top, left }: { top: number, left: number }) => void
|
2022-11-15 15:52:38 +00:00
|
|
|
PLAYLIST_CONTEXT_MENU_REQUESTED: (event: MouseEvent, playlist: Playlist) => void
|
|
|
|
PLAYLIST_FOLDER_CONTEXT_MENU_REQUESTED: (event: MouseEvent, playlistFolder: PlaylistFolder) => void
|
|
|
|
CONTEXT_MENU_OPENED: (el: Ref<HTMLElement> | HTMLElement) => void
|
2022-09-08 05:06:49 +00:00
|
|
|
|
2022-12-23 15:44:34 +00:00
|
|
|
FULLSCREEN_TOGGLE: () => void
|
|
|
|
|
2022-11-15 15:52:38 +00:00
|
|
|
MODAL_SHOW_ADD_USER_FORM: () => void
|
2023-08-20 22:35:58 +00:00
|
|
|
MODAL_SHOW_INVITE_USER_FORM: () => void
|
2022-11-15 15:52:38 +00:00
|
|
|
MODAL_SHOW_EDIT_USER_FORM: (user: User) => void
|
2024-06-02 17:15:31 +00:00
|
|
|
MODAL_SHOW_EDIT_SONG_FORM: (songs: MaybeArray<Song>, initialTab?: EditSongFormTabName) => void
|
2024-05-19 05:49:42 +00:00
|
|
|
MODAL_SHOW_CREATE_PLAYLIST_FORM: (folder?: PlaylistFolder | null, playables?: MaybeArray<Playable>) => void
|
2022-11-15 15:52:38 +00:00
|
|
|
MODAL_SHOW_EDIT_PLAYLIST_FORM: (playlist: Playlist) => void
|
2022-12-06 10:28:48 +00:00
|
|
|
MODAL_SHOW_CREATE_SMART_PLAYLIST_FORM: (folder?: PlaylistFolder | null) => void
|
2022-11-15 15:52:38 +00:00
|
|
|
MODAL_SHOW_CREATE_PLAYLIST_FOLDER_FORM: () => void
|
|
|
|
MODAL_SHOW_EDIT_PLAYLIST_FOLDER_FORM: (playlistFolder: PlaylistFolder) => void
|
2024-01-24 22:39:47 +00:00
|
|
|
MODAL_SHOW_PLAYLIST_COLLABORATION: (playlist: Playlist) => void
|
2024-10-13 17:37:01 +00:00
|
|
|
MODAL_SHOW_ADD_PODCAST_FORM: () => void
|
2022-11-15 15:52:38 +00:00
|
|
|
MODAL_SHOW_ABOUT_KOEL: () => void
|
2024-01-13 17:57:24 +00:00
|
|
|
MODAL_SHOW_KOEL_PLUS: () => void
|
2022-11-15 15:52:38 +00:00
|
|
|
MODAL_SHOW_EQUALIZER: () => void
|
|
|
|
|
|
|
|
PLAYLIST_DELETE: (playlist: Playlist) => void
|
|
|
|
PLAYLIST_FOLDER_DELETE: (playlistFolder: PlaylistFolder) => void
|
2024-05-19 05:49:42 +00:00
|
|
|
PLAYLIST_CONTENT_REMOVED: (playlist: Playlist, playables: Playable[]) => void
|
2022-11-15 15:52:38 +00:00
|
|
|
PLAYLIST_UPDATED: (playlist: Playlist) => void
|
2024-01-24 22:39:47 +00:00
|
|
|
PLAYLIST_COLLABORATOR_REMOVED: (playlist: Playlist) => void
|
2022-11-15 15:52:38 +00:00
|
|
|
|
2024-04-29 19:31:54 +00:00
|
|
|
SONGS_UPDATED: (result: SongUpdateResult) => void
|
2022-11-15 15:52:38 +00:00
|
|
|
SONGS_DELETED: (songs: Song[]) => void
|
2024-04-29 19:31:54 +00:00
|
|
|
SONG_UPLOADED: (song: Song) => void
|
2022-11-15 15:52:38 +00:00
|
|
|
|
2024-05-19 05:49:42 +00:00
|
|
|
EPISODE_PROGRESS_UPDATED: (episode: Episode, progress: number) => void
|
|
|
|
|
2022-11-15 15:52:38 +00:00
|
|
|
SOCKET_TOGGLE_PLAYBACK: () => void
|
|
|
|
SOCKET_TOGGLE_FAVORITE: () => void
|
|
|
|
SOCKET_PLAY_NEXT: () => void
|
|
|
|
SOCKET_PLAY_PREV: () => void
|
|
|
|
SOCKET_PLAYBACK_STOPPED: () => void
|
|
|
|
SOCKET_GET_STATUS: () => void
|
2024-06-03 05:22:16 +00:00
|
|
|
SOCKET_STATUS: (data: { playable?: Playable, volume: number }) => void
|
|
|
|
SOCKET_GET_CURRENT_PLAYABLE: () => void
|
|
|
|
SOCKET_PLAYABLE: (playable: Playable) => void
|
2022-11-15 15:52:38 +00:00
|
|
|
SOCKET_SET_VOLUME: (volume: number) => void
|
|
|
|
SOCKET_VOLUME_CHANGED: (volume: number) => void
|
|
|
|
}
|