-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathplugin.json
38 lines (38 loc) · 1.74 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
{
"id": "nodebb-plugin-question-and-answer",
"name": "Question and Answer Plugin for NodeBB",
"description": "A plugin for NodeBB which allows users to post topics as questions and select a post as the answer",
"url": "https://github.com/NodeBB/nodebb-plugin-question-and-answer",
"library": "./library.js",
"hooks": [
{ "hook": "static:app.load", "method": "init" },
{ "hook": "filter:config.get", "method": "appendConfig" },
{ "hook": "filter:admin.header.build", "method": "addAdminNavigation" },
{ "hook": "filter:topics.get", "method": "getTopics" },
{ "hook": "filter:post.getPostSummaryByPids", "method": "filterPostGetPostSummaryByPids" },
{ "hook": "filter:topic.build", "method": "addAnswerDataToTopic" },
{ "hook": "filter:topic.getPosts", "method": "filterTopicGetPosts" },
{ "hook": "filter:topic.thread_tools", "method": "addThreadTool" },
{ "hook": "filter:navigation.available", "method": "addNavigation" },
{ "hook": "filter:post.tools", "method": "addPostTool" },
{ "hook": "filter:rewards.conditions", "method": "getConditions" },
{ "hook": "filter:topic.create", "method": "onTopicCreate" },
{ "hook": "action:topic.save", "method": "actionTopicSave" },
{ "hook": "filter:topic.edit", "method": "filterTopicEdit" },
{ "hook": "action:topic.purge", "method": "actionTopicPurge" },
{ "hook": "filter:composer.push", "method": "filterComposerPush" },
{ "hook": "static:api.routes", "method": "staticApiRoutes" },
{ "hook": "filter:topicEvents.init", "method": "registerTopicEvents" }
],
"scss": [
"static/style.scss"
],
"scripts": [
"static/lib/main.js"
],
"modules": {
"../admin/plugins/question-and-answer.js": "static/lib/admin.js"
},
"templates": "static/templates",
"languages": "static/languages"
}