You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
2.7 KiB
42 lines
2.7 KiB
import { Routes, RouterModule } from '@angular/router'; |
|
import { NgModule } from '@angular/core'; |
|
import { PlanComponent } from './plan/plan.component'; |
|
import { TodayWarningComponent } from './today-warning/today-warning.component'; |
|
import { CriminalRecordsComponent } from './criminal-records/criminal-records.component'; |
|
import { AuthGuard } from '../auth.guard' |
|
import { TodayWarningAdminComponent } from './today-warning-admin/today-warning-admin.component'; |
|
import { CriminalRecordsAdminComponent } from './criminal-records-admin/criminal-records-admin.component'; |
|
import { OilStationInfoComponent } from './oil-station-info/oil-station-info.component'; |
|
import { EquipmentInfoComponent } from './equipment-info/equipment-info.component'; |
|
import { PlanAdminComponent } from './plan-admin/plan-admin.component'; |
|
import { HomePageComponent } from './home-page/home-page.component'; |
|
import { OilUnloadingProcessListComponent } from './oil-unloading-process-list/oil-unloading-process-list.component'; |
|
import { init3DGuard } from './init3D.guard'; |
|
import { WarningStatisticsListComponent } from './warning-statistics-list/warning-statistics-list.component'; |
|
import { NavBarComponent } from './license/nav-bar/nav-bar.component'; |
|
import { MisinformationListComponent } from './misinformation-list/misinformation-list.component'; |
|
|
|
const routes: Routes = [ |
|
{ path: 'homepage', component: HomePageComponent }, |
|
{ path: 'plan', component: PlanAdminComponent }, |
|
{ path: 'plan/petrolStation', component: PlanComponent, canActivate: [init3DGuard], }, |
|
{ path: 'todaywarning', component: TodayWarningAdminComponent }, |
|
{ path: 'todaywarning/petrolStation', component: TodayWarningComponent }, |
|
{ path: 'records', component: CriminalRecordsAdminComponent }, |
|
{ path: 'records/petrolStation', component: CriminalRecordsComponent }, |
|
{ path: 'records/oliunloadinglist', component: OilUnloadingProcessListComponent }, |
|
{ path: 'records/petrolStation/oliunloadinglist', component: OilUnloadingProcessListComponent }, |
|
{ path: 'records/warningstatisticslist', component: WarningStatisticsListComponent }, |
|
{ path: 'records/petrolStation/warningstatisticslist', component: WarningStatisticsListComponent }, |
|
{ path: 'equipmentInfo', component: EquipmentInfoComponent }, |
|
{ path: 'oliStationInfo', component: OilStationInfoComponent }, |
|
{ path: 'license/petrolStation', component: NavBarComponent }, |
|
{ path: 'records/misinformationList', component: MisinformationListComponent }, |
|
{ path: 'records/petrolStation/misinformationList', component: MisinformationListComponent } |
|
]; |
|
|
|
@NgModule({ |
|
imports: [RouterModule.forChild(routes)], |
|
exports: [RouterModule] |
|
}) |
|
export class PagesRoutingModule { }
|
|
|