@konfuzio/document-validation-ui 0.1.10-dev.8 → 0.1.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.
- 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/dist/js/chunk-vendors.js +1 -1
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/api.js +10 -0
- package/src/assets/scss/document_category.scss +1 -0
- package/src/assets/scss/document_edit.scss +2 -0
- package/src/assets/scss/document_name.scss +0 -2
- package/src/assets/scss/document_top_bar.scss +22 -0
- package/src/assets/scss/new_annotation.scss +17 -3
- package/src/assets/scss/theme.scss +779 -0
- package/src/assets/scss/variables.scss +0 -7
- package/src/components/App.vue +79 -10
- package/src/components/DocumentAnnotations/AnnotationContent.vue +33 -18
- package/src/components/DocumentAnnotations/AnnotationRow.vue +21 -60
- package/src/components/DocumentAnnotations/ChooseLabelSetModal.vue +3 -2
- package/src/components/DocumentAnnotations/EmptyAnnotation.vue +1 -5
- package/src/components/DocumentAnnotations/MultiAnnotationTableOverlay.vue +1 -1
- package/src/components/DocumentDashboard.vue +8 -0
- package/src/components/DocumentEdit/DocumentEdit.vue +20 -11
- package/src/components/DocumentEdit/EditConfirmationModal.vue +1 -0
- package/src/components/DocumentEdit/EditPageThumbnail.vue +1 -3
- package/src/components/DocumentEdit/EditSidebar.vue +8 -3
- package/src/components/DocumentPage/DocumentPage.vue +0 -18
- package/src/components/DocumentPage/DocumentToolbar.vue +1 -0
- package/src/components/DocumentPage/MultiAnnSelection.vue +4 -26
- package/src/components/DocumentPage/NewAnnotation.vue +6 -23
- package/src/components/DocumentTopBar/DocumentName.vue +3 -1
- package/src/components/DocumentTopBar/DocumentTopBar.vue +81 -2
- package/src/components/DocumentsList/DocumentsList.vue +1 -6
- package/src/locales/de.json +3 -2
- package/src/locales/en.json +2 -1
- package/src/locales/es.json +2 -1
- package/src/main.js +0 -24
- package/src/store/category.js +19 -35
- package/src/store/display.js +7 -0
- package/src/store/document.js +29 -5
- package/src/store/edit.js +27 -15
- package/src/store/project.js +31 -1
- package/src/utils/utils.js +18 -1
- package/dist/css/chunk-vendors.css +0 -5
- package/src/assets/scss/main.scss +0 -760
- package/src/components/DocumentPage/MultiAnnotationTablePopup.vue +0 -226
package/package.json
CHANGED
package/src/.DS_Store
ADDED
|
Binary file
|
package/src/api.js
CHANGED
|
@@ -21,6 +21,14 @@ const setAuthToken = (token) => {
|
|
|
21
21
|
authToken = token;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
+
const setApiUrl = (url) => {
|
|
25
|
+
HTTP.defaults.baseURL = url;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const setImageUrl = (url) => {
|
|
29
|
+
IMG_REQUEST.defaults.baseURL = url;
|
|
30
|
+
};
|
|
31
|
+
|
|
24
32
|
const getInterceptorConfig = (config) => {
|
|
25
33
|
if (authToken) {
|
|
26
34
|
config.headers["Authorization"] = `Token ${authToken}`;
|
|
@@ -54,6 +62,8 @@ const makeImageRequest = (imageURL) => {
|
|
|
54
62
|
|
|
55
63
|
export default {
|
|
56
64
|
HTTP,
|
|
65
|
+
setApiUrl,
|
|
66
|
+
setImageUrl,
|
|
57
67
|
makeImageRequest,
|
|
58
68
|
setAuthToken,
|
|
59
69
|
};
|
|
@@ -32,6 +32,28 @@
|
|
|
32
32
|
flex: 1;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
.center-bar-components {
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
gap: 38px;
|
|
39
|
+
|
|
40
|
+
&.single-component {
|
|
41
|
+
flex: 1;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.navigation-arrow {
|
|
47
|
+
&:hover {
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&.navigation-disabled {
|
|
52
|
+
display: none;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
35
57
|
.right-bar-components {
|
|
36
58
|
align-items: center;
|
|
37
59
|
justify-content: flex-end;
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
z-index: 40;
|
|
13
13
|
color: $white;
|
|
14
14
|
padding: 8px;
|
|
15
|
+
cursor: default;
|
|
15
16
|
|
|
16
17
|
.popup-input {
|
|
17
18
|
background-color: $text-color;
|
|
@@ -59,9 +60,16 @@
|
|
|
59
60
|
left: 0;
|
|
60
61
|
}
|
|
61
62
|
|
|
62
|
-
.annotation-
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
.annotation-dropdown {
|
|
64
|
+
border-radius: 12px;
|
|
65
|
+
border: 1px solid $grey-low-opacity !important;
|
|
66
|
+
|
|
67
|
+
.button.is-text {
|
|
68
|
+
box-shadow: none !important;
|
|
69
|
+
color: $white !important;
|
|
70
|
+
background-color: transparent !important;
|
|
71
|
+
text-decoration: none;
|
|
72
|
+
}
|
|
65
73
|
}
|
|
66
74
|
|
|
67
75
|
.annotation-buttons {
|
|
@@ -70,11 +78,17 @@
|
|
|
70
78
|
flex-direction: row;
|
|
71
79
|
gap: 2px;
|
|
72
80
|
|
|
81
|
+
.button.is-text {
|
|
82
|
+
color: $white !important;
|
|
83
|
+
text-decoration: none;
|
|
84
|
+
}
|
|
85
|
+
|
|
73
86
|
.cancel-button {
|
|
74
87
|
color: $white;
|
|
75
88
|
|
|
76
89
|
&:hover {
|
|
77
90
|
border: 1px solid $grey-low-opacity;
|
|
91
|
+
background: transparent;
|
|
78
92
|
}
|
|
79
93
|
}
|
|
80
94
|
|