1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Refactor plugin admin views to a more simplistic, reusable, multiple view approach

This commit is contained in:
Ryan Blenis 2019-11-07 22:48:14 -05:00
parent 55b0f27b12
commit 470ce54413
4 changed files with 86 additions and 88 deletions

View file

@ -199,22 +199,6 @@ module.exports.pluginHandler = function (parent) {
return isValid;
};
obj.getPlugins = function(func) {
var plugins = parent.db.getPlugins();
if (typeof plugins == 'undefined' || plugins.length == 0) {
return null;
}
plugins.forEach(function(p, x){
// check semantic version
console.log('FOREACH PLUGIN', p, x);
// callbacks to new versions
});
return plugins;
}
obj.getPluginConfig = function(configUrl) {
return new Promise(function(resolve, reject) {
var https = require('https');