97 lines
2.1 KiB
TypeScript
97 lines
2.1 KiB
TypeScript
import {
|
|
BotState,
|
|
ControlPanelState,
|
|
SaveFarmwareEnv,
|
|
ShouldDisplay,
|
|
SourceFbosConfig,
|
|
UserEnv,
|
|
} from "../../interfaces";
|
|
import {
|
|
Alert,
|
|
InformationalSettings,
|
|
TaggedDevice,
|
|
} from "farmbot";
|
|
import { TimeSettings } from "../../../interfaces";
|
|
|
|
export interface AutoSyncRowProps {
|
|
dispatch: Function;
|
|
sourceFbosConfig: SourceFbosConfig;
|
|
}
|
|
|
|
export interface AutoUpdateRowProps {
|
|
dispatch: Function;
|
|
sourceFbosConfig: SourceFbosConfig;
|
|
}
|
|
|
|
export interface OtaTimeSelectorRowProps {
|
|
dispatch: Function;
|
|
sourceFbosConfig: SourceFbosConfig;
|
|
device: TaggedDevice;
|
|
timeSettings: TimeSettings;
|
|
}
|
|
|
|
export interface CameraSelectionProps {
|
|
env: UserEnv;
|
|
botOnline: boolean;
|
|
saveFarmwareEnv: SaveFarmwareEnv;
|
|
shouldDisplay: ShouldDisplay;
|
|
dispatch: Function;
|
|
}
|
|
|
|
export interface CameraSelectionState {
|
|
cameraStatus: "" | "sending" | "done" | "error";
|
|
}
|
|
|
|
export interface BoardTypeProps {
|
|
botOnline: boolean;
|
|
bot: BotState;
|
|
alerts: Alert[];
|
|
dispatch: Function;
|
|
shouldDisplay: ShouldDisplay;
|
|
timeSettings: TimeSettings;
|
|
sourceFbosConfig: SourceFbosConfig;
|
|
}
|
|
|
|
export interface PowerAndResetProps {
|
|
controlPanelState: ControlPanelState;
|
|
dispatch: Function;
|
|
sourceFbosConfig: SourceFbosConfig;
|
|
botOnline: boolean;
|
|
}
|
|
|
|
export interface FactoryResetRowsProps {
|
|
dispatch: Function;
|
|
sourceFbosConfig: SourceFbosConfig;
|
|
botOnline: boolean;
|
|
}
|
|
|
|
export interface FarmbotOsRowProps {
|
|
bot: BotState;
|
|
osReleaseNotesHeading: string;
|
|
osReleaseNotes: string;
|
|
dispatch: Function;
|
|
sourceFbosConfig: SourceFbosConfig;
|
|
shouldDisplay: ShouldDisplay;
|
|
botOnline: boolean;
|
|
botToMqttLastSeen: number;
|
|
timeSettings: TimeSettings;
|
|
deviceAccount: TaggedDevice;
|
|
}
|
|
|
|
export interface FbosDetailsProps {
|
|
botInfoSettings: InformationalSettings;
|
|
dispatch: Function;
|
|
shouldDisplay: ShouldDisplay;
|
|
sourceFbosConfig: SourceFbosConfig;
|
|
botToMqttLastSeen: number;
|
|
timeSettings: TimeSettings;
|
|
deviceAccount: TaggedDevice;
|
|
}
|
|
|
|
export interface OsUpdateButtonProps {
|
|
bot: BotState;
|
|
sourceFbosConfig: SourceFbosConfig;
|
|
botOnline: boolean;
|
|
shouldDisplay: ShouldDisplay;
|
|
}
|