93 lines
4.0 KiB
TypeScript
93 lines
4.0 KiB
TypeScript
import { AppConfig } from '../../core/definitions/app-config';
|
|
import { CategoryRepositoryService } from 'app/core/repositories/motions/category-repository.service';
|
|
import { ChangeRecommendationRepositoryService } from 'app/core/repositories/motions/change-recommendation-repository.service';
|
|
import { MotionBlockRepositoryService } from 'app/core/repositories/motions/motion-block-repository.service';
|
|
import { MotionCommentSectionRepositoryService } from 'app/core/repositories/motions/motion-comment-section-repository.service';
|
|
import { MotionRepositoryService } from 'app/core/repositories/motions/motion-repository.service';
|
|
import { StateRepositoryService } from 'app/core/repositories/motions/state-repository.service';
|
|
import { StatuteParagraphRepositoryService } from 'app/core/repositories/motions/statute-paragraph-repository.service';
|
|
import { WorkflowRepositoryService } from 'app/core/repositories/motions/workflow-repository.service';
|
|
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';
|
|
import { ViewCategory } from './models/view-category';
|
|
import { ViewMotion } from './models/view-motion';
|
|
import { ViewMotionBlock } from './models/view-motion-block';
|
|
import { ViewMotionChangeRecommendation } from './models/view-motion-change-recommendation';
|
|
import { ViewMotionCommentSection } from './models/view-motion-comment-section';
|
|
import { ViewState } from './models/view-state';
|
|
import { ViewStatuteParagraph } from './models/view-statute-paragraph';
|
|
import { ViewWorkflow } from './models/view-workflow';
|
|
import { Workflow } from '../../shared/models/motions/workflow';
|
|
|
|
export const MotionsAppConfig: AppConfig = {
|
|
name: 'motions',
|
|
models: [
|
|
{
|
|
collectionString: 'motions/motion',
|
|
model: Motion,
|
|
viewModel: ViewMotion,
|
|
searchOrder: 2,
|
|
repository: MotionRepositoryService
|
|
},
|
|
{
|
|
collectionString: 'motions/category',
|
|
model: Category,
|
|
viewModel: ViewCategory,
|
|
searchOrder: 6,
|
|
repository: CategoryRepositoryService
|
|
},
|
|
{
|
|
collectionString: 'motions/workflow',
|
|
model: Workflow,
|
|
viewModel: ViewWorkflow,
|
|
repository: WorkflowRepositoryService
|
|
},
|
|
{
|
|
collectionString: 'motions/state',
|
|
model: State,
|
|
viewModel: ViewState,
|
|
repository: StateRepositoryService
|
|
},
|
|
{
|
|
collectionString: 'motions/motion-comment-section',
|
|
model: MotionCommentSection,
|
|
viewModel: ViewMotionCommentSection,
|
|
repository: MotionCommentSectionRepositoryService
|
|
},
|
|
{
|
|
collectionString: 'motions/motion-change-recommendation',
|
|
model: MotionChangeRecommendation,
|
|
viewModel: ViewMotionChangeRecommendation,
|
|
repository: ChangeRecommendationRepositoryService
|
|
},
|
|
{
|
|
collectionString: 'motions/motion-block',
|
|
model: MotionBlock,
|
|
viewModel: ViewMotionBlock,
|
|
searchOrder: 7,
|
|
repository: MotionBlockRepositoryService
|
|
},
|
|
{
|
|
collectionString: 'motions/statute-paragraph',
|
|
model: StatuteParagraph,
|
|
viewModel: ViewStatuteParagraph,
|
|
searchOrder: 9,
|
|
repository: StatuteParagraphRepositoryService
|
|
}
|
|
],
|
|
mainMenuEntries: [
|
|
{
|
|
route: '/motions',
|
|
displayName: 'Motions',
|
|
icon: 'assignment',
|
|
weight: 300,
|
|
permission: 'motions.can_see'
|
|
}
|
|
]
|
|
};
|