@konfuzio/document-validation-ui 0.1.10-dev.1 → 0.1.10-dev.10

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.
Files changed (35) hide show
  1. package/dist/css/app.css +1 -1
  2. package/dist/index.html +1 -1
  3. package/dist/js/app.js +1 -1
  4. package/dist/js/app.js.map +1 -1
  5. package/dist/js/chunk-vendors.js +1 -1
  6. package/package.json +1 -1
  7. package/src/api.js +10 -0
  8. package/src/assets/scss/document_category.scss +1 -0
  9. package/src/assets/scss/document_edit.scss +27 -7
  10. package/src/assets/scss/document_name.scss +1 -1
  11. package/src/assets/scss/document_top_bar.scss +4 -0
  12. package/src/assets/scss/new_annotation.scss +14 -3
  13. package/src/assets/scss/{main.scss → theme.scss} +26 -17
  14. package/src/assets/scss/variables.scss +1 -7
  15. package/src/components/App.vue +56 -2
  16. package/src/components/DocumentAnnotations/DocumentAnnotations.vue +0 -11
  17. package/src/components/DocumentCategory.vue +2 -2
  18. package/src/components/DocumentDashboard.vue +3 -15
  19. package/src/components/DocumentEdit/DocumentEdit.vue +80 -25
  20. package/src/components/DocumentEdit/EditPages.vue +5 -3
  21. package/src/components/DocumentEdit/{SplitOverview.vue → RenameAndCategorize.vue} +9 -8
  22. package/src/components/DocumentEdit/index.js +1 -1
  23. package/src/components/DocumentPage/NewAnnotation.vue +2 -1
  24. package/src/components/DocumentTopBar/DocumentTopBarButtons.vue +66 -30
  25. package/src/locales/de.json +5 -5
  26. package/src/locales/en.json +5 -5
  27. package/src/locales/es.json +18 -18
  28. package/src/main.js +0 -24
  29. package/src/store/document.js +14 -12
  30. package/src/store/edit.js +30 -14
  31. package/dist/css/chunk-vendors.css +0 -5
  32. package/src/assets/scss/categorize_modal.scss +0 -45
  33. package/src/assets/scss/splitting_confirmation_modal.scss +0 -41
  34. package/src/components/DocumentAnnotations/CategorizeModal.vue +0 -247
  35. package/src/components/DocumentModals/SplittingSuggestionsModal.vue +0 -132
@@ -1,6 +1,11 @@
1
1
  <template>
2
- <div :class="['document-edit', splitOverview && 'split-overview-component']">
3
- <div v-if="!splitOverview" class="pages-section">
2
+ <div
3
+ :class="[
4
+ 'document-edit',
5
+ renameAndCategorize && 'rename-and-categorize-component',
6
+ ]"
7
+ >
8
+ <div v-if="!renameAndCategorize" class="pages-section">
4
9
  <EditPages
5
10
  :splitting-lines="splittingLines"
6
11
  :split-suggestions-enabled="splitSuggestionsEnabled"
@@ -12,14 +17,14 @@
12
17
  <SplitInfoBar v-if="splitSuggestionsEnabled" />
13
18
  </div>
14
19
  </div>
15
- <div v-else class="split-overview-section">
16
- <SplitOverview
20
+ <div v-else class="rename-and-categorize-section">
21
+ <RenameAndCategorize
17
22
  :file-name="fileName"
18
23
  :file-extension="fileExtension"
19
24
  @change-page="changePage"
20
25
  />
21
26
  </div>
22
- <div v-if="!splitOverview" class="sidebar">
27
+ <div v-if="!renameAndCategorize" class="sidebar">
23
28
  <EditSidebar
24
29
  :split-suggestions-enabled="splitSuggestionsEnabled"
25
30
  @rotate-left="rotatePage"
@@ -35,9 +40,9 @@
35
40
  </div>
36
41
  </template>
37
42
  <script>
38
- import { mapState } from "vuex";
43
+ import { mapState, mapGetters } from "vuex";
39
44
  import EditSidebar from "./EditSidebar";
40
- import SplitOverview from "./SplitOverview";
45
+ import RenameAndCategorize from "./RenameAndCategorize";
41
46
  import EditPages from "./EditPages";
42
47
  import SplitInfoBar from "./SplitInfoBar";
43
48
  import EditConfirmationModal from "./EditConfirmationModal";
@@ -49,7 +54,7 @@ export default {
49
54
  name: "DocumentEdit",
50
55
  components: {
51
56
  EditSidebar,
52
- SplitOverview,
57
+ RenameAndCategorize,
53
58
  EditPages,
54
59
  SplitInfoBar,
55
60
  EditConfirmationModal,
@@ -69,28 +74,26 @@ export default {
69
74
  "recalculatingAnnotations",
70
75
  "selectedDocument",
71
76
  "splittingSuggestions",
77
+ "pages",
72
78
  ]),
73
79
  ...mapState("display", ["currentPage"]),
74
80
  ...mapState("edit", [
75
81
  "editMode",
76
82
  "pagesForPostprocess",
77
83
  "updatedDocument",
78
- "splitOverview",
84
+ "renameAndCategorize",
79
85
  "selectedPages",
86
+ "submitEditChanges",
80
87
  ]),
88
+ ...mapGetters("edit", ["documentShouldBePostprocessed"]),
81
89
  },
82
90
  watch: {
83
- pages() {
84
- if (!this.selectedDocument) return;
85
-
86
- this.setPages();
87
- },
88
- splitOverview(newValue) {
91
+ renameAndCategorize(newValue) {
89
92
  if (newValue) {
90
93
  this.splitFileNameFromExtension();
91
94
  }
92
95
  },
93
- pagesForPostprocess(newValue) {
96
+ pagesForPostprocess(newValue, oldValue) {
94
97
  if (newValue) {
95
98
  this.saveUpdatedDocuments();
96
99
  }
@@ -104,6 +107,11 @@ export default {
104
107
  this.splitSuggestionsEnabled = false;
105
108
  }
106
109
  },
110
+ submitEditChanges(newValue) {
111
+ if (!newValue) return;
112
+
113
+ this.saveEditChanges();
114
+ },
107
115
  },
108
116
  mounted() {
109
117
  this.setPages();
@@ -367,24 +375,71 @@ export default {
367
375
  /** SUBMIT CHANGES */
368
376
  // Send update request to the backend
369
377
  saveEditChanges() {
370
- this.$store
371
- .dispatch("edit/editDocument", this.updatedDocument)
372
- .catch((error) => {
373
- this.$store.dispatch("document/createErrorMessage", {
374
- error,
375
- serverErrorMessage: this.$t("server_error"),
376
- defaultErrorMessage: this.$t("edit_error"),
378
+ // Verify if there was splitting, rotating and/or reordering
379
+ if (this.documentShouldBePostprocessed) {
380
+ this.$store
381
+ .dispatch("edit/editDocument", this.updatedDocument)
382
+ .catch((error) => {
383
+ this.$store.dispatch("document/createErrorMessage", {
384
+ error,
385
+ serverErrorMessage: this.$t("server_error"),
386
+ defaultErrorMessage: this.$t("edit_error"),
387
+ });
377
388
  });
378
- });
389
+ } else {
390
+ // Check if only the category changes:
391
+ const newCategory = this.updatedDocument[0].category;
392
+ const newName = this.updatedDocument[0].name;
393
+ let category = {};
394
+ let name = {};
395
+ let revisedCategory = {};
396
+
397
+ if (this.selectedDocument.category !== newCategory) {
398
+ Object.assign(category, {
399
+ category: newCategory,
400
+ });
401
+
402
+ this.$store.dispatch("document/startLoading");
403
+ }
404
+
405
+ if (!this.selectedDocument.category_is_revised && newCategory) {
406
+ Object.assign(revisedCategory, {
407
+ category_is_revised: true,
408
+ });
409
+ }
410
+
411
+ if (this.selectedDocument.data_file_name !== newName) {
412
+ Object.assign(name, { data_file_name: newName });
413
+ }
414
+
415
+ if (!category && !name) {
416
+ return;
417
+ }
418
+
419
+ const updatedValues = Object.assign(category, revisedCategory, name);
420
+
421
+ this.$store
422
+ .dispatch("document/updateDocument", updatedValues)
423
+ .catch((error) => {
424
+ this.$store.dispatch("document/endLoading");
425
+ this.$store.dispatch("document/createErrorMessage", {
426
+ error,
427
+ serverErrorMessage: this.$t("server_error"),
428
+ defaultErrorMessage: this.$t("edit_error"),
429
+ });
430
+ });
431
+ }
379
432
 
380
433
  this.closeEditMode();
381
434
  },
382
435
 
383
436
  closeEditMode() {
384
437
  this.$store.dispatch("edit/disableEditMode");
385
- this.$store.dispatch("edit/setSplitOverview", false);
438
+ this.$store.dispatch("edit/setRenameAndCategorize", false);
386
439
  this.$store.dispatch("edit/setUpdatedDocument", null);
387
440
  this.$store.dispatch("edit/setSelectedPages", null);
441
+ this.$store.dispatch("edit/setSubmitEditChanges", false);
442
+ this.$store.dispatch("edit/setShowEditConfirmationModal", false);
388
443
  this.$nextTick(() => {
389
444
  // reset to first page
390
445
  this.$store.dispatch("display/updateCurrentPage", 1);
@@ -1,5 +1,8 @@
1
1
  <template>
2
2
  <div class="edit-pages">
3
+ <div class="grid-header">
4
+ <span class="header-title">{{ $t("rotate_split_reorder") }}</span>
5
+ </div>
3
6
  <draggable
4
7
  v-model="editPages"
5
8
  class="document-grid"
@@ -109,8 +112,7 @@ export default {
109
112
  ...mapState("edit", [
110
113
  "editMode",
111
114
  "pagesForPostprocess",
112
- "splitOverview",
113
- "splitOverview",
115
+ "renameAndCategorize",
114
116
  ]),
115
117
  },
116
118
  watch: {
@@ -124,7 +126,7 @@ export default {
124
126
  this.$store.dispatch("edit/setPagesForPostprocess", newValue);
125
127
  }
126
128
  },
127
- splitOverview(newValue) {
129
+ renameAndCategorize(newValue) {
128
130
  if (newValue) {
129
131
  this.editPages = this.pagesForPostprocess;
130
132
  }
@@ -1,19 +1,19 @@
1
1
  <template>
2
- <div class="split-overview">
2
+ <div class="rename-and-categorize">
3
3
  <div class="back-section" @click="handleBackButton">
4
4
  <div class="back-btn-section">
5
5
  <b-icon
6
6
  icon="arrow-left"
7
7
  class="is-small arrow"
8
- :style="{ color: '#858C9A', cursor: 'pointer' }"
8
+ :style="{ color: '#1a1a1a', cursor: 'pointer' }"
9
9
  />
10
10
  </div>
11
11
  <div class="back-text">
12
- {{ $t("back_to_edit") }}
12
+ {{ $t("rotate_split_reorder") }}
13
13
  </div>
14
14
  </div>
15
- <div class="overview-title">
16
- {{ $t("split_document") }}
15
+ <div class="rename-and-categorize-title">
16
+ {{ $t("rename_and_categorize") }}
17
17
  </div>
18
18
  <div class="new-documents-container">
19
19
  <div
@@ -21,7 +21,7 @@
21
21
  :key="index"
22
22
  class="document-details"
23
23
  >
24
- <div class="overview-thumbnails">
24
+ <div class="rename-and-categorize-thumbnails">
25
25
  <div class="split-documents">
26
26
  <div
27
27
  class="image-container"
@@ -88,7 +88,7 @@ import ServerImage from "../../assets/images/ServerImage";
88
88
  import EyeIcon from "../../assets/images/EyeIcon";
89
89
 
90
90
  export default {
91
- name: "SplitOverview",
91
+ name: "RenameAndCategorize",
92
92
  components: {
93
93
  DocumentCategory,
94
94
  ServerImage,
@@ -114,9 +114,10 @@ export default {
114
114
  ...mapState("document", ["selectedDocument", "pages"]),
115
115
  ...mapState("edit", ["updatedDocument", "pagesForPostprocess"]),
116
116
  },
117
+
117
118
  methods: {
118
119
  handleBackButton() {
119
- this.$store.dispatch("edit/setSplitOverview", false);
120
+ this.$store.dispatch("edit/setRenameAndCategorize", false);
120
121
  },
121
122
  handlePaste(event) {
122
123
  // TODO: modify to only paste plain text
@@ -1,4 +1,4 @@
1
1
  export { default as DocumentEdit } from "./DocumentEdit";
2
2
  export { default as EditSidebar } from "./EditSidebar";
3
3
  export { default as EditPages } from "./EditPages";
4
- export { default as SplitOverview } from "./SplitOverview";
4
+ export { default as RenameAndCategorize } from "./RenameAndCategorize";
@@ -5,6 +5,7 @@
5
5
  v-model="selectedSet"
6
6
  aria-role="list"
7
7
  :class="[
8
+ 'annotation-dropdown',
8
9
  'no-padding-bottom',
9
10
  setsList.length === 0 ? 'no-padding-top' : '',
10
11
  ]"
@@ -69,7 +70,7 @@
69
70
  v-model="selectedLabel"
70
71
  aria-role="list"
71
72
  :disabled="!labels || labels.length === 0"
72
- class="label-dropdown"
73
+ class="label-dropdown annotation-dropdown"
73
74
  >
74
75
  <template #trigger>
75
76
  <b-button
@@ -2,24 +2,30 @@
2
2
  <div class="buttons">
3
3
  <div v-if="editMode" class="edit-mode-buttons">
4
4
  <b-button
5
- :label="$t('cancel')"
6
- class="button-cancel primary-button"
5
+ :label="$t('back_to_annotations')"
6
+ class="button-cancel primary-button edit-mode-btn"
7
7
  type="is-default"
8
- @click="closeEditMode"
9
- />
10
- <b-button
11
- :label="
12
- editMode &&
13
- updatedDocument &&
14
- updatedDocument.length > 1 &&
15
- !splitOverview
16
- ? $t('next')
17
- : $t('submit')
8
+ :disabled="
9
+ !documentHasCategory ||
10
+ waitingForSplittingConfirmation(selectedDocument)
18
11
  "
19
- type="is-primary"
20
- class="button-next primary-button"
21
- @click="handleButton"
12
+ @click="closeEditMode"
22
13
  />
14
+
15
+ <b-tooltip
16
+ :active="!enableSubmit"
17
+ position="is-bottom"
18
+ :label="$t('select_category')"
19
+ class="right-aligned no-right-margin"
20
+ >
21
+ <b-button
22
+ :label="editMode && !renameAndCategorize ? $t('next') : $t('submit')"
23
+ type="is-primary"
24
+ class="button-next primary-button edit-mode-btn"
25
+ :disabled="renameAndCategorize && !enableSubmit"
26
+ @click="handleButton"
27
+ />
28
+ </b-tooltip>
23
29
  </div>
24
30
 
25
31
  <div
@@ -30,7 +36,7 @@
30
36
  :active="!isReviewButtonActive"
31
37
  position="is-bottom"
32
38
  multilined
33
- class="right-aligned finish-review"
39
+ class="right-aligned no-right-margin"
34
40
  >
35
41
  <b-button
36
42
  :class="['finish-review-btn', 'text-btn', 'primary-button']"
@@ -69,6 +75,7 @@ export default {
69
75
  return {
70
76
  emptyLabels: null,
71
77
  isLoading: false,
78
+ enableSubmit: false,
72
79
  };
73
80
  },
74
81
 
@@ -77,20 +84,50 @@ export default {
77
84
  "selectedDocument",
78
85
  "publicView",
79
86
  "annotationSets",
87
+ "thumbnailIsLoaded",
80
88
  ]),
81
- ...mapState("edit", ["editMode", "splitOverview", "updatedDocument"]),
89
+ ...mapState("edit", ["editMode", "renameAndCategorize", "updatedDocument"]),
82
90
  ...mapGetters("document", [
83
91
  "isDocumentReadyToFinishReview",
84
92
  "isDocumentReviewed",
93
+ "waitingForSplittingConfirmation",
85
94
  ]),
95
+ ...mapGetters("edit", ["documentShouldBePostprocessed"]),
86
96
  isReviewButtonActive() {
87
97
  return this.isDocumentReadyToFinishReview;
88
98
  },
99
+ documentHasCategory() {
100
+ return this.selectedDocument.category;
101
+ },
89
102
  },
103
+
104
+ watch: {
105
+ updatedDocument(newValue) {
106
+ if (!newValue) return;
107
+
108
+ this.submitValidation(newValue);
109
+ },
110
+ },
111
+
112
+ mounted() {
113
+ if (this.updatedDocument) {
114
+ this.submitValidation(this.updatedDocument);
115
+ }
116
+ },
117
+
90
118
  methods: {
119
+ submitValidation(document) {
120
+ const found = document.find((item) => !item.category);
121
+
122
+ if (!found) {
123
+ this.enableSubmit = true;
124
+ } else {
125
+ this.enableSubmit = false;
126
+ }
127
+ },
91
128
  closeEditMode() {
92
129
  this.$store.dispatch("edit/disableEditMode");
93
- this.$store.dispatch("edit/setSplitOverview", false);
130
+ this.$store.dispatch("edit/setRenameAndCategorize", false);
94
131
  this.$store.dispatch("edit/setUpdatedDocument", null);
95
132
  this.$store.dispatch("edit/setSelectedPages", null);
96
133
  this.$nextTick(() => {
@@ -99,21 +136,20 @@ export default {
99
136
  });
100
137
  },
101
138
  handleButton() {
102
- // Check if we are not in the split overview
139
+ // Check if we are not in the Rename and Categorize view
103
140
  // and if we have a split document
104
- if (
105
- !this.splitOverview &&
106
- this.updatedDocument &&
107
- this.updatedDocument.length > 1
108
- ) {
109
- // Enable the "next" button to go to the overview
110
- this.$store.dispatch("edit/setSplitOverview", true);
141
+ if (!this.renameAndCategorize) {
142
+ // Enable the "next" button
143
+ this.$store.dispatch("edit/setRenameAndCategorize", true);
111
144
  this.$store.dispatch("edit/setSelectedPages", null);
112
- } else {
113
- // If we are in the overview (so more than 1 doc)
114
- // or in the edit mode (only 1 doc)
115
- // Show confirmation modal to user
145
+ } else if (
146
+ this.selectedDocument.category_is_revised &&
147
+ this.documentShouldBePostprocessed
148
+ ) {
149
+ // Show confirmation modal to user if the document was split, reordered or rotated
116
150
  this.$store.dispatch("edit/setShowEditConfirmationModal", true);
151
+ } else {
152
+ this.$store.dispatch("edit/setSubmitEditChanges", true);
117
153
  }
118
154
  },
119
155
  handleFinishReview() {
@@ -57,17 +57,17 @@
57
57
  "reorder": "Sortieren",
58
58
  "rotate": "Rotieren",
59
59
  "edit_error": "Die Änderungen konnten nicht gespeichert werden. Bitte versuchen Sie es später erneut.",
60
- "overview": "Übersicht",
61
60
  "select_pages": "Sie können nun Seiten drehen, neu sortieren und Dokumente splitten.",
62
61
  "edit_document": "Dokument bearbeiten (Early Access)",
63
62
  "edit_early_access": "Sie sind einer der Nutzer, die Zugang zu diesen Funktionalitäten vor dem offiziellen Erscheinungstermin erhalten.",
64
63
  "selected": "ausgewählt",
65
64
  "rotate_selected": "Ausgewählte Seite drehen",
66
65
  "edit_not_available": "Dokumente mit dem Status 'Vorbereitung', 'Training' oder 'Test' sowie Dokumente mit dem Status 'Geprüft' können nicht bearbeitet werden.",
67
- "back_to_edit": "Zurück zum Bearbeiten Modus",
68
- "split_document": "Dokument aufteilen",
66
+ "rotate_split_reorder": "Rotieren, teilen oder sortieren",
67
+ "rename_and_categorize": "Umbenennen und kategorisieren",
69
68
  "submit": "Senden",
70
- "next": "Weiter",
69
+ "next": "Nächster Schritt: Umbenennen und kategorisieren",
70
+ "back_to_annotations": "Züruck zur Hauptansicht",
71
71
  "select_label": "Label auswählen",
72
72
  "select_annotation_set": "Wähle Annotation Set",
73
73
  "accept": "Akzeptieren",
@@ -83,7 +83,7 @@
83
83
  "categorized_as": "Dieses Dokument ist kategorisiert als",
84
84
  "not_categorized": "Nicht kategorisiert. Bitte wählen Sie vor dem Annotieren eine Kategorie aus: ",
85
85
  "choose_category": "Wählen Sie bitte eine Kategorie",
86
- "select_category": "Wählen Sie bitte die richtige Kategorie aus.",
86
+ "select_category": "Wählen Sie bitte die richtige Kategorie aus",
87
87
  "categorized_error": "Wenn dies nicht die richtige Kategorie ist, ändern Sie diese bitte und wir fahren mit der erneuten Extraktion fort.",
88
88
  "categorize_document_no_category_description": "Bitten Sie den Projektmanager, eine Beschreibung dieser Kategorie hinzuzufügen, um mehr über diese Kategorie zu erfahren.",
89
89
  "annotations_pending": "Ausstehende Annotationen",
@@ -46,7 +46,8 @@
46
46
  "rotate_all": "Rotate all",
47
47
  "cancel": "Cancel",
48
48
  "apply": "Apply",
49
- "next": "Next",
49
+ "next": "Next: Rename and Categorize",
50
+ "back_to_annotations": "Back to annotation view",
50
51
  "submit": "Submit",
51
52
  "data_being_extracted": "New data is being extracted",
52
53
  "analysing_document": "We are analysing your document.",
@@ -60,15 +61,14 @@
60
61
  "reorder": "Reorder",
61
62
  "rotate": "Rotate",
62
63
  "edit_error": "The changes couldn’t be saved, please try again later.",
63
- "overview": "Overview",
64
64
  "select_pages": "You can now rotate pages, reorder and split documents.",
65
65
  "edit_document": "Edit document (Early Access)",
66
66
  "edit_early_access": "You are one of the users who have access to these functionalities before the release date.",
67
67
  "selected": "selected",
68
68
  "rotate_selected": "Rotate selected",
69
69
  "edit_not_available": "Editing is not possible for documents with a status of 'Preparation', 'Training' or 'Test', or documents that are 'Reviewed'",
70
- "back_to_edit": "Back to edit",
71
- "split_document": "Split document",
70
+ "rotate_split_reorder": "Rotate, split or reorder",
71
+ "rename_and_categorize": "Rename and Categorize",
72
72
  "select_label": "Select Label",
73
73
  "select_annotation_set": "Select Annotation Set",
74
74
  "document_error_title": "Document error",
@@ -83,7 +83,7 @@
83
83
  "categorized_as": "This document is currently categorized as",
84
84
  "not_categorized": "This document is currently not categorized. Please select a category before annotating: ",
85
85
  "choose_category": "Choose a category",
86
- "select_category": "Select the correct category.",
86
+ "select_category": "Select the correct category",
87
87
  "categorized_error": "If this is not the correct category, please change it and we'll proceed with the re-extraction.",
88
88
  "categorize_document_no_category_description": "Ask the Project Manager to add a description of this Category to know more about this category.",
89
89
  "annotations_pending": "pending",
@@ -46,7 +46,8 @@
46
46
  "rotate_all": "Rotar todas",
47
47
  "cancel": "Cancelar",
48
48
  "apply": "Aplicar",
49
- "next": "Siguiente",
49
+ "next": "Siguiente: Cambiar nombre y categoría",
50
+ "back_to_annotations": "Volver a la vista de anotaciones",
50
51
  "submit": "Enviar",
51
52
  "data_being_extracted": "Se están extrayendo nuevos datos",
52
53
  "analysing_document": "Estamos analizando el documento.",
@@ -60,15 +61,14 @@
60
61
  "reorder": "Reordenar",
61
62
  "rotate": "Rotar",
62
63
  "edit_error": "No se han podido guardar los cambios, por favor, inténtelo de nuevo más tarde.",
63
- "overview": "Vista general",
64
- "select_pages": "Ahora puedes rotar, reordenar o dividir los documentos.",
64
+ "select_pages": "Ahora puede rotar, reordenar o dividir los documentos.",
65
65
  "edit_document": "Editar documento (Early Access)",
66
66
  "edit_early_access": "Eres uno de los usuarios que tiene acceso a estas funcionalidades antes de la fecha de lanzamiento.",
67
67
  "selected": "seleccionadas",
68
68
  "rotate_selected": "Rotar seleccionadas",
69
69
  "edit_not_available": "No es posible editar documentos con estado en 'Preparación', 'Entrenamiento' o 'Pruebas', así como documentos que han sido 'Revisados'",
70
- "back_to_edit": "Volver a editar",
71
- "split_document": "Dividir documento",
70
+ "rotate_split_reorder": "Rotar, dividir or reordenar",
71
+ "rename_and_categorize": "Cambiar nombre y categoría",
72
72
  "select_label": "Seleccionar etiqueta",
73
73
  "select_annotation_set": "Seleccionar grupo de etiquetas",
74
74
  "document_error_title": "Error en el documento",
@@ -83,12 +83,12 @@
83
83
  "categorized_as": "Este documento ha sido categorizado como",
84
84
  "not_categorized": "Este documento no ha sido categorizado. Por favor, seleccione una categoría antes de realizar anotaciones: ",
85
85
  "choose_category": "Seleccione una categoría",
86
- "select_category": "Seleccione la categoría correcta.",
86
+ "select_category": "Seleccione la categoría correcta",
87
87
  "categorized_error": "Si esta no es la categoría correcta, por favor cámbiela y procederemos a realizar de nuevo la extracción.",
88
88
  "categorize_document_no_category_description": "Solicite a su Gestor de Proyecto que agregue una descripción a esta Categoría para saber más sobre ella.",
89
89
  "annotations_pending": "pendientes",
90
90
  "annotations_accepted": "aceptadas",
91
- "mark_all_missing": "Marcas todas las anotaciones vacías como Faltantes",
91
+ "mark_all_missing": "Marcar todas las anotaciones vacías como Faltantes",
92
92
  "no_labels_to_choose": "Sin etiquetas",
93
93
  "accept_group": "Aceptar todas",
94
94
  "use_your_keyboard": "Use su teclado",
@@ -108,28 +108,28 @@
108
108
  "drag_drop_columns_multi_ann": "Arrastre y suelte las columnas para ordenar las etiquetas",
109
109
  "error_creating_multi_ann": "No todos los grupos de anotaciones fueron creados de manera exitosa.",
110
110
  "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.",
111
- "no_multi_ann_labelset_model": "En este documento no hay grupos de etiquetas múltiples disponibles. Para más información, haz clic en <a href='https://help.konfuzio.com/tutorials/advanced-document-extraction/index.html#multiple-annotation-sets' target='_blank'>este enlace</a>.",
111
+ "no_multi_ann_labelset_model": "En este documento no hay grupos de etiquetas múltiples disponibles. 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>.",
112
112
  "single_category_in_project": "Este proyecto solo tiene una categoría. Para poder modificarla, es necesario agregar esta nueva categoría al proyecto. Para más información, visita <a href='https://help.konfuzio.com/modules/categories/index.html#add-a-category' target='_blank'>este enlace</a>.",
113
- "approved_annotations": "No es posible cambiar la categoría, ya que existen anotaciones aceptadas o creadas manualmente en este documento.",
113
+ "approved_annotations": "No es posible cambiar la categoría ya que existen anotaciones aceptadas o creadas manualmente en este documento.",
114
114
  "restore": "Restaurar",
115
115
  "split_modal_title": "Dividir el documento",
116
- "split_modal_body": "Hemos escaneado tu documento y hemos encontrado <strong>{number_of_split_documents}</strong> documentos diferentes. <strong>Te recomendamos</strong> dividir el documento en esta etapa, ya que de lo contrario se perderá el progreso logrado debido a una nueva extracción de los datos del documento.",
116
+ "split_modal_body": "Hemos escaneado su documento y hemos encontrado <strong>{number_of_split_documents}</strong> documentos diferentes. <strong>Le recomendamos</strong> dividir el documento en esta etapa, ya que de lo contrario se perderá el progreso logrado debido a una nueva extracción de los datos del documento.",
117
117
  "do_it_later": "Lo haré luego",
118
118
  "review_now": "Revisar ahora",
119
119
  "recommended": "Recomendado",
120
120
  "smart_split": "División Inteligente",
121
121
  "smart_split_suggestions": "Nuestras sugerencias de División Inteligente están marcadas en color verde",
122
122
  "no_splitting_suggestions": "Este documento no tiene sugerencias de división",
123
- "confirm_splitting": "¿Seguro que quieres confirmar los cambios?",
124
- "splitting_warning": "Ten en cuenta que se perderán las anotaciones que hayas confirmado en el documento.",
123
+ "confirm_splitting": "¿Seguro que quiere confirmar los cambios?",
124
+ "splitting_warning": "Tenga en cuenta que se perderán las anotaciones que haya confirmado en el documento.",
125
125
  "no": "No",
126
126
  "yes": "Sí",
127
- "split_modal_no_suggestions": "¿Necesitas dividir el documento? <strong>Te recomendamos</strong> hacerlo en este momento, o de lo contrario se perderán los cambios realizados.",
127
+ "split_modal_no_suggestions": "¿Necesita dividir el documento? <strong>Te recomendamos</strong> hacerlo en este momento, o de lo contrario se perderán los cambios realizados.",
128
128
  "missing_from_document": "Falta en el documento",
129
- "edit_label": "Edit label",
130
- "delete_label": "Delete label",
131
- "table": "Table",
132
- "new_multi_ann_description": "Selecciona un modelo de datos de los existentes, luego deselecciona las etiquetas que no existen en este documento.",
129
+ "edit_label": "Editar etiqueta",
130
+ "delete_label": "Eliminar etiqueta",
131
+ "table": "Tabla",
132
+ "new_multi_ann_description": "Seleccione un modelo de datos de los existentes, luego deseleccione las etiquetas que no existen en este documento.",
133
133
  "new_multi_ann_title": "Crear múltiples anotaciones",
134
- "prepare_document": "Prepara el documento"
134
+ "prepare_document": "Prepare el documento"
135
135
  }
package/src/main.js CHANGED
@@ -1,10 +1,7 @@
1
1
  import Vue from "vue";
2
2
  import Buefy from "buefy";
3
- import "buefy/dist/buefy.css";
4
3
  import VueKonva from "vue-konva";
5
4
  import App from "./components/App";
6
- import * as Sentry from "@sentry/vue";
7
- import { Integrations } from "@sentry/tracing";
8
5
  import i18n from "./i18n";
9
6
  import store from "./store";
10
7
  import { library } from "@fortawesome/fontawesome-svg-core";
@@ -59,27 +56,6 @@ Vue.use(Buefy, {
59
56
  });
60
57
  Vue.use(VueObserveVisibility);
61
58
 
62
- // Sentry config
63
- if (process.env.NODE_ENV != "development") {
64
- Sentry.init({
65
- Vue,
66
- dsn: process.env.VUE_APP_SENTRY_DSN,
67
- integrations: [new Integrations.BrowserTracing()],
68
- environment: process.env.VUE_APP_SENTRY_ENVIRONMENT,
69
-
70
- // We recommend adjusting this value in production, or using tracesSampler
71
- // for finer control
72
- tracesSampleRate: 1.0,
73
-
74
- // If false, errors won't show up in devtools
75
- logErrors: true,
76
-
77
- tracingOptions: {
78
- trackComponents: true,
79
- },
80
- });
81
- }
82
-
83
59
  /**
84
60
  * Main entrypoint for the App
85
61
  */