blob: e1a830edf75fb1a4f23d341f48a1ade50db47836 [file] [log] [blame]
Matteo Scandolof6acdbe2016-12-13 10:29:37 -08001import {xosHeader} from './header/header';
2import {xosFooter} from './footer/footer';
3import {xosNav} from './nav/nav';
4import routesConfig from './routes';
5import {xosLogin} from './login/login';
Matteo Scandolo9f87f302016-12-13 18:11:10 -08006import {xosTable} from './table/table';
Matteo Scandolof2c3ed62016-12-15 14:32:50 -08007import {RuntimeStates} from './services/runtime-states';
8import {NavigationService} from './services/navigation';
Matteo Scandolo5655bdc2016-12-16 08:32:15 -08009import {PageTitle} from './services/page-title';
Matteo Scandolod58d5042016-12-16 16:59:21 -080010import {ConfigHelpers} from './services/helpers/config.helpers';
Matteo Scandoloee655a12016-12-19 15:38:43 -080011import {xosLinkWrapper} from './link-wrapper/link-wrapper';
12import {XosFormHelpers} from './form/form-helpers';
13import {xosForm} from './form/form';
14import {xosField} from './field/field';
Matteo Scandolo266907e2016-12-20 13:41:42 -080015import 'angular-toastr';
Matteo Scandolof6acdbe2016-12-13 10:29:37 -080016
17export const xosCore = 'xosCore';
18
19angular
Matteo Scandolo67c105f2017-01-09 09:30:52 -080020 .module('xosCore', [
21 'ui.router',
22 'toastr',
23 'ui.bootstrap.typeahead'
24 ])
Matteo Scandolof6acdbe2016-12-13 10:29:37 -080025 .config(routesConfig)
Matteo Scandolof2c3ed62016-12-15 14:32:50 -080026 .provider('RuntimeStates', RuntimeStates)
27 .service('NavigationService', NavigationService)
Matteo Scandolo5655bdc2016-12-16 08:32:15 -080028 .service('PageTitle', PageTitle)
Matteo Scandoloee655a12016-12-19 15:38:43 -080029 .service('XosFormHelpers', XosFormHelpers)
Matteo Scandolod58d5042016-12-16 16:59:21 -080030 .service('ConfigHelpers', ConfigHelpers)
Matteo Scandoloee655a12016-12-19 15:38:43 -080031 .directive('xosLinkWrapper', xosLinkWrapper)
Matteo Scandolof6acdbe2016-12-13 10:29:37 -080032 .component('xosHeader', xosHeader)
33 .component('xosFooter', xosFooter)
34 .component('xosNav', xosNav)
Matteo Scandolo9f87f302016-12-13 18:11:10 -080035 .component('xosLogin', xosLogin)
Matteo Scandoloee655a12016-12-19 15:38:43 -080036 .component('xosTable', xosTable)
37 .component('xosForm', xosForm)
38 .component('xosField', xosField);