MCPcopy Create free account
hub / github.com/CatMuse/HiNote / onload

Method onload

main.ts:46–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 }
45
46 async onload() {
47 // 加载设置
48 const loadedData = await this.loadData();
49 this.settings = migrateSettings(loadedData);
50
51 // 初始化管理器
52 this.initManager = new InitializationManager(this);
53 this.windowManager = createPluginWindowManager(this);
54
55 registerPluginViews(this);
56 registerPluginRibbon(this, this.windowManager);
57 registerPluginCommands(this, this.windowManager);
58
59 // 添加设置标签页
60 this.addSettingTab(new AISettingTab(this.app, this));
61
62 registerPluginVaultEvents(this);
63 }
64
65
66 onunload() {

Callers

nothing calls this directly

Calls 6

migrateSettingsFunction · 0.90
registerPluginViewsFunction · 0.90
registerPluginRibbonFunction · 0.90
registerPluginCommandsFunction · 0.90

Tested by

no test coverage detected