Class: OperationsWaiter

OperationsWaiter


new OperationsWaiter(app, manager)

Waiter to handle events related to the operations.

Parameters:
Name Type Description
app HTMLApp

The main view object for CyberChef.

manager Manager

The CyberChef event manager.

Author:
  • <p>n1474335 [n1474335@gmail.com]</p>
License:
  • Apache-2.0
Source:

Methods


search_operations(e)

Handler for search events.
Finds operations which match the given search term and displays them under the search box.

Parameters:
Name Type Description
e event
Source:

filter_operations(search_str, highlight)

Filters operations based on the search string and returns the matching ones.

Parameters:
Name Type Description
search_str string
highlight boolean

Whether or not to highlight the matching string in the operation
name and description

Source:
Returns:
Type
Array.<string>

get_selected_op(ops)

Finds the operation which has been selected using keyboard shortcuts. This will have the class
'selected-op' set. Returns the index of the operation within the given list.

Parameters:
Name Type Description
ops Array.<element>
Source:
Returns:
Type
number

op_list_create(e)

Handler for oplistcreate events.

Parameters:
Name Type Description
e event
Source:
Listens to Events:

operation_dblclick(e)

Handler for operation doubleclick events.
Adds the operation to the recipe and auto bakes.

Parameters:
Name Type Description
e event
Source:

edit_favourites_click(e)

Handler for edit favourites click events.
Sets up the 'Edit favourites' pane and displays it.

Parameters:
Name Type Description
e event
Source:

save_favourites_click()

Handler for save favourites click events.
Saves the selected favourites and reloads them.

Source:

reset_favourites_click()

Handler for reset favourites click events.
Resets favourites to their defaults.

Source:

op_icon_mouseover(e)

Handler for op_icon mouseover events.
Hides any popovers already showing on the operation so that there aren't two at once.

Parameters:
Name Type Description
e event
Source:

op_icon_mouseleave(e)

Handler for op_icon mouseleave events.
If this icon created a popover and we're moving back to the operation element, display the
operation popover again.

Parameters:
Name Type Description
e event
Source: