blob: 70b255e6124d4a5de612bcaffa0d2e9337b22f3a [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 Scandoloa62adbc2017-03-02 15:37:34 -08006export const xosServiceGraph = 'xosServiceGraph';
7
8angular
9 .module(xosServiceGraph, [xosDataSources, xosCore])
10 .service('XosServiceGraphStore', XosServiceGraphStore)
Matteo Scandolo968e7f22017-03-03 11:49:18 -080011 .component('xosCoarseTenancyGraph', XosCoarseTenancyGraph)
Matteo Scandolo75171782017-03-08 14:17:01 -080012 .component('xosFineGrainedTenancyGraph', XosFineGrainedTenancyGraph)
13 .config(($stateProvider) => {
14 $stateProvider
15 .state('xos.fine-grained-graph', {
16 url: 'tenancy-graph',
17 component: 'xosFineGrainedTenancyGraph',
18 });
19 })
Matteo Scandolo968e7f22017-03-03 11:49:18 -080020 .run(($log: ng.ILogService) => {
Matteo Scandoloa62adbc2017-03-02 15:37:34 -080021 $log.info(`[${xosServiceGraph}] Module Setup`);
22 });