next-ucap-messenger/projects/ucap-webmessenger-app/src/app/app.module.ts

84 lines
2.4 KiB
TypeScript
Raw Normal View History

2019-09-18 06:02:21 +00:00
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HttpClientModule } from '@angular/common/http';
import { MatProgressBarModule } from '@angular/material/progress-bar';
import { UCapCommonApiModule } from '@ucap-webmessenger/api-common';
import { UCapExternalApiModule } from '@ucap-webmessenger/api-external';
import { UCapPublicApiModule } from '@ucap-webmessenger/api-public';
import { UCapPiModule } from '@ucap-webmessenger/pi';
2019-09-19 01:40:16 +00:00
import { UCapProtocolModule } from '@ucap-webmessenger/protocol';
import { UCapAuthenticationProtocolModule } from '@ucap-webmessenger/protocol-authentication';
2019-09-19 05:15:43 +00:00
import { UCapInnerProtocolModule } from '@ucap-webmessenger/protocol-inner';
2019-09-19 01:40:16 +00:00
2019-09-18 06:02:21 +00:00
import { UCapUiModule } from '@ucap-webmessenger/ui';
import { UCapUiAccountModule } from '@ucap-webmessenger/ui-account';
import { UCapWebStorageModule } from '@ucap-webmessenger/web-storage';
2019-09-19 01:40:16 +00:00
import { UCapUtilModule } from '@ucap-webmessenger/util';
2019-09-18 06:02:21 +00:00
import { environment } from '../environments/environment';
import { AppProviderModule } from './app-provider.module';
import { AppRoutingModule } from './app-routing.module';
import { AppStoreModule } from './app-store.module';
import { AppTranslateModule } from './app-translate.module';
import { AppComponent } from './app.component';
import { GUARDS } from './guards';
@NgModule({
imports: [
BrowserModule,
BrowserAnimationsModule,
HttpClientModule,
MatProgressBarModule,
UCapCommonApiModule.forRoot({ urls: environment.urls.apiCommon }),
UCapPublicApiModule.forRoot({
urls: environment.urls.apiPublic
}),
UCapExternalApiModule.forRoot({
urls: environment.urls.apiExternal
}),
UCapPiModule.forRoot({
urls: environment.urls.pi
}),
2019-09-19 01:40:16 +00:00
UCapProtocolModule.forRoot({
urls: environment.urls.protocol,
reconnect: environment.protocol.reconnect,
requestId: environment.protocol.requestId
}),
UCapAuthenticationProtocolModule.forRoot(),
2019-09-19 05:15:43 +00:00
UCapInnerProtocolModule.forRoot(),
2019-09-19 01:40:16 +00:00
2019-09-18 06:02:21 +00:00
UCapUiModule.forRoot(),
UCapUiAccountModule.forRoot(),
UCapWebStorageModule.forRoot(),
2019-09-19 01:40:16 +00:00
UCapUtilModule.forRoot(),
2019-09-18 06:02:21 +00:00
AppProviderModule,
AppRoutingModule,
AppStoreModule,
AppTranslateModule
],
providers: [...GUARDS],
declarations: [AppComponent],
bootstrap: [AppComponent],
entryComponents: []
})
export class AppModule {}