fix(config): move from ~/.nylas-k2 to ~/.nylas-mail

Summary:
fix(config): move from ~/.nylas-k2 to ~/.nylas-mail

fix(auth): ignore onboarding urls that aren't Nylas

feat(sig): change default signature

bump(k2)

Test Plan: manual

Reviewers: halla, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D3664
This commit is contained in:
Evan Morikawa 2017-01-13 12:19:42 -08:00
parent fc43bc834a
commit 45848ce3a0
4 changed files with 13 additions and 2 deletions

View file

@ -104,6 +104,12 @@ export default class AuthenticatePage extends React.Component {
}
webviewDidGetResponseDetails = ({httpResponseCode, originalURL}) => {
if (!originalURL.includes(IdentityStore.URLRoot)) {
// This means that some other secondarily loaded resource (like
// analytics or Linkedin, etc) got a response. We don't care about
// that.
return
}
if (httpResponseCode >= 400) {
const error = `
Could not reach Nylas to sign in. Please try again or contact

View file

@ -16,7 +16,7 @@ if (typeof process.setFdLimit === 'function') {
}
const setupConfigDir = (args) => {
const defaultDirName = (args.specMode) ? '.nylas-spec' : '.nylas-k2';
const defaultDirName = (args.specMode) ? '.nylas-spec' : '.nylas-mail';
let configDirPath = path.join(app.getPath('home'), defaultDirName);
if (args.configDirPath) {

View file

@ -2,7 +2,7 @@ import {Utils, Actions, AccountStore} from 'nylas-exports';
import NylasStore from 'nylas-store'
import _ from 'underscore'
const DefaultSignatureText = "Sent from <a href=\"https://nylas.com/n1?ref=n1\">Nylas Mail</a>, the extensible, open source mail client.";
const DefaultSignatureText = "Sent from <a href=\"https://nylas.com/n1?ref=n1\">Nylas Mail</a>, the best free email app for work";
class SignatureStore extends NylasStore {

View file

@ -11,6 +11,11 @@ import keytar from 'keytar'
*/
class KeyManager {
constructor() {
/**
* NOTE: Old N1 includes a migration system that manually looks for
* the names of these keys. If you change them be sure that old N1 is
* fully deprecated or updated as well.
*/
this.SERVICE_NAME = "Nylas Mail";
this.KEY_NAME = "Nylas Mail Keys"
this._alreadyMigrated = new Set()