rbeer/nodebb-plugin-smoothshorts

View on GitHub
plugin.json

Summary

Maintainability
Test Coverage
{
  "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" }
  ]
}