mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-08 15:25:01 -04:00
add c-operation-list so any of these elements ( category list, category list item, operation list, operation list item ) can be created individually or simply through their parent. Also fix some annotations across the app that used event instead of Event, causing the IDE to get confused
This commit is contained in:
parent
b1b0be254b
commit
6f6e9cce39
16 changed files with 235 additions and 197 deletions
|
@ -654,7 +654,7 @@ class InputWaiter {
|
|||
|
||||
/**
|
||||
* Handler for file details toggle clicks
|
||||
* @param {event} e
|
||||
* @param {Event} e
|
||||
*/
|
||||
toggleFileDetails(e) {
|
||||
$("[data-toggle='tooltip']").tooltip("hide");
|
||||
|
@ -838,7 +838,7 @@ class InputWaiter {
|
|||
* Updates the value stored in the inputWorker
|
||||
* Debounces the input so we don't call autobake too often.
|
||||
*
|
||||
* @param {event} e
|
||||
* @param {Event} e
|
||||
*
|
||||
* @fires Manager#statechange
|
||||
*/
|
||||
|
@ -870,7 +870,7 @@ class InputWaiter {
|
|||
* Handler for input dragover events.
|
||||
* Gives the user a visual cue to show that items can be dropped here.
|
||||
*
|
||||
* @param {event} e
|
||||
* @param {Event} e
|
||||
*/
|
||||
inputDragover(e) {
|
||||
// This will be set if we're dragging an operation
|
||||
|
@ -886,7 +886,7 @@ class InputWaiter {
|
|||
* Handler for input dragleave events.
|
||||
* Removes the visual cue.
|
||||
*
|
||||
* @param {event} e
|
||||
* @param {Event} e
|
||||
*/
|
||||
inputDragleave(e) {
|
||||
e.stopPropagation();
|
||||
|
@ -903,7 +903,7 @@ class InputWaiter {
|
|||
* Handler for input drop events.
|
||||
* Loads the dragged data.
|
||||
*
|
||||
* @param {event} e
|
||||
* @param {Event} e
|
||||
*/
|
||||
async inputDrop(e) {
|
||||
// This will be set if we're dragging an operation
|
||||
|
@ -1013,7 +1013,7 @@ class InputWaiter {
|
|||
* Handler for open input button events
|
||||
* Loads the opened data into the input textarea
|
||||
*
|
||||
* @param {event} e
|
||||
* @param {Event} e
|
||||
*/
|
||||
inputOpen(e) {
|
||||
e.preventDefault();
|
||||
|
@ -1178,7 +1178,7 @@ class InputWaiter {
|
|||
/**
|
||||
* Handler for clicking on a tab
|
||||
*
|
||||
* @param {event} mouseEvent
|
||||
* @param {Event} mouseEvent
|
||||
*/
|
||||
changeTabClick(mouseEvent) {
|
||||
if (!mouseEvent.target) return;
|
||||
|
@ -1361,7 +1361,7 @@ class InputWaiter {
|
|||
/**
|
||||
* Handler for clicking on a remove tab button
|
||||
*
|
||||
* @param {event} mouseEvent
|
||||
* @param {Event} mouseEvent
|
||||
*/
|
||||
removeTabClick(mouseEvent) {
|
||||
if (!mouseEvent.target) {
|
||||
|
@ -1376,7 +1376,7 @@ class InputWaiter {
|
|||
/**
|
||||
* Handler for scrolling on the input tabs area
|
||||
*
|
||||
* @param {event} wheelEvent
|
||||
* @param {Event} wheelEvent
|
||||
*/
|
||||
scrollTab(wheelEvent) {
|
||||
wheelEvent.preventDefault();
|
||||
|
@ -1509,7 +1509,7 @@ class InputWaiter {
|
|||
/**
|
||||
* Handle when an option in the filter drop down box is clicked
|
||||
*
|
||||
* @param {event} mouseEvent
|
||||
* @param {Event} mouseEvent
|
||||
*/
|
||||
filterOptionClick(mouseEvent) {
|
||||
document.getElementById("input-filter-button").innerText = mouseEvent.target.innerText;
|
||||
|
@ -1542,7 +1542,7 @@ class InputWaiter {
|
|||
/**
|
||||
* Handler for clicking on a filter result
|
||||
*
|
||||
* @param {event} e
|
||||
* @param {Event} e
|
||||
*/
|
||||
filterItemClick(e) {
|
||||
if (!e.target) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue