From 4616372e99745bc68b69d4960673fea85e5b7f14 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 11 Dec 2019 21:40:48 +0100 Subject: [PATCH] Fix various typos using `codespell` Command used: codespell -wi3 **/* --ignore-words-list "dur,fave,fo,receipient,te" --- assets/css/common/base.scss | 2 +- assets/js/interactions.js | 2 +- lib/philomena_web/templates/image/show.html.slime | 2 +- lib/philomena_web/templates/layout/_opengraph.html.slime | 2 +- lib/philomena_web/templates/registration/totp/edit.html.slime | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/assets/css/common/base.scss b/assets/css/common/base.scss index d5106b52..4b4a6749 100644 --- a/assets/css/common/base.scss +++ b/assets/css/common/base.scss @@ -48,7 +48,7 @@ h4 { margin-bottom: 0.5em; } -// Slightly dirty, no clean way to strip top margins off headers tho +// Slightly dirty, no clean way to strip top margins off headers though .remove-top-margin { margin-top: 0; } diff --git a/assets/js/interactions.js b/assets/js/interactions.js index 0607074c..ae6da698 100644 --- a/assets/js/interactions.js +++ b/assets/js/interactions.js @@ -166,7 +166,7 @@ function bindInteractions() { if (event.button === 0) { // Is it a left-click? for (const target in targets) { - /* Event delgation doesn't quite grab what we want here. */ + /* Event delegation doesn't quite grab what we want here. */ const link = event.target && event.target.closest(target); if (link) { diff --git a/lib/philomena_web/templates/image/show.html.slime b/lib/philomena_web/templates/image/show.html.slime index 7d60ffed..4f652020 100644 --- a/lib/philomena_web/templates/image/show.html.slime +++ b/lib/philomena_web/templates/image/show.html.slime @@ -19,7 +19,7 @@ .block.block--fixed.block--warning h4 You've been banned! p - ' You cannnot post comments or update metadata (or do anything but + ' You cannot post comments or update metadata (or do anything but ' read, really) until = pretty_time(@conn.assigns.current_ban.valid_until) diff --git a/lib/philomena_web/templates/layout/_opengraph.html.slime b/lib/philomena_web/templates/layout/_opengraph.html.slime index 56618cdf..f13398fd 100644 --- a/lib/philomena_web/templates/layout/_opengraph.html.slime +++ b/lib/philomena_web/templates/layout/_opengraph.html.slime @@ -16,7 +16,7 @@ meta name="robots" content="noindex, nofollow" meta property="dc:creator" content=tag.name_in_namespace = if image.source_url not in [nil, ""] do - meta propery="foaf:primaryTopic" content=image.source_url + meta property="foaf:primaryTopic" content=image.source_url link rel="alternate" type="application/json+oembed" href=Routes.api_json_oembed_url(@conn, :index, url: Routes.image_path(@conn, :show, image)) title="oEmbed JSON Profile" diff --git a/lib/philomena_web/templates/registration/totp/edit.html.slime b/lib/philomena_web/templates/registration/totp/edit.html.slime index 1e579a9c..bd6ece53 100644 --- a/lib/philomena_web/templates/registration/totp/edit.html.slime +++ b/lib/philomena_web/templates/registration/totp/edit.html.slime @@ -21,7 +21,7 @@ h1 Two Factor Authentication .block.block--fixed.block--success.layout--narrow h2 Two Factor Authentication Enabled p - ' You've sucessfully enabled two-factor authentication on your + ' You've successfully enabled two-factor authentication on your ' account. From now on you'll be asked for the 6 digit code each ' time you log in. p