mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-11 13:45:25 +03:00
Formatting
This commit is contained in:
parent
a43344a5af
commit
1f4b306285
@ -740,15 +740,12 @@ class CameraState:
|
|||||||
if not obj.false_positive:
|
if not obj.false_positive:
|
||||||
label = object_type
|
label = object_type
|
||||||
|
|
||||||
if (
|
if obj.obj_data.get("sub_label"):
|
||||||
obj.obj_data.get("sub_label")
|
|
||||||
):
|
|
||||||
if obj.obj_data.get("sub_label")[0] in ALL_ATTRIBUTE_LABELS:
|
if obj.obj_data.get("sub_label")[0] in ALL_ATTRIBUTE_LABELS:
|
||||||
label = obj.obj_data["sub_label"][0]
|
label = obj.obj_data["sub_label"][0]
|
||||||
else:
|
else:
|
||||||
label = f"{object_type}-verified"
|
label = f"{object_type}-verified"
|
||||||
|
|
||||||
|
|
||||||
camera_activity["objects"].append(
|
camera_activity["objects"].append(
|
||||||
{"id": obj.obj_data["id"], "label": label, "stationary": not active}
|
{"id": obj.obj_data["id"], "label": label, "stationary": not active}
|
||||||
)
|
)
|
||||||
|
|||||||
@ -29,6 +29,7 @@ export function useCameraActivity(
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (updatedCameraState) {
|
if (updatedCameraState) {
|
||||||
|
console.log(`the initial objects are ${JSON.stringify(updatedCameraState.objects)}`)
|
||||||
setObjects(updatedCameraState.objects);
|
setObjects(updatedCameraState.objects);
|
||||||
}
|
}
|
||||||
}, [updatedCameraState]);
|
}, [updatedCameraState]);
|
||||||
|
|||||||
@ -35,6 +35,7 @@ export function getIconForGroup(icon: string, className: string = "size-4") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getIconForLabel(label: string, className?: string) {
|
export function getIconForLabel(label: string, className?: string) {
|
||||||
|
console.log(`the label is ${label}`)
|
||||||
if (label.endsWith("-verified")) {
|
if (label.endsWith("-verified")) {
|
||||||
return getVerifiedIcon(label, className);
|
return getVerifiedIcon(label, className);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -12,24 +12,24 @@ export default defineConfig({
|
|||||||
server: {
|
server: {
|
||||||
proxy: {
|
proxy: {
|
||||||
"/api": {
|
"/api": {
|
||||||
target: "http://localhost:5000",
|
target: "http://192.168.50.106:5000",
|
||||||
ws: true,
|
ws: true,
|
||||||
},
|
},
|
||||||
"/vod": {
|
"/vod": {
|
||||||
target: "http://localhost:5000",
|
target: "http://192.168.50.106:5000",
|
||||||
},
|
},
|
||||||
"/clips": {
|
"/clips": {
|
||||||
target: "http://localhost:5000",
|
target: "http://192.168.50.106:5000",
|
||||||
},
|
},
|
||||||
"/exports": {
|
"/exports": {
|
||||||
target: "http://localhost:5000",
|
target: "http://192.168.50.106:5000",
|
||||||
},
|
},
|
||||||
"/ws": {
|
"/ws": {
|
||||||
target: "ws://localhost:5000",
|
target: "ws://192.168.50.106:5000",
|
||||||
ws: true,
|
ws: true,
|
||||||
},
|
},
|
||||||
"/live": {
|
"/live": {
|
||||||
target: "ws://localhost:5000",
|
target: "ws://192.168.50.106:5000",
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
ws: true,
|
ws: true,
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user