2018-06-25 17:03:52 +02:00
|
|
|
// angular modules
|
2018-06-13 18:34:10 +02:00
|
|
|
import { BrowserModule, Title } from '@angular/platform-browser';
|
2018-06-25 17:03:52 +02:00
|
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
2018-06-13 18:34:10 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
2018-06-25 17:03:52 +02:00
|
|
|
import { FormsModule } from '@angular/forms';
|
2018-06-13 18:34:10 +02:00
|
|
|
import { HttpClientModule, HttpClientXsrfModule } from '@angular/common/http';
|
2018-06-25 17:03:52 +02:00
|
|
|
|
|
|
|
// MaterialUI modules
|
|
|
|
import {
|
|
|
|
MatButtonModule,
|
|
|
|
MatCheckboxModule,
|
|
|
|
MatToolbarModule,
|
|
|
|
MatCardModule,
|
|
|
|
MatInputModule,
|
|
|
|
MatProgressSpinnerModule,
|
|
|
|
MatSidenavModule
|
|
|
|
} from '@angular/material';
|
|
|
|
import { MatListModule } from '@angular/material/list';
|
|
|
|
import { MatExpansionModule } from '@angular/material/expansion';
|
|
|
|
import { MatMenuModule } from '@angular/material/menu';
|
|
|
|
|
|
|
|
// FontAwesome modules
|
2018-06-19 16:55:50 +02:00
|
|
|
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
|
|
import { library } from '@fortawesome/fontawesome-svg-core';
|
2018-06-13 18:34:10 +02:00
|
|
|
import { fas } from '@fortawesome/free-solid-svg-icons';
|
|
|
|
|
2018-06-25 17:03:52 +02:00
|
|
|
// App components and services
|
2018-06-13 18:34:10 +02:00
|
|
|
import { AppComponent } from './app.component';
|
2018-06-19 16:55:50 +02:00
|
|
|
import { LoginComponent } from './site/login/login.component';
|
2018-06-16 18:05:46 +02:00
|
|
|
import { AppRoutingModule } from './app-routing.module';
|
2018-06-13 18:34:10 +02:00
|
|
|
import { ProjectorComponent } from './projector/projector.component';
|
2018-06-19 16:55:50 +02:00
|
|
|
import { MotionsComponent } from './site/motions/motions.component';
|
|
|
|
import { AgendaComponent } from './site/agenda/agenda.component';
|
2018-06-13 18:34:10 +02:00
|
|
|
import { SiteComponent } from './site/site.component';
|
2018-06-19 16:55:50 +02:00
|
|
|
import { StartComponent } from './site/start/start.component';
|
|
|
|
import { ToastComponent } from './core/directives/toast/toast.component';
|
|
|
|
import { ToastService } from './core/services/toast.service';
|
|
|
|
import { ProjectorContainerComponent } from './projector/projector-container/projector-container.component';
|
|
|
|
import { AlertComponent } from './core/directives/alert/alert.component';
|
2018-06-13 18:34:10 +02:00
|
|
|
|
|
|
|
//add font-awesome icons to library.
|
|
|
|
//will blow up the code.
|
|
|
|
library.add(fas);
|
|
|
|
|
|
|
|
@NgModule({
|
2018-06-19 16:55:50 +02:00
|
|
|
declarations: [
|
|
|
|
AppComponent,
|
|
|
|
LoginComponent,
|
|
|
|
ProjectorComponent,
|
|
|
|
MotionsComponent,
|
|
|
|
AgendaComponent,
|
|
|
|
SiteComponent,
|
|
|
|
StartComponent,
|
|
|
|
ToastComponent,
|
|
|
|
ProjectorContainerComponent,
|
|
|
|
AlertComponent
|
|
|
|
],
|
|
|
|
imports: [
|
|
|
|
BrowserModule,
|
|
|
|
HttpClientModule,
|
|
|
|
HttpClientXsrfModule.withOptions({
|
|
|
|
cookieName: 'OpenSlidesCsrfToken',
|
|
|
|
headerName: 'X-CSRFToken'
|
|
|
|
}),
|
|
|
|
FormsModule,
|
2018-06-25 17:03:52 +02:00
|
|
|
BrowserAnimationsModule,
|
|
|
|
MatButtonModule,
|
|
|
|
MatCheckboxModule,
|
|
|
|
MatToolbarModule,
|
|
|
|
MatCardModule,
|
|
|
|
MatInputModule,
|
|
|
|
MatProgressSpinnerModule,
|
|
|
|
MatSidenavModule,
|
|
|
|
MatListModule,
|
|
|
|
MatExpansionModule,
|
|
|
|
MatMenuModule,
|
2018-06-19 16:55:50 +02:00
|
|
|
FontAwesomeModule,
|
|
|
|
AppRoutingModule
|
|
|
|
],
|
|
|
|
providers: [Title, ToastService],
|
|
|
|
bootstrap: [AppComponent]
|
2018-06-13 18:34:10 +02:00
|
|
|
})
|
2018-06-19 16:55:50 +02:00
|
|
|
export class AppModule {}
|