Add OSD and Payload configuration components with toggle functionality

This commit is contained in:
2025-12-18 13:38:27 +00:00
parent b79da7048e
commit b328d25bc7
8 changed files with 190 additions and 9 deletions

View File

@@ -88,7 +88,51 @@ export type OSDConfigFields = {
OSDTimestampFormat: "UTC" | "LOCAL";
};
export type FormTypes = BearerTypeFields & OptionalConstants & OptionalLaneIDs & CustomFields & OSDConfigFields;
export type PayloadConfigFields = {
includeMac: boolean;
includeSaFID: boolean;
includeCameraName: boolean;
includeCharHeight: boolean;
includeConfidence: boolean;
includeCorrectSpacing: boolean;
includeDecodeID: boolean;
includeDirection: boolean;
includeFrameHeight: boolean;
includeFrameID: boolean;
includeFrameTimeRef: boolean;
includeFrameWidth: boolean;
includeHorizSlew: boolean;
includeMotion: boolean;
inclduePlate: boolean;
includeNightModeAction: boolean;
includeOverview: boolean;
includePlateSecondary: boolean;
includePlateTrack: boolean;
includePlateTrackSecondary: boolean;
includePreferredCountry: boolean;
includeRawReads: boolean;
includeRawREADSSecondary: boolean;
includeRef: boolean;
includeSeenCount: boolean;
includeRepeatedPlate: boolean;
includeSerialCount: boolean;
includeTimeStamp: boolean;
includeTraceCount: boolean;
includeTrack: boolean;
includeTrackSecondary: boolean;
includeVertSlew: boolean;
includeVRM: boolean;
includeVRMSecondary: boolean;
includeHotListMatches: boolean;
};
export type FormTypes = BearerTypeFields &
OptionalConstants &
OptionalLaneIDs &
CustomFields &
OSDConfigFields &
PayloadConfigFields;
type FieldProperty = {
datatype: string;
value: string;