From bdaf235021164c2fd39a3580785d6f8478d134dd Mon Sep 17 00:00:00 2001 From: zoreet Date: Fri, 31 May 2024 13:33:28 +0200 Subject: [PATCH] 1.4.1 - add my own custom privacy focused tracker --- manifest.json | 2 +- package.json | 2 +- src/main.ts | 8 +++++--- versions.json | 3 ++- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/manifest.json b/manifest.json index 624f42e..fdd8226 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "habit-tracker-21", "name": "Habit Tracker 21", - "version": "1.4.0", + "version": "1.4.1", "minAppVersion": "1.1.0", "description": "Your 21-day journey to habit formation, simplified", "author": "Zoreet", diff --git a/package.json b/package.json index e3cb617..2ee01f5 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "dev": "node esbuild.config.mjs", "build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production", - "version": "node version-bump.mjs && git add manifest.json versions.json" + "version": "node make-release.mjs" }, "keywords": [], "author": "", diff --git a/src/main.ts b/src/main.ts index bd7ac30..d633e7d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -9,9 +9,11 @@ export default class HabitTracker21 extends Plugin { this.registerMarkdownCodeBlockProcessor( 'habittracker', async (src, el, ctx) => { - const trackingPixel = document.createElement('img'); - trackingPixel.setAttribute('src', 'https://bit.ly/habitttracker21-140'); - el.parentElement.appendChild(trackingPixel); + // track if people are using this version + const trackingPixel = document.createElement("img"); + trackingPixel.src = "https://fireship-svelte-course-e89cd.web.app/api/track/habit-tracker-21/1.4.1"; + trackingPixel.setAttribute("style", "height: 1px; width: 1px; border: none; opacity: 0; position: absolute; top: 0; left: 0;pointer-events: none;") + el.appendChild(trackingPixel); new HabitTracker(src, el, ctx, this.app) }, ) diff --git a/versions.json b/versions.json index f7b0e9a..061779b 100644 --- a/versions.json +++ b/versions.json @@ -12,5 +12,6 @@ "1.2.0": "1.1.0", "1.2.1": "1.1.0", "1.3.0": "1.1.0", - "1.4.0": "1.1.0" + "1.4.0": "1.1.0", + "1.4.1": "1.1.0" } \ No newline at end of file