[12761] | 1 | var appMaintenancePlugin = app.registerPlugin('maintenance');
|
---|
| 2 | (function () {
|
---|
| 3 | var plugin = appMaintenancePlugin;
|
---|
| 4 | plugin.dependencies = ['ngResource', 'ui.knob', 'ui.bootstrap', 'tableSort'];
|
---|
| 5 | plugin.files = [
|
---|
| 6 | 'WebApp/services/spaceUsageService.js',
|
---|
| 7 | 'WebApp/services/pluginService.js',
|
---|
| 8 | 'WebApp/services/facttaskService.js',
|
---|
| 9 | 'WebApp/services/factclientinfoService.js',
|
---|
| 10 | 'WebApp/plugin/pluginCtrl.js',
|
---|
| 11 | 'WebApp/facttask/facttaskCtrl.js',
|
---|
| 12 | 'WebApp/factclientinfo/factclientinfoCtrl.js',
|
---|
| 13 | 'WebApp/spaceUsage/spaceUsageCtrl.js'
|
---|
| 14 | ];
|
---|
| 15 | plugin.view = 'WebApp/spaceUsage/spaceUsage.cshtml';
|
---|
| 16 | plugin.controller = 'app.maintenance.spaceUsageCtrl';
|
---|
| 17 | plugin.routes = [
|
---|
| 18 | new Route('spaceusage', 'WebApp/spaceUsage/spaceUsage.cshtml', 'app.maintenance.spaceUsageCtrl'),
|
---|
| 19 | new Route('facttask', 'WebApp/facttask/facttask.cshtml', 'app.maintenance.facttaskCtrl'),
|
---|
| 20 | new Route('factclientinfo', 'WebApp/factclientinfo/factclientinfo.cshtml', 'app.maintenance.factclientinfoCtrl'),
|
---|
| 21 | new Route('plugin', 'WebApp/plugin/plugin.cshtml', 'app.maintenance.pluginCtrl')
|
---|
| 22 | ];
|
---|
| 23 | var menu = app.getMenu();
|
---|
| 24 | var section = menu.getSection('Administration', -1);
|
---|
| 25 | section.addEntry({
|
---|
| 26 | name: 'Maintenance',
|
---|
| 27 | route: '#/maintenance',
|
---|
| 28 | icon: 'glyphicon glyphicon-cog',
|
---|
| 29 | entries: []
|
---|
| 30 | });
|
---|
| 31 | })();
|
---|
| 32 |
|
---|