mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-15 08:21:16 +03:00
previously, groups were always rendered first. now fieldOrder is respected, and any fields in a group will cause the group and all the fields in that group to be rendered in order. this allows moving the enabled switches to the top of the section
60 lines
1.4 KiB
TypeScript
60 lines
1.4 KiB
TypeScript
import type { SectionConfigOverrides } from "./types";
|
|
|
|
const lpr: SectionConfigOverrides = {
|
|
base: {
|
|
sectionDocs: "/configuration/license_plate_recognition",
|
|
fieldDocs: {
|
|
enhancement: "/configuration/license_plate_recognition#enhancement",
|
|
},
|
|
restartRequired: [],
|
|
fieldOrder: ["enabled", "min_area", "enhancement", "expire_time"],
|
|
hiddenFields: [],
|
|
advancedFields: ["expire_time", "enhancement"],
|
|
overrideFields: ["enabled", "min_area", "enhancement"],
|
|
},
|
|
global: {
|
|
fieldOrder: [
|
|
"enabled",
|
|
"model_size",
|
|
"detection_threshold",
|
|
"min_area",
|
|
"recognition_threshold",
|
|
"min_plate_length",
|
|
"format",
|
|
"match_distance",
|
|
"known_plates",
|
|
"enhancement",
|
|
"debug_save_plates",
|
|
"device",
|
|
"replace_rules",
|
|
],
|
|
advancedFields: [
|
|
"detection_threshold",
|
|
"recognition_threshold",
|
|
"min_plate_length",
|
|
"format",
|
|
"match_distance",
|
|
"known_plates",
|
|
"enhancement",
|
|
"debug_save_plates",
|
|
"device",
|
|
"replace_rules",
|
|
],
|
|
restartRequired: ["model_size", "enhancement", "device"],
|
|
uiSchema: {
|
|
format: {
|
|
"ui:options": { size: "md" },
|
|
},
|
|
replace_rules: {
|
|
"ui:field": "ReplaceRulesField",
|
|
"ui:options": {
|
|
label: false,
|
|
suppressDescription: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
export default lpr;
|