forked from leetcode/nodebb-plugin-category-sort-by-votes
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplugin.json
More file actions
25 lines (25 loc) · 1.17 KB
/
plugin.json
File metadata and controls
25 lines (25 loc) · 1.17 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
{
"id": "nodebb-plugin-category-sort-by-votes",
"name": "Category Sort by Votes",
"description": "Adds functionality to sort topics by votes in category list view",
"url": "https://github.com/wktang/nodebb-plugin-category-sort-by-votes",
"library": "./library.js",
"hooks": [
{ "hook": "static:app.load", "method": "init" },
{ "hook": "filter:topics.get", "method": "addTopicsVotesInCategory" },
{ "hook": "filter:admin.header.build", "method": "addAdminNavigation" },
{ "hook": "filter:user.getSettings", "method": "getSettings" },
{ "hook": "filter:categories.getSortedSetRangeDirection", "method": "getSortedSetRangeDirection"},
{ "hook": "filter:categories.buildTopicsSortedSet", "method": "buildTopicsSortedSet"},
{ "hook": "action:post.downvote", "method": "downvote" },
{ "hook": "action:post.upvote", "method": "upvote" },
{ "hook": "action:post.unvote", "method": "unvote" },
{ "hook": "filter:topic.create", "method": "createTopic" }
],
"templates": "./public/templates",
"scripts": [
"./client.js"
],
"languages": "languages",
"defaultLang": "en-GB"
}