autowp/autowp-frontend

View on GitHub
src/app/users/users-routing.module.ts

Summary

Maintainability
B
6 hrs
Test Coverage
import {Routes} from '@angular/router';
 
export const routes: Routes = [
Similar blocks of code found in 2 locations. Consider refactoring.
{
children: [
{
loadComponent: () => import('./rating/rating.component').then((m) => m.UsersRatingComponent),
path: ':rating',
},
{
loadComponent: () => import('./rating/rating.component').then((m) => m.UsersRatingComponent),
path: '',
},
],
path: 'rating',
title: $localize`Statistics`,
},
{
children: [
Similar blocks of code found in 33 locations. Consider refactoring.
{
loadComponent: () => import('./user/comments/comments.component').then((m) => m.UsersUserCommentsComponent),
path: 'comments',
title: $localize`Comments`,
},
Similar blocks of code found in 2 locations. Consider refactoring.
{
children: [
{
loadComponent: () =>
import('./user/pictures/brand/brand.component').then((m) => m.UsersUserPicturesBrandComponent),
path: ':brand',
},
{
loadComponent: () => import('./user/pictures/pictures.component').then((m) => m.UsersUserPicturesComponent),
path: '',
},
],
path: 'pictures',
title: $localize`User's pictures`,
},
{loadComponent: () => import('./user/user.component').then((m) => m.UsersUserComponent), path: ''},
],
path: ':identity',
},
];