forked from barisusakli/nodebb-plugin-dbsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.json
37 lines (34 loc) · 1.71 KB
/
plugin.json
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
{
"id": "nodebb-plugin-dbsearch-miraiforum",
"name": "DB Search",
"description": "miraiforum 优化版搜索插件",
"url": "https://github.com/MiraiForum/nodebb-plugin-dbsearch-miraiforum",
"library": "./index.js",
"upgrades": [
"upgrades/dbsearch_change_mongodb_schema.js"
],
"hooks": [
{ "hook": "static:app.load", "method": "init" },
{ "hook": "filter:admin.header.build", "method": "admin.menu" },
{ "hook": "action:post.save", "method": "actionPostSave" },
{ "hook": "action:post.restore", "method": "actionPostRestore" },
{ "hook": "action:post.edit", "method": "actionPostEdit" },
{ "hook": "action:post.delete", "method": "actionPostDelete" },
{ "hook": "action:posts.purge", "method": "actionPostsPurge" },
{ "hook": "action:post.move", "method": "actionPostMove" },
{ "hook": "action:post.changeOwner", "method": "actionPostChangeOwner" },
{ "hook": "action:topic.save", "method": "actionTopicSave" },
{ "hook": "action:topic.restore", "method": "actionTopicRestore" },
{ "hook": "action:topic.edit", "method": "actionTopicEdit" },
{ "hook": "action:topic.delete", "method": "actionTopicDelete" },
{ "hook": "action:topic.purge", "method": "actionTopicPurge" },
{ "hook": "action:topic.move", "method": "actionTopicMove" },
{ "hook": "action:topic.changeOwner", "method": "actionTopicChangeOwner" },
{ "hook": "filter:search.query", "method": "filterSearchQuery" },
{ "hook": "filter:topic.search", "method": "filterSearchTopic" }
],
"modules": {
"../admin/plugins/dbsearch.js": "public/admin.js"
},
"templates": "./templates"
}