26 lines
618 B
JavaScript
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');
|
||
|
};
|
||
|
};
|
||
|
})();
|