-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathupdateNoticeModal.ts
32 lines (26 loc) · 920 Bytes
/
updateNoticeModal.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { App, Modal, MarkdownRenderer, Component } from "obsidian";
export class UpdateNoticeModal extends Modal {
constructor(app: App, private version: string) {
super(app);
}
onOpen() {
const { contentEl } = this;
contentEl.createEl("h2", { text: `Local LLM Helper updated to v${this.version}` });
const changelogMd = `
## What's New
### Major Update ${this.version}
- Chat with your notes (RAG) - BETA (Improvements)
- Generate backlinks - BETA (Improvements)
- Index notes - BETA (Improvements)
- Web Search - BETA
- News Search - BETA
[Full Changelog](https://github.com/manimohans/obsidian-local-llm-helper/releases)
`;
const dummyComponent = new Component();
MarkdownRenderer.render(this.app, changelogMd, contentEl, "", dummyComponent);
}
onClose() {
const { contentEl } = this;
contentEl.empty();
}
}