25 lines
438 B
TypeScript
25 lines
438 B
TypeScript
import { Notice, Plugin } from 'obsidian';
|
|
|
|
export default class ExoPlugin extends Plugin {
|
|
|
|
async onload() {
|
|
this.addRibbonIcon('dice', 'Exo', () => {
|
|
this.showModal();
|
|
});
|
|
|
|
this.addCommand({
|
|
id: 'exo-first-notice',
|
|
name: 'Shows simple Notice',
|
|
callback: () => {this.showModal()}
|
|
})
|
|
}
|
|
|
|
async showModal(): Promise<void> {
|
|
new Notice('This is Exocortex!');
|
|
}
|
|
|
|
onunload() {
|
|
|
|
}
|
|
}
|