|
|
@ -42,13 +42,11 @@ import { DownloadFormatApplicationService } from '~/services/application/downloa |
|
|
|
import { APITagRepository } from '~/repositories/tag/apiTagRepository' |
|
|
|
import { TagApplicationService } from '~/services/application/tag/tagApplicationService' |
|
|
|
import {ApiLinkRepository} from "~/repositories/links/apiLinkRepository"; |
|
|
|
import {LinkTypesApplicationService} from "~/services/application/links/linkTypesApplicationService"; |
|
|
|
import {ApiLinkTypesRepository} from "~/repositories/links/apiLinkTypesRepository"; |
|
|
|
|
|
|
|
export interface Services { |
|
|
|
categoryType: LabelApplicationService, |
|
|
|
spanType: LabelApplicationService, |
|
|
|
linkTypes: LinkTypesApplicationService, |
|
|
|
relationType: LabelApplicationService, |
|
|
|
member: MemberApplicationService, |
|
|
|
user: UserApplicationService, |
|
|
|
role: RoleApplicationService, |
|
|
@ -78,7 +76,6 @@ declare module 'vue/types/vue' { |
|
|
|
} |
|
|
|
|
|
|
|
const plugin: Plugin = (context, inject) => { |
|
|
|
const linkTypesRepository = new ApiLinkTypesRepository() |
|
|
|
const memberRepository = new APIMemberRepository() |
|
|
|
const userRepository = new APIUserRepository() |
|
|
|
const roleRepository = new APIRoleRepository() |
|
|
@ -103,7 +100,7 @@ const plugin: Plugin = (context, inject) => { |
|
|
|
|
|
|
|
const categoryType = new LabelApplicationService(new APILabelRepository('category-type')) |
|
|
|
const spanType = new LabelApplicationService(new APILabelRepository('span-type')) |
|
|
|
const linkTypes = new LinkTypesApplicationService(linkTypesRepository) |
|
|
|
const relationType = new LabelApplicationService(new APILabelRepository('relation-type')) |
|
|
|
const member = new MemberApplicationService(memberRepository) |
|
|
|
const user = new UserApplicationService(userRepository) |
|
|
|
const role = new RoleApplicationService(roleRepository) |
|
|
@ -128,7 +125,7 @@ const plugin: Plugin = (context, inject) => { |
|
|
|
const services: Services = { |
|
|
|
categoryType, |
|
|
|
spanType, |
|
|
|
linkTypes, |
|
|
|
relationType, |
|
|
|
member, |
|
|
|
user, |
|
|
|
role, |
|
|
|