Skip to content

Commit 6fd39a0

Browse files
committed
1 parent 8f4c1b7 commit 6fd39a0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## 0.2.7 2023-10
44

5+
* [Export `Constants` to plugin](https://github.com/siyuan-note/siyuan/issues/9555)
56
* [Add plugin `app.appId`](https://github.com/siyuan-note/siyuan/issues/9538)
67
* [Add plugin event bus `switch-protyle`](https://github.com/siyuan-note/siyuan/issues/9454)
78

src/index.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ import {
1111
IModel,
1212
Setting,
1313
fetchPost,
14-
Protyle, openWindow, IOperation
14+
Protyle,
15+
openWindow,
16+
IOperation,
17+
Constants
1518
} from "siyuan";
1619
import "./index.scss";
1720

@@ -251,7 +254,7 @@ export default class PluginSample extends Plugin {
251254

252255
private showDialog() {
253256
const dialog = new Dialog({
254-
title: "Info",
257+
title: `SiYuan ${Constants.SIYUAN_VERSION}`,
255258
content: `<div class="b3-dialog__content">
256259
<div>appId:</div>
257260
<div class="fn__hr"></div>

0 commit comments

Comments
 (0)