mirror of https://github.com/goharbor/harbor.git
38 lines
1.3 KiB
TypeScript
38 lines
1.3 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
import { HarborShellComponent} from '../base/harbor-shell/harbor-shell.component';
|
|
import { ProjectComponent } from './project.component';
|
|
import { ProjectDetailComponent } from './project-detail/project-detail.component';
|
|
|
|
import { RepositoryComponent } from '../repository/repository.component';
|
|
import { ReplicationComponent } from '../replication/replication.component';
|
|
import { MemberComponent } from './member/member.component';
|
|
import { AuditLogComponent } from '../log/audit-log.component';
|
|
|
|
const projectRoutes: Routes = [
|
|
{ path: 'harbor',
|
|
component: HarborShellComponent,
|
|
children: [
|
|
{ path: 'projects', component: ProjectComponent },
|
|
{
|
|
path: 'projects/:id',
|
|
component: ProjectDetailComponent,
|
|
children: [
|
|
{ path: 'repository', component: RepositoryComponent },
|
|
{ path: 'replication', component: ReplicationComponent },
|
|
{ path: 'member', component: MemberComponent },
|
|
{ path: 'log', component: AuditLogComponent }
|
|
]
|
|
}
|
|
]
|
|
}
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [
|
|
RouterModule.forChild(projectRoutes)
|
|
],
|
|
exports: [ RouterModule ]
|
|
})
|
|
export class ProjectRoutingModule {} |