mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 19:55:26 +03:00
Cleanup text
This commit is contained in:
parent
c7e76363df
commit
0d707acf05
@ -39,12 +39,12 @@ export default function ReviewCard({ allPreviews, timeline }: ReviewCardProps) {
|
|||||||
<HiOutlineVideoCamera className="h-5 w-5 mr-2 inline" />
|
<HiOutlineVideoCamera className="h-5 w-5 mr-2 inline" />
|
||||||
{timeline.camera.replaceAll('_', ' ')}
|
{timeline.camera.replaceAll('_', ' ')}
|
||||||
</div>
|
</div>
|
||||||
<Heading as="h4" className="my-2">
|
<div className="my-2 text-sm font-medium">
|
||||||
Activity:
|
Activity:
|
||||||
</Heading>
|
</div>
|
||||||
{Object.entries(timeline.entries).map(([_, entry]) => {
|
{Object.entries(timeline.entries).map(([_, entry]) => {
|
||||||
return (
|
return (
|
||||||
<div key={entry.timestamp} className="flex text-xs my-1">
|
<div key={entry.timestamp} className="flex text-xs capitalize my-1 items-center">
|
||||||
{getTimelineIcon(entry)}
|
{getTimelineIcon(entry)}
|
||||||
{getTimelineItemDescription(entry)}
|
{getTimelineItemDescription(entry)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -11,7 +11,7 @@ export function Review() {
|
|||||||
const { data: config } = useSWR<FrigateConfig>("config");
|
const { data: config } = useSWR<FrigateConfig>("config");
|
||||||
const timezone = useMemo(() => config?.ui?.timezone || Intl.DateTimeFormat().resolvedOptions().timeZone, [config]);
|
const timezone = useMemo(() => config?.ui?.timezone || Intl.DateTimeFormat().resolvedOptions().timeZone, [config]);
|
||||||
const { data: hourlyTimeline } = useSWR<HourlyTimeline>(['timeline/hourly', { timezone }]);
|
const { data: hourlyTimeline } = useSWR<HourlyTimeline>(['timeline/hourly', { timezone }]);
|
||||||
const { data: allPreviews } = useSWR<Preview[]>(`preview/all/start/${hourlyTimeline?.start}/end/${hourlyTimeline?.end}`, { revalidateOnFocus: false });
|
const { data: allPreviews } = useSWR<Preview[]>(`preview/all/start/${hourlyTimeline?.start || 0}/end/${hourlyTimeline?.end || 0}`, { revalidateOnFocus: false });
|
||||||
|
|
||||||
const [detailLevel, setDetailLevel] = useState<'normal' | 'extra' | 'full'>('normal');
|
const [detailLevel, setDetailLevel] = useState<'normal' | 'extra' | 'full'>('normal');
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user