backsplash-app
Version:
An AI powered wallpaper app.
60 lines (55 loc) • 1.57 kB
text/typescript
/**
* Store-related constants and messages
*/
export const STORE_MESSAGES = {
// IPC Channels
CHANNELS: {
GET: "store:get",
SET: "store:set",
HAS: "store:has",
DELETE: "store:delete",
CLEAR: "store:clear",
},
// Store Keys
KEYS: {
CURRENT_MODE: "wallpaper-current-mode",
MODE_PARAMS: "wallpaper-mode-params",
ACTIVE_STYLES: "backsplash-active-styles",
CUSTOM_STYLE: "backsplash-custom-style",
SCHEDULER_INTERVAL_MINUTES: "scheduler.intervalMinutes",
SCHEDULER_ACTIVE: "scheduler.active",
EXPANDED_CATEGORIES: "backsplash-expanded-categories",
LAST_WALLPAPER: "backsplash-last-wallpaper",
WALLPAPER_HISTORY: "wallpaperHistory",
UPDATE_STATE: "update-state",
},
// Event Channels
EVENTS: {
UPDATED: "store:updated",
},
// Store Operations
OPERATIONS: {
EXPANDED_CATEGORIES: "expandedCategories",
ACTIVE_STYLES: "activeStyles",
CURRENT_MODE: "currentMode",
MODE_PARAMS: "modeParams",
LAST_WALLPAPER: "lastWallpaper",
SCHEDULER_INTERVAL_MINUTES: "schedulerIntervalMinutes",
SCHEDULER_ACTIVE: "schedulerActive",
WALLPAPER_HISTORY: "wallpaperHistory",
CUSTOM_STYLE: "customStyle",
UPDATE_STATE: "updateState",
},
} as const;
export const UPDATE_MESSAGES = {
CHECK_FOR_UPDATE: "update:check",
DOWNLOAD_UPDATE: "update:download",
INSTALL_UPDATE: "update:install",
EVENTS: {
PREFIX: "update",
CHECKING: "update:checking",
AVAILABLE: "update:available",
DOWNLOADED: "update:downloaded",
ERROR: "update:error",
},
};