app.module.ts 2.87 KB
Newer Older
1 2 3 4 5 6 7
import {BrowserModule} from '@angular/platform-browser';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {NgModule} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {JsonPipe} from '@angular/common';
import {HttpModule} from '@angular/http';
import {HttpClientModule, HttpClientXsrfModule} from '@angular/common/http';
Lukas Burgey's avatar
Lukas Burgey committed
8

9 10 11 12 13 14 15
import {MatButtonModule} from '@angular/material';
import {MatToolbarModule} from '@angular/material';
import {MatTableModule} from '@angular/material/table';
import {MatSnackBarModule} from '@angular/material/snack-bar';
import {MatExpansionModule} from '@angular/material/expansion';
import {MatIconModule} from '@angular/material/icon';
import {MatDialogModule} from '@angular/material/dialog';
Lukas Burgey's avatar
Lukas Burgey committed
16 17 18
import {MatFormFieldModule} from '@angular/material/form-field';
import {MatSelectModule} from '@angular/material/select';
import {MatInputModule} from '@angular/material/input';
19
import {MatCheckboxModule} from '@angular/material/checkbox';
20
import {MatTooltipModule} from '@angular/material/tooltip';
Lukas Burgey's avatar
Lukas Burgey committed
21 22
import {MatProgressBarModule} from '@angular/material/progress-bar';
import {MatProgressSpinnerModule} from '@angular/material/progress-spinner';
23

24 25 26
// Other libs
import {StompRService} from '@stomp/ng2-stompjs';
import {CookieService} from 'ngx-cookie-service';
Lukas Burgey's avatar
Lukas Burgey committed
27

28 29 30 31
// Our stuff
import {UserService} from './user.service';
import {SnackBarService} from './snackbar.service';
import {DialogService} from './dialog.service';
Lukas Burgey's avatar
Lukas Burgey committed
32

33 34 35 36 37 38 39
import {AppComponent} from './app.component';
import {MgmtComponent} from './mgmt/mgmt.component';
import {LoginComponent} from './login/login.component';
import {ProfileComponent} from './profile/profile.component';
import {ServiceComponent} from './service/service.component';
import {SshKeysComponent} from './ssh-keys/ssh-keys.component';
import {AccountComponent} from './account/account.component';
Lukas Burgey's avatar
Lukas Burgey committed
40 41 42 43 44 45 46


@NgModule({
  declarations: [
    AppComponent,
    MgmtComponent,
    LoginComponent,
Lukas Burgey's avatar
Lukas Burgey committed
47 48 49
    ProfileComponent,
    ServiceComponent,
    SshKeysComponent,
Lukas Burgey's avatar
Lukas Burgey committed
50
    AccountComponent,
Lukas Burgey's avatar
Lukas Burgey committed
51 52 53 54
  ],
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
Lukas Burgey's avatar
Lukas Burgey committed
55
    FormsModule,
Lukas Burgey's avatar
Lukas Burgey committed
56
    HttpModule,
Lukas Burgey's avatar
Lukas Burgey committed
57 58 59 60 61
    HttpClientModule,
    HttpClientXsrfModule.withOptions({
      cookieName: 'csrftoken',
      headerName: 'HTTP_X_CSRFTOKEN',
    }),
Lukas Burgey's avatar
Lukas Burgey committed
62
    MatButtonModule,
Lukas Burgey's avatar
Lukas Burgey committed
63 64 65 66 67 68 69 70 71
    MatToolbarModule,
    MatTableModule,
    MatSnackBarModule,
    MatExpansionModule,
    MatIconModule,
    MatDialogModule,
    MatFormFieldModule,
    MatSelectModule,
    MatInputModule,
72
    MatCheckboxModule,
73
    MatTooltipModule,
Lukas Burgey's avatar
Lukas Burgey committed
74 75
    MatProgressBarModule,
    MatProgressSpinnerModule,
Lukas Burgey's avatar
Lukas Burgey committed
76 77
  ],
  providers: [
Lukas Burgey's avatar
Lukas Burgey committed
78 79 80
    CookieService,
    UserService,
    SnackBarService,
81
    DialogService,
Lukas Burgey's avatar
Lukas Burgey committed
82
    JsonPipe,
83
    StompRService,
Lukas Burgey's avatar
Lukas Burgey committed
84 85 86 87 88
  ],
  bootstrap: [AppComponent],
  entryComponents: [
    ProfileComponent,
    SshKeysComponent,
Lukas Burgey's avatar
Lukas Burgey committed
89
    AccountComponent,
Lukas Burgey's avatar
Lukas Burgey committed
90 91 92
  ],
})
export class AppModule {
Lukas Burgey's avatar
Lukas Burgey committed
93
  constructor() {
Lukas Burgey's avatar
Lukas Burgey committed
94 95 96
  }
}