Skip to main content

APP_CONSTANTS

FitFileViewer - API Documentation v29.4.0


FitFileViewer - API Documentation / utils/config/constants / APP_CONSTANTS

Variable: APP_CONSTANTS

const APP_CONSTANTS: { NAME: string; VERSION: string; AUTHOR: string; IPC_CHANNELS: { APP_VERSION: string; CHROME_VERSION: string; DIALOG_OPEN_FILE: string; ELECTRON_VERSION: string; FILE_READ: string; FIT_DECODE: string; FIT_PARSE: string; NODE_VERSION: string; PLATFORM_INFO: string; SHELL_OPEN_EXTERNAL: string; THEME_GET: string; }; EVENTS: { INSTALL_UPDATE: string; MENU_OPEN_FILE: string; MENU_OPEN_OVERLAY: string; SET_FULLSCREEN: string; SET_THEME: string; THEME_CHANGED: string; }; }

Defined in: utils/config/constants.js:340

Application metadata constants

Type Declaration​

NAME​

NAME: string = "FitFileViewer"

VERSION​

VERSION: string = "26.8.0"

AUTHOR​

AUTHOR: string = "FitFileViewer Development Team"

IPC_CHANNELS​

IPC_CHANNELS: { APP_VERSION: string; CHROME_VERSION: string; DIALOG_OPEN_FILE: string; ELECTRON_VERSION: string; FILE_READ: string; FIT_DECODE: string; FIT_PARSE: string; NODE_VERSION: string; PLATFORM_INFO: string; SHELL_OPEN_EXTERNAL: string; THEME_GET: string; }

IPC channel names

IPC_CHANNELS.APP_VERSION​

APP_VERSION: string = "getAppVersion"

IPC_CHANNELS.CHROME_VERSION​

CHROME_VERSION: string = "getChromeVersion"

IPC_CHANNELS.DIALOG_OPEN_FILE​

DIALOG_OPEN_FILE: string = "dialog:openFile"

IPC_CHANNELS.ELECTRON_VERSION​

ELECTRON_VERSION: string = "getElectronVersion"

IPC_CHANNELS.FILE_READ​

FILE_READ: string = "file:read"

IPC_CHANNELS.FIT_DECODE​

FIT_DECODE: string = "fit:decode"

IPC_CHANNELS.FIT_PARSE​

FIT_PARSE: string = "fit:parse"

IPC_CHANNELS.NODE_VERSION​

NODE_VERSION: string = "getNodeVersion"

IPC_CHANNELS.PLATFORM_INFO​

PLATFORM_INFO: string = "getPlatformInfo"

IPC_CHANNELS.SHELL_OPEN_EXTERNAL​

SHELL_OPEN_EXTERNAL: string = "shell:openExternal"

IPC_CHANNELS.THEME_GET​

THEME_GET: string = "theme:get"

EVENTS​

EVENTS: { INSTALL_UPDATE: string; MENU_OPEN_FILE: string; MENU_OPEN_OVERLAY: string; SET_FULLSCREEN: string; SET_THEME: string; THEME_CHANGED: string; }

Event names

EVENTS.INSTALL_UPDATE​

INSTALL_UPDATE: string = "install-update"

EVENTS.MENU_OPEN_FILE​

MENU_OPEN_FILE: string = "menu-open-file"

EVENTS.MENU_OPEN_OVERLAY​

MENU_OPEN_OVERLAY: string = "menu-open-overlay"

EVENTS.SET_FULLSCREEN​

SET_FULLSCREEN: string = "set-fullscreen"

EVENTS.SET_THEME​

SET_THEME: string = "set-theme"

EVENTS.THEME_CHANGED​

THEME_CHANGED: string = "theme-changed"