diff --git a/app/package.json b/app/package.json index 9fc872c6..a68da12f 100644 --- a/app/package.json +++ b/app/package.json @@ -15,11 +15,12 @@ "dependencies": { "@fontsource/fira-code": "^4.5.13", "@fontsource/firago": "^4.5.3", + "@vue/compat": "3.3.4", "bootstrap-vue": "^2.22.0", "date-fns": "^2.29.3", "fork-awesome": "^1.2.0", "simple-evaluate": "^1.4.6", - "vue": "^2.7.14", + "vue": "3.3.4", "vue-i18n": "^8.28.2", "vue-router": "^3.6.5", "vue-showdown": "^2.4.1", @@ -27,12 +28,12 @@ "vuex": "^3.6.2" }, "devDependencies": { - "@vitejs/plugin-vue2": "^2.2.0", + "@vitejs/plugin-vue": "^5.0.4", "bootstrap": "^4.6.0", "eslint": "^8.36.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.1.3", - "eslint-plugin-vue": "^9.10.0", + "eslint-plugin-vue": "^9.22.0", "popper.js": "^1.16.0", "portal-vue": "^2.1.7", "prettier": "^3.2.5", diff --git a/app/src/main.js b/app/src/main.js index 7230e309..e0d35cec 100644 --- a/app/src/main.js +++ b/app/src/main.js @@ -1,4 +1,4 @@ -import Vue from 'vue' +import { createApp, configureCompat } from 'vue' import App from './App.vue' import BootstrapVue from 'bootstrap-vue' import VueShowdown from 'vue-showdown' @@ -10,16 +10,26 @@ import i18n from './i18n' import { registerGlobalErrorHandlers } from './api' import { initDefaultLocales } from './i18n/helpers' -Vue.config.productionTip = false +const app = createApp({ + ...App, +}) + +app.use(store) +app.use(router) +app.use(i18n) + +configureCompat({ + MODE: 2, +}) // Styles are imported in `src/App.vue`