()
| 250 | } |
| 251 | |
| 252 | private display(): void { |
| 253 | const { contentEl } = this; |
| 254 | contentEl.empty(); |
| 255 | contentEl.classList.add("quickadd-update-modal-container"); |
| 256 | |
| 257 | const header = `### New in QuickAdd v${this.releases[0].tag_name}\n` |
| 258 | const text = `Thank you for using QuickAdd! If you like the plugin, please consider supporting me by buying me a coffee. With your sponsorship, I'll be able to contribute more to my existing projects, start new ones, and be more responsive to issues & feature requests.`; |
| 259 | const buymeacoffee = `<div class="quickadd-bmac-container"><a href="https://www.buymeacoffee.com/chhoumann" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 40px !important;width: 144px !important;" ></a></div>`; |
| 260 | |
| 261 | const contentDiv = contentEl.createDiv("quickadd-update-modal"); |
| 262 | const releaseNotes = this.releases |
| 263 | .map((release) => renderVideoAttachments(release.body ?? "")) |
| 264 | .join("\n---\n"); |
| 265 | |
| 266 | const andNow = `And now, here is everything new in QuickAdd since your last update (v${this.previousVersion}):`; |
| 267 | const feedbackForm = `I'd love to get your feedback on QuickAdd! Please fill out this <a href="https://forms.gle/WRq1ewcKK8qmkqps6">feedback form</a> to let me know what you think.`; |
| 268 | const markdownStr = `${header}\n${text}\n${buymeacoffee}\n${feedbackForm}\n\n${andNow}\n\n---\n\n${addExtraHashToHeadings( |
| 269 | releaseNotes |
| 270 | )}`; |
| 271 | |
| 272 | this.markdownComponent.load(); |
| 273 | void MarkdownRenderer.render( |
| 274 | this.app, |
| 275 | markdownStr, |
| 276 | contentDiv, |
| 277 | this.app.vault.getRoot().path, |
| 278 | this.markdownComponent, |
| 279 | ); |
| 280 | |
| 281 | this.addCloseFooter(); |
| 282 | } |
| 283 | } |
no test coverage detected