@konfuzio/document-validation-ui 0.1.55-dev.0 → 0.1.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/app.css +1 -1
- package/dist/index.html +1 -1
- package/dist/js/app.js +1 -1
- package/dist/js/app.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/scss/document_annotations.scss +0 -2
- package/src/assets/scss/document_set_chooser.scss +1 -0
- package/src/assets/scss/document_top_bar.scss +11 -0
- package/src/components/App.vue +80 -0
- package/src/components/DocumentAnnotations/AnnotationRow.vue +5 -0
- package/src/components/DocumentAnnotations/ChooseLabelSetModal.vue +8 -2
- package/src/components/DocumentAnnotations/DocumentAnnotations.vue +16 -20
- package/src/components/DocumentDashboard.vue +1 -1
- package/src/components/DocumentModals/DocumentErrorModal.vue +5 -0
- package/src/components/DocumentPage/DocumentPage.vue +13 -3
- package/src/components/DocumentPage/EditAnnotation.vue +11 -0
- package/src/components/DocumentPage/NewAnnotation.vue +13 -12
- package/src/components/DocumentTopBar/DocumentTopBar.vue +13 -1
- package/src/components/DocumentsList/DocumentsList.vue +2 -1
- package/src/components/ErrorMessage.vue +6 -1
- package/src/locales/de.json +6 -3
- package/src/locales/en.json +6 -3
- package/src/locales/es.json +6 -3
- package/src/store/display.js +8 -0
- package/src/store/document.js +30 -15
- package/src/utils/utils.js +6 -0
package/package.json
CHANGED
package/src/components/App.vue
CHANGED
|
@@ -53,6 +53,24 @@ export default {
|
|
|
53
53
|
default: "true",
|
|
54
54
|
},
|
|
55
55
|
// eslint-disable-next-line vue/prop-name-casing
|
|
56
|
+
show_missing_annotations: {
|
|
57
|
+
type: String,
|
|
58
|
+
required: false,
|
|
59
|
+
default: "true",
|
|
60
|
+
},
|
|
61
|
+
// eslint-disable-next-line vue/prop-name-casing
|
|
62
|
+
show_feedback_needed_annotations: {
|
|
63
|
+
type: String,
|
|
64
|
+
required: false,
|
|
65
|
+
default: "true",
|
|
66
|
+
},
|
|
67
|
+
// eslint-disable-next-line vue/prop-name-casing
|
|
68
|
+
show_accepted_annotations: {
|
|
69
|
+
type: String,
|
|
70
|
+
required: false,
|
|
71
|
+
default: "true",
|
|
72
|
+
},
|
|
73
|
+
// eslint-disable-next-line vue/prop-name-casing
|
|
56
74
|
sentry_dsn: {
|
|
57
75
|
type: String,
|
|
58
76
|
required: false,
|
|
@@ -135,6 +153,12 @@ export default {
|
|
|
135
153
|
required: false,
|
|
136
154
|
default: "60",
|
|
137
155
|
},
|
|
156
|
+
// eslint-disable-next-line vue/prop-name-casing
|
|
157
|
+
remove_branding: {
|
|
158
|
+
type: String,
|
|
159
|
+
required: false,
|
|
160
|
+
default: "false",
|
|
161
|
+
},
|
|
138
162
|
},
|
|
139
163
|
computed: {
|
|
140
164
|
...mapState("display", ["pageError"]),
|
|
@@ -176,6 +200,49 @@ export default {
|
|
|
176
200
|
return this.show_documents_navigation === "true";
|
|
177
201
|
}
|
|
178
202
|
},
|
|
203
|
+
removeBranding() {
|
|
204
|
+
if (process.env.VUE_APP_REMOVE_BRANDING) {
|
|
205
|
+
return process.env.VUE_APP_REMOVE_BRANDING === "true";
|
|
206
|
+
} else {
|
|
207
|
+
return this.remove_branding === "true";
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
showMissingAnnotations() {
|
|
211
|
+
if (
|
|
212
|
+
window.location.hash === "#unrevised" ||
|
|
213
|
+
window.location.hash === "#possiblyIncorrect"
|
|
214
|
+
) {
|
|
215
|
+
return false;
|
|
216
|
+
} else if (process.env.VUE_APP_SHOW_MISSING_ANNOTATIONS) {
|
|
217
|
+
return process.env.VUE_APP_SHOW_MISSING_ANNOTATIONS === "true";
|
|
218
|
+
} else {
|
|
219
|
+
return this.show_missing_annotations === "true";
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
showAcceptedAnnotations() {
|
|
223
|
+
if (
|
|
224
|
+
window.location.hash === "#unrevised" ||
|
|
225
|
+
window.location.hash === "#possiblyIncorrect"
|
|
226
|
+
) {
|
|
227
|
+
return false;
|
|
228
|
+
} else if (process.env.VUE_APP_SHOW_ACCEPTED_ANNOTATIONS) {
|
|
229
|
+
return process.env.VUE_APP_SHOW_ACCEPTED_ANNOTATIONS === "true";
|
|
230
|
+
} else {
|
|
231
|
+
return this.show_accepted_annotations === "true";
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
showFeedbackNeededAnnotations() {
|
|
235
|
+
if (
|
|
236
|
+
window.location.hash === "#unrevised" ||
|
|
237
|
+
window.location.hash === "#possiblyIncorrect"
|
|
238
|
+
) {
|
|
239
|
+
return true;
|
|
240
|
+
} else if (process.env.VUE_APP_SHOW_FEEDBACK_NEEDED_ANNOTATIONS) {
|
|
241
|
+
return process.env.VUE_APP_SHOW_FEEDBACK_NEEDED_ANNOTATIONS === "true";
|
|
242
|
+
} else {
|
|
243
|
+
return this.show_feedback_needed_annotations === "true";
|
|
244
|
+
}
|
|
245
|
+
},
|
|
179
246
|
isPublicView() {
|
|
180
247
|
if (
|
|
181
248
|
this.userToken ||
|
|
@@ -330,6 +397,19 @@ export default {
|
|
|
330
397
|
"display/showDocumentsNavigation",
|
|
331
398
|
this.showDocumentsNavigation
|
|
332
399
|
),
|
|
400
|
+
this.$store.dispatch("display/showBranding", !this.removeBranding),
|
|
401
|
+
this.$store.dispatch(
|
|
402
|
+
"document/showMissingAnnotations",
|
|
403
|
+
this.showMissingAnnotations
|
|
404
|
+
),
|
|
405
|
+
this.$store.dispatch(
|
|
406
|
+
"document/showFeedbackNeededAnnotations",
|
|
407
|
+
this.showFeedbackNeededAnnotations
|
|
408
|
+
),
|
|
409
|
+
this.$store.dispatch(
|
|
410
|
+
"document/showAcceptedAnnotations",
|
|
411
|
+
this.showAcceptedAnnotations
|
|
412
|
+
),
|
|
333
413
|
this.$store.dispatch("document/setDocId", this.documentId),
|
|
334
414
|
this.$store.dispatch("document/setPublicView", this.isPublicView),
|
|
335
415
|
this.$store.dispatch("document/setAnnotationId", this.annotationId),
|
|
@@ -516,12 +516,14 @@ export default {
|
|
|
516
516
|
return (
|
|
517
517
|
!this.editAnnotation &&
|
|
518
518
|
this.annotation &&
|
|
519
|
+
!this.isLoading &&
|
|
519
520
|
this.hoveredAnnotation === this.annotation.id
|
|
520
521
|
);
|
|
521
522
|
},
|
|
522
523
|
showAcceptButton() {
|
|
523
524
|
return (
|
|
524
525
|
!this.editAnnotation &&
|
|
526
|
+
!this.isLoading &&
|
|
525
527
|
!this.isAnnotationInEditMode(this.currentAnnotationId()) &&
|
|
526
528
|
this.annotation &&
|
|
527
529
|
!this.annotation.is_correct &&
|
|
@@ -531,6 +533,7 @@ export default {
|
|
|
531
533
|
showDeclineButton() {
|
|
532
534
|
return (
|
|
533
535
|
!this.editAnnotation &&
|
|
536
|
+
!this.isLoading &&
|
|
534
537
|
!this.isAnnotationInEditMode(this.currentAnnotationId()) &&
|
|
535
538
|
this.annotation &&
|
|
536
539
|
this.hoveredAnnotation === this.annotation.id
|
|
@@ -539,6 +542,7 @@ export default {
|
|
|
539
542
|
showMissingButton() {
|
|
540
543
|
return (
|
|
541
544
|
!this.editAnnotation &&
|
|
545
|
+
!this.isLoading &&
|
|
542
546
|
this.hoveredAnnotation &&
|
|
543
547
|
!this.isAnnotationInEditMode(this.currentAnnotationId()) &&
|
|
544
548
|
!this.annotation &&
|
|
@@ -710,6 +714,7 @@ export default {
|
|
|
710
714
|
this.$store.dispatch("document/resetEditAnnotation");
|
|
711
715
|
this.$store.dispatch("selection/disableSelection");
|
|
712
716
|
this.$store.dispatch("selection/setSelectedEntities", null);
|
|
717
|
+
this.isLoading = false;
|
|
713
718
|
});
|
|
714
719
|
},
|
|
715
720
|
saveEmptyAnnotationChanges() {
|
|
@@ -15,7 +15,12 @@
|
|
|
15
15
|
</h3>
|
|
16
16
|
<div>
|
|
17
17
|
<div v-if="labelSetsFilteredForAnnotationSetCreation.length === 0">
|
|
18
|
-
<p
|
|
18
|
+
<p
|
|
19
|
+
v-html="
|
|
20
|
+
`${$t('no_multi_ann_labelset_model')}
|
|
21
|
+
${showBranding ? $t('no_multi_ann_labelset_model_link') : ''}`
|
|
22
|
+
"
|
|
23
|
+
/>
|
|
19
24
|
</div>
|
|
20
25
|
<div v-else>
|
|
21
26
|
<p>
|
|
@@ -68,7 +73,7 @@
|
|
|
68
73
|
* This component shows a modal to choose a label set from the project
|
|
69
74
|
*/
|
|
70
75
|
|
|
71
|
-
import { mapGetters } from "vuex";
|
|
76
|
+
import { mapGetters, mapState } from "vuex";
|
|
72
77
|
|
|
73
78
|
export default {
|
|
74
79
|
name: "CreateAnnotationSetModal",
|
|
@@ -78,6 +83,7 @@ export default {
|
|
|
78
83
|
};
|
|
79
84
|
},
|
|
80
85
|
computed: {
|
|
86
|
+
...mapState("display", ["showBranding"]),
|
|
81
87
|
...mapGetters("document", [
|
|
82
88
|
"numberOfLabelSetGroup",
|
|
83
89
|
"labelSetsFilteredForAnnotationSetCreation",
|
|
@@ -139,7 +139,11 @@
|
|
|
139
139
|
>
|
|
140
140
|
<!-- eslint-disable vue/no-v-html -->
|
|
141
141
|
<span
|
|
142
|
-
v-if="
|
|
142
|
+
v-if="
|
|
143
|
+
showBranding &&
|
|
144
|
+
isDocumentEditable &&
|
|
145
|
+
!isSearchingAnnotationList
|
|
146
|
+
"
|
|
143
147
|
v-html="$t('link_to_add_labels')"
|
|
144
148
|
/>
|
|
145
149
|
</div>
|
|
@@ -189,7 +193,7 @@ export default {
|
|
|
189
193
|
},
|
|
190
194
|
|
|
191
195
|
computed: {
|
|
192
|
-
...mapState("display", ["showAnnSetTable"]),
|
|
196
|
+
...mapState("display", ["showAnnSetTable", "showBranding"]),
|
|
193
197
|
...mapState("document", [
|
|
194
198
|
"annotationSets",
|
|
195
199
|
"documentId",
|
|
@@ -232,12 +236,16 @@ export default {
|
|
|
232
236
|
this.jumpToNextAnnotation = false;
|
|
233
237
|
}
|
|
234
238
|
},
|
|
235
|
-
|
|
236
239
|
getAnnotationsFiltered(newFiltered, oldFiltered) {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
oldFiltered.annotationSets
|
|
240
|
-
)
|
|
240
|
+
// just load accordions again if the length was changed
|
|
241
|
+
if (
|
|
242
|
+
newFiltered.annotationSets.length !== oldFiltered.annotationSets.length
|
|
243
|
+
) {
|
|
244
|
+
this.loadAccordions(
|
|
245
|
+
newFiltered.annotationSets,
|
|
246
|
+
oldFiltered.annotationSets
|
|
247
|
+
);
|
|
248
|
+
}
|
|
241
249
|
},
|
|
242
250
|
annotationId(newAnnotationId) {
|
|
243
251
|
if (newAnnotationId) {
|
|
@@ -299,21 +307,13 @@ export default {
|
|
|
299
307
|
}
|
|
300
308
|
this.annotationSetsAccordion = newAnnotationSetsAccordion;
|
|
301
309
|
},
|
|
302
|
-
loadAccordions(newAnnotationSets
|
|
310
|
+
loadAccordions(newAnnotationSets) {
|
|
303
311
|
if (newAnnotationSets) {
|
|
304
312
|
const isFirstTime = this.annotationSetsAccordion === null;
|
|
305
313
|
const newAnnotationSetsAccordion = {};
|
|
306
|
-
const annotationSetsOpened = [];
|
|
307
314
|
const annotationSetsCreated = [];
|
|
308
315
|
|
|
309
316
|
newAnnotationSets.forEach((newAnnotationSet, index) => {
|
|
310
|
-
const wasOpen = annotationSetsOpened.find(
|
|
311
|
-
(annotationSetOpened) =>
|
|
312
|
-
annotationSetOpened &&
|
|
313
|
-
annotationSetOpened.id &&
|
|
314
|
-
newAnnotationSet.id &&
|
|
315
|
-
newAnnotationSet.id === annotationSetOpened.id
|
|
316
|
-
);
|
|
317
317
|
if (isFirstTime && this.annotationSetId) {
|
|
318
318
|
newAnnotationSetsAccordion[
|
|
319
319
|
newAnnotationSet.id || newAnnotationSet.label_set.id
|
|
@@ -330,10 +330,6 @@ export default {
|
|
|
330
330
|
newAnnotationSetsAccordion[
|
|
331
331
|
newAnnotationSet.id || newAnnotationSet.label_set.id
|
|
332
332
|
] = true;
|
|
333
|
-
} else if (wasOpen) {
|
|
334
|
-
newAnnotationSetsAccordion[
|
|
335
|
-
newAnnotationSet.id || newAnnotationSet.label_set.id
|
|
336
|
-
] = wasOpen !== undefined;
|
|
337
333
|
} else {
|
|
338
334
|
const wasCreated = annotationSetsCreated.find(
|
|
339
335
|
(annotationSetCreated) =>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
class="dashboard-document"
|
|
11
11
|
/>
|
|
12
12
|
</SplitArea>
|
|
13
|
-
<SplitArea :size="50" style="overflow-y:
|
|
13
|
+
<SplitArea :size="50" style="overflow-y: auto">
|
|
14
14
|
<DocumentAnnotations v-if="!editMode" ref="annotations" />
|
|
15
15
|
<DocumentEdit v-else ref="editView" />
|
|
16
16
|
</SplitArea>
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
</section>
|
|
20
20
|
<footer class="modal-card-foot">
|
|
21
21
|
<b-button
|
|
22
|
+
v-if="showBranding"
|
|
22
23
|
type="is-primary"
|
|
23
24
|
class="primary-button"
|
|
24
25
|
@click="handleContactSupport"
|
|
@@ -31,6 +32,7 @@
|
|
|
31
32
|
</template>
|
|
32
33
|
|
|
33
34
|
<script>
|
|
35
|
+
import { mapState } from "vuex";
|
|
34
36
|
import ErrorIcon from "../../assets/images/ErrorIcon";
|
|
35
37
|
|
|
36
38
|
export default {
|
|
@@ -43,6 +45,9 @@ export default {
|
|
|
43
45
|
isModalActive: true,
|
|
44
46
|
};
|
|
45
47
|
},
|
|
48
|
+
computed: {
|
|
49
|
+
...mapState("display", ["showBranding"]),
|
|
50
|
+
},
|
|
46
51
|
methods: {
|
|
47
52
|
handleContactSupport() {
|
|
48
53
|
const documentError = "Document error";
|
|
@@ -303,13 +303,11 @@ export default {
|
|
|
303
303
|
scale() {
|
|
304
304
|
this.closePopups();
|
|
305
305
|
},
|
|
306
|
-
|
|
306
|
+
selectedEntities(newValue) {
|
|
307
307
|
if (!newValue) {
|
|
308
308
|
this.$store.dispatch("selection/setSpanSelection", null);
|
|
309
309
|
this.closePopups();
|
|
310
310
|
}
|
|
311
|
-
|
|
312
|
-
await this.$store.dispatch("selection/getTextFromEntities", newValue);
|
|
313
311
|
},
|
|
314
312
|
page(newValue, oldValue) {
|
|
315
313
|
if (newValue.image_url !== oldValue.image_url) {
|
|
@@ -439,6 +437,10 @@ export default {
|
|
|
439
437
|
"selection/setSelectedEntities",
|
|
440
438
|
this.newAnnotation
|
|
441
439
|
);
|
|
440
|
+
this.$store.dispatch(
|
|
441
|
+
"selection/getTextFromEntities",
|
|
442
|
+
this.newAnnotation
|
|
443
|
+
);
|
|
442
444
|
} else {
|
|
443
445
|
this.$store.dispatch("selection/setSelectedEntities", null);
|
|
444
446
|
}
|
|
@@ -458,6 +460,10 @@ export default {
|
|
|
458
460
|
"selection/setSelectedEntities",
|
|
459
461
|
normalizedEntities
|
|
460
462
|
);
|
|
463
|
+
this.$store.dispatch(
|
|
464
|
+
"selection/getTextFromEntities",
|
|
465
|
+
normalizedEntities
|
|
466
|
+
);
|
|
461
467
|
} else {
|
|
462
468
|
this.$store.dispatch("selection/setSelectedEntities", null);
|
|
463
469
|
}
|
|
@@ -503,6 +509,10 @@ export default {
|
|
|
503
509
|
"selection/setSelectedEntities",
|
|
504
510
|
this.newAnnotation
|
|
505
511
|
);
|
|
512
|
+
this.$store.dispatch(
|
|
513
|
+
"selection/getTextFromEntities",
|
|
514
|
+
this.newAnnotation
|
|
515
|
+
);
|
|
506
516
|
} else {
|
|
507
517
|
this.$store.dispatch("selection/setSelectedEntities", null);
|
|
508
518
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
<!-- eslint-disable vue/no-v-html -->
|
|
1
2
|
<template>
|
|
2
3
|
<div
|
|
3
4
|
v-if="annotation && !hide"
|
|
@@ -71,6 +72,15 @@
|
|
|
71
72
|
class="bottom-aligned"
|
|
72
73
|
:close-delay="5000"
|
|
73
74
|
>
|
|
75
|
+
<template #content>
|
|
76
|
+
<div
|
|
77
|
+
v-html="
|
|
78
|
+
`${$t('no_labels_available')} ${
|
|
79
|
+
showBranding ? $t('no_labels_available_link') : ''
|
|
80
|
+
}`
|
|
81
|
+
"
|
|
82
|
+
></div>
|
|
83
|
+
</template>
|
|
74
84
|
<b-dropdown
|
|
75
85
|
v-if="selectedLabel"
|
|
76
86
|
v-model="selectedLabel"
|
|
@@ -173,6 +183,7 @@ export default {
|
|
|
173
183
|
"numberOfLabelSetGroup",
|
|
174
184
|
"labelsFilteredForAnnotationCreation",
|
|
175
185
|
]),
|
|
186
|
+
...mapState("display", ["showBranding"]),
|
|
176
187
|
...mapGetters("display", ["bboxToRect"]),
|
|
177
188
|
...mapState("selection", ["selection", "spanSelection"]),
|
|
178
189
|
top() {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
<!-- eslint-disable vue/no-v-html -->
|
|
1
2
|
<template>
|
|
2
3
|
<div class="annotation-popup" :style="{ left: `${left}px`, top: `${top}px` }">
|
|
3
4
|
<div v-if="!textFromEntities" class="popup-input">
|
|
@@ -74,7 +75,13 @@
|
|
|
74
75
|
:close-delay="5000"
|
|
75
76
|
>
|
|
76
77
|
<template #content>
|
|
77
|
-
<div
|
|
78
|
+
<div
|
|
79
|
+
v-html="
|
|
80
|
+
`${$t('no_labels_available')} ${
|
|
81
|
+
showBranding ? $t('no_labels_available_link') : ''
|
|
82
|
+
}`
|
|
83
|
+
"
|
|
84
|
+
></div>
|
|
78
85
|
</template>
|
|
79
86
|
<b-dropdown
|
|
80
87
|
v-model="selectedLabel"
|
|
@@ -179,6 +186,7 @@ export default {
|
|
|
179
186
|
"numberOfLabelSetGroup",
|
|
180
187
|
"labelsFilteredForAnnotationCreation",
|
|
181
188
|
]),
|
|
189
|
+
...mapState("display", ["showBranding"]),
|
|
182
190
|
...mapGetters("display", ["clientToBbox"]),
|
|
183
191
|
...mapState("selection", ["spanSelection", "selection"]),
|
|
184
192
|
top() {
|
|
@@ -226,13 +234,12 @@ export default {
|
|
|
226
234
|
textFromEntities() {
|
|
227
235
|
if (!this.spanSelection) return;
|
|
228
236
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
237
|
+
let text = "";
|
|
238
|
+
this.spanSelection.forEach((span) => {
|
|
239
|
+
text = `${text} ${span.offset_string}`;
|
|
232
240
|
});
|
|
233
241
|
|
|
234
|
-
|
|
235
|
-
return text.join().split(",").join(" ");
|
|
242
|
+
return text.trim();
|
|
236
243
|
},
|
|
237
244
|
},
|
|
238
245
|
watch: {
|
|
@@ -254,8 +261,6 @@ export default {
|
|
|
254
261
|
// prevent click propagation when opening the popup
|
|
255
262
|
document.body.addEventListener("click", this.clickOutside);
|
|
256
263
|
}, 200);
|
|
257
|
-
|
|
258
|
-
this.setTooltipText();
|
|
259
264
|
},
|
|
260
265
|
destroyed() {
|
|
261
266
|
document.body.removeEventListener("click", this.clickOutside);
|
|
@@ -342,10 +347,6 @@ export default {
|
|
|
342
347
|
finish: this.chooseLabelSet,
|
|
343
348
|
});
|
|
344
349
|
},
|
|
345
|
-
setTooltipText() {
|
|
346
|
-
// Text set from innerHTML vs 'label' due to html tag in locales file string
|
|
347
|
-
this.$refs.tooltipContent.innerHTML = this.$t("no_labels_available");
|
|
348
|
-
},
|
|
349
350
|
},
|
|
350
351
|
};
|
|
351
352
|
</script>
|
|
@@ -8,6 +8,17 @@
|
|
|
8
8
|
<DocumentSetChooser
|
|
9
9
|
v-if="!publicView && !recalculatingAnnotations && !editMode"
|
|
10
10
|
/>
|
|
11
|
+
<a
|
|
12
|
+
v-if="
|
|
13
|
+
showBranding &&
|
|
14
|
+
!(selectedDocument.documentSet !== null && documentSet === null)
|
|
15
|
+
"
|
|
16
|
+
class="app-info"
|
|
17
|
+
target="_blank"
|
|
18
|
+
href="https://konfuzio.com"
|
|
19
|
+
>
|
|
20
|
+
<span>{{ $t("powered_by") }}</span>
|
|
21
|
+
</a>
|
|
11
22
|
</div>
|
|
12
23
|
|
|
13
24
|
<div
|
|
@@ -121,12 +132,13 @@ export default {
|
|
|
121
132
|
computed: {
|
|
122
133
|
...mapState("document", [
|
|
123
134
|
"selectedDocument",
|
|
135
|
+
"documentSet",
|
|
124
136
|
"publicView",
|
|
125
137
|
"loading",
|
|
126
138
|
"recalculatingAnnotations",
|
|
127
139
|
]),
|
|
128
140
|
...mapState("edit", ["editMode"]),
|
|
129
|
-
...mapState("display", ["showDocumentsNavigation"]),
|
|
141
|
+
...mapState("display", ["showDocumentsNavigation", "showBranding"]),
|
|
130
142
|
...mapGetters("document", [
|
|
131
143
|
"isDocumentReviewed",
|
|
132
144
|
"isDocumentReadyToBeReviewed",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
</p>
|
|
12
12
|
</div>
|
|
13
13
|
<div class="documents-list-top-right">
|
|
14
|
-
<div class="action-box">
|
|
14
|
+
<div v-if="showBranding" class="action-box">
|
|
15
15
|
<span>{{ $t("upload_documents") }}</span>
|
|
16
16
|
<b-button
|
|
17
17
|
class="action-button primary-button"
|
|
@@ -98,6 +98,7 @@ export default {
|
|
|
98
98
|
computed: {
|
|
99
99
|
...mapState("document", ["selectedDocument"]),
|
|
100
100
|
...mapState("category", ["documentsAvailableToReview"]),
|
|
101
|
+
...mapState("display", ["showBranding"]),
|
|
101
102
|
...mapGetters("category", ["category"]),
|
|
102
103
|
...mapGetters("document", ["documentHadErrorDuringExtraction"]),
|
|
103
104
|
},
|
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
<div v-if="serverError" class="message-container">
|
|
4
4
|
<span class="server-error">
|
|
5
5
|
{{ errorMessage }}
|
|
6
|
-
<span
|
|
6
|
+
<span
|
|
7
|
+
v-if="showBranding"
|
|
8
|
+
class="contact-support"
|
|
9
|
+
@click="handleGetSupport"
|
|
10
|
+
>
|
|
7
11
|
{{ $t("get_support") }} <b-icon icon="arrow-right" size="is-small"
|
|
8
12
|
/></span>
|
|
9
13
|
</span>
|
|
@@ -24,6 +28,7 @@ export default {
|
|
|
24
28
|
name: "ErrorMessage",
|
|
25
29
|
computed: {
|
|
26
30
|
...mapState("document", ["errorMessage", "serverError"]),
|
|
31
|
+
...mapState("display", ["showBranding"]),
|
|
27
32
|
},
|
|
28
33
|
methods: {
|
|
29
34
|
handleGetSupport() {
|
package/src/locales/de.json
CHANGED
|
@@ -102,7 +102,8 @@
|
|
|
102
102
|
"decline": "Ablehnen",
|
|
103
103
|
"server_error": "Wir haben derzeit ein Serverproblem. Bitte versuchen Sie es später noch einmal oder",
|
|
104
104
|
"get_support": "Hole dir Unterstützung",
|
|
105
|
-
"no_labels_available": "Das ausgewählte Annotations-Set enthält keine nicht ausgefüllten oder multiplen Labels.
|
|
105
|
+
"no_labels_available": "Das ausgewählte Annotations-Set enthält keine nicht ausgefüllten oder multiplen Labels.",
|
|
106
|
+
"no_labels_available_link": "Weitere Informationen finden Sie unter <a href='https://help.konfuzio.com/modules/labels/index.html#multiple' target='_blank'>diesem Link</a>.",
|
|
106
107
|
"new_ann_set_title": "Neues Annotations-Set",
|
|
107
108
|
"new_ann_set_description": "Wählen Sie ein Datenmodell aus den vorhandenen aus. Das neue Annotations-Set enthält dieselben Beschriftungen.",
|
|
108
109
|
"select_label_set": "Wählen Sie das Label-Set-Modell aus",
|
|
@@ -113,7 +114,8 @@
|
|
|
113
114
|
"new_multi_ann_description": "Wählen Sie ein Datenmodell aus den vorhandenen aus und deaktivieren Sie dann die Labels, die in diesem Dokument nicht vorhanden sind.",
|
|
114
115
|
"drag_drop_columns_multi_ann": "Drag and Drop, um die Reihenfolge der Labels zu ändern",
|
|
115
116
|
"error_creating_multi_ann": "Nicht alle Annotationen wurden erfolgreich erstellt.",
|
|
116
|
-
"no_multi_ann_labelset_model": "Es gibt keine verfügbaren Label Sets, die mehrfach in diesem Dokument zu finden sind.
|
|
117
|
+
"no_multi_ann_labelset_model": "Es gibt keine verfügbaren Label Sets, die mehrfach in diesem Dokument zu finden sind.",
|
|
118
|
+
"no_multi_ann_labelset_model_link": "Weitere Informationen finden Sie unter <a href='https://help.konfuzio.com/tutorials/advanced-document-extraction/index.html#multiple-annotation-sets' target='_blank'>diesem Link</a>.",
|
|
117
119
|
"single_category_in_project": "Das aktuelle Projekt hat nur eine Kategorie. Um sie ändern zu können, sollte die neue zuerst dem Projekt hinzugefügt werden.",
|
|
118
120
|
"approved_annotations": "Die Kategorie kann nicht geändert werden, da bereits akzeptierte Annotationen oder manuell erstellte Annotationen zu diesem Dokument vorhanden sind.",
|
|
119
121
|
"restore": "Wiederherstellen",
|
|
@@ -163,5 +165,6 @@
|
|
|
163
165
|
"copied": "Kopiert",
|
|
164
166
|
"checkbox_ann_details": "Für dieses Label wird ein Kästchen extrahiert.",
|
|
165
167
|
"document_section": "Dokumentabschnitt",
|
|
166
|
-
"label_size": "Spaltengröße:"
|
|
168
|
+
"label_size": "Spaltengröße:",
|
|
169
|
+
"powered_by": "betrieben von Konfuzio"
|
|
167
170
|
}
|
package/src/locales/en.json
CHANGED
|
@@ -109,13 +109,15 @@
|
|
|
109
109
|
"decline": "Decline",
|
|
110
110
|
"server_error": "We are currently experiencing a server issue. Please try again later or",
|
|
111
111
|
"get_support": "Get Support",
|
|
112
|
-
"no_labels_available": "There are no unfilled or multiple labels in the selected annotation set.
|
|
112
|
+
"no_labels_available": "There are no unfilled or multiple labels in the selected annotation set.",
|
|
113
|
+
"no_labels_available_link": "For more details, you can visit <a href='https://help.konfuzio.com/modules/labels/index.html#multiple' target='_blank'>this link</a>.",
|
|
113
114
|
"new_multi_ann_title": "Create multiple annotations",
|
|
114
115
|
"new_multi_ann_description": "Select a data model from the existing ones, then deselect the labels that don't exist in this document.",
|
|
115
116
|
"drag_drop_columns_multi_ann": "Drag and drop to change the order of the labels",
|
|
116
117
|
"error_creating_multi_ann": "Not all annotation sets were created successfully.",
|
|
117
118
|
"disabled_finish_review": "Finishing the document review is only possible after all annotations have been revised, whether they are accepted or marked as missing.",
|
|
118
|
-
"no_multi_ann_labelset_model": "There are no available label sets that can be found multiple times in this document.
|
|
119
|
+
"no_multi_ann_labelset_model": "There are no available label sets that can be found multiple times in this document.",
|
|
120
|
+
"no_multi_ann_labelset_model_link": "For more details, you can visit <a href='https://help.konfuzio.com/tutorials/advanced-document-extraction/index.html#multiple-annotation-sets' target='_blank'>this link</a>.",
|
|
119
121
|
"single_category_in_project": "The current project has only one category. To be able to change it, the new one should be first added to the project.",
|
|
120
122
|
"approved_annotations": "It is not possible to change the current category since the document has approved or manually created annotations.",
|
|
121
123
|
"restore": "Restore",
|
|
@@ -164,5 +166,6 @@
|
|
|
164
166
|
"copied": "Copied",
|
|
165
167
|
"checkbox_ann_details": "A checkbox will be extracted for this label.",
|
|
166
168
|
"document_section": "Document Section",
|
|
167
|
-
"label_size": "Column size:"
|
|
169
|
+
"label_size": "Column size:",
|
|
170
|
+
"powered_by": "powered by Konfuzio"
|
|
168
171
|
}
|
package/src/locales/es.json
CHANGED
|
@@ -102,7 +102,8 @@
|
|
|
102
102
|
"decline": "Declinar",
|
|
103
103
|
"server_error": "Estamos experimentando problemas con el servidor. Por favor, repita la operación o ",
|
|
104
104
|
"get_support": "Contacte al Soporte",
|
|
105
|
-
"no_labels_available": "No hay etiquetas vacías o múltiples en el grupo de anotaciones seleccionado.
|
|
105
|
+
"no_labels_available": "No hay etiquetas vacías o múltiples en el grupo de anotaciones seleccionado.",
|
|
106
|
+
"no_labels_available_link": "Para más información, haz clic en <a href='https://help.konfuzio.com/modules/labels/index.html#multiple' target='_blank'>este enlace</a>.",
|
|
106
107
|
"new_ann_set_title": "Crear anotaciones múltiples",
|
|
107
108
|
"new_ann_set_description": "Seleccione un modelo de datos de las opciones disponibles, y luego deseleccione las etiquetas que no existen en este documento.",
|
|
108
109
|
"select_label_set": "Seleccione un modelo de grupo de etiquetas",
|
|
@@ -112,7 +113,8 @@
|
|
|
112
113
|
"drag_drop_columns_multi_ann": "Arrastre y suelte las columnas para ordenar las etiquetas",
|
|
113
114
|
"error_creating_multi_ann": "No todos los grupos de anotaciones fueron creados de manera exitosa.",
|
|
114
115
|
"disabled_finish_review": "Solo es posible finalizar la revisión del documento si todas las anotaciones han sido revisadas, ya sea aceptadas o marcadas como faltantes.",
|
|
115
|
-
"no_multi_ann_labelset_model": "En este documento no hay grupos de etiquetas múltiples disponibles.
|
|
116
|
+
"no_multi_ann_labelset_model": "En este documento no hay grupos de etiquetas múltiples disponibles.",
|
|
117
|
+
"no_multi_ann_labelset_model_link": "Para más información, haga clic en <a href='https://help.konfuzio.com/tutorials/advanced-document-extraction/index.html#multiple-annotation-sets' target='_blank'>este enlace</a>.",
|
|
116
118
|
"single_category_in_project": "Este proyecto solo tiene una categoría. Para poder modificarla, es necesario agregar esta nueva categoría al proyecto.",
|
|
117
119
|
"approved_annotations": "No es posible cambiar la categoría ya que existen anotaciones aceptadas o creadas manualmente en este documento.",
|
|
118
120
|
"restore": "Restaurar",
|
|
@@ -163,5 +165,6 @@
|
|
|
163
165
|
"copied": "Copiada",
|
|
164
166
|
"checkbox_ann_details": "Se extraerá una casilla de verificación para esta etiqueta.",
|
|
165
167
|
"document_section": "Sección del documento",
|
|
166
|
-
"label_size": "Tamaño de columna:"
|
|
168
|
+
"label_size": "Tamaño de columna:",
|
|
169
|
+
"powered_by": "impulsado por Konfuzio"
|
|
167
170
|
}
|
package/src/store/display.js
CHANGED
|
@@ -37,6 +37,7 @@ const state = {
|
|
|
37
37
|
pageError: null,
|
|
38
38
|
labelWidth: 40,
|
|
39
39
|
annotationWidth: 60,
|
|
40
|
+
showBranding: true,
|
|
40
41
|
};
|
|
41
42
|
|
|
42
43
|
const getters = {
|
|
@@ -297,6 +298,9 @@ const actions = {
|
|
|
297
298
|
showDocumentsNavigation({ commit }, show) {
|
|
298
299
|
commit("SET_SHOW_DOCUMENTS_NAVIGATION", show);
|
|
299
300
|
},
|
|
301
|
+
showBranding({ commit }, show) {
|
|
302
|
+
commit("SET_SHOW_BRANDING", show);
|
|
303
|
+
},
|
|
300
304
|
showChooseLabelSetModal({ commit }, options) {
|
|
301
305
|
commit("SET_SHOW_CHOOSE_LABEL_SET_MODAL", options);
|
|
302
306
|
},
|
|
@@ -421,6 +425,10 @@ const mutations = {
|
|
|
421
425
|
state.showDocumentsNavigation = show;
|
|
422
426
|
},
|
|
423
427
|
|
|
428
|
+
SET_SHOW_BRANDING: (state, show) => {
|
|
429
|
+
state.showBranding = show;
|
|
430
|
+
},
|
|
431
|
+
|
|
424
432
|
SET_ANN_SET_TABLE: (state, tableSet) => {
|
|
425
433
|
state.showAnnSetTable = tableSet;
|
|
426
434
|
},
|