biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / by-name / ra / radicle-explorer / 0001-remove-dependency-on-plausible.patch
blob06b3511d4078278918d0804bc3336e1492b9d28f
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
6 ---
7 package-lock.json | 9 ---------
8 package.json | 1 -
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
16 @@ -29,7 +29,6 @@
17 "marked-katex-extension": "^5.1.1",
18 "marked-linkify-it": "^3.1.11",
19 "md5": "^2.3.0",
20 - "plausible-tracker": "^0.3.9",
21 "svelte": "^4.2.19",
22 "twemoji": "^14.0.2",
23 "zod": "^3.23.8"
24 @@ -3697,14 +3696,6 @@
25 "url": "https://github.com/sponsors/jonschlinkert"
28 - "node_modules/plausible-tracker": {
29 - "version": "0.3.9",
30 - "resolved": "https://registry.npmjs.org/plausible-tracker/-/plausible-tracker-0.3.9.tgz",
31 - "integrity": "sha512-hMhneYm3GCPyQon88SZrVJx+LlqhM1kZFQbuAgXPoh/Az2YvO1B6bitT9qlhpiTdJlsT5lsr3gPmzoVjb5CDXA==",
32 - "engines": {
33 - "node": ">=10"
34 - }
35 - },
36 "node_modules/playwright": {
37 "version": "1.46.1",
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
41 --- a/package.json
42 +++ b/package.json
43 @@ -73,7 +73,6 @@
44 "marked-katex-extension": "^5.1.1",
45 "marked-linkify-it": "^3.1.11",
46 "md5": "^2.3.0",
47 - "plausible-tracker": "^0.3.9",
48 "svelte": "^4.2.19",
49 "twemoji": "^14.0.2",
50 "zod": "^3.23.8"
51 diff --git a/src/App.svelte b/src/App.svelte
52 index 8161c390..4281ba61 100644
53 --- a/src/App.svelte
54 +++ b/src/App.svelte
55 @@ -1,6 +1,4 @@
56 <script lang="ts">
57 - import Plausible from "plausible-tracker";
59 import * as router from "@app/lib/router";
60 import { unreachable } from "@app/lib/utils";
62 @@ -28,12 +26,6 @@
64 void router.loadFromLocation();
66 - if (import.meta.env.PROD) {
67 - const plausible = Plausible({ domain: "app.radicle.xyz" });
69 - plausible.enableAutoPageviews();
70 - }
72 $: document.documentElement.setAttribute("data-codefont", $codeFont);
73 $: document.documentElement.setAttribute("data-theme", $theme);
74 </script>
75 --
76 2.46.0