mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-10 10:33:11 +03:00
section tweaks
This commit is contained in:
parent
2c2ae970cd
commit
6836a9a291
@ -3,18 +3,14 @@ import type { SectionConfigOverrides } from "./types";
|
||||
const detect: SectionConfigOverrides = {
|
||||
base: {
|
||||
sectionDocs: "/configuration/camera_specific",
|
||||
restartRequired: [],
|
||||
// use the grid for field order
|
||||
// fieldOrder: [
|
||||
// "enabled",
|
||||
// "width",
|
||||
// "height",
|
||||
// "fps",
|
||||
// "min_initialized",
|
||||
// "max_disappeared",
|
||||
// "annotation_offset",
|
||||
// "stationary",
|
||||
// ],
|
||||
restartRequired: [
|
||||
"width",
|
||||
"height",
|
||||
"fps",
|
||||
"min_initialized",
|
||||
"max_disappeared",
|
||||
"stationary",
|
||||
],
|
||||
fieldGroups: {
|
||||
resolution: ["width", "height", "fps"],
|
||||
tracking: ["min_initialized", "max_disappeared"],
|
||||
@ -41,8 +37,8 @@ const detect: SectionConfigOverrides = {
|
||||
},
|
||||
{
|
||||
"ui:row": [
|
||||
{ min_initialized: { "ui:col": "col-span-12 md:col-span-6" } },
|
||||
{ max_disappeared: { "ui:col": "col-span-12 md:col-span-6" } },
|
||||
{ min_initialized: { "ui:col": "col-span-12 md:col-span-3" } },
|
||||
{ max_disappeared: { "ui:col": "col-span-12 md:col-span-3" } },
|
||||
],
|
||||
},
|
||||
{
|
||||
@ -51,9 +47,20 @@ const detect: SectionConfigOverrides = {
|
||||
],
|
||||
},
|
||||
{
|
||||
"ui:row": [{ stationary: { "ui:col": "col-span-12 md:col-span-6" } }],
|
||||
"ui:row": [{ stationary: { "ui:col": "col-span-12" } }],
|
||||
},
|
||||
],
|
||||
stationary: {
|
||||
"ui:field": "LayoutGridField",
|
||||
"ui:layoutGrid": [
|
||||
{
|
||||
"ui:row": [
|
||||
{ interval: { "ui:col": "col-span-12 md:col-span-3" } },
|
||||
{ threshold: { "ui:col": "col-span-12 md:col-span-3" } },
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@ -9,6 +9,9 @@ const notifications: SectionConfigOverrides = {
|
||||
hiddenFields: ["enabled_in_config"],
|
||||
advancedFields: [],
|
||||
},
|
||||
camera: {
|
||||
hiddenFields: ["enabled_in_config", "email"],
|
||||
},
|
||||
};
|
||||
|
||||
export default notifications;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user