From 57c8c6dbc6bf8213071c4c027436c485a0ef58fe Mon Sep 17 00:00:00 2001 From: n1474335 Date: Mon, 13 May 2024 17:48:09 +0100 Subject: [PATCH] Added operation counts to categories and ops list with option to hide by default for categories. --- src/web/HTMLCategory.mjs | 3 +++ src/web/Manager.mjs | 1 + src/web/html/index.html | 8 ++++++++ src/web/index.js | 3 ++- src/web/stylesheets/components/_list.css | 11 ++++++++++- src/web/stylesheets/utils/_general.css | 4 ++++ src/web/waiters/OperationsWaiter.mjs | 16 ++++++++++++++++ src/web/waiters/OptionsWaiter.mjs | 1 + 8 files changed, 45 insertions(+), 2 deletions(-) diff --git a/src/web/HTMLCategory.mjs b/src/web/HTMLCategory.mjs index 0414fd71..b61a6740 100755 --- a/src/web/HTMLCategory.mjs +++ b/src/web/HTMLCategory.mjs @@ -42,6 +42,9 @@ class HTMLCategory { let html = `
${this.name} +
    `; diff --git a/src/web/Manager.mjs b/src/web/Manager.mjs index b188b3b9..2020b2a0 100755 --- a/src/web/Manager.mjs +++ b/src/web/Manager.mjs @@ -229,6 +229,7 @@ class Manager { this.addDynamicListener(".option-item input[type=checkbox]", "change", this.options.switchChange, this.options); this.addDynamicListener(".option-item input[type=checkbox]#wordWrap", "change", this.options.setWordWrap, this.options); this.addDynamicListener(".option-item input[type=checkbox]#useMetaKey", "change", this.bindings.updateKeybList, this.bindings); + this.addDynamicListener(".option-item input[type=checkbox]#showCatCount", "change", this.ops.setCatCount, this.ops); this.addDynamicListener(".option-item input[type=number]", "keyup", this.options.numberChange, this.options); this.addDynamicListener(".option-item input[type=number]", "change", this.options.numberChange, this.options); this.addDynamicListener(".option-item select", "change", this.options.selectChange, this.options); diff --git a/src/web/html/index.html b/src/web/html/index.html index 13e7b8e3..38bf7ccc 100755 --- a/src/web/html/index.html +++ b/src/web/html/index.html @@ -171,6 +171,7 @@
    Operations +
      @@ -521,6 +522,13 @@ Keep the current tab in sync between the input and output
      + +
      + +