mirror of https://github.com/doccano/doccano.git
pythonannotation-tooldatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learning
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
617 B
24 lines
617 B
import { Plugin } from '@nuxt/types'
|
|
import { FromApiLabelItemListRepository } from '@/repositories/label/api'
|
|
import { LabelApplicationService } from '@/services/application/label.service'
|
|
|
|
export interface Services {
|
|
label: LabelApplicationService
|
|
}
|
|
|
|
declare module 'vue/types/vue' {
|
|
interface Vue {
|
|
readonly $services: Services
|
|
}
|
|
}
|
|
|
|
const plugin: Plugin = (context, inject) => {
|
|
const labelRepository = new FromApiLabelItemListRepository()
|
|
const label = new LabelApplicationService(labelRepository)
|
|
const services: Services = {
|
|
label
|
|
}
|
|
inject('services', services)
|
|
}
|
|
|
|
export default plugin
|