mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
Merge pull request +9157 from c9/smf-plugins
Smartface plugins
This commit is contained in:
commit
34574f3a2d
@ -19,6 +19,7 @@ define(function(require, exports, module) {
|
||||
|
||||
var whitelist = options.whitelist;
|
||||
var blacklist = options.blacklist;
|
||||
var externalPlugins = options.externalPlugins || [];
|
||||
|
||||
/***** Initialization *****/
|
||||
|
||||
@ -81,6 +82,13 @@ define(function(require, exports, module) {
|
||||
mount: "/lib/ace",
|
||||
rjs: requirePaths
|
||||
}]);
|
||||
|
||||
statics.addStatics(externalPlugins.map(function(plugin) {
|
||||
return {
|
||||
path: __dirname + "/../../node_modules/" + plugin,
|
||||
mount: "/plugins/" + plugin
|
||||
};
|
||||
}));
|
||||
|
||||
statics.addStatics(fs.readdirSync(__dirname + "/../")
|
||||
.filter(function(path) {
|
||||
@ -133,4 +141,4 @@ define(function(require, exports, module) {
|
||||
"c9.static.plugins": plugin
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user