Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fix random typos (#28103)

Jarek Radoszf14cf4f8a955
diff --git a/app/assets/javascripts/discourse-common/addon/lib/raw-handlebars-helpers.js b/app/assets/javascripts/discourse-common/addon/lib/raw-handlebars-helpers.js
index 03d874f7cc3..4040c26380e 100644
--- a/app/assets/javascripts/discourse-common/addon/lib/raw-handlebars-helpers.js
+++ b/app/assets/javascripts/discourse-common/addon/lib/raw-handlebars-helpers.js
@@ -96,7 +96,7 @@ function lazyLoadHelpers(hbs, owner) {
hbs.registerHelper("helperMissing", function (...args) {
const opts = args[args.length - 1];
if (opts?.name) {
- // Lookup and evaluate the relevant module. Raw helpers may be registed as a side effect
+ // Lookup and evaluate the relevant module. Raw helpers may be registered as a side effect
owner.lookup(`helper:${opts.name}`);
if (hbs.helpers[opts.name]) {
diff --git a/app/assets/javascripts/discourse/app/lib/plugin-api.gjs b/app/assets/javascripts/discourse/app/lib/plugin-api.gjs
index 1fa239e7fed..3fd4a2d8b5c 100644
--- a/app/assets/javascripts/discourse/app/lib/plugin-api.gjs
+++ b/app/assets/javascripts/discourse/app/lib/plugin-api.gjs
@@ -1934,7 +1934,7 @@ class PluginApi {
/**
* Allows for manipulation of the header icons. This includes, adding, removing, or modifying the order of icons.
*
- * Only the passing of components is supported, and by default the icons are added to the left of exisiting icons.
+ * Only the passing of components is supported, and by default the icons are added to the left of existing icons.
*
* Example: Add the chat icon to the header icons after the search icon
* ```
@@ -1984,7 +1984,7 @@ class PluginApi {
/**
* Allows for manipulation of the header buttons. This includes, adding, removing, or modifying the order of buttons.
*
- * Only the passing of components is supported, and by default the buttons are added to the left of exisiting buttons.
+ * Only the passing of components is supported, and by default the buttons are added to the left of existing buttons.
*
* Example: Add a `foo` button to the header buttons after the auth buttons
* ```
@@ -3032,7 +3032,7 @@ class PluginApi {
* @param {string} opts.class
* @param {buttonVisibilityCallback} opts.visible
* @param {buttonAction} opts.action
- * @param {string} opts.actionType - type of the action, either performanAndRefresh or setComponent
+ * @param {string} opts.actionType - type of the action, either performAndRefresh or setComponent
*/
addBulkActionButton(opts) {
addBulkDropdownButton(opts);
diff --git a/app/assets/javascripts/discourse/app/lib/swipe-events.js b/app/assets/javascripts/discourse/app/lib/swipe-events.js
index b0e53d27189..5b6515855aa 100644
--- a/app/assets/javascripts/discourse/app/lib/swipe-events.js
+++ b/app/assets/javascripts/discourse/app/lib/swipe-events.js
@@ -118,7 +118,7 @@ export default class SwipeEvents {
this.element.addEventListener("touchcancel", this.touchCancel, opts);
}
- // Remove touch listeners to be called by client on destory
+ // Remove touch listeners to be called by client on destroy
removeTouchListeners() {
this.element.removeEventListener("touchstart", this.touchStart);
this.element.removeEventListener("touchmove", this.touchMove);
diff --git a/app/assets/javascripts/discourse/app/lib/wait-for-keyboard.js b/app/assets/javascripts/discourse/app/lib/wait-for-keyboard.js
index 8eaf7c30b59..48a48485e63 100644
--- a/app/assets/javascripts/discourse/app/lib/wait-for-keyboard.js
+++ b/app/assets/javascripts/discourse/app/lib/wait-for-keyboard.js
@@ -25,7 +25,7 @@ export async function waitForClosedKeyboard(context) {
new Promise((resolve) => {
timeout = setTimeout(() => {
// eslint-disable-next-line no-console
- console.warn("Keyboard visibility didnt change after 1s.");
+ console.warn("Keyboard visibility didn't change after 1s.");
resolve();
}, 1000);
diff --git a/app/assets/javascripts/discourse/app/services/deprecation-warning-handler.js b/app/assets/javascripts/discourse/app/services/deprecation-warning-handler.js
index 59a75cea233..503d57de6a7 100644
--- a/app/assets/javascripts/discourse/app/services/deprecation-warning-handler.js
+++ b/app/assets/javascripts/discourse/app/services/deprecation-warning-handler.js
@@ -21,7 +21,7 @@ export const CRITICAL_DEPRECATIONS = [
/^(?!discourse\.)/, // All unsilenced ember deprecations
];
-// Deprecation handling APIs don't have any way to unregister handlers, so we set up permenant
+// Deprecation handling APIs don't have any way to unregister handlers, so we set up permanent
// handlers and link them up to the application lifecycle using module-local state.
let handler;
registerDeprecationHandler((message, opts, next) => {
diff --git a/app/assets/javascripts/float-kit/addon/services/internal-tooltip.js b/app/assets/javascripts/float-kit/addon/services/internal-tooltip.js
index d34070b899a..7db1b15356a 100644
--- a/app/assets/javascripts/float-kit/addon/services/internal-tooltip.js
+++ b/app/assets/javascripts/float-kit/addon/services/internal-tooltip.js
@@ -3,7 +3,7 @@ import Service from "@ember/service";
/*
This service holds the current tooltip displayed when using <DTooltip> component.
- All of these tooltips share a commong portal outlet element, which means
+ All of these tooltips share a common portal outlet element, which means
we have to ensure we close them before their html is replaced, otherwise
we end up with a detached element in the DOM and unexpected behavior.
*/
diff --git a/plugins/chat/test/javascripts/components/chat-channel-row-test.js b/plugins/chat/test/javascripts/components/chat-channel-row-test.js
index 89ded4b57c2..d1d659c4221 100644
--- a/plugins/chat/test/javascripts/components/chat-channel-row-test.js
+++ b/plugins/chat/test/javascripts/components/chat-channel-row-test.js
@@ -33,7 +33,7 @@ module("Discourse Chat | Component | chat-channel-row", function (hooks) {
assert.dom(".chat-channel-row").hasAttribute("tabindex", "0");
});
- test("channel data attrite tabbing", async function (assert) {
+ test("channel id data attribute", async function (assert) {
await render(hbs`<ChatChannelRow @channel={{this.categoryChatChannel}} />`);
assert