From e8f03522bc2ca211cc714b3b77beb6ed10ddaf12 Mon Sep 17 00:00:00 2001 From: Johannes Theiner Date: Mon, 17 Jul 2023 18:36:25 +0200 Subject: [PATCH 1/2] Adapt to plugin guidelines (#65) - remove header in settings - remove logging of changed settings value --- main.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/main.ts b/main.ts index 50b75f3..2d07212 100644 --- a/main.ts +++ b/main.ts @@ -120,8 +120,6 @@ class SampleSettingTab extends PluginSettingTab { containerEl.empty(); - containerEl.createEl('h2', {text: 'Settings for my awesome plugin.'}); - new Setting(containerEl) .setName('Setting #1') .setDesc('It\'s a secret') @@ -129,7 +127,6 @@ class SampleSettingTab extends PluginSettingTab { .setPlaceholder('Enter your secret') .setValue(this.plugin.settings.mySetting) .onChange(async (value) => { - console.log('Secret: ' + value); this.plugin.settings.mySetting = value; await this.plugin.saveSettings(); })); From 7112f01bc6e20f4d6884c71aa2ecf8f6f1f8e3c7 Mon Sep 17 00:00:00 2001 From: Lishid Date: Tue, 25 Jul 2023 15:17:26 -0400 Subject: [PATCH 2/2] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3e31368..bb0348e 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,8 @@ Quick starting guide for new plugin devs: ## How to use - Clone this repo. -- `npm i` or `yarn` to install dependencies +- Make sure your NodeJS is at least v16 (`node --version`). +- `npm i` or `yarn` to install dependencies. - `npm run dev` to start compilation in watch mode. ## Manually installing the plugin