feat: updates

This commit is contained in:
qier222 2022-06-12 15:29:14 +08:00
parent 196a974a64
commit 8f4c3d8e5b
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
24 changed files with 572 additions and 93 deletions

View file

@ -23,6 +23,8 @@ export const enum IpcChannels {
SyncSettings = 'SyncSettings',
GetAudioCacheSize = 'GetAudioCacheSize',
ResetWindowSize = 'ResetWindowSize',
GetVideoCover = 'GetVideoCover',
SetVideoCover = 'SetVideoCover',
}
// ipcMain.on params
@ -58,6 +60,8 @@ export interface IpcChannelsParams {
[IpcChannels.SyncSettings]: Store['settings']
[IpcChannels.GetAudioCacheSize]: void
[IpcChannels.ResetWindowSize]: void
[IpcChannels.GetVideoCover]: { id: number }
[IpcChannels.SetVideoCover]: { id: number; url: string }
}
// ipcRenderer.on params
@ -79,4 +83,6 @@ export interface IpcChannelsReturns {
[IpcChannels.Like]: void
[IpcChannels.Repeat]: RepeatMode
[IpcChannels.GetAudioCacheSize]: void
[IpcChannels.GetVideoCover]: string | undefined
[IpcChannels.SetVideoCover]: void
}