diff --git a/app/assets/javascripts/initializers/initializePodcastPlayback.js b/app/assets/javascripts/initializers/initializePodcastPlayback.js index 3a046a889..91630e7b6 100644 --- a/app/assets/javascripts/initializers/initializePodcastPlayback.js +++ b/app/assets/javascripts/initializers/initializePodcastPlayback.js @@ -268,7 +268,7 @@ function initializePodcastPlayback() { setPlaying(true); resolve(); } else { - audio.currrentTime = currentState.currentTime; + audio.currentTime = currentState.currentTime; audio .play() .then(function () { diff --git a/app/assets/javascripts/utilities/buildCommentFormHTML.js.erb b/app/assets/javascripts/utilities/buildCommentFormHTML.js.erb index 866068185..8191604cb 100644 --- a/app/assets/javascripts/utilities/buildCommentFormHTML.js.erb +++ b/app/assets/javascripts/utilities/buildCommentFormHTML.js.erb @@ -18,7 +18,7 @@ function buildCommentFormHTML(commentableId, commentableType, parentId) {
- ${ iconCollaspe } + ${ iconCollapse } ${ iconExpand } diff --git a/app/assets/javascripts/utilities/showUserAlertModal.js b/app/assets/javascripts/utilities/showUserAlertModal.js index fe811a54c..614aaeede 100644 --- a/app/assets/javascripts/utilities/showUserAlertModal.js +++ b/app/assets/javascripts/utilities/showUserAlertModal.js @@ -82,14 +82,14 @@ function showModalAfterError({ }) { response .json() - .then(function parseError(errorReponse) { + .then(function parseError(errorResponse) { if (response.status === 429) { showRateLimitModal({ element, action_ing, action_past, timeframe }); } else { showUserAlertModal( `Error ${action_ing} ${element}`, `Your ${element} could not be ${action_past} due to an error: ` + - errorReponse.error, + errorResponse.error, 'OK', ); } diff --git a/app/controllers/admin/organizations_controller.rb b/app/controllers/admin/organizations_controller.rb index 5c9780d28..87c9dc241 100644 --- a/app/controllers/admin/organizations_controller.rb +++ b/app/controllers/admin/organizations_controller.rb @@ -30,7 +30,7 @@ module Admin Credit.public_send(update_action, org, amount) add_note(org) - flash[:notice] = "Sucessfully updated credits" + flash[:notice] = "Successfully updated credits" redirect_to admin_organization_path(org) end diff --git a/app/controllers/articles_controller.rb b/app/controllers/articles_controller.rb index c6b8b85f2..d8f4779c3 100644 --- a/app/controllers/articles_controller.rb +++ b/app/controllers/articles_controller.rb @@ -52,7 +52,7 @@ class ArticlesController < ApplicationController end def new - base_editor_assigments + base_editor_assignments @article, needs_authorization = Articles::Builder.call(@user, @tag, @prefill) @@ -216,7 +216,7 @@ class ArticlesController < ApplicationController private - def base_editor_assigments + def base_editor_assignments @user = current_user @version = @user.setting.editor_version if @user @organizations = @user&.organizations diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index 7294f4ab1..c42d2e98b 100644 --- a/app/controllers/comments_controller.rb +++ b/app/controllers/comments_controller.rb @@ -50,7 +50,7 @@ class CommentsController < ApplicationController @comment.user_id = current_user.id authorize @comment - permit_commentor + permit_commenter if @comment.save checked_code_of_conduct = params[:checked_code_of_conduct].present? && !current_user.checked_code_of_conduct @@ -106,7 +106,7 @@ class CommentsController < ApplicationController @comment.user_id = moderator.id @comment.body_markdown = response_template.content authorize @comment - permit_commentor + permit_commenter if @comment.save Notification.send_new_comment_notifications_without_delay(@comment) @@ -312,7 +312,7 @@ class CommentsController < ApplicationController end end - def permit_commentor + def permit_commenter return unless user_blocked? raise ModerationUnauthorizedError, "Not allowed due to moderation action" diff --git a/app/javascript/Search/__tests__/SearchFormSync.test.jsx b/app/javascript/Search/__tests__/SearchFormSync.test.jsx index 428fcd27f..344541b51 100644 --- a/app/javascript/Search/__tests__/SearchFormSync.test.jsx +++ b/app/javascript/Search/__tests__/SearchFormSync.test.jsx @@ -17,7 +17,7 @@ describe(' ', () => {
document.body.innerHTML =
'';
- setWindowLocation(`https://locahost:3000/`);
+ setWindowLocation(`https://localhost:3000/`);
global.InstantClick = jest.fn(() => ({
on: jest.fn(),
@@ -41,7 +41,7 @@ describe(' ', () => {
const searchTerm = 'diphthong';
// simulates a search result returned which contains the server side rendered search form for mobile only.
- setWindowLocation(`https://locahost:3000/search?q=${searchTerm}`);
+ setWindowLocation(`https://localhost:3000/search?q=${searchTerm}`);
fireEvent(
window,
@@ -72,7 +72,7 @@ describe(' ', () => {
const searchTerm = 'diphthong';
// simulates a search result returned which contains the server side rendered search form for mobile only.
- setWindowLocation(`https://locahost:3000/search?q=${searchTerm}`);
+ setWindowLocation(`https://localhost:3000/search?q=${searchTerm}`);
fireEvent(
window,
@@ -91,7 +91,7 @@ describe(' ', () => {
const searchTerm2 = 'diphthong2';
// simulates a search result returned which contains the server side rendered search form for mobile only.
- setWindowLocation(`https://locahost:3000/search?q=${searchTerm2}`);
+ setWindowLocation(`https://localhost:3000/search?q=${searchTerm2}`);
const oldPortalContainer = document.getElementById(
'mobile-search-container',
diff --git a/app/javascript/crayons/Buttons/__stories__/Buttons.mdx b/app/javascript/crayons/Buttons/__stories__/Buttons.mdx
index 4ef137697..ca2fb29a2 100644
--- a/app/javascript/crayons/Buttons/__stories__/Buttons.mdx
+++ b/app/javascript/crayons/Buttons/__stories__/Buttons.mdx
@@ -29,7 +29,7 @@ Primary buttons should be used for the principal call to action on the page.
Default variant is less prominent, and therefore can be used for less prominent actions.
Default buttons are visually light (greyish) and you can have as many of them as you want (within common sense :D).
-They can (but don't have to) be used in conjuction with a Primary button. In that case, default variant should be used for any remaining actions.
+They can (but don't have to) be used in conjunction with a Primary button. In that case, default variant should be used for any remaining actions.
## Configuration
diff --git a/app/javascript/crayons/CTAs/__stories__/CTAs.mdx b/app/javascript/crayons/CTAs/__stories__/CTAs.mdx
index 1ab64905e..7427db1ff 100644
--- a/app/javascript/crayons/CTAs/__stories__/CTAs.mdx
+++ b/app/javascript/crayons/CTAs/__stories__/CTAs.mdx
@@ -16,7 +16,7 @@ Do not use `s` as navigational elements. Instead, use Links (or CTAs)
Under the hood, CTA outputs `` element.
-Call To Actions has slighlty different UI than regular `` as our intention here was to make these more prominent.
+Call To Actions has slightly different UI than regular `` as our intention here was to make these more prominent.
` ` is basically a `` therefore standard link markup should be used, including an `href` (links omitting `href` attributes are not focusable by keyboard).
### Icons
diff --git a/app/javascript/crayons/Indicator/__stories__/indicators.md b/app/javascript/crayons/Indicator/__stories__/indicators.md
index 5a91b2227..c7d18c43b 100644
--- a/app/javascript/crayons/Indicator/__stories__/indicators.md
+++ b/app/javascript/crayons/Indicator/__stories__/indicators.md
@@ -20,4 +20,4 @@ And there arere four styles to pick from:
- Critical (red) - something super important, don't overuse it!!
- Inverted (dark grey) - alternative to the default one, especially when we need
- to show two defautl indicators next to each other.
+ to show two default indicators next to each other.
diff --git a/app/javascript/crayons/Links/__stories__/Links.mdx b/app/javascript/crayons/Links/__stories__/Links.mdx
index f57e75eb6..4f4859e95 100644
--- a/app/javascript/crayons/Links/__stories__/Links.mdx
+++ b/app/javascript/crayons/Links/__stories__/Links.mdx
@@ -23,7 +23,7 @@ Both variants are just fine and which one you gonna use is dependent on the cont
### Variants (styles)
There are two available variants (styles) to pick from: _default_ and _branded_. The primary difference is color: _default_ uses grey color and _branded_ uses accent color.
-It is recommended to always use `branded` variant for inline links, epsecially when link is used alongside other text - making it `branded` will make it more distinguishable.
+It is recommended to always use `branded` variant for inline links, especially when link is used alongside other text - making it `branded` will make it more distinguishable.
### Icons
diff --git a/app/javascript/crayons/typography/__stories__/accented-typography.md b/app/javascript/crayons/typography/__stories__/accented-typography.md
index a6346b44a..e322fafb1 100644
--- a/app/javascript/crayons/typography/__stories__/accented-typography.md
+++ b/app/javascript/crayons/typography/__stories__/accented-typography.md
@@ -5,5 +5,5 @@ the main font.
Please, do not overuse Accent typography.
-We strongly encourage to limit number of sizes and weights to what presesented
+We strongly encourage to limit number of sizes and weights to what presented
below.
diff --git a/app/javascript/readingList/components/__stories__/MediaQuery.stories.mdx b/app/javascript/readingList/components/__stories__/MediaQuery.stories.mdx
index 45234c750..d496fa0b0 100644
--- a/app/javascript/readingList/components/__stories__/MediaQuery.stories.mdx
+++ b/app/javascript/readingList/components/__stories__/MediaQuery.stories.mdx
@@ -6,7 +6,7 @@ import { Meta } from '@storybook/addon-docs/blocks';
# Media Queries
-[Media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries) allow us to create responsive experiences by changing the look and feel of a component based on the given media query. This can be done from CSS, but also programatically via JavaScript. This works well with a component because it **allows us to render only certain markup** based on the evaluated media query unlike a CSS media query which would apply to existing markup.
+[Media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries) allow us to create responsive experiences by changing the look and feel of a component based on the given media query. This can be done from CSS, but also programmatically via JavaScript. This works well with a component because it **allows us to render only certain markup** based on the evaluated media query unlike a CSS media query which would apply to existing markup.
## Breakpoints
diff --git a/app/lib/constants/settings/user_experience.rb b/app/lib/constants/settings/user_experience.rb
index 15d18b17d..f5d9c64bd 100644
--- a/app/lib/constants/settings/user_experience.rb
+++ b/app/lib/constants/settings/user_experience.rb
@@ -6,7 +6,7 @@ module Constants
description: "Determines the default reading font (registered users can change this in their UX settings)"
},
default_locale: {
- description: "Determines the default language and lozalization for the Forem (currently in experimental beta)"
+ description: "Determines the default language and localization for the Forem (currently in experimental beta)"
},
feed_strategy: {
description: "Determines the main feed algorithm approach the app takes: basic or large_forem_experimental " \
diff --git a/app/lib/reverse_markdown/converters/custom_text.rb b/app/lib/reverse_markdown/converters/custom_text.rb
index 28148e303..8c94b7a1e 100644
--- a/app/lib/reverse_markdown/converters/custom_text.rb
+++ b/app/lib/reverse_markdown/converters/custom_text.rb
@@ -13,7 +13,7 @@ module ReverseMarkdown
def treat_empty(node)
parent = node.parent.name.to_sym
- if %i[ol ul].include?(parent) # Otherwise the identation is broken
+ if %i[ol ul].include?(parent) # Otherwise the indentation is broken
""
elsif node.text == " " # Regular whitespace text node
" "
diff --git a/app/models/user.rb b/app/models/user.rb
index ae1c98e13..7fa2d66d9 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -375,7 +375,7 @@ class User < ApplicationRecord
has_role?(:tech_admin) || has_role?(:super_admin)
end
- def vomitted_on?
+ def vomited_on?
Reaction.exists?(reactable_id: id, reactable_type: "User", category: "vomit", status: "confirmed")
end
diff --git a/app/services/mailchimp/bot.rb b/app/services/mailchimp/bot.rb
index b038474ef..b618b9f11 100644
--- a/app/services/mailchimp/bot.rb
+++ b/app/services/mailchimp/bot.rb
@@ -45,7 +45,7 @@ module Mailchimp
report_error(e)
rescue Gibbon::MailChimpError => e
# If user was previously subscribed, set their status to "pending"
- return resubscribe_to_newsletter if previously_subcribed?(e)
+ return resubscribe_to_newsletter if previously_subscribed?(e)
report_error(e)
end
@@ -196,7 +196,7 @@ module Mailchimp
md5_email(email)
end
- def previously_subcribed?(error)
+ def previously_subscribed?(error)
error.title.include?("Member In Compliance State")
end
end
diff --git a/app/services/re_captcha/check_enabled.rb b/app/services/re_captcha/check_enabled.rb
index 213edc5a3..12e554f84 100644
--- a/app/services/re_captcha/check_enabled.rb
+++ b/app/services/re_captcha/check_enabled.rb
@@ -25,7 +25,7 @@ module ReCaptcha
return true if @user.suspended?
# recaptcha will be enabled if the user has a vomit or is too recent
- @user.vomitted_on? || @user.created_at.after?(1.month.ago)
+ @user.vomited_on? || @user.created_at.after?(1.month.ago)
end
private
diff --git a/app/views/admin/feedback_messages/_abuse_reports.html.erb b/app/views/admin/feedback_messages/_abuse_reports.html.erb
index 956f31abb..c7ac7c4d4 100644
--- a/app/views/admin/feedback_messages/_abuse_reports.html.erb
+++ b/app/views/admin/feedback_messages/_abuse_reports.html.erb
@@ -41,8 +41,8 @@
<% if reaction.reactable_type == "User" && reaction.reactable.suspended? %>
Suspended
<% end %>
- <% if reaction.reactable_type == "User" && reaction.reactable.vomitted_on? %>
- Vomitted
+ <% if reaction.reactable_type == "User" && reaction.reactable.vomited_on? %>
+ Vomited
<% end %>
diff --git a/app/views/admin/html_variants/show.html.erb b/app/views/admin/html_variants/show.html.erb
index 3ff1468a7..6b3b1335a 100644
--- a/app/views/admin/html_variants/show.html.erb
+++ b/app/views/admin/html_variants/show.html.erb
@@ -1,5 +1,5 @@
- HMTL Variant Preview
+ HTML Variant Preview
diff --git a/app/views/admin/organizations/show.html.erb b/app/views/admin/organizations/show.html.erb
index 2f0150ab8..eb51f7882 100644
--- a/app/views/admin/organizations/show.html.erb
+++ b/app/views/admin/organizations/show.html.erb
@@ -37,7 +37,7 @@
<% current_credits = @organization.unspent_credits_count %>
-
<%= hidden_field_tag :credit_action, :add %>
diff --git a/app/views/dashboards/_analytics.html.erb b/app/views/dashboards/_analytics.html.erb
index 4684c1053..7bc18d9f3 100644
--- a/app/views/dashboards/_analytics.html.erb
+++ b/app/views/dashboards/_analytics.html.erb
@@ -2,12 +2,12 @@
- <%= number_with_delimiter(@reactions_count, delimeter: ",") %>
+ <%= number_with_delimiter(@reactions_count, delimiter: ",") %>
<%= t("views.dashboard.summary.reactions") %>
- <%= num_views > 500 ? number_with_delimiter(num_views, delimeter: ",") : t("views.dashboard.summary.lt_500") %>
+ <%= num_views > 500 ? number_with_delimiter(num_views, delimiter: ",") : t("views.dashboard.summary.lt_500") %>
<%= t("views.dashboard.summary.views") %>
diff --git a/app/views/listings/_form.html.erb b/app/views/listings/_form.html.erb
index 0c34cb7e7..37acf324f 100644
--- a/app/views/listings/_form.html.erb
+++ b/app/views/listings/_form.html.erb
@@ -33,7 +33,7 @@
- <%# The following tag_list field is overriden by the Tags JS component
+ <%# The following tag_list field is overridden by the Tags JS component
from the listingForm. We keep this form field in place to facilitate
SSR. By having the form field loaded on the DOM first with this view,
we prevent the screen from "jumping" once the deferred JS is loaded
diff --git a/app/views/pages/_privacy_text.html.erb b/app/views/pages/_privacy_text.html.erb
index 3501e0245..ad9773afe 100644
--- a/app/views/pages/_privacy_text.html.erb
+++ b/app/views/pages/_privacy_text.html.erb
@@ -62,7 +62,7 @@
<%= link_to "Back to admin page", "javascript:history.back()" %>
Credits (currrent: <%= current_credits %>)
+Credits (current: <%= current_credits %>)
<%= form_tag update_org_credits_admin_organization_path(@organization), method: :patch, class: "form-inline justify-content-between mb-2" do %><%= t("views.listings.form.category.summary") %>
All registered members have the ability to disable advertisements — where reasonable — through their Settings page. For instance, it’s not feasible to disable certain advertisements in the form of recognition posts, site-wide contests, dedicated sponsorship page, etc.
Third Party Vendors
- We may share your account information with third parties in some circumstances, including: (1) with your consent; (2) to a service provider or partner who meets our data protection standards; (3) for survey or research purposes, after aggregation, anonymization, or pseudonomization; (4) when we have a good faith belief it is required by law, such as pursuant to a subpoena or other legal process; (5) when we have a good faith belief that doing so will help prevent imminent harm to someone. + We may share your account information with third parties in some circumstances, including: (1) with your consent; (2) to a service provider or partner who meets our data protection standards; (3) for survey or research purposes, after aggregation, anonymization, or pseudonymization; (4) when we have a good faith belief it is required by law, such as pursuant to a subpoena or other legal process; (5) when we have a good faith belief that doing so will help prevent imminent harm to someone.
Data Storage
diff --git a/app/views/users/confirm_destroy.html.erb b/app/views/users/confirm_destroy.html.erb index be9aa5df4..4ff7c7268 100644 --- a/app/views/users/confirm_destroy.html.erb +++ b/app/views/users/confirm_destroy.html.erb @@ -33,13 +33,13 @@
<%= t("views.settings.destroy.ghost_html", ghost: link_to("@ghost", "/ghost"), click: email_link(text: t("views.settings.destroy.click"), additional_info: { subject: "Request Account Deletion", body: @email_body })) %> diff --git a/bin/untranslated_erb b/bin/untranslated_erb index d341443f9..eb418c87c 100755 --- a/bin/untranslated_erb +++ b/bin/untranslated_erb @@ -4,7 +4,7 @@ require 'rails-html-sanitizer' class I18nExtractor ERB_TAG = /<%(.*?)%>/ HTML_TAG = /<[^>]*>|<\/[^>]*>|[^>]*\/>|\".+">|">|<\w+(.+|)|.+="(.+)|"/ - SEPERATOR = '_@@@_' + SEPARATOR = '_@@@_' SKIP_TAGS = [[/