mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-13 08:04:40 +08:00
fix(docs): Replace docs references to Edgehill with N1
This commit is contained in:
parent
1d9a34f5ea
commit
1a0292a37e
12 changed files with 88 additions and 88 deletions
|
@ -51,8 +51,8 @@ class TranslateButton extends React.Component
|
|||
# `React.createElement('a', {href: 'http://facebook.github.io/react/'}, 'Hello!')`
|
||||
#
|
||||
# We're rendering a `Popover` with a `Menu` inside. These components are part
|
||||
# of Edgehill's standard `nylas-component-kit` library, and make it easy to build
|
||||
# interfaces that match the rest of Edgehill's UI.
|
||||
# of N1's standard `nylas-component-kit` library, and make it easy to build
|
||||
# interfaces that match the rest of N1's UI.
|
||||
#
|
||||
render: =>
|
||||
React.createElement(Popover, {"ref": "popover", \
|
||||
|
|
|
@ -103,8 +103,8 @@ like HTML, but don’t be fooled. The CJSX preprocessor converts</p>
|
|||
<p>into Javascript objects which describe the HTML you want:</p>
|
||||
<p><code>React.createElement('a', {href: 'http://facebook.github.io/react/'}, 'Hello!')</code></p>
|
||||
<p>We’re rendering a <code>Popover</code> with a <code>Menu</code> inside. These components are part
|
||||
of Edgehill’s standard <code>nylas-component-kit</code> library, and make it easy to build
|
||||
interfaces that match the rest of Edgehill’s UI.</p>
|
||||
of N1’s standard <code>nylas-component-kit</code> library, and make it easy to build
|
||||
interfaces that match the rest of N1’s UI.</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -51,8 +51,8 @@ class TranslateButton extends React.Component
|
|||
# `React.createElement('a', {href: 'http://facebook.github.io/react/'}, 'Hello!')`
|
||||
#
|
||||
# We're rendering a `Popover` with a `Menu` inside. These components are part
|
||||
# of Edgehill's standard `nylas-component-kit` library, and make it easy to build
|
||||
# interfaces that match the rest of Edgehill's UI.
|
||||
# of N1's standard `nylas-component-kit` library, and make it easy to build
|
||||
# interfaces that match the rest of N1's UI.
|
||||
#
|
||||
render: =>
|
||||
<Popover ref="popover"
|
||||
|
|
|
@ -111,7 +111,7 @@ class MessageControls extends React.Component
|
|||
type: 'warning'
|
||||
buttons: ['OK'],
|
||||
message: "Thank you."
|
||||
detail: "The contents of this message have been sent to the Edgehill team and we added to a test suite."
|
||||
detail: "The contents of this message have been sent to the N1 team and we added to a test suite."
|
||||
}
|
||||
|
||||
_onShowOriginal: =>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"name": "notification-mailto",
|
||||
"main": "./lib/main",
|
||||
"version": "0.36.0",
|
||||
"description": "Displays a notification asking the user to make Edgehill their default mailto handler",
|
||||
"description": "Displays a notification asking the user to make N1 their default mailto handler",
|
||||
"license": "Proprietary",
|
||||
"engines": {
|
||||
"atom": "*"
|
||||
|
|
|
@ -10,7 +10,7 @@ uuid_count = 0
|
|||
class Notification
|
||||
constructor: ({@message, @type, @tag, @sticky, @actions, @icon} = {}) ->
|
||||
# Check to make sure the provided data is a valid notificaiton, since
|
||||
# notifications may be constructed by anyone developing on Edgehill
|
||||
# notifications may be constructed by anyone developing on N1
|
||||
throw new Error "No `new` keyword when constructing Notification" unless @ instanceof Notification
|
||||
throw new Error "Type must be `info`,`error`, or `success`" unless @type in ['info', 'error', 'success']
|
||||
throw new Error "Message must be provided for notification" unless @message
|
||||
|
|
|
@ -187,7 +187,7 @@ class AccountSettingsPage extends React.Component
|
|||
@setState(tryingToAuthenticate: true)
|
||||
|
||||
# Send the form data directly to Nylas to get code
|
||||
# If this succeeds, send the received code to Edgehill server to register the account
|
||||
# If this succeeds, send the received code to N1 server to register the account
|
||||
# Otherwise process the error message from the server and highlight UI as needed
|
||||
NylasAPI.makeRequest
|
||||
path: "/auth?client_id=#{NylasAPI.AppID}"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
# Edgehill Jenkins must run a shell script.
|
||||
# N1 Jenkins must run a shell script.
|
||||
#
|
||||
# We also set the Keychain credentials inside of Jenkins Credentials
|
||||
# instead of plain text files.
|
||||
|
|
|
@ -31,7 +31,7 @@ function verifyNode(cb) {
|
|||
var nodeMajorVersion = +versionArray[0];
|
||||
var nodeMinorVersion = +versionArray[1];
|
||||
if (nodeMajorVersion === 0 && nodeMinorVersion < 10) {
|
||||
error = "node v0.10 is required to build Edgehill, node " + nodeVersion + " is installed.";
|
||||
error = "node v0.10 is required to build N1, node " + nodeVersion + " is installed.";
|
||||
cb(error);
|
||||
}
|
||||
else {
|
||||
|
@ -50,14 +50,14 @@ function verifyNpm(cb) {
|
|||
|
||||
childProcess.execFile(npmCommand, ['-v'], { env: process.env }, function(err, stdout) {
|
||||
if (err)
|
||||
return cb("npm 1.4 is required to build Edgehill. An error (" + err + ") occured when checking the version.");
|
||||
return cb("npm 1.4 is required to build N1. An error (" + err + ") occured when checking the version.");
|
||||
|
||||
var npmVersion = stdout ? stdout.trim() : '';
|
||||
var versionArray = npmVersion.split('.');
|
||||
var npmMajorVersion = +versionArray[0] || 0;
|
||||
var npmMinorVersion = +versionArray[1] || 0;
|
||||
if (npmMajorVersion === 1 && npmMinorVersion < 4)
|
||||
cb("npm v1.4+ is required to build Edgehill.");
|
||||
cb("npm v1.4+ is required to build N1.");
|
||||
else
|
||||
cb(null, "npm: v" + npmVersion);
|
||||
});
|
||||
|
@ -87,7 +87,7 @@ function checkPythonVersion (python, cb) {
|
|||
|
||||
childProcess.execFile(python, ['-c', 'import platform; print(platform.python_version());'], { env: process.env }, function (err, stdout) {
|
||||
if (err) {
|
||||
error = "Python 2.7 is required to build Edgehill. An error (" + err + ") occured when checking the version of '" + python + "'. ";
|
||||
error = "Python 2.7 is required to build N1. An error (" + err + ") occured when checking the version of '" + python + "'. ";
|
||||
error += pythonHelpMessage;
|
||||
cb(error);
|
||||
return;
|
||||
|
@ -101,11 +101,11 @@ function checkPythonVersion (python, cb) {
|
|||
version = version.replace(/rc(.*)$/ig, '');
|
||||
}
|
||||
|
||||
// Edgehill requires python 2.7 or higher (but not python 3) for node-gyp
|
||||
// N1 requires python 2.7 or higher (but not python 3) for node-gyp
|
||||
var versionArray = version.split('.').map(function(num) { return +num; });
|
||||
var goodPythonVersion = (versionArray[0] === 2 && versionArray[1] >= 7);
|
||||
if (!goodPythonVersion) {
|
||||
error = "Python 2.7 is required to build Edgehill. '" + python + "' returns version " + version + ". ";
|
||||
error = "Python 2.7 is required to build N1. '" + python + "' returns version " + version + ". ";
|
||||
error += pythonHelpMessage;
|
||||
cb(error);
|
||||
return;
|
||||
|
|
|
@ -5,7 +5,7 @@ protocol = require 'protocol'
|
|||
|
||||
# Handles requests with 'nylas' protocol.
|
||||
#
|
||||
# It's created by {EdgehillApplication} upon instantiation and is used to create a
|
||||
# It's created by {N1Application} upon instantiation and is used to create a
|
||||
# custom resource loader for 'nylas://' URLs.
|
||||
#
|
||||
# The following directories are searched in order:
|
||||
|
|
|
@ -74,7 +74,7 @@ Public: React component for multi-section Menus with key binding
|
|||
|
||||
The Menu component allows you to display a list of items. Menu takes care of
|
||||
several important things, ensuring that your menu is consistent with the rest
|
||||
of the Edgehill application and offers a near-native experience:
|
||||
of the N1 application and offers a near-native experience:
|
||||
|
||||
- Keyboard Interaction with the Up and Down arrow keys, Enter to select
|
||||
- Maintaining selection across content changes
|
||||
|
|
|
@ -4,7 +4,7 @@ _ = require 'underscore'
|
|||
|
||||
###
|
||||
Public: The Popover component makes it easy to display a sheet or popup menu when the
|
||||
user clicks the React element provided as `buttonComponent`. In Edgehill, the Popover
|
||||
user clicks the React element provided as `buttonComponent`. In N1, the Popover
|
||||
component is used to create rich dropdown menus, detail popups, etc. with consistent
|
||||
look and feel and behavior.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue