mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-10 02:29:19 +03:00
* add optional field widget adds a switch to enable nullable fields like skip_motion_threshold * config field updates add skip_motion_threshold optional switch add fps back to detect restart required * don't use ternary operator when displaying motion previews the main previews were being unnecessarily unmounted * lazy mount motion preview clips to reduce DOM overhead
53 lines
1.0 KiB
TypeScript
53 lines
1.0 KiB
TypeScript
import type { SectionConfigOverrides } from "./types";
|
|
|
|
const detect: SectionConfigOverrides = {
|
|
base: {
|
|
sectionDocs: "/configuration/camera_specific",
|
|
fieldOrder: [
|
|
"enabled",
|
|
"width",
|
|
"height",
|
|
"fps",
|
|
"min_initialized",
|
|
"max_disappeared",
|
|
"annotation_offset",
|
|
"stationary",
|
|
"interval",
|
|
"threshold",
|
|
"max_frames",
|
|
],
|
|
restartRequired: [],
|
|
fieldGroups: {
|
|
resolution: ["enabled", "width", "height", "fps"],
|
|
tracking: ["min_initialized", "max_disappeared"],
|
|
},
|
|
hiddenFields: ["enabled_in_config"],
|
|
advancedFields: [
|
|
"min_initialized",
|
|
"max_disappeared",
|
|
"annotation_offset",
|
|
"stationary",
|
|
],
|
|
},
|
|
global: {
|
|
restartRequired: [
|
|
"fps",
|
|
"width",
|
|
"height",
|
|
"min_initialized",
|
|
"max_disappeared",
|
|
],
|
|
},
|
|
camera: {
|
|
restartRequired: [
|
|
"fps",
|
|
"width",
|
|
"height",
|
|
"min_initialized",
|
|
"max_disappeared",
|
|
],
|
|
},
|
|
};
|
|
|
|
export default detect;
|