From 8242dc842afdb8a5dcad2082cdf511d6599c087f Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Thu, 1 Aug 2024 14:57:07 +0200 Subject: [PATCH] pkg: fix typos found by codespell --- pkg/lib/cockpit-components-dynamic-list.jsx | 2 +- pkg/lib/cockpit-connect-ssh.tsx | 2 +- pkg/lib/dialogs.tsx | 2 +- pkg/metrics/metrics.scss | 2 +- pkg/networkmanager/interfaces.js | 2 +- pkg/networkmanager/networking.scss | 4 ++-- pkg/shell/machines/machines.js | 2 +- pkg/shell/nav.jsx | 2 +- pkg/shell/nav.scss | 2 +- pkg/storaged/btrfs/utils.jsx | 2 +- pkg/storaged/client.js | 2 +- pkg/storaged/lvm2/block-logical-volume.jsx | 2 +- pkg/storaged/lvm2/create-logical-volume-dialog.jsx | 2 +- pkg/storaged/mdraid/mdraid.jsx | 2 +- pkg/storaged/pages.jsx | 2 +- pkg/storaged/storage.scss | 2 +- pkg/storaged/utils.js | 2 +- test/reference | 2 +- 18 files changed, 19 insertions(+), 19 deletions(-) diff --git a/pkg/lib/cockpit-components-dynamic-list.jsx b/pkg/lib/cockpit-components-dynamic-list.jsx index d49a372bba4f..4cad793d6663 100644 --- a/pkg/lib/cockpit-components-dynamic-list.jsx +++ b/pkg/lib/cockpit-components-dynamic-list.jsx @@ -25,7 +25,7 @@ import './cockpit-components-dynamic-list.scss'; * [ * { name: "Name must not be empty }, // first row * { }, // second row - * { name: "Name cannot containt number", email: "Email must contain '@'" } // third row + * { name: "Name cannot contain a number", email: "Email must contain '@'" } // third row * ] */ export class DynamicListForm extends React.Component { diff --git a/pkg/lib/cockpit-connect-ssh.tsx b/pkg/lib/cockpit-connect-ssh.tsx index afe4beb620bb..95e1763d1d2c 100644 --- a/pkg/lib/cockpit-connect-ssh.tsx +++ b/pkg/lib/cockpit-connect-ssh.tsx @@ -549,7 +549,7 @@ const error_dialogs = { * @host: Same `[user@]host[:port]` format as the channel option; must be * *exactly* the same as for opening the channel afterwards * @user: Same as the channel option; overrides `user@` portion of @host - * Returns: Nothing on success. Afterwards the SSH conection is established and + * Returns: Nothing on success. Afterwards the SSH connection is established and * you can use the `host` option in channels. Throws a "cancel" * exception if the user cancelled the dialog. Most SSH errors are * handled in the dialogs, but you still have to expect and check for diff --git a/pkg/lib/dialogs.tsx b/pkg/lib/dialogs.tsx index e7d561bf3f55..f9c8dbf8b441 100644 --- a/pkg/lib/dialogs.tsx +++ b/pkg/lib/dialogs.tsx @@ -98,7 +98,7 @@ * * - Dialogs.run(component, {... props}) * - * Shows a dialog and asyncronously waits for it to close. This creates and + * Shows a dialog and asynchronously waits for it to close. This creates and * shows a MyDialog with the given properties, plus a special "dialogResult" * property which has .resolve() and .reject() methods on it. Calling either * of those will resolve the promise returned by Dialogs.run() accordingly, diff --git a/pkg/metrics/metrics.scss b/pkg/metrics/metrics.scss index ea4868194d3f..cb1d83f8ae0c 100644 --- a/pkg/metrics/metrics.scss +++ b/pkg/metrics/metrics.scss @@ -30,7 +30,7 @@ html { --resource-icon-color-middle: var(--pf-v5-global--palette--orange-500); --resource-icon-color-full: var(--pf-v5-global--palette--orange-200); - // Adjust alert color to seperate itself from the history section background + // Adjust alert color to separate itself from the history section background .pf-v5-c-alert { --pf-v5-c-alert--m-inline--m-info--BackgroundColor: var(--pf-v5-global--BackgroundColor--dark-400); } diff --git a/pkg/networkmanager/interfaces.js b/pkg/networkmanager/interfaces.js index 638bebe47a80..8e9b66d03beb 100644 --- a/pkg/networkmanager/interfaces.js +++ b/pkg/networkmanager/interfaces.js @@ -590,7 +590,7 @@ export function NetworkManagerModel() { listen_port: get("wireguard", "listen-port", 0), peers: get("wireguard", "peers", []).map(peer => ({ publicKey: peer['public-key'].v, - endpoint: peer.endpoint?.v, // enpoint of a peer is optional + endpoint: peer.endpoint?.v, // endpoint of a peer is optional allowedIps: peer['allowed-ips']?.v })), }; diff --git a/pkg/networkmanager/networking.scss b/pkg/networkmanager/networking.scss index 4d95817b9e39..ba8e7aafed4a 100644 --- a/pkg/networkmanager/networking.scss +++ b/pkg/networkmanager/networking.scss @@ -115,8 +115,8 @@ th { margin-inline-start: var(--pf-v5-global--spacer--sm); } -// The modal body, by default, overflows to accomodate extra content. This is -// normall good. However, it also can trim things that flow outside, such as +// The modal body, by default, overflows to accommodate extra content. This is +// normally good. However, it also can trim things that flow outside, such as // the focus ring of the MTU custom input. Since we know the modal won't have // much vertical content, we can disable the overflow to let the focus ring be // fully visible. (Otherwise the bottommost pixels are removed.) diff --git a/pkg/shell/machines/machines.js b/pkg/shell/machines/machines.js index ec61c6910d98..ad4abba22270 100644 --- a/pkg/shell/machines/machines.js +++ b/pkg/shell/machines/machines.js @@ -606,7 +606,7 @@ function Loader(machines, session_only) { interface: "org.freedesktop.DBus.Properties", member: "PropertiesChanged" }, - function (path, iface, mamber, args) { + function (path, iface, member, args) { if (args[0] == "cockpit.Packages") { if (args[1].Manifests) { const manifests = JSON.parse(args[1].Manifests.v); diff --git a/pkg/shell/nav.jsx b/pkg/shell/nav.jsx index 203079302995..5e170602a893 100644 --- a/pkg/shell/nav.jsx +++ b/pkg/shell/nav.jsx @@ -18,7 +18,7 @@ export const SidebarToggle = () => { /* This is a HACK for catching lost clicks on the pages which live in iframes so as to close dropdown menus on the shell. * Note: Clicks on an