Skip to content

Commit e48a9ab

Browse files
committed
🚀 update
1 parent c33a63a commit e48a9ab

File tree

4 files changed

+35
-4
lines changed

4 files changed

+35
-4
lines changed

‎CHANGELOG.md

+19-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
# Changelog
22

3-
## 0.3.2 2024-01
3+
## 0.3.5 2024-03
4+
5+
## 0.3.4 2024-02-20
6+
7+
* [Add plugin event bus `click-flashcard-action`](https://github.com/siyuan-note/siyuan/issues/10318)
8+
9+
## 0.3.3 2024-01-24
10+
11+
* Update dock icon class
12+
13+
## 0.3.2 2024-01-09
14+
15+
* [Add plugin `protyleOptions`](https://github.com/siyuan-note/siyuan/issues/10090)
16+
* [Add plugin api `uninstall`](https://github.com/siyuan-note/siyuan/issues/10063)
17+
* [Add plugin method `updateCards`](https://github.com/siyuan-note/siyuan/issues/10065)
18+
* [Add plugin function `lockScreen`](https://github.com/siyuan-note/siyuan/issues/10063)
19+
* [Add plugin event bus `lock-screen`](https://github.com/siyuan-note/siyuan/pull/9967)
20+
* [Add plugin event bus `open-menu-inbox`](https://github.com/siyuan-note/siyuan/pull/9967)
21+
422

523
## 0.3.1 2023-12-06
624

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"minimist": "^1.2.8",
2323
"rollup-plugin-livereload": "^2.0.5",
2424
"sass": "^1.63.3",
25-
"siyuan": "0.9.2",
25+
"siyuan": "0.9.4",
2626
"svelte": "^3.59.1",
2727
"ts-node": "^10.9.1",
2828
"typescript": "^5.1.3",

‎plugin.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "plugin-sample-vite-svelte",
33
"author": "frostime",
44
"url": "https://github.com/siyuan-note/plugin-sample-vite-svelte",
5-
"version": "0.3.2",
6-
"minAppVersion": "2.12.1",
5+
"version": "0.3.4",
6+
"minAppVersion": "3.0.0",
77
"backends": [
88
"windows",
99
"linux",

‎src/index.ts

+13
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ export default class PluginSample extends Plugin {
120120
size: { width: 200, height: 0 },
121121
icon: "iconSaving",
122122
title: "Custom Dock",
123+
hotkey: "⌥⌘W",
123124
},
124125
data: {
125126
text: "This is my custom dock"
@@ -592,6 +593,18 @@ export default class PluginSample extends Plugin {
592593
click: () => {
593594
this.eventBus.off("click-editortitleicon", this.eventBusLog);
594595
}
596+
}, {
597+
icon: "iconSelect",
598+
label: "On click-flashcard-action",
599+
click: () => {
600+
this.eventBus.on("click-flashcard-action", this.eventBusLog);
601+
}
602+
}, {
603+
icon: "iconClose",
604+
label: "Off click-flashcard-action",
605+
click: () => {
606+
this.eventBus.off("click-flashcard-action", this.eventBusLog);
607+
}
595608
}, {
596609
icon: "iconSelect",
597610
label: "On open-noneditableblock",

0 commit comments

Comments
 (0)