OpenSlides/client/src/app/site/projector/projector.config.ts

44 lines
1.6 KiB
TypeScript
Raw Normal View History

import { AppConfig } from '../../core/app-config';
import { Projector } from 'app/shared/models/core/projector';
import { Countdown } from 'app/shared/models/core/countdown';
import { ProjectorMessage } from 'app/shared/models/core/projector-message';
import { ProjectorRepositoryService } from 'app/core/repositories/projector/projector-repository.service';
import { CountdownRepositoryService } from 'app/core/repositories/projector/countdown-repository.service';
import { ProjectorMessageRepositoryService } from 'app/core/repositories/projector/projectormessage-repository.service';
import { ViewProjector } from './models/view-projector';
import { ViewCountdown } from './models/view-countdown';
import { ViewProjectorMessage } from './models/view-projectormessage';
export const ProjectorAppConfig: AppConfig = {
name: 'projector',
models: [
{
collectionString: 'core/projector',
model: Projector,
viewModel: ViewProjector,
repository: ProjectorRepositoryService
},
{
collectionString: 'core/countdown',
model: Countdown,
viewModel: ViewCountdown,
repository: CountdownRepositoryService
},
{
collectionString: 'core/projector-message',
model: ProjectorMessage,
viewModel: ViewProjectorMessage,
repository: ProjectorMessageRepositoryService
}
],
mainMenuEntries: [
{
route: '/projectors',
displayName: 'Projector',
icon: 'videocam',
weight: 700,
permission: 'core.can_see_projector'
}
]
};