update to v0.1.12

This commit is contained in:
frostime 2023-08-15 10:38:13 +08:00
parent 014f906263
commit 4fc8ef7afc
4 changed files with 24 additions and 3 deletions

View file

@ -1,3 +1,12 @@
## 0.1.12 2023-08-01
* Upgrade siyuan to 0.7.9
## 0.1.11
* [Add `input-search` event bus to plugins](https://github.com/siyuan-note/siyuan/issues/8725)
## 0.1.10 ## 0.1.10
* [Add `bind this` example for eventBus in plugins](https://github.com/siyuan-note/siyuan/issues/8668) * [Add `bind this` example for eventBus in plugins](https://github.com/siyuan-note/siyuan/issues/8668)

View file

@ -1,6 +1,6 @@
{ {
"name": "plugin-sample-vite-svelte", "name": "plugin-sample-vite-svelte",
"version": "0.1.10", "version": "0.1.12",
"type": "module", "type": "module",
"description": "", "description": "",
"repository": "", "repository": "",
@ -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.62.1", "sass": "^1.62.1",
"siyuan": "0.7.7", "siyuan": "0.7.9",
"svelte": "^3.57.0", "svelte": "^3.57.0",
"ts-node": "^10.9.1", "ts-node": "^10.9.1",
"typescript": "^5.0.4", "typescript": "^5.0.4",

View file

@ -2,7 +2,7 @@
"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.1.8", "version": "0.1.12",
"minAppVersion": "2.9.0", "minAppVersion": "2.9.0",
"backends": ["all"], "backends": ["all"],
"frontends": ["all"], "frontends": ["all"],

View file

@ -524,6 +524,18 @@ export default class PluginSample extends Plugin {
click: () => { click: () => {
this.eventBus.off("open-menu-breadcrumbmore", this.eventBusLog); this.eventBus.off("open-menu-breadcrumbmore", this.eventBusLog);
} }
}, {
icon: "iconSelect",
label: "On input-search",
click: () => {
this.eventBus.on("input-search", this.eventBusLog);
}
}, {
icon: "iconClose",
label: "Off input-search",
click: () => {
this.eventBus.off("input-search", this.eventBusLog);
}
}] }]
}); });
menu.addSeparator(); menu.addSeparator();