Browse Source
Merge pull request #1959 from doccano/enhancement/928
Show status on dataset page
pull/1963/head
Hiroki Nakayama
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
30 additions and
0 deletions
-
frontend/components/example/AudioList.vue
-
frontend/components/example/DocumentList.vue
-
frontend/components/example/ImageList.vue
|
|
@ -29,6 +29,11 @@ |
|
|
|
filled |
|
|
|
/> |
|
|
|
</template> |
|
|
|
<template #[`item.isConfirmed`]="{ item }"> |
|
|
|
<v-chip :color="item.isConfirmed ? 'success' : 'warning'" text small> |
|
|
|
{{ item.isConfirmed ? 'Finished' : 'In progress' }} |
|
|
|
</v-chip> |
|
|
|
</template> |
|
|
|
<template #[`item.fileUrl`]="{ item }"> |
|
|
|
<audio controls :src="item.fileUrl" class="mt-2"> |
|
|
|
Your browser does not support the |
|
|
@ -95,6 +100,11 @@ export default Vue.extend({ |
|
|
|
value: 'id', |
|
|
|
sortable: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
text: 'Status', |
|
|
|
value: 'isConfirmed', |
|
|
|
sortable: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
text: 'Audio', |
|
|
|
value: 'fileUrl', |
|
|
|
|
|
@ -29,6 +29,11 @@ |
|
|
|
filled |
|
|
|
/> |
|
|
|
</template> |
|
|
|
<template #[`item.isConfirmed`]="{ item }"> |
|
|
|
<v-chip :color="item.isConfirmed ? 'success' : 'warning'" text small> |
|
|
|
{{ item.isConfirmed ? 'Finished' : 'In progress' }} |
|
|
|
</v-chip> |
|
|
|
</template> |
|
|
|
<template #[`item.text`]="{ item }"> |
|
|
|
<span class="d-flex d-sm-none">{{ item.text | truncate(50) }}</span> |
|
|
|
<span class="d-none d-sm-flex">{{ item.text | truncate(200) }}</span> |
|
|
@ -93,6 +98,11 @@ export default Vue.extend({ |
|
|
|
value: 'id', |
|
|
|
sortable: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
text: 'Status', |
|
|
|
value: 'isConfirmed', |
|
|
|
sortable: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
text: this.$t('dataset.text'), |
|
|
|
value: 'text', |
|
|
|
|
|
@ -29,6 +29,11 @@ |
|
|
|
filled |
|
|
|
/> |
|
|
|
</template> |
|
|
|
<template #[`item.isConfirmed`]="{ item }"> |
|
|
|
<v-chip :color="item.isConfirmed ? 'success' : 'warning'" text small> |
|
|
|
{{ item.isConfirmed ? 'Finished' : 'In progress' }} |
|
|
|
</v-chip> |
|
|
|
</template> |
|
|
|
<template #[`item.fileUrl`]="{ item }"> |
|
|
|
<v-img |
|
|
|
:src="item.fileUrl" |
|
|
@ -99,6 +104,11 @@ export default Vue.extend({ |
|
|
|
value: 'id', |
|
|
|
sortable: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
text: 'Status', |
|
|
|
value: 'isConfirmed', |
|
|
|
sortable: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
text: 'Image', |
|
|
|
value: 'fileUrl', |
|
|
|