adjust frontend to new backend

This commit is contained in:
wea_ondara
2024-05-27 19:05:54 +02:00
parent 8b60d023e8
commit 265a5f3063
67 changed files with 5506 additions and 703 deletions

View File

@@ -4,18 +4,26 @@
"private": true,
"author": "wea_ondara",
"license": "ISC",
"type": "module",
"node": ">=21.0.0",
"scripts": {
"setup": "run-s setup:1 setup:2",
"setup:1": "npm run build:oas",
"setup:2": "npm i --save-optional ../oas",
"dev": "vite",
"build": "run-p type-check \"build-only {@}\" --",
"clean": "rm -r ../oas dev/ dist/ 2>/dev/null",
"build": "run-s build:oas build:client",
"build:oas": "run-s generate:oas build-only:oas",
"build:client": "run-p type-check:client build-only:client test:unit",
"preview": "vite preview",
"test:unit": "vitest",
"test:e2e": "start-server-and-test preview http://localhost:4173 'cypress run --e2e'",
"test:e2e:dev": "start-server-and-test 'vite dev --port 4173' http://localhost:4173 'cypress open --e2e'",
"build-only": "vite build",
"type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"format": "prettier --write src/",
"clean:src": "find src | grep -E '((\\.d\\.ts)|(\\.js(\\.map)?))$' | xargs rm"
"test:unit": "vitest --environment jsdom --root src/ --passWithNoTests",
"test:e2e": "start-server-and-test preview :4173 'cypress run --e2e'",
"test:e2e:dev": "start-server-and-test 'vite dev --port 4173' :4173 'cypress open --e2e'",
"build-only:oas": "cd ../oas && npm i && npm run build",
"build-only:client": "vite build --outDir dist",
"generate:oas": "openapi-generator-cli generate",
"type-check:client": "vue-tsc --noEmit -p tsconfig.vitest.json",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
},
"dependencies": {
"@fortawesome/fontawesome-free": "^6.5.1",
@@ -23,13 +31,16 @@
"@popperjs/core": "^2.11.8",
"bootstrap": "^5.3.3",
"bootstrap-vue-next": "^0.16.6",
"gravatar": "^1.8.2",
"html-entities": "^2.5.2",
"idb": "^7.1.1",
"mitt": "^3.0.1",
"pinia": "^2.1.7",
"pinia-class-component": "^0.9.4",
"string-similarity-js": "^2.1.4",
"vue": "^3.3.4",
"vue-class-component": "^8.0.0-rc.1",
"vue-facing-decorator": "^3.0.4",
"vue-good-table-next": "^0.2.1",
"vue-i18n": "^9.10.2",
"vue-property-decorator": "^10.0.0-rc.3",
@@ -37,28 +48,33 @@
"vue3-toastify": "^0.0.4"
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.8.0",
"@tsconfig/node18": "^18.2.2",
"@openapitools/openapi-generator-cli": "^2.13.4",
"@rushstack/eslint-patch": "^1.10.3",
"@tsconfig/node20": "^20.1.4",
"@types/bootstrap": "^5.2.10",
"@types/gravatar": "^1.8.6",
"@types/jsdom": "^21.1.6",
"@types/node": "^18.19.26",
"@vitejs/plugin-vue": "^4.6.2",
"@vue/eslint-config-prettier": "^8.0.0",
"@vue/eslint-config-typescript": "^12.0.0",
"@vue/test-utils": "^2.4.5",
"@vue/tsconfig": "^0.4.0",
"cypress": "^13.7.1",
"@types/vue-select": "^3.16.8",
"@vitejs/plugin-vue": "^5.0.4",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^13.0.0",
"@vue/test-utils": "^2.4.6",
"@vue/tsconfig": "^0.5.1",
"cypress": "^13.10.0",
"eslint": "^8.57.0",
"eslint-plugin-cypress": "^2.15.1",
"eslint-plugin-vue": "^9.23.0",
"jsdom": "^22.1.0",
"npm-run-all2": "^6.1.2",
"eslint-plugin-cypress": "^3.2.0",
"eslint-plugin-vue": "^9.26.0",
"jsdom": "^24.0.0",
"npm-run-all2": "^6.2.0",
"prettier": "^3.2.5",
"sass": "^1.72.0",
"sass": "^1.77.2",
"start-server-and-test": "^2.0.3",
"typescript": "~5.2.0",
"vite": "^4.5.2",
"vitest": "^0.34.6",
"vue-tsc": "^1.8.27"
"typescript": "~5.4.0",
"vite": "^5.2.11",
"vitest": "^1.6.0",
"vue-tsc": "^2.0.19"
},
"optionalDependencies": {
"ai-oas": "file:../oas"
}
}