forked from Github/frigate
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:
committed by
Blake Blackshear
parent
fbe58652d5
commit
e3387de48f
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user