diff --git a/.tool-versions b/.tool-versions index a6a8eac6..8c4ec728 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ -nodejs 16.10.0 +nodejs 16.17.0 python 3.10.5 diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index a15c2238..71bec961 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -9,14 +9,27 @@ pipelines: services: - postgres caches: - - pip + - vbvpip script: - source ./env/bitbucket/prepare_for_test.sh + - python -m venv vbvvenv + - source vbvvenv/bin/activate - pip install -r server/requirements/requirements-dev.txt - git-crypt status -e | sort > git-crypt-encrypted-files-check.txt && diff git-crypt-encrypted-files.txt git-crypt-encrypted-files-check.txt - trufflehog --exclude_paths trufflehog-exclude-patterns.txt --allow trufflehog-allow.json --entropy=True --max_depth=100 . - ./server/run_tests_coverage.sh # - ./src/run_pylint.sh + - step: + name: js tests + max-time: 15 + caches: + - node + - clientnode + script: + - cd client + - pwd + - npm install + - npm test - step: name: cypress tests max-time: 45 @@ -27,21 +40,20 @@ pipelines: - cypress/**/*.mp4 caches: - node - - pip + - clientnode + - vbvpip - cypress script: - export IT_SERVE_VUE=false - export IT_ALLOW_LOCAL_LOGIN=true - source ./env/bitbucket/prepare_for_test.sh - - pip install -r server/requirements/requirements-dev.txt - npm install - npm run build + - python -m venv vbvvenv + - source vbvvenv/bin/activate + - pip install -r server/requirements/requirements-dev.txt - ./prepare_server_cypress.sh --start-background - npm run cypress:ci -# - npm run build -# - ./run_jshint.sh -# # - npm test -# - (cd landingpage && npm install && echo "{}" > ./src/translations/translations.json && npm run build) tags: v202*: - step: @@ -72,6 +84,7 @@ definitions: caches: cypress: /root/.cache/Cypress vbvpip: /opt/atlassian/pipelines/agent/build/vbvvenv/ + clientnode: /opt/atlassian/pipelines/agent/build/client/node_modules/ services: postgres: image: postgres diff --git a/client/package.json b/client/package.json index 433ab715..07906114 100644 --- a/client/package.json +++ b/client/package.json @@ -7,52 +7,50 @@ "build:tailwind": "tailwindcss -i tailwind.css -o ../server/vbv_lernwelt/static/css/tailwind.css --minify", "test": "vitest run", "coverage": "vitest run --coverage", - "typecheck": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false", + "typecheck": "vue-tsc --noEmit -p tsconfig.app.json --composite false", "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", "tailwind": "tailwindcss -i tailwind.css -o ../server/vbv_lernwelt/static/css/tailwind.css --watch" }, "dependencies": { - "@headlessui/vue": "^1.6.4", + "@headlessui/vue": "^1.6.7", "axios": "^0.26.1", - "d3": "^7.4.4", + "d3": "^7.6.1", + "lodash": "^4.17.21", "loglevel": "^1.8.0", - "pinia": "^2.0.13", - "underscore": "^1.13.4", - "vue": "^3.2.31", - "vue-i18n": "^9.1.9", - "vue-router": "^4.0.14" + "pinia": "^2.0.21", + "vue": "^3.2.38", + "vue-i18n": "^9.2.2", + "vue-router": "^4.1.5" }, "devDependencies": { - "@intlify/vite-plugin-vue-i18n": "^3.4.0", "@rollup/plugin-alias": "^3.1.9", - "@rushstack/eslint-patch": "^1.1.0", + "@rushstack/eslint-patch": "^1.1.4", "@tailwindcss/forms": "^0.5.2", "@tailwindcss/typography": "^0.5.4", - "@testing-library/vue": "^6.6.0", + "@testing-library/vue": "^6.6.1", "@types/d3": "^7.4.0", - "@types/jsdom": "^16.2.14", - "@types/node": "^16.11.26", - "@vitejs/plugin-vue": "^2.3.1", + "@types/jsdom": "^20.0.0", + "@types/lodash": "^4.14.184", + "@types/node": "^18.7.14", + "@vitejs/plugin-vue": "^3.0.3", "@vue/eslint-config-prettier": "^7.0.0", - "@vue/eslint-config-typescript": "^10.0.0", - "@vue/test-utils": "^2.0.0-rc.18", + "@vue/eslint-config-typescript": "^11.0.0", + "@vue/test-utils": "^2.0.2", "@vue/tsconfig": "^0.1.3", - "autoprefixer": "^10.4.7", - "cypress": "^9.5.3", - "eslint": "^8.5.0", - "eslint-plugin-cypress": "^2.12.1", - "eslint-plugin-vue": "^8.2.0", - "happy-dom": "^5.3.1", + "autoprefixer": "^10.4.8", + "eslint": "8.22.0", + "eslint-plugin-vue": "^9.4.0", + "jsdom": "^20.0.0", "postcss": "^8.4.14", "postcss-import": "^14.1.0", - "prettier": "^2.5.1", - "sass": "^1.50.1", + "prettier": "^2.7.1", + "sass": "^1.54.6", "sass-loader": "^12.6.0", "start-server-and-test": "^1.14.0", - "tailwindcss": "^3.1.4", - "typescript": "~4.6.3", - "vite": "^2.9.1", - "vitest": "^0.15.1", - "vue-tsc": "^0.33.9" + "tailwindcss": "^3.1.8", + "typescript": "^4.8.2", + "vite": "^3.0.9", + "vitest": "^0.22.1", + "vue-tsc": "^0.40.4" } } diff --git a/client/src/assets/circle-analyse.svg b/client/src/assets/circle-analyse.svg deleted file mode 100644 index be722b24..00000000 --- a/client/src/assets/circle-analyse.svg +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/client/src/assets/learning_path.svg b/client/src/assets/learning_path.svg deleted file mode 100644 index e69de29b..00000000 diff --git a/client/src/components/MainNavigationBar.vue b/client/src/components/MainNavigationBar.vue index 14ba362e..b7823864 100644 --- a/client/src/components/MainNavigationBar.vue +++ b/client/src/components/MainNavigationBar.vue @@ -1,27 +1,27 @@