Removed extra build files
This commit is contained in:
parent
4a9f52df3a
commit
bc77246e44
3 changed files with 9 additions and 12 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -12,5 +12,8 @@ package-lock.json
|
||||||
# obsidian
|
# obsidian
|
||||||
data.json
|
data.json
|
||||||
|
|
||||||
|
#build_files
|
||||||
|
main.js
|
||||||
|
|
||||||
#vscode
|
#vscode
|
||||||
.vscode
|
.vscode
|
||||||
9
main.js
9
main.js
File diff suppressed because one or more lines are too long
|
|
@ -1,4 +1,4 @@
|
||||||
import { Notice, Plugin } from "obsidian";
|
import { Plugin } from "obsidian";
|
||||||
import { HabiticaSyncSettingsTab } from "./settings";
|
import { HabiticaSyncSettingsTab } from "./settings";
|
||||||
import { HabiticaSyncView, VIEW_TYPE} from "./view"
|
import { HabiticaSyncView, VIEW_TYPE} from "./view"
|
||||||
|
|
||||||
|
|
@ -14,15 +14,12 @@ export default class HabiticaSync extends Plugin {
|
||||||
settings: HabiticaSyncSettings;
|
settings: HabiticaSyncSettings;
|
||||||
view: HabiticaSyncView;
|
view: HabiticaSyncView;
|
||||||
|
|
||||||
displayNotice(message: string){
|
|
||||||
new Notice(message)
|
|
||||||
}
|
|
||||||
async onload() {
|
async onload() {
|
||||||
await this.loadSettings();
|
await this.loadSettings();
|
||||||
this.addSettingTab(new HabiticaSyncSettingsTab(this.app, this));
|
this.addSettingTab(new HabiticaSyncSettingsTab(this.app, this));
|
||||||
this.registerView(
|
this.registerView(
|
||||||
VIEW_TYPE,
|
VIEW_TYPE,
|
||||||
(leaf) => (this.view = new HabiticaSyncView(leaf, this))
|
(leaf) => (new HabiticaSyncView(leaf, this))
|
||||||
);
|
);
|
||||||
this.addRibbonIcon("popup-open", "Open Habitica Pane", () => { //activate view
|
this.addRibbonIcon("popup-open", "Open Habitica Pane", () => { //activate view
|
||||||
this.activateView();
|
this.activateView();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue