Changement de style du login
This commit is contained in:
@@ -49,6 +49,7 @@ import { MatSelectModule } from "@angular/material/select";
|
||||
import { MatTableModule } from "@angular/material/table";
|
||||
import { MatTabsModule } from "@angular/material/tabs";
|
||||
import { MatDialogModule } from "@angular/material/dialog";
|
||||
import { MatCardModule } from "@angular/material/card";
|
||||
|
||||
import { CachingInterceptor } from "../interceptor/caching.interceptor";
|
||||
//import { BasicAuthInterceptor } from '../interceptor/basic-auth.interceptor';
|
||||
@@ -61,42 +62,42 @@ const appRoutes: Routes = [
|
||||
{
|
||||
path: "summary",
|
||||
component: SummaryComponent,
|
||||
canActivate: [AuthGuardService]
|
||||
canActivate: [AuthGuardService],
|
||||
},
|
||||
{
|
||||
path: "jumps",
|
||||
component: ListOfJumpsComponent,
|
||||
canActivate: [AuthGuardService]
|
||||
canActivate: [AuthGuardService],
|
||||
},
|
||||
{
|
||||
path: "dzs",
|
||||
component: ListOfDzsComponent,
|
||||
canActivate: [AuthGuardService]
|
||||
canActivate: [AuthGuardService],
|
||||
},
|
||||
{
|
||||
path: "newjump",
|
||||
component: NewJumpComponent,
|
||||
canActivate: [AuthGuardService]
|
||||
canActivate: [AuthGuardService],
|
||||
},
|
||||
{
|
||||
path: "aircrafts",
|
||||
component: ListOfAircraftsComponent,
|
||||
canActivate: [AuthGuardService]
|
||||
canActivate: [AuthGuardService],
|
||||
},
|
||||
{
|
||||
path: "jumpTypes",
|
||||
component: ListOfJumpTypesComponent,
|
||||
canActivate: [AuthGuardService]
|
||||
canActivate: [AuthGuardService],
|
||||
},
|
||||
{
|
||||
path: "gears",
|
||||
component: ListOfGearsComponent,
|
||||
canActivate: [AuthGuardService]
|
||||
canActivate: [AuthGuardService],
|
||||
},
|
||||
|
||||
{ path: "login", component: LoginComponent },
|
||||
|
||||
{ path: "**", redirectTo: "" }
|
||||
{ path: "**", redirectTo: "" },
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
@@ -116,7 +117,7 @@ const appRoutes: Routes = [
|
||||
DefaultComponent,
|
||||
LoginComponent,
|
||||
CreateUserComponent,
|
||||
LoginUserComponent
|
||||
LoginUserComponent,
|
||||
],
|
||||
imports: [
|
||||
RouterModule.forRoot(
|
||||
@@ -141,7 +142,8 @@ const appRoutes: Routes = [
|
||||
MatAutocompleteModule,
|
||||
MatProgressSpinnerModule,
|
||||
MatTabsModule,
|
||||
MatDialogModule
|
||||
MatDialogModule,
|
||||
MatCardModule,
|
||||
],
|
||||
exports: [HttpClientModule],
|
||||
providers: [
|
||||
@@ -156,8 +158,8 @@ const appRoutes: Routes = [
|
||||
RequestCache,
|
||||
// { provide: HTTP_INTERCEPTORS, useClass: CachingInterceptor, multi: true }
|
||||
{ provide: HTTP_INTERCEPTORS, useClass: JwtAuthInterceptor, multi: true },
|
||||
{ provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true }
|
||||
{ provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true },
|
||||
],
|
||||
bootstrap: [AppComponent]
|
||||
bootstrap: [AppComponent],
|
||||
})
|
||||
export class AppModule {}
|
||||
|
||||
Reference in New Issue
Block a user