2019-08-05 15:00:21 +02:00
|
|
|
import { AppConfig } from '../../core/definitions/app-config';
|
2019-01-31 13:40:27 +01:00
|
|
|
import { CategoryRepositoryService } from 'app/core/repositories/motions/category-repository.service';
|
2019-07-26 11:46:59 +02:00
|
|
|
import { ChangeRecommendationRepositoryService } from 'app/core/repositories/motions/change-recommendation-repository.service';
|
2019-01-31 13:40:27 +01:00
|
|
|
import { MotionBlockRepositoryService } from 'app/core/repositories/motions/motion-block-repository.service';
|
2019-07-26 11:46:59 +02:00
|
|
|
import { MotionCommentSectionRepositoryService } from 'app/core/repositories/motions/motion-comment-section-repository.service';
|
2019-10-29 09:00:11 +01:00
|
|
|
import { MotionPollRepositoryService } from 'app/core/repositories/motions/motion-poll-repository.service';
|
2019-07-26 11:46:59 +02:00
|
|
|
import { MotionRepositoryService } from 'app/core/repositories/motions/motion-repository.service';
|
2019-10-29 09:00:11 +01:00
|
|
|
import { MotionVoteRepositoryService } from 'app/core/repositories/motions/motion-vote-repository.service';
|
2019-07-26 11:46:59 +02:00
|
|
|
import { StateRepositoryService } from 'app/core/repositories/motions/state-repository.service';
|
2019-01-31 13:40:27 +01:00
|
|
|
import { StatuteParagraphRepositoryService } from 'app/core/repositories/motions/statute-paragraph-repository.service';
|
2019-07-26 11:46:59 +02:00
|
|
|
import { WorkflowRepositoryService } from 'app/core/repositories/motions/workflow-repository.service';
|
2019-10-29 09:00:11 +01:00
|
|
|
import { MotionPoll } from 'app/shared/models/motions/motion-poll';
|
|
|
|
import { MotionVote } from 'app/shared/models/motions/motion-vote';
|
2019-07-26 11:46:59 +02:00
|
|
|
import { State } from 'app/shared/models/motions/state';
|
|
|
|
import { Category } from '../../shared/models/motions/category';
|
|
|
|
import { Motion } from '../../shared/models/motions/motion';
|
|
|
|
import { MotionBlock } from '../../shared/models/motions/motion-block';
|
|
|
|
import { MotionChangeRecommendation } from '../../shared/models/motions/motion-change-reco';
|
|
|
|
import { MotionCommentSection } from '../../shared/models/motions/motion-comment-section';
|
|
|
|
import { StatuteParagraph } from '../../shared/models/motions/statute-paragraph';
|
2019-02-01 13:56:08 +01:00
|
|
|
import { ViewCategory } from './models/view-category';
|
2019-07-26 11:46:59 +02:00
|
|
|
import { ViewMotion } from './models/view-motion';
|
2019-02-01 13:56:08 +01:00
|
|
|
import { ViewMotionBlock } from './models/view-motion-block';
|
2019-07-26 11:46:59 +02:00
|
|
|
import { ViewMotionChangeRecommendation } from './models/view-motion-change-recommendation';
|
|
|
|
import { ViewMotionCommentSection } from './models/view-motion-comment-section';
|
2019-10-29 09:00:11 +01:00
|
|
|
import { ViewMotionPoll } from './models/view-motion-poll';
|
|
|
|
import { ViewMotionVote } from './models/view-motion-vote';
|
2019-07-26 11:46:59 +02:00
|
|
|
import { ViewState } from './models/view-state';
|
2019-02-01 13:56:08 +01:00
|
|
|
import { ViewStatuteParagraph } from './models/view-statute-paragraph';
|
|
|
|
import { ViewWorkflow } from './models/view-workflow';
|
2019-07-26 11:46:59 +02:00
|
|
|
import { Workflow } from '../../shared/models/motions/workflow';
|
2018-09-20 13:03:51 +02:00
|
|
|
|
|
|
|
export const MotionsAppConfig: AppConfig = {
|
|
|
|
name: 'motions',
|
|
|
|
models: [
|
2019-02-01 13:56:08 +01:00
|
|
|
{
|
|
|
|
model: Motion,
|
|
|
|
viewModel: ViewMotion,
|
|
|
|
searchOrder: 2,
|
|
|
|
repository: MotionRepositoryService
|
|
|
|
},
|
2019-01-31 13:40:27 +01:00
|
|
|
{
|
|
|
|
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
|
|
|
{
|
|
|
|
model: Workflow,
|
|
|
|
viewModel: ViewWorkflow,
|
|
|
|
repository: WorkflowRepositoryService
|
|
|
|
},
|
2019-07-17 16:13:49 +02:00
|
|
|
{
|
|
|
|
model: State,
|
|
|
|
viewModel: ViewState,
|
|
|
|
repository: StateRepositoryService
|
|
|
|
},
|
2019-01-31 13:40:27 +01:00
|
|
|
{
|
|
|
|
model: MotionCommentSection,
|
2019-02-01 13:56:08 +01:00
|
|
|
viewModel: ViewMotionCommentSection,
|
2019-01-31 13:40:27 +01:00
|
|
|
repository: MotionCommentSectionRepositoryService
|
|
|
|
},
|
|
|
|
{
|
2019-02-01 13:56:08 +01:00
|
|
|
model: MotionChangeRecommendation,
|
|
|
|
viewModel: ViewMotionChangeRecommendation,
|
2019-01-31 13:40:27 +01:00
|
|
|
repository: ChangeRecommendationRepositoryService
|
|
|
|
},
|
|
|
|
{
|
|
|
|
model: MotionBlock,
|
2019-02-01 13:56:08 +01:00
|
|
|
viewModel: ViewMotionBlock,
|
2019-01-31 13:40:27 +01:00
|
|
|
searchOrder: 7,
|
|
|
|
repository: MotionBlockRepositoryService
|
|
|
|
},
|
|
|
|
{
|
|
|
|
model: StatuteParagraph,
|
2019-02-01 13:56:08 +01:00
|
|
|
viewModel: ViewStatuteParagraph,
|
2019-01-31 13:40:27 +01:00
|
|
|
searchOrder: 9,
|
|
|
|
repository: StatuteParagraphRepositoryService
|
2019-10-29 09:00:11 +01:00
|
|
|
},
|
|
|
|
{ model: MotionPoll, viewModel: ViewMotionPoll, repository: MotionPollRepositoryService },
|
|
|
|
{ model: MotionVote, viewModel: ViewMotionVote, repository: MotionVoteRepositoryService }
|
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'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|