mirror of https://github.com/doccano/doccano.git
10 changed files with 56 additions and 51 deletions
Unified View
Diff Options
-
19frontend/components/layout/TheSideBar.vue
-
16frontend/domain/models/project/project.ts
-
6frontend/layouts/project.vue
-
4frontend/layouts/workspace.vue
-
12frontend/pages/projects/_id/comments/index.vue
-
14frontend/pages/projects/_id/dataset/index.vue
-
20frontend/presenter/linkToAnnotationPage.ts
-
9frontend/services/application/project/projectApplicationService.ts
-
4frontend/services/application/project/projectData.ts
-
3frontend/store/projects.js
@ -0,0 +1,20 @@ |
|||||
|
import { ProjectType } from '@/domain/models/project/project' |
||||
|
|
||||
|
export const getLinkToAnnotationPage = ( |
||||
|
projectId: number | string, |
||||
|
projectType: ProjectType |
||||
|
): string => { |
||||
|
const mapping = { |
||||
|
DocumentClassification: 'text-classification', |
||||
|
SequenceLabeling: 'sequence-labeling', |
||||
|
Seq2seq: 'sequence-to-sequence', |
||||
|
IntentDetectionAndSlotFilling: 'intent-detection-and-slot-filling', |
||||
|
ImageClassification: 'image-classification', |
||||
|
ImageCaptioning: 'image-captioning', |
||||
|
BoundingBox: 'object-detection', |
||||
|
Segmentation: 'segmentation', |
||||
|
Speech2text: 'speech-to-text' |
||||
|
} |
||||
|
const link = `/projects/${projectId}/${mapping[projectType]}` |
||||
|
return link |
||||
|
} |
Write
Preview
Loading…
Cancel
Save