Skip to content

Commit

Permalink
Release Note 0.0.92
Browse files Browse the repository at this point in the history
Fixes #77
  • Loading branch information
saertna committed Oct 18, 2024
1 parent 3b808ed commit 04ed477
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ export default class gamification extends Plugin {
);



// This portion of code is adapted from the following source under the MIT License:
// https://github.com/zsviczian/obsidian-excalidraw-plugin
// Copyright (c) [2024], [zsviczian]
Expand Down Expand Up @@ -473,6 +472,7 @@ export default class gamification extends Plugin {
// workspace.revealLeaf(leaf);
}


async profileLeafUpdateLevel(newLevel:number, newPoints:number, nextLevel:number, min:number, max:number) {
const view = await this.getLeafAndView();

Expand All @@ -485,6 +485,7 @@ export default class gamification extends Plugin {
}
}


async updateChartWeeklyColorReceived(value: string) {
const view = await this.getLeafAndView();

Expand All @@ -495,6 +496,7 @@ export default class gamification extends Plugin {
}
}


async updateChartWeeklyColorToGo(value: string) {
const view = await this.getLeafAndView();

Expand All @@ -505,6 +507,7 @@ export default class gamification extends Plugin {
}
}


async profileLeafUpdatePicture() {
const view = await this.getLeafAndView();

Expand All @@ -515,6 +518,7 @@ export default class gamification extends Plugin {
}
}


async profileLeafUpdatePoints(newPoints:number, nextLevel: number) {
const view = await this.getLeafAndView();

Expand All @@ -526,6 +530,7 @@ export default class gamification extends Plugin {
}
}


async profileLeafUpdateBoosterFactor(newFactor:number) {
const view = await this.getLeafAndView();

Expand All @@ -536,6 +541,7 @@ export default class gamification extends Plugin {
}
}


async profileLeafUpdateDailyNotes(dailyString:string) {
const view = await this.getLeafAndView();

Expand All @@ -546,6 +552,7 @@ export default class gamification extends Plugin {
}
}


async profileLeafUpdateWeeklyNotes(weeklyString:string) {
const view = await this.getLeafAndView();

Expand All @@ -556,6 +563,7 @@ export default class gamification extends Plugin {
}
}


async profileLeafUpdateWeeklyChart(days:number) {
const view = await this.getLeafAndView();

Expand All @@ -566,6 +574,7 @@ export default class gamification extends Plugin {
}
}


async profileLeafUpdateMajurityList() {
const view = await this.getLeafAndView();

Expand All @@ -577,7 +586,6 @@ export default class gamification extends Plugin {
}



private async resetGame() {
await this.removeKeysFromFrontmatter();
this.mediator.setSettingNumber('statusLevel', 1);
Expand Down Expand Up @@ -749,6 +757,7 @@ export default class gamification extends Plugin {
this.isProfileViewOpen = false; // Reset the flag when the plugin is unloaded
}


async openProfileView() {
if (this.isProfileViewOpen) {
return;
Expand Down Expand Up @@ -798,6 +807,7 @@ export default class gamification extends Plugin {
this.mediator.setSettingBoolean('showProfileLeaf', false);
}


async calculateNoteMajurity(){
const file: TFile | null= this.app.workspace.getActiveFile();
if (file == null) {
Expand Down

0 comments on commit 04ed477

Please sign in to comment.