mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-08-08 05:59:19 +00:00
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:
parent
45a670a4ae
commit
017a637682
@ -334,7 +334,7 @@ Ext.define(null, {
|
|||||||
navModel.setPosition();
|
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.
|
// closure not called.
|
||||||
activeElement.resumeFocusEvents();
|
activeElement.resumeFocusEvents();
|
||||||
|
|
||||||
@ -459,7 +459,7 @@ Ext.define(null, {
|
|||||||
|
|
||||||
// extj 6.7 reversed mousewheel direction... (fixed in 7.3)
|
// 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
|
// 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', {
|
Ext.define('Proxmox.form.field.Spinner', {
|
||||||
override: 'Ext.form.field.Spinner',
|
override: 'Ext.form.field.Spinner',
|
||||||
|
|
||||||
|
@ -568,7 +568,7 @@ utilities: {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let items = container.query('>'); // direct childs
|
let items = container.query('>'); // direct children
|
||||||
factor = Math.min(factor, items.length);
|
factor = Math.min(factor, items.length);
|
||||||
container.oldFactor = factor;
|
container.oldFactor = factor;
|
||||||
|
|
||||||
@ -1326,7 +1326,7 @@ Ext.define('Proxmox.Async', {
|
|||||||
singleton: true,
|
singleton: true,
|
||||||
|
|
||||||
// Returns a Promise resolving to the result of an `API2Request` or rejecting to the error
|
// Returns a Promise resolving to the result of an `API2Request` or rejecting to the error
|
||||||
// repsonse on failure
|
// response on failure
|
||||||
api2: function(reqOpts) {
|
api2: function(reqOpts) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
delete reqOpts.callback; // not allowed in this api
|
delete reqOpts.callback; // not allowed in this api
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* example2: [ {data1: "xyz", data2: "abc"} ]
|
* example2: [ {data1: "xyz", data2: "abc"} ]
|
||||||
* returns [{key: "data1", value: "xyz"}, {key: "data2", value: "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" }]
|
* 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"}]
|
* returns [{key: "data1", value: "xyz", p2: "cde}, {key: "data2", value: "abc", p2: "efg"}]
|
||||||
|
@ -25,7 +25,7 @@ Ext.define('Proxmox.form.SizeField', {
|
|||||||
unit: 'MiB',
|
unit: 'MiB',
|
||||||
unitPostfix: '',
|
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'
|
// for KiB set it to 'KiB'
|
||||||
backendUnit: undefined,
|
backendUnit: undefined,
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ Ext.define('Proxmox.form.DiskSelector', {
|
|||||||
// use include-partitions=1 as a parameter
|
// use include-partitions=1 as a parameter
|
||||||
includePartitions: false,
|
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',
|
typeProperty: 'type',
|
||||||
|
|
||||||
valueField: 'devpath',
|
valueField: 'devpath',
|
||||||
|
@ -18,7 +18,7 @@ Ext.define('Proxmox.form.KVComboBox', {
|
|||||||
valueField: 'key',
|
valueField: 'key',
|
||||||
queryMode: 'local',
|
queryMode: 'local',
|
||||||
|
|
||||||
// overide framework function to implement deleteEmpty behaviour
|
// override framework function to implement deleteEmpty behaviour
|
||||||
getSubmitData: function() {
|
getSubmitData: function() {
|
||||||
let me = this,
|
let me = this,
|
||||||
data = null,
|
data = null,
|
||||||
|
@ -69,8 +69,8 @@ Ext.define('Proxmox.form.NetworkSelector', {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
listeners: {
|
listeners: {
|
||||||
load: function(store, records, successfull) {
|
load: function(store, records, successful) {
|
||||||
if (successfull) {
|
if (successful) {
|
||||||
records.forEach(function(record) {
|
records.forEach(function(record) {
|
||||||
if (record.data.cidr6) {
|
if (record.data.cidr6) {
|
||||||
let dest = record.data.cidr ? record.copy(null) : record;
|
let dest = record.data.cidr ? record.copy(null) : record;
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
/** Renders a list of key values objets
|
/** Renders a list of key values objects
|
||||||
|
|
||||||
Mandatory Config Parameters:
|
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: {
|
rows: {
|
||||||
keyboard: {
|
keyboard: {
|
||||||
|
@ -347,7 +347,7 @@ Ext.define('Proxmox.node.APTRepositoriesGrid', {
|
|||||||
let values = option.Values.join(' ');
|
let values = option.Values.join(' ');
|
||||||
text += `${key}: ${values}<br>`;
|
text += `${key}: ${values}<br>`;
|
||||||
} else {
|
} else {
|
||||||
throw "unkown file type";
|
throw "unknown file type";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return text;
|
return text;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Display log entries in a panel with scrollbar
|
* Display log entries in a panel with scrollbar
|
||||||
* The log entries are automatically refreshed via a background task,
|
* 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', {
|
Ext.define('Proxmox.panel.JournalView', {
|
||||||
extend: 'Ext.panel.Panel',
|
extend: 'Ext.panel.Panel',
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Display log entries in a panel with scrollbar
|
* Display log entries in a panel with scrollbar
|
||||||
* The log entries are automatically refreshed via a background task,
|
* 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', {
|
Ext.define('Proxmox.panel.LogView', {
|
||||||
extend: 'Ext.panel.Panel',
|
extend: 'Ext.panel.Panel',
|
||||||
|
@ -134,7 +134,7 @@ Ext.define('Proxmox.window.ACMEPluginEdit', {
|
|||||||
datafield.setValue(extradata.join('\n'));
|
datafield.setValue(extradata.join('\n'));
|
||||||
if (!me.createdInitially) {
|
if (!me.createdInitially) {
|
||||||
datafield.resetOriginalValue();
|
datafield.resetOriginalValue();
|
||||||
me.createdInitially = true; // save that we initally set that
|
me.createdInitially = true; // save that we initially set that
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user