diff --git a/package.json b/package.json index 63dd7da3..d8516ffe 100644 --- a/package.json +++ b/package.json @@ -15,14 +15,13 @@ "lint": "vue-cli-service lint" }, "dependencies": { - "buefy": "^0.9.23", + "@oruga-ui/oruga-next": "0.6.0", + "@oruga-ui/theme-bulma": "^0.2.11", "core-js": "^3.31.0", "crypto-js": "^4.1.1", - "vue": "^2.7.14", - "vue-class-component": "^7.2.6", - "vue-property-decorator": "^9.1.2", - "vue-router": "^3.6.5", - "vuex": "^3.6.2" + "vue": "^3.3.4", + "vue-router": "^4.2.2", + "vuex": "^4.1.0" }, "devDependencies": { "@babel/core": "^7.22.5", @@ -37,10 +36,11 @@ "@vue/cli-plugin-typescript": "^5.0.8", "@vue/cli-plugin-unit-jest": "^5.0.8", "@vue/cli-service": "^5.0.8", + "@vue/compiler-sfc": "^3.3.4", "@vue/eslint-config-airbnb": "^7.0.0", "@vue/eslint-config-typescript": "^11.0.3", - "@vue/test-utils": "1.3.6", - "@vue/vue2-jest": "^29.2.4", + "@vue/test-utils": "2.4.0", + "@vue/vue3-jest": "^29.2.4", "babel-jest": "^29.5.0", "babel-loader": "^9.1.2", "cypress": "^12.14.0", @@ -53,8 +53,7 @@ "sass": "^1.63.4", "sass-loader": "^13.3.2", "ts-jest": "^29.1.0", - "typescript": "^5.1.3", - "vue-template-compiler": "^2.7.14" + "typescript": "^5.1.3" }, "categories": [ "Other" diff --git a/public/index.html b/public/index.html index 179b13e8..a334c66a 100644 --- a/public/index.html +++ b/public/index.html @@ -1,5 +1,5 @@ - + diff --git a/src/App.ts b/src/App.ts index 573180e1..929b31a7 100644 --- a/src/App.ts +++ b/src/App.ts @@ -1,8 +1,8 @@ -import Vue from 'vue'; +import { defineComponent } from 'vue'; import BaseFooter from '@/components/BaseFooter.vue'; import BaseHeader from '@/components/BaseHeader.vue'; -export default Vue.extend({ +export default defineComponent({ name: 'app', components: { BaseFooter, diff --git a/src/components/BaseFooter.ts b/src/components/BaseFooter.ts index caa4edb4..7f2bc1a2 100644 --- a/src/components/BaseFooter.ts +++ b/src/components/BaseFooter.ts @@ -1,5 +1,5 @@ -import Vue from 'vue'; +import { defineComponent } from 'vue'; -export default Vue.extend({ +export default defineComponent({ name: 'base-footer', }); diff --git a/src/components/BaseHeader.ts b/src/components/BaseHeader.ts index 8d1d8061..380dcca6 100644 --- a/src/components/BaseHeader.ts +++ b/src/components/BaseHeader.ts @@ -1,5 +1,16 @@ -import Vue from 'vue'; +import { defineComponent } from 'vue'; -export default Vue.extend({ +export default defineComponent({ name: 'base-header', + data() { + return { + activator: false, + }; + }, + methods: { + makeBurger() { + this.activator = !this.activator; + return this.activator; + }, + }, }); diff --git a/src/components/BaseHeader.vue b/src/components/BaseHeader.vue index f152fa64..768c293f 100644 --- a/src/components/BaseHeader.vue +++ b/src/components/BaseHeader.vue @@ -1,31 +1,42 @@