From f88521dea8b1899b38b80079527de66cfebf39f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20Bernal?= Date: Mon, 25 Mar 2024 02:20:48 +0100 Subject: [PATCH] Remove donation section from settings and add URL into manifest.json --- main.ts | 13 ------------- manifest.json | 6 ++++-- styles.css | 6 ------ 3 files changed, 4 insertions(+), 21 deletions(-) diff --git a/main.ts b/main.ts index 950ab87..f36ca67 100644 --- a/main.ts +++ b/main.ts @@ -253,18 +253,5 @@ class HemingwayModeSettingTab extends PluginSettingTab { await this.plugin.updateStatus(true); }) ); - - containerEl.createEl("hr"); - - containerEl.createEl("div", { text: "Enjoying this plugin? Want more features?" }); - const button = containerEl.createEl("div"); - const a = document.createElement("a"); - const img = document.createElement("img"); - img.src = "https://storage.ko-fi.com/cdn/kofi2.png?v=3"; - img.setAttr("height", 36); - img.addClass("hemingway-mode-kofi-button-image"); - a.setAttribute("href", "https://ko-fi.com/jobedom"); - a.appendChild(img); - button.appendChild(a); } } diff --git a/manifest.json b/manifest.json index 25ceec9..bddb20a 100644 --- a/manifest.json +++ b/manifest.json @@ -4,6 +4,8 @@ "version": "1.0.9", "minAppVersion": "0.15.0", "description": "Prevents any editing, only letting you write ahead.", - "author": "jobedom@gmail.com", + "author": "JoaquĆ­n Bernal", + "authorUrl": "https://github.com/jobedom", + "fundingUrl": "https://ko-fi.com/jobedom", "isDesktopOnly": false -} \ No newline at end of file +} diff --git a/styles.css b/styles.css index 8768a00..55bd36c 100644 --- a/styles.css +++ b/styles.css @@ -1,9 +1,3 @@ .view-content.hemingway .cm-editor .cm-content { pointer-events: none; } - -img.hemingway-mode-kofi-button-image { - margin-top: 15px; - border: 0; - height: 36px; -}