got to a good point with sighting modal, want to do cleanup

This commit is contained in:
2025-09-16 11:07:35 +01:00
parent c414342515
commit c506c395e6
25 changed files with 490 additions and 141 deletions

View File

@@ -27,6 +27,7 @@ export type SightingType = {
overviewSize: string;
radarSpeed: string;
trackSpeed: string;
metadata?: Metadata;
};
export type CameraSettingValues = {
@@ -34,7 +35,7 @@ export type CameraSettingValues = {
cameraAddress: string;
userName: string;
password: string;
id: number;
id: number | string;
};
export type CameraSettingErrorValues = Partial<
@@ -176,3 +177,85 @@ export type SystemValuesErrors = {
timeZone?: string | undefined;
softwareUpdate?: File | null;
};
export type AlertState = {
alertList: SightingType[];
allAlerts: SightingType[];
};
export type AlertPayload = {
payload: SightingType | string;
type: string;
};
export type ActionType = {
payload: SightingType | string;
type: string;
};
export type CameraConfig = {
id: string;
configHash: string;
propURI: {
value: string;
datatype: "java.lang.String";
};
propMonochrome: {
value: string; // "true" or "false" as string
datatype: "boolean";
};
propControlProtocol: {
value: "NONE" | "VISCA_KTNC" | "VISCA_WONWOO" | "DUMMY";
datatype: "mav.cameracontrol.CameraController$CameraControlProtocol";
accepted: "[NONE, VISCA_KTNC, VISCA_WONWOO, DUMMY]";
};
propAllowControlProtocolInference: {
value: string;
datatype: "boolean";
};
propCameraControlDeviceURI: {
value: string;
datatype: "java.lang.String";
};
propCameraControllerBaudRate: {
value: string; // "115200" as string
datatype: "int";
};
propLEDControllerType: {
value: "None" | "Serial" | "I2C";
datatype: "mav.flexi.modules.originators.video.LEDController$InterfaceType";
accepted: "[None, Serial, I2C]";
};
propLEDDriverControlURI: {
value: string;
datatype: "java.lang.String";
};
propSourceIdentifier: {
value: string;
datatype: "java.lang.String";
};
propI2CLEDDriverSafeHex: {
value: string;
datatype: "java.lang.String";
};
propI2CLEDDriverLowHex: {
value: string;
datatype: "java.lang.String";
};
propI2CLEDDriverMidHex: {
value: string;
datatype: "java.lang.String";
};
propI2CLEDDriverHighHex: {
value: string;
datatype: "java.lang.String";
};
propRecordCameraControllerLogs: {
value: string;
datatype: "boolean";
};
propVideoFeedWatchdogEnabled: {
value: string;
datatype: "boolean";
};
};