-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathlibrary.js
64 lines (55 loc) · 1.28 KB
/
library.js
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
(function(module) {
"use strict";
var Plugin = {};
/* TODO
filter:uploadImage
filter:widgets.getAreas
filter:widgets.getWidgets
filter:search.query
filter:post.parse
filter:messaging.parse
filter:scripts.get
filter:sounds.get
filter:post.save
filter:post.get
filter:post.getPosts
filter:posts.custom_profile_info
filter:post.getFields
filter:post.parse
filter:uploadFile
filter:register.check
filter:auth.init
filter:composer.help
filter:topic.thread_tools
filter:user.create
filter:widget.render
action:email.send
action:plugin.deactivate
action:plugin.activate
action:post.save
action:post.setField
action:topic.edit
action:post.edit
action:post.delete
action:post.restore
action:config.set
action:topic.save
action:user.create
action:post.delete
action:topic.delete
*/
// static:app.load
Plugin.init = function(params, callback) {
var app = params.router,
middleware = params.middleware,
controllers = params.controllers;
require('./lib/customRoutes')(app, middleware, controllers);
require('./lib/adminPage')(app, middleware, controllers);
callback();
};
require('./lib/nodebb');
require('./lib/userSettings')(Plugin);
require('./lib/menuItems')(Plugin);
require('./lib/clientScripts')(Plugin);
module.exports = Plugin;
}(module));