diff --git a/main.ts b/main.ts index 2e1232b..28cbf55 100644 --- a/main.ts +++ b/main.ts @@ -1,21 +1,11 @@ -import { App, Editor, MarkdownView, Plugin, PluginSettingTab, Setting } from 'obsidian'; +import { App, Editor, MarkdownView, Plugin } from 'obsidian'; import * as venn from "@upsetjs/venn.js"; import * as d3 from "d3"; import * as yaml from "js-yaml"; import $ from "jquery"; import { Color } from '@bluefirex/color-ts'; -// Remember to rename these classes and interfaces! - -interface MyPluginSettings { - mySetting: string; -} - -const DEFAULT_SETTINGS: MyPluginSettings = { - mySetting: 'default' -} export default class MyPlugin extends Plugin { - settings: MyPluginSettings; makeString(): string { let outString: string = ''; @@ -28,11 +18,6 @@ export default class MyPlugin extends Plugin { async onload() { - await this.loadSettings(); - - // This adds a settings tab so the user can configure various aspects of the plugin - this.addSettingTab(new SampleSettingTab(this.app, this)); - // When registering intervals, this function will automatically clear the interval when the plugin is disabled. this.registerInterval(window.setInterval(() => console.log('setInterval'), 5 * 60 * 1000)); @@ -79,38 +64,4 @@ export default class MyPlugin extends Plugin { } onunload() {} - - async loadSettings() { - this.settings = Object.assign({}, DEFAULT_SETTINGS, await this.loadData()); - } - - async saveSettings() { - await this.saveData(this.settings); - } -} - -class SampleSettingTab extends PluginSettingTab { - plugin: MyPlugin; - - constructor(app: App, plugin: MyPlugin) { - super(app, plugin); - this.plugin = plugin; - } - - display(): void { - const {containerEl} = this; - - containerEl.empty(); - - new Setting(containerEl) - .setName('Setting #1') - .setDesc('It\'s a secret') - .addText(text => text - .setPlaceholder('Enter your secret') - .setValue(this.plugin.settings.mySetting) - .onChange(async (value) => { - this.plugin.settings.mySetting = value; - await this.plugin.saveSettings(); - })); - } -} +} \ No newline at end of file diff --git a/manifest.json b/manifest.json index 98fea52..b2529b6 100644 --- a/manifest.json +++ b/manifest.json @@ -6,6 +6,5 @@ "description": "Venn and Euler diagrams plugin.", "author": "Alterdekim", "authorUrl": "https://awain.net", - "fundingUrl": "https://awain.net", "isDesktopOnly": false } diff --git a/styles.css b/styles.css deleted file mode 100644 index 71cc60f..0000000 --- a/styles.css +++ /dev/null @@ -1,8 +0,0 @@ -/* - -This CSS file will be included with your plugin, and -available in the app when your plugin is enabled. - -If your plugin does not need CSS, delete this file. - -*/