Removed extra build files

This commit is contained in:
Leoh 2021-10-23 16:41:46 +05:30
parent 4a9f52df3a
commit bc77246e44
3 changed files with 9 additions and 12 deletions

5
.gitignore vendored
View file

@ -12,5 +12,8 @@ package-lock.json
# obsidian
data.json
#build_files
main.js
#vscode
.vscode
.vscode

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
import { Notice, Plugin } from "obsidian";
import { Plugin } from "obsidian";
import { HabiticaSyncSettingsTab } from "./settings";
import { HabiticaSyncView, VIEW_TYPE} from "./view"
@ -14,15 +14,12 @@ export default class HabiticaSync extends Plugin {
settings: HabiticaSyncSettings;
view: HabiticaSyncView;
displayNotice(message: string){
new Notice(message)
}
async onload() {
await this.loadSettings();
this.addSettingTab(new HabiticaSyncSettingsTab(this.app, this));
this.registerView(
VIEW_TYPE,
(leaf) => (this.view = new HabiticaSyncView(leaf, this))
(leaf) => (new HabiticaSyncView(leaf, this))
);
this.addRibbonIcon("popup-open", "Open Habitica Pane", () => { //activate view
this.activateView();