-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
Convert vuex/keycodes store to pinia #1370
Conversation
- partial - values - no need to spread default exports
- replace all uses of vuex keycodes store with pinia - fix ergo keyboard menu
@precondition if you get a chance, a quick review or running it locally to spot if I broke anything would be appreciated. Thanks |
Some properties for typedefs are actually optional. Use the correct jsdoc syntax.
@@ -1,12 +1,14 @@ | |||
import Vue from 'vue'; | |||
import random from 'lodash/random'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove a lot of dependencies on lodash, as a lot of this stuff is built in now
I added some jsdoc for some of the hairy parts, and documented some of the internal types used inside the keycode JSON. |
Oh shoot, I planned to take a look at this later today. |
Description
This PR replaces all the uses of vuex keycodes store with a pinia equivalent. It also fixes a bug in the steno code I discovered while refactoring, where steno boards were not being identified correctly.
This should be 100% equivalent with no regressions.
Vuex is in deep maintenance mode and pinia is the recommended library for vue. This work is preparation for moving to vue 3 and vue 2 is now EOL.