From 9e880adf51d932ec755b08eba8d5ec84a2355171 Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Tue, 24 Oct 2023 15:53:11 +0300 Subject: [PATCH] Fix applyTheme script --- assets/js/app.js | 1 + priv/static/js/applyTheme.js => assets/js/apply-theme.js | 0 assets/static/robots.txt | 5 ----- lib/plausible_web/templates/layout/app.html.eex | 3 +-- lib/plausible_web/templates/layout/focus.html.eex | 3 +-- 5 files changed, 3 insertions(+), 9 deletions(-) rename priv/static/js/applyTheme.js => assets/js/apply-theme.js (100%) delete mode 100644 assets/static/robots.txt diff --git a/assets/js/app.js b/assets/js/app.js index 3e344c2aa..acd0e4d4c 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -1,4 +1,5 @@ import "./polyfills/closest" +import "./apply-theme" import 'abortcontroller-polyfill/dist/polyfill-patch-fetch' import Alpine from 'alpinejs' import "./liveview/live_socket" diff --git a/priv/static/js/applyTheme.js b/assets/js/apply-theme.js similarity index 100% rename from priv/static/js/applyTheme.js rename to assets/js/apply-theme.js diff --git a/assets/static/robots.txt b/assets/static/robots.txt deleted file mode 100644 index 3c9c7c01f..000000000 --- a/assets/static/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/lib/plausible_web/templates/layout/app.html.eex b/lib/plausible_web/templates/layout/app.html.eex index 8a402f0c8..2de312a47 100644 --- a/lib/plausible_web/templates/layout/app.html.eex +++ b/lib/plausible_web/templates/layout/app.html.eex @@ -15,7 +15,6 @@ <%= assigns[:title] || "Plausible · Simple, privacy-friendly alternative to Google Analytics" %> "/> <%= render("_tracking.html", assigns) %> - <%= if @conn.assigns[:background], do: "background-color: #{@conn.assigns[:background]}" %>"> <%= if !@conn.assigns[:embedded] do %> @@ -33,6 +32,6 @@ <% else %> <%= render("_footer.html", assigns) %> <% end %> - + diff --git a/lib/plausible_web/templates/layout/focus.html.eex b/lib/plausible_web/templates/layout/focus.html.eex index fd70fb244..b55195912 100644 --- a/lib/plausible_web/templates/layout/focus.html.eex +++ b/lib/plausible_web/templates/layout/focus.html.eex @@ -14,7 +14,6 @@ <%= assigns[:title] || "Plausible · Web analytics" %> "/> <%= render("_tracking.html", assigns) %> -
@@ -34,6 +33,6 @@ © <%= DateTime.utc_now().year() %> Plausible Analytics. All rights reserved.

- +