Initial commit
This commit is contained in:
47
src/shared/ipc.ts
Normal file
47
src/shared/ipc.ts
Normal file
@@ -0,0 +1,47 @@
|
||||
export const IPC = {
|
||||
getState: 'state:get',
|
||||
addExercise: 'exercise:add',
|
||||
updateExercise: 'exercise:update',
|
||||
deleteExercise: 'exercise:delete',
|
||||
toggleExercise: 'exercise:toggle',
|
||||
markDone: 'exercise:markDone',
|
||||
snooze: 'exercise:snooze',
|
||||
skip: 'exercise:skip',
|
||||
|
||||
updateSettings: 'settings:update',
|
||||
getAccentColor: 'system:accentColor',
|
||||
getOsTheme: 'system:osTheme',
|
||||
|
||||
pauseAll: 'app:pauseAll',
|
||||
resumeAll: 'app:resumeAll',
|
||||
quit: 'app:quit',
|
||||
minimizeMain: 'window:minimize',
|
||||
closeMain: 'window:close',
|
||||
hideMain: 'window:hide',
|
||||
|
||||
reminderClose: 'reminder:close',
|
||||
|
||||
// Games
|
||||
gamesList: 'games:list',
|
||||
gameInstall: 'games:install',
|
||||
gameUninstall: 'games:uninstall',
|
||||
gameToggle: 'games:toggle',
|
||||
gameOpenLaunchOptions: 'games:openLaunchOptions',
|
||||
|
||||
// Challenges
|
||||
addChallenge: 'challenge:add',
|
||||
updateChallenge: 'challenge:update',
|
||||
deleteChallenge: 'challenge:delete',
|
||||
toggleChallenge: 'challenge:toggle',
|
||||
markChallengeDone: 'challenge:markDone',
|
||||
closeMatchSummary: 'matchSummary:close',
|
||||
|
||||
// events from main → renderer
|
||||
evtTick: 'evt:tick',
|
||||
evtFire: 'evt:fire',
|
||||
evtMatchEnd: 'evt:matchEnd',
|
||||
evtStateChanged: 'evt:stateChanged',
|
||||
evtThemeChanged: 'evt:themeChanged',
|
||||
evtAccentChanged: 'evt:accentChanged',
|
||||
evtGamesChanged: 'evt:gamesChanged'
|
||||
} as const
|
||||
Reference in New Issue
Block a user