diff --git a/app/frontend/package-lock.json b/app/frontend/package-lock.json index ed5230553..5b89bcac0 100644 --- a/app/frontend/package-lock.json +++ b/app/frontend/package-lock.json @@ -55,7 +55,8 @@ "vite": "^5.2.6", "vite-plugin-eslint": "^1.8.1", "vite-plugin-vuetify": "^2.0.3", - "vitest": "^0.32.2" + "vitest": "^0.32.2", + "vitest-canvas-mock": "^0.3.3" } }, "node_modules/@ampproject/remapping": { @@ -1919,6 +1920,12 @@ "node": ">=4" } }, + "node_modules/cssfontparser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/cssfontparser/-/cssfontparser-1.2.1.tgz", + "integrity": "sha512-6tun4LoZnj7VN6YeegOVb67KBX/7JJsqvj+pv3ZA7F878/eN33AbGa5b/S/wXxS/tcp8nc40xRUrsPlxIyNUPg==", + "dev": true + }, "node_modules/cssstyle": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-3.0.0.tgz", @@ -3509,6 +3516,16 @@ "node": ">=8" } }, + "node_modules/jest-canvas-mock": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jest-canvas-mock/-/jest-canvas-mock-2.5.2.tgz", + "integrity": "sha512-vgnpPupjOL6+L5oJXzxTxFrlGEIbHdZqFU+LFNdtLxZ3lRDCl17FlTMM7IatoRQkrcyOTMlDinjUguqmQ6bR2A==", + "dev": true, + "dependencies": { + "cssfontparser": "^1.2.1", + "moo-color": "^1.0.2" + } + }, "node_modules/js-beautify": { "version": "1.14.6", "resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-1.14.6.tgz", @@ -3857,6 +3874,15 @@ "node": "*" } }, + "node_modules/moo-color": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/moo-color/-/moo-color-1.0.3.tgz", + "integrity": "sha512-i/+ZKXMDf6aqYtBhuOcej71YSlbjT3wCO/4H1j8rPvxDJEifdwgg5MaFyu6iYAT8GBZJg2z0dkgK4YMzvURALQ==", + "dev": true, + "dependencies": { + "color-name": "^1.1.4" + } + }, "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", @@ -5765,6 +5791,18 @@ } } }, + "node_modules/vitest-canvas-mock": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/vitest-canvas-mock/-/vitest-canvas-mock-0.3.3.tgz", + "integrity": "sha512-3P968tYBpqYyzzOaVtqnmYjqbe13576/fkjbDEJSfQAkHtC5/UjuRHOhFEN/ZV5HVZIkaROBUWgazDKJ+Ibw+Q==", + "dev": true, + "dependencies": { + "jest-canvas-mock": "~2.5.2" + }, + "peerDependencies": { + "vitest": "*" + } + }, "node_modules/vitest/node_modules/@esbuild/android-arm": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz", diff --git a/app/frontend/package.json b/app/frontend/package.json index 42fdb9f7c..76a987ddd 100644 --- a/app/frontend/package.json +++ b/app/frontend/package.json @@ -76,6 +76,7 @@ "vite": "^5.2.6", "vite-plugin-eslint": "^1.8.1", "vite-plugin-vuetify": "^2.0.3", - "vitest": "^0.32.2" + "vitest": "^0.32.2", + "vitest-canvas-mock": "^0.3.3" } } diff --git a/app/frontend/src/components/designer/FloatButton.vue b/app/frontend/src/components/designer/FloatButton.vue index 6478547b7..58ef2ac5d 100644 --- a/app/frontend/src/components/designer/FloatButton.vue +++ b/app/frontend/src/components/designer/FloatButton.vue @@ -393,7 +393,7 @@ export default { -import _ from 'lodash'; -import { mapState, mapActions } from 'pinia'; + +/* c8 ignore start */ +/* c8 ignore end */ diff --git a/app/frontend/src/components/forms/manage/DocumentTemplate.vue b/app/frontend/src/components/forms/manage/DocumentTemplate.vue index 3d3ea87ca..146904ff4 100644 --- a/app/frontend/src/components/forms/manage/DocumentTemplate.vue +++ b/app/frontend/src/components/forms/manage/DocumentTemplate.vue @@ -1,231 +1,203 @@ -