Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Vue 3 and Ant Design Vue 3 #77

Open
bunnyxt opened this issue Nov 9, 2022 · 9 comments
Open

Upgrade to Vue 3 and Ant Design Vue 3 #77

bunnyxt opened this issue Nov 9, 2022 · 9 comments
Assignees
Labels
refactor Code refactor, for better performance or easier to maintain

Comments

@bunnyxt
Copy link
Owner

bunnyxt commented Nov 9, 2022

referece:

@bunnyxt bunnyxt added the refactor Code refactor, for better performance or easier to maintain label Nov 9, 2022
@bunnyxt bunnyxt self-assigned this Nov 9, 2022
@bunnyxt
Copy link
Owner Author

bunnyxt commented Nov 10, 2022

Nov 9

Updates

  • start work on branch refactor/vue3
  • upgrade node version to v16.13.2
  • use vite instead of vue-cli
  • change project folder structure in align with vite
  • upgrade vue from 2.6.11 to 3.2.41
  • upgrade all the dependencies to the latest version, except vue-wechat-title
  • create AppNew as the temp root app for test

Next

  • migrate vue-router first
  • use Pinia instead of Vuex
  • use composition api instead of option api in each vue component
  • check vue-wechat-title works or not, find substitutes if not works any more

@bunnyxt
Copy link
Owner Author

bunnyxt commented Nov 25, 2022

Nov 24

Updates

  • ESLint extends plugin:vue/essential -> plugin:vue/vue3-recommended
  • set :key property on template of v-for (vue3 new rule)
  • upgrade vuex to v4
  • Vue.prototype.$util -> app.config.globalProperties.$util (vue3 new syntax)
  • Vue.prototype.$config -> app.config.globalProperties.$config (vue3 new syntax)
  • upgrade vue-i18n to v9, add @intlify/vite-plugin-vue-i18n to use i18n block
  • a.hasOwnProperty(b)-> Object.prototype.hasOwnProperty(a, b)
  • upgrade vue-router to v4

Next

  • router.js -> router/index.js
  • user system check in main.js
  • config load from .env
  • util refactor to utils, do not mount it to app.config.globalProperties.$util, import from utils directly

@bunnyxt
Copy link
Owner Author

bunnyxt commented Dec 22, 2022

Dec 21

Updates

  • router.js -> router/index.js
  • use ant design components
  • change locale via this.$i18n.locale
  • change i18n tag to i18n-t and change property path to keypath
  • slot="xx" slot-scope="yy" -> #xx="yy"
  • import icon directly instead of use a-icon

Next

@bunnyxt
Copy link
Owner Author

bunnyxt commented Dec 24, 2022

Dec 23

Updates

  • <img /> -> <img >

@bunnyxt
Copy link
Owner Author

bunnyxt commented Dec 25, 2022

Dec 24

Updates

  • use VueRecaptcha instead of VueGrecaptcha
  • remove manually import recaptcha script
  • refactor(a-menu): v-model -> v-model:selectedKeys
  • refactor(a-modal): v-model -> v-model:visible
  • refactor(a-radio-group): v-model -> v-model:value
  • refactor(a-checkbox-group): v-model -> v-model:value
  • refactor(a-select): v-model -> v-model:value
  • refactor(a-input): v-model -> v-model:value
  • specify other v-model: (a-range-picker, a-textarea, a-auto-complete, a-pagination)
  • a-week-picker -> a-date-picker picker="week"
  • remove vue-wechat-title, custom naive wechat-title directive

@bunnyxt
Copy link
Owner Author

bunnyxt commented Jan 7, 2023

Jan 6

Updates

  • refactor TddVideoAbidAutoComplete using vue3 custom v-model and antdv3 auto complete
  • a-list <template #renderItem="item"> -> <template #renderItem="{ item }">

Next

  • avoid let that = this, using () => {} in callback functions
  • use PascalCase naming of custom components in SPF template instead of kebab-case

@bunnyxt
Copy link
Owner Author

bunnyxt commented Jan 8, 2023

Jan 7

Updates

  • a-table use #bodyCell to custom table cell render
    • TddDonateLogList
    • TddMemberLogTable

@bunnyxt
Copy link
Owner Author

bunnyxt commented Jan 28, 2023

Jan 27

Updates

  • refactor: extract statistics display into TddStatistics component
  • refactor: include data fetching logic into TddDonateLogList

@bunnyxt
Copy link
Owner Author

bunnyxt commented Jan 28, 2023

Jan 28

Updates

  • home page clean up
    • extract carousel blocks into components
      • TddUpdateLogList
      • TddIntro
    • clean up styles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Code refactor, for better performance or easier to maintain
Projects
None yet
Development

No branches or pull requests

1 participant