From 6fd39a053a0362ca00ab882c13635e738d38686d Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 30 Oct 2023 10:05:34 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/9555 --- CHANGELOG.md | 1 + src/index.ts | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1154704..6d8d492 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## 0.2.7 2023-10 +* [Export `Constants` to plugin](https://github.com/siyuan-note/siyuan/issues/9555) * [Add plugin `app.appId`](https://github.com/siyuan-note/siyuan/issues/9538) * [Add plugin event bus `switch-protyle`](https://github.com/siyuan-note/siyuan/issues/9454) diff --git a/src/index.ts b/src/index.ts index ec5da1a..0b4c913 100644 --- a/src/index.ts +++ b/src/index.ts @@ -11,7 +11,10 @@ import { IModel, Setting, fetchPost, - Protyle, openWindow, IOperation + Protyle, + openWindow, + IOperation, + Constants } from "siyuan"; import "./index.scss"; @@ -251,7 +254,7 @@ export default class PluginSample extends Plugin { private showDialog() { const dialog = new Dialog({ - title: "Info", + title: `SiYuan ${Constants.SIYUAN_VERSION}`, content: `
appId: