mirror of https://github.com/VERT-sh/VERT.git
fix: remove all plausible tracking
This commit is contained in:
parent
e5df89ac57
commit
316cd8d8a0
13
src/app.html
13
src/app.html
|
@ -25,19 +25,6 @@
|
|||
|
||||
if (theme !== "light" && theme !== "dark") {
|
||||
console.log("Invalid theme, setting to default");
|
||||
if (!theme) {
|
||||
console.log("First time visitor, setting theme");
|
||||
// first time visitor
|
||||
window.addEventListener("load", () => {
|
||||
window.plausible("Theme set", {
|
||||
props: {
|
||||
theme: prefersDark ? "dark" : "light",
|
||||
},
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
// invalid theme or first time visitor, set to default
|
||||
theme = prefersDark ? "dark" : "light";
|
||||
localStorage.setItem("theme", theme);
|
||||
}
|
||||
|
|
|
@ -78,11 +78,6 @@ export class FFmpegConverter extends Converter {
|
|||
["converters", this.name],
|
||||
`read ${input.name.split(".").slice(0, -1).join(".") + to} from ffmpeg virtual fs`,
|
||||
);
|
||||
window.plausible("convert", {
|
||||
props: {
|
||||
type: "audio",
|
||||
},
|
||||
});
|
||||
ffmpeg.terminate();
|
||||
return new VertFile(new File([output], input.name), to);
|
||||
}
|
||||
|
|
|
@ -261,11 +261,6 @@ export class VertdConverter extends Converter {
|
|||
ws.close();
|
||||
const url = `${apiUrl}/api/download/${msg.data.jobId}/${uploadRes.auth}`;
|
||||
this.log(`downloading from ${url}`);
|
||||
window.plausible("convert", {
|
||||
props: {
|
||||
type: "video",
|
||||
},
|
||||
});
|
||||
// const res = await fetch(url).then((res) => res.blob());
|
||||
const res = await downloadFile(url, input);
|
||||
resolve(new VertFile(new File([res], input.name), to));
|
||||
|
|
|
@ -78,11 +78,6 @@ export class VipsConverter extends Converter {
|
|||
|
||||
if (res.type === "finished") {
|
||||
log(["converters", this.name], `converted ${input.name} to ${to}`);
|
||||
window.plausible("convert", {
|
||||
props: {
|
||||
type: "image",
|
||||
},
|
||||
});
|
||||
return new VertFile(
|
||||
new File([res.output as unknown as BlobPart], input.name),
|
||||
to,
|
||||
|
|
|
@ -253,9 +253,6 @@ export function setTheme(themeTo: "light" | "dark") {
|
|||
document.documentElement.classList.remove("light", "dark");
|
||||
document.documentElement.classList.add(themeTo);
|
||||
localStorage.setItem("theme", themeTo);
|
||||
window.plausible("Theme set", {
|
||||
props: { theme: themeTo },
|
||||
});
|
||||
log(["theme"], `set to ${themeTo}`);
|
||||
theme.set(themeTo);
|
||||
|
||||
|
@ -272,9 +269,6 @@ export function setTheme(themeTo: "light" | "dark") {
|
|||
|
||||
export function setEffects(effectsEnabled: boolean) {
|
||||
localStorage.setItem("effects", effectsEnabled.toString());
|
||||
window.plausible("Effects set", {
|
||||
props: { effects: effectsEnabled },
|
||||
});
|
||||
log(["effects"], `set to ${effectsEnabled}`);
|
||||
effects.set(effectsEnabled);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue