Skip to content

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

Include flatpickr CSS in our own bundle

Uku Taht26da5f221880
diff --git a/assets/js/app.js b/assets/js/app.js
index 5221b52bc6..4305488da7 100644
--- a/assets/js/app.js
+++ b/assets/js/app.js
@@ -1,4 +1,5 @@
import css from "../css/app.css"
+import "flatpickr/dist/flatpickr.min.css"
import "./polyfills/closest"
import 'abortcontroller-polyfill/dist/polyfill-patch-fetch'
import "phoenix_html"
diff --git a/assets/js/dashboard/datepicker.js b/assets/js/dashboard/datepicker.js
index 962f6a355b..29c0297a64 100644
--- a/assets/js/dashboard/datepicker.js
+++ b/assets/js/dashboard/datepicker.js
@@ -127,7 +127,6 @@ class DatePicker extends React.Component {
}
renderDropDown() {
- console.log(this.state)
return (
<div className="relative" style={{height: '35.5px', width: '190px'}} ref={node => this.dropDownNode = node}>
<div onClick={this.open.bind(this)} className="flex items-center justify-between rounded bg-white shadow px-4 pr-3 py-2 leading-tight cursor-pointer text-sm font-medium text-gray-800 h-full">
diff --git a/lib/plausible_web/templates/layout/app.html.eex b/lib/plausible_web/templates/layout/app.html.eex
index e6693a2af1..ddecb7f227 100644
--- a/lib/plausible_web/templates/layout/app.html.eex
+++ b/lib/plausible_web/templates/layout/app.html.eex
@@ -9,7 +9,6 @@
<link rel="apple-touch-icon" href="/images/icon/apple-touch-icon.png">
<title><%= assigns[:title] || "Plausible · Simple, privacy-friendly alternative to Google Analytics" %></title>
<link rel="stylesheet" href="<%= Routes.static_path(@conn, "/css/app.css") %>"/>
- <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/flatpickr/4.6.3/flatpickr.min.css">
<%= render("_tracking.html", assigns) %>
</head>
<body class="flex flex-col h-full bg-gray-50">