Skip to content

Commit

Permalink
add 'open full calendar'sinicization
Browse files Browse the repository at this point in the history
  • Loading branch information
ACodeHX committed Feb 13, 2024
1 parent 70098f1 commit f172f2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resource/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -65319,10 +65319,11 @@ var FullCalendarPlugin = class extends import_obsidian12.Plugin {
this.cache.deleteEventsAtPath(file.path);
}
}));
//open full calendar 的汉化
window.cache = this.cache;
this.registerView(FULL_CALENDAR_VIEW_TYPE, (leaf) => new CalendarView(leaf, this, false));
this.registerView(FULL_CALENDAR_SIDEBAR_VIEW_TYPE, (leaf) => new CalendarView(leaf, this, true));
this.addRibbonIcon("calendar-glyph", "Open Full Calendar", (_3) => __async(this, null, function* () {
this.addRibbonIcon("calendar-glyph", "打开全日历", (_3) => __async(this, null, function* () {
yield this.activateView();
}));
this.addSettingTab(new FullCalendarSettingTab(this.app, this));
Expand Down

0 comments on commit f172f2a

Please sign in to comment.