From ead99605fd054e05561ee135cdca554f587a5056 Mon Sep 17 00:00:00 2001 From: frostime Date: Fri, 26 May 2023 17:43:08 +0800 Subject: [PATCH] come up with 0.0.6 --- README.md | 11 ++++------- README_zh_CN.md | 11 ++++------- plugin.json | 7 ++----- src/siyuan.d.ts | 2 +- 4 files changed, 11 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 98d37e8..52b1004 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,8 @@ conveniently. "name": "plugin-sample-vite-svelte", "author": "frostime", "url": "https://github.com/siyuan-note/plugin-sample-vite-svelte", - "version": "1.0.0", + "version": "0.0.1", + "minAppVersion": "2.9.0", "displayName": { "en_US": "Plugin sample with vite and svelte", "zh_CN": "插件样例 vite + svelte 版" @@ -82,13 +83,9 @@ conveniently. "en_US": "README_en_US.md", "zh_CN": "README.md" }, - "i18n": [ - "en_US", - "zh_CN" - ], "funding": { "custom": [ - "https://afdian.net/a/frostime" + "" ] } } @@ -99,6 +96,7 @@ conveniently. * `author`: Plugin author name * `url`: Plugin repo URL * `version`: Plugin version number, it is recommended to follow the [semver](https://semver.org/) specification +* `minAppVersion`: Minimum version number of SiYuan required to use this plugin * `displayName`: Template display name, mainly used for display in the marketplace list, supports multiple languages * `default`: Default language, must exist * `zh_CN`, `en_US` and other languages: optional, it is recommended to provide at least Chinese and English @@ -108,7 +106,6 @@ conveniently. * `readme`: readme file name, mainly used to display in the marketplace details page, supports multiple languages * `default`: Default language, must exist * `zh_CN`, `en_US` and other languages: optional, it is recommended to provide at least Chinese and English -* `i18n`: Plugin supported language list * `funding`: Plugin sponsorship information * `openCollective`: Open Collective name * `patreon`: Patreon name diff --git a/README_zh_CN.md b/README_zh_CN.md index 45a9fd7..81ec5b0 100644 --- a/README_zh_CN.md +++ b/README_zh_CN.md @@ -63,7 +63,8 @@ "name": "plugin-sample-vite-svelte", "author": "frostime", "url": "https://github.com/siyuan-note/plugin-sample-vite-svelte", - "version": "1.0.0", + "version": "0.0.1", + "minAppVersion": "2.9.0", "displayName": { "en_US": "Plugin sample with vite and svelte", "zh_CN": "插件样例 vite + svelte 版" @@ -76,13 +77,9 @@ "en_US": "README_en_US.md", "zh_CN": "README.md" }, - "i18n": [ - "en_US", - "zh_CN" - ], "funding": { "custom": [ - "https://afdian.net/a/frostime" + "" ] } } @@ -92,6 +89,7 @@ * `author`:插件作者名 * `url`:插件仓库地址 * `version`:插件版本号,建议遵循 [semver](https://semver.org/lang/zh-CN/) 规范 +* `minAppVersion`:插件支持的最低思源笔记版本号 * `displayName`:模板显示名称,主要用于模板集市列表中显示,支持多语言 * `default`:默认语言,必须存在 * `zh_CN`、`en_US` 等其他语言:可选,建议至少提供中文和英文 @@ -101,7 +99,6 @@ * `readme`:自述文件名,主要用于插件集市详情页中显示,支持多语言 * `default`:默认语言,必须存在 * `zh_CN`、`en_US` 等其他语言:可选,建议至少提供中文和英文 -* `i18n`:插件支持的语言列表 * `funding`:插件赞助信息 * `openCollective`:Open Collective 名称 * `patreon`:Patreon 名称 diff --git a/plugin.json b/plugin.json index b604b5e..8558256 100644 --- a/plugin.json +++ b/plugin.json @@ -2,7 +2,8 @@ "name": "plugin-sample-vite-svelte", "author": "frostime", "url": "https://github.com/siyuan-note/plugin-sample-vite-svelte", - "version": "0.0.4", + "version": "0.0.6", + "minAppVersion": "2.9.0", "displayName": { "en_US": "Plugin sample with vite and svelte", "zh_CN": "插件样例 vite + svelte 版" @@ -15,10 +16,6 @@ "en_US": "README.md", "zh_CN": "README_zh_CN.md" }, - "i18n": [ - "en_US", - "zh_CN" - ], "funding": { "custom": [ "https://afdian.net/a/frostime" diff --git a/src/siyuan.d.ts b/src/siyuan.d.ts index f4bb1c0..1d5b0a9 100644 --- a/src/siyuan.d.ts +++ b/src/siyuan.d.ts @@ -1,5 +1,5 @@ declare module "siyuan" { - type TEventBus = "ws-main" | "click-blockicon" | "click-editorcontent" | "click-pdf" + type TEventBus = "ws-main" | "click-blockicon" | "click-editorcontent" | "click-pdf" | "click-editortitleicon" declare global { interface Window {