A platform for community discussion. Free, open, simple.
DEV: Fix random typos (#25957)
Jarek Radosz5c54fbfdb192
diff --git a/app/assets/javascripts/admin/addon/models/admin-plugin.js b/app/assets/javascripts/admin/addon/models/admin-plugin.jsindex eec9516bb65..0fdf16b9460 100644--- a/app/assets/javascripts/admin/addon/models/admin-plugin.js+++ b/app/assets/javascripts/admin/addon/models/admin-plugin.js@@ -55,7 +55,7 @@ export default class AdminPlugin {get nameTitleized() {// The category name is better in a lot of cases, as it's a human-inputted// translation, and we can handle things like SAML instead of showing them- // as Saml from discourse-saml. We can fall back to the programattic version+ // as Saml from discourse-saml. We can fall back to the programmatic version// though if needed.let name;if (this.translatedCategoryName) {diff --git a/app/assets/javascripts/discourse/app/lib/plugin-api.js b/app/assets/javascripts/discourse/app/lib/plugin-api.jsindex 6fa7b09a7a1..adb83e97bb5 100644--- a/app/assets/javascripts/discourse/app/lib/plugin-api.js+++ b/app/assets/javascripts/discourse/app/lib/plugin-api.js@@ -627,10 +627,10 @@ class PluginApi {** ```*- * action: may be a string or a function. If it is a string, a wiget action+ * action: may be a string or a function. If it is a string, a widget action* will be triggered. If it is function, the function will be called.*- * function will recieve a single argument:+ * function will receive a single argument:* {* post:* showFeedback:diff --git a/app/assets/javascripts/discourse/app/loader-shims.js b/app/assets/javascripts/discourse/app/loader-shims.jsindex 4e2e3153da0..cad2dc704c1 100644--- a/app/assets/javascripts/discourse/app/loader-shims.js+++ b/app/assets/javascripts/discourse/app/loader-shims.js@@ -1,7 +1,7 @@import { importSync } from "@embroider/macros";import loaderShim from "discourse-common/lib/loader-shim";-// AMD shims for the app bunndle, see the comment in loader-shim.js+// AMD shims for the app bundle, see the comment in loader-shim.js// These effectively become public APIs for plugins, so add/remove them carefullyloaderShim("@discourse/itsatrap", () => importSync("@discourse/itsatrap"));loaderShim("@ember-compat/tracked-built-ins", () =>diff --git a/app/assets/javascripts/discourse/tests/loader-shims.js b/app/assets/javascripts/discourse/tests/loader-shims.jsindex 41c2b164053..39ccb753492 100644--- a/app/assets/javascripts/discourse/tests/loader-shims.js+++ b/app/assets/javascripts/discourse/tests/loader-shims.js@@ -1,7 +1,7 @@import { importSync } from "@embroider/macros";import loaderShim from "discourse-common/lib/loader-shim";-// AMD shims for the test bunndle, see the comment in loader-shim.js+// AMD shims for the test bundle, see the comment in loader-shim.jsloaderShim("pretender", () => importSync("pretender"));loaderShim("qunit", () => importSync("qunit"));loaderShim("sinon", () => importSync("sinon"));diff --git a/plugins/chat/spec/system/chat_composer_draft_spec.rb b/plugins/chat/spec/system/chat_composer_draft_spec.rbindex 60ec32d67b4..c64aa3dcce0 100644--- a/plugins/chat/spec/system/chat_composer_draft_spec.rb+++ b/plugins/chat/spec/system/chat_composer_draft_spec.rb@@ -129,7 +129,7 @@ RSpec.describe "Chat composer draft", type: :system do)end- it "loads the draft with replied to mesage" do+ it "loads the draft with replied to message" dochat_page.visit_channel(channel_1)expect(channel_page.composer.value).to eq("draft")diff --git a/spec/fabricators/post_fabricator.rb b/spec/fabricators/post_fabricator.rbindex 30cb72e395c..8e908b8bae5 100644--- a/spec/fabricators/post_fabricator.rb+++ b/spec/fabricators/post_fabricator.rb@@ -78,7 +78,7 @@ Fabricator(:post_with_uploaded_image, from: :post) doendFabricator(:post_with_an_attachment, from: :post) do- raw "<a class=\"attachment\" href=\"/#{Discourse.store.upload_path}/origina/1X/66b3ed1503efc936.zip\">archive.zip</a>"+ raw "<a class=\"attachment\" href=\"/#{Discourse.store.upload_path}/original/1X/66b3ed1503efc936.zip\">archive.zip</a>"endFabricator(:post_with_unsized_images, from: :post) dodiff --git a/spec/lib/plugin/instance_spec.rb b/spec/lib/plugin/instance_spec.rbindex dd9f4464e09..60485e36d60 100644--- a/spec/lib/plugin/instance_spec.rb+++ b/spec/lib/plugin/instance_spec.rb@@ -40,7 +40,7 @@ TEXTendit "the plugin name the plugin site settings are still under the generic plugins: category" do- plugin_instance.stubs(:setting_catgory).returns("plugins")+ plugin_instance.stubs(:setting_category).returns("plugins")expect(plugin_instance.humanized_name).to eq("sample-plugin")enddiff --git a/spec/models/post_spec.rb b/spec/models/post_spec.rbindex 47428f10b53..1e434f06d57 100644--- a/spec/models/post_spec.rb+++ b/spec/models/post_spec.rb@@ -716,7 +716,7 @@ RSpec.describe Post doSiteSetting.max_mentions_per_post = 1end- it "allows vmax_mentions_per_post mentions" do+ it "allows max_mentions_per_post mentions" dopost_with_one_mention.user.trust_level = TrustLevel[1]expect(post_with_one_mention).to be_validenddiff --git a/spec/requests/categories_controller_spec.rb b/spec/requests/categories_controller_spec.rbindex 0b8fdf4c3a6..aa12a3b4b30 100644--- a/spec/requests/categories_controller_spec.rb+++ b/spec/requests/categories_controller_spec.rb@@ -66,7 +66,7 @@ RSpec.describe CategoriesController do)end- it "does not returns subcatgories without permission" do+ it "does not returns subcategories without permission" dosubcategory = Fabricate(:category, user: admin, parent_category: category)subcategory.set_permissions(admins: :full)subcategory.save!diff --git a/spec/system/topic_page_spec.rb b/spec/system/topic_page_spec.rbindex 600f20d8dba..b8325c3b38a 100644--- a/spec/system/topic_page_spec.rb+++ b/spec/system/topic_page_spec.rb@@ -61,7 +61,7 @@ describe "Topic page", type: :system dosign_in Fabricate(:admin)end- it "displays the gap to admins, and alows them to expand it" do+ it "displays the gap to admins, and allows them to expand it" dovisit "/t/#{topic.slug}/#{topic.id}"expect(page).to have_css(".topic-post", count: 2)