Use configuration consts.
This commit is contained in:
+40
-1
@@ -1,3 +1,42 @@
|
||||
export const CARD_VERSION = '2.0.0';
|
||||
export const REPO_URL = "https://github.com/dermotduffy/frigate-hass-card";
|
||||
export const REPO_URL = 'https://github.com/dermotduffy/frigate-hass-card';
|
||||
export const TROUBLESHOOTING_URL = `${REPO_URL}#troubleshooting`;
|
||||
|
||||
export const CONF_CAMERA_ENTITY = 'camera_entity';
|
||||
export const CONF_FRIGATE_CAMERA_NAME = 'frigate.camera_name';
|
||||
export const CONF_FRIGATE_CLIENT_ID = 'frigate.client_id';
|
||||
export const CONF_FRIGATE_LABEL = 'frigate.label';
|
||||
export const CONF_FRIGATE_URL = 'frigate.url';
|
||||
export const CONF_FRIGATE_ZONE = 'frigate.zone';
|
||||
|
||||
export const CONF_VIEW_DEFAULT = 'view.default';
|
||||
export const CONF_VIEW_TIMEOUT = 'view.timeout';
|
||||
|
||||
export const CONF_EVENT_VIEWER_AUTOPLAY_CLIP = 'event_viewer.autoplay_clip';
|
||||
export const CONF_EVENT_VIEWER_DRAGGABLE = 'event_viewer.draggable';
|
||||
export const CONF_EVENT_VIEWER_LAZY_LOAD = 'event_viewer.lazy_load';
|
||||
export const CONF_EVENT_VIEWER_CONTROLS_NEXT_PREVIOUS_STYLE =
|
||||
'event_viewer.controls.next_previous.style';
|
||||
export const CONF_EVENT_VIEWER_CONTROLS_NEXT_PREVIOUS_SIZE =
|
||||
'event_viewer.controls.next_previous.size';
|
||||
|
||||
export const CONF_LIVE_PRELOAD = 'live.preload';
|
||||
export const CONF_LIVE_PROVIDER = 'live.provider';
|
||||
export const CONF_LIVE_WEBRTC_ENTITY = 'live.webrtc.entity';
|
||||
export const CONF_LIVE_WEBRTC_URL = 'live.webrtc.url';
|
||||
|
||||
export const CONF_IMAGE_SRC = 'image.src';
|
||||
|
||||
export const CONF_MENU_BUTTONS_FRIGATE = 'menu.buttons.frigate';
|
||||
export const CONF_MENU_BUTTONS_FRIGATE_UI = 'menu.buttons.frigate_ui';
|
||||
export const CONF_MENU_BUTTONS_FRIGATE_FULLSCREEN = 'menu.buttons.fullscreen';
|
||||
export const CONF_MENU_BUTTONS_FRIGATE_DOWNLOAD = 'menu.buttons.download';
|
||||
export const CONF_MENU_BUTTONS_LIVE = 'menu.buttons.live';
|
||||
export const CONF_MENU_BUTTONS_CLIPS = 'menu.buttons.clips';
|
||||
export const CONF_MENU_BUTTONS_SNAPSHOTS = 'menu.buttons.snapshots';
|
||||
export const CONF_MENU_BUTTONS_IMAGE = 'menu.buttons.image';
|
||||
export const CONF_MENU_BUTTON_SIZE = 'menu.button_size';
|
||||
export const CONF_MENU_MODE = 'menu.mode';
|
||||
|
||||
export const CONF_DIMENSIONS_ASPECT_RATIO = 'dimensions.aspect_ratio';
|
||||
export const CONF_DIMENSIONS_ASPECT_RATIO_MODE = 'dimensions.aspect_ratio_mode';
|
||||
|
||||
Reference in New Issue
Block a user