Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/statistics.js @ 12477

Last change on this file since 12477 was 12477, checked in by dglaser, 9 years ago

#2388: Created WebApp.Statistics plugin

File size: 1.0 KB
Line 
1var appStatisticsPlugin = app.registerPlugin('statistics');
2(function () {
3    var plugin = appStatisticsPlugin;
4    plugin.dependencies = ['ngResource', 'ui.knob', 'ui.bootstrap'];
5    plugin.files = [
6        'WebApp/services/statisticsService.js',
7        'WebApp/jobs/jobsCtrl.js',
8        'WebApp/clients/clientsCtrl.js',
9        'WebApp/users/usersCtrl.js',
10    ];
11    plugin.view = 'WebApp/jobs/jobs.cshtml';
12    plugin.controller = 'app.statistics.jobsCtrl';
13    plugin.routes = [
14        new Route('jobs', 'WebApp/jobs/jobs.cshtml', 'app.statistics.jobsCtrl'),
15        new Route('clients', 'WebApp/clients/clients.cshtml', 'app.statistics.clientsCtrl'),
16        new Route('users', 'WebApp/users/users.cshtml', 'app.statistics.usersCtrl')
17    ];
18    var menu = app.getMenu();
19    var section = menu.getSection('Menü', 1);
20    section.addEntry({
21        name: 'Statistics',
22        route: '#/statistics/jobs',
23        icon: 'glyphicon glyphicon-stats',
24        entries: []
25    });
26})();
27
Note: See TracBrowser for help on using the repository browser.