app.module.ts 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. import { ServicesComponent } from './servicesItems/services.component';
  2. import { ExternalPageModule } from './External-Page/external-page.module';
  3. //import { InternalPageModule } from './Internal-Page/internal-page.module';
  4. import { DashBoardModule } from './dashboard/dashboard.module';
  5. import { CanDeactivateGuard } from './shared/can-deactivate-guards.service';
  6. import { HashLocationStrategy, LocationStrategy } from '@angular/common';
  7. import { FooterComponent } from './dashboard/main-footer/footer.component';
  8. import { HeaderComponent } from './dashboard/header/header.component';
  9. import { AuthGuardService } from './shared/auth-guard.service';
  10. import { ResponceInterceptService } from './shared/responce-intercept.service';
  11. import { TokenInterceptorService } from './shared/token-interceptor.service';
  12. import { BrowserModule } from '@angular/platform-browser';
  13. import { LOCALE_ID, NgModule } from '@angular/core';
  14. import { QuillModule } from 'ngx-quill';
  15. import { MomentModule } from 'ngx-moment';
  16. import {FormsModule, ReactiveFormsModule} from '@angular/forms';
  17. import { SlideMenuModule } from 'cuppa-ng2-slidemenu/cuppa-ng2-slidemenu';
  18. import { AppRoutingModule } from './app-routing.module';
  19. import { AppComponent } from './app.component';
  20. import { HttpModule } from '@angular/http';
  21. import { HttpClientModule } from '@angular/common/http';
  22. import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
  23. import { LoginComponent } from './login/login.component';
  24. import { RegesterComponent } from './regester/regester.component';
  25. import { PageNotFoundComponent } from './page-not-found/page-not-found.component';
  26. import { AuthServiceService } from './shared/auth-service.service';
  27. import { HTTP_INTERCEPTORS } from '@angular/common/http';
  28. import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
  29. import { ToastrModule } from 'ngx-toastr';
  30. import { NgxSpinnerModule } from 'ngx-spinner';
  31. import {NgxPaginationModule} from 'ngx-pagination';
  32. import { FiltterPipePipe } from './filtter-pipe.pipe';
  33. import { AlifeFileToBase64Module } from 'alife-file-to-base64';
  34. import { CollapsibleModule } from 'angular2-collapsible'; // <-- import the module
  35. import { FlatpickrModule } from 'angularx-flatpickr';
  36. import { CalendarModule, DateAdapter } from 'angular-calendar';
  37. import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
  38. import { BootstrapModalModule } from 'ngx-modialog/plugins/bootstrap';
  39. import { JwSocialButtonsModule } from 'jw-angular-social-buttons';
  40. //import { CeiboShare } from 'ng2-social-share';
  41. //import { registerLocaleData } from '@angular/common';
  42. //import localeAr from '@angular/common/locales/ar-SA';
  43. //import localeDE from '@angular/common/locales/de';
  44. import { Ng2CarouselamosModule } from 'ng2-carouselamos';
  45. //registerLocaleData(localeAr, 'ar');
  46. //import { CeiboShare } from 'ng2-social-share';
  47. @NgModule({
  48. declarations: [
  49. AppComponent,
  50. HeaderComponent,
  51. FooterComponent,
  52. LoginComponent,
  53. RegesterComponent,
  54. ServicesComponent,
  55. PageNotFoundComponent,
  56. //CeiboShare,
  57. ],
  58. imports: [
  59. BrowserModule,
  60. FormsModule,
  61. ReactiveFormsModule,
  62. HttpModule,
  63. HttpClientModule,
  64. DashBoardModule,
  65. //InternalPageModule,
  66. ExternalPageModule,
  67. AppRoutingModule,
  68. SlideMenuModule,
  69. NgxSpinnerModule,
  70. NgxPaginationModule,
  71. MomentModule,
  72. AlifeFileToBase64Module,
  73. BrowserAnimationsModule, // <-- include required BrowserAnimationsModule
  74. CollapsibleModule,
  75. BootstrapModalModule,
  76. Ng2CarouselamosModule,
  77. ToastrModule.forRoot(), // ToastrModule added
  78. NgbModule.forRoot(),
  79. FlatpickrModule.forRoot(),
  80. CalendarModule.forRoot({
  81. provide: DateAdapter,
  82. useFactory: adapterFactory
  83. }),
  84. QuillModule,
  85. ],
  86. providers: [AuthServiceService,
  87. TokenInterceptorService,
  88. AuthGuardService,
  89. CanDeactivateGuard,
  90. //{ provide: LOCALE_ID, useValue: 'ar-SA' },
  91. {provide: LocationStrategy, useClass: HashLocationStrategy},
  92. ResponceInterceptService , {
  93. provide: HTTP_INTERCEPTORS,
  94. useClass: TokenInterceptorService,
  95. multi: true
  96. },
  97. ],
  98. bootstrap: [AppComponent]
  99. })
  100. export class AppModule { }