]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
tree-wide typo fixes
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 14 Feb 2022 10:23:43 +0000 (11:23 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 14 Feb 2022 10:28:29 +0000 (11:28 +0100)
found with `codespell`, mostly comments but also a fn parameter and
an error in an exception message

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
12 files changed:
src/Toolkit.js
src/Utils.js
src/data/reader/JsonObject.js
src/form/BandwidthSelector.js
src/form/DiskSelector.js
src/form/KVComboBox.js
src/form/NetworkSelector.js
src/grid/ObjectGrid.js
src/node/APTRepositories.js
src/panel/JournalView.js
src/panel/LogView.js
src/window/ACMEPluginEdit.js

index 3d0eefcfbf6512eda18364a59668721f1a8cb6b1..6fd6738a246bbd5cd9fc400f5fbb941c6ffcdf61 100644 (file)
@@ -334,7 +334,7 @@ Ext.define(null, {
                navModel.setPosition();
            }
 
-           // Do not leave the element in tht state in case refresh fails, and restoration
+           // Do not leave the element in that state in case refresh fails, and restoration
            // closure not called.
            activeElement.resumeFocusEvents();
 
@@ -459,7 +459,7 @@ Ext.define(null, {
 
 // extj 6.7 reversed mousewheel direction... (fixed in 7.3)
 // https://forum.sencha.com/forum/showthread.php?472517-Mousewheel-scroll-direction-in-numberfield-with-spinners
-// alse use the 'wheel' event instead of 'mousewheel' (fixed in 7.3)
+// also use the 'wheel' event instead of 'mousewheel' (fixed in 7.3)
 Ext.define('Proxmox.form.field.Spinner', {
     override: 'Ext.form.field.Spinner',
 
index d325644a429b3394ad99738b2977ad41f70aa04e..6781e4459800315f3a6cc381ca528ffcda58ee81 100644 (file)
@@ -568,7 +568,7 @@ utilities: {
            return;
        }
 
-       let items = container.query('>'); // direct childs
+       let items = container.query('>'); // direct children
        factor = Math.min(factor, items.length);
        container.oldFactor = factor;
 
@@ -1326,7 +1326,7 @@ Ext.define('Proxmox.Async', {
     singleton: true,
 
     // Returns a Promise resolving to the result of an `API2Request` or rejecting to the error
-    // repsonse on failure
+    // response on failure
     api2: function(reqOpts) {
        return new Promise((resolve, reject) => {
            delete reqOpts.callback; // not allowed in this api
index 4298066979e0d54bf419496c01700d04bd653001..048eca42f23f4e6c12a2146537775ca53200d675 100644 (file)
@@ -9,7 +9,7 @@
  * example2: [ {data1: "xyz", data2: "abc"} ]
  * returns [{key: "data1", value: "xyz"}, {key: "data2", value: "abc"}]
  *
- * If you set 'readArray', the reader expexts the object as array:
+ * If you set 'readArray', the reader expects the object as array:
  *
  * example3: [ { key: "data1", value: "xyz", p2: "cde" },  { key: "data2", value: "abc", p2: "efg" }]
  * returns [{key: "data1", value: "xyz", p2: "cde}, {key: "data2", value: "abc", p2: "efg"}]
index 069891cfd5050d2e9087ecf58d8c9b3956075295..434ab624f4eaa5f442a736263053c4cd675c3ddc 100644 (file)
@@ -25,7 +25,7 @@ Ext.define('Proxmox.form.SizeField', {
     unit: 'MiB',
     unitPostfix: '',
 
-    // use this if the backend saves values in another unit tha bytes, e.g.,
+    // use this if the backend saves values in another unit than bytes, e.g.,
     // for KiB set it to 'KiB'
     backendUnit: undefined,
 
index 3292661896d9e6381714c8d453054a2d26477c99..0ec07a0d0b1fa967a0461f03b2787948051d4fe7 100644 (file)
@@ -11,7 +11,7 @@ Ext.define('Proxmox.form.DiskSelector', {
     // use include-partitions=1 as a parameter
     includePartitions: false,
 
-    // the property the backend wnats for the type ('type' by default)
+    // the property the backend wants for the type ('type' by default)
     typeProperty: 'type',
 
     valueField: 'devpath',
index 361217e039bf83e1e8807367ba72bfd1d8c407be..69e8861a90cfeb42b111fc275bd7bec6ca97ff91 100644 (file)
@@ -18,7 +18,7 @@ Ext.define('Proxmox.form.KVComboBox', {
     valueField: 'key',
     queryMode: 'local',
 
-    // overide framework function to implement deleteEmpty behaviour
+    // override framework function to implement deleteEmpty behaviour
     getSubmitData: function() {
         let me = this,
             data = null,
index b87efc18a0ca023a1e57337477fb953c4792b61d..86d394d662ae3283dda26af335c3bbdaeeae9326 100644 (file)
@@ -69,8 +69,8 @@ Ext.define('Proxmox.form.NetworkSelector', {
            },
        ],
        listeners: {
-           load: function(store, records, successfull) {
-               if (successfull) {
+           load: function(store, records, successful) {
+               if (successful) {
                    records.forEach(function(record) {
                        if (record.data.cidr6) {
                            let dest = record.data.cidr ? record.copy(null) : record;
index e19a1063e847d9109612c3869e96e1741de01f1e..9f3886e6ce5a290e852bbac1b10d962463a79eba 100644 (file)
@@ -1,8 +1,8 @@
-/** Renders a list of key values objets
+/** Renders a list of key values objects
 
 Mandatory Config Parameters:
 
-rows: an object container where each propery is a key-value object we want to render
+rows: an object container where each property is a key-value object we want to render
 
   rows: {
      keyboard: {
index 2622f5c1099a5390588c70a2af5a4056f9969487..09ed0be1672a23cab499cc963144bde78bfbf42a 100644 (file)
@@ -347,7 +347,7 @@ Ext.define('Proxmox.node.APTRepositoriesGrid', {
                        let values = option.Values.join(' ');
                        text += `${key}: ${values}<br>`;
                    } else {
-                       throw "unkown file type";
+                       throw "unknown file type";
                    }
                });
                return text;
index c74345f1e3908abc3e786e08e39910480782ddc2..f3af36bccd0e70a07957ac13d133eff074f8f44c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Display log entries in a panel with scrollbar
  * The log entries are automatically refreshed via a background task,
- * with newest entries comming at the bottom
+ * with newest entries coming at the bottom
  */
 Ext.define('Proxmox.panel.JournalView', {
     extend: 'Ext.panel.Panel',
index 99c4daaf375c1d33fd5b4eaffa5409612b7a21ab..22029a16807d0ffec1b6f7e1cb03601b7da9d15b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Display log entries in a panel with scrollbar
  * The log entries are automatically refreshed via a background task,
- * with newest entries comming at the bottom
+ * with newest entries coming at the bottom
  */
 Ext.define('Proxmox.panel.LogView', {
     extend: 'Ext.panel.Panel',
index 237b36211f37b6607357a50e57197f9163166b61..0f21527686dd8e51c8f33b36d56e377eaa781a8c 100644 (file)
@@ -134,7 +134,7 @@ Ext.define('Proxmox.window.ACMEPluginEdit', {
                datafield.setValue(extradata.join('\n'));
                if (!me.createdInitially) {
                    datafield.resetOriginalValue();
-                   me.createdInitially = true; // save that we initally set that
+                   me.createdInitially = true; // save that we initially set that
                }
            },