From 11f1afe5c357ccb1aec1968f2161cca4223006ad Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Fri, 17 Jul 2020 19:15:29 -0700 Subject: [PATCH] Collection API. --- components/layout.js | 9 +- lib/utils.js | 3 +- package.json | 10 +- pages/api/collect.js | 4 +- pages/index.js | 4 + public/umami.js | 275 ++++++++++++++++++++++++++++++++++++++++- rollup.config.js | 15 +-- scripts/umami/index.js | 41 +++--- yarn.lock | 103 ++++++++++----- 9 files changed, 400 insertions(+), 64 deletions(-) diff --git a/components/layout.js b/components/layout.js index d92d0699..c3880bd3 100644 --- a/components/layout.js +++ b/components/layout.js @@ -13,7 +13,14 @@ export default function Layout({ title, children }) { href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap" rel="stylesheet" /> -