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

Convert vuex/keycodes store to pinia #1370

Merged
merged 10 commits into from
Nov 7, 2024
Merged

Convert vuex/keycodes store to pinia #1370

merged 10 commits into from
Nov 7, 2024

Conversation

yanfali
Copy link
Collaborator

@yanfali yanfali commented Nov 5, 2024

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.

@yanfali yanfali marked this pull request as ready for review November 5, 2024 22:45
@yanfali
Copy link
Collaborator Author

yanfali commented Nov 5, 2024

@precondition if you get a chance, a quick review or running it locally to spot if I broke anything would be appreciated. Thanks

@yanfali yanfali changed the title more pinia updates Convert vuex/keycodes store to pinia Nov 5, 2024
@@ -1,12 +1,14 @@
import Vue from 'vue';
import random from 'lodash/random';
Copy link
Collaborator Author

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

@yanfali
Copy link
Collaborator Author

yanfali commented Nov 7, 2024

I added some jsdoc for some of the hairy parts, and documented some of the internal types used inside the keycode JSON.

@yanfali yanfali merged commit 76009c0 into master Nov 7, 2024
4 checks passed
@yanfali yanfali deleted the pinia-2 branch November 7, 2024 20:37
@precondition
Copy link
Contributor

Oh shoot, I planned to take a look at this later today.

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.

2 participants