mirror of
https://github.com/shenoy-anurag/obsidian-image-border-style.git
synced 2026-07-22 05:46:32 +00:00
refactor: removed unused ribbon icon and imports
This commit is contained in:
parent
72973445ef
commit
2d4ddc5ee4
3 changed files with 3 additions and 11 deletions
10
main.ts
10
main.ts
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,4 +8,4 @@
|
|||
"authorUrl": "https://www.anuragshenoy.com/",
|
||||
"fundingUrl": "https://buymeacoffee.com/anuragshenoy",
|
||||
"isDesktopOnly": false
|
||||
}
|
||||
}
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"1.0.0": "0.15.0"
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue