mirror of
https://github.com/syncthing/syncthing.git
synced 2026-03-29 19:53:03 -04:00
61 lines
2.2 KiB
TypeScript
61 lines
2.2 KiB
TypeScript
import { BrowserModule } from '@angular/platform-browser';
|
|
import { NgModule } from '@angular/core';
|
|
import { HttpClientModule, HttpClientXsrfModule } from '@angular/common/http';
|
|
|
|
import { MatTableModule } from '@angular/material/table';
|
|
import { MatPaginatorModule } from '@angular/material/paginator';
|
|
import { MatSortModule } from '@angular/material/sort';
|
|
import { MatButtonToggleModule } from '@angular/material/button-toggle';
|
|
|
|
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';
|
|
import { StatusToggleComponent } from './status-toggle/status-toggle.component';
|
|
import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api';
|
|
import { InMemoryConfigDataService } from './in-memory-config-data.service';
|
|
import { deviceID } from './api-utils';
|
|
import { environment } from '../environments/environment';
|
|
import { DashboardComponent } from './dashboard/dashboard.component';
|
|
import { MatCardModule } from '@angular/material/card';
|
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
import { DonutChartComponent } from './donut-chart/donut-chart.component';
|
|
|
|
@NgModule({
|
|
declarations: [
|
|
AppComponent,
|
|
StatusListComponent,
|
|
FolderListComponent,
|
|
DeviceListComponent,
|
|
StatusToggleComponent,
|
|
DashboardComponent,
|
|
DonutChartComponent,
|
|
],
|
|
imports: [
|
|
BrowserModule,
|
|
AppRoutingModule,
|
|
BrowserAnimationsModule,
|
|
MatTableModule,
|
|
MatPaginatorModule,
|
|
MatSortModule,
|
|
MatButtonToggleModule,
|
|
HttpClientModule,
|
|
HttpClientXsrfModule.withOptions({
|
|
headerName: 'X-CSRF-Token-' + deviceID(),
|
|
cookieName: 'CSRF-Token-' + deviceID(),
|
|
}),
|
|
environment.production ?
|
|
[] : HttpClientInMemoryWebApiModule.forRoot(InMemoryConfigDataService, { delay: 200 }),
|
|
MatCardModule,
|
|
FlexLayoutModule
|
|
],
|
|
providers: [],
|
|
bootstrap: [AppComponent]
|
|
})
|
|
|
|
export class AppModule { }
|
|
|
|
|