2018-10-22 09:35:44 -06:00
|
|
|
import {
|
|
|
|
BooleanConfigKey,
|
2020-02-28 09:35:32 -07:00
|
|
|
NumberConfigKey,
|
2018-10-22 09:35:44 -06:00
|
|
|
} from "farmbot/dist/resources/configs/web_app";
|
2018-01-09 00:24:59 -07:00
|
|
|
|
|
|
|
export const BooleanSetting: Record<BooleanConfigKey, BooleanConfigKey> = {
|
2019-06-14 17:00:42 -06:00
|
|
|
/** Move settings */
|
2018-01-09 00:24:59 -07:00
|
|
|
x_axis_inverted: "x_axis_inverted",
|
|
|
|
y_axis_inverted: "y_axis_inverted",
|
|
|
|
z_axis_inverted: "z_axis_inverted",
|
|
|
|
scaled_encoders: "scaled_encoders",
|
2019-06-14 17:00:42 -06:00
|
|
|
raw_encoders: "raw_encoders",
|
|
|
|
home_button_homing: "home_button_homing",
|
|
|
|
show_motor_plot: "show_motor_plot",
|
|
|
|
|
|
|
|
/** Designer settings */
|
2018-01-09 00:24:59 -07:00
|
|
|
legend_menu_open: "legend_menu_open",
|
|
|
|
show_plants: "show_plants",
|
|
|
|
show_points: "show_points",
|
2020-04-02 10:53:55 -06:00
|
|
|
show_weeds: "show_weeds",
|
2019-06-14 17:00:42 -06:00
|
|
|
show_historic_points: "show_historic_points",
|
2018-01-09 00:24:59 -07:00
|
|
|
show_spread: "show_spread",
|
|
|
|
show_farmbot: "show_farmbot",
|
2018-02-11 19:52:21 -07:00
|
|
|
show_images: "show_images",
|
2020-02-07 16:05:16 -07:00
|
|
|
show_zones: "show_zones",
|
2018-10-15 17:32:23 -06:00
|
|
|
show_sensor_readings: "show_sensor_readings",
|
2019-06-14 17:00:42 -06:00
|
|
|
disable_animations: "disable_animations",
|
|
|
|
display_trail: "display_trail",
|
|
|
|
encoder_figure: "encoder_figure",
|
|
|
|
dynamic_map: "dynamic_map",
|
2018-04-12 16:55:36 -06:00
|
|
|
xy_swap: "xy_swap",
|
2019-06-15 08:02:34 -06:00
|
|
|
confirm_plant_deletion: "confirm_plant_deletion",
|
2019-06-14 17:00:42 -06:00
|
|
|
|
|
|
|
/** Sequence settings */
|
|
|
|
confirm_step_deletion: "confirm_step_deletion",
|
2019-07-12 07:42:34 -06:00
|
|
|
confirm_sequence_deletion: "confirm_sequence_deletion",
|
2019-04-12 20:50:10 -06:00
|
|
|
show_pins: "show_pins",
|
2019-06-05 18:06:42 -06:00
|
|
|
expand_step_options: "expand_step_options",
|
2019-06-24 11:11:53 -06:00
|
|
|
discard_unsaved_sequences: "discard_unsaved_sequences",
|
2017-09-27 17:21:11 -06:00
|
|
|
|
2019-06-14 17:00:42 -06:00
|
|
|
/** App settings */
|
2018-01-09 00:24:59 -07:00
|
|
|
disable_i18n: "disable_i18n",
|
|
|
|
hide_webcam_widget: "hide_webcam_widget",
|
2019-06-09 12:11:15 -06:00
|
|
|
hide_sensors: "hide_sensors",
|
2018-01-31 21:27:04 -07:00
|
|
|
enable_browser_speak: "enable_browser_speak",
|
2018-03-07 10:43:02 -07:00
|
|
|
discard_unsaved: "discard_unsaved",
|
2019-06-14 17:00:42 -06:00
|
|
|
time_format_24_hour: "time_format_24_hour",
|
|
|
|
disable_emergency_unlock_confirmation: "disable_emergency_unlock_confirmation",
|
2019-07-29 09:33:20 -06:00
|
|
|
user_interface_read_only_mode: "user_interface_read_only_mode",
|
2018-01-21 12:21:01 -07:00
|
|
|
|
2019-06-14 17:00:42 -06:00
|
|
|
/** Farmware settings */
|
2018-03-06 13:39:41 -07:00
|
|
|
show_first_party_farmware: "show_first_party_farmware",
|
2019-06-14 17:00:42 -06:00
|
|
|
|
|
|
|
/** Other */
|
|
|
|
stub_config: "stub_config",
|
2018-01-09 00:24:59 -07:00
|
|
|
};
|
2017-08-25 09:32:38 -06:00
|
|
|
|
2018-01-09 00:24:59 -07:00
|
|
|
export const NumericSetting: Record<NumberConfigKey, NumberConfigKey> = {
|
2019-06-14 17:00:42 -06:00
|
|
|
/** Logs settings */
|
2019-08-23 11:55:11 -06:00
|
|
|
assertion_log: "assertion_log",
|
2019-06-14 17:00:42 -06:00
|
|
|
success_log: "success_log",
|
2018-01-09 00:24:59 -07:00
|
|
|
busy_log: "busy_log",
|
2019-06-14 17:00:42 -06:00
|
|
|
warn_log: "warn_log",
|
2018-01-09 00:24:59 -07:00
|
|
|
error_log: "error_log",
|
|
|
|
info_log: "info_log",
|
2019-06-14 17:00:42 -06:00
|
|
|
fun_log: "fun_log",
|
|
|
|
debug_log: "debug_log",
|
|
|
|
|
|
|
|
/** Designer settings */
|
2018-01-09 00:24:59 -07:00
|
|
|
zoom_level: "zoom_level",
|
2019-05-13 18:13:28 -06:00
|
|
|
map_size_x: "map_size_x",
|
|
|
|
map_size_y: "map_size_y",
|
2019-06-14 17:00:42 -06:00
|
|
|
bot_origin_quadrant: "bot_origin_quadrant",
|
|
|
|
|
|
|
|
/** Other */
|
|
|
|
id: "id",
|
|
|
|
device_id: "device_id",
|
2018-01-09 00:24:59 -07:00
|
|
|
};
|