5c1092b537
Whats still missing, but has not a high priority: - DateTimePicker. Entering dates through the popup works (but only with a hack in the config-field.component update() method). Displaying values from the server does not work. Also the localisation is missing. See attempts to fix it in the sheared module. - Errors, if the server cannot be reached. Should be solved in another PR fixing the datasendservice and make generic error messages. - Custom translations are missing
56 lines
1.5 KiB
TypeScript
56 lines
1.5 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
import { SiteComponent } from './site.component';
|
|
|
|
import { AuthGuard } from '../core/services/auth-guard.service';
|
|
|
|
/**
|
|
* Routung to all OpenSlides apps
|
|
*
|
|
* TODO: Plugins will have to append to the Routes-Array
|
|
*/
|
|
const routes: Routes = [
|
|
{
|
|
path: '',
|
|
component: SiteComponent,
|
|
children: [
|
|
{
|
|
path: '',
|
|
loadChildren: './common/common.module#CommonModule'
|
|
},
|
|
{
|
|
path: 'agenda',
|
|
loadChildren: './agenda/agenda.module#AgendaModule'
|
|
},
|
|
{
|
|
path: 'assignments',
|
|
loadChildren: './assignments/assignments.module#AssignmentsModule'
|
|
},
|
|
{
|
|
path: 'mediafiles',
|
|
loadChildren: './mediafiles/mediafiles.module#MediafilesModule'
|
|
},
|
|
{
|
|
path: 'motions',
|
|
loadChildren: './motions/motions.module#MotionsModule'
|
|
},
|
|
{
|
|
path: 'settings',
|
|
loadChildren: './config/config.module#ConfigModule'
|
|
},
|
|
{
|
|
path: 'users',
|
|
loadChildren: './users/users.module#UsersModule'
|
|
}
|
|
],
|
|
canActivateChild: [AuthGuard]
|
|
}
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule]
|
|
})
|
|
export class SiteRoutingModule {}
|