Farmbot-Web-App/frontend/session_keys.ts

61 lines
1.9 KiB
TypeScript
Raw Normal View History

2018-10-22 09:35:44 -06:00
import {
BooleanConfigKey,
NumberConfigKey
} from "farmbot/dist/resources/configs/web_app";
export const BooleanSetting: Record<BooleanConfigKey, BooleanConfigKey> = {
x_axis_inverted: "x_axis_inverted",
y_axis_inverted: "y_axis_inverted",
z_axis_inverted: "z_axis_inverted",
raw_encoders: "raw_encoders",
scaled_encoders: "scaled_encoders",
legend_menu_open: "legend_menu_open",
show_plants: "show_plants",
show_points: "show_points",
show_spread: "show_spread",
show_farmbot: "show_farmbot",
2018-02-11 19:52:21 -07:00
show_images: "show_images",
2018-10-15 17:32:23 -06:00
show_sensor_readings: "show_sensor_readings",
2018-04-12 16:55:36 -06:00
xy_swap: "xy_swap",
2018-05-01 23:25:09 -06:00
home_button_homing: "home_button_homing",
2018-08-29 18:55:25 -06:00
show_motor_plot: "show_motor_plot",
2018-09-20 13:59:13 -06:00
show_historic_points: "show_historic_points",
time_format_24_hour: "time_format_24_hour",
2019-04-12 20:50:10 -06:00
show_pins: "show_pins",
2019-04-17 13:31:18 -06:00
disable_emergency_unlock_confirmation: "disable_emergency_unlock_confirmation",
expand_step_options: "expand_step_options",
2017-09-27 17:21:11 -06:00
2018-03-07 10:43:02 -07:00
/** "Labs" feature names. (App preferences) */
2018-01-09 10:22:27 -07:00
stub_config: "stub_config",
disable_i18n: "disable_i18n",
confirm_step_deletion: "confirm_step_deletion",
hide_webcam_widget: "hide_webcam_widget",
2019-06-09 12:11:15 -06:00
hide_sensors: "hide_sensors",
dynamic_map: "dynamic_map",
2019-06-14 16:59:11 -06:00
map_xl: "map_xl", // TODO: remove from FBJS
disable_animations: "disable_animations",
display_trail: "display_trail",
encoder_figure: "encoder_figure",
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",
/** Farmware Settings Panel */
2018-03-06 13:39:41 -07:00
show_first_party_farmware: "show_first_party_farmware",
};
export const NumericSetting: Record<NumberConfigKey, NumberConfigKey> = {
bot_origin_quadrant: "bot_origin_quadrant",
busy_log: "busy_log",
debug_log: "debug_log",
device_id: "device_id",
error_log: "error_log",
fun_log: "fun_log",
id: "id",
info_log: "info_log",
success_log: "success_log",
warn_log: "warn_log",
zoom_level: "zoom_level",
2019-05-13 18:13:28 -06:00
map_size_x: "map_size_x",
map_size_y: "map_size_y",
};