Mounts the card from `dist/` the way Home Assistant does, by URL with a HACS tag, and asserts the entry stays a facade, that no chunk imports it, that the browser is served the file unmodified, and that the card starts up and fetches a language chunk lazily. Runs in Chromium, Firefox and WebKit, so a change of bundler or minifier is checked against every engine.
33 lines
1.6 KiB
TypeScript
33 lines
1.6 KiB
TypeScript
// ===========================================================================
|
|
// Top level Advanced Camera Card Constants
|
|
// ===========================================================================
|
|
|
|
export const REPO_URL = 'https://github.com/dermotduffy/advanced-camera-card' as const;
|
|
export const DOCS_URL = 'https://card.camera' as const;
|
|
|
|
export const TROUBLESHOOTING_URL = `${DOCS_URL}/#/troubleshooting` as const;
|
|
export const TROUBLESHOOTING_CONFIG_UPGRADE_URL =
|
|
`${TROUBLESHOOTING_URL}?id=configuration-upgrade-available` as const;
|
|
export const TROUBLESHOOTING_CONFIG_UPGRADE_FAILURE_URL =
|
|
`${TROUBLESHOOTING_URL}?id=configuration-could-not-be-fully-upgraded` as const;
|
|
export const TROUBLESHOOTING_LEGACY_RESOURCE_URL =
|
|
`${TROUBLESHOOTING_URL}?id=legacy-dashboard-resource-detected` as const;
|
|
export const TROUBLESHOOTING_MEDIA_URL =
|
|
`${TROUBLESHOOTING_URL}?id=media-unavailable` as const;
|
|
|
|
// ===========================================================================
|
|
// Interaction Constants
|
|
// ===========================================================================
|
|
|
|
// How long a press must last to count as a hold rather than a tap.
|
|
export const ACTION_HANDLER_HOLD_SECONDS = 0.4;
|
|
|
|
// ===========================================================================
|
|
// Media Constants
|
|
// ===========================================================================
|
|
|
|
// The number of media items to fetch at a time (for clips/snapshot views, and
|
|
// gallery chunks). Smaller values will cause more frequent smaller fetches, but
|
|
// improved rendering performance.
|
|
export const MEDIA_CHUNK_SIZE_DEFAULT = 50;
|