punitda / ssh-git

Desktop app to manage SSH keys for Github, Bitbucket and Gitlab accounts
https://ssh-git.app
MIT License
5 stars 0 forks source link

Feat : New Home screen and SSH setup flow in MST #64

Closed punitda closed 4 years ago

punitda commented 4 years ago
const RootStore = types.model('RootStore', {
  keyStore: types.optional(KeyStore, {}),
  sessionStore: types.optional(SshKey, {
    provider: 'github',
    username: '',
    path: '',
    mode: 'SINGLE',
  }),
});

Compared to previous implementation which was MULTI by default it will make it easier for majority of users who setup only single key per provider anyway. They don't have to think about updating remote url. One less thing to worry about. Current implementation makes sure existing ssh-git users don't have to do anything for it. Keys they have setup using prior versions(0.0.1 and 0.0.2) will be set to MULTI mode by default so they don't have to go again and update remote immediately after updating app. Don't want to trouble them with it.

And, apart from store logic the core logic of generating keys and checking duplicate keys has also been updated to generate SSH keys based on current mode set in sessionStore