From 7d0559f131d647ad1074fec593742086419a1057 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Tue, 20 Apr 2021 13:24:32 +0900 Subject: [PATCH] Add services for download to the plugin --- frontend/plugins/services.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/frontend/plugins/services.ts b/frontend/plugins/services.ts index 6a334da2..b40499d3 100644 --- a/frontend/plugins/services.ts +++ b/frontend/plugins/services.ts @@ -35,6 +35,10 @@ import { TemplateApplicationService } from '~/services/application/autoLabeling/ import { APITextClassificationRepository } from '~/repositories/tasks/textClassification/apiTextClassification' import { TextClassificationApplicationService } from '~/services/application/tasks/textClassification/textClassificationApplicationService' import { AuthApplicationService } from '~/services/application/auth/authApplicationService' +import { APIDownloadFormatRepository } from '~/repositories/download/apiDownloadFormatRepository' +import { APIDownloadRepository } from '~/repositories/download/apiDownloadRepository' +import { DownloadApplicationService } from '~/services/application/download/downloadApplicationService' +import { DownloadFormatApplicationService } from '~/services/application/download/downloadFormatApplicationService' export interface Services { label: LabelApplicationService, @@ -55,6 +59,8 @@ export interface Services { catalog: CatalogApplicationService, parse: ParseApplicationService, taskStatus: TaskStatusApplicationService, + downloadFormat: DownloadFormatApplicationService, + download: DownloadApplicationService, } declare module 'vue/types/vue' { @@ -82,6 +88,8 @@ const plugin: Plugin = (context, inject) => { const catalogRepository = new APICatalogRepository() const parseRepository = new APIParseRepository() const taskStatusRepository = new APITaskStatusRepository() + const downloadFormatRepository = new APIDownloadFormatRepository() + const downloadRepository = new APIDownloadRepository() const label = new LabelApplicationService(labelRepository) const member = new MemberApplicationService(memberRepository) @@ -101,6 +109,8 @@ const plugin: Plugin = (context, inject) => { const catalog = new CatalogApplicationService(catalogRepository) const parse = new ParseApplicationService(parseRepository) const taskStatus = new TaskStatusApplicationService(taskStatusRepository) + const downloadFormat = new DownloadFormatApplicationService(downloadFormatRepository) + const download = new DownloadApplicationService(downloadRepository) const services: Services = { label, @@ -121,6 +131,8 @@ const plugin: Plugin = (context, inject) => { catalog, parse, taskStatus, + downloadFormat, + download, } inject('services', services) }