WIP open file for a while
This commit is contained in:
parent
f937019e42
commit
d280fb9af3
122 changed files with 5702 additions and 10 deletions
25
lib/plugin/ui/angular/server/ui-angular-server-plugins.js
vendored
Normal file
25
lib/plugin/ui/angular/server/ui-angular-server-plugins.js
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
|
||||
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');
|
||||
};
|
||||
};
|
||||
})();
|
||||
26
lib/plugin/ui/angular/server/ui-angular-server-routes.js
vendored
Normal file
26
lib/plugin/ui/angular/server/ui-angular-server-routes.js
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
|
||||
module.exports = (function () {
|
||||
|
||||
return function UIAngularServerRoutesPlugin() {
|
||||
|
||||
this.configPlugin = function (ctx) {
|
||||
ctx.key = 'uiAngularServerRoutes';
|
||||
ctx.description = 'Adds an angular server routes page.';
|
||||
ctx.dependencies.push('angular');
|
||||
ctx.dependencies.push('serverInfoPlugins');
|
||||
};
|
||||
|
||||
this.configServer = function(ctx) {
|
||||
ctx.hostTemplateJS('js/server-routes');
|
||||
ctx.hostTemplateHTML('thtml/routes',true);
|
||||
|
||||
ctx.registrateMenuItem({
|
||||
name: 'Server Routes',
|
||||
link: ctx.troot.tmeta.tplugin.angular.tbase+'/server/routes',
|
||||
enable: true,
|
||||
roles: [],
|
||||
icon: 'fa fa-road'
|
||||
},'server');
|
||||
};
|
||||
};
|
||||
})();
|
||||
Loading…
Add table
Add a link
Reference in a new issue