Initial common.js refactor.
This commit is contained in:
@@ -9,12 +9,11 @@
|
||||
// available as compilation time.
|
||||
// ====================================================================
|
||||
|
||||
import { TemplateResult, css, html } from 'lit';
|
||||
import { css, html, TemplateResult } from 'lit';
|
||||
import { customElement } from 'lit/decorators.js';
|
||||
import { query } from 'lit/decorators/query.js';
|
||||
|
||||
import { FrigateCardMediaPlayer } from '../types.js';
|
||||
import { dispatchMediaShowEvent } from '../common.js';
|
||||
import { dispatchMediaShowEvent } from '../utils/media-info.js';
|
||||
|
||||
customElements.whenDefined('ha-camera-stream').then(() => {
|
||||
// ========================================================================================
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
// available as compilation time.
|
||||
// ====================================================================
|
||||
|
||||
import { TemplateResult, css, html } from 'lit';
|
||||
import { css, html, TemplateResult } from 'lit';
|
||||
import { customElement } from 'lit/decorators.js';
|
||||
import { query } from 'lit/decorators/query.js';
|
||||
|
||||
import { dispatchErrorMessageEvent, dispatchMediaShowEvent } from '../common.js';
|
||||
import { dispatchErrorMessageEvent } from '../components/message.js';
|
||||
import { dispatchMediaShowEvent } from '../utils/media-info.js';
|
||||
|
||||
customElements.whenDefined('ha-hls-player').then(() => {
|
||||
@customElement('frigate-card-ha-hls-player')
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
// available as compilation time.
|
||||
// ====================================================================
|
||||
|
||||
import { TemplateResult, html } from 'lit';
|
||||
import { html, TemplateResult } from 'lit';
|
||||
import { customElement } from 'lit/decorators.js';
|
||||
import { query } from 'lit/decorators/query.js';
|
||||
|
||||
import { dispatchErrorMessageEvent, dispatchMediaShowEvent } from '../common.js';
|
||||
import { dispatchErrorMessageEvent } from '../components/message.js';
|
||||
import { dispatchMediaShowEvent } from '../utils/media-info.js';
|
||||
|
||||
customElements.whenDefined('ha-web-rtc-player').then(() => {
|
||||
@customElement('frigate-card-ha-web-rtc-player')
|
||||
|
||||
Reference in New Issue
Block a user