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:
parent
f90fe05fe0
commit
0cb0f0adf3
4 changed files with 86 additions and 88 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue