new RecipeWaiter(app, manager)
Waiter to handle events related to the recipe.
Parameters:
| Name | Type | Description |
|---|---|---|
app |
HTMLApp | The main view object for CyberChef. |
manager |
Manager | The CyberChef event manager. |
- Copyright:
-
- Crown Copyright 2016
- License:
-
- Apache-2.0
- Source:
Methods
-
initialise_operation_drag_n_drop()
-
Sets up the drag and drop capability for operations in the operations and recipe areas.
- Source:
-
create_sortable_seed_list(list_el)
-
Creates a drag-n-droppable seed list of operations.
Parameters:
Name Type Description list_elelement The list the initialise
- Source:
-
op_sort_end(evt)
-
Handler for operation sort end events.
Removes the operation from the list if it has been dropped outside. If not, adds it to the list
at the appropriate place and initialises it.Parameters:
Name Type Description evtevent - Source:
Fires:
-
fav_dragover(e)
-
Handler for favourite dragover events.
If the element being dragged is an operation, displays a visual cue so that the user knows it can
be dropped here.Parameters:
Name Type Description eevent - Source:
-
fav_dragleave(e)
-
Handler for favourite dragleave events.
Removes the visual cue.Parameters:
Name Type Description eevent - Source:
-
fav_drop(e)
-
Handler for favourite drop events.
Adds the dragged operation to the favourites list.Parameters:
Name Type Description eevent - Source:
-
ing_change()
-
Handler for ingredient change events.
- Source:
Fires:
-
disable_click(e)
-
Handler for disable click events.
Updates the icon status.Parameters:
Name Type Description eevent - Source:
Fires:
-
breakpoint_click(e)
-
Handler for breakpoint click events.
Updates the icon status.Parameters:
Name Type Description eevent - Source:
Fires:
-
operation_dblclick(e)
-
Handler for operation doubleclick events.
Removes the operation from the recipe and auto bakes.Parameters:
Name Type Description eevent - Source:
Fires:
-
operation_child_dblclick(e)
-
Handler for operation child doubleclick events.
Removes the operation from the recipe.Parameters:
Name Type Description eevent - Source:
Fires:
-
get_config()
-
Generates a configuration object to represent the current recipe.
- Source:
Returns:
- Type
- recipe_config
-
update_breakpoint_indicator(position)
-
Moves or removes the breakpoint indicator in the recipe based on the position.
Parameters:
Name Type Description positionnumber - Source:
-
build_recipe_operation(el)
-
Given an operation stub element, this function converts it into a full recipe element with
arguments.Parameters:
Name Type Description elelement The operation stub element from the operations pane
- Source:
-
add_operation(name)
-
Adds the specified operation to the recipe.
Parameters:
Name Type Description namestring The name of the operation to add
- Source:
Fires:
Returns:
- Type
- element
-
clear_recipe()
-
Removes all operations from the recipe.
- Source:
Fires:
-
dropdown_toggle_click(e)
-
Handler for operation dropdown events from toggle_string arguments.
Sets the selected option as the name of the button.Parameters:
Name Type Description eevent - Source:
-
op_add(e)
-
Handler for operationadd events.
Parameters:
Name Type Description eevent - Source:
Fires:
Listens to Events:
-
op_remove(e)
-
Handler for operationremove events.
Parameters:
Name Type Description eevent - Source:
Fires:
Listens to Events:
CyberChef