From c72b7cc1ad205f996fd1afb242b16861449f3f8a Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Fri, 17 Jul 2020 14:06:43 +0300 Subject: [PATCH] Inline svg icons from _svg_icons template --- assets/js/dashboard/datepicker.js | 14 +++----- assets/js/dashboard/stats/more-link.js | 2 +- assets/js/dashboard/stats/visitor-graph.js | 4 +-- .../templates/auth/register_form.html.eex | 20 +++++++++--- .../templates/layout/_svg_icons.html.eex | 32 ------------------- .../templates/layout/app.html.eex | 2 -- .../site/custom_domain_snippet.html.eex | 2 +- .../templates/site/settings.html.eex | 16 ++++++---- .../templates/site/snippet.html.eex | 2 +- 9 files changed, 35 insertions(+), 59 deletions(-) delete mode 100644 lib/plausible_web/templates/layout/_svg_icons.html.eex diff --git a/assets/js/dashboard/datepicker.js b/assets/js/dashboard/datepicker.js index e4fe67cf6..15e263955 100644 --- a/assets/js/dashboard/datepicker.js +++ b/assets/js/dashboard/datepicker.js @@ -98,14 +98,10 @@ class DatePicker extends React.Component { return (
- - - + - - - +
) @@ -136,9 +132,9 @@ class DatePicker extends React.Component {
this.dropDownNode = node}>
{this.timeFrameText()} - - - + + +
{this.renderDropDownContent()} diff --git a/assets/js/dashboard/stats/more-link.js b/assets/js/dashboard/stats/more-link.js index a2df9d7f7..8aab864e5 100644 --- a/assets/js/dashboard/stats/more-link.js +++ b/assets/js/dashboard/stats/more-link.js @@ -6,7 +6,7 @@ export default function MoreLink({site, list, endpoint}) { return (
- + MORE
diff --git a/assets/js/dashboard/stats/visitor-graph.js b/assets/js/dashboard/stats/visitor-graph.js index e20006b51..afe12e339 100644 --- a/assets/js/dashboard/stats/visitor-graph.js +++ b/assets/js/dashboard/stats/visitor-graph.js @@ -296,9 +296,7 @@ class LineGraph extends React.Component { return ( - - - + ) } diff --git a/lib/plausible_web/templates/auth/register_form.html.eex b/lib/plausible_web/templates/auth/register_form.html.eex index 4105e54f8..045be0d67 100644 --- a/lib/plausible_web/templates/auth/register_form.html.eex +++ b/lib/plausible_web/templates/auth/register_form.html.eex @@ -28,19 +28,31 @@ diff --git a/lib/plausible_web/templates/site/snippet.html.eex b/lib/plausible_web/templates/site/snippet.html.eex index 3fc5bec69..8415af898 100644 --- a/lib/plausible_web/templates/site/snippet.html.eex +++ b/lib/plausible_web/templates/site/snippet.html.eex @@ -6,7 +6,7 @@
<%= textarea f, :domain, id: "snippet_code", class: "transition overflow-hidden bg-gray-100 appearance-none border border-transparent rounded w-full p-2 pr-6 text-gray-700 leading-normal appearance-none focus:outline-none focus:bg-white focus:border-gray-400 text-xs mt-4 resize-none", value: snippet(@site), rows: 2, readonly: "readonly" %> - +