mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
21cb7d5e96
- Create new folder for publications have been integrated. - Adicional touch to display the data in a more friendly way added.
175 lines
4.9 KiB
TypeScript
175 lines
4.9 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
import { HomeGuard } from '../guards/home.guard';
|
|
import { UserDataResolver } from '../resolvers/userData.resolver';
|
|
|
|
import { HomePage } from './home.page';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: 'home',
|
|
component: HomePage,
|
|
/* canActivate: [HomeGuard], */
|
|
resolve: {
|
|
userData: UserDataResolver
|
|
},
|
|
children: [
|
|
{
|
|
path: 'events',
|
|
children: [
|
|
{
|
|
path:'',
|
|
loadChildren: ()=> import('../pages/events/events.module').then(m => m.EventsPageModule)
|
|
},
|
|
{
|
|
path:':eventId/:caller',
|
|
loadChildren: ()=> import('../pages/events/event-detail/event-detail.module').then(m => m.EventDetailPageModule),
|
|
},
|
|
]
|
|
},
|
|
{
|
|
path: 'attachments',
|
|
children: [
|
|
{
|
|
path:':eventId',
|
|
loadChildren: ()=> import('../pages/events/attachments/attachments.module').then(m => m.AttachmentsPageModule)
|
|
},
|
|
|
|
]
|
|
},
|
|
{
|
|
path: 'attendees',
|
|
children: [
|
|
{
|
|
path:'',
|
|
loadChildren: ()=> import('../pages/events/attendees/attendees.module').then(m => m.AttendeesPageModule)
|
|
},
|
|
]
|
|
},
|
|
{
|
|
path: 'login',
|
|
children: [
|
|
{
|
|
path:'',
|
|
loadChildren: ()=> import('../pages/login/login.module').then(m => m.LoginPageModule)
|
|
},
|
|
]
|
|
},
|
|
{
|
|
path: 'agenda',
|
|
children: [
|
|
{
|
|
path:'',
|
|
loadChildren: ()=> import('../pages/agenda/agenda.module').then(m => m.AgendaPageModule)
|
|
},
|
|
{
|
|
path:':eventId/:caller',
|
|
loadChildren: ()=> import('../pages/events/event-detail/event-detail.module').then(m => m.EventDetailPageModule),
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: 'gabinete-digital',
|
|
children: [
|
|
{
|
|
path:'',
|
|
loadChildren: ()=> import('../pages/gabinete-digital/gabinete-digital.module').then(m => m.GabineteDigitalPageModule)
|
|
},
|
|
{
|
|
path:'expediente',
|
|
children: [
|
|
{
|
|
path:'',
|
|
loadChildren: ()=> import('../pages/gabinete-digital/expediente/expediente.module').then(m => m.ExpedientePageModule)
|
|
},
|
|
{
|
|
path:':SerialNumber',
|
|
loadChildren: ()=> import('../pages/gabinete-digital/expediente/expediente-detail/expediente-detail.module').then(m => m.ExpedienteDetailPageModule)
|
|
},
|
|
{
|
|
path:'events/:eventId/:caller',
|
|
loadChildren: ()=> import('../pages/events/event-detail/event-detail.module').then(m => m.EventDetailPageModule),
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path:'event-list',
|
|
children: [
|
|
{
|
|
path:'',
|
|
loadChildren: ()=> import('../pages/gabinete-digital/event-list/event-list.module').then(m => m.EventListPageModule)
|
|
},
|
|
]
|
|
},
|
|
]
|
|
},
|
|
{
|
|
path: 'search',
|
|
children: [
|
|
{
|
|
path:'',
|
|
loadChildren: ()=> import('../pages/search/search.module').then(m => m.SearchPageModule)
|
|
}
|
|
]
|
|
},
|
|
/* {
|
|
path: 'expediente',
|
|
children: [
|
|
{
|
|
path:'',
|
|
loadChildren: ()=> import('../pages/gabinete-digital/expediente/expediente.module').then(m => m.ExpedientePageModule)
|
|
}
|
|
]
|
|
}, */
|
|
{
|
|
path: 'chat',
|
|
children: [
|
|
{
|
|
path:'',
|
|
loadChildren: ()=> import('../pages/chat/chat.module').then(m => m.ChatPageModule)
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: 'publications',
|
|
children: [
|
|
{
|
|
path:'',
|
|
loadChildren: ()=> import('../pages/publications/publications.module').then(m => m.PublicationsPageModule)
|
|
},
|
|
{
|
|
path:'view-publications',
|
|
children: [
|
|
{
|
|
path:':folderId',
|
|
loadChildren: ()=> import('../pages/publications/view-publications/view-publications.module').then(m => m.ViewPublicationsPageModule)
|
|
},
|
|
{
|
|
path:'publication-detail',
|
|
children: [
|
|
{
|
|
path: ':id',
|
|
loadChildren: ()=> import('../pages/publications/view-publications/publication-detail/publication-detail.module').then(m => m.PublicationDetailPageModule)
|
|
},
|
|
]
|
|
|
|
},
|
|
]
|
|
},
|
|
]
|
|
},
|
|
]
|
|
},
|
|
{
|
|
path: '',
|
|
redirectTo: 'home/events',
|
|
pathMatch: 'full'
|
|
}
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule],
|
|
})
|
|
export class HomePageRoutingModule {}
|