30 lines
1.1 KiB
TypeScript
30 lines
1.1 KiB
TypeScript
import { AppConfig } from '../../core/app-config';
|
|
import { Item } from '../../shared/models/agenda/item';
|
|
import { ItemRepositoryService } from 'app/core/repositories/agenda/item-repository.service';
|
|
import { ViewItem } from './models/view-item';
|
|
import { ListOfSpeakers } from 'app/shared/models/agenda/list-of-speakers';
|
|
import { ViewListOfSpeakers } from './models/view-list-of-speakers';
|
|
import { ListOfSpeakersRepositoryService } from 'app/core/repositories/agenda/list-of-speakers-repository.service';
|
|
|
|
export const AgendaAppConfig: AppConfig = {
|
|
name: 'agenda',
|
|
models: [
|
|
{ collectionString: 'agenda/item', model: Item, viewModel: ViewItem, repository: ItemRepositoryService },
|
|
{
|
|
collectionString: 'agenda/list-of-speakers',
|
|
model: ListOfSpeakers,
|
|
viewModel: ViewListOfSpeakers,
|
|
repository: ListOfSpeakersRepositoryService
|
|
}
|
|
],
|
|
mainMenuEntries: [
|
|
{
|
|
route: '/agenda',
|
|
displayName: 'Agenda',
|
|
icon: 'today', // 'calendar_today' aligns wrong!
|
|
weight: 200,
|
|
permission: 'agenda.can_see'
|
|
}
|
|
]
|
|
};
|