mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-27 10:38:21 +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 = {
|
const detect: SectionConfigOverrides = {
|
||||||
base: {
|
base: {
|
||||||
sectionDocs: "/configuration/camera_specific",
|
sectionDocs: "/configuration/camera_specific",
|
||||||
restartRequired: [],
|
restartRequired: [
|
||||||
// use the grid for field order
|
"width",
|
||||||
// fieldOrder: [
|
"height",
|
||||||
// "enabled",
|
"fps",
|
||||||
// "width",
|
"min_initialized",
|
||||||
// "height",
|
"max_disappeared",
|
||||||
// "fps",
|
"stationary",
|
||||||
// "min_initialized",
|
],
|
||||||
// "max_disappeared",
|
|
||||||
// "annotation_offset",
|
|
||||||
// "stationary",
|
|
||||||
// ],
|
|
||||||
fieldGroups: {
|
fieldGroups: {
|
||||||
resolution: ["width", "height", "fps"],
|
resolution: ["width", "height", "fps"],
|
||||||
tracking: ["min_initialized", "max_disappeared"],
|
tracking: ["min_initialized", "max_disappeared"],
|
||||||
@ -41,8 +37,8 @@ const detect: SectionConfigOverrides = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ui:row": [
|
"ui:row": [
|
||||||
{ min_initialized: { "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-6" } },
|
{ 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"],
|
hiddenFields: ["enabled_in_config"],
|
||||||
advancedFields: [],
|
advancedFields: [],
|
||||||
},
|
},
|
||||||
|
camera: {
|
||||||
|
hiddenFields: ["enabled_in_config", "email"],
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default notifications;
|
export default notifications;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user