diff --git a/app/assets/javascripts/discourse/app/components/quote-button.js b/app/assets/javascripts/discourse/app/components/quote-button.js index c5a7038b4fb..06d5b3d8b12 100644 --- a/app/assets/javascripts/discourse/app/components/quote-button.js +++ b/app/assets/javascripts/discourse/app/components/quote-button.js @@ -58,7 +58,7 @@ export default Component.extend(KeyEnterEscape, { _isFastEditable: false, _displayFastEditInput: false, - _fastEditInitalSelection: null, + _fastEditInitialSelection: null, _fastEditNewSelection: null, _isSavingFastEdit: false, _canEditPost: false, @@ -76,7 +76,7 @@ export default Component.extend(KeyEnterEscape, { this.set("_isFastEditable", false); this.set("_displayFastEditInput", false); - this.set("_fastEditInitalSelection", null); + this.set("_fastEditInitialSelection", null); this.set("_fastEditNewSelection", null); }, @@ -205,11 +205,11 @@ export default Component.extend(KeyEnterEscape, { matches?.length > 1 // duplicates are too complex ) { this.set("_isFastEditable", false); - this.set("_fastEditInitalSelection", null); + this.set("_fastEditInitialSelection", null); this.set("_fastEditNewSelection", null); } else if (matches?.length === 1) { this.set("_isFastEditable", true); - this.set("_fastEditInitalSelection", quoteState.buffer); + this.set("_fastEditInitialSelection", quoteState.buffer); this.set("_fastEditNewSelection", quoteState.buffer); } } @@ -429,7 +429,7 @@ export default Component.extend(KeyEnterEscape, { }, _saveFastEditDisabled: propertyEqual( - "_fastEditInitalSelection", + "_fastEditInitialSelection", "_fastEditNewSelection" ), @@ -509,7 +509,7 @@ export default Component.extend(KeyEnterEscape, { return ajax(`/posts/${postModel.id}`, { type: "GET", cache: false }) .then((result) => { const newRaw = result.raw.replace( - fixQuotes(this._fastEditInitalSelection), + fixQuotes(this._fastEditInitialSelection), fixQuotes(this._fastEditNewSelection) ); diff --git a/app/assets/stylesheets/common/base/topic-post.scss b/app/assets/stylesheets/common/base/topic-post.scss index 547d3969ebe..a059af71162 100644 --- a/app/assets/stylesheets/common/base/topic-post.scss +++ b/app/assets/stylesheets/common/base/topic-post.scss @@ -637,7 +637,7 @@ aside.quote { opacity: 1; transition: opacity 0.3s ease-in-out; } - // this psuedo element creates a transition buffer zone + // this pseudo element creates a transition buffer zone // without it, the width change on hover can cause transition jitter // the width is roughly wide enough to cover long translations of "share" &:after { diff --git a/documentation/chat/backend/Chat/Service/Base/Context.html b/documentation/chat/backend/Chat/Service/Base/Context.html index a0031bd16ec..138ce872301 100644 --- a/documentation/chat/backend/Chat/Service/Base/Context.html +++ b/documentation/chat/backend/Chat/Service/Base/Context.html @@ -217,7 +217,7 @@
-

Returns true if the conext is set as successful (default).

+

Returns true if the context is set as successful (default).

@@ -440,7 +440,7 @@
-

Returns true if the conext is set as successful (default)

+

Returns true if the context is set as successful (default)

@@ -459,7 +459,7 @@ —
-

returns true if the conext is set as successful (default)

+

returns true if the context is set as successful (default)

diff --git a/lib/discourse.rb b/lib/discourse.rb index 36cf8fca6c5..2256998421d 100644 --- a/lib/discourse.rb +++ b/lib/discourse.rb @@ -603,7 +603,7 @@ module Discourse USER_READONLY_MODE_KEY ||= "readonly_mode:user" PG_FORCE_READONLY_MODE_KEY ||= "readonly_mode:postgres_force" - # Psuedo readonly mode, where staff can still write + # Pseudo readonly mode, where staff can still write STAFF_WRITES_ONLY_MODE_KEY ||= "readonly_mode:staff_writes_only" READONLY_KEYS ||= [ diff --git a/lib/upload_creator.rb b/lib/upload_creator.rb index c826a4b906f..0933264061d 100644 --- a/lib/upload_creator.rb +++ b/lib/upload_creator.rb @@ -82,7 +82,7 @@ class UploadCreator # in S3 # # FIXME: I've added a bunch of external_upload_too_big checks littered - # throughout the UploadCreator code. It would be better to have two seperate + # throughout the UploadCreator code. It would be better to have two separate # classes with shared methods, rather than doing all these checks all over the # place. Needs a refactor. external_upload_too_big = @opts[:external_upload_too_big] diff --git a/plugins/chat/app/services/service/base.rb b/plugins/chat/app/services/service/base.rb index ccd35016cc8..fff8b0e414a 100644 --- a/plugins/chat/app/services/service/base.rb +++ b/plugins/chat/app/services/service/base.rb @@ -18,7 +18,7 @@ module Service # Simple structure to hold the context of the service during its whole lifecycle. class Context < OpenStruct - # @return [Boolean] returns +true+ if the conext is set as successful (default) + # @return [Boolean] returns +true+ if the context is set as successful (default) def success? !failure? end diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-thread.js b/plugins/chat/assets/javascripts/discourse/components/chat-thread.js index 94cbc482651..1ca9041181b 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat-thread.js +++ b/plugins/chat/assets/javascripts/discourse/components/chat-thread.js @@ -45,7 +45,7 @@ export default class ChatThreadPanel extends Component { this.requestedTargetMessageId = parseInt(this.args.targetMessageId, 10); } - // TODO (martin) Loading/scrolling to selected messagew + // TODO (martin) Loading/scrolling to selected message // this.highlightOrFetchMessage(this.requestedTargetMessageId); // if (this.requestedTargetMessageId) { // } else { @@ -145,7 +145,7 @@ export default class ChatThreadPanel extends Component { messageData.expanded = !(messageData.hidden || messageData.deleted_at); } - // newest has to be in after fetcg callback as we don't want to make it + // newest has to be in after fetch callback as we don't want to make it // dynamic or it will make the pane jump around, it will disappear on reload if ( !foundFirstNew && diff --git a/script/import_scripts/mbox/settings.yml b/script/import_scripts/mbox/settings.yml index 639ee0fea33..28a77aeb3d9 100644 --- a/script/import_scripts/mbox/settings.yml +++ b/script/import_scripts/mbox/settings.yml @@ -55,7 +55,7 @@ remove_subject_prefixes: # attempt to get the actual sender's address from other available headers like Reply-To or the /^From / line fix_mailman_via_addresses: false -# Elide up to last occurence of = in addresses (BATV, etc) +# Elide up to last occurrence of = in addresses (BATV, etc) # ie. normalize these: # prvs=00377ab9a2=someone@somewhere.com # bounces+840901-dbd9-flang-dev=someone@somewhere.com diff --git a/spec/services/hashtag_autocomplete_service_spec.rb b/spec/services/hashtag_autocomplete_service_spec.rb index 986124548dd..eeb4dd74b8c 100644 --- a/spec/services/hashtag_autocomplete_service_spec.rb +++ b/spec/services/hashtag_autocomplete_service_spec.rb @@ -14,7 +14,7 @@ RSpec.describe HashtagAutocompleteService do after { DiscoursePluginRegistry.reset! } describe ".contexts_with_ordered_types" do - it "returns a hash of all the registrered search contexts and their types in the defined priority order" do + it "returns a hash of all the registered search contexts and their types in the defined priority order" do expect(HashtagAutocompleteService.contexts_with_ordered_types).to eq( { "topic-composer" => %w[category tag] }, ) @@ -230,7 +230,7 @@ RSpec.describe HashtagAutocompleteService do end fab!(:tag4) { Fabricate(:tag, name: "book", staff_topic_count: 1, public_topic_count: 1) } - it "returns the 'most polular' categories and tags (based on topic_count) that the user can access" do + it "returns the 'most popular' categories and tags (based on topic_count) that the user can access" do category1.update!(read_restricted: true) Fabricate(:tag_group, permissions: { "staff" => 1 }, tag_names: ["terrible-books"])