2021-05-19 13:40:29 +02:00
|
|
|
import {NgModule} from "@angular/core";
|
|
|
|
import {RouterModule} from "@angular/router";
|
|
|
|
import {ConnectRIGuard} from "../openaireLibrary/connect/communityGuard/connectRIGuard.guard";
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild([
|
|
|
|
{
|
|
|
|
path: 'info',
|
2021-07-14 14:04:42 +02:00
|
|
|
loadChildren: () => import('./community-info/community-info-routing.module').then(m => m.CommunityInfoRoutingModule),
|
2021-05-19 13:40:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'users',
|
2021-07-14 14:04:42 +02:00
|
|
|
loadChildren: () => import('./users/users-routing.module').then(m => m.UsersRoutingModule)
|
2021-05-19 13:40:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'mining',
|
2021-07-14 14:04:42 +02:00
|
|
|
loadChildren: () => import('./mining/mining.module').then(m => m.MiningModule),
|
2021-05-19 13:40:29 +02:00
|
|
|
canActivateChild: [ConnectRIGuard]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'admin-tools',
|
2021-07-14 14:04:42 +02:00
|
|
|
loadChildren: () => import('./admin-tools/admin-tools-routing.module').then(m => m.AdminToolsRoutingModule),
|
2021-05-19 13:40:29 +02:00
|
|
|
data: {
|
|
|
|
param: 'community'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'stats',
|
2021-07-14 14:04:42 +02:00
|
|
|
loadChildren: () => import('./stats/stats.module').then(m => m.StatsModule)
|
2021-05-19 13:40:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'customize-layout',
|
2021-07-14 14:04:42 +02:00
|
|
|
loadChildren: () => import('./customization/customization.module').then(m => m.CustomizationModule),
|
2022-07-04 13:12:55 +02:00
|
|
|
data: {hasSidebar: true, hasHeader: false}
|
2022-07-01 10:27:47 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'user-info',
|
|
|
|
loadChildren: () => import('../login/libUser.module').then(m => m.LibUserModule),
|
|
|
|
},
|
2021-05-19 13:40:29 +02:00
|
|
|
])]
|
|
|
|
})
|
|
|
|
export class CommunityRoutingModule {}
|