forked from NodeBB/nodebb-plugin-poll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.json
executable file
·48 lines (45 loc) · 1.79 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
45
46
47
48
{
"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": "filter:privileges.list", "method": "addUserPrivilege" },
{ "hook": "filter:privileges.groups.list", "method": "addGroupPrivilege" },
{ "hook": "filter:privileges.list_human", "method": "addUserPrivilegeLabel" },
{ "hook": "filter:topic.post", "method": "hooks.filter.topicPost" },
{ "hook": "filter:parse.raw", "method": "hooks.filter.parseRaw", "priority": 1 },
{ "hook": "filter:post.save", "method": "hooks.filter.postSave" },
{ "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" }
],
"staticDirs": {
"public": "public"
},
"less": [
"public/less/style.less",
"public/less/vendor/bootstrap-datetimepicker.less"
],
"scripts": [
"public/js/poll/main.js",
"public/js/poll/serializer.js",
"public/js/poll/sockets.js",
"public/js/poll/creator.js",
"public/js/poll/view.js",
"public/js/vendor/moment.min.js",
"public/js/vendor/bootstrap-datetimepicker.min.js",
"public/js/vendor/jquery.serialize-object.min.js"
],
"acpScripts": [
"public/js/admin.js"
],
"templates": "templates",
"languages": "languages"
}