-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathplugin.json
More file actions
42 lines (42 loc) · 992 Bytes
/
plugin.json
File metadata and controls
42 lines (42 loc) · 992 Bytes
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-recent-cards",
"name": "Recent Cards plugin for NodeBB's Persona Theme",
"description": "Add lavender-style cards of recent topics to Persona's category homepage",
"url": "https://github.com/NodeBB/nodebb-plugin-recent-cards",
"library": "./library.js",
"hooks": [
{
"hook": "static:app.load", "method": "init"
},
{
"hook": "filter:config.get", "method": "getConfig"
},
{
"hook": "filter:admin.header.build", "method": "addAdminNavigation"
},
{
"hook": "filter:widgets.getWidgets", "method": "defineWidgets"
},
{
"hook": "filter:widget.render:recentCards", "method": "renderWidget"
}
],
"staticDirs": {
"static": "./static"
},
"css": [
"static/slick/slick.css",
"static/slick/slick-theme.css"
],
"scss": [
"static/style.scss"
],
"scripts": [
"static/slick/slick.min.js",
"static/lib/main.js"
],
"modules": {
"../admin/plugins/recentcards.js": "static/lib/admin.js"
},
"templates": "static/templates"
}