diff --git a/cista-front/index.html b/cista-front/index.html
index f59d182..0382407 100644
--- a/cista-front/index.html
+++ b/cista-front/index.html
@@ -1,13 +1,12 @@
-
-
-
-
- Vite Vasanko
-
-
-
-
-
+
+
+
+Vite Vasanko
+
+
+
+
+
diff --git a/cista-front/package-lock.json b/cista-front/package-lock.json
index 26a91f2..7847d4d 100644
--- a/cista-front/package-lock.json
+++ b/cista-front/package-lock.json
@@ -8,9 +8,7 @@
"name": "front",
"version": "0.0.0",
"dependencies": {
- "@ant-design/icons-vue": "^7.0.0",
"@vueuse/core": "^10.4.1",
- "ant-design-vue": "^4.0.3",
"axios": "^1.5.0",
"esbuild": "^0.19.5",
"locale-includes": "^1.0.5",
@@ -53,31 +51,6 @@
"node": ">=0.10.0"
}
},
- "node_modules/@ant-design/colors": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/@ant-design/colors/-/colors-6.0.0.tgz",
- "integrity": "sha512-qAZRvPzfdWHtfameEGP2Qvuf838NhergR35o+EuVyB5XvSA98xod5r4utvi4TJ3ywmevm290g9nsCG5MryrdWQ==",
- "dependencies": {
- "@ctrl/tinycolor": "^3.4.0"
- }
- },
- "node_modules/@ant-design/icons-svg": {
- "version": "4.3.1",
- "resolved": "https://registry.npmjs.org/@ant-design/icons-svg/-/icons-svg-4.3.1.tgz",
- "integrity": "sha512-4QBZg8ccyC6LPIRii7A0bZUk3+lEDCLnhB+FVsflGdcWPPmV+j3fire4AwwoqHV/BibgvBmR9ZIo4s867smv+g=="
- },
- "node_modules/@ant-design/icons-vue": {
- "version": "7.0.0",
- "resolved": "https://registry.npmjs.org/@ant-design/icons-vue/-/icons-vue-7.0.0.tgz",
- "integrity": "sha512-VEb0r/Jqo2qi9olfBephYlyxbmhQVZ5+tJ3Zw5VaBd5h0wV1zdjGt5mJxSbRRs2mnnOWpsa1s4PeoLwNnkLV/w==",
- "dependencies": {
- "@ant-design/colors": "^6.0.0",
- "@ant-design/icons-svg": "^4.2.1"
- },
- "peerDependencies": {
- "vue": ">=3.0.3"
- }
- },
"node_modules/@antfu/utils": {
"version": "0.7.6",
"resolved": "https://registry.npmjs.org/@antfu/utils/-/utils-0.7.6.tgz",
@@ -275,35 +248,6 @@
"node": ">=6.0.0"
}
},
- "node_modules/@babel/runtime": {
- "version": "7.22.15",
- "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.15.tgz",
- "integrity": "sha512-T0O+aa+4w0u06iNmapipJXMV4HoUir03hpx3/YqXXhu9xim3w+dVphjFWl1OH8NbZHw5Lbm9k45drDkgq2VNNA==",
- "dependencies": {
- "regenerator-runtime": "^0.14.0"
- },
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@ctrl/tinycolor": {
- "version": "3.6.1",
- "resolved": "https://registry.npmjs.org/@ctrl/tinycolor/-/tinycolor-3.6.1.tgz",
- "integrity": "sha512-SITSV6aIXsuVNV3f3O0f2n/cgyEDWoSqtZMYiAmcsYHydcKrOz3gUxB/iXd/Qf08+IZX4KpgNbvUdMBmWz+kcA==",
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/@emotion/hash": {
- "version": "0.9.1",
- "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.9.1.tgz",
- "integrity": "sha512-gJB6HLm5rYwSLI6PQa+X1t5CFGrv1J1TWG+sOyMCeKz2ojaj6Fnl/rZEspogG+cvqbt4AE/2eIyD2QfLKTBNlQ=="
- },
- "node_modules/@emotion/unitless": {
- "version": "0.8.1",
- "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.8.1.tgz",
- "integrity": "sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ=="
- },
"node_modules/@esbuild/android-arm": {
"version": "0.19.5",
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.5.tgz",
@@ -825,15 +769,6 @@
"integrity": "sha512-cEjvTPU32OM9lUFegJagO0mRnIn+rbqrG89vV8/xLnLFX0DoR0r1oy5IlTga71Q7uT3Qus7qm7wgeiMT/+Irlg==",
"dev": true
},
- "node_modules/@simonwep/pickr": {
- "version": "1.8.2",
- "resolved": "https://registry.npmjs.org/@simonwep/pickr/-/pickr-1.8.2.tgz",
- "integrity": "sha512-/l5w8BIkrpP6n1xsetx9MWPWlU6OblN5YgZZphxan0Tq4BByTCETL6lyIeY8lagalS2Nbt4F2W034KHLIiunKA==",
- "dependencies": {
- "core-js": "^3.15.1",
- "nanopop": "^2.1.0"
- }
- },
"node_modules/@sinclair/typebox": {
"version": "0.27.8",
"resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz",
@@ -1664,45 +1599,6 @@
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
}
},
- "node_modules/ant-design-vue": {
- "version": "4.0.3",
- "resolved": "https://registry.npmjs.org/ant-design-vue/-/ant-design-vue-4.0.3.tgz",
- "integrity": "sha512-fbgZbbirLx7rc19ytaGxApwS01CKLRzvEZmH0TVF06niQA9ekx7xkvfQGlmiSaCs4b8nWZi4Bo7gUzRNRt5YJA==",
- "dependencies": {
- "@ant-design/colors": "^6.0.0",
- "@ant-design/icons-vue": "^7.0.0",
- "@babel/runtime": "^7.10.5",
- "@ctrl/tinycolor": "^3.5.0",
- "@emotion/hash": "^0.9.0",
- "@emotion/unitless": "^0.8.0",
- "@simonwep/pickr": "~1.8.0",
- "array-tree-filter": "^2.1.0",
- "async-validator": "^4.0.0",
- "csstype": "^3.1.1",
- "dayjs": "^1.10.5",
- "dom-align": "^1.12.1",
- "dom-scroll-into-view": "^2.0.0",
- "lodash": "^4.17.21",
- "lodash-es": "^4.17.15",
- "resize-observer-polyfill": "^1.5.1",
- "scroll-into-view-if-needed": "^2.2.25",
- "shallow-equal": "^1.0.0",
- "stylis": "^4.1.3",
- "throttle-debounce": "^5.0.0",
- "vue-types": "^3.0.0",
- "warning": "^4.0.0"
- },
- "engines": {
- "node": ">=12.22.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/ant-design-vue"
- },
- "peerDependencies": {
- "vue": ">=3.2.0"
- }
- },
"node_modules/anymatch": {
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
@@ -1721,11 +1617,6 @@
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
"dev": true
},
- "node_modules/array-tree-filter": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/array-tree-filter/-/array-tree-filter-2.1.0.tgz",
- "integrity": "sha512-4ROwICNlNw/Hqa9v+rk5h22KjmzB1JGTMVKP2AKJBOCgb0yL0ASf0+YvCcLNNwquOHNX48jkeZIJ3a+oOQqKcw=="
- },
"node_modules/array-union": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz",
@@ -1744,11 +1635,6 @@
"node": "*"
}
},
- "node_modules/async-validator": {
- "version": "4.2.5",
- "resolved": "https://registry.npmjs.org/async-validator/-/async-validator-4.2.5.tgz",
- "integrity": "sha512-7HhHjtERjqlNbZtqNqy2rckN/SpOOlmDliet+lP7k+eKZEjPk3DgyeU9lIXLdeLz0uBbbVp+9Qdow9wJWgwwfg=="
- },
"node_modules/asynckit": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
@@ -1976,11 +1862,6 @@
"node": ">=14"
}
},
- "node_modules/compute-scroll-into-view": {
- "version": "1.0.20",
- "resolved": "https://registry.npmjs.org/compute-scroll-into-view/-/compute-scroll-into-view-1.0.20.tgz",
- "integrity": "sha512-UCB0ioiyj8CRjtrvaceBLqqhZCVP+1B8+NWQhmdsm0VXOJtobBCf1dBQmebCCo34qZmUwZfIH2MZLqNHazrfjg=="
- },
"node_modules/concat-map": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
@@ -2005,16 +1886,6 @@
"node": ">=0.8"
}
},
- "node_modules/core-js": {
- "version": "3.32.2",
- "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.32.2.tgz",
- "integrity": "sha512-pxXSw1mYZPDGvTQqEc5vgIb83jGQKFGYWY76z4a7weZXUolw3G+OvpZqSRcfYOoOVUQJYEPsWeQK8pKEnUtWxQ==",
- "hasInstallScript": true,
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/core-js"
- }
- },
"node_modules/cross-spawn": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
@@ -2072,11 +1943,6 @@
"node": ">=14"
}
},
- "node_modules/dayjs": {
- "version": "1.11.10",
- "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.10.tgz",
- "integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ=="
- },
"node_modules/de-indent": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz",
@@ -2210,16 +2076,6 @@
"node": ">=6.0.0"
}
},
- "node_modules/dom-align": {
- "version": "1.12.4",
- "resolved": "https://registry.npmjs.org/dom-align/-/dom-align-1.12.4.tgz",
- "integrity": "sha512-R8LUSEay/68zE5c8/3BDxiTEvgb4xZTF0RKmAHfiEVN3klfIpXfi2/QCoiWPccVQ0J/ZGdz9OjzL4uJEP/MRAw=="
- },
- "node_modules/dom-scroll-into-view": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/dom-scroll-into-view/-/dom-scroll-into-view-2.0.1.tgz",
- "integrity": "sha512-bvVTQe1lfaUr1oFzZX80ce9KLDlZ3iU+XGNE/bz9HnGdklTieqsbmsLHe+rT2XWqopvL0PckkYqN7ksmm5pe3w=="
- },
"node_modules/domexception": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/domexception/-/domexception-4.0.0.tgz",
@@ -3115,14 +2971,6 @@
"node": ">=8"
}
},
- "node_modules/is-plain-object": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-3.0.1.tgz",
- "integrity": "sha512-Xnpx182SBMrr/aBik8y+GuR4U1L9FqMSojwDQwPMmxyC6bvEqly9UBCxhauBF5vNh2gwWJNX6oDV7O+OM4z34g==",
- "engines": {
- "node": ">=0.10.0"
- }
- },
"node_modules/is-potential-custom-element-name": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz",
@@ -3197,7 +3045,8 @@
"node_modules/js-tokens": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
- "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
+ "dev": true
},
"node_modules/js-yaml": {
"version": "4.1.0",
@@ -3364,17 +3213,6 @@
"integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
"dev": true
},
- "node_modules/loose-envify": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
- "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
- "dependencies": {
- "js-tokens": "^3.0.0 || ^4.0.0"
- },
- "bin": {
- "loose-envify": "cli.js"
- }
- },
"node_modules/loupe": {
"version": "2.3.6",
"resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.6.tgz",
@@ -3522,11 +3360,6 @@
"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
}
},
- "node_modules/nanopop": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/nanopop/-/nanopop-2.3.0.tgz",
- "integrity": "sha512-fzN+T2K7/Ah25XU02MJkPZ5q4Tj5FpjmIYq4rvoHX4yb16HzFdCO6JxFFn5Y/oBhQ8no8fUZavnyIv9/+xkBBw=="
- },
"node_modules/natural-compare": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
@@ -4165,22 +3998,12 @@
"node": ">=8.10.0"
}
},
- "node_modules/regenerator-runtime": {
- "version": "0.14.0",
- "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz",
- "integrity": "sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA=="
- },
"node_modules/requires-port": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz",
"integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==",
"dev": true
},
- "node_modules/resize-observer-polyfill": {
- "version": "1.5.1",
- "resolved": "https://registry.npmjs.org/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz",
- "integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg=="
- },
"node_modules/resolve": {
"version": "1.22.6",
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.6.tgz",
@@ -4415,14 +4238,6 @@
"node": ">=v12.22.7"
}
},
- "node_modules/scroll-into-view-if-needed": {
- "version": "2.2.31",
- "resolved": "https://registry.npmjs.org/scroll-into-view-if-needed/-/scroll-into-view-if-needed-2.2.31.tgz",
- "integrity": "sha512-dGCXy99wZQivjmjIqihaBQNjryrz5rueJY7eHfTdyWEiR4ttYpsajb14rn9s5d4DY4EcY6+4+U/maARBXJedkA==",
- "dependencies": {
- "compute-scroll-into-view": "^1.0.20"
- }
- },
"node_modules/semver": {
"version": "7.5.4",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz",
@@ -4450,11 +4265,6 @@
"node": ">=10"
}
},
- "node_modules/shallow-equal": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/shallow-equal/-/shallow-equal-1.2.1.tgz",
- "integrity": "sha512-S4vJDjHHMBaiZuT9NPb616CSmLf618jawtv3sufLl6ivK8WocjAo58cXwbRV1cgqxH0Qbv+iUt6m05eqEa2IRA=="
- },
"node_modules/shebang-command": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
@@ -4606,11 +4416,6 @@
"url": "https://github.com/sponsors/antfu"
}
},
- "node_modules/stylis": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.3.0.tgz",
- "integrity": "sha512-E87pIogpwUsUwXw7dNyU4QDjdgVMy52m+XEOPEKUn161cCzWjjhPSQhByfd1CcNvrOLnXQ6OnnZDwnJrz/Z4YQ=="
- },
"node_modules/supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
@@ -4662,14 +4467,6 @@
"integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==",
"dev": true
},
- "node_modules/throttle-debounce": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/throttle-debounce/-/throttle-debounce-5.0.0.tgz",
- "integrity": "sha512-2iQTSgkkc1Zyk0MeVrt/3BvuOXYPl/R8Z0U2xxo9rjwNciaHDG3R+Lm6dh4EeUci49DanvBnuqI6jshoQQRGEg==",
- "engines": {
- "node": ">=12.22"
- }
- },
"node_modules/tinybench": {
"version": "2.5.1",
"resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.5.1.tgz",
@@ -5553,20 +5350,6 @@
"typescript": "*"
}
},
- "node_modules/vue-types": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/vue-types/-/vue-types-3.0.2.tgz",
- "integrity": "sha512-IwUC0Aq2zwaXqy74h4WCvFCUtoV0iSWr0snWnE9TnU18S66GAQyqQbRf2qfJtUuiFsBf6qp0MEwdonlwznlcrw==",
- "dependencies": {
- "is-plain-object": "3.0.1"
- },
- "engines": {
- "node": ">=10.15.0"
- },
- "peerDependencies": {
- "vue": "^3.0.0"
- }
- },
"node_modules/w3c-xmlserializer": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-4.0.0.tgz",
@@ -5579,14 +5362,6 @@
"node": ">=14"
}
},
- "node_modules/warning": {
- "version": "4.0.3",
- "resolved": "https://registry.npmjs.org/warning/-/warning-4.0.3.tgz",
- "integrity": "sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==",
- "dependencies": {
- "loose-envify": "^1.0.0"
- }
- },
"node_modules/webidl-conversions": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz",
diff --git a/cista-front/package.json b/cista-front/package.json
index 47b5814..559ed0a 100644
--- a/cista-front/package.json
+++ b/cista-front/package.json
@@ -13,10 +13,7 @@
"format": "prettier --write src/"
},
"dependencies": {
- "@ant-design/icons-vue": "^7.0.0",
"@vueuse/core": "^10.4.1",
- "ant-design-vue": "^4.0.3",
- "axios": "^1.5.0",
"esbuild": "^0.19.5",
"locale-includes": "^1.0.5",
"lodash": "^4.17.21",
diff --git a/cista-front/src/assets/main.css b/cista-front/src/assets/main.css
index f81f75f..ffdedeb 100644
--- a/cista-front/src/assets/main.css
+++ b/cista-front/src/assets/main.css
@@ -22,6 +22,12 @@
}
body {
background-color: var(--table-background);
+ font-family: 'Montserrat', sans-serif;
+}
+table {
+ border-collapse: collapse;
+ border: 0;
+ gap: 0;
}
.ant-breadcrumb-separator, .ant-breadcrumb-link, .ant-breadcrumb .anticon {
color: var(--primary-color) !important;
@@ -41,7 +47,7 @@ body {
.ant-table-cell:hover{
background-color: initial !important;
}
-.ant-table-wrapper .ant-table-tbody >tr.ant-table-row-selected >td,
+.ant-table-wrapper .ant-table-tbody >tr.ant-table-row-selected >td,
.ant-table-wrapper .ant-table-tbody >tr.ant-table-row-selected:hover>td {
background-color: transparent;
}
@@ -53,7 +59,7 @@ body {
.ant-input-group >.ant-input-group-addon:last-child .ant-input-search-button:not(.ant-btn-primary):hover{
color : var(--blue-color) !important
}
- .ant-input-search .ant-input:hover,
+ .ant-input-search .ant-input:hover,
.ant-input-search .ant-input:focus {
border-color: var(--blue-color);
}
@@ -89,12 +95,12 @@ body {
.ant-table-cell>button>.anticon {
color: var(--primary-color);
}
- .ant-notification-close-x{
+ .ant-notification-close-x{
color: var(--secondary-background);
}
.ant-empty-description{
color: var(--primary-color);
- }
+ }
.ant-modal .ant-modal-content{
background-color: var(--secondary-background);
}
@@ -102,4 +108,3 @@ body {
color: var(--font-color);
}
}
-
\ No newline at end of file
diff --git a/cista-front/src/components/AppNavigation.vue b/cista-front/src/components/AppNavigation.vue
index 9e9ed42..6e6b413 100644
--- a/cista-front/src/components/AppNavigation.vue
+++ b/cista-front/src/components/AppNavigation.vue
@@ -1,5 +1,4 @@
-
+
-
\ No newline at end of file
diff --git a/cista-front/src/components/NotificationLoading.vue b/cista-front/src/components/NotificationLoading.vue
index b8e0eb0..3a21c08 100644
--- a/cista-front/src/components/NotificationLoading.vue
+++ b/cista-front/src/components/NotificationLoading.vue
@@ -8,15 +8,14 @@
-
+import { useDocumentStore } from '@/stores/documents'
+const documentStore = useDocumentStore()
+
+function dismissUpload(key: number){
+ documentStore.deleteUploadingDocument(key)
+}
+
+
\ No newline at end of file
+
diff --git a/cista-front/src/components/UploadButton.vue b/cista-front/src/components/UploadButton.vue
index 1802349..62600f2 100644
--- a/cista-front/src/components/UploadButton.vue
+++ b/cista-front/src/components/UploadButton.vue
@@ -1,27 +1,22 @@
+
\ No newline at end of file
+
diff --git a/cista-front/src/main.ts b/cista-front/src/main.ts
index c3b46d6..e723b4c 100644
--- a/cista-front/src/main.ts
+++ b/cista-front/src/main.ts
@@ -1,9 +1,7 @@
-import 'ant-design-vue/dist/reset.css';
import './assets/main.css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
-import Antd from 'ant-design-vue';
import App from './App.vue'
import router from './router'
@@ -15,7 +13,6 @@ app.config.errorHandler = (err) => {
}
app.use(createPinia())
-app.use(Antd);
app.use(router)
-app.mount('#app')
\ No newline at end of file
+app.mount('#app')
diff --git a/cista-front/src/repositories/Client.ts b/cista-front/src/repositories/Client.ts
index 610b715..a0d37f6 100644
--- a/cista-front/src/repositories/Client.ts
+++ b/cista-front/src/repositories/Client.ts
@@ -1,32 +1,21 @@
-import axios, {AxiosError} from 'axios'
-
/* Base domain for all request */
export const baseURL = import.meta.env.VITE_URL_DOCUMENT
-/* Config Client*/
-const Client = axios.create({
- baseURL: baseURL,
- headers: {
- Accept: 'application/json',
- },
-})
-
-Client.interceptors.response.use(
- (response) => {
- // Any status code that lie within the range of 2xx cause this function to trigger
- // Do something with response data
- return response
- },
- (error: AxiosError) => {
- const msg = error.response && error.response.data && error.response.data.error ?
- error.response.data.error.message : 'Unexpected error'
- const code = error.code ? Number(error.response?.status) : 500
- const standardizedError = new SimpleError(code, msg)
-
- return Promise.reject(standardizedError)
+class ClientClass {
+ async post(url: string, data?: Record): Promise {
+ const res = await fetch(`${baseURL}/`, {
+ method: "POST",
+ headers: {
+ accept: 'application/json',
+ "content-type": 'application/json',
+ },
+ body: data !== undefined ? JSON.stringify(data) : undefined,
+ })
+ return await res.json()
}
-)
+}
+export const Client = new ClientClass()
export interface ISimpleError extends Error {
code : number
}
diff --git a/cista/wwwroot/index.html b/cista/wwwroot/index.html
index e9a0627..9f49421 100644
--- a/cista/wwwroot/index.html
+++ b/cista/wwwroot/index.html
@@ -5,8 +5,8 @@
Vite Vasanko
-
-
+
+