Browse Source

Add comment service to the plugin

pull/1233/head
Hironsan 3 years ago
parent
commit
6ae1fa94e3
1 changed files with 8 additions and 2 deletions
  1. 10
      frontend/plugins/services.ts

10
frontend/plugins/services.ts

@ -4,18 +4,21 @@ import { FromApiMemberItemListRepository } from '@/repositories/member/api'
import { FromApiUserItemListRepository } from '@/repositories/user/api'
import { FromApiRoleItemListRepository } from '@/repositories/role/api'
import { FromApiProjectItemListRepository } from '@/repositories/project/api'
import { FromApiCommentItemListRepository } from '@/repositories/comment/api'
import { LabelApplicationService } from '@/services/application/label.service'
import { MemberApplicationService } from '@/services/application/member.service'
import { UserApplicationService } from '@/services/application/user.service'
import { RoleApplicationService } from '@/services/application/role.service'
import { ProjectApplicationService } from '@/services/application/project.service'
import { CommentApplicationService } from '@/services/application/comment.service'
export interface Services {
label: LabelApplicationService,
member: MemberApplicationService,
user: UserApplicationService,
role: RoleApplicationService,
project: ProjectApplicationService
project: ProjectApplicationService,
comment: CommentApplicationService
}
declare module 'vue/types/vue' {
@ -35,12 +38,15 @@ const plugin: Plugin = (context, inject) => {
const role = new RoleApplicationService(roleRepository)
const projectRepository = new FromApiProjectItemListRepository()
const project = new ProjectApplicationService(projectRepository)
const commentRepository = new FromApiCommentItemListRepository()
const comment = new CommentApplicationService(commentRepository)
const services: Services = {
label,
member,
user,
role,
project
project,
comment
}
inject('services', services)
}

Loading…
Cancel
Save