57 lines
2.1 KiB
TypeScript
57 lines
2.1 KiB
TypeScript
import { HttpClientModule } from '@angular/common/http';
|
|
import { NgModule } from '@angular/core';
|
|
import { FormsModule } from '@angular/forms';
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
import { ChartsModule } from 'ng2-charts';
|
|
import { NgxMapboxGLModule } from 'ngx-mapbox-gl';
|
|
|
|
import { AppRoutingModule } from './app-routing.module';
|
|
import { AppComponent } from './app.component';
|
|
import { DashboardComponent } from './dashboard/dashboard.component';
|
|
import { FilterComponent } from './filter/filter.component';
|
|
import { LoginComponent } from './login/login.component';
|
|
import { MapComponent } from './map/map.component';
|
|
import { UserComponent } from './user/user.component';
|
|
import { DashboardWidgetComponent } from './dashboard-widget/dashboard-widget.component';
|
|
import { ServiceWorkerModule } from '@angular/service-worker';
|
|
import { environment } from '../environments/environment';
|
|
import { AdminComponent } from './admin/admin.component';
|
|
import { AlertComponent } from './_alert/alert/alert.component';
|
|
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
import { NotificationsComponent } from './notifications/notifications.component';
|
|
|
|
const config: SocketIoConfig = { url: 'http://localhost:8988', options: {} };
|
|
|
|
@NgModule({
|
|
declarations: [
|
|
AppComponent,
|
|
LoginComponent,
|
|
DashboardComponent,
|
|
MapComponent,
|
|
FilterComponent,
|
|
UserComponent,
|
|
DashboardWidgetComponent,
|
|
AdminComponent,
|
|
AlertComponent,
|
|
NotificationsComponent
|
|
],
|
|
imports: [
|
|
BrowserModule,
|
|
AppRoutingModule,
|
|
BrowserAnimationsModule,
|
|
FontAwesomeModule,
|
|
FormsModule,
|
|
HttpClientModule,
|
|
NgxMapboxGLModule.withConfig({
|
|
accessToken: 'pk.eyJ1IjoibW9uZGVpMSIsImEiOiJja2dsY2ZtaG0xZ2o5MnR0ZWs0Mm82OTBpIn0.NzDWN3P6jJLmci_v3MM1tA'
|
|
}),
|
|
ChartsModule,
|
|
ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production }),
|
|
FontAwesomeModule
|
|
],
|
|
providers: [],
|
|
bootstrap: [AppComponent]
|
|
})
|
|
export class AppModule { }
|