-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathplugin.json
44 lines (44 loc) · 1.2 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
38
39
40
41
42
43
44
{
"id": "nodebb-plugin-reactions",
"name": "NodeBB Reactions",
"description": "Reactions plugin for NodeBB",
"url": "https://github.com/NodeBB-Community/nodebb-plugin-reactions",
"library": "./library.js",
"templates": "templates",
"languages": "languages",
"scss": [
"scss/reactions.scss"
],
"scripts": [
"public/client.js"
],
"modules": {
"../admin/plugins/reactions.js": "./public/admin.js"
},
"hooks": [
{
"hook": "static:app.load", "method": "init"
},
{
"hook": "filter:admin.header.build", "method": "addAdminNavigation"
},
{
"hook": "filter:config.get", "method": "getPluginConfig"
},
{
"hook": "filter:settings.get", "method": "filterSettingsGet"
},
{
"hook": "filter:post.getPosts", "method": "getPostReactions"
},
{
"hook": "filter:messaging.getMessages", "method": "getMessageReactions"
},
{
"hook": "filter:post.get", "method": "onReply"
},
{
"hook": "action:posts.purge", "method": "deleteReactions"
}
]
}