2
0
Fork 0
tcrud/lib/plugin/ui/angular/server/ui-angular-server-plugins.js
2017-06-10 16:53:29 +02:00

26 lines
618 B
JavaScript

module.exports = (function () {
return function UIAngularServerRoutesPlugin() {
this.configPlugin = function (ctx) {
ctx.key = 'uiAngularServerPlugins';
ctx.description = 'Adds an angular server plugins page.';
ctx.dependencies.push('angular');
};
this.configServer = function(ctx) {
ctx.hostTemplateJS('js/server-plugins');
ctx.hostTemplateHTML('thtml/plugins',true);
ctx.registrateMenuItem({
name: 'Server Plugins',
link: ctx.troot.tmeta.tplugin.angular.tbase+'/server/plugins',
enable: true,
roles: [],
icon: 'fa fa-umbrella'
},'server');
};
};
})();