Matteo Scandolo | a62adbc | 2017-03-02 15:37:34 -0800 | [diff] [blame] | 1 | import {xosDataSources} from '../datasources/index'; |
| 2 | import {XosServiceGraphStore} from './services/graph.store'; |
| 3 | import {xosCore} from '../core/index'; |
Matteo Scandolo | 968e7f2 | 2017-03-03 11:49:18 -0800 | [diff] [blame] | 4 | import {XosCoarseTenancyGraph} from './components/coarse/coarse.component'; |
Matteo Scandolo | 7517178 | 2017-03-08 14:17:01 -0800 | [diff] [blame] | 5 | import {XosFineGrainedTenancyGraph} from './components/fine-grained/fine-grained.component'; |
Matteo Scandolo | 7629cc4 | 2017-03-13 14:12:15 -0700 | [diff] [blame] | 6 | import {XosServiceGraphExtender, IXosServiceGraphExtender} from './services/graph.extender'; |
| 7 | import {XosGraphHelpers} from './services/d3-helpers/graph.helpers'; |
Matteo Scandolo | a62adbc | 2017-03-02 15:37:34 -0800 | [diff] [blame] | 8 | export const xosServiceGraph = 'xosServiceGraph'; |
| 9 | |
| 10 | angular |
| 11 | .module(xosServiceGraph, [xosDataSources, xosCore]) |
| 12 | .service('XosServiceGraphStore', XosServiceGraphStore) |
Matteo Scandolo | 7629cc4 | 2017-03-13 14:12:15 -0700 | [diff] [blame] | 13 | .service('XosServiceGraphExtender', XosServiceGraphExtender) |
| 14 | .service('XosGraphHelpers', XosGraphHelpers) |
Matteo Scandolo | 968e7f2 | 2017-03-03 11:49:18 -0800 | [diff] [blame] | 15 | .component('xosCoarseTenancyGraph', XosCoarseTenancyGraph) |
Matteo Scandolo | 7517178 | 2017-03-08 14:17:01 -0800 | [diff] [blame] | 16 | .component('xosFineGrainedTenancyGraph', XosFineGrainedTenancyGraph) |
| 17 | .config(($stateProvider) => { |
| 18 | $stateProvider |
| 19 | .state('xos.fine-grained-graph', { |
| 20 | url: 'tenancy-graph', |
| 21 | component: 'xosFineGrainedTenancyGraph', |
| 22 | }); |
| 23 | }) |
Matteo Scandolo | 7629cc4 | 2017-03-13 14:12:15 -0700 | [diff] [blame] | 24 | .run(($log: ng.ILogService, XosServiceGraphExtender: IXosServiceGraphExtender) => { |
Matteo Scandolo | a62adbc | 2017-03-02 15:37:34 -0800 | [diff] [blame] | 25 | $log.info(`[${xosServiceGraph}] Module Setup`); |
| 26 | }); |