OpenSlides/client/src/app/site/projector/projector.config.ts
2019-08-12 14:12:55 +02:00

53 lines
2.1 KiB
TypeScript

import { AppConfig } from '../../core/definitions/app-config';
import { CountdownRepositoryService } from 'app/core/repositories/projector/countdown-repository.service';
import { ProjectionDefaultRepositoryService } from 'app/core/repositories/projector/projection-default-repository.service';
import { ProjectorMessageRepositoryService } from 'app/core/repositories/projector/projector-message-repository.service';
import { ProjectorRepositoryService } from 'app/core/repositories/projector/projector-repository.service';
import { Countdown } from 'app/shared/models/core/countdown';
import { ProjectionDefault } from 'app/shared/models/core/projection-default';
import { Projector } from 'app/shared/models/core/projector';
import { ProjectorMessage } from 'app/shared/models/core/projector-message';
import { ViewCountdown } from './models/view-countdown';
import { ViewProjectionDefault } from './models/view-projection-default';
import { ViewProjector } from './models/view-projector';
import { ViewProjectorMessage } from './models/view-projector-message';
export const ProjectorAppConfig: AppConfig = {
name: 'projector',
models: [
{
collectionString: 'core/projector',
model: Projector,
viewModel: ViewProjector,
repository: ProjectorRepositoryService
},
{
collectionString: 'core/projection-default',
model: ProjectionDefault,
viewModel: ViewProjectionDefault,
repository: ProjectionDefaultRepositoryService
},
{
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'
}
]
};