🚀 update

This commit is contained in:
frostime 2024-03-03 17:37:02 +08:00
parent c33a63aa8f
commit e48a9abbc9
4 changed files with 35 additions and 4 deletions

View file

@ -1,6 +1,24 @@
# Changelog # Changelog
## 0.3.2 2024-01 ## 0.3.5 2024-03
## 0.3.4 2024-02-20
* [Add plugin event bus `click-flashcard-action`](https://github.com/siyuan-note/siyuan/issues/10318)
## 0.3.3 2024-01-24
* Update dock icon class
## 0.3.2 2024-01-09
* [Add plugin `protyleOptions`](https://github.com/siyuan-note/siyuan/issues/10090)
* [Add plugin api `uninstall`](https://github.com/siyuan-note/siyuan/issues/10063)
* [Add plugin method `updateCards`](https://github.com/siyuan-note/siyuan/issues/10065)
* [Add plugin function `lockScreen`](https://github.com/siyuan-note/siyuan/issues/10063)
* [Add plugin event bus `lock-screen`](https://github.com/siyuan-note/siyuan/pull/9967)
* [Add plugin event bus `open-menu-inbox`](https://github.com/siyuan-note/siyuan/pull/9967)
## 0.3.1 2023-12-06 ## 0.3.1 2023-12-06

View file

@ -22,7 +22,7 @@
"minimist": "^1.2.8", "minimist": "^1.2.8",
"rollup-plugin-livereload": "^2.0.5", "rollup-plugin-livereload": "^2.0.5",
"sass": "^1.63.3", "sass": "^1.63.3",
"siyuan": "0.9.2", "siyuan": "0.9.4",
"svelte": "^3.59.1", "svelte": "^3.59.1",
"ts-node": "^10.9.1", "ts-node": "^10.9.1",
"typescript": "^5.1.3", "typescript": "^5.1.3",

View file

@ -2,8 +2,8 @@
"name": "plugin-sample-vite-svelte", "name": "plugin-sample-vite-svelte",
"author": "frostime", "author": "frostime",
"url": "https://github.com/siyuan-note/plugin-sample-vite-svelte", "url": "https://github.com/siyuan-note/plugin-sample-vite-svelte",
"version": "0.3.2", "version": "0.3.4",
"minAppVersion": "2.12.1", "minAppVersion": "3.0.0",
"backends": [ "backends": [
"windows", "windows",
"linux", "linux",

View file

@ -120,6 +120,7 @@ export default class PluginSample extends Plugin {
size: { width: 200, height: 0 }, size: { width: 200, height: 0 },
icon: "iconSaving", icon: "iconSaving",
title: "Custom Dock", title: "Custom Dock",
hotkey: "⌥⌘W",
}, },
data: { data: {
text: "This is my custom dock" text: "This is my custom dock"
@ -592,6 +593,18 @@ export default class PluginSample extends Plugin {
click: () => { click: () => {
this.eventBus.off("click-editortitleicon", this.eventBusLog); this.eventBus.off("click-editortitleicon", this.eventBusLog);
} }
}, {
icon: "iconSelect",
label: "On click-flashcard-action",
click: () => {
this.eventBus.on("click-flashcard-action", this.eventBusLog);
}
}, {
icon: "iconClose",
label: "Off click-flashcard-action",
click: () => {
this.eventBus.off("click-flashcard-action", this.eventBusLog);
}
}, { }, {
icon: "iconSelect", icon: "iconSelect",
label: "On open-noneditableblock", label: "On open-noneditableblock",