From 017a63768290303eafb100e0dd197a6424d82987 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 14 Feb 2022 11:23:43 +0100 Subject: [PATCH] tree-wide typo fixes found with `codespell`, mostly comments but also a fn parameter and an error in an exception message Signed-off-by: Thomas Lamprecht --- src/Toolkit.js | 4 ++-- src/Utils.js | 4 ++-- src/data/reader/JsonObject.js | 2 +- src/form/BandwidthSelector.js | 2 +- src/form/DiskSelector.js | 2 +- src/form/KVComboBox.js | 2 +- src/form/NetworkSelector.js | 4 ++-- src/grid/ObjectGrid.js | 4 ++-- src/node/APTRepositories.js | 2 +- src/panel/JournalView.js | 2 +- src/panel/LogView.js | 2 +- src/window/ACMEPluginEdit.js | 2 +- 12 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/Toolkit.js b/src/Toolkit.js index 3d0eefc..6fd6738 100644 --- a/src/Toolkit.js +++ b/src/Toolkit.js @@ -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', diff --git a/src/Utils.js b/src/Utils.js index d325644..6781e44 100644 --- a/src/Utils.js +++ b/src/Utils.js @@ -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 diff --git a/src/data/reader/JsonObject.js b/src/data/reader/JsonObject.js index 4298066..048eca4 100644 --- a/src/data/reader/JsonObject.js +++ b/src/data/reader/JsonObject.js @@ -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"}] diff --git a/src/form/BandwidthSelector.js b/src/form/BandwidthSelector.js index 069891c..434ab62 100644 --- a/src/form/BandwidthSelector.js +++ b/src/form/BandwidthSelector.js @@ -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, diff --git a/src/form/DiskSelector.js b/src/form/DiskSelector.js index 3292661..0ec07a0 100644 --- a/src/form/DiskSelector.js +++ b/src/form/DiskSelector.js @@ -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', diff --git a/src/form/KVComboBox.js b/src/form/KVComboBox.js index 361217e..69e8861 100644 --- a/src/form/KVComboBox.js +++ b/src/form/KVComboBox.js @@ -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, diff --git a/src/form/NetworkSelector.js b/src/form/NetworkSelector.js index b87efc1..86d394d 100644 --- a/src/form/NetworkSelector.js +++ b/src/form/NetworkSelector.js @@ -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; diff --git a/src/grid/ObjectGrid.js b/src/grid/ObjectGrid.js index e19a106..9f3886e 100644 --- a/src/grid/ObjectGrid.js +++ b/src/grid/ObjectGrid.js @@ -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: { diff --git a/src/node/APTRepositories.js b/src/node/APTRepositories.js index 2622f5c..09ed0be 100644 --- a/src/node/APTRepositories.js +++ b/src/node/APTRepositories.js @@ -347,7 +347,7 @@ Ext.define('Proxmox.node.APTRepositoriesGrid', { let values = option.Values.join(' '); text += `${key}: ${values}
`; } else { - throw "unkown file type"; + throw "unknown file type"; } }); return text; diff --git a/src/panel/JournalView.js b/src/panel/JournalView.js index c74345f..f3af36b 100644 --- a/src/panel/JournalView.js +++ b/src/panel/JournalView.js @@ -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', diff --git a/src/panel/LogView.js b/src/panel/LogView.js index 99c4daa..22029a1 100644 --- a/src/panel/LogView.js +++ b/src/panel/LogView.js @@ -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', diff --git a/src/window/ACMEPluginEdit.js b/src/window/ACMEPluginEdit.js index 237b362..0f21527 100644 --- a/src/window/ACMEPluginEdit.js +++ b/src/window/ACMEPluginEdit.js @@ -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 } },