From 90f1cc9f0a3bf4c65061262932fb6924bd16f838 Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Mon, 11 Apr 2022 20:39:49 -0700 Subject: [PATCH] Strip debugging statements. --- src/components/thumbnail.ts | 2 -- src/components/timeline.ts | 21 +++------------------ 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/src/components/thumbnail.ts b/src/components/thumbnail.ts index a67d96ff..346a24d5 100644 --- a/src/components/thumbnail.ts +++ b/src/components/thumbnail.ts @@ -78,8 +78,6 @@ export class FrigateCardThumbnail extends LitElement { return; } - console.info; - return html` ${properties.end} [${this._events.dataset.length}]`, - ); if (this.hass && this.cameras && this._timeline && this.timelineConfig) { this._events .fetchEventsIfNecessary( @@ -488,9 +483,8 @@ export class FrigateCardTimelineCore extends LitElement { .then(() => { if (this._timeline) { const thumbnails = this._generateThumbnails(); - // Update the view to reflect the new thumbnails and manually set - // timeline window. - console.info('=========> Evolve view from Range'); + // Update the view to reflect the new thumbnails and the timeline + // window in the context. this.view ?.evolve({ target: thumbnails?.target ?? null, @@ -519,7 +513,7 @@ export class FrigateCardTimelineCore extends LitElement { (child) => child.frigate?.event.id === data.items[0], ) : null; - console.info('=========> Evolve view from select'); + this.view ?.evolve({ childIndex: childIndex, @@ -806,9 +800,6 @@ export class FrigateCardTimelineCore extends LitElement { const timelineWindow = this._timeline.getWindow(); if (context?.window) { - console.info( - `Setting window from context (${context.window.start} -> ${context.window.end}`, - ); if (!isEqual(context.window, timelineWindow)) { this._timeline.setWindow(context.window.start, context.window.end); } @@ -821,7 +812,6 @@ export class FrigateCardTimelineCore extends LitElement { eventStart > timelineWindow.end || (eventEnd && (eventEnd < timelineWindow.start || eventEnd > timelineWindow.end)) ) { - console.info(`Setting window from event ${windowStart} -> ${windowEnd}`); this._timeline.setWindow(windowStart, windowEnd); } @@ -835,7 +825,6 @@ export class FrigateCardTimelineCore extends LitElement { } } } else { - console.info(`Setting window from live ${windowStart} -> ${windowEnd}`); this._timeline.setWindow(windowStart, windowEnd); } @@ -850,8 +839,6 @@ export class FrigateCardTimelineCore extends LitElement { const currentContext = this.view.context as TimelineViewContext | null; if (currentContext?.dateFetch !== this._events.lastFetchDate) { const thumbnails = this._generateThumbnails(); - console.info('=========> Evolve view from thumbnails'); - this.view ?.evolve({ target: thumbnails?.target ?? null, @@ -873,7 +860,6 @@ export class FrigateCardTimelineCore extends LitElement { if (this._events.lastFetchDate) { newContext.dateFetch = this._events.lastFetchDate; } - console.info(`returning ${JSON.stringify(newContext)}`); return newContext || null; } @@ -883,7 +869,6 @@ export class FrigateCardTimelineCore extends LitElement { */ protected updated(changedProperties: PropertyValues): void { super.updated(changedProperties); - console.info(changedProperties); if (changedProperties.has('cameras')) { this._events.clear();