diff --git a/src/app/app-material.module.ts b/src/app/app-material.module.ts new file mode 100644 index 0000000..a4dcced --- /dev/null +++ b/src/app/app-material.module.ts @@ -0,0 +1,30 @@ +import { NgModule } from '@angular/core'; + +import { MatIconModule } from '@angular/material/icon'; +import { MatButtonModule } from '@angular/material/button'; +import { MatCardModule } from '@angular/material/card'; +import { MatTableModule } from '@angular/material/table'; +import { MatInputModule, MatNativeDateModule, MatSnackBarModule, MatTooltipModule } from '@angular/material'; +import { MatFormFieldModule } from '@angular/material/form-field'; +import { MatExpansionModule } from '@angular/material/expansion'; +import { MatDatepickerModule } from '@angular/material/datepicker'; +import { MatSelectModule } from '@angular/material/select'; + +@NgModule( { + exports: [ + MatIconModule, + MatButtonModule, + MatCardModule, + MatTableModule, + MatInputModule, + MatFormFieldModule, + MatExpansionModule, + MatSnackBarModule, + MatDatepickerModule, + MatNativeDateModule, + MatSelectModule, + MatTooltipModule, + ] +} ) +export class AppMaterialModule { +} diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts new file mode 100644 index 0000000..8ce2927 --- /dev/null +++ b/src/app/app-routing.module.ts @@ -0,0 +1,85 @@ +import { NgModule } from '@angular/core'; +import { RouterModule, Routes } from '@angular/router'; +import { HomeComponent } from './home/home.component'; + +const routes: Routes = [ + // No logged pages + { path: '', component: HomeComponent, }, + // { + // path: 'login', + // component: LoginComponent, + // canActivate: [ AuthGuard ], + // data: { + // title: 'Créez-vous ou connectez-vous à votre compte', + // description: 'Venez vous créer un compte sur notre platforme, grâce à notre application web et mobile vous serez prêt pour tout' + + // 'les cas de figure', + // noindex: true, + // nofollow: true, + // }, + // }, + // { + // path: 'verification/:id', + // component: VerificationComponent, + // data: { + // noindex: true, + // nofollow: true, + // }, + // }, + // { + // path: 'password/:id', + // component: PasswordComponent, + // data: { + // noindex: true, + // nofollow: true, + // }, + // }, + // + // // Logged pages + // { + // path: 'dashboard', + // component: DashboardComponent, + // canActivate: [ AuthGuard ], + // data: { + // title: 'Mom dashboard', + // }, + // }, + // { + // path: 'vehicles', + // component: CarsComponent, + // canActivate: [ AuthGuard ], + // data: { + // title: 'Mes véhicules', + // }, + // }, + // { + // path: 'reports', + // component: ReportsComponent, + // canActivate: [ AuthGuard ], + // data: { + // title: 'Mes constat', + // }, + // }, + // { + // path: 'reports/:id', + // component: ReportDetailsComponent, + // canActivate: [ AuthGuard ], + // data: { + // title: 'Détail d\'un constat', + // }, + // }, + // { + // path: 'profile', + // component: ProfileComponent, + // canActivate: [ AuthGuard ], + // data: { + // title: 'Mon Profil', + // }, + // }, +]; + +@NgModule( { + imports: [ RouterModule.forRoot( routes ) ], + exports: [ RouterModule ] +} ) +export class AppRoutingModule { +} diff --git a/src/app/app.component.html b/src/app/app.component.html index a3005ba..0680b43 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,21 +1 @@ - -