Farmbot-Web-App/frontend/devices/components/fbos_settings/interfaces.ts

122 lines
2.6 KiB
TypeScript
Raw Normal View History

2018-03-08 18:02:50 -07:00
import {
BotState,
ControlPanelState,
SaveFarmwareEnv,
ShouldDisplay,
SourceFbosConfig,
2020-02-28 09:35:32 -07:00
UserEnv,
2018-03-08 18:02:50 -07:00
} from "../../interfaces";
import {
Alert,
InformationalSettings,
TaggedDevice,
2020-03-13 15:06:40 -06:00
FirmwareHardware,
} from "farmbot";
2019-04-11 21:17:01 -06:00
import { TimeSettings } from "../../../interfaces";
2018-01-27 02:29:13 -07:00
2020-03-13 15:06:40 -06:00
export interface NameRowProps {
dispatch: Function;
device: TaggedDevice;
widget?: boolean;
}
export interface TimezoneRowProps {
dispatch: Function;
device: TaggedDevice;
}
2018-01-27 02:29:13 -07:00
export interface AutoSyncRowProps {
dispatch: Function;
sourceFbosConfig: SourceFbosConfig;
}
export interface AutoUpdateRowProps {
dispatch: Function;
2020-02-26 13:08:49 -07:00
sourceFbosConfig: SourceFbosConfig;
}
export interface OtaTimeSelectorRowProps {
dispatch: Function;
2018-01-27 02:29:13 -07:00
sourceFbosConfig: SourceFbosConfig;
device: TaggedDevice;
2020-02-26 13:08:49 -07:00
timeSettings: TimeSettings;
2018-01-27 02:29:13 -07:00
}
export interface CameraSelectionProps {
2018-11-01 11:17:18 -06:00
env: UserEnv;
botOnline: boolean;
2018-11-01 11:17:18 -06:00
saveFarmwareEnv: SaveFarmwareEnv;
shouldDisplay: ShouldDisplay;
dispatch: Function;
}
export interface CameraSelectionState {
cameraStatus: "" | "sending" | "done" | "error";
}
2018-01-27 02:29:13 -07:00
export interface BoardTypeProps {
2019-04-09 20:31:25 -06:00
botOnline: boolean;
bot: BotState;
2019-07-12 14:39:40 -06:00
alerts: Alert[];
2018-01-27 02:29:13 -07:00
dispatch: Function;
2018-03-13 19:32:19 -06:00
shouldDisplay: ShouldDisplay;
2019-04-11 21:17:01 -06:00
timeSettings: TimeSettings;
2018-01-27 02:29:13 -07:00
sourceFbosConfig: SourceFbosConfig;
2020-03-13 15:06:40 -06:00
firmwareHardware: FirmwareHardware | undefined;
}
export interface FirmwareProps {
botOnline: boolean;
bot: BotState;
alerts: Alert[];
dispatch: Function;
shouldDisplay: ShouldDisplay;
timeSettings: TimeSettings;
sourceFbosConfig: SourceFbosConfig;
}
export interface FlashFirmwareRowProps {
botOnline: boolean;
firmwareHardware: FirmwareHardware | undefined;
2018-01-27 02:29:13 -07:00
}
export interface PowerAndResetProps {
controlPanelState: ControlPanelState;
dispatch: Function;
sourceFbosConfig: SourceFbosConfig;
botOnline: boolean;
2018-01-27 02:29:13 -07:00
}
2020-02-28 09:34:28 -07:00
export interface FactoryResetRowsProps {
2018-01-27 02:29:13 -07:00
dispatch: Function;
sourceFbosConfig: SourceFbosConfig;
botOnline: boolean;
2018-01-27 02:29:13 -07:00
}
export interface FarmbotOsRowProps {
bot: BotState;
dispatch: Function;
sourceFbosConfig: SourceFbosConfig;
2018-11-26 20:39:35 -07:00
shouldDisplay: ShouldDisplay;
botOnline: boolean;
2019-06-07 18:26:12 -06:00
timeSettings: TimeSettings;
deviceAccount: TaggedDevice;
2018-01-27 02:29:13 -07:00
}
export interface FbosDetailsProps {
2018-07-10 20:37:50 -06:00
botInfoSettings: InformationalSettings;
2018-01-27 02:29:13 -07:00
dispatch: Function;
2018-11-26 20:39:35 -07:00
shouldDisplay: ShouldDisplay;
2018-01-27 02:29:13 -07:00
sourceFbosConfig: SourceFbosConfig;
botToMqttLastSeen: number;
2019-06-07 18:26:12 -06:00
timeSettings: TimeSettings;
deviceAccount: TaggedDevice;
2018-01-27 02:29:13 -07:00
}
2018-01-28 14:00:16 -07:00
export interface OsUpdateButtonProps {
bot: BotState;
sourceFbosConfig: SourceFbosConfig;
botOnline: boolean;
2019-01-04 12:26:31 -07:00
shouldDisplay: ShouldDisplay;
2018-01-28 14:00:16 -07:00
}