2017-05-10 11:04:06 +02:00
|
|
|
import {NgModule} from '@angular/core';
|
|
|
|
import {Title, BrowserModule} from "@angular/platform-browser";
|
|
|
|
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
|
|
|
|
import {HttpModule} from '@angular/http';
|
|
|
|
import {AppComponent} from './app.component';
|
|
|
|
import {LoginService} from "./services/login-service/login-service";
|
|
|
|
import {UserStore} from "./services/stores/user.store";
|
|
|
|
import {ShowErrorComponent} from './show-error/show-error.component';
|
|
|
|
import {APPLICATION_VALIDATORS} from './models/app-validators';
|
|
|
|
import {appRouting, routingComponents, routingProviders} from './app.routing';
|
|
|
|
import {AUTH_ENABLED} from './app.tokens';
|
|
|
|
import {UserService} from "./services/user-service/user.service";
|
|
|
|
import {UserItemComponent} from "./users/user-list/user-item.component";
|
|
|
|
import {SquadService} from "./services/squad-service/squad.service";
|
|
|
|
import {SquadStore} from "./services/stores/squad.store";
|
|
|
|
import {DecorationStore} from "./services/stores/decoration.store";
|
|
|
|
import {DecorationService} from "./services/decoration-service/decoration.service";
|
|
|
|
import {SquadItemComponent} from "./squads/squad-list/squad-item.component";
|
|
|
|
import {DecorationComponent} from "./decorations/decoration.component";
|
|
|
|
import {RankItemComponent} from "./ranks/rank-list/rank-item.component";
|
|
|
|
import {RankStore} from "./services/stores/rank.store";
|
|
|
|
import {RankService} from "./services/rank-service/rank.service";
|
|
|
|
import {DecorationItemComponent} from "./decorations/decoration-list/decoration-item.component";
|
|
|
|
import {AppConfig} from "./app.config";
|
2017-06-08 16:58:28 +02:00
|
|
|
import {LoginGuardAdmin, LoginGuardHL, LoginGuardSQL} from "./login/login.guard";
|
2017-05-10 11:04:06 +02:00
|
|
|
import {AwardingService} from "./services/awarding-service/awarding.service";
|
|
|
|
import {HttpClient} from "./services/http-client";
|
2017-05-11 21:46:28 +02:00
|
|
|
import {ArmyService} from "./services/army-service/army.service";
|
2017-05-19 00:45:43 +02:00
|
|
|
import { ClipboardModule } from 'ngx-clipboard';
|
2017-06-08 19:46:36 +02:00
|
|
|
import {AppUserService} from "./services/app-user-service/app-user.service";
|
|
|
|
import {AppUserStore} from "./services/stores/app-user.store";
|
2017-06-10 13:16:15 +02:00
|
|
|
import {PromotionService} from "./services/promotion-service/promotion.service";
|
|
|
|
import {FilterRankPipe} from "./filter/filter.pipe";
|
2017-07-08 21:56:11 +02:00
|
|
|
import {WarService} from "./services/war-service/war.service";
|
2017-07-09 17:08:32 +02:00
|
|
|
import {DataTableModule} from "angular2-datatable";
|
2017-05-10 11:04:06 +02:00
|
|
|
|
|
|
|
@NgModule({
|
2017-07-09 17:08:32 +02:00
|
|
|
imports: [BrowserModule, FormsModule, ReactiveFormsModule, appRouting, HttpModule, ClipboardModule, DataTableModule],
|
2017-05-10 11:04:06 +02:00
|
|
|
providers: [
|
|
|
|
HttpClient,
|
|
|
|
LoginService,
|
2017-06-08 16:58:28 +02:00
|
|
|
LoginGuardSQL,
|
|
|
|
LoginGuardHL,
|
|
|
|
LoginGuardAdmin,
|
2017-05-11 21:46:28 +02:00
|
|
|
ArmyService,
|
2017-06-08 19:46:36 +02:00
|
|
|
AppUserService,
|
|
|
|
AppUserStore,
|
2017-05-10 11:04:06 +02:00
|
|
|
UserService,
|
|
|
|
UserStore,
|
|
|
|
SquadService,
|
|
|
|
SquadStore,
|
|
|
|
DecorationService,
|
|
|
|
DecorationStore,
|
|
|
|
RankService,
|
|
|
|
RankStore,
|
|
|
|
AwardingService,
|
2017-06-10 13:16:15 +02:00
|
|
|
PromotionService,
|
2017-07-08 21:56:11 +02:00
|
|
|
WarService,
|
2017-05-10 11:04:06 +02:00
|
|
|
AppConfig,
|
|
|
|
Title,
|
|
|
|
routingProviders,
|
|
|
|
{provide: AUTH_ENABLED, useValue: true}
|
|
|
|
],
|
|
|
|
declarations: [
|
|
|
|
AppComponent,
|
|
|
|
routingComponents,
|
|
|
|
DecorationComponent,
|
|
|
|
DecorationItemComponent,
|
|
|
|
RankItemComponent,
|
2017-06-10 13:16:15 +02:00
|
|
|
FilterRankPipe,
|
2017-05-10 11:04:06 +02:00
|
|
|
UserItemComponent,
|
|
|
|
SquadItemComponent,
|
|
|
|
ShowErrorComponent,
|
|
|
|
APPLICATION_VALIDATORS],
|
|
|
|
bootstrap: [AppComponent]
|
|
|
|
})
|
|
|
|
export class AppModule {
|
|
|
|
}
|