-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathplugin.json
38 lines (37 loc) · 1.35 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
{
"id": "nodebb-plugin-2factor",
"url": "https://github.com/julianlam/nodebb-plugin-2factor",
"library": "./library.js",
"hooks": [
{ "hook": "static:app.load", "method": "init" },
{ "hook": "static:api.routes", "method": "addRoutes" },
{ "hook": "filter:config.get", "method": "appendConfig" },
{ "hook": "filter:admin.header.build", "method": "addAdminNavigation" },
{ "hook": "filter:user.profileMenu", "method": "addProfileItem" },
{ "hook": "response:router.page", "method": "check" },
{ "hook": "filter:middleware.buildHeader", "method": "overrideUid" },
{ "hook": "static:user.loggedOut", "method": "clearSession" },
{ "hook": "static:sockets.validateSession", "method": "checkSocket" },
{ "hook": "response:auth.relogin", "method": "adjustRelogin" },
{ "hook": "response:plugin.write-api.route", "method": "integrations.writeApi" }
],
"staticDirs": {
"static": "./static"
},
"scss": [
"static/style.scss"
],
"scripts": [
"static/lib/main.js"
],
"modules": {
"../admin/plugins/2factor.js": "./static/lib/admin.js",
"../client/login-totp.js": "./static/lib/totp.js",
"../client/login-authn.js": "./static/lib/authn.js",
"../client/login-backup.js": "./static/lib/backup.js",
"../client/account/2factor.js": "./static/lib/settings.js"
},
"templates": "static/templates",
"languages": "languages",
"defaultLang": "en-GB"
}