unoffical wafrn mirror wafrn.net
atproto social-network activitypub
at angular21 46 lines 1.4 kB view raw
1import { NgModule } from '@angular/core' 2import { CommonModule } from '@angular/common' 3import { Route, RouterModule } from '@angular/router' 4 5const routes: Route[] = [ 6 { 7 path: 'server-list', 8 loadChildren: () => import('./server-list/server-list.module').then((m) => m.ServerListModule) 9 }, 10 { 11 path: 'invite-codes', 12 loadChildren: () => import('./invite-codes/invite-codes.module').then((m) => m.InviteCodesModule) 13 }, 14 { 15 path: 'user-blocks', 16 loadComponent: () => import('./blocks/blocks.component').then((c) => c.BlocksComponent) 17 }, 18 { 19 path: 'user-reports', 20 loadChildren: () => import('./report-list/report-list.module').then((m) => m.ReportListModule) 21 }, 22 { 23 path: 'bans', 24 loadComponent: () => import('./bans/bans.component').then((c) => c.BansComponent) 25 }, 26 { 27 path: 'activate-users', 28 // new lazyloading method 29 loadComponent: () => import('./pending-users/pending-users.component').then((m) => m.PendingUsersComponent) 30 }, 31 { 32 path: 'stats', 33 // new lazyloading method 34 loadComponent: () => import('./stats/stats.component').then((m) => m.StatsComponent) 35 }, 36 { 37 path: 'emojis', 38 // new lazyloading method 39 loadComponent: () => import('./emoji-uploader/emoji-uploader.component').then((m) => m.EmojiUploaderComponent) 40 } 41] 42@NgModule({ 43 declarations: [], 44 imports: [CommonModule, RouterModule.forChild(routes)] 45}) 46export class AdminModule { }