From 71c0bebc0445fdad1192685a8b6f70e853cecf2e Mon Sep 17 00:00:00 2001 From: Hironsan Date: Mon, 29 Mar 2021 16:41:57 +0900 Subject: [PATCH] Add authApplicationService to the plugin --- frontend/plugins/services.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/plugins/services.ts b/frontend/plugins/services.ts index 22bd38ba..411b53e2 100644 --- a/frontend/plugins/services.ts +++ b/frontend/plugins/services.ts @@ -12,6 +12,7 @@ import { APIMemberRepository } from '~/repositories/member/apiMemberRepository' import { APILabelRepository } from '~/repositories/label/apiLabelRepository' import { APIDocumentRepository } from '~/repositories/document/apiDocumentRepository' import { APICommentRepository } from '~/repositories/comment/apiCommentRepository' +import { APIAuthRepository } from '~/repositories/auth/apiAuthRepository' import { LabelApplicationService } from '~/services/application/label/labelApplicationService' import { MemberApplicationService } from '~/services/application/member/memberApplicationService' import { UserApplicationService } from '~/services/application/user/userApplicationService' @@ -27,7 +28,7 @@ import { ConfigApplicationService } from '~/services/application/autoLabeling/co import { TemplateApplicationService } from '~/services/application/autoLabeling/templateApplicationService' import { APITextClassificationRepository } from '~/repositories/tasks/textClassification/apiTextClassification' import { TextClassificationApplicationService } from '~/services/application/tasks/textClassification/textClassificationApplicationService' - +import { AuthApplicationService } from '~/services/application/auth/authApplicationService' export interface Services { label: LabelApplicationService, @@ -43,7 +44,8 @@ export interface Services { seq2seq: Seq2seqApplicationService, option: OptionApplicationService, config: ConfigApplicationService, - template: TemplateApplicationService + template: TemplateApplicationService, + auth: AuthApplicationService } declare module 'vue/types/vue' { @@ -67,6 +69,7 @@ const plugin: Plugin = (context, inject) => { const optionRepository = new LocalStorageOptionRepository() const configRepository = new APIConfigRepository() const templateRepository = new APITemplateRepository() + const authRepository = new APIAuthRepository() const label = new LabelApplicationService(labelRepository) const member = new MemberApplicationService(memberRepository) @@ -82,6 +85,7 @@ const plugin: Plugin = (context, inject) => { const option = new OptionApplicationService(optionRepository) const config = new ConfigApplicationService(configRepository) const template = new TemplateApplicationService(templateRepository) + const auth = new AuthApplicationService(authRepository) const services: Services = { label, @@ -97,7 +101,8 @@ const plugin: Plugin = (context, inject) => { seq2seq, option, config, - template + template, + auth } inject('services', services) }