2019-01-31 13:40:27 +01:00
|
|
|
import { AppConfig } from '../../core/app-config';
|
2018-09-20 13:03:51 +02:00
|
|
|
import { Motion } from '../../shared/models/motions/motion';
|
|
|
|
import { Category } from '../../shared/models/motions/category';
|
|
|
|
import { Workflow } from '../../shared/models/motions/workflow';
|
|
|
|
import { MotionCommentSection } from '../../shared/models/motions/motion-comment-section';
|
2019-02-01 13:56:08 +01:00
|
|
|
import { MotionChangeRecommendation } from '../../shared/models/motions/motion-change-reco';
|
2018-09-20 13:03:51 +02:00
|
|
|
import { MotionBlock } from '../../shared/models/motions/motion-block';
|
2018-10-12 12:32:19 +02:00
|
|
|
import { StatuteParagraph } from '../../shared/models/motions/statute-paragraph';
|
2019-01-31 13:40:27 +01:00
|
|
|
import { MotionRepositoryService } from 'app/core/repositories/motions/motion-repository.service';
|
|
|
|
import { CategoryRepositoryService } from 'app/core/repositories/motions/category-repository.service';
|
|
|
|
import { WorkflowRepositoryService } from 'app/core/repositories/motions/workflow-repository.service';
|
|
|
|
import { MotionCommentSectionRepositoryService } from 'app/core/repositories/motions/motion-comment-section-repository.service';
|
|
|
|
import { MotionBlockRepositoryService } from 'app/core/repositories/motions/motion-block-repository.service';
|
|
|
|
import { StatuteParagraphRepositoryService } from 'app/core/repositories/motions/statute-paragraph-repository.service';
|
|
|
|
import { ChangeRecommendationRepositoryService } from 'app/core/repositories/motions/change-recommendation-repository.service';
|
2019-02-01 13:56:08 +01:00
|
|
|
import { ViewCategory } from './models/view-category';
|
|
|
|
import { ViewMotionCommentSection } from './models/view-motion-comment-section';
|
|
|
|
import { ViewMotionChangeRecommendation } from './models/view-change-recommendation';
|
|
|
|
import { ViewMotionBlock } from './models/view-motion-block';
|
|
|
|
import { ViewStatuteParagraph } from './models/view-statute-paragraph';
|
|
|
|
import { ViewMotion } from './models/view-motion';
|
|
|
|
import { ViewWorkflow } from './models/view-workflow';
|
2018-09-20 13:03:51 +02:00
|
|
|
|
|
|
|
export const MotionsAppConfig: AppConfig = {
|
|
|
|
name: 'motions',
|
|
|
|
models: [
|
2019-02-01 13:56:08 +01:00
|
|
|
{
|
|
|
|
collectionString: 'motions/motion',
|
|
|
|
model: Motion,
|
|
|
|
viewModel: ViewMotion,
|
|
|
|
searchOrder: 2,
|
|
|
|
repository: MotionRepositoryService
|
|
|
|
},
|
2019-01-31 13:40:27 +01:00
|
|
|
{
|
|
|
|
collectionString: 'motions/category',
|
|
|
|
model: Category,
|
2019-02-01 13:56:08 +01:00
|
|
|
viewModel: ViewCategory,
|
2019-01-31 13:40:27 +01:00
|
|
|
searchOrder: 6,
|
|
|
|
repository: CategoryRepositoryService
|
|
|
|
},
|
2019-02-01 13:56:08 +01:00
|
|
|
{
|
|
|
|
collectionString: 'motions/workflow',
|
|
|
|
model: Workflow,
|
|
|
|
viewModel: ViewWorkflow,
|
|
|
|
repository: WorkflowRepositoryService
|
|
|
|
},
|
2019-01-31 13:40:27 +01:00
|
|
|
{
|
|
|
|
collectionString: 'motions/motion-comment-section',
|
|
|
|
model: MotionCommentSection,
|
2019-02-01 13:56:08 +01:00
|
|
|
viewModel: ViewMotionCommentSection,
|
2019-01-31 13:40:27 +01:00
|
|
|
repository: MotionCommentSectionRepositoryService
|
|
|
|
},
|
|
|
|
{
|
|
|
|
collectionString: 'motions/motion-change-recommendation',
|
2019-02-01 13:56:08 +01:00
|
|
|
model: MotionChangeRecommendation,
|
|
|
|
viewModel: ViewMotionChangeRecommendation,
|
2019-01-31 13:40:27 +01:00
|
|
|
repository: ChangeRecommendationRepositoryService
|
|
|
|
},
|
|
|
|
{
|
|
|
|
collectionString: 'motions/motion-block',
|
|
|
|
model: MotionBlock,
|
2019-02-01 13:56:08 +01:00
|
|
|
viewModel: ViewMotionBlock,
|
2019-01-31 13:40:27 +01:00
|
|
|
searchOrder: 7,
|
|
|
|
repository: MotionBlockRepositoryService
|
|
|
|
},
|
|
|
|
{
|
|
|
|
collectionString: 'motions/statute-paragraph',
|
|
|
|
model: StatuteParagraph,
|
2019-02-01 13:56:08 +01:00
|
|
|
viewModel: ViewStatuteParagraph,
|
2019-01-31 13:40:27 +01:00
|
|
|
searchOrder: 9,
|
|
|
|
repository: StatuteParagraphRepositoryService
|
|
|
|
}
|
2018-09-20 13:03:51 +02:00
|
|
|
],
|
|
|
|
mainMenuEntries: [
|
|
|
|
{
|
|
|
|
route: '/motions',
|
|
|
|
displayName: 'Motions',
|
2018-10-11 14:03:44 +02:00
|
|
|
icon: 'assignment',
|
2018-09-20 13:03:51 +02:00
|
|
|
weight: 300,
|
|
|
|
permission: 'motions.can_see'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|