Files
doneit-web/src/app/home/home-routing.module.ts
T

236 lines
7.7 KiB
TypeScript
Raw Normal View History

2020-08-05 15:39:16 +01:00
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
2020-10-30 15:22:35 +01:00
import { HomeGuard } from '../guards/home.guard';
2021-03-05 16:43:17 +01:00
import { GroupMessagesPage } from '../pages/chat/group-messages/group-messages.page';
import { MessagesPage } from '../pages/chat/messages/messages.page';
2020-10-30 15:22:35 +01:00
import { UserDataResolver } from '../resolvers/userData.resolver';
2020-08-05 15:39:16 +01:00
import { HomePage } from './home.page';
const routes: Routes = [
{
path: 'home',
component: HomePage,
2020-10-30 15:22:35 +01:00
/* canActivate: [HomeGuard], */
resolve: {
userData: UserDataResolver
},
2020-08-05 15:39:16 +01:00
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),
},
]
2020-08-05 15:39:16 +01:00
},
{
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)
},
]
},
2021-04-08 10:07:14 +01:00
{
path: 'attendees-modal',
children: [
{
path:'',
loadChildren: ()=> import('../shared/event/attendee-modal/attendee-modal.module').then(m => m.AttendeeModalPageModule)
},
]
},
2020-08-28 15:28:38 +01:00
{
path: 'login',
children: [
{
path:'',
loadChildren: ()=> import('../pages/login/login.module').then(m => m.LoginPageModule)
2020-08-28 15:28:38 +01:00
},
]
},
2020-08-05 15:39:16 +01:00
{
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),
2021-03-26 14:26:52 +01:00
},
{
path: 'eventId/:caller',
loadChildren: () => import('../pages/agenda/view-event/view-event.module').then( m => m.ViewEventPageModule)
2021-04-01 15:06:05 +01:00
},
{
path: 'edit-event',
loadChildren: () => import('../pages/agenda/edit-event/edit-event.module').then( m => m.EditEventPageModule)
},
2021-04-07 14:08:05 +01:00
{
path: 'emend-message-modal',
loadChildren: () => import('../pages/agenda/emend-message-modal/emend-message-modal.module').then( m => m.EmendMessageModalPageModule)
},
]
2020-08-05 15:39:16 +01:00
},
{
path: 'gabinete-digital',
children: [
{
path:'',
loadChildren: ()=> import('../pages/gabinete-digital/gabinete-digital.module').then(m => m.GabineteDigitalPageModule)
},
{
2020-08-28 11:45:50 +01:00
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)
2020-09-08 09:42:34 +01:00
},
{
path:'events/:eventId/:caller',
loadChildren: ()=> import('../pages/events/event-detail/event-detail.module').then(m => m.EventDetailPageModule),
2021-04-08 10:07:14 +01:00
},
{
path:'expediente-task-modal',
loadChildren: ()=> import('../pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.module').then(m => m.ExpedientTaskModalPageModule),
}
]
2020-11-05 16:43:01 +01:00
},
{
path:'event-list',
children: [
{
2020-12-02 15:08:45 +01:00
path:'',
2020-11-05 16:43:01 +01:00
loadChildren: ()=> import('../pages/gabinete-digital/event-list/event-list.module').then(m => m.EventListPageModule)
},
2021-02-10 11:31:34 +01:00
{
path:':serialNumber',
loadChildren: ()=> import('../pages/gabinete-digital/event-list/approve-event/approve-event.module').then(m => m.ApproveEventPageModule)
},
2020-11-05 16:43:01 +01:00
]
},
]
2020-08-05 15:39:16 +01:00
},
2020-08-17 18:11:26 +01:00
{
path: 'search',
children: [
{
path:'',
loadChildren: ()=> import('../pages/search/search.module').then(m => m.SearchPageModule)
}
]
2020-08-17 18:11:26 +01:00
},
{
path: 'publications',
children: [
{
path:'',
loadChildren: ()=> import('../pages/publications/publications.module').then(m => m.PublicationsPageModule)
2020-12-02 15:08:45 +01:00
},
{
path:'view-publications',
children: [
{
path:':folderId',
2020-12-02 15:08:45 +01:00
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)
},
]
2020-12-02 15:08:45 +01:00
},
]
},
2021-04-06 16:27:09 +01:00
{
path:'new-publication',
loadChildren: ()=> import('../shared/publication/new-publication/new-publication.module').then(m => m.NewPublicationPageModule)
},
]
},
{
path: 'chat',
children: [
{
path:'',
loadChildren: ()=> import('../pages/chat/chat.module').then(m => m.ChatPageModule)
2021-03-05 16:43:17 +01:00
},
{
path:'messages',
children: [
{
path:'',
2021-03-29 10:33:56 +01:00
loadChildren: ()=> import('../pages/chat/messages/messages.module').then(m => m.MessagesPageModule)
},
{
path:'contacts',
loadChildren: ()=> import('../shared/chat/messages/contacts/contacts.module').then(m => m.ContactsPageModule)
},
{
path:'contacts',
loadChildren: ()=> import('../pages/chat/messages/contacts/contacts.module').then(m => m.ContactsPageModule)
2021-03-05 16:43:17 +01:00
},
]
},
2021-03-11 16:21:09 +01:00
{
2021-03-29 10:33:56 +01:00
path:'group-messages',
children:[
{
path:'',
loadChildren: ()=> import('../pages/chat/group-messages/group-messages.module').then(m => m.GroupMessagesPageModule)
},
{
path:'group-contacts',
loadChildren: ()=> import('../shared/chat/group-messages/group-contacts/group-contacts.module').then(m => m.GroupContactsPageModule)
},
{
path:'group-contacts',
loadChildren: ()=> import('../pages/chat/group-messages/group-contacts/group-contacts.module').then(m => m.GroupContactsPageModule)
},
]
2021-03-05 16:43:17 +01:00
},
]
},
2020-08-05 15:39:16 +01:00
]
},
2020-08-05 15:39:16 +01:00
{
path: '',
2020-12-29 17:22:56 +01:00
redirectTo: '/home/events',
2020-08-05 15:39:16 +01:00
pathMatch: 'full'
}
2020-08-05 15:39:16 +01:00
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class HomePageRoutingModule {}