nodebb-plugin-question-and-answer
Version:
A nodebb-plugin-question-and-answer plugin for NodeBB which allows users to post topics as questions and select a post as the answer
39 lines (38 loc) • 1.78 kB
JSON
{
"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"
}