Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Fix random typos (#2375)

Adam Rutkowskid29597ed37af
diff --git a/lib/mix/tasks/send_pageview.ex b/lib/mix/tasks/send_pageview.ex
index dcbcaf0929..14840a5d3d 100644
--- a/lib/mix/tasks/send_pageview.ex
+++ b/lib/mix/tasks/send_pageview.ex
@@ -35,7 +35,7 @@ defmodule Mix.Tasks.SendPageview do
[invalid_option | _] ->
{key, _val} = invalid_option
- IO.puts("Invalid opton #{key}. Aborting.")
+ IO.puts("Invalid option #{key}. Aborting.")
IO.puts(usage())
end
end
@@ -52,7 +52,7 @@ defmodule Mix.Tasks.SendPageview do
case Plausible.HTTPClient.post(url, headers, body) do
{:ok, _} ->
IO.puts(
- "✅ Succesfully sent #{body[:name]} event to #{url} ✅ \n\nip=#{ip}\nuser_agent=#{user_agent}\nbody= #{inspect(body, pretty: true)}"
+ "✅ Successfully sent #{body[:name]} event to #{url} ✅ \n\nip=#{ip}\nuser_agent=#{user_agent}\nbody= #{inspect(body, pretty: true)}"
)
{:error, e} ->
diff --git a/lib/plausible_web/controllers/stats_controller.ex b/lib/plausible_web/controllers/stats_controller.ex
index 6eef88d336..8a4e7d9906 100644
--- a/lib/plausible_web/controllers/stats_controller.ex
+++ b/lib/plausible_web/controllers/stats_controller.ex
@@ -4,7 +4,7 @@ defmodule PlausibleWeb.StatsController do
The stats dashboards are currently the only part of the app that uses client-side
rendering. Since the dashboards are heavily interactive, they are built with React
- which is an appropraite choice for highly interactive browser UIs.
+ which is an appropriate choice for highly interactive browser UIs.
<div class="mermaid">
sequenceDiagram
@@ -36,7 +36,7 @@ defmodule PlausibleWeb.StatsController do
3.1 No client-side caching has been implemented yet. This is still theoretical. See https://github.com/plausible/analytics/discussions/1278
3.2 This is a big potential opportunity, because analytics data is mostly immutable. Clients can cache all historical data.
5. Since frontend rendering & navigation is harder to build and maintain than regular server-rendered HTML, we don't use SPA-style rendering anywhere else
- .The only place currently where the benefits outweight the costs is the dashboard.
+ .The only place currently where the benefits outweigh the costs is the dashboard.
"""
use PlausibleWeb, :controller
diff --git a/test/plausible_web/controllers/site_controller_test.exs b/test/plausible_web/controllers/site_controller_test.exs
index f638d79c25..ff8f1209df 100644
--- a/test/plausible_web/controllers/site_controller_test.exs
+++ b/test/plausible_web/controllers/site_controller_test.exs
@@ -387,7 +387,7 @@ defmodule PlausibleWeb.SiteControllerTest do
end
end
- describe "GET /:webiste/settings/search-console for self-hosting" do
+ describe "GET /:website/settings/search-console for self-hosting" do
setup [:create_user, :log_in, :create_site]
test "display search console settings", %{conn: conn, site: site} do
@@ -399,7 +399,7 @@ defmodule PlausibleWeb.SiteControllerTest do
end
end
- describe "GET /:webiste/settings/search-console" do
+ describe "GET /:website/settings/search-console" do
setup [:create_user, :log_in, :create_site]
setup_patch_env(:google, client_id: "some", api_url: "https://www.googleapis.com")