2020-03-10 15:57:02 +01:00
|
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
|
|
import { NgModule } from '@angular/core';
|
2020-03-14 03:11:05 +01:00
|
|
|
import { HttpClientModule, HttpClientXsrfModule } from '@angular/common/http';
|
2020-03-10 15:57:02 +01:00
|
|
|
|
2020-03-11 03:51:50 +01:00
|
|
|
import { MatTableModule } from '@angular/material/table';
|
|
|
|
import { MatPaginatorModule } from '@angular/material/paginator';
|
|
|
|
import { MatSortModule } from '@angular/material/sort';
|
2020-03-11 16:01:11 +01:00
|
|
|
import { MatButtonToggleModule } from '@angular/material/button-toggle';
|
2020-03-11 21:00:59 +01:00
|
|
|
|
|
|
|
import { AppRoutingModule } from './app-routing.module';
|
|
|
|
import { AppComponent } from './app.component';
|
|
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
|
|
import { StatusListComponent } from './status-list/status-list.component';
|
|
|
|
import { FolderListComponent } from './folder-list/folder-list.component';
|
|
|
|
import { DeviceListComponent } from './device-list/device-list.component';
|
2020-03-11 16:01:11 +01:00
|
|
|
import { StatusToggleComponent } from './status-toggle/status-toggle.component';
|
2020-03-14 03:11:05 +01:00
|
|
|
import { DeviceListDataSource } from './device-list/device-list-datasource';
|
2020-03-15 01:06:35 +01:00
|
|
|
import { deviceID } from './api-utils';
|
2020-03-11 16:01:11 +01:00
|
|
|
|
2020-03-10 15:57:02 +01:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
declarations: [
|
2020-03-11 03:51:50 +01:00
|
|
|
AppComponent,
|
|
|
|
StatusListComponent,
|
2020-03-11 21:00:59 +01:00
|
|
|
FolderListComponent,
|
|
|
|
DeviceListComponent,
|
2020-03-11 16:01:11 +01:00
|
|
|
StatusToggleComponent,
|
2020-03-10 15:57:02 +01:00
|
|
|
],
|
|
|
|
imports: [
|
|
|
|
BrowserModule,
|
2020-03-11 03:51:50 +01:00
|
|
|
AppRoutingModule,
|
|
|
|
BrowserAnimationsModule,
|
|
|
|
MatTableModule,
|
|
|
|
MatPaginatorModule,
|
|
|
|
MatSortModule,
|
2020-03-14 03:11:05 +01:00
|
|
|
MatButtonToggleModule,
|
|
|
|
HttpClientModule,
|
|
|
|
HttpClientXsrfModule.withOptions({
|
|
|
|
headerName: 'X-CSRF-Token-' + deviceID(),
|
|
|
|
cookieName: 'CSRF-Token-' + deviceID(),
|
|
|
|
})
|
2020-03-10 15:57:02 +01:00
|
|
|
],
|
|
|
|
providers: [],
|
|
|
|
bootstrap: [AppComponent]
|
|
|
|
})
|
2020-03-14 03:11:05 +01:00
|
|
|
|
2020-03-10 15:57:02 +01:00
|
|
|
export class AppModule { }
|
2020-03-14 03:11:05 +01:00
|
|
|
|
|
|
|
|