Skip to content

Commit

Permalink
feat: menus grouped by parent menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Otrebor671 committed Aug 15, 2024
1 parent b0355e7 commit a65ce3e
Showing 1 changed file with 69 additions and 69 deletions.
138 changes: 69 additions & 69 deletions firmware/main/modules/menus_module/menus.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,85 +137,64 @@ menu_t menus[] = { //////////////////////////////////
.on_enter_cb = NULL,
.on_exit_cb = NULL,
.is_visible = true},
#endif
#ifdef CONFIG_WIFI_APP_DEAUTH
{.display_name = "Deauth",
.menu_idx = MENU_WIFI_DEAUTH_2,
.parent_idx = MENU_WIFI_APPS_2,
.input_cb = NULL,
.on_enter_cb = NULL,
.on_exit_cb = NULL,
.is_visible = true},
#endif
#ifdef CONFIG_WIFI_APP_DOS
{.display_name = "DoS",
.menu_idx = MENU_WIFI_DOS_2,
.parent_idx = MENU_WIFI_APPS_2,
.input_cb = NULL,
.on_enter_cb = NULL,
.on_exit_cb = NULL,
.is_visible = true},
#endif
#endif
{.display_name = "Bluetooth",
.menu_idx = MENU_BLUETOOTH_APPS_2,
.parent_idx = MENU_APPLICATIONS_2,
.input_cb = NULL,
.on_enter_cb = NULL,
.on_exit_cb = NULL,
.is_visible = true},
{.display_name = "Zigbee",
.menu_idx = MENU_ZIGBEE_APPS_2,
.parent_idx = MENU_APPLICATIONS_2,
{.display_name = "Start",
.menu_idx = MENU_WIFI_ANALYZER_RUN_2,
.parent_idx = MENU_WIFI_ANALIZER_2,
.input_cb = NULL,
.on_enter_cb = NULL,
.on_exit_cb = NULL,
.is_visible = true},
{.display_name = "Thread",
.menu_idx = MENU_THREAD_APPS_2,
.parent_idx = MENU_APPLICATIONS_2,
{.display_name = "Settings",
.menu_idx = MENU_WIFI_ANALYZER_SETTINGS_2,
.parent_idx = MENU_WIFI_ANALIZER_2,
.input_cb = NULL,
.on_enter_cb = NULL,
.on_exit_cb = NULL,
.is_visible = true},
{.display_name = "GPS",
.menu_idx = MENU_GPS_2,
.parent_idx = MENU_APPLICATIONS_2,
{.display_name = "Channel",
.menu_idx = MENU_WIFI_ANALYZER_CHANNEL_2,
.parent_idx = MENU_WIFI_ANALYZER_SETTINGS_2,
.input_cb = NULL,
.on_enter_cb = NULL,
.on_exit_cb = NULL,
.is_visible = true},
{.display_name = "Start",
.menu_idx = MENU_WIFI_ANALYZER_RUN_2,
.parent_idx = MENU_WIFI_ANALIZER_2,
{.display_name = "Destination",
.menu_idx = MENU_WIFI_ANALYZER_DESTINATION_2,
.parent_idx = MENU_WIFI_ANALYZER_SETTINGS_2,
.input_cb = NULL,
.on_enter_cb = NULL,
.on_exit_cb = NULL,
.is_visible = true},
{.display_name = "Settings",
.menu_idx = MENU_WIFI_ANALYZER_SETTINGS_2,
{.display_name = "Help",
.menu_idx = MENU_WIFI_ANALYZER_HELP_2,
.parent_idx = MENU_WIFI_ANALIZER_2,
.input_cb = NULL,
.on_enter_cb = NULL,
.on_exit_cb = NULL,
.is_visible = true},
{.display_name = "Help",
.menu_idx = MENU_WIFI_ANALYZER_HELP_2,
.parent_idx = MENU_WIFI_ANALIZER_2,
#endif
#ifdef CONFIG_WIFI_APP_DEAUTH
{.display_name = "Deauth",
.menu_idx = MENU_WIFI_DEAUTH_2,
.parent_idx = MENU_WIFI_APPS_2,
.input_cb = NULL,
.on_enter_cb = NULL,
.on_exit_cb = NULL,
.is_visible = true},
{.display_name = "Channel",
.menu_idx = MENU_WIFI_ANALYZER_CHANNEL_2,
.parent_idx = MENU_WIFI_ANALYZER_SETTINGS_2,
#endif
#ifdef CONFIG_WIFI_APP_DOS
{.display_name = "DoS",
.menu_idx = MENU_WIFI_DOS_2,
.parent_idx = MENU_WIFI_APPS_2,
.input_cb = NULL,
.on_enter_cb = NULL,
.on_exit_cb = NULL,
.is_visible = true},
{.display_name = "Destination",
.menu_idx = MENU_WIFI_ANALYZER_DESTINATION_2,
.parent_idx = MENU_WIFI_ANALYZER_SETTINGS_2,
#endif
#endif
{.display_name = "Bluetooth",
.menu_idx = MENU_BLUETOOTH_APPS_2,
.parent_idx = MENU_APPLICATIONS_2,
.input_cb = NULL,
.on_enter_cb = NULL,
.on_exit_cb = NULL,
Expand All @@ -234,15 +213,15 @@ menu_t menus[] = { //////////////////////////////////
.on_enter_cb = NULL,
.on_exit_cb = NULL,
.is_visible = true},
{.display_name = "Spoofing",
.menu_idx = MENU_ZIGBEE_SPOOFING_2,
.parent_idx = MENU_ZIGBEE_APPS_2,
{.display_name = "Zigbee",
.menu_idx = MENU_ZIGBEE_APPS_2,
.parent_idx = MENU_APPLICATIONS_2,
.input_cb = NULL,
.on_enter_cb = NULL,
.on_exit_cb = NULL,
.is_visible = true},
{.display_name = "Sniffer",
.menu_idx = MENU_ZIGBEE_SWITCH_2,
{.display_name = "Spoofing",
.menu_idx = MENU_ZIGBEE_SPOOFING_2,
.parent_idx = MENU_ZIGBEE_APPS_2,
.input_cb = NULL,
.on_enter_cb = NULL,
Expand All @@ -262,6 +241,20 @@ menu_t menus[] = { //////////////////////////////////
.on_enter_cb = NULL,
.on_exit_cb = NULL,
.is_visible = true},
{.display_name = "Sniffer",
.menu_idx = MENU_ZIGBEE_SWITCH_2,
.parent_idx = MENU_ZIGBEE_APPS_2,
.input_cb = NULL,
.on_enter_cb = NULL,
.on_exit_cb = NULL,
.is_visible = true},
{.display_name = "Thread",
.menu_idx = MENU_THREAD_APPS_2,
.parent_idx = MENU_APPLICATIONS_2,
.input_cb = NULL,
.on_enter_cb = NULL,
.on_exit_cb = NULL,
.is_visible = true},
{.display_name = "Broadcast",
.menu_idx = MENU_THREAD_BROADCAST_2,
.parent_idx = MENU_THREAD_APPS_2,
Expand All @@ -283,13 +276,34 @@ menu_t menus[] = { //////////////////////////////////
.on_enter_cb = NULL,
.on_exit_cb = NULL,
.is_visible = true},
{.display_name = "GPS",
.menu_idx = MENU_GPS_2,
.parent_idx = MENU_APPLICATIONS_2,
.input_cb = NULL,
.on_enter_cb = NULL,
.on_exit_cb = NULL,
.is_visible = true},
{.display_name = "Wardriving",
.menu_idx = MENU_GPS_WARDRIVING_2,
.parent_idx = MENU_GPS_2,
.input_cb = NULL,
.on_enter_cb = NULL,
.on_exit_cb = NULL,
.is_visible = true},
{.display_name = "Start",
.menu_idx = MENU_GPS_WARDRIVING_START_2,
.parent_idx = MENU_GPS_WARDRIVING_2,
.input_cb = NULL,
.on_enter_cb = NULL,
.on_exit_cb = NULL,
.is_visible = true},
{.display_name = "Help",
.menu_idx = MENU_GPS_WARDRIVING_HELP_2,
.parent_idx = MENU_GPS_WARDRIVING_2,
.input_cb = NULL,
.on_enter_cb = NULL,
.on_exit_cb = NULL,
.is_visible = true},
{.display_name = "Date & Time",
.menu_idx = MENU_GPS_DATE_TIME_2,
.parent_idx = MENU_GPS_2,
Expand Down Expand Up @@ -318,20 +332,6 @@ menu_t menus[] = { //////////////////////////////////
.on_enter_cb = NULL,
.on_exit_cb = NULL,
.is_visible = true},
{.display_name = "Start",
.menu_idx = MENU_GPS_WARDRIVING_START_2,
.parent_idx = MENU_GPS_WARDRIVING_2,
.input_cb = NULL,
.on_enter_cb = NULL,
.on_exit_cb = NULL,
.is_visible = true},
{.display_name = "Help",
.menu_idx = MENU_GPS_WARDRIVING_HELP_2,
.parent_idx = MENU_GPS_WARDRIVING_2,
.input_cb = NULL,
.on_enter_cb = NULL,
.on_exit_cb = NULL,
.is_visible = true},
{.display_name = "Version",
.menu_idx = MENU_ABOUT_VERSION_2,
.parent_idx = MENU_ABOUT_2,
Expand Down

0 comments on commit a65ce3e

Please sign in to comment.