12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- import './vendor.ts';
-
- import { NgModule } from '@angular/core';
- import { BrowserModule } from '@angular/platform-browser';
- import { HTTP_INTERCEPTORS } from '@angular/common/http';
- import { NgbDatepickerConfig } from '@ng-bootstrap/ng-bootstrap';
- import { Ng2Webstorage } from 'ngx-webstorage';
- import { NgJhipsterModule } from 'ng-jhipster';
-
- import { AuthInterceptor } from './blocks/interceptor/auth.interceptor';
- import { AuthExpiredInterceptor } from './blocks/interceptor/auth-expired.interceptor';
- import { ErrorHandlerInterceptor } from './blocks/interceptor/errorhandler.interceptor';
- import { NotificationInterceptor } from './blocks/interceptor/notification.interceptor';
- import { ZipConnectSharedModule } from 'app/shared';
- import { ZipConnectCoreModule } from 'app/core';
- import { ZipConnectAppRoutingModule } from './app-routing.module';
- import { ZipConnectHomeModule } from './home/home.module';
- import { ZipConnectAccountModule } from './account/account.module';
- import { ZipConnectEntityModule } from './entities/entity.module';
- import * as moment from 'moment';
- // jhipster-needle-angular-add-module-import JHipster will add new module here
- import { JhiMainComponent, NavbarComponent, FooterComponent, PageRibbonComponent, ActiveMenuDirective, ErrorComponent } from './layouts';
-
- @NgModule({
- imports: [
- BrowserModule,
- ZipConnectAppRoutingModule,
- Ng2Webstorage.forRoot({ prefix: 'jhi', separator: '-' }),
- NgJhipsterModule.forRoot({
- // set below to true to make alerts look like toast
- alertAsToast: false,
- alertTimeout: 5000,
- i18nEnabled: true,
- defaultI18nLang: 'en'
- }),
- ZipConnectSharedModule.forRoot(),
- ZipConnectCoreModule,
- ZipConnectHomeModule,
- ZipConnectAccountModule,
- // jhipster-needle-angular-add-module JHipster will add new module here
- ZipConnectEntityModule
- ],
- declarations: [JhiMainComponent, NavbarComponent, ErrorComponent, PageRibbonComponent, ActiveMenuDirective, FooterComponent],
- providers: [
- {
- provide: HTTP_INTERCEPTORS,
- useClass: AuthInterceptor,
- multi: true
- },
- {
- provide: HTTP_INTERCEPTORS,
- useClass: AuthExpiredInterceptor,
- multi: true
- },
- {
- provide: HTTP_INTERCEPTORS,
- useClass: ErrorHandlerInterceptor,
- multi: true
- },
- {
- provide: HTTP_INTERCEPTORS,
- useClass: NotificationInterceptor,
- multi: true
- }
- ],
- bootstrap: [JhiMainComponent]
- })
- export class ZipConnectAppModule {
- constructor(private dpConfig: NgbDatepickerConfig) {
- this.dpConfig.minDate = { year: moment().year() - 100, month: 1, day: 1 };
- }
- }
|