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