2022-03-31 07:33:58 +00:00
|
|
|
// ipcRenderer.send(...)
|
|
|
|
export enum IPC_MESSAGES {
|
|
|
|
OPEN_MENU = 'open-menu',
|
|
|
|
OPEN_SETTINGS = 'open-settings',
|
|
|
|
OPEN_EXTERNAL = 'open-external',
|
|
|
|
SHOW_ITEM_IN_FOLDER = 'show-item-in-folder',
|
|
|
|
RELOAD_MAIN_WINDOW = 'reload-main-window',
|
2024-03-28 09:13:08 +00:00
|
|
|
MINIMIZE_MAIN_WINDOW = 'minimize-main-window',
|
|
|
|
MAXIMIZE_MAIN_WINDOW = 'maximize-main-window',
|
|
|
|
ISMAXIMIZED_MAIN_WINDOW = 'ismaximized-main-window',
|
|
|
|
ISMAXIMIZED_RESULT = 'ismaximized-result',
|
|
|
|
ISFULLSCREEN_MAIN_WINDOW = 'isfullscreen-main-window',
|
|
|
|
ISFULLSCREEN_RESULT = 'isfullscreen-result',
|
|
|
|
CLOSE_MAIN_WINDOW = 'close-main-window',
|
2022-03-31 07:33:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// ipcRenderer.invoke(...)
|
|
|
|
export enum IPC_ACTIONS {
|
|
|
|
GET_OPEN_FILEPATH = 'open-dialog',
|
|
|
|
GET_SAVE_FILEPATH = 'save-dialog',
|
|
|
|
GET_DIALOG_RESPONSE = 'show-message-box',
|
2022-05-27 07:50:14 +00:00
|
|
|
GET_ENV = 'get-env',
|
2022-03-31 07:33:58 +00:00
|
|
|
SAVE_HTML_AS_PDF = 'save-html-as-pdf',
|
|
|
|
SAVE_DATA = 'save-data',
|
|
|
|
SHOW_ERROR = 'show-error',
|
|
|
|
SEND_ERROR = 'send-error',
|
|
|
|
GET_LANGUAGE_MAP = 'get-language-map',
|
|
|
|
CHECK_FOR_UPDATES = 'check-for-updates',
|
2023-06-29 05:32:09 +00:00
|
|
|
CHECK_DB_ACCESS = 'check-db-access',
|
2022-10-25 08:13:00 +00:00
|
|
|
SELECT_FILE = 'select-file',
|
2022-03-31 07:33:58 +00:00
|
|
|
GET_CREDS = 'get-creds',
|
2022-05-19 18:25:01 +00:00
|
|
|
GET_DB_LIST = 'get-db-list',
|
2023-03-07 08:46:19 +00:00
|
|
|
GET_TEMPLATES = 'get-templates',
|
2022-05-13 11:58:42 +00:00
|
|
|
DELETE_FILE = 'delete-file',
|
2023-07-11 08:13:32 +00:00
|
|
|
GET_DB_DEFAULT_PATH = 'get-db-default-path',
|
2022-03-31 07:33:58 +00:00
|
|
|
// Database messages
|
|
|
|
DB_CREATE = 'db-create',
|
|
|
|
DB_CONNECT = 'db-connect',
|
|
|
|
DB_CALL = 'db-call',
|
2022-04-11 06:04:55 +00:00
|
|
|
DB_BESPOKE = 'db-bespoke',
|
2022-03-31 12:04:30 +00:00
|
|
|
DB_SCHEMA = 'db-schema',
|
2022-03-31 07:33:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// ipcMain.send(...)
|
|
|
|
export enum IPC_CHANNELS {
|
2022-08-30 12:43:42 +00:00
|
|
|
LOG_MAIN_PROCESS_ERROR = 'main-process-error',
|
2022-05-27 08:30:25 +00:00
|
|
|
CONSOLE_LOG = 'console-log',
|
2022-03-31 07:33:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export enum DB_CONN_FAILURE {
|
|
|
|
INVALID_FILE = 'invalid-file',
|
|
|
|
CANT_OPEN = 'cant-open',
|
|
|
|
CANT_CONNECT = 'cant-connect',
|
|
|
|
}
|
2022-08-30 12:43:42 +00:00
|
|
|
|
|
|
|
// events
|
|
|
|
export enum CUSTOM_EVENTS {
|
|
|
|
MAIN_PROCESS_ERROR = 'main-process-error',
|
2022-09-20 17:19:09 +00:00
|
|
|
LOG_UNEXPECTED = 'log-unexpected',
|
2022-08-30 12:43:42 +00:00
|
|
|
}
|