Various build extension fixes.
This commit is contained in:
+3
-2
@@ -9,7 +9,8 @@
|
|||||||
"hass",
|
"hass",
|
||||||
"lovelace"
|
"lovelace"
|
||||||
],
|
],
|
||||||
"module": "frigate-card.js",
|
"type": "module",
|
||||||
|
"module": "frigate-hass-card.js",
|
||||||
"repository": "git@github.com:dermotduffy/frigate-hass-card.git",
|
"repository": "git@github.com:dermotduffy/frigate-hass-card.git",
|
||||||
"author": "Dermot Duffy <dermot.duffy@gmail.com>",
|
"author": "Dermot Duffy <dermot.duffy@gmail.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -52,7 +53,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "rollup -c rollup.config.dev.js --watch",
|
"start": "rollup -c rollup.config.dev.js --watch",
|
||||||
"build": "npm run lint && npm run rollup",
|
"build": "npm run lint && npm run rollup",
|
||||||
"lint": "eslint src/*.ts",
|
"lint": "eslint 'src/**/*.ts'",
|
||||||
"rollup": "rollup -c"
|
"rollup": "rollup -c"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-5
@@ -1,7 +1,6 @@
|
|||||||
import typescript from 'rollup-plugin-typescript2';
|
import typescript from 'rollup-plugin-typescript2';
|
||||||
import commonjs from 'rollup-plugin-commonjs';
|
import commonjs from 'rollup-plugin-commonjs';
|
||||||
import nodeResolve from 'rollup-plugin-node-resolve';
|
import nodeResolve from 'rollup-plugin-node-resolve';
|
||||||
import babel from 'rollup-plugin-babel';
|
|
||||||
import { terser } from 'rollup-plugin-terser';
|
import { terser } from 'rollup-plugin-terser';
|
||||||
import serve from 'rollup-plugin-serve';
|
import serve from 'rollup-plugin-serve';
|
||||||
import json from '@rollup/plugin-json';
|
import json from '@rollup/plugin-json';
|
||||||
@@ -32,12 +31,11 @@ const plugins = [
|
|||||||
}),
|
}),
|
||||||
image(),
|
image(),
|
||||||
nodeResolve({}),
|
nodeResolve({}),
|
||||||
commonjs(),
|
commonjs({
|
||||||
|
include: 'node_modules/**'
|
||||||
|
}),
|
||||||
typescript(),
|
typescript(),
|
||||||
json(),
|
json(),
|
||||||
babel({
|
|
||||||
exclude: 'node_modules/**',
|
|
||||||
}),
|
|
||||||
dev && serve(serveopts),
|
dev && serve(serveopts),
|
||||||
!dev && terser(),
|
!dev && terser(),
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { noChange } from 'lit';
|
import { noChange } from 'lit';
|
||||||
import { AttributePart, directive, Directive, DirectiveParameters } from 'lit/directive';
|
import { AttributePart, directive, Directive, DirectiveParameters } from 'lit/directive.js';
|
||||||
|
|
||||||
import {
|
import type {
|
||||||
ActionHandlerDetail,
|
ActionHandlerDetail,
|
||||||
ActionHandlerOptions,
|
ActionHandlerOptions,
|
||||||
} from 'custom-card-helpers/dist/types';
|
} from 'custom-card-helpers/dist/types.d.js';
|
||||||
import { fireEvent } from 'custom-card-helpers';
|
import { fireEvent } from 'custom-card-helpers';
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
|
|||||||
+21
-21
@@ -7,10 +7,10 @@ import {
|
|||||||
html,
|
html,
|
||||||
unsafeCSS,
|
unsafeCSS,
|
||||||
} from 'lit';
|
} from 'lit';
|
||||||
import { customElement, property, query, state } from 'lit/decorators';
|
import { customElement, property, query, state } from 'lit/decorators.js';
|
||||||
import { classMap } from 'lit/directives/class-map.js';
|
import { classMap } from 'lit/directives/class-map.js';
|
||||||
import { styleMap } from 'lit/directives/style-map.js';
|
import { styleMap } from 'lit/directives/style-map.js';
|
||||||
import { until } from 'lit/directives/until';
|
import { until } from 'lit/directives/until.js';
|
||||||
import {
|
import {
|
||||||
HomeAssistant,
|
HomeAssistant,
|
||||||
LovelaceCardEditor,
|
LovelaceCardEditor,
|
||||||
@@ -20,7 +20,7 @@ import {
|
|||||||
import screenfull from 'screenfull';
|
import screenfull from 'screenfull';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
import { entitySchema, frigateCardConfigSchema } from './types';
|
import { entitySchema, frigateCardConfigSchema } from './types.js';
|
||||||
import type {
|
import type {
|
||||||
BrowseMediaQueryParameters,
|
BrowseMediaQueryParameters,
|
||||||
Entity,
|
Entity,
|
||||||
@@ -29,26 +29,26 @@ import type {
|
|||||||
MediaLoadInfo,
|
MediaLoadInfo,
|
||||||
MenuButton,
|
MenuButton,
|
||||||
Message,
|
Message,
|
||||||
} from './types';
|
} from './types.js';
|
||||||
|
|
||||||
import { CARD_VERSION, REPO_URL } from './const';
|
import { CARD_VERSION, REPO_URL } from './const.js';
|
||||||
import { FrigateCardElements } from './components/elements';
|
import { FrigateCardElements } from './components/elements.js';
|
||||||
import { FrigateCardMenu, MENU_HEIGHT } from './components/menu';
|
import { FrigateCardMenu, MENU_HEIGHT } from './components/menu.js';
|
||||||
import { View } from './view';
|
import { View } from './view.js';
|
||||||
import { homeAssistantWSRequest, shouldUpdateBasedOnHass } from './common';
|
import { homeAssistantWSRequest, shouldUpdateBasedOnHass } from './common.js';
|
||||||
import { localize } from './localize/localize';
|
import { localize } from './localize/localize.js';
|
||||||
import { renderMessage, renderProgressIndicator } from './components/message';
|
import { renderMessage, renderProgressIndicator } from './components/message.js';
|
||||||
|
|
||||||
import './editor';
|
import './editor.js';
|
||||||
import './components/elements';
|
import './components/elements.js';
|
||||||
import './components/gallery';
|
import './components/gallery.js';
|
||||||
import './components/image';
|
import './components/image.js';
|
||||||
import './components/live';
|
import './components/live.js';
|
||||||
import './components/menu';
|
import './components/menu.js';
|
||||||
import './components/message';
|
import './components/message.js';
|
||||||
import './components/viewer';
|
import './components/viewer.js';
|
||||||
import './patches/ha-camera-stream';
|
import './patches/ha-camera-stream.js';
|
||||||
import './patches/ha-hls-player';
|
import './patches/ha-hls-player.js';
|
||||||
|
|
||||||
import cardStyle from './scss/card.scss';
|
import cardStyle from './scss/card.scss';
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -1,15 +1,15 @@
|
|||||||
import { ZodSchema, z } from 'zod';
|
import { ZodSchema, z } from 'zod';
|
||||||
import { MessageBase } from 'home-assistant-js-websocket';
|
import { MessageBase } from 'home-assistant-js-websocket';
|
||||||
import { HomeAssistant } from 'custom-card-helpers';
|
import { HomeAssistant } from 'custom-card-helpers';
|
||||||
import { localize } from './localize/localize';
|
import { localize } from './localize/localize.js';
|
||||||
import type {
|
import type {
|
||||||
BrowseMediaQueryParameters,
|
BrowseMediaQueryParameters,
|
||||||
BrowseMediaSource,
|
BrowseMediaSource,
|
||||||
ExtendedHomeAssistant,
|
ExtendedHomeAssistant,
|
||||||
MediaLoadInfo,
|
MediaLoadInfo,
|
||||||
Message,
|
Message,
|
||||||
} from './types';
|
} from './types.js';
|
||||||
import { browseMediaSourceSchema } from './types';
|
import { browseMediaSourceSchema } from './types.js';
|
||||||
|
|
||||||
export function getParseErrorKeys<T>(error: z.ZodError<T>): string[] {
|
export function getParseErrorKeys<T>(error: z.ZodError<T>): string[] {
|
||||||
const errors = error.format();
|
const errors = error.format();
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { LitElement, TemplateResult, html, CSSResultGroup, unsafeCSS } from 'lit';
|
import { LitElement, TemplateResult, html, CSSResultGroup, unsafeCSS } from 'lit';
|
||||||
import { HomeAssistant } from 'custom-card-helpers';
|
import { HomeAssistant } from 'custom-card-helpers';
|
||||||
import { customElement, property, query } from 'lit/decorators';
|
import { customElement, property, query } from 'lit/decorators.js';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ExtendedHomeAssistant,
|
ExtendedHomeAssistant,
|
||||||
@@ -9,12 +9,12 @@ import {
|
|||||||
MenuIcon,
|
MenuIcon,
|
||||||
MenuStateIcon,
|
MenuStateIcon,
|
||||||
PictureElements,
|
PictureElements,
|
||||||
} from '../types';
|
} from '../types.js';
|
||||||
import { dispatchErrorMessageEvent, dispatchEvent } from '../common';
|
import { dispatchErrorMessageEvent, dispatchEvent } from '../common.js';
|
||||||
|
|
||||||
import elementsStyle from '../scss/elements.scss';
|
import elementsStyle from '../scss/elements.scss';
|
||||||
import { localize } from '../localize/localize';
|
import { localize } from '../localize/localize.js';
|
||||||
import { View } from '../view';
|
import { View } from '../view.js';
|
||||||
|
|
||||||
/* A note on picture element rendering:
|
/* A note on picture element rendering:
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||||
import { CSSResultGroup, LitElement, TemplateResult, html, unsafeCSS } from 'lit';
|
import { CSSResultGroup, LitElement, TemplateResult, html, unsafeCSS } from 'lit';
|
||||||
import { customElement, property, state } from 'lit/decorators';
|
import { customElement, property, state } from 'lit/decorators.js';
|
||||||
import { until } from 'lit/directives/until.js';
|
import { until } from 'lit/directives/until.js';
|
||||||
import { HomeAssistant } from 'custom-card-helpers';
|
import { HomeAssistant } from 'custom-card-helpers';
|
||||||
|
|
||||||
@@ -8,18 +8,18 @@ import type {
|
|||||||
BrowseMediaSource,
|
BrowseMediaSource,
|
||||||
BrowseMediaQueryParameters,
|
BrowseMediaQueryParameters,
|
||||||
ExtendedHomeAssistant,
|
ExtendedHomeAssistant,
|
||||||
} from '../types';
|
} from '../types.js';
|
||||||
|
|
||||||
import { View } from '../view';
|
import { View } from '../view.js';
|
||||||
import {
|
import {
|
||||||
browseMedia,
|
browseMedia,
|
||||||
browseMediaQuery,
|
browseMediaQuery,
|
||||||
dispatchErrorMessageEvent,
|
dispatchErrorMessageEvent,
|
||||||
dispatchMessageEvent,
|
dispatchMessageEvent,
|
||||||
getFirstTrueMediaChildIndex,
|
getFirstTrueMediaChildIndex,
|
||||||
} from '../common';
|
} from '../common.js';
|
||||||
import { localize } from '../localize/localize';
|
import { localize } from '../localize/localize.js';
|
||||||
import { renderProgressIndicator } from './message';
|
import { renderProgressIndicator } from './message.js';
|
||||||
|
|
||||||
import galleryStyle from '../scss/gallery.scss';
|
import galleryStyle from '../scss/gallery.scss';
|
||||||
import { styleMap } from 'lit/directives/style-map.js';
|
import { styleMap } from 'lit/directives/style-map.js';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { CSSResultGroup, LitElement, TemplateResult, html, unsafeCSS } from 'lit';
|
import { CSSResultGroup, LitElement, TemplateResult, html, unsafeCSS } from 'lit';
|
||||||
import { customElement, property } from 'lit/decorators';
|
import { customElement, property } from 'lit/decorators.js';
|
||||||
|
|
||||||
import { dispatchMediaLoadEvent } from '../common';
|
import { dispatchMediaLoadEvent } from '../common.js';
|
||||||
|
|
||||||
import imageStyle from '../scss/image.scss';
|
import imageStyle from '../scss/image.scss';
|
||||||
import defaultImage from '../images/frigate-bird-in-sky.jpg'
|
import defaultImage from '../images/frigate-bird-in-sky.jpg'
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
import { CSSResultGroup, LitElement, TemplateResult, html, unsafeCSS } from 'lit';
|
import { CSSResultGroup, LitElement, TemplateResult, html, unsafeCSS } from 'lit';
|
||||||
import { customElement, property } from 'lit/decorators';
|
import { customElement, property } from 'lit/decorators.js';
|
||||||
import { until } from 'lit/directives/until.js';
|
import { until } from 'lit/directives/until.js';
|
||||||
import { HomeAssistant } from 'custom-card-helpers';
|
import { HomeAssistant } from 'custom-card-helpers';
|
||||||
|
|
||||||
import { signedPathSchema } from '../types';
|
import { signedPathSchema } from '../types.js';
|
||||||
import type { ExtendedHomeAssistant, FrigateCardConfig } from '../types';
|
import type { ExtendedHomeAssistant, FrigateCardConfig } from '../types.js';
|
||||||
|
|
||||||
import { localize } from '../localize/localize';
|
import { localize } from '../localize/localize.js';
|
||||||
import {
|
import {
|
||||||
dispatchErrorMessageEvent,
|
dispatchErrorMessageEvent,
|
||||||
dispatchMediaLoadEvent,
|
dispatchMediaLoadEvent,
|
||||||
@@ -14,8 +14,8 @@ import {
|
|||||||
dispatchPauseEvent,
|
dispatchPauseEvent,
|
||||||
dispatchPlayEvent,
|
dispatchPlayEvent,
|
||||||
homeAssistantWSRequest,
|
homeAssistantWSRequest,
|
||||||
} from '../common';
|
} from '../common.js';
|
||||||
import { renderProgressIndicator } from '../components/message';
|
import { renderProgressIndicator } from '../components/message.js';
|
||||||
|
|
||||||
import JSMpeg from '@cycjimmy/jsmpeg-player';
|
import JSMpeg from '@cycjimmy/jsmpeg-player';
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,17 @@
|
|||||||
|
import { HassEntity } from 'home-assistant-js-websocket';
|
||||||
import { HomeAssistant, hasAction, stateIcon } from 'custom-card-helpers';
|
import { HomeAssistant, hasAction, stateIcon } from 'custom-card-helpers';
|
||||||
import { CSSResultGroup, LitElement, TemplateResult, html, unsafeCSS, PropertyValues } from 'lit';
|
import { CSSResultGroup, LitElement, TemplateResult, html, unsafeCSS, PropertyValues } from 'lit';
|
||||||
import { actionHandler } from '../action-handler-directive';
|
import { customElement, property } from 'lit/decorators.js';
|
||||||
import { customElement, property } from 'lit/decorators';
|
|
||||||
import { classMap } from 'lit/directives/class-map.js';
|
import { classMap } from 'lit/directives/class-map.js';
|
||||||
import { styleMap } from 'lit/directives/style-map.js';
|
import { styleMap } from 'lit/directives/style-map.js';
|
||||||
import { MenuButton } from '../types';
|
|
||||||
import type { ExtendedHomeAssistant, FrigateMenuMode } from '../types';
|
import { actionHandler } from '../action-handler-directive.js';
|
||||||
|
|
||||||
|
import type { ExtendedHomeAssistant, FrigateMenuMode } from '../types.js';
|
||||||
|
import { MenuButton } from '../types.js';
|
||||||
|
import { shouldUpdateBasedOnHass } from '../common.js';
|
||||||
|
|
||||||
import menuStyle from '../scss/menu.scss';
|
import menuStyle from '../scss/menu.scss';
|
||||||
import { HassEntity } from 'home-assistant-js-websocket';
|
|
||||||
import { shouldUpdateBasedOnHass } from '../common';
|
|
||||||
|
|
||||||
type FrigateCardMenuCallback = (name: string, button: MenuButton) => void;
|
type FrigateCardMenuCallback = (name: string, button: MenuButton) => void;
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { CSSResultGroup, LitElement, TemplateResult, html, unsafeCSS } from 'lit';
|
import { CSSResultGroup, LitElement, TemplateResult, html, unsafeCSS } from 'lit';
|
||||||
import { customElement, property } from 'lit/decorators';
|
import { customElement, property } from 'lit/decorators.js';
|
||||||
|
|
||||||
import { Message } from '../types';
|
import { Message } from '../types.js';
|
||||||
import { TROUBLESHOOTING_URL } from '../const';
|
import { TROUBLESHOOTING_URL } from '../const.js';
|
||||||
import { localize } from '../localize/localize';
|
import { localize } from '../localize/localize.js';
|
||||||
|
|
||||||
import messageStyle from '../scss/message.scss';
|
import messageStyle from '../scss/message.scss';
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { CSSResultGroup, LitElement, TemplateResult, html, unsafeCSS } from 'lit';
|
import { CSSResultGroup, LitElement, TemplateResult, html, unsafeCSS } from 'lit';
|
||||||
import { customElement, property } from 'lit/decorators';
|
import { customElement, property } from 'lit/decorators.js';
|
||||||
import { classMap } from 'lit/directives/class-map';
|
import { classMap } from 'lit/directives/class-map.js';
|
||||||
|
|
||||||
import { BrowseMediaSource, NextPreviousControlStyle } from '../types';
|
import { BrowseMediaSource, NextPreviousControlStyle } from '../types.js';
|
||||||
|
|
||||||
import { View } from '../view';
|
import { View } from '../view.js';
|
||||||
|
|
||||||
import controlStyle from '../scss/next-previous-control.scss';
|
import controlStyle from '../scss/next-previous-control.scss';
|
||||||
|
|
||||||
|
|||||||
+10
-10
@@ -1,12 +1,12 @@
|
|||||||
import { CSSResultGroup, LitElement, TemplateResult, html, unsafeCSS } from 'lit';
|
import { CSSResultGroup, LitElement, TemplateResult, html, unsafeCSS } from 'lit';
|
||||||
import { customElement, property } from 'lit/decorators';
|
import { customElement, property } from 'lit/decorators.js';
|
||||||
import { until } from 'lit/directives/until.js';
|
import { until } from 'lit/directives/until.js';
|
||||||
import { HomeAssistant } from 'custom-card-helpers';
|
import { HomeAssistant } from 'custom-card-helpers';
|
||||||
|
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import dayjs_custom_parse_format from 'dayjs/plugin/customParseFormat';
|
import dayjs_custom_parse_format from 'dayjs/plugin/customParseFormat.js';
|
||||||
|
|
||||||
import { resolvedMediaSchema } from '../types';
|
import { resolvedMediaSchema } from '../types.js';
|
||||||
import type {
|
import type {
|
||||||
BrowseMediaNeighbors,
|
BrowseMediaNeighbors,
|
||||||
BrowseMediaQueryParameters,
|
BrowseMediaQueryParameters,
|
||||||
@@ -14,8 +14,8 @@ import type {
|
|||||||
ExtendedHomeAssistant,
|
ExtendedHomeAssistant,
|
||||||
NextPreviousControlStyle,
|
NextPreviousControlStyle,
|
||||||
ResolvedMedia,
|
ResolvedMedia,
|
||||||
} from '../types';
|
} from '../types.js';
|
||||||
import { localize } from '../localize/localize';
|
import { localize } from '../localize/localize.js';
|
||||||
import {
|
import {
|
||||||
browseMediaQuery,
|
browseMediaQuery,
|
||||||
dispatchErrorMessageEvent,
|
dispatchErrorMessageEvent,
|
||||||
@@ -25,14 +25,14 @@ import {
|
|||||||
dispatchPlayEvent,
|
dispatchPlayEvent,
|
||||||
getFirstTrueMediaChildIndex,
|
getFirstTrueMediaChildIndex,
|
||||||
homeAssistantWSRequest,
|
homeAssistantWSRequest,
|
||||||
} from '../common';
|
} from '../common.js';
|
||||||
|
|
||||||
import { View } from '../view';
|
import { View } from '../view.js';
|
||||||
import {
|
import {
|
||||||
renderProgressIndicator,
|
renderProgressIndicator,
|
||||||
} from '../components/message';
|
} from '../components/message.js';
|
||||||
|
|
||||||
import './next-prev-control';
|
import './next-prev-control.js';
|
||||||
|
|
||||||
import viewerStyle from '../scss/viewer.scss';
|
import viewerStyle from '../scss/viewer.scss';
|
||||||
|
|
||||||
@@ -147,7 +147,7 @@ export class FrigateCardViewer extends LitElement {
|
|||||||
return clipsAtSameTime.children[index];
|
return clipsAtSameTime.children[index];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e: any) {
|
} catch (e) {
|
||||||
// Pass. This is best effort.
|
// Pass. This is best effort.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -1,10 +1,10 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||||
import { CSSResultGroup, LitElement, TemplateResult, html, unsafeCSS } from 'lit';
|
import { CSSResultGroup, LitElement, TemplateResult, html, unsafeCSS } from 'lit';
|
||||||
import { customElement, property, state } from 'lit/decorators';
|
import { customElement, property, state } from 'lit/decorators.js';
|
||||||
|
|
||||||
import { HomeAssistant, LovelaceCardEditor, fireEvent } from 'custom-card-helpers';
|
import { HomeAssistant, LovelaceCardEditor, fireEvent } from 'custom-card-helpers';
|
||||||
import { localize } from './localize/localize';
|
import { localize } from './localize/localize.js';
|
||||||
import type { FrigateCardConfig } from './types';
|
import type { FrigateCardConfig } from './types.js';
|
||||||
|
|
||||||
import frigate_card_editor_style from './scss/editor.scss';
|
import frigate_card_editor_style from './scss/editor.scss';
|
||||||
|
|
||||||
|
|||||||
@@ -10,8 +10,8 @@
|
|||||||
// ====================================================================
|
// ====================================================================
|
||||||
|
|
||||||
import { TemplateResult, html } from 'lit';
|
import { TemplateResult, html } from 'lit';
|
||||||
import { customElement } from 'lit/decorators';
|
import { customElement } from 'lit/decorators.js';
|
||||||
import { dispatchMediaLoadEvent } from '../common';
|
import { dispatchMediaLoadEvent } from '../common.js';
|
||||||
|
|
||||||
customElements.whenDefined('ha-camera-stream').then(() => {
|
customElements.whenDefined('ha-camera-stream').then(() => {
|
||||||
// ========================================================================================
|
// ========================================================================================
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ import {
|
|||||||
TemplateResult,
|
TemplateResult,
|
||||||
html,
|
html,
|
||||||
} from 'lit';
|
} from 'lit';
|
||||||
import { customElement } from 'lit/decorators';
|
import { customElement } from 'lit/decorators.js';
|
||||||
import { dispatchMediaLoadEvent, dispatchPauseEvent, dispatchPlayEvent } from '../common';
|
import { dispatchMediaLoadEvent, dispatchPauseEvent, dispatchPlayEvent } from '../common.js';
|
||||||
|
|
||||||
customElements.whenDefined("ha-hls-player").then(() => {
|
customElements.whenDefined("ha-hls-player").then(() => {
|
||||||
@customElement("frigate-card-ha-hls-player")
|
@customElement("frigate-card-ha-hls-player")
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import type { BrowseMediaSource, FrigateCardView } from './types';
|
import type { BrowseMediaSource, FrigateCardView } from './types.js';
|
||||||
|
|
||||||
export interface ViewParameters {
|
export interface ViewParameters {
|
||||||
view?: FrigateCardView;
|
view?: FrigateCardView;
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "es2017",
|
"target": "es2017",
|
||||||
"module": "esnext",
|
"module": "es2020",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"lib": [
|
"lib": [
|
||||||
"es2017",
|
"es2017",
|
||||||
|
|||||||
Reference in New Issue
Block a user