110 lines
4.2 KiB
TypeScript
110 lines
4.2 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
import { HttpClientModule, HttpClientXsrfModule, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
import { RouterModule } from '@angular/router';
|
|
import { CookieService } from 'ngx-cookie-service';
|
|
|
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
import { MatSidenavModule } from '@angular/material/sidenav';
|
|
import { MatButtonModule } from '@angular/material/button';
|
|
import { MatIconModule } from '@angular/material/icon';
|
|
import { MatDividerModule } from '@angular/material/divider';
|
|
import { MatDialogModule } from '@angular/material/dialog';
|
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
import { MatInputModule } from '@angular/material/input';
|
|
import { MatCardModule } from '@angular/material/card';
|
|
import { MatPaginatorModule } from '@angular/material/paginator';
|
|
import { MatSortModule } from '@angular/material/sort';
|
|
import { MatTableModule } from "@angular/material/table";
|
|
import { MatSelectModule } from '@angular/material/select';
|
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
import { MatStepperModule } from '@angular/material/stepper';
|
|
import { MatListModule } from '@angular/material/list';
|
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
import { MatGridListModule } from '@angular/material/grid-list';
|
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
import { MatSliderModule } from '@angular/material/slider';
|
|
import { MatRadioModule } from '@angular/material/radio';
|
|
import { ToastrModule } from 'ngx-toastr';
|
|
import { CodeInputModule } from 'angular-code-input';
|
|
|
|
import { HttpXsrfInterceptorService } from './interceptors/http-xsrf-interceptor/http-xsrf-interceptor.service';
|
|
import { AppRoutingModule } from './app-routing.module';
|
|
import { AppComponent } from './app.component';
|
|
import { LoginComponent } from './components/login/login.component';
|
|
import { NotFoundComponent } from './components/not-found/not-found.component';
|
|
import { HomeComponent } from './components/home/home.component';
|
|
import { WorkspaceComponent } from './components/home/workspace/workspace.component';
|
|
import { AccountComponent } from './components/home/workspace/account/account.component';
|
|
import { ParametresComponent } from './components/home/workspace/parametres/parametres.component';
|
|
import { InfosComponent } from './components/home/workspace/infos/infos.component';
|
|
import { HoursComponent } from './components/home/workspace/hours/hours.component';
|
|
import { LogsComponent } from './components/home/workspace/logs/logs.component';
|
|
import { ConfirmComponent } from './components/dialog/confirm/confirm.component';
|
|
|
|
@NgModule({
|
|
declarations: [
|
|
AppComponent,
|
|
LoginComponent,
|
|
NotFoundComponent,
|
|
HomeComponent,
|
|
WorkspaceComponent,
|
|
AccountComponent,
|
|
ParametresComponent,
|
|
InfosComponent,
|
|
HoursComponent,
|
|
LogsComponent,
|
|
ConfirmComponent
|
|
],
|
|
imports: [
|
|
BrowserModule,
|
|
AppRoutingModule,
|
|
BrowserAnimationsModule,
|
|
HttpClientModule,
|
|
HttpClientXsrfModule.withOptions({
|
|
cookieName: 'csrf_access_token'
|
|
}),
|
|
FormsModule,
|
|
ReactiveFormsModule,
|
|
MatToolbarModule,
|
|
MatSidenavModule,
|
|
MatIconModule,
|
|
MatDividerModule,
|
|
MatDialogModule,
|
|
MatFormFieldModule,
|
|
MatInputModule,
|
|
MatButtonModule,
|
|
MatCardModule,
|
|
MatPaginatorModule,
|
|
MatSortModule,
|
|
MatTableModule,
|
|
MatSelectModule,
|
|
MatCheckboxModule,
|
|
MatListModule,
|
|
MatProgressSpinnerModule,
|
|
MatProgressBarModule,
|
|
MatStepperModule,
|
|
MatSlideToggleModule,
|
|
MatGridListModule,
|
|
MatTabsModule,
|
|
MatSliderModule,
|
|
MatRadioModule,
|
|
FlexLayoutModule,
|
|
RouterModule,
|
|
FontAwesomeModule,
|
|
ToastrModule.forRoot(),
|
|
CodeInputModule
|
|
],
|
|
providers: [
|
|
{ provide: HTTP_INTERCEPTORS, useClass: HttpXsrfInterceptorService, multi: true }
|
|
],
|
|
bootstrap: [AppComponent]
|
|
})
|
|
export class AppModule { }
|