Upgrade frontend to Vue 3, Vuetify 3, and Vite#68
Open
Somainer wants to merge 1 commit into
Open
Conversation
- Replace Vue CLI/webpack build with Vite 5 (`vite.config.ts`, root-level `index.html`, `vite-plugin-vuetify`, `vite-plugin-pwa`, `vite-plugin-monaco-editor`). - Bump core deps: Vue 2.6 -> 3.5, Vuetify 2.1 -> 3.7, Vue Router 3 -> 4, Vuex 3 -> Pinia 2, plus axios/socket.io-client/marked/highlight.js major upgrades. - Convert `main.ts`, `router`, `store.ts`, and the Vuetify plugin to Vue 3 APIs (`createApp`, `createRouter`/`createWebHistory`, `createVuetify`, Pinia `defineStore`). - Remove class-component ecosystem (`vue-class-component`, `vue-property-decorator`, `vuex-class`, `vue-tsx-support`). All `.vue`, `.vue.ts`, and `.tsx` components now use `defineComponent` and the Composition/Options API. - Replace `vue-progressbar` with an `nprogress`-based plugin and `vue-wechat-title` with a lightweight `v-page-title` directive; drop `materialize-css` (`BlogDigestNav`/`comments` now use plain DOM/Vuetify helpers). - Update templates for Vuetify 3 breaking changes: `v-content` -> `v-main`, list-item slots, `variant="text/outlined"` on buttons, `icon="mdi-..."` syntax, new `v-data-table`, `v-badge` `content`/`model-value`, `v-snackbar` `location`, etc. - Migrate lifecycle hooks (`beforeDestroy`/`destroyed` -> `beforeUnmount`/`unmounted`), `v-model` to `modelValue`/ `update:modelValue`, slot syntax to `#name`/`v-slot`, and remove `.native` modifiers. - Adapt `RoseliaScript` renderer to a local event bus so `postUnload`/`postLoaded`/`aPlayerLoaded` keep working without component `$on`/`$once`, and route theme/notification/goTo calls through Vuetify 3 composables + Pinia. - Refresh TypeScript config for Vite (`moduleResolution: bundler`, `jsxImportSource: vue`) and drop Vue-2 shim typings. https://claude.ai/code/session_01LXfFAboCUo34FtmLJiRado
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
vite.config.ts,root-level
index.html,vite-plugin-vuetify,vite-plugin-pwa,vite-plugin-monaco-editor).Vuex 3 -> Pinia 2, plus axios/socket.io-client/marked/highlight.js
major upgrades.
main.ts,router,store.ts, and the Vuetify plugin toVue 3 APIs (
createApp,createRouter/createWebHistory,createVuetify, PiniadefineStore).vue-class-component,vue-property-decorator,vuex-class,vue-tsx-support). All.vue,.vue.ts, and.tsxcomponents now usedefineComponentand the Composition/Options API.
vue-progressbarwith annprogress-based plugin andvue-wechat-titlewith a lightweightv-page-titledirective;drop
materialize-css(BlogDigestNav/commentsnow use plainDOM/Vuetify helpers).
v-content->v-main, list-item slots,variant="text/outlined"on buttons,icon="mdi-..."syntax, newv-data-table,v-badgecontent/model-value,v-snackbarlocation, etc.beforeDestroy/destroyed->beforeUnmount/unmounted),v-modeltomodelValue/update:modelValue, slot syntax to#name/v-slot, and remove.nativemodifiers.RoseliaScriptrenderer to a local event bus sopostUnload/postLoaded/aPlayerLoadedkeep working withoutcomponent
$on/$once, and route theme/notification/goTo callsthrough Vuetify 3 composables + Pinia.
moduleResolution: bundler,jsxImportSource: vue) and drop Vue-2 shim typings.https://claude.ai/code/session_01LXfFAboCUo34FtmLJiRado