autowp/autowp-frontend

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

Summary

Maintainability
B
5 hrs
Test Coverage
import {Routes} from '@angular/router';
 
export const routes: Routes = [
Similar blocks of code found in 33 locations. Consider refactoring.
{
loadComponent: () => import('./move-message/move-message.component').then((m) => m.ForumsMoveMessageComponent),
path: 'move-message',
title: $localize`Move`,
},
Similar blocks of code found in 33 locations. Consider refactoring.
{
loadComponent: () => import('./move-topic/move-topic.component').then((m) => m.ForumsMoveTopicComponent),
path: 'move-topic',
title: $localize`Move`,
},
Similar blocks of code found in 33 locations. Consider refactoring.
{
loadComponent: () => import('./new-topic/new-topic.component').then((m) => m.ForumsNewTopicComponent),
path: 'new-topic/:theme_id',
title: $localize`New topic`,
},
Similar blocks of code found in 33 locations. Consider refactoring.
{
loadComponent: () => import('./subscriptions/subscriptions.component').then((m) => m.ForumsSubscriptionsComponent),
path: 'subscriptions',
title: $localize`Forums`,
},
Similar blocks of code found in 33 locations. Consider refactoring.
{
loadComponent: () => import('./topic/topic.component').then((m) => m.ForumsTopicComponent),
path: 'topic/:topic_id',
title: $localize`Forums`,
},
Similar blocks of code found in 33 locations. Consider refactoring.
{
loadComponent: () => import('./message/message.component').then((m) => m.MessageComponent),
path: 'message/:message_id',
title: $localize`Forums`,
},
Similar blocks of code found in 33 locations. Consider refactoring.
{
loadComponent: () => import('./forums.component').then((m) => m.ForumsComponent),
path: ':theme_id',
title: $localize`Forums`,
},
Similar blocks of code found in 33 locations. Consider refactoring.
{
loadComponent: () => import('./forums.component').then((m) => m.ForumsComponent),
path: '',
title: $localize`Forums`,
},
];