Open dixsie opened 2 years ago
@edtanous's proposal/discussion: https://gerrit.openbmc.org/c/openbmc/webui-vue/+/55438
Dixsie's attempt April 4, 2021
All official libraries and tools now support Vue 3, but @vue/test-utils is still in release candidate status.
Breaking changes observed:
- The beforeDestroy lifecycle hook is deprecated. Use beforeUnmount instead
- Filters deprecated
- VueCompilerError: Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.
- VueCompilerError: v-if/else branches must use unique keys.
- Props default value factory functions no longer have access to this
BootstrapVue currently does not support Vue3
https://bootstrap-vue.org/docs
Vue.js v2.6 is required, v2.6.12 is recommended
It looks like bootstrap-vue-3 exists in an early state?
The beforeDestroy lifecycle hook is deprecated. Use beforeUnmount instead
This is handled in my patch
Filters deprecated
VueCompilerError: Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.
I didn't see this one in my tests; Maybe it was a regression that was fixed later?
VueCompilerError: v-if/else branches must use unique keys. Props default value factory functions no longer have access to this
There was one instance of this, and I think I resolved it by moving to the more common pattern (I think). I added a comment on my review on this line for someone with more knowledge to review.
what about vuetify3, it's now fully vue3 ready with MIT license.
Raised following WIP PR for Vue3 migration.
https://gerrit.openbmc.org/c/openbmc/webui-vue/+/67959
@gtmills @Nikhil-Ashoka @Renuka9527 @sivaprabug
Pushed one commit to the https://gerrit.openbmc.org/c/openbmc/webui-vue/+/67959 1.Added Global Mixins 2.Added Global styles and sass configuration in vite config
Mixins
Styles:
@gtmills @Nikhil-Ashoka @kirankumarb07 @sivaprabug
Pushed the below changes
Pushed below changes to the https://gerrit.openbmc.org/c/openbmc/webui-vue/+/67959
Session Page:
@kirankumarb07 @sivaprabug @gtmills @Renuka9527 @Nikhil-Ashoka
Pushed below changes. https://gerrit.openbmc.org/c/openbmc/webui-vue/+/67959
Pushed below changes https://gerrit.openbmc.org/c/openbmc/webui-vue/+/55438/5..6
Pushed below changes https://gerrit.openbmc.org/c/openbmc/webui-vue/+/55438/5..6
- i18n for the Login page, Overview page, and app navigation.
- Page title.
- logout error.
@suryav9724 As discussed, please explain the issues/fixes in detailed manner for the latest pushed the code changes.
Pushed below changes to https://gerrit.openbmc.org/c/openbmc/webui-vue/+/72552/3..4
Pushed below changes to PR https://gerrit.openbmc.org/c/openbmc/webui-vue/+/72701
$v
changed to v$
to support vuelidate in vue 3 on all pages.Cherry-pick the master commits to the vue3 branch
vue3 #PR | Master commit ID |
---|---|
https://gerrit.openbmc.org/c/openbmc/webui-vue/+/73124 | bc49e09187cab43f8564f2adb6b8860544870641 |
https://gerrit.openbmc.org/c/openbmc/webui-vue/+/73188 | 1ff8e89fd2397c468ab0237158e5aeeff2692413 |
https://gerrit.openbmc.org/c/openbmc/webui-vue/+/73189 | 582e954ecff4edf58c143dc644a21b15005e8109 |
Add user validation in the user management page code changes push to the PR#73249 in Vue3 branch https://gerrit.openbmc.org/c/openbmc/webui-vue/+/73249
Overview
Migration docs
Requirements
<template>
UI Checklist
Browser Tests (Chrome, Firefox, Safari (Mac), Edge (Windows))