mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-07 15:07:11 -04:00
eslint fixes
This commit is contained in:
parent
9ea785fc63
commit
ab8b48c437
5 changed files with 10 additions and 9 deletions
|
@ -145,7 +145,7 @@ class HTMLIngredient {
|
|||
for="${this.id}">
|
||||
${this.name}
|
||||
</label>
|
||||
</div>`
|
||||
</div>`;
|
||||
break;
|
||||
case "option":
|
||||
html += `<div class="form-group ing-medium">
|
||||
|
|
|
@ -2,4 +2,7 @@ operations:
|
|||
- UI tests etc.
|
||||
|
||||
manual testing issues:
|
||||
|
||||
Recipe;
|
||||
- some reordering in recipe is not super smooth ( when the recipe-li is very large for instance )
|
||||
- double click deleting c-recipe-li not reliable
|
||||
|
|
|
@ -31,9 +31,9 @@ export class COperationList extends HTMLElement {
|
|||
this.isCloneable = isCloneable;
|
||||
this.icon = icon;
|
||||
|
||||
window.addEventListener("operationadd", this.handleChange.bind(this))
|
||||
window.addEventListener("operationremove", this.handleChange.bind(this))
|
||||
window.addEventListener("favouritesupdate", this.handleChange.bind(this))
|
||||
window.addEventListener("operationadd", this.handleChange.bind(this));
|
||||
window.addEventListener("operationremove", this.handleChange.bind(this));
|
||||
window.addEventListener("favouritesupdate", this.handleChange.bind(this));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -180,7 +180,7 @@ export class COperationList extends HTMLElement {
|
|||
if (li.classList.contains(`${className}`)) {
|
||||
li.classList.remove(`${className}`);
|
||||
}
|
||||
}))
|
||||
}));
|
||||
|
||||
if (srcListItems.length !== 0) {
|
||||
srcListItems.forEach((item => {
|
||||
|
|
|
@ -104,7 +104,7 @@ export class CRecipeLi extends HTMLElement {
|
|||
*
|
||||
* @fires Manager#statechange
|
||||
*/
|
||||
removeOperation(){
|
||||
removeOperation() {
|
||||
this.remove();
|
||||
log.debug("Operation removed from recipe");
|
||||
window.dispatchEvent(this.app.manager.statechange);
|
||||
|
@ -190,7 +190,7 @@ export class CRecipeLi extends HTMLElement {
|
|||
*/
|
||||
cloneNode() {
|
||||
const { app, name, args } = this;
|
||||
return new CRecipeLi( app, name, args );
|
||||
return new CRecipeLi(app, name, args);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
* @license Apache-2.0
|
||||
*/
|
||||
|
||||
import { debounce } from "../../core/Utils.mjs";
|
||||
|
||||
/**
|
||||
* Waiter to handle events related to the window object.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue