DEV: Correct spelling mistakes in comments

This commit is contained in:
Josh Soref 2021-05-20 23:37:17 -04:00 committed by GitHub
parent afb2b4c6b9
commit 13d40ead97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 11 additions and 11 deletions

View File

@ -1,6 +1,6 @@
import Component from "@ember/component"; import Component from "@ember/component";
export default Component.extend({ export default Component.extend({
tagName: "h3", tagName: "h3",
// icon name defined here so it can be easily overriden in theme components // icon name defined here so it can be easily overridden in theme components
lockIcon: "lock", lockIcon: "lock",
}); });

View File

@ -757,7 +757,7 @@ class PluginApi {
* *
* Example: * Example:
* *
* addPostClassesCallback((atts) => {if (atts.post_number == 1) return ["first"];}) * addPostClassesCallback((attrs) => {if (attrs.post_number == 1) return ["first"];})
**/ **/
addPostClassesCallback(callback) { addPostClassesCallback(callback) {
addPostClassesCallback(callback); addPostClassesCallback(callback);

View File

@ -33,7 +33,7 @@ export function registerTopicFooterButton(button) {
ariaLabel: null, ariaLabel: null,
translatedAriaLabel: null, translatedAriaLabel: null,
// is this button disaplyed in the mobile dropdown or as an inline button ? // is this button displayed in the mobile dropdown or as an inline button ?
dropdown: false, dropdown: false,
// css class appended to the button // css class appended to the button

View File

@ -229,7 +229,7 @@ const User = RestModel.extend({
const allowedUsers = details && details.get("allowed_users"); const allowedUsers = details && details.get("allowed_users");
const groups = details && details.get("allowed_groups"); const groups = details && details.get("allowed_groups");
// directly targetted so go to inbox // directly targeted so go to inbox
if (!groups || (allowedUsers && allowedUsers.findBy("id", userId))) { if (!groups || (allowedUsers && allowedUsers.findBy("id", userId))) {
return userPath(`${username}/messages`); return userPath(`${username}/messages`);
} else { } else {

View File

@ -26,7 +26,7 @@ class RejectionMailer < ActionMailer::Base
# Send an email rejection message. # Send an email rejection message.
# #
# template - i18n key under system_messages # template - i18n key under system_messages
# message_from - Who to send the rejection messsage to # message_from - Who to send the rejection message to
# template_args - arguments to pass to i18n for interpolation into the message # template_args - arguments to pass to i18n for interpolation into the message
# Certain keys are disallowed in template_args to avoid confusing the # Certain keys are disallowed in template_args to avoid confusing the
# BuildEmailHelper. You can see the list in DISALLOWED_TEMPLATE_ARGS. # BuildEmailHelper. You can see the list in DISALLOWED_TEMPLATE_ARGS.

View File

@ -415,7 +415,7 @@ class Topic < ActiveRecord::Base
subtype == TopicSubtype.moderator_warning subtype == TopicSubtype.moderator_warning
end end
# all users (in groups or directly targetted) that are going to get the pm # all users (in groups or directly targeted) that are going to get the pm
def all_allowed_users def all_allowed_users
moderators_sql = " UNION #{User.moderators.to_sql}" if private_message? && (has_flags? || is_official_warning?) moderators_sql = " UNION #{User.moderators.to_sql}" if private_message? && (has_flags? || is_official_warning?)
User.from("(#{allowed_users.to_sql} UNION #{allowed_group_users.to_sql}#{moderators_sql}) as users") User.from("(#{allowed_users.to_sql} UNION #{allowed_group_users.to_sql}#{moderators_sql}) as users")

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true # frozen_string_literal: true
# we want MesageBus to be close to the front # we want MessageBus to be close to the front
# this is important cause the vast majority of web requests go to it # this is important cause the vast majority of web requests go to it
# this allows us to avoid full middleware crawls each time # this allows us to avoid full middleware crawls each time
# #

View File

@ -52,7 +52,7 @@ class Auth::Authenticator
false false
end end
# can exising discourse users connect this provider to their accounts # can existing discourse users connect this provider to their accounts
def can_connect_existing_user? def can_connect_existing_user?
false false
end end

View File

@ -19,7 +19,7 @@ class Auth::ManagedAuthenticator < Auth::Authenticator
info["email"] || info["nickname"] || info["name"] info["email"] || info["nickname"] || info["name"]
end end
# These three methods are designed to be overriden by child classes # These three methods are designed to be overridden by child classes
def match_by_email def match_by_email
true true
end end

View File

@ -11,7 +11,7 @@ def process_popmail(popmail)
end end
end end
desc "use this task to import a mailbox into Disourse" desc "use this task to import a mailbox into Discourse"
task "emails:import" => :environment do task "emails:import" => :environment do
begin begin
unless SiteSetting.email_in unless SiteSetting.email_in
@ -72,7 +72,7 @@ task 'emails:test', [:email] => [:environment] do |_, args|
Sending mail with Gmail is a violation of their terms of service. Sending mail with Gmail is a violation of their terms of service.
Sending with G Suite might work, but it is not recommended. For information see: Sending with G Suite might work, but it is not recommended. For information see:
https://meta.discourse.org/t/dscourse-aws-ec2-g-suite-troubleshoting/62931?u=pfaffman https://meta.discourse.org/t/discourse-aws-ec2-g-suite-troubleshooting/62931?u=pfaffman
========================= CONTINUING TEST ============================ ========================= CONTINUING TEST ============================
STR STR