Add live views to new webui (#8970)

* Add support for live views

* Lint fixes

* Fix width

* Fix lint

* Cleanup hooks
This commit is contained in:
Nicolas Mowen
2023-12-15 16:24:50 -07:00
committed by Blake Blackshear
parent fbe58652d5
commit e3387de48f
16 changed files with 1528 additions and 207 deletions

View File

@@ -1,6 +1,6 @@
import strftime from 'strftime';
import { fromUnixTime, intervalToDuration, formatDuration } from 'date-fns';
import { FrigateConfig, UiConfig } from "@/types/frigateConfig";
import { UiConfig } from "@/types/frigateConfig";
export const longToDate = (long: number): Date => new Date(long * 1000);
export const epochToLong = (date: number): number => date / 1000;
export const dateToLong = (date: Date): number => epochToLong(date.getTime());