@konfuzio/document-validation-ui 0.1.13-dev.0 → 0.1.13-dev.1
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/cypress.config.js +13 -0
- package/dist/js/app.js +1 -1
- package/dist/js/app.js.map +1 -1
- package/package.json +4 -1
- package/src/components/App.cy.js +7 -0
- package/src/icons.js +43 -0
- package/src/main.js +3 -43
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@konfuzio/document-validation-ui",
|
|
3
|
-
"version": "0.1.13-dev.
|
|
3
|
+
"version": "0.1.13-dev.1",
|
|
4
4
|
"repository": "git://github.com:konfuzio-ai/document-validation-ui.git",
|
|
5
5
|
"main": "dist/app.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"serve": "vue-cli-service serve",
|
|
8
8
|
"build": "vue-cli-service build --name DocumentValidationUi ./src/main.js",
|
|
9
9
|
"test:unit": "vue-cli-service test:unit",
|
|
10
|
+
"cypress:open": "cypress open",
|
|
10
11
|
"i18n:report": "vue-cli-service i18n:report --src \"./src/**/*.?(js|vue)\" --locales \"./src/locales/**/*.json\"",
|
|
11
12
|
"lint": "vue-cli-service lint",
|
|
12
13
|
"format": "prettier . --write",
|
|
@@ -52,6 +53,8 @@
|
|
|
52
53
|
"@vue/test-utils": "^1.1.3",
|
|
53
54
|
"@vue/vue2-jest": "^27.0.0",
|
|
54
55
|
"babel-jest": "^27.0.6",
|
|
56
|
+
"cypress": "^12.17.3",
|
|
57
|
+
"dotenv": "^16.3.1",
|
|
55
58
|
"eslint": "^8.30.0",
|
|
56
59
|
"eslint-config-prettier": "^8.6.0",
|
|
57
60
|
"eslint-plugin-vue": "^9.8.0",
|
package/src/icons.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// internal icons
|
|
2
|
+
import { library } from "@fortawesome/fontawesome-svg-core";
|
|
3
|
+
import {
|
|
4
|
+
faArrowUp,
|
|
5
|
+
faAngleRight,
|
|
6
|
+
faAngleLeft,
|
|
7
|
+
faAngleUp,
|
|
8
|
+
faAngleDown,
|
|
9
|
+
faSpinner,
|
|
10
|
+
faPlus,
|
|
11
|
+
faXmark,
|
|
12
|
+
faEllipsisVertical,
|
|
13
|
+
faCircleInfo,
|
|
14
|
+
faArrowRotateLeft,
|
|
15
|
+
faArrowRotateRight,
|
|
16
|
+
faScissors,
|
|
17
|
+
faRepeat,
|
|
18
|
+
faArrowLeft,
|
|
19
|
+
faArrowRight,
|
|
20
|
+
} from "@fortawesome/free-solid-svg-icons";
|
|
21
|
+
import { FontAwesomeIcon as Icons } from "@fortawesome/vue-fontawesome";
|
|
22
|
+
|
|
23
|
+
library.add(
|
|
24
|
+
faArrowUp,
|
|
25
|
+
faAngleRight,
|
|
26
|
+
faAngleLeft,
|
|
27
|
+
faAngleUp,
|
|
28
|
+
faAngleDown,
|
|
29
|
+
faSpinner,
|
|
30
|
+
faXmark,
|
|
31
|
+
faSpinner,
|
|
32
|
+
faPlus,
|
|
33
|
+
faEllipsisVertical,
|
|
34
|
+
faCircleInfo,
|
|
35
|
+
faArrowRotateLeft,
|
|
36
|
+
faArrowRotateRight,
|
|
37
|
+
faScissors,
|
|
38
|
+
faRepeat,
|
|
39
|
+
faArrowLeft,
|
|
40
|
+
faArrowRight
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
export default Icons;
|
package/src/main.js
CHANGED
|
@@ -1,53 +1,13 @@
|
|
|
1
|
+
import App from "./components/App";
|
|
1
2
|
import Vue from "vue";
|
|
2
3
|
import Buefy from "buefy";
|
|
3
4
|
import VueKonva from "vue-konva";
|
|
4
|
-
import App from "./components/App";
|
|
5
5
|
import i18n from "./i18n";
|
|
6
6
|
import store from "./store";
|
|
7
|
-
import { library } from "@fortawesome/fontawesome-svg-core";
|
|
8
7
|
import VueObserveVisibility from "vue-observe-visibility";
|
|
8
|
+
import Icons from "./icons";
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
import {
|
|
12
|
-
faArrowUp,
|
|
13
|
-
faAngleRight,
|
|
14
|
-
faAngleLeft,
|
|
15
|
-
faAngleUp,
|
|
16
|
-
faAngleDown,
|
|
17
|
-
faSpinner,
|
|
18
|
-
faPlus,
|
|
19
|
-
faXmark,
|
|
20
|
-
faEllipsisVertical,
|
|
21
|
-
faCircleInfo,
|
|
22
|
-
faArrowRotateLeft,
|
|
23
|
-
faArrowRotateRight,
|
|
24
|
-
faScissors,
|
|
25
|
-
faRepeat,
|
|
26
|
-
faArrowLeft,
|
|
27
|
-
faArrowRight,
|
|
28
|
-
} from "@fortawesome/free-solid-svg-icons";
|
|
29
|
-
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
|
|
30
|
-
|
|
31
|
-
library.add(
|
|
32
|
-
faArrowUp,
|
|
33
|
-
faAngleRight,
|
|
34
|
-
faAngleLeft,
|
|
35
|
-
faAngleUp,
|
|
36
|
-
faAngleDown,
|
|
37
|
-
faSpinner,
|
|
38
|
-
faXmark,
|
|
39
|
-
faSpinner,
|
|
40
|
-
faPlus,
|
|
41
|
-
faEllipsisVertical,
|
|
42
|
-
faCircleInfo,
|
|
43
|
-
faArrowRotateLeft,
|
|
44
|
-
faArrowRotateRight,
|
|
45
|
-
faScissors,
|
|
46
|
-
faRepeat,
|
|
47
|
-
faArrowLeft,
|
|
48
|
-
faArrowRight
|
|
49
|
-
);
|
|
50
|
-
Vue.component("VueFontawesome", FontAwesomeIcon);
|
|
10
|
+
Vue.component("VueFontawesome", Icons);
|
|
51
11
|
Vue.component("App", App);
|
|
52
12
|
Vue.use(VueKonva);
|
|
53
13
|
Vue.use(Buefy, {
|