1 From cc4718cbea1bd70de21a2be515a944802246ffc7 Mon Sep 17 00:00:00 2001
2 From: Vincent Ambo <mail@tazj.in>
3 Date: Sun, 15 Sep 2024 03:08:28 +0300
4 Subject: [PATCH] remove dependency on plausible
7 package-lock.json | 9 ---------
9 src/App.svelte | 8 --------
10 3 files changed, 18 deletions(-)
12 diff --git a/package-lock.json b/package-lock.json
13 index d52de6c0..d96e342f 100644
14 --- a/package-lock.json
15 +++ b/package-lock.json
17 "marked-katex-extension": "^5.1.1",
18 "marked-linkify-it": "^3.1.11",
20 - "plausible-tracker": "^0.3.9",
24 @@ -3697,14 +3696,6 @@
25 "url": "https://github.com/sponsors/jonschlinkert"
28 - "node_modules/plausible-tracker": {
30 - "resolved": "https://registry.npmjs.org/plausible-tracker/-/plausible-tracker-0.3.9.tgz",
31 - "integrity": "sha512-hMhneYm3GCPyQon88SZrVJx+LlqhM1kZFQbuAgXPoh/Az2YvO1B6bitT9qlhpiTdJlsT5lsr3gPmzoVjb5CDXA==",
36 "node_modules/playwright": {
38 "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.46.1.tgz",
39 diff --git a/package.json b/package.json
40 index 6d569ad9..61e8d892 100644
44 "marked-katex-extension": "^5.1.1",
45 "marked-linkify-it": "^3.1.11",
47 - "plausible-tracker": "^0.3.9",
51 diff --git a/src/App.svelte b/src/App.svelte
52 index 8161c390..4281ba61 100644
57 - import Plausible from "plausible-tracker";
59 import * as router from "@app/lib/router";
60 import { unreachable } from "@app/lib/utils";
64 void router.loadFromLocation();
66 - if (import.meta.env.PROD) {
67 - const plausible = Plausible({ domain: "app.radicle.xyz" });
69 - plausible.enableAutoPageviews();
72 $: document.documentElement.setAttribute("data-codefont", $codeFont);
73 $: document.documentElement.setAttribute("data-theme", $theme);