|
|
@@ -4,8 +4,14 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
|
import { NgModule } from '@angular/core';
|
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
|
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
|
+import { registerLocaleData } from '@angular/common';
|
|
|
import { RouterModule } from '@angular/router';
|
|
|
|
|
|
+// Internationalization i18n
|
|
|
+import localeEs from '@angular/common/locales/es';
|
|
|
+import localeEsExtra from '@angular/common/locales/extra/es';
|
|
|
+registerLocaleData(localeEs, 'es-Es', localeEsExtra);
|
|
|
+
|
|
|
// used to create fake backend
|
|
|
import { fakeBackendProvider } from './helpers';
|
|
|
import { JwtInterceptor, ErrorInterceptor } from './helpers';
|
|
|
@@ -14,13 +20,14 @@ import { JwtInterceptor, ErrorInterceptor } from './helpers';
|
|
|
import { AppRoutingModule } from './app.routing';
|
|
|
import { AppComponent } from './app.component';
|
|
|
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
|
|
|
+import { ChartsModule } from 'ng2-charts';
|
|
|
import { SharedModule } from './components/shared/shared.module';
|
|
|
+
|
|
|
import { AdminComponent } from './layouts/admin/admin.component';
|
|
|
|
|
|
|
|
|
import { NgxDatatableModule } from '@swimlane/ngx-datatable';
|
|
|
|
|
|
-import { MDBBootstrapModule } from 'angular-bootstrap-md';
|
|
|
//import { DashboardComponent } from './dashboard/dashboard.component';
|
|
|
//import { AgmCoreModule } from '@agm/core';
|
|
|
import { PluginsModule } from './components/plugins/plugins.module';
|
|
|
@@ -39,6 +46,7 @@ import { AuthenticationService } from './services/authentication.service';
|
|
|
imports: [
|
|
|
BrowserModule,
|
|
|
NgbModule,
|
|
|
+ ChartsModule,
|
|
|
BrowserAnimationsModule,
|
|
|
FormsModule,
|
|
|
ReactiveFormsModule,
|
|
|
@@ -48,7 +56,6 @@ import { AuthenticationService } from './services/authentication.service';
|
|
|
AppRoutingModule,
|
|
|
PluginsModule,
|
|
|
NgxDatatableModule,
|
|
|
- MDBBootstrapModule.forRoot(),
|
|
|
],
|
|
|
providers: [
|
|
|
{ provide: HTTP_INTERCEPTORS, useClass: JwtInterceptor, multi: true },
|