blob: 2acb259d75508ec345aec22386dcb9e27e40a0f7 [file] [log] [blame]
Matteo Scandolofb46ae62017-08-08 09:10:50 -07001
2/*
3 * Copyright 2017-present Open Networking Foundation
4
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8
9 * http://www.apache.org/licenses/LICENSE-2.0
10
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18
Matteo Scandoloa62adbc2017-03-02 15:37:34 -080019import {xosDataSources} from '../datasources/index';
Matteo Scandolo72181592017-07-25 14:49:40 -070020import {XosServiceGraphStore} from './services/service-graph.store';
Matteo Scandoloa62adbc2017-03-02 15:37:34 -080021import {xosCore} from '../core/index';
Matteo Scandolo968e7f22017-03-03 11:49:18 -080022import {XosCoarseTenancyGraph} from './components/coarse/coarse.component';
Matteo Scandolo75171782017-03-08 14:17:01 -080023import {XosFineGrainedTenancyGraph} from './components/fine-grained/fine-grained.component';
Matteo Scandolo7629cc42017-03-13 14:12:15 -070024import {XosServiceGraphExtender, IXosServiceGraphExtender} from './services/graph.extender';
25import {XosGraphHelpers} from './services/d3-helpers/graph.helpers';
Matteo Scandolo72181592017-07-25 14:49:40 -070026import {XosServiceInstanceGraphStore} from './services/service-instance.graph.store';
Matteo Scandoloa62adbc2017-03-02 15:37:34 -080027export const xosServiceGraph = 'xosServiceGraph';
28
29angular
30 .module(xosServiceGraph, [xosDataSources, xosCore])
31 .service('XosServiceGraphStore', XosServiceGraphStore)
Matteo Scandolo72181592017-07-25 14:49:40 -070032 .service('XosServiceInstanceGraphStore', XosServiceInstanceGraphStore)
Matteo Scandolo7629cc42017-03-13 14:12:15 -070033 .service('XosServiceGraphExtender', XosServiceGraphExtender)
34 .service('XosGraphHelpers', XosGraphHelpers)
Matteo Scandolo968e7f22017-03-03 11:49:18 -080035 .component('xosCoarseTenancyGraph', XosCoarseTenancyGraph)
Matteo Scandolo75171782017-03-08 14:17:01 -080036 .component('xosFineGrainedTenancyGraph', XosFineGrainedTenancyGraph)
37 .config(($stateProvider) => {
38 $stateProvider
39 .state('xos.fine-grained-graph', {
40 url: 'tenancy-graph',
41 component: 'xosFineGrainedTenancyGraph',
42 });
43 })
Matteo Scandolo7629cc42017-03-13 14:12:15 -070044 .run(($log: ng.ILogService, XosServiceGraphExtender: IXosServiceGraphExtender) => {
Matteo Scandoloa62adbc2017-03-02 15:37:34 -080045 $log.info(`[${xosServiceGraph}] Module Setup`);
46 });