refactor: removed unused ribbon icon and imports

This commit is contained in:
Anurag 2025-04-15 17:05:18 -04:00
parent 72973445ef
commit 2d4ddc5ee4
No known key found for this signature in database
GPG key ID: 6862EF1B882AD387
3 changed files with 3 additions and 11 deletions

10
main.ts
View file

@ -1,4 +1,4 @@
import { App, MarkdownPostProcessorContext, Notice, Plugin, PluginSettingTab, Setting } from 'obsidian';
import { App, MarkdownPostProcessorContext, Plugin, PluginSettingTab, Setting } from 'obsidian';
import { EditorView, PluginValue, ViewPlugin, ViewUpdate } from "@codemirror/view";
@ -72,14 +72,6 @@ export default class ImageStyle extends Plugin {
ViewPlugin.define((view) => new ApplyImageBorder(view, this))
);
// This creates an icon in the left ribbon.
const ribbonIconEl = this.addRibbonIcon('dice', 'Sample Plugin', (evt: MouseEvent) => {
// Called when the user clicks the icon.
new Notice('This is a notice!');
});
// Perform additional things with the ribbon
ribbonIconEl.addClass('my-plugin-ribbon-class');
// This adds a settings tab so the user can configure various aspects of the plugin
this.addSettingTab(new ImageStyleSettingTab(this.app, this));
}

View file

@ -8,4 +8,4 @@
"authorUrl": "https://www.anuragshenoy.com/",
"fundingUrl": "https://buymeacoffee.com/anuragshenoy",
"isDesktopOnly": false
}
}

View file

@ -1,3 +1,3 @@
{
"1.0.0": "0.15.0"
}
}