-
Notifications
You must be signed in to change notification settings - Fork 2
/
plugin.json
22 lines (22 loc) · 986 Bytes
/
plugin.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"id": "nodebb-plugin-smoothshorts",
"name": "Seamless short URL plugin for NodeBB",
"description": "Replaces long slug urls with short, hashed ones in NodeBB.",
"url": "https://github.com/rbeer/nodebb-plugin-smoothshorts",
"library": "./lib/controller.js",
"scripts": ["public/scripts/"],
"css": ["public/css/smoothshorts.css"],
"templates": "public/templates",
"languages": "public/locales",
"defaultLang": "en_GB",
"staticDirs": {"scripts": "public/static/scripts/", "css": "public/static/css/"},
"hooks": [
{ "hook": "action:topic.save", "method": "shortenTopic" },
{ "hook": "action:topic.purge", "method": "purgeTopic" },
{ "hook": "action:post.save", "method": "shortenPost" },
{ "hook": "action:post.purge", "method": "purgePost" },
{ "hook": "filter:admin.header.build", "method": "admin.addMenuItem" },
{ "hook": "filter:hotswap.prepare", "method": "prepareHotSwap" },
{ "hook": "static:app.load", "method": "init" }
]
}