2017-06-27 12:26:09 +03:00
|
|
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
|
|
|
|
import { CommonModule } from '@angular/common';
|
|
|
|
|
|
|
|
|
|
import { UserService } from './users.service';
|
2017-07-14 18:55:38 +03:00
|
|
|
import { ElectricityService } from './electricity.service';
|
2017-07-28 14:54:29 +03:00
|
|
|
import { StateService } from './state.service';
|
2017-07-29 13:13:17 +03:00
|
|
|
import { SmartTableService } from './smart-table.service';
|
2017-08-06 15:51:07 +03:00
|
|
|
import { PlayerService } from './player.service';
|
2018-08-08 16:45:31 +03:00
|
|
|
import { UserActivityService } from './user-activity.service';
|
|
|
|
|
import { OrdersChartService } from './orders-chart.service';
|
|
|
|
|
import { ProfitChartService } from './profit-chart.service';
|
|
|
|
|
import { TrafficListService } from './traffic-list.service';
|
|
|
|
|
import { PeriodsService } from './periods.service';
|
|
|
|
|
import { EarningService } from './earning.service';
|
|
|
|
|
import { OrdersProfitChartService } from './orders-profit-chart.service';
|
|
|
|
|
import { TrafficBarService } from './traffic-bar.service';
|
|
|
|
|
import { ProfitBarAnimationChartService } from './profit-bar-animation-chart.service';
|
2018-08-09 15:24:44 +03:00
|
|
|
import { LayoutService } from './layout.service';
|
2017-06-27 12:26:09 +03:00
|
|
|
|
|
|
|
|
const SERVICES = [
|
|
|
|
|
UserService,
|
2017-07-14 18:55:38 +03:00
|
|
|
ElectricityService,
|
2017-07-28 14:54:29 +03:00
|
|
|
StateService,
|
2017-07-29 13:13:17 +03:00
|
|
|
SmartTableService,
|
2017-08-06 15:51:07 +03:00
|
|
|
PlayerService,
|
2018-08-08 16:45:31 +03:00
|
|
|
UserActivityService,
|
|
|
|
|
OrdersChartService,
|
|
|
|
|
ProfitChartService,
|
|
|
|
|
TrafficListService,
|
|
|
|
|
PeriodsService,
|
|
|
|
|
EarningService,
|
|
|
|
|
OrdersProfitChartService,
|
|
|
|
|
TrafficBarService,
|
|
|
|
|
ProfitBarAnimationChartService,
|
2018-08-09 15:24:44 +03:00
|
|
|
LayoutService,
|
2017-06-27 12:26:09 +03:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
|
imports: [
|
|
|
|
|
CommonModule,
|
|
|
|
|
],
|
|
|
|
|
providers: [
|
|
|
|
|
...SERVICES,
|
|
|
|
|
],
|
|
|
|
|
})
|
|
|
|
|
export class DataModule {
|
|
|
|
|
static forRoot(): ModuleWithProviders {
|
|
|
|
|
return <ModuleWithProviders>{
|
|
|
|
|
ngModule: DataModule,
|
|
|
|
|
providers: [
|
|
|
|
|
...SERVICES,
|
|
|
|
|
],
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|