Assign image keyname and pubkey at vnf level
[ccsdk/apps.git] / sdnr / wireless-transport / code-Carbon-SR1 / ux / onapDcae / onapDcae-module / src / main / resources / onapDcae / onapDcae.module.js
1 /*
2  * Copyright (c) 2016 highstreet technologies GmbH and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 define(['angularAMD', 
10         'app/routingConfig', 
11         'app/core/core.services', 
12         'common/config/env.module',
13         'app/mwtnCommons/mwtnCommons.module'], function(ng) {
14   var onapDcaeApp = angular.module('app.onapDcae', ['ui.grid', 'ui.bootstrap', 'app.core',
15       'ui.router.state', 'config', 'ui.grid.exporter',
16       'ui.grid.moveColumns', 'ui.grid.pinning', 'ui.grid.selection',
17       'ui.grid.resizeColumns', 'ui.grid.infiniteScroll','ui.grid.pagination' ]);
18
19   onapDcaeApp.config(function($stateProvider, $compileProvider, $controllerProvider, $provide, NavHelperProvider, $translateProvider) {
20     onapDcaeApp.register = {
21       controller : $controllerProvider.register,
22       directive : $compileProvider.directive,
23       factory : $provide.factory,
24       service : $provide.service
25     };
26
27
28     NavHelperProvider.addControllerUrl('app/onapDcae/onapDcae.controller');
29     NavHelperProvider.addToMenu('onapDcae', {
30      "link" : "#/onapDcae/",
31      "active" : "main.onapDcae",
32      "title" : "ONAP DCAE",
33      "icon" : "fa fa-line-chart",  // Add navigation icon css class here
34      "page" : {
35         "title" : "ONAP DCAE",
36         "description" : "Open Network Automation Platform (ONAP) - Data Collection, Analytics and Events (DCAE)"
37      }
38     });
39
40     var access = routingConfig.accessLevels;
41
42     $stateProvider.state('main.onapDcae', {
43         url: 'onapDcae/:nodeId',
44         access: access.admin,
45         views : {
46             'content' : {
47                 templateUrl: 'src/app/onapDcae/onapDcae.tpl.html',
48                 controller: 'onapDcaeCtrl'
49             }
50         }
51     });
52
53   });
54
55   return onapDcaeApp;
56 });