NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Handle middle mouse button clicks (#13678)
Nicolas Mowen22ee6bb13726
diff --git a/web/src/components/card/AnimatedEventCard.tsx b/web/src/components/card/AnimatedEventCard.tsxindex f185735421..1228ebd05e 100644--- a/web/src/components/card/AnimatedEventCard.tsx+++ b/web/src/components/card/AnimatedEventCard.tsx@@ -131,6 +131,11 @@ export function AnimatedEventCard({<divclassName="size-full cursor-pointer overflow-hidden rounded md:rounded-lg"onClick={onOpenReview}+ onAuxClick={() =>+ window+ .open(`${baseUrl}review?id=${event.id}`, "_blank")+ ?.focus()+ }>{!alertVideos ? (<imgdiff --git a/web/src/components/player/LivePlayer.tsx b/web/src/components/player/LivePlayer.tsxindex 79de3b5a22..ec24d255f7 100644--- a/web/src/components/player/LivePlayer.tsx+++ b/web/src/components/player/LivePlayer.tsx@@ -19,6 +19,7 @@ import { capitalizeFirstLetter } from "@/utils/stringUtil";import { cn } from "@/lib/utils";import { TbExclamationCircle } from "react-icons/tb";import { TooltipPortal } from "@radix-ui/react-tooltip";+import { baseUrl } from "@/api/baseUrl";type LivePlayerProps = {cameraRef?: (ref: HTMLDivElement | null) => void;@@ -224,6 +225,9 @@ export default function LivePlayer({className,)}onClick={onClick}+ onAuxClick={() =>+ window.open(`${baseUrl}#${cameraConfig.name}`, "_blank")?.focus()+ }>{((showStillWithoutActivity && !liveReady) || liveReady) && (<>diff --git a/web/src/components/player/PreviewThumbnailPlayer.tsx b/web/src/components/player/PreviewThumbnailPlayer.tsxindex 409618b86d..d20ad1ec75 100644--- a/web/src/components/player/PreviewThumbnailPlayer.tsx+++ b/web/src/components/player/PreviewThumbnailPlayer.tsx@@ -20,6 +20,7 @@ import { capitalizeFirstLetter } from "@/utils/stringUtil";import { cn } from "@/lib/utils";import { InProgressPreview, VideoPreview } from "../preview/ScrubbablePreview";import { Preview } from "@/types/preview";+import { baseUrl } from "@/api/baseUrl";type PreviewPlayerProps = {review: ReviewSegment;@@ -175,6 +176,9 @@ export default function PreviewThumbnailPlayer({onMouseOver={isMobile ? undefined : () => setIsHovered(true)}onMouseLeave={isMobile ? undefined : () => setIsHovered(false)}onClick={handleOnClick}+ onAuxClick={() =>+ window.open(`${baseUrl}review?id=${review.id}`, "_blank")?.focus()+ }{...swipeHandlers}>{playingBack && (