-
Notifications
You must be signed in to change notification settings - Fork 43
/
plugin.json
executable file
·42 lines (41 loc) · 1.7 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
{
"id": "nodebb-plugin-poll",
"name": "Poll",
"description": "NodeBB Poll Plugin",
"url": "https://github.com/Schamper/nodebb-plugin-poll",
"library": "library.js",
"hooks": [
{ "hook": "static:app.load", "method": "load" },
{ "hook": "filter:admin.header.build", "method": "addAdminNavigation" },
{ "hook": "filter:composer.formatting", "method": "registerFormatting" },
{ "hook": "static:privileges.categories.init", "method": "addPrivilege" },
{ "hook": "filter:categories.copyPrivilegesFrom", "method": "copyPrivilegesFrom" },
{ "hook": "filter:topic.post", "method": "hooks.filter.topicPost" },
{ "hook": "filter:parse.raw", "method": "hooks.filter.parseRaw", "priority": 1 },
{ "hook": "filter:post.create", "method": "hooks.filter.postCreate" },
{ "hook": "filter:post.edit", "method": "hooks.filter.postEdit" },
{ "hook": "action:post.delete", "method": "hooks.action.postDelete" },
{ "hook": "action:post.restore", "method": "hooks.action.postRestore" },
{ "hook": "action:topic.delete", "method": "hooks.action.topicDelete" },
{ "hook": "action:topic.restore", "method": "hooks.action.topicRestore" }
],
"scss": [
"public/scss/style.scss"
],
"scripts": [
"public/js/poll/main.js",
"public/js/poll/creator.js",
"public/js/poll/view.js"
],
"modules": {
"../admin/plugins/poll.js": "public/js/admin.js",
"poll/serializer.js": "public/js/poll/serializer.js"
},
"templates": "templates",
"languages": "languages",
"upgrades": [
"upgrades/give_categories_poll_create_privs_to_reg_users.js",
"upgrades/convert_poll_id_voters_and_options_votes_to_sorted_sets.js",
"upgrades/fix_incorrect_poll_privilege.js"
]
}