mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-19 16:16:45 +00:00
feat(plugins): expose installed plugin project links
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
- Sidecar Protocol v1:可选原生后端与 DBX 通信的协议。
|
||||
- `.dbxp`:DBX 最终安装的插件包。
|
||||
|
||||
插件可以在 `manifest.json` 中声明可选的 `source`(源码仓库)和 `homepage`(项目主页)。这两个字段会随插件包签名并在“已安装”页面本地显示,因此不依赖联网;市场目录可以重复这些字段用于展示未安装插件。
|
||||
|
||||
正式文档和仓库提交流程参考 [`docs/content/docs/plugin-development.cn.mdx`](../docs/content/docs/plugin-development.cn.mdx)。完整协议和贡献点参考 [`README.md`](./README.md),底层发布流程参考 [`RELEASING.md`](./RELEASING.md)。
|
||||
|
||||
## 先说结论:SDK 不需要“启动”
|
||||
|
||||
@@ -144,6 +144,8 @@ Add the schema to a manifest for editor validation:
|
||||
"name": "Example",
|
||||
"icon": "assets/plugin.svg",
|
||||
"version": "1.0.0",
|
||||
"source": "https://github.com/example/dbx-plugin",
|
||||
"homepage": "https://example.com/dbx-plugin",
|
||||
"engines": {
|
||||
"dbx": ">=0.5.68",
|
||||
"host_api": "^1.0"
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
"version": "1.0.0",
|
||||
"publisher": "dbx",
|
||||
"description": "A complete DBX plugin example with a native sidecar, events, workbench UI, connection provider, and virtual filesystem provider.",
|
||||
"source": "https://github.com/t8y2/dbx",
|
||||
"homepage": "https://github.com/t8y2/dbx/tree/main/plugins/examples/hello-workbench",
|
||||
"engines": {
|
||||
"dbx": ">=0.5.68",
|
||||
"host_api": "^1.0"
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
"version": { "type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(?:[-+][0-9A-Za-z.-]+)?$" },
|
||||
"publisher": { "type": "string", "minLength": 1 },
|
||||
"description": { "type": "string" },
|
||||
"source": { "type": "string", "pattern": "^https?://[^\\s]+$" },
|
||||
"homepage": { "type": "string", "pattern": "^https?://[^\\s]+$" },
|
||||
"engines": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
|
||||
@@ -999,6 +999,8 @@ fn reject_unknown_manifest_fields(manifest: &Value) -> Result<(), String> {
|
||||
"version",
|
||||
"publisher",
|
||||
"description",
|
||||
"source",
|
||||
"homepage",
|
||||
"engines",
|
||||
"permissions",
|
||||
"entrypoints",
|
||||
|
||||
Reference in New Issue
Block a user