mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-28 15:35:37 +08:00
fix(naming): Move atom/inbox/nilas refs to Nylas
Conflicts: internal_packages/inbox-activity-bar/lib/activity-bar-long-poll-item.cjsx
This commit is contained in:
parent
dc9e8dc8af
commit
9378f4480c
186 changed files with 339 additions and 341 deletions
2
atom.sh
2
atom.sh
|
@ -65,7 +65,7 @@ if [ $OS == 'Mac' ]; then
|
|||
$ATOM_SHELL_PATH/Atom.app/Contents/MacOS/Atom --executed-from="$(pwd)" --pid=$$ "$@" $EDGEHILL_PATH
|
||||
|
||||
elif [ $OS == 'Linux' ]; then
|
||||
DOT_INBOX_DIR="$HOME/.inbox"
|
||||
DOT_INBOX_DIR="$HOME/.nylas"
|
||||
|
||||
mkdir -p "$DOT_INBOX_DIR"
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ module.exports = (grunt) ->
|
|||
installDir = grunt.option('install-dir')
|
||||
|
||||
home = if process.platform is 'win32' then process.env.USERPROFILE else process.env.HOME
|
||||
atomShellDownloadDir = path.join(home, '.inbox', 'atom-shell')
|
||||
atomShellDownloadDir = path.join(home, '.nylas', 'atom-shell')
|
||||
|
||||
symbolsDir = path.join(buildDir, 'Atom.breakpad.syms')
|
||||
shellAppDir = path.join(buildDir, appName)
|
||||
|
@ -147,7 +147,7 @@ module.exports = (grunt) ->
|
|||
csonConfig =
|
||||
options:
|
||||
rootObject: true
|
||||
cachePath: path.join(home, '.inbox', 'compile-cache', 'grunt-cson')
|
||||
cachePath: path.join(home, '.nylas', 'compile-cache', 'grunt-cson')
|
||||
|
||||
glob_to_multiple:
|
||||
expand: true
|
||||
|
@ -204,7 +204,7 @@ module.exports = (grunt) ->
|
|||
src: [
|
||||
'internal_packages/**/*.cjsx'
|
||||
'internal_packages/**/*.coffee'
|
||||
'dot-inbox/**/*.coffee'
|
||||
'dot-nylas/**/*.coffee'
|
||||
'exports/**/*.coffee'
|
||||
'src/**/*.coffee'
|
||||
]
|
||||
|
@ -214,8 +214,8 @@ module.exports = (grunt) ->
|
|||
]
|
||||
test: [
|
||||
'spec/*.coffee'
|
||||
'spec-inbox/*.cjsx'
|
||||
'spec-inbox/*.coffee'
|
||||
'spec-nylas/*.cjsx'
|
||||
'spec-nylas/*.coffee'
|
||||
]
|
||||
target:
|
||||
grunt.option("target")?.split(" ") or []
|
||||
|
|
|
@ -44,7 +44,7 @@ module.exports = (grunt) ->
|
|||
packageDirectories = []
|
||||
nonPackageDirectories = [
|
||||
'benchmark'
|
||||
'dot-inbox'
|
||||
'dot-nylas'
|
||||
'vendor'
|
||||
'resources'
|
||||
]
|
||||
|
@ -161,7 +161,7 @@ module.exports = (grunt) ->
|
|||
cp directory, path.join(appDir, directory), filter: filterPackage
|
||||
|
||||
cp 'spec', path.join(appDir, 'spec')
|
||||
cp 'spec-inbox', path.join(appDir, 'spec-inbox')
|
||||
cp 'spec-nylas', path.join(appDir, 'spec-nylas')
|
||||
cp 'src', path.join(appDir, 'src'), filter: /.+\.(cson|coffee|cjsx|jsx)$/
|
||||
cp 'static', path.join(appDir, 'static')
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ module.exports = (grunt) ->
|
|||
|
||||
{name, version, description} = grunt.file.readJSON('package.json')
|
||||
section = 'devel'
|
||||
maintainer = 'InboxApp <edgehill@inboxapp.com>'
|
||||
maintainer = 'InboxApp <edgehill@nylas.com>'
|
||||
installDir = '/usr'
|
||||
iconName = 'edgehill'
|
||||
getInstalledSize buildDir, (error, installedSize) ->
|
||||
|
|
|
@ -6,7 +6,7 @@ LessCache = require 'less-cache'
|
|||
module.exports = (grunt) ->
|
||||
grunt.registerMultiTask 'prebuild-less', 'Prebuild cached of compiled LESS files', ->
|
||||
prebuiltConfigurations = [
|
||||
['inbox-light-ui']
|
||||
['light-ui']
|
||||
]
|
||||
|
||||
directory = path.join(grunt.config.get('atom.appDir'), 'less-compile-cache')
|
||||
|
|
|
@ -121,10 +121,10 @@ zipAssets = (buildDir, assets, callback) ->
|
|||
async.parallel(tasks, callback)
|
||||
|
||||
getAtomDraftRelease = (callback) ->
|
||||
atomRepo = new GitHub({repo: 'inboxapp/inboxapp', token})
|
||||
atomRepo = new GitHub({repo: 'nylas/edgehill', token})
|
||||
atomRepo.getReleases (error, releases=[]) ->
|
||||
if error?
|
||||
logError('Fetching inboxapp/edgehill releases failed', error, releases)
|
||||
logError('Fetching nylas/edgehill releases failed', error, releases)
|
||||
callback(error)
|
||||
else
|
||||
[firstDraft] = releases.filter ({draft}) -> draft
|
||||
|
@ -142,7 +142,7 @@ getAtomDraftRelease = (callback) ->
|
|||
firstDraft.assets = assets
|
||||
callback(null, firstDraft)
|
||||
else
|
||||
callback(new Error('No draft release in inboxapp/edgehill repo'))
|
||||
callback(new Error('No draft release in nylas/edgehill repo'))
|
||||
|
||||
deleteRelease = (release) ->
|
||||
options =
|
||||
|
|
|
@ -13,7 +13,7 @@ FreeBSD -RELEASE 64-bit is the recommended platform.
|
|||
## Instructions
|
||||
|
||||
```sh
|
||||
git clone https://github.com/inboxapp/edgehill
|
||||
git clone https://github.com/nylas/edgehill
|
||||
cd edgehill
|
||||
script/build # Creates application at $TMPDIR/edgehill-build/Edgehill
|
||||
sudo script/grunt install # Installs command to /usr/local/bin/edgehill
|
||||
|
|
|
@ -41,27 +41,27 @@ Ubuntu LTS 12.04 64-bit is the recommended platform.
|
|||
|
||||
If you have problems with permissions don't forget to prefix with `sudo`
|
||||
|
||||
1. Clone the Edgehill repository:
|
||||
1. Clone the Nylas Mail repository:
|
||||
|
||||
```sh
|
||||
git clone https://github.com/inboxapp/edgehill
|
||||
git clone https://github.com/nylas/edgehill
|
||||
cd edgehill
|
||||
```
|
||||
|
||||
2. Checkout the latest Edgehill release:
|
||||
2. Checkout the latest Nylas Mail release:
|
||||
|
||||
```sh
|
||||
git fetch -p
|
||||
git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
|
||||
```
|
||||
|
||||
3. Build Edgehill:
|
||||
3. Build Nylas Mail:
|
||||
|
||||
```sh
|
||||
script/build
|
||||
```
|
||||
|
||||
This will create the edgehill application at `$TMPDIR/edgehill-build/Edgehill`.
|
||||
This will create the Nylas Mail application at `$TMPDIR/edgehill-build/Edgehill`.
|
||||
|
||||
4. Install the `edgehill` and `apm` commands to `/usr/local/bin` by executing:
|
||||
|
||||
|
@ -69,9 +69,9 @@ If you have problems with permissions don't forget to prefix with `sudo`
|
|||
sudo script/grunt install
|
||||
```
|
||||
|
||||
To use the newly installed Edgehill, quit and restart all running Edgehill instances.
|
||||
To use the newly installed Nylas Mail, quit and restart all running Nylas Mail instances.
|
||||
|
||||
5. *Optionally*, you may generate distributable packages of Edgehill at `$TMPDIR/edgehill-build`. Currenty, `.deb` and `.rpm` package types are supported. To create a `.deb` package run:
|
||||
5. *Optionally*, you may generate distributable packages of Nylas Mail at `$TMPDIR/edgehill-build`. Currenty, `.deb` and `.rpm` package types are supported. To create a `.deb` package run:
|
||||
|
||||
```sh
|
||||
script/grunt mkdeb
|
||||
|
@ -101,7 +101,7 @@ script/build --build-dir /build/edgehill/here
|
|||
|
||||
### TypeError: Unable to watch path
|
||||
|
||||
If you get following error with a big traceback right after Edgehill starts:
|
||||
If you get following error with a big traceback right after Nylas Mail starts:
|
||||
|
||||
```
|
||||
TypeError: Unable to watch path
|
||||
|
@ -114,7 +114,7 @@ this is the reason for this error you can issue
|
|||
sudo sysctl fs.inotify.max_user_watches=32768
|
||||
```
|
||||
|
||||
and restart Edgehill. If Edgehill now works fine, you can make this setting permanent:
|
||||
and restart Nylas Mail. If Nylas Mail now works fine, you can make this setting permanent:
|
||||
|
||||
```sh
|
||||
echo 32768 | sudo tee -a /proc/sys/fs/inotify/max_user_watches
|
||||
|
@ -140,7 +140,7 @@ sudo update-alternatives --install /usr/bin/node node /usr/bin/nodejs 1 --slave
|
|||
|
||||
### AttributeError: 'module' object has no attribute 'script_main'
|
||||
|
||||
If you get following error with a big traceback while building Edgehill:
|
||||
If you get following error with a big traceback while building Nylas Mail:
|
||||
|
||||
```
|
||||
sys.exit(gyp.script_main()) AttributeError: 'module' object has no attribute 'script_main' gyp ERR!
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
## Instructions
|
||||
|
||||
```sh
|
||||
git clone git@github.com:inboxapp/edgehill.git
|
||||
git clone git@github.com:nylas/edgehill.git
|
||||
cd edgehill
|
||||
script/build # Creates application at /Applications/Edgehill.app
|
||||
```
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
# Use the `Git Shell` app which was installed by GitHub for Windows. Also Make
|
||||
# sure you have logged into the GitHub for Windows GUI App.
|
||||
cd C:\
|
||||
git clone https://github.com/inboxapp/edgehill/
|
||||
git clone https://github.com/nylas/edgehill/
|
||||
cd edgehill
|
||||
script/build # Creates application in the `Program Files` directory
|
||||
```
|
||||
|
|
|
@ -20,7 +20,7 @@ To create a Draft Store Extension, subclass {DraftStoreExtension} and override t
|
|||
This extension displays a warning before sending a draft that contains the names of competitor's products and if the user proceeds to send the draft containing the words, it appends a disclaimer.
|
||||
|
||||
```coffee
|
||||
{DraftStoreExtension} = require 'inbox-exports'
|
||||
{DraftStoreExtension} = require 'nylas-exports'
|
||||
|
||||
class ProductsExtension extends DraftStoreExtension
|
||||
|
||||
|
|
|
@ -97,6 +97,6 @@ by name to specify a loading order; otherwise, all style sheets are loaded.
|
|||
|
||||
###Installing a Package
|
||||
|
||||
Nylas Mail ships with many packages already bundled with the application. When the application launches, it looks for additional packages in `~/.inbox/packages`. Each package you create belongs in it's own directory inside this folder.
|
||||
Nylas Mail ships with many packages already bundled with the application. When the application launches, it looks for additional packages in `~/.nylas/packages`. Each package you create belongs in it's own directory inside this folder.
|
||||
|
||||
In the future, it will be possible to install packages directly from within the client.
|
||||
|
|
|
@ -12,12 +12,12 @@ For a quick introduction to React, take a look at Facebook's [Getting Started wi
|
|||
|
||||
Nylas Mail provides a set of core React components you can use in your packages. Many of the standard components listen for key events, include considerations for different platforms, and have extensive CSS. Wrapping standard components makes it easy to build rich interfaces that are consistent with the rest of the Nylas Mail platform.
|
||||
|
||||
To use a standard component, require it from `ui-components` and use it in your component's `render` method.
|
||||
To use a standard component, require it from `nylas-component-kit` and use it in your component's `render` method.
|
||||
|
||||
> Keep in mind that React's Component model is based on composition rather than inheritance. On other platforms, you might subclass {Popover} to create your own custom Popover. In React, you should wrap the standard Popover component in your own component, which provides the Popover with `props` and children to customize it's behavior.
|
||||
|
||||
|
||||
Here's a quick look at standard components you can require from `ui-components`:
|
||||
Here's a quick look at standard components you can require from `nylas-component-kit`:
|
||||
|
||||
- **{Menu}**: Allows you to display a list of items consistent with the rest of the Nylas Mail user experience.
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'global':
|
||||
'core':
|
||||
'themes': [
|
||||
'inbox-light-ui'
|
||||
'light-ui'
|
||||
]
|
||||
'disabledPackages': [
|
||||
"calendar-bar",
|
|
@ -29,7 +29,7 @@ Exports =
|
|||
EdgehillAPI: require '../src/flux/edgehill-api'
|
||||
|
||||
# Testing
|
||||
InboxTestUtils: require '../spec-inbox/test_utils'
|
||||
InboxTestUtils: require '../spec-nylas/test_utils'
|
||||
|
||||
# Component Registry
|
||||
ComponentRegistry: require '../src/component-registry'
|
|
@ -1,6 +1,6 @@
|
|||
React = require 'react'
|
||||
|
||||
{Actions} = require "inbox-exports"
|
||||
{Actions} = require "nylas-exports"
|
||||
|
||||
class AccountSidebarDividerItem extends React.Component
|
||||
displayName: 'AccountSidebarDividerItem'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
React = require 'react'
|
||||
{Actions} = require("inbox-exports")
|
||||
{Actions} = require("nylas-exports")
|
||||
|
||||
class AccountSidebarItem extends React.Component
|
||||
@displayName: "AccountSidebarItem"
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
React = require 'react'
|
||||
_ = require 'underscore-plus'
|
||||
classNames = require 'classnames'
|
||||
{Actions, Utils, WorkspaceStore} = require 'inbox-exports'
|
||||
{RetinaImg} = require 'ui-components'
|
||||
{Actions, Utils, WorkspaceStore} = require 'nylas-exports'
|
||||
{RetinaImg} = require 'nylas-component-kit'
|
||||
|
||||
class AccountSidebarSheetItem extends React.Component
|
||||
@displayName: 'AccountSidebarSheetItem'
|
||||
|
|
|
@ -7,7 +7,7 @@ _ = require 'underscore-plus'
|
|||
Tag,
|
||||
Message,
|
||||
FocusedTagStore,
|
||||
Thread} = require 'inbox-exports'
|
||||
Thread} = require 'nylas-exports'
|
||||
|
||||
AccountSidebarStore = Reflux.createStore
|
||||
init: ->
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
React = require 'react'
|
||||
classNames = require 'classnames'
|
||||
{Actions, Utils, WorkspaceStore} = require 'inbox-exports'
|
||||
{RetinaImg} = require 'ui-components'
|
||||
{Actions, Utils, WorkspaceStore} = require 'nylas-exports'
|
||||
{RetinaImg} = require 'nylas-component-kit'
|
||||
|
||||
class AccountSidebarTagItem extends React.Component
|
||||
@displayName: 'AccountSidebarTagItem'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
React = require 'react'
|
||||
{Actions} = require("inbox-exports")
|
||||
{Actions} = require("nylas-exports")
|
||||
SidebarDividerItem = require("./account-sidebar-divider-item")
|
||||
SidebarTagItem = require("./account-sidebar-tag-item")
|
||||
SidebarSheetItem = require("./account-sidebar-sheet-item")
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
React = require "react"
|
||||
AccountSidebar = require "./account-sidebar"
|
||||
{ComponentRegistry, WorkspaceStore} = require "inbox-exports"
|
||||
{ComponentRegistry, WorkspaceStore} = require "nylas-exports"
|
||||
|
||||
module.exports =
|
||||
item: null # The DOM item the main React component renders into
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
path = require 'path'
|
||||
React = require 'react'
|
||||
{Actions} = require 'inbox-exports'
|
||||
{Actions} = require 'nylas-exports'
|
||||
|
||||
# Passed in as props from MessageItem and FileDownloadStore
|
||||
# This is empty if the attachment isn't downloading.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ComponentRegistry} = require 'inbox-exports'
|
||||
{ComponentRegistry} = require 'nylas-exports'
|
||||
|
||||
module.exports =
|
||||
activate: (@state={}) ->
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Reflux = require 'reflux'
|
||||
_ = require 'underscore-plus'
|
||||
{DatabaseStore, NamespaceStore, Actions, Event, Calendar} = require 'inbox-exports'
|
||||
{DatabaseStore, NamespaceStore, Actions, Event, Calendar} = require 'nylas-exports'
|
||||
moment = require 'moment'
|
||||
|
||||
CalendarBarEventStore = Reflux.createStore
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
React = require 'react'
|
||||
{Actions} = require("inbox-exports")
|
||||
{Actions} = require("nylas-exports")
|
||||
moment = require 'moment'
|
||||
|
||||
class CalendarBarItem extends React.Component
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
React = require 'react'
|
||||
{Actions} = require("inbox-exports")
|
||||
{Actions} = require("nylas-exports")
|
||||
CalendarBarItem = require("./calendar-bar-item")
|
||||
CalendarBarEventStore = require ("./calendar-bar-event-store")
|
||||
|
||||
|
|
|
@ -5,12 +5,12 @@ _ = require 'underscore-plus'
|
|||
Actions,
|
||||
UndoManager,
|
||||
DraftStore,
|
||||
FileUploadStore} = require 'inbox-exports'
|
||||
FileUploadStore} = require 'nylas-exports'
|
||||
|
||||
{ResizableRegion,
|
||||
InjectedComponentSet,
|
||||
InjectedComponent,
|
||||
RetinaImg} = require 'ui-components'
|
||||
RetinaImg} = require 'nylas-component-kit'
|
||||
|
||||
FileUploads = require './file-uploads'
|
||||
ContenteditableComponent = require './contenteditable-component'
|
||||
|
|
|
@ -2,7 +2,7 @@ _ = require 'underscore-plus'
|
|||
React = require 'react'
|
||||
classNames = require 'classnames'
|
||||
sanitizeHtml = require 'sanitize-html'
|
||||
{Utils, DraftStore} = require 'inbox-exports'
|
||||
{Utils, DraftStore} = require 'nylas-exports'
|
||||
FloatingToolbar = require './floating-toolbar'
|
||||
|
||||
linkUUID = 0
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
path = require 'path'
|
||||
React = require 'react'
|
||||
{Actions,
|
||||
FileUploadStore} = require 'inbox-exports'
|
||||
FileUploadStore} = require 'nylas-exports'
|
||||
|
||||
class FileUpload extends React.Component
|
||||
render: =>
|
||||
|
|
|
@ -2,7 +2,7 @@ _ = require 'underscore-plus'
|
|||
React = require 'react/addons'
|
||||
classNames = require 'classnames'
|
||||
{CompositeDisposable} = require 'event-kit'
|
||||
{RetinaImg} = require 'ui-components'
|
||||
{RetinaImg} = require 'nylas-component-kit'
|
||||
|
||||
class FloatingToolbar extends React.Component
|
||||
@displayName = "FloatingToolbar"
|
||||
|
|
|
@ -5,7 +5,7 @@ React = require 'react'
|
|||
DatabaseStore,
|
||||
Message,
|
||||
ComponentRegistry,
|
||||
WorkspaceStore} = require('inbox-exports')
|
||||
WorkspaceStore} = require('nylas-exports')
|
||||
NewComposeButton = require('./new-compose-button')
|
||||
ComposerView = require('./composer-view')
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
React = require 'react'
|
||||
{Message, Actions, NamespaceStore} = require 'inbox-exports'
|
||||
{RetinaImg} = require 'ui-components'
|
||||
{Message, Actions, NamespaceStore} = require 'nylas-exports'
|
||||
{RetinaImg} = require 'nylas-component-kit'
|
||||
|
||||
class NewComposeButton extends React.Component
|
||||
@displayName: 'NewComposeButton'
|
||||
|
|
|
@ -3,8 +3,8 @@ _ = require 'underscore-plus'
|
|||
|
||||
{Contact,
|
||||
Utils,
|
||||
ContactStore} = require 'inbox-exports'
|
||||
{TokenizingTextField, Menu} = require 'ui-components'
|
||||
ContactStore} = require 'nylas-exports'
|
||||
{TokenizingTextField, Menu} = require 'nylas-component-kit'
|
||||
|
||||
class ParticipantsTextField extends React.Component
|
||||
@displayName: 'ParticipantsTextField'
|
||||
|
|
|
@ -11,13 +11,13 @@ ReactTestUtils = React.addons.TestUtils
|
|||
DraftStore,
|
||||
DatabaseStore,
|
||||
InboxTestUtils,
|
||||
NamespaceStore} = require "inbox-exports"
|
||||
NamespaceStore} = require "nylas-exports"
|
||||
|
||||
u1 = new Contact(name: "Christine Spang", email: "spang@inboxapp.com")
|
||||
u2 = new Contact(name: "Michael Grinich", email: "mg@inboxapp.com")
|
||||
u3 = new Contact(name: "Evan Morikawa", email: "evan@inboxapp.com")
|
||||
u4 = new Contact(name: "Zoë Leiper", email: "zip@inboxapp.com")
|
||||
u5 = new Contact(name: "Ben Gotow", email: "ben@inboxapp.com")
|
||||
u1 = new Contact(name: "Christine Spang", email: "spang@nylas.com")
|
||||
u2 = new Contact(name: "Michael Grinich", email: "mg@nylas.com")
|
||||
u3 = new Contact(name: "Evan Morikawa", email: "evan@nylas.com")
|
||||
u4 = new Contact(name: "Zoë Leiper", email: "zip@nylas.com")
|
||||
u5 = new Contact(name: "Ben Gotow", email: "ben@nylas.com")
|
||||
users = [u1, u2, u3, u4, u5]
|
||||
NamespaceStore._current = new Namespace(
|
||||
{name: u1.name, provider: "inbox", emailAddress: u1.email})
|
||||
|
@ -45,7 +45,7 @@ searchContactStub = (email) ->
|
|||
ComposerView = proxyquire "../lib/composer-view",
|
||||
"./file-uploads": reactStub("file-uploads")
|
||||
"./participants-text-field": textFieldStub("")
|
||||
"inbox-exports":
|
||||
"nylas-exports":
|
||||
ContactStore:
|
||||
searchContacts: (email) -> searchContactStub
|
||||
ComponentRegistry:
|
||||
|
|
|
@ -9,22 +9,22 @@ proxyquire = require 'proxyquire'
|
|||
ContactStore,
|
||||
Contact,
|
||||
Utils,
|
||||
} = require 'inbox-exports'
|
||||
} = require 'nylas-exports'
|
||||
|
||||
ParticipantsTextField = proxyquire '../lib/participants-text-field',
|
||||
'inbox-exports': {Contact, ContactStore}
|
||||
'nylas-exports': {Contact, ContactStore}
|
||||
|
||||
participant1 = new Contact
|
||||
email: 'ben@nilas.com'
|
||||
email: 'ben@nylas.com'
|
||||
participant2 = new Contact
|
||||
email: 'ben@example.com'
|
||||
name: 'ben'
|
||||
name: 'Ben Gotow'
|
||||
participant3 = new Contact
|
||||
email: 'ben@inboxapp.com'
|
||||
name: 'Duplicate email'
|
||||
name: 'Ben Inboxer'
|
||||
participant4 = new Contact
|
||||
email: 'ben@elsewhere.com',
|
||||
name: 'ben again'
|
||||
name: 'ben Again'
|
||||
participant5 = new Contact
|
||||
email: 'evan@elsewhere.com',
|
||||
name: 'EVAN'
|
||||
|
@ -105,14 +105,14 @@ describe 'ParticipantsTextField', ->
|
|||
|
||||
describe "when text contains Name (Email) formatted data", ->
|
||||
it "should correctly parse it into named Contact objects", ->
|
||||
newContact1 = new Contact(name:'Ben Imposter', email:'imposter@nilas.com')
|
||||
newContact2 = new Contact(name:'Nilas Team', email:'feedback@nilas.com')
|
||||
|
||||
newContact1 = new Contact(name:'Ben Imposter', email:'imposter@nylas.com')
|
||||
newContact2 = new Contact(name:'Nylas Team', email:'feedback@nylas.com')
|
||||
|
||||
inputs = [
|
||||
"Ben Imposter <imposter@nilas.com>, Nilas Team <feedback@nilas.com>",
|
||||
"\n\nbla\nBen Imposter (imposter@nilas.com), Nilas Team (feedback@nilas.com)",
|
||||
"Hello world! I like cheese. \rBen Imposter (imposter@nilas.com)\nNilas Team (feedback@nilas.com)",
|
||||
"Ben Imposter<imposter@nilas.com>Nilas Team (feedback@nilas.com)"
|
||||
"Ben Imposter <imposter@nylas.com>, Nylas Team <feedback@nylas.com>",
|
||||
"\n\nbla\nBen Imposter (imposter@nylas.com), Nylas Team (feedback@nylas.com)",
|
||||
"Hello world! I like cheese. \rBen Imposter (imposter@nylas.com)\nNylas Team (feedback@nylas.com)",
|
||||
"Ben Imposter<imposter@nylas.com>Nylas Team (feedback@nylas.com)"
|
||||
]
|
||||
|
||||
for input in inputs
|
||||
|
@ -123,14 +123,14 @@ describe 'ParticipantsTextField', ->
|
|||
|
||||
describe "when text contains emails mixed with garbage text", ->
|
||||
it "should still parse out emails into Contact objects", ->
|
||||
newContact1 = new Contact(name:'garbage-man@nilas.com', email:'garbage-man@nilas.com')
|
||||
newContact2 = new Contact(name:'recycling-guy@nilas.com', email:'recycling-guy@nilas.com')
|
||||
|
||||
newContact1 = new Contact(name:'garbage-man@nylas.com', email:'garbage-man@nylas.com')
|
||||
newContact2 = new Contact(name:'recycling-guy@nylas.com', email:'recycling-guy@nylas.com')
|
||||
|
||||
inputs = [
|
||||
"Hello world I real. \n asd. garbage-man@nilas.com—he's cool Also 'recycling-guy@nilas.com'!",
|
||||
"garbage-man@nilas.com|recycling-guy@nilas.com",
|
||||
"garbage-man@nilas.com1WHOA I REALLY HATE DATA,recycling-guy@nilas.com",
|
||||
"nils.com garbage-man@nilas.com @nilas.com nope@.com nope!recycling-guy@nilas.com HOLLA AT recycling-guy@nilas."
|
||||
"Hello world I real. \n asd. garbage-man@nylas.com—he's cool Also 'recycling-guy@nylas.com'!",
|
||||
"garbage-man@nylas.com|recycling-guy@nylas.com",
|
||||
"garbage-man@nylas.com1WHOA I REALLY HATE DATA,recycling-guy@nylas.com",
|
||||
"nils.com garbage-man@nylas.com @nylas.com nope@.com nope!recycling-guy@nylas.com HOLLA AT recycling-guy@nylas."
|
||||
]
|
||||
|
||||
for input in inputs
|
||||
|
|
|
@ -5,7 +5,7 @@ fs = require 'fs'
|
|||
{WorkspaceStore,
|
||||
FocusedContentStore,
|
||||
FileDownloadStore,
|
||||
Actions} = require 'inbox-exports'
|
||||
Actions} = require 'nylas-exports'
|
||||
|
||||
module.exports =
|
||||
FileFrameStore = Reflux.createStore
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
React = require 'react'
|
||||
_ = require "underscore-plus"
|
||||
{Utils, FileDownloadStore, Actions} = require 'inbox-exports'
|
||||
{Spinner, EventedIFrame} = require 'ui-components'
|
||||
{Utils, FileDownloadStore, Actions} = require 'nylas-exports'
|
||||
{Spinner, EventedIFrame} = require 'nylas-component-kit'
|
||||
FileFrameStore = require './file-frame-store'
|
||||
|
||||
class FileFrame extends React.Component
|
||||
|
|
|
@ -2,7 +2,7 @@ Reflux = require 'reflux'
|
|||
_ = require 'underscore-plus'
|
||||
{File,
|
||||
DatabaseStore,
|
||||
DatabaseView} = require 'inbox-exports'
|
||||
DatabaseView} = require 'nylas-exports'
|
||||
|
||||
module.exports =
|
||||
FileListStore = Reflux.createStore
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
_ = require 'underscore-plus'
|
||||
React = require 'react'
|
||||
{ListTabular, MultiselectList} = require 'ui-components'
|
||||
{ListTabular, MultiselectList} = require 'nylas-component-kit'
|
||||
{Actions,
|
||||
DatabaseStore,
|
||||
ComponentRegistry} = require 'inbox-exports'
|
||||
ComponentRegistry} = require 'nylas-exports'
|
||||
FileListStore = require './file-list-store'
|
||||
|
||||
class FileList extends React.Component
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
React = require "react/addons"
|
||||
FileListStore = require './file-list-store'
|
||||
{MultiselectActionBar} = require 'ui-components'
|
||||
{MultiselectActionBar} = require 'nylas-component-kit'
|
||||
|
||||
class FileSelectionBar extends React.Component
|
||||
@displayName: 'FileSelectionBar'
|
||||
|
|
|
@ -2,7 +2,7 @@ FileFrame = require "./file-frame"
|
|||
FileList = require './file-list'
|
||||
FileSelectionBar = require './file-selection-bar'
|
||||
{ComponentRegistry,
|
||||
WorkspaceStore} = require 'inbox-exports'
|
||||
WorkspaceStore} = require 'nylas-exports'
|
||||
|
||||
module.exports =
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Reflux = require 'reflux'
|
||||
{Actions} = require 'inbox-exports'
|
||||
{Actions} = require 'nylas-exports'
|
||||
qs = require 'querystring'
|
||||
_ = require 'underscore-plus'
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
React = require 'react/addons'
|
||||
classNames = require 'classnames'
|
||||
_ = require 'underscore-plus'
|
||||
{Utils} = require 'inbox-exports'
|
||||
{Utils} = require 'nylas-exports'
|
||||
|
||||
class ActivityBarTask extends React.Component
|
||||
@displayName: 'ActivityBarTask'
|
||||
|
|
|
@ -6,8 +6,8 @@ React = require 'react/addons'
|
|||
TaskQueue,
|
||||
Actions,
|
||||
Contact,
|
||||
Message} = require 'inbox-exports'
|
||||
{ResizableRegion} = require 'ui-components'
|
||||
Message} = require 'nylas-exports'
|
||||
{ResizableRegion} = require 'nylas-component-kit'
|
||||
|
||||
ActivityBarStore = require './activity-bar-store'
|
||||
ActivityBarTask = require './activity-bar-task'
|
||||
|
@ -169,15 +169,15 @@ class ActivityBar extends React.Component
|
|||
from: [NamespaceStore.current().me()]
|
||||
to: [
|
||||
new Contact
|
||||
name: "Nilas Team"
|
||||
email: "feedback@nilas.com"
|
||||
name: "Nylas Team"
|
||||
email: "feedback@nylas.com"
|
||||
]
|
||||
date: (new Date)
|
||||
draft: true
|
||||
subject: "Feedback"
|
||||
namespaceId: NamespaceStore.current().id
|
||||
body: """
|
||||
Hi, Edgehill team! I have some feedback for you.<br/>
|
||||
Hi, Nylas team! I have some feedback for you.<br/>
|
||||
<br/>
|
||||
<b>What happened:</b><br/>
|
||||
<br/>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
React = require 'react'
|
||||
{ComponentRegistry, WorkspaceStore} = require 'inbox-exports'
|
||||
{ComponentRegistry, WorkspaceStore} = require 'nylas-exports'
|
||||
ActivityBar = require './activity-bar'
|
||||
|
||||
module.exports =
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
React = require "react"
|
||||
{Actions} = require 'inbox-exports'
|
||||
{Actions} = require 'nylas-exports'
|
||||
crypto = require "crypto"
|
||||
|
||||
class ContactChip extends React.Component
|
||||
|
|
|
@ -2,7 +2,7 @@ React = require "react"
|
|||
_ = require "underscore-plus"
|
||||
ContactChip = require './ContactChip'
|
||||
|
||||
{NamespaceStore} = require "inbox-exports"
|
||||
{NamespaceStore} = require "nylas-exports"
|
||||
|
||||
# Parameters
|
||||
# clickable (optional) - is this currently clickable?
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ComponentRegistry} = require 'inbox-exports'
|
||||
{ComponentRegistry} = require 'nylas-exports'
|
||||
Participants = require './Participants'
|
||||
|
||||
module.exports =
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "inbox-light-ui",
|
||||
"name": "light-ui",
|
||||
"theme": "ui",
|
||||
"version": "0.1.0",
|
||||
"description": "The Inbox Mail Client Theme",
|
|
@ -1,7 +1,7 @@
|
|||
React = require 'react'
|
||||
_ = require "underscore-plus"
|
||||
{EventedIFrame} = require 'ui-components'
|
||||
{Utils} = require 'inbox-exports'
|
||||
{EventedIFrame} = require 'nylas-component-kit'
|
||||
{Utils} = require 'nylas-exports'
|
||||
|
||||
EmailFixingStyles = """
|
||||
<style>
|
||||
|
|
|
@ -2,7 +2,7 @@ MessageList = require "./message-list"
|
|||
MessageToolbarItems = require "./message-toolbar-items"
|
||||
MessageSubjectItem = require "./message-subject-item"
|
||||
{ComponentRegistry,
|
||||
WorkspaceStore} = require 'inbox-exports'
|
||||
WorkspaceStore} = require 'nylas-exports'
|
||||
SidebarThreadParticipants = require "./sidebar-thread-participants"
|
||||
|
||||
module.exports =
|
||||
|
|
|
@ -8,10 +8,10 @@ MessageTimestamp = require "./message-timestamp"
|
|||
Actions,
|
||||
MessageUtils,
|
||||
ComponentRegistry,
|
||||
FileDownloadStore} = require 'inbox-exports'
|
||||
FileDownloadStore} = require 'nylas-exports'
|
||||
{RetinaImg,
|
||||
InjectedComponentSet,
|
||||
InjectedComponent} = require 'ui-components'
|
||||
InjectedComponent} = require 'nylas-component-kit'
|
||||
Autolinker = require 'autolinker'
|
||||
remote = require 'remote'
|
||||
|
||||
|
@ -164,11 +164,11 @@ class MessageItem extends React.Component
|
|||
Actions.composeForward(threadId: tId, messageId: mId) if (tId and mId)
|
||||
|
||||
_onReport: (issueType) =>
|
||||
{Contact, Message, DatabaseStore, NamespaceStore} = require 'inbox-exports'
|
||||
{Contact, Message, DatabaseStore, NamespaceStore} = require 'nylas-exports'
|
||||
|
||||
draft = new Message
|
||||
from: [NamespaceStore.current().me()]
|
||||
to: [new Contact(name: "Nilas Team", email: "feedback@nilas.com")]
|
||||
to: [new Contact(name: "Nilas Team", email: "feedback@nylas.com")]
|
||||
date: (new Date)
|
||||
draft: true
|
||||
subject: "Feedback - Message Display Issue (#{issueType})"
|
||||
|
|
|
@ -2,12 +2,12 @@ _ = require 'underscore-plus'
|
|||
React = require 'react'
|
||||
classNames = require 'classnames'
|
||||
MessageItem = require "./message-item"
|
||||
{Utils, Actions, MessageStore, ComponentRegistry} = require("inbox-exports")
|
||||
{Utils, Actions, MessageStore, ComponentRegistry} = require("nylas-exports")
|
||||
{Spinner,
|
||||
ResizableRegion,
|
||||
RetinaImg,
|
||||
InjectedComponentSet,
|
||||
InjectedComponent} = require('ui-components')
|
||||
InjectedComponent} = require('nylas-component-kit')
|
||||
|
||||
class MessageList extends React.Component
|
||||
@displayName: 'MessageList'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
_ = require 'underscore-plus'
|
||||
React = require 'react'
|
||||
{FocusedContentStore} = require 'inbox-exports'
|
||||
{FocusedContentStore} = require 'nylas-exports'
|
||||
|
||||
class MessageSubjectItem extends React.Component
|
||||
@displayName: 'MessageSubjectItem'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
_ = require 'underscore-plus'
|
||||
moment = require 'moment-timezone'
|
||||
React = require 'react'
|
||||
{Utils} = require 'inbox-exports'
|
||||
{Utils} = require 'nylas-exports'
|
||||
|
||||
class MessageTimestamp extends React.Component
|
||||
@displayName: 'MessageTimestamp'
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
_ = require 'underscore-plus'
|
||||
React = require 'react'
|
||||
classNames = require 'classnames'
|
||||
{Actions, Utils, FocusedContentStore, WorkspaceStore} = require 'inbox-exports'
|
||||
{RetinaImg, Popover, Menu} = require 'ui-components'
|
||||
{Actions, Utils, FocusedContentStore, WorkspaceStore} = require 'nylas-exports'
|
||||
{RetinaImg, Popover, Menu} = require 'nylas-component-kit'
|
||||
|
||||
ThreadArchiveButton = require './thread-archive-button'
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
_ = require 'underscore-plus'
|
||||
React = require "react"
|
||||
|
||||
{Actions, FocusedContactsStore} = require("inbox-exports")
|
||||
{Actions, FocusedContactsStore} = require("nylas-exports")
|
||||
|
||||
class SidebarThreadParticipants extends React.Component
|
||||
@displayName: 'SidebarThreadParticipants'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
_ = require 'underscore-plus'
|
||||
React = require 'react'
|
||||
{Actions, Utils} = require 'inbox-exports'
|
||||
{RetinaImg} = require 'ui-components'
|
||||
{Actions, Utils} = require 'nylas-exports'
|
||||
{RetinaImg} = require 'nylas-component-kit'
|
||||
|
||||
class ArchiveButton extends React.Component
|
||||
@displayName: "ArchiveButton"
|
||||
|
|
|
@ -10,10 +10,10 @@ classNames = require 'classnames'
|
|||
DatabaseStore,
|
||||
Tag,
|
||||
Thread,
|
||||
TaskQueue} = require 'inbox-exports'
|
||||
TaskQueue} = require 'nylas-exports'
|
||||
{RetinaImg,
|
||||
Popover,
|
||||
Menu} = require 'ui-components'
|
||||
Menu} = require 'nylas-component-kit'
|
||||
|
||||
TagsStore = Reflux.createStore
|
||||
init: ->
|
||||
|
|
|
@ -8,11 +8,11 @@ ReactTestUtils = React.addons.TestUtils
|
|||
Thread,
|
||||
Utils,
|
||||
FileDownloadStore,
|
||||
InboxTestUtils} = require "inbox-exports"
|
||||
InboxTestUtils} = require "nylas-exports"
|
||||
|
||||
EmailFrameStub = React.createClass({render: -> <div></div>})
|
||||
|
||||
{InjectedComponent} = require 'ui-components'
|
||||
{InjectedComponent} = require 'nylas-component-kit'
|
||||
file = new File
|
||||
id: 'file_1_id'
|
||||
filename: 'a.png'
|
||||
|
@ -55,19 +55,19 @@ download_inline =
|
|||
|
||||
user_1 = new Contact
|
||||
name: "User One"
|
||||
email: "user1@inboxapp.com"
|
||||
email: "user1@nylas.com"
|
||||
user_2 = new Contact
|
||||
name: "User Two"
|
||||
email: "user2@inboxapp.com"
|
||||
email: "user2@nylas.com"
|
||||
user_3 = new Contact
|
||||
name: "User Three"
|
||||
email: "user3@inboxapp.com"
|
||||
email: "user3@nylas.com"
|
||||
user_4 = new Contact
|
||||
name: "User Four"
|
||||
email: "user4@inboxapp.com"
|
||||
email: "user4@nylas.com"
|
||||
user_5 = new Contact
|
||||
name: "User Five"
|
||||
email: "user5@inboxapp.com"
|
||||
email: "user5@nylas.com"
|
||||
|
||||
|
||||
MessageItem = proxyquire '../lib/message-item',
|
||||
|
|
|
@ -14,9 +14,9 @@ TestUtils = React.addons.TestUtils
|
|||
MessageStore,
|
||||
NamespaceStore,
|
||||
InboxTestUtils,
|
||||
ComponentRegistry} = require "inbox-exports"
|
||||
ComponentRegistry} = require "nylas-exports"
|
||||
|
||||
{InjectedComponent} = require 'ui-components'
|
||||
{InjectedComponent} = require 'nylas-component-kit'
|
||||
|
||||
MessageItem = proxyquire("../lib/message-item", {
|
||||
"./email-frame": React.createClass({render: -> <div></div>})
|
||||
|
@ -30,7 +30,7 @@ MessageParticipants = require "../lib/message-participants"
|
|||
|
||||
me = new Namespace(
|
||||
"name": "User One",
|
||||
"email": "user1@inboxapp.com"
|
||||
"email": "user1@nylas.com"
|
||||
"provider": "inbox"
|
||||
)
|
||||
NamespaceStore._current = me
|
||||
|
@ -42,19 +42,19 @@ user_headers =
|
|||
|
||||
user_1 = _.extend _.clone(user_headers),
|
||||
name: "User One"
|
||||
email: "user1@inboxapp.com"
|
||||
email: "user1@nylas.com"
|
||||
user_2 = _.extend _.clone(user_headers),
|
||||
name: "User Two"
|
||||
email: "user2@inboxapp.com"
|
||||
email: "user2@nylas.com"
|
||||
user_3 = _.extend _.clone(user_headers),
|
||||
name: "User Three"
|
||||
email: "user3@inboxapp.com"
|
||||
email: "user3@nylas.com"
|
||||
user_4 = _.extend _.clone(user_headers),
|
||||
name: "User Four"
|
||||
email: "user4@inboxapp.com"
|
||||
email: "user4@nylas.com"
|
||||
user_5 = _.extend _.clone(user_headers),
|
||||
name: "User Five"
|
||||
email: "user5@inboxapp.com"
|
||||
email: "user5@nylas.com"
|
||||
|
||||
m1 = (new Message).fromJSON({
|
||||
"id" : "111",
|
||||
|
|
|
@ -2,24 +2,24 @@ _ = require 'underscore-plus'
|
|||
React = require "react/addons"
|
||||
ReactTestUtils = React.addons.TestUtils
|
||||
TestUtils = React.addons.TestUtils
|
||||
{Contact, Message} = require "inbox-exports"
|
||||
{Contact, Message} = require "nylas-exports"
|
||||
MessageParticipants = require "../lib/message-participants"
|
||||
|
||||
user_1 =
|
||||
name: "User One"
|
||||
email: "user1@nilas.com"
|
||||
email: "user1@nylas.com"
|
||||
user_2 =
|
||||
name: "User Two"
|
||||
email: "user2@nilas.com"
|
||||
email: "user2@nylas.com"
|
||||
user_3 =
|
||||
name: "User Three"
|
||||
email: "user3@nilas.com"
|
||||
email: "user3@nylas.com"
|
||||
user_4 =
|
||||
name: "User Four"
|
||||
email: "user4@nilas.com"
|
||||
email: "user4@nylas.com"
|
||||
user_5 =
|
||||
name: "User Five"
|
||||
email: "user5@nilas.com"
|
||||
email: "user5@nylas.com"
|
||||
|
||||
many_users = (new Contact({name: "User #{i}", email:"#{i}@app.com"}) for i in [0..100])
|
||||
|
||||
|
@ -90,7 +90,7 @@ describe "MessageParticipants", ->
|
|||
|
||||
it "uses full names", ->
|
||||
to = ReactTestUtils.findRenderedDOMComponentWithClass(@participants, "to-contact")
|
||||
expect(React.findDOMNode(to).innerText.trim()).toEqual "User Two <user2@nilas.com>"
|
||||
expect(React.findDOMNode(to).innerText.trim()).toEqual "User Two <user2@nylas.com>"
|
||||
|
||||
|
||||
# TODO: We no longer display "to everyone"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{DraftStoreExtension} = require 'inbox-exports'
|
||||
{DraftStoreExtension} = require 'nylas-exports'
|
||||
|
||||
class TemplatesDraftStoreExtension extends DraftStoreExtension
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
React = require "react"
|
||||
{ComponentRegistry, DraftStore} = require 'inbox-exports'
|
||||
{ComponentRegistry, DraftStore} = require 'nylas-exports'
|
||||
TemplatePicker = require './template-picker'
|
||||
TemplateStatusBar = require './template-status-bar'
|
||||
Extension = require './draft-extension'
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
_ = require 'underscore-plus'
|
||||
React = require 'react'
|
||||
TemplateStore = require './template-store'
|
||||
{Actions, Message, DatabaseStore} = require 'inbox-exports'
|
||||
{Popover, Menu, RetinaImg} = require 'ui-components'
|
||||
{Actions, Message, DatabaseStore} = require 'nylas-exports'
|
||||
{Popover, Menu, RetinaImg} = require 'nylas-component-kit'
|
||||
|
||||
class TemplatePicker extends React.Component
|
||||
@displayName: 'TemplatePicker'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
_ = require 'underscore-plus'
|
||||
React = require 'react'
|
||||
{Actions, Message, DraftStore} = require 'inbox-exports'
|
||||
{Actions, Message, DraftStore} = require 'nylas-exports'
|
||||
|
||||
class TemplateStatusBar extends React.Component
|
||||
@displayName: 'TemplateStatusBar'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Reflux = require 'reflux'
|
||||
_ = require 'underscore-plus'
|
||||
{DatabaseStore, DraftStore, Actions, Message} = require 'inbox-exports'
|
||||
{DatabaseStore, DraftStore, Actions, Message} = require 'nylas-exports'
|
||||
path = require 'path'
|
||||
fs = require 'fs-plus'
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{Message, Actions, DatabaseStore, DraftStore} = require 'inbox-exports'
|
||||
{Message, Actions, DatabaseStore, DraftStore} = require 'nylas-exports'
|
||||
TemplateStore = require '../lib/template-store'
|
||||
fs = require 'fs-plus'
|
||||
shell = require 'shell'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ComponentRegistry, WorkspaceStore} = require 'inbox-exports'
|
||||
{ComponentRegistry, WorkspaceStore} = require 'nylas-exports'
|
||||
ModeToggle = require './mode-toggle'
|
||||
|
||||
module.exports =
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ComponentRegistry,
|
||||
WorkspaceStore,
|
||||
Actions} = require "inbox-exports"
|
||||
{RetinaImg} = require 'ui-components'
|
||||
Actions} = require "nylas-exports"
|
||||
{RetinaImg} = require 'nylas-component-kit'
|
||||
React = require "react"
|
||||
_ = require "underscore-plus"
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ComponentRegistry,
|
||||
WorkspaceStore,
|
||||
Actions} = require "inbox-exports"
|
||||
{RetinaImg} = require 'ui-components'
|
||||
Actions} = require "nylas-exports"
|
||||
{RetinaImg} = require 'nylas-component-kit'
|
||||
React = require "react"
|
||||
_ = require "underscore-plus"
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
exec = require('child_process').exec
|
||||
fs = require('fs')
|
||||
|
||||
bundleIdentifier = 'com.inbox.edgehill'
|
||||
bundleIdentifier = 'com.nylas.nylas-mail'
|
||||
|
||||
module.exports =
|
||||
class LaunchServices
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{Actions} = require 'inbox-exports'
|
||||
{Actions} = require 'nylas-exports'
|
||||
LaunchServices = require './launch-services'
|
||||
|
||||
NOTIF_ACTION_YES = 'mailto:set-default-yes'
|
||||
|
@ -22,7 +22,7 @@ module.exports =
|
|||
Actions.postNotification
|
||||
type: 'info',
|
||||
sticky: true
|
||||
message: "Thanks for trying out Edgehill! Would you like to make it your default mail client?",
|
||||
message: "Thanks for trying out Nylas Mail! Would you like to make it your default mail client?",
|
||||
icon: 'fa-inbox',
|
||||
actions: [{
|
||||
label: 'Yes'
|
||||
|
|
|
@ -154,7 +154,7 @@ describe "LaunchServices", ->
|
|||
"LSHandlerContentTagClass": "public.filename-extension",
|
||||
"LSHandlerRoleAll": "com.sublimetext.2"
|
||||
}, {
|
||||
"LSHandlerRoleAll": "com.inbox.edgehill",
|
||||
"LSHandlerRoleAll": "com.nylas.nylas-mail",
|
||||
"LSHandlerURLScheme": "mailto"
|
||||
}])
|
||||
@services.isRegisteredForURLScheme 'mailto', (registered) ->
|
||||
|
@ -170,7 +170,7 @@ describe "LaunchServices", ->
|
|||
LSHandlerContentTagClass: "public.filename-extension",
|
||||
LSHandlerRoleAll: "com.sublimetext.2"
|
||||
},{
|
||||
LSHandlerRoleAll: "com.inbox.edgehill",
|
||||
LSHandlerRoleAll: "com.nylas.nylas-mail",
|
||||
LSHandlerURLScheme: "atom"
|
||||
}])
|
||||
@services.isRegisteredForURLScheme 'mailto', (registered) ->
|
||||
|
@ -202,7 +202,7 @@ describe "LaunchServices", ->
|
|||
@services.registerForURLScheme 'mailto', =>
|
||||
@services.readDefaults (defaults) ->
|
||||
match = _.find defaults, (d) ->
|
||||
d.LSHandlerURLScheme is 'mailto' and d.LSHandlerRoleAll is 'com.inbox.edgehill'
|
||||
d.LSHandlerURLScheme is 'mailto' and d.LSHandlerRoleAll is 'com.nylas.nylas-mail'
|
||||
expect(match).not.toBe(null)
|
||||
|
||||
it "should write the new defaults", ->
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
remote = require 'remote'
|
||||
{Actions} = require 'inbox-exports'
|
||||
{Actions} = require 'nylas-exports'
|
||||
ipc = require('ipc')
|
||||
|
||||
module.exports =
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
_ = require 'underscore-plus'
|
||||
proxyquire = require 'proxyquire'
|
||||
Reflux = require 'reflux'
|
||||
{Actions} = require 'inbox-exports'
|
||||
{Actions} = require 'nylas-exports'
|
||||
|
||||
stubUpdaterState = null
|
||||
stubUpdaterReleaseVersion = null
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
React = require "react"
|
||||
Notifications = require "./notifications"
|
||||
NotificationsStickyBar = require "./notifications-sticky-bar"
|
||||
{ComponentRegistry, WorkspaceStore} = require("inbox-exports")
|
||||
{ComponentRegistry, WorkspaceStore} = require("nylas-exports")
|
||||
|
||||
module.exports =
|
||||
item: null # The DOM item the main React component renders into
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
React = require 'react'
|
||||
{Actions} = require 'inbox-exports'
|
||||
{Actions} = require 'nylas-exports'
|
||||
NotificationStore = require './notifications-store'
|
||||
|
||||
class NotificationStickyItem extends React.Component
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
_ = require 'underscore-plus'
|
||||
Reflux = require 'reflux'
|
||||
{Actions} = require 'inbox-exports'
|
||||
{Actions} = require 'nylas-exports'
|
||||
|
||||
VERBOSE = false
|
||||
DISPLAY_TIME = 3000 # in ms
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
NotificationsStore = require '../lib/notifications-store.coffee'
|
||||
Notification = NotificationsStore.Notification
|
||||
{Actions} = require 'inbox-exports'
|
||||
{Actions} = require 'nylas-exports'
|
||||
|
||||
describe 'Notification', ->
|
||||
|
||||
|
|
|
@ -3,8 +3,8 @@ ReactCSSTransitionGroup = React.addons.CSSTransitionGroup
|
|||
OnboardingActions = require './onboarding-actions'
|
||||
OnboardingStore = require './onboarding-store'
|
||||
querystring = require 'querystring'
|
||||
{EdgehillAPI} = require 'inbox-exports'
|
||||
{RetinaImg} = require 'ui-components'
|
||||
{EdgehillAPI} = require 'nylas-exports'
|
||||
{RetinaImg} = require 'nylas-component-kit'
|
||||
|
||||
class ContainerView extends React.Component
|
||||
|
||||
|
@ -65,14 +65,14 @@ class ContainerView extends React.Component
|
|||
<RetinaImg name="onboarding-close.png"/>
|
||||
</div>
|
||||
<RetinaImg name="onboarding-logo.png" className="logo"/>
|
||||
<h2>Welcome to Nilas</h2>
|
||||
<h2>Welcome to Nylas</h2>
|
||||
|
||||
<RetinaImg name="onboarding-divider.png" />
|
||||
|
||||
<form role="form" className="thin-container">
|
||||
<div className="prompt">Enter your email address:</div>
|
||||
<input className="input-bordered" type="email" placeholder="you@gmail.com" tabIndex="1" value={@state.email} onChange={@_onValueChange} id="email" />
|
||||
<button className="btn btn-larger btn-gradient" style={width:215} onClick={@_fireStart}>Start using Nilas</button>
|
||||
<button className="btn btn-larger btn-gradient" style={width:215} onClick={@_fireStart}>Start using Nylas</button>
|
||||
{@_environmentComponent()}
|
||||
</form>
|
||||
|
||||
|
@ -118,7 +118,7 @@ class ContainerView extends React.Component
|
|||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
_environmentComponent: =>
|
||||
return [] unless atom.inDevMode()
|
||||
<div className="environment-selector">
|
||||
|
@ -162,4 +162,4 @@ class ContainerView extends React.Component
|
|||
OnboardingActions.moveToPreviousPage()
|
||||
|
||||
|
||||
module.exports = ContainerView
|
||||
module.exports = ContainerView
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Reflux = require 'reflux'
|
||||
Actions = require './onboarding-actions'
|
||||
{EdgehillAPI} = require 'inbox-exports'
|
||||
{EdgehillAPI} = require 'nylas-exports'
|
||||
ipc = require 'ipc'
|
||||
|
||||
return unless atom.getWindowType() is "onboarding"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
path = require 'path'
|
||||
require 'coffee-react/register'
|
||||
React = require 'react'
|
||||
{ComponentRegistry, WorkspaceStore} = require 'inbox-exports'
|
||||
{ComponentRegistry, WorkspaceStore} = require 'nylas-exports'
|
||||
SearchBar = require './search-bar'
|
||||
|
||||
module.exports =
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
React = require 'react/addons'
|
||||
classNames = require 'classnames'
|
||||
{Actions} = require 'inbox-exports'
|
||||
{Menu, RetinaImg} = require 'ui-components'
|
||||
{Actions} = require 'nylas-exports'
|
||||
{Menu, RetinaImg} = require 'nylas-component-kit'
|
||||
SearchSuggestionStore = require './search-suggestion-store'
|
||||
_ = require 'underscore-plus'
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Reflux = require 'reflux'
|
||||
{Actions,
|
||||
Contact,
|
||||
ContactStore} = require 'inbox-exports'
|
||||
ContactStore} = require 'nylas-exports'
|
||||
_ = require 'underscore-plus'
|
||||
|
||||
# Stores should closely match the needs of a particular part of the front end.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
React = require 'react'
|
||||
ReactTestUtils = React.addons.TestUtils
|
||||
|
||||
{Actions} = require 'inbox-exports'
|
||||
{Actions} = require 'nylas-exports'
|
||||
|
||||
SearchBar = require '../lib/search-bar'
|
||||
SearchSuggestionStore = require '../lib/search-suggestion-store.coffee'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
_ = require 'underscore-plus'
|
||||
Reflux = require 'reflux'
|
||||
request = require 'request'
|
||||
{Contact, ContactStore, DatabaseStore, FocusedContactsStore} = require 'inbox-exports'
|
||||
{Contact, ContactStore, DatabaseStore, FocusedContactsStore} = require 'nylas-exports'
|
||||
|
||||
module.exports =
|
||||
FullContactStore = Reflux.createStore
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
_ = require 'underscore-plus'
|
||||
React = require "react"
|
||||
SidebarFullContact = require "./sidebar-fullcontact"
|
||||
{ComponentRegistry, WorkspaceStore} = require "inbox-exports"
|
||||
{ComponentRegistry, WorkspaceStore} = require "nylas-exports"
|
||||
|
||||
module.exports =
|
||||
item: null
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
_ = require 'underscore-plus'
|
||||
React = require "react"
|
||||
|
||||
{Actions} = require 'inbox-exports'
|
||||
{RetinaImg} = require 'ui-components'
|
||||
{Actions} = require 'nylas-exports'
|
||||
{RetinaImg} = require 'nylas-component-kit'
|
||||
|
||||
class SidebarFullContactDetails extends React.Component
|
||||
@displayName: "SidebarFullContactDetails"
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue