-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.json
More file actions
50 lines (50 loc) · 1.29 KB
/
Copy pathplugin.json
File metadata and controls
50 lines (50 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"$schema": "./plugin.manifest.schema.json",
"id": "plugin-starter",
"name": "Plugin Starter",
"version": "1.0.0",
"description": "ReactPress 插件开发模板 — 演示 Hook 订阅、配置项、Admin 设置页与编辑器插槽。",
"author": "ReactPress",
"requires": ">=4.0.0",
"server": {
"module": "./dist/index.js",
"hooks": {
"subscribe": ["article.afterPublish"]
}
},
"admin": {
"slots": {
"subscribe": ["article.editor.meta.afterSummary"]
},
"menu": {
"title": "Plugin Starter",
"path": "/plugins/plugin-starter/settings",
"permission": "extension:manage",
"sort": 100
}
},
"settings": {
"schema": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean",
"title": "启用插件",
"description": "关闭后,发布文章时不再执行示例逻辑。",
"default": true
},
"logTitle": {
"type": "boolean",
"title": "记录文章标题",
"description": "发布后在服务端日志中输出文章标题(示例行为)。",
"default": true
}
}
}
},
"permissions": ["article:read"],
"capabilities": {
"headless": true
}
}