blob: 00cf9e8add1aea815d5e5271c2d9069937f65c29 [file] [log] [blame]
Matteo Scandoloa62adbc2017-03-02 15:37:34 -08001import {xosDataSources} from '../datasources/index';
2import {XosServiceGraphStore} from './services/graph.store';
3import {xosCore} from '../core/index';
Matteo Scandolo968e7f22017-03-03 11:49:18 -08004import {XosCoarseTenancyGraph} from './components/coarse/coarse.component';
Matteo Scandolo75171782017-03-08 14:17:01 -08005import {XosFineGrainedTenancyGraph} from './components/fine-grained/fine-grained.component';
Matteo Scandolo7629cc42017-03-13 14:12:15 -07006import {XosServiceGraphExtender, IXosServiceGraphExtender} from './services/graph.extender';
7import {XosGraphHelpers} from './services/d3-helpers/graph.helpers';
Matteo Scandoloa62adbc2017-03-02 15:37:34 -08008export const xosServiceGraph = 'xosServiceGraph';
9
10angular
11 .module(xosServiceGraph, [xosDataSources, xosCore])
12 .service('XosServiceGraphStore', XosServiceGraphStore)
Matteo Scandolo7629cc42017-03-13 14:12:15 -070013 .service('XosServiceGraphExtender', XosServiceGraphExtender)
14 .service('XosGraphHelpers', XosGraphHelpers)
Matteo Scandolo968e7f22017-03-03 11:49:18 -080015 .component('xosCoarseTenancyGraph', XosCoarseTenancyGraph)
Matteo Scandolo75171782017-03-08 14:17:01 -080016 .component('xosFineGrainedTenancyGraph', XosFineGrainedTenancyGraph)
17 .config(($stateProvider) => {
18 $stateProvider
19 .state('xos.fine-grained-graph', {
20 url: 'tenancy-graph',
21 component: 'xosFineGrainedTenancyGraph',
22 });
23 })
Matteo Scandolo7629cc42017-03-13 14:12:15 -070024 .run(($log: ng.ILogService, XosServiceGraphExtender: IXosServiceGraphExtender) => {
Matteo Scandoloa62adbc2017-03-02 15:37:34 -080025 $log.info(`[${xosServiceGraph}] Module Setup`);
26 });