mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-04 20:47:42 +03:00
Merge branch 'dev' of https://github.com/blakeblackshear/frigate into motion_improvements
This commit is contained in:
commit
d4946f19f5
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -42,7 +42,7 @@ jobs:
|
|||||||
tags: ${{ steps.setup.outputs.image-name }}-amd64
|
tags: ${{ steps.setup.outputs.image-name }}-amd64
|
||||||
cache-from: type=registry,ref=${{ steps.setup.outputs.cache-name }}-amd64
|
cache-from: type=registry,ref=${{ steps.setup.outputs.cache-name }}-amd64
|
||||||
arm64_build:
|
arm64_build:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04-arm
|
||||||
name: ARM Build
|
name: ARM Build
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
@ -107,7 +107,7 @@ jobs:
|
|||||||
*.cache-from=type=registry,ref=${{ steps.setup.outputs.cache-name }}-jp5
|
*.cache-from=type=registry,ref=${{ steps.setup.outputs.cache-name }}-jp5
|
||||||
*.cache-to=type=registry,ref=${{ steps.setup.outputs.cache-name }}-jp5,mode=max
|
*.cache-to=type=registry,ref=${{ steps.setup.outputs.cache-name }}-jp5,mode=max
|
||||||
jetson_jp6_build:
|
jetson_jp6_build:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04-arm
|
||||||
name: Jetson Jetpack 6
|
name: Jetson Jetpack 6
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
@ -177,7 +177,7 @@ jobs:
|
|||||||
rocm.tags=${{ steps.setup.outputs.image-name }}-rocm
|
rocm.tags=${{ steps.setup.outputs.image-name }}-rocm
|
||||||
*.cache-from=type=gha
|
*.cache-from=type=gha
|
||||||
arm64_extra_builds:
|
arm64_extra_builds:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04-arm
|
||||||
name: ARM Extra Build
|
name: ARM Extra Build
|
||||||
needs:
|
needs:
|
||||||
- arm64_build
|
- arm64_build
|
||||||
|
|||||||
@ -41,6 +41,7 @@ import { useOverlayState } from "@/hooks/use-overlay-state";
|
|||||||
import { DownloadVideoButton } from "@/components/button/DownloadVideoButton";
|
import { DownloadVideoButton } from "@/components/button/DownloadVideoButton";
|
||||||
import { TooltipPortal } from "@radix-ui/react-tooltip";
|
import { TooltipPortal } from "@radix-ui/react-tooltip";
|
||||||
import { LuSearch } from "react-icons/lu";
|
import { LuSearch } from "react-icons/lu";
|
||||||
|
import useKeyboardListener from "@/hooks/use-keyboard-listener";
|
||||||
|
|
||||||
type ReviewDetailDialogProps = {
|
type ReviewDetailDialogProps = {
|
||||||
review?: ReviewSegment;
|
review?: ReviewSegment;
|
||||||
@ -133,6 +134,14 @@ export default function ReviewDetailDialog({
|
|||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [review]);
|
}, [review]);
|
||||||
|
|
||||||
|
// keyboard listener
|
||||||
|
|
||||||
|
useKeyboardListener(["Esc"], (key, modifiers) => {
|
||||||
|
if (key == "Esc" && modifiers.down && !modifiers.repeat) {
|
||||||
|
setIsOpen(false);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
const Overlay = isDesktop ? Sheet : MobilePage;
|
const Overlay = isDesktop ? Sheet : MobilePage;
|
||||||
const Content = isDesktop ? SheetContent : MobilePageContent;
|
const Content = isDesktop ? SheetContent : MobilePageContent;
|
||||||
const Header = isDesktop ? SheetHeader : MobilePageHeader;
|
const Header = isDesktop ? SheetHeader : MobilePageHeader;
|
||||||
|
|||||||
@ -621,6 +621,16 @@ function DetectionReview({
|
|||||||
|
|
||||||
// existing review item
|
// existing review item
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (loading || currentItems == null || itemsToReview == undefined) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (currentItems.length == 0 && itemsToReview > 0) {
|
||||||
|
pullLatestData();
|
||||||
|
}
|
||||||
|
}, [loading, currentItems, itemsToReview, pullLatestData]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!startTime || !currentItems || currentItems.length == 0) {
|
if (!startTime || !currentItems || currentItems.length == 0) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user