fix(3p/radicle-explorer): remove dependency on plausible
This is some sort of calling home analytics thing. Lets not have that. Change-Id: I59fcf747c8269052dd3d346bb0873adc38834803 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12490 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
This commit is contained in:
parent
10c2866ccd
commit
9b6ebb947b
2 changed files with 83 additions and 1 deletions
78
third_party/radicle-explorer/0001-remove-dependency-on-plausible.patch
vendored
Normal file
78
third_party/radicle-explorer/0001-remove-dependency-on-plausible.patch
vendored
Normal file
|
@ -0,0 +1,78 @@
|
||||||
|
From cc4718cbea1bd70de21a2be515a944802246ffc7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Vincent Ambo <mail@tazj.in>
|
||||||
|
Date: Sun, 15 Sep 2024 03:08:28 +0300
|
||||||
|
Subject: [PATCH] remove dependency on plausible
|
||||||
|
|
||||||
|
We don't need spyware, thanks.
|
||||||
|
---
|
||||||
|
package-lock.json | 9 ---------
|
||||||
|
package.json | 1 -
|
||||||
|
src/App.svelte | 8 --------
|
||||||
|
3 files changed, 18 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/package-lock.json b/package-lock.json
|
||||||
|
index d52de6c0..d96e342f 100644
|
||||||
|
--- a/package-lock.json
|
||||||
|
+++ b/package-lock.json
|
||||||
|
@@ -29,7 +29,6 @@
|
||||||
|
"marked-katex-extension": "^5.1.1",
|
||||||
|
"marked-linkify-it": "^3.1.11",
|
||||||
|
"md5": "^2.3.0",
|
||||||
|
- "plausible-tracker": "^0.3.9",
|
||||||
|
"svelte": "^4.2.19",
|
||||||
|
"twemoji": "^14.0.2",
|
||||||
|
"zod": "^3.23.8"
|
||||||
|
@@ -3697,14 +3696,6 @@
|
||||||
|
"url": "https://github.com/sponsors/jonschlinkert"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
- "node_modules/plausible-tracker": {
|
||||||
|
- "version": "0.3.9",
|
||||||
|
- "resolved": "https://registry.npmjs.org/plausible-tracker/-/plausible-tracker-0.3.9.tgz",
|
||||||
|
- "integrity": "sha512-hMhneYm3GCPyQon88SZrVJx+LlqhM1kZFQbuAgXPoh/Az2YvO1B6bitT9qlhpiTdJlsT5lsr3gPmzoVjb5CDXA==",
|
||||||
|
- "engines": {
|
||||||
|
- "node": ">=10"
|
||||||
|
- }
|
||||||
|
- },
|
||||||
|
"node_modules/playwright": {
|
||||||
|
"version": "1.46.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/playwright/-/playwright-1.46.1.tgz",
|
||||||
|
diff --git a/package.json b/package.json
|
||||||
|
index 6d569ad9..61e8d892 100644
|
||||||
|
--- a/package.json
|
||||||
|
+++ b/package.json
|
||||||
|
@@ -73,7 +73,6 @@
|
||||||
|
"marked-katex-extension": "^5.1.1",
|
||||||
|
"marked-linkify-it": "^3.1.11",
|
||||||
|
"md5": "^2.3.0",
|
||||||
|
- "plausible-tracker": "^0.3.9",
|
||||||
|
"svelte": "^4.2.19",
|
||||||
|
"twemoji": "^14.0.2",
|
||||||
|
"zod": "^3.23.8"
|
||||||
|
diff --git a/src/App.svelte b/src/App.svelte
|
||||||
|
index 8161c390..4281ba61 100644
|
||||||
|
--- a/src/App.svelte
|
||||||
|
+++ b/src/App.svelte
|
||||||
|
@@ -1,6 +1,4 @@
|
||||||
|
<script lang="ts">
|
||||||
|
- import Plausible from "plausible-tracker";
|
||||||
|
-
|
||||||
|
import * as router from "@app/lib/router";
|
||||||
|
import { unreachable } from "@app/lib/utils";
|
||||||
|
|
||||||
|
@@ -28,12 +26,6 @@
|
||||||
|
|
||||||
|
void router.loadFromLocation();
|
||||||
|
|
||||||
|
- if (import.meta.env.PROD) {
|
||||||
|
- const plausible = Plausible({ domain: "app.radicle.xyz" });
|
||||||
|
-
|
||||||
|
- plausible.enableAutoPageviews();
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
$: document.documentElement.setAttribute("data-codefont", $codeFont);
|
||||||
|
$: document.documentElement.setAttribute("data-theme", $theme);
|
||||||
|
</script>
|
||||||
|
--
|
||||||
|
2.46.0
|
||||||
|
|
6
third_party/radicle-explorer/default.nix
vendored
6
third_party/radicle-explorer/default.nix
vendored
|
@ -26,7 +26,11 @@ lib.fix (self: pkgs.buildNpmPackage rec {
|
||||||
|
|
||||||
# This might change during nixpkgs bumps and will need updating. Need to fix
|
# This might change during nixpkgs bumps and will need updating. Need to fix
|
||||||
# upstream so that there is a normal, callable derivation.
|
# upstream so that there is a normal, callable derivation.
|
||||||
npmDepsHash = "sha256:0kw6rvqm0s21j1rss35idvgcrzzczfy6qi3323y385djw4ygk5xs";
|
npmDepsHash = "sha256:1hbrzfjkfc0q8qk03yi6qb9zqm57h7hnkn7fl0yxkrzbrljaljaz";
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
./0001-remove-dependency-on-plausible.patch
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchShebangs --build ./scripts
|
patchShebangs --build ./scripts
|
||||||
|
|
Loading…
Reference in a new issue