()
| 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() { |
nothing calls this directly
no test coverage detected