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 <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-02-14 11:23:43 +01:00
parent 45a670a4ae
commit 017a637682
12 changed files with 16 additions and 16 deletions

View 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',

View 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

View 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"}]

View 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,

View 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',

View 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,

View 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;

View 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: {

View 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;

View 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',

View 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',

View 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
}
},