Strip debugging statements.
This commit is contained in:
@@ -78,8 +78,6 @@ export class FrigateCardThumbnail extends LitElement {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.info;
|
|
||||||
|
|
||||||
return html` <img
|
return html` <img
|
||||||
aria-label="${label ?? ''}"
|
aria-label="${label ?? ''}"
|
||||||
src="${thumbnail}"
|
src="${thumbnail}"
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// TODO: Search for TODOs and logging statements.
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
CSSResultGroup,
|
CSSResultGroup,
|
||||||
LitElement,
|
LitElement,
|
||||||
@@ -472,9 +470,6 @@ export class FrigateCardTimelineCore extends LitElement {
|
|||||||
if (!properties.byUser) {
|
if (!properties.byUser) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.info(
|
|
||||||
`Range changed: ${properties.start} -> ${properties.end} [${this._events.dataset.length}]`,
|
|
||||||
);
|
|
||||||
if (this.hass && this.cameras && this._timeline && this.timelineConfig) {
|
if (this.hass && this.cameras && this._timeline && this.timelineConfig) {
|
||||||
this._events
|
this._events
|
||||||
.fetchEventsIfNecessary(
|
.fetchEventsIfNecessary(
|
||||||
@@ -488,9 +483,8 @@ export class FrigateCardTimelineCore extends LitElement {
|
|||||||
.then(() => {
|
.then(() => {
|
||||||
if (this._timeline) {
|
if (this._timeline) {
|
||||||
const thumbnails = this._generateThumbnails();
|
const thumbnails = this._generateThumbnails();
|
||||||
// Update the view to reflect the new thumbnails and manually set
|
// Update the view to reflect the new thumbnails and the timeline
|
||||||
// timeline window.
|
// window in the context.
|
||||||
console.info('=========> Evolve view from Range');
|
|
||||||
this.view
|
this.view
|
||||||
?.evolve({
|
?.evolve({
|
||||||
target: thumbnails?.target ?? null,
|
target: thumbnails?.target ?? null,
|
||||||
@@ -519,7 +513,7 @@ export class FrigateCardTimelineCore extends LitElement {
|
|||||||
(child) => child.frigate?.event.id === data.items[0],
|
(child) => child.frigate?.event.id === data.items[0],
|
||||||
)
|
)
|
||||||
: null;
|
: null;
|
||||||
console.info('=========> Evolve view from select');
|
|
||||||
this.view
|
this.view
|
||||||
?.evolve({
|
?.evolve({
|
||||||
childIndex: childIndex,
|
childIndex: childIndex,
|
||||||
@@ -806,9 +800,6 @@ export class FrigateCardTimelineCore extends LitElement {
|
|||||||
const timelineWindow = this._timeline.getWindow();
|
const timelineWindow = this._timeline.getWindow();
|
||||||
|
|
||||||
if (context?.window) {
|
if (context?.window) {
|
||||||
console.info(
|
|
||||||
`Setting window from context (${context.window.start} -> ${context.window.end}`,
|
|
||||||
);
|
|
||||||
if (!isEqual(context.window, timelineWindow)) {
|
if (!isEqual(context.window, timelineWindow)) {
|
||||||
this._timeline.setWindow(context.window.start, context.window.end);
|
this._timeline.setWindow(context.window.start, context.window.end);
|
||||||
}
|
}
|
||||||
@@ -821,7 +812,6 @@ export class FrigateCardTimelineCore extends LitElement {
|
|||||||
eventStart > timelineWindow.end ||
|
eventStart > timelineWindow.end ||
|
||||||
(eventEnd && (eventEnd < timelineWindow.start || eventEnd > timelineWindow.end))
|
(eventEnd && (eventEnd < timelineWindow.start || eventEnd > timelineWindow.end))
|
||||||
) {
|
) {
|
||||||
console.info(`Setting window from event ${windowStart} -> ${windowEnd}`);
|
|
||||||
this._timeline.setWindow(windowStart, windowEnd);
|
this._timeline.setWindow(windowStart, windowEnd);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -835,7 +825,6 @@ export class FrigateCardTimelineCore extends LitElement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.info(`Setting window from live ${windowStart} -> ${windowEnd}`);
|
|
||||||
this._timeline.setWindow(windowStart, windowEnd);
|
this._timeline.setWindow(windowStart, windowEnd);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -850,8 +839,6 @@ export class FrigateCardTimelineCore extends LitElement {
|
|||||||
const currentContext = this.view.context as TimelineViewContext | null;
|
const currentContext = this.view.context as TimelineViewContext | null;
|
||||||
if (currentContext?.dateFetch !== this._events.lastFetchDate) {
|
if (currentContext?.dateFetch !== this._events.lastFetchDate) {
|
||||||
const thumbnails = this._generateThumbnails();
|
const thumbnails = this._generateThumbnails();
|
||||||
console.info('=========> Evolve view from thumbnails');
|
|
||||||
|
|
||||||
this.view
|
this.view
|
||||||
?.evolve({
|
?.evolve({
|
||||||
target: thumbnails?.target ?? null,
|
target: thumbnails?.target ?? null,
|
||||||
@@ -873,7 +860,6 @@ export class FrigateCardTimelineCore extends LitElement {
|
|||||||
if (this._events.lastFetchDate) {
|
if (this._events.lastFetchDate) {
|
||||||
newContext.dateFetch = this._events.lastFetchDate;
|
newContext.dateFetch = this._events.lastFetchDate;
|
||||||
}
|
}
|
||||||
console.info(`returning ${JSON.stringify(newContext)}`);
|
|
||||||
return newContext || null;
|
return newContext || null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -883,7 +869,6 @@ export class FrigateCardTimelineCore extends LitElement {
|
|||||||
*/
|
*/
|
||||||
protected updated(changedProperties: PropertyValues): void {
|
protected updated(changedProperties: PropertyValues): void {
|
||||||
super.updated(changedProperties);
|
super.updated(changedProperties);
|
||||||
console.info(changedProperties);
|
|
||||||
|
|
||||||
if (changedProperties.has('cameras')) {
|
if (changedProperties.has('cameras')) {
|
||||||
this._events.clear();
|
this._events.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user