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

Upgraded the project to Vue2 #20

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Upgraded the project to Vue2 #20

wants to merge 4 commits into from

Conversation

asvrada
Copy link

@asvrada asvrada commented Jan 23, 2018

Check each commit for detailed changes.

The original repo fails to serve as a Vue example project for beginners anymore as it's using Vue 1 that are outdated, as well as many other packages.
And this PR is aimed to upgrade this project to the most up-to-date state, which includes upgrading outdated packages and fixing incompatible codes that package upgrading brings.

Following are changes other than simple package upgrade:

  1. Re-indented all files
  2. Renamed text.vue to text-input.vue
  3. Using debounce func from lodash now

Now using Vue2 and up-to-date packages.

Other changes including:
0. Renamed text.vue to text-input.vue to avoid naming conflict with HTML element
1. Re-indented files
2. Replaced `debounce` func with the one from lodash
3. Removed all vuex/actions and interact with mutations now
4. Moved all vuex/getters to store.js
@asvrada asvrada mentioned this pull request Jan 23, 2018
Copy link
Author

@asvrada asvrada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vuex里有一些getter感觉没必要啊,可以进一步简化

@asvrada asvrada force-pushed the vue2 branch 2 times, most recently from f3d95d1 to 9d51da6 Compare January 23, 2018 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant