mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-10-06 11:16:10 +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
b0aabf377e
commit
91edef9f7a
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
|
$ATOM_SHELL_PATH/Atom.app/Contents/MacOS/Atom --executed-from="$(pwd)" --pid=$$ "$@" $EDGEHILL_PATH
|
||||||
|
|
||||||
elif [ $OS == 'Linux' ]; then
|
elif [ $OS == 'Linux' ]; then
|
||||||
DOT_INBOX_DIR="$HOME/.inbox"
|
DOT_INBOX_DIR="$HOME/.nylas"
|
||||||
|
|
||||||
mkdir -p "$DOT_INBOX_DIR"
|
mkdir -p "$DOT_INBOX_DIR"
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,7 @@ module.exports = (grunt) ->
|
||||||
installDir = grunt.option('install-dir')
|
installDir = grunt.option('install-dir')
|
||||||
|
|
||||||
home = if process.platform is 'win32' then process.env.USERPROFILE else process.env.HOME
|
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')
|
symbolsDir = path.join(buildDir, 'Atom.breakpad.syms')
|
||||||
shellAppDir = path.join(buildDir, appName)
|
shellAppDir = path.join(buildDir, appName)
|
||||||
|
@ -147,7 +147,7 @@ module.exports = (grunt) ->
|
||||||
csonConfig =
|
csonConfig =
|
||||||
options:
|
options:
|
||||||
rootObject: true
|
rootObject: true
|
||||||
cachePath: path.join(home, '.inbox', 'compile-cache', 'grunt-cson')
|
cachePath: path.join(home, '.nylas', 'compile-cache', 'grunt-cson')
|
||||||
|
|
||||||
glob_to_multiple:
|
glob_to_multiple:
|
||||||
expand: true
|
expand: true
|
||||||
|
@ -204,7 +204,7 @@ module.exports = (grunt) ->
|
||||||
src: [
|
src: [
|
||||||
'internal_packages/**/*.cjsx'
|
'internal_packages/**/*.cjsx'
|
||||||
'internal_packages/**/*.coffee'
|
'internal_packages/**/*.coffee'
|
||||||
'dot-inbox/**/*.coffee'
|
'dot-nylas/**/*.coffee'
|
||||||
'exports/**/*.coffee'
|
'exports/**/*.coffee'
|
||||||
'src/**/*.coffee'
|
'src/**/*.coffee'
|
||||||
]
|
]
|
||||||
|
@ -214,8 +214,8 @@ module.exports = (grunt) ->
|
||||||
]
|
]
|
||||||
test: [
|
test: [
|
||||||
'spec/*.coffee'
|
'spec/*.coffee'
|
||||||
'spec-inbox/*.cjsx'
|
'spec-nylas/*.cjsx'
|
||||||
'spec-inbox/*.coffee'
|
'spec-nylas/*.coffee'
|
||||||
]
|
]
|
||||||
target:
|
target:
|
||||||
grunt.option("target")?.split(" ") or []
|
grunt.option("target")?.split(" ") or []
|
||||||
|
|
|
@ -44,7 +44,7 @@ module.exports = (grunt) ->
|
||||||
packageDirectories = []
|
packageDirectories = []
|
||||||
nonPackageDirectories = [
|
nonPackageDirectories = [
|
||||||
'benchmark'
|
'benchmark'
|
||||||
'dot-inbox'
|
'dot-nylas'
|
||||||
'vendor'
|
'vendor'
|
||||||
'resources'
|
'resources'
|
||||||
]
|
]
|
||||||
|
@ -161,7 +161,7 @@ module.exports = (grunt) ->
|
||||||
cp directory, path.join(appDir, directory), filter: filterPackage
|
cp directory, path.join(appDir, directory), filter: filterPackage
|
||||||
|
|
||||||
cp 'spec', path.join(appDir, 'spec')
|
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 'src', path.join(appDir, 'src'), filter: /.+\.(cson|coffee|cjsx|jsx)$/
|
||||||
cp 'static', path.join(appDir, 'static')
|
cp 'static', path.join(appDir, 'static')
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ module.exports = (grunt) ->
|
||||||
|
|
||||||
{name, version, description} = grunt.file.readJSON('package.json')
|
{name, version, description} = grunt.file.readJSON('package.json')
|
||||||
section = 'devel'
|
section = 'devel'
|
||||||
maintainer = 'InboxApp <edgehill@inboxapp.com>'
|
maintainer = 'InboxApp <edgehill@nylas.com>'
|
||||||
installDir = '/usr'
|
installDir = '/usr'
|
||||||
iconName = 'edgehill'
|
iconName = 'edgehill'
|
||||||
getInstalledSize buildDir, (error, installedSize) ->
|
getInstalledSize buildDir, (error, installedSize) ->
|
||||||
|
|
|
@ -6,7 +6,7 @@ LessCache = require 'less-cache'
|
||||||
module.exports = (grunt) ->
|
module.exports = (grunt) ->
|
||||||
grunt.registerMultiTask 'prebuild-less', 'Prebuild cached of compiled LESS files', ->
|
grunt.registerMultiTask 'prebuild-less', 'Prebuild cached of compiled LESS files', ->
|
||||||
prebuiltConfigurations = [
|
prebuiltConfigurations = [
|
||||||
['inbox-light-ui']
|
['light-ui']
|
||||||
]
|
]
|
||||||
|
|
||||||
directory = path.join(grunt.config.get('atom.appDir'), 'less-compile-cache')
|
directory = path.join(grunt.config.get('atom.appDir'), 'less-compile-cache')
|
||||||
|
|
|
@ -121,10 +121,10 @@ zipAssets = (buildDir, assets, callback) ->
|
||||||
async.parallel(tasks, callback)
|
async.parallel(tasks, callback)
|
||||||
|
|
||||||
getAtomDraftRelease = (callback) ->
|
getAtomDraftRelease = (callback) ->
|
||||||
atomRepo = new GitHub({repo: 'inboxapp/inboxapp', token})
|
atomRepo = new GitHub({repo: 'nylas/edgehill', token})
|
||||||
atomRepo.getReleases (error, releases=[]) ->
|
atomRepo.getReleases (error, releases=[]) ->
|
||||||
if error?
|
if error?
|
||||||
logError('Fetching inboxapp/edgehill releases failed', error, releases)
|
logError('Fetching nylas/edgehill releases failed', error, releases)
|
||||||
callback(error)
|
callback(error)
|
||||||
else
|
else
|
||||||
[firstDraft] = releases.filter ({draft}) -> draft
|
[firstDraft] = releases.filter ({draft}) -> draft
|
||||||
|
@ -142,7 +142,7 @@ getAtomDraftRelease = (callback) ->
|
||||||
firstDraft.assets = assets
|
firstDraft.assets = assets
|
||||||
callback(null, firstDraft)
|
callback(null, firstDraft)
|
||||||
else
|
else
|
||||||
callback(new Error('No draft release in inboxapp/edgehill repo'))
|
callback(new Error('No draft release in nylas/edgehill repo'))
|
||||||
|
|
||||||
deleteRelease = (release) ->
|
deleteRelease = (release) ->
|
||||||
options =
|
options =
|
||||||
|
|
|
@ -13,7 +13,7 @@ FreeBSD -RELEASE 64-bit is the recommended platform.
|
||||||
## Instructions
|
## Instructions
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone https://github.com/inboxapp/edgehill
|
git clone https://github.com/nylas/edgehill
|
||||||
cd edgehill
|
cd edgehill
|
||||||
script/build # Creates application at $TMPDIR/edgehill-build/Edgehill
|
script/build # Creates application at $TMPDIR/edgehill-build/Edgehill
|
||||||
sudo script/grunt install # Installs command to /usr/local/bin/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`
|
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
|
```sh
|
||||||
git clone https://github.com/inboxapp/edgehill
|
git clone https://github.com/nylas/edgehill
|
||||||
cd edgehill
|
cd edgehill
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Checkout the latest Edgehill release:
|
2. Checkout the latest Nylas Mail release:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git fetch -p
|
git fetch -p
|
||||||
git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
|
git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Build Edgehill:
|
3. Build Nylas Mail:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
script/build
|
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:
|
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
|
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
|
```sh
|
||||||
script/grunt mkdeb
|
script/grunt mkdeb
|
||||||
|
@ -101,7 +101,7 @@ script/build --build-dir /build/edgehill/here
|
||||||
|
|
||||||
### TypeError: Unable to watch path
|
### 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
|
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
|
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
|
```sh
|
||||||
echo 32768 | sudo tee -a /proc/sys/fs/inotify/max_user_watches
|
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'
|
### 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!
|
sys.exit(gyp.script_main()) AttributeError: 'module' object has no attribute 'script_main' gyp ERR!
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
## Instructions
|
## Instructions
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone git@github.com:inboxapp/edgehill.git
|
git clone git@github.com:nylas/edgehill.git
|
||||||
cd edgehill
|
cd edgehill
|
||||||
script/build # Creates application at /Applications/Edgehill.app
|
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
|
# 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.
|
# sure you have logged into the GitHub for Windows GUI App.
|
||||||
cd C:\
|
cd C:\
|
||||||
git clone https://github.com/inboxapp/edgehill/
|
git clone https://github.com/nylas/edgehill/
|
||||||
cd edgehill
|
cd edgehill
|
||||||
script/build # Creates application in the `Program Files` directory
|
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.
|
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
|
```coffee
|
||||||
{DraftStoreExtension} = require 'inbox-exports'
|
{DraftStoreExtension} = require 'nylas-exports'
|
||||||
|
|
||||||
class ProductsExtension extends DraftStoreExtension
|
class ProductsExtension extends DraftStoreExtension
|
||||||
|
|
||||||
|
|
|
@ -97,6 +97,6 @@ by name to specify a loading order; otherwise, all style sheets are loaded.
|
||||||
|
|
||||||
###Installing a Package
|
###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.
|
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.
|
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.
|
> 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.
|
- **{Menu}**: Allows you to display a list of items consistent with the rest of the Nylas Mail user experience.
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
'global':
|
'global':
|
||||||
'core':
|
'core':
|
||||||
'themes': [
|
'themes': [
|
||||||
'inbox-light-ui'
|
'light-ui'
|
||||||
]
|
]
|
||||||
'disabledPackages': [
|
'disabledPackages': [
|
||||||
"calendar-bar",
|
"calendar-bar",
|
|
@ -29,7 +29,7 @@ Exports =
|
||||||
EdgehillAPI: require '../src/flux/edgehill-api'
|
EdgehillAPI: require '../src/flux/edgehill-api'
|
||||||
|
|
||||||
# Testing
|
# Testing
|
||||||
InboxTestUtils: require '../spec-inbox/test_utils'
|
InboxTestUtils: require '../spec-nylas/test_utils'
|
||||||
|
|
||||||
# Component Registry
|
# Component Registry
|
||||||
ComponentRegistry: require '../src/component-registry'
|
ComponentRegistry: require '../src/component-registry'
|
|
@ -1,6 +1,6 @@
|
||||||
React = require 'react'
|
React = require 'react'
|
||||||
|
|
||||||
{Actions} = require "inbox-exports"
|
{Actions} = require "nylas-exports"
|
||||||
|
|
||||||
class AccountSidebarDividerItem extends React.Component
|
class AccountSidebarDividerItem extends React.Component
|
||||||
displayName: 'AccountSidebarDividerItem'
|
displayName: 'AccountSidebarDividerItem'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
React = require 'react'
|
React = require 'react'
|
||||||
{Actions} = require("inbox-exports")
|
{Actions} = require("nylas-exports")
|
||||||
|
|
||||||
class AccountSidebarItem extends React.Component
|
class AccountSidebarItem extends React.Component
|
||||||
@displayName: "AccountSidebarItem"
|
@displayName: "AccountSidebarItem"
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
React = require 'react'
|
React = require 'react'
|
||||||
_ = require 'underscore-plus'
|
_ = require 'underscore-plus'
|
||||||
classNames = require 'classnames'
|
classNames = require 'classnames'
|
||||||
{Actions, Utils, WorkspaceStore} = require 'inbox-exports'
|
{Actions, Utils, WorkspaceStore} = require 'nylas-exports'
|
||||||
{RetinaImg} = require 'ui-components'
|
{RetinaImg} = require 'nylas-component-kit'
|
||||||
|
|
||||||
class AccountSidebarSheetItem extends React.Component
|
class AccountSidebarSheetItem extends React.Component
|
||||||
@displayName: 'AccountSidebarSheetItem'
|
@displayName: 'AccountSidebarSheetItem'
|
||||||
|
|
|
@ -7,7 +7,7 @@ _ = require 'underscore-plus'
|
||||||
Tag,
|
Tag,
|
||||||
Message,
|
Message,
|
||||||
FocusedTagStore,
|
FocusedTagStore,
|
||||||
Thread} = require 'inbox-exports'
|
Thread} = require 'nylas-exports'
|
||||||
|
|
||||||
AccountSidebarStore = Reflux.createStore
|
AccountSidebarStore = Reflux.createStore
|
||||||
init: ->
|
init: ->
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
React = require 'react'
|
React = require 'react'
|
||||||
classNames = require 'classnames'
|
classNames = require 'classnames'
|
||||||
{Actions, Utils, WorkspaceStore} = require 'inbox-exports'
|
{Actions, Utils, WorkspaceStore} = require 'nylas-exports'
|
||||||
{RetinaImg} = require 'ui-components'
|
{RetinaImg} = require 'nylas-component-kit'
|
||||||
|
|
||||||
class AccountSidebarTagItem extends React.Component
|
class AccountSidebarTagItem extends React.Component
|
||||||
@displayName: 'AccountSidebarTagItem'
|
@displayName: 'AccountSidebarTagItem'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
React = require 'react'
|
React = require 'react'
|
||||||
{Actions} = require("inbox-exports")
|
{Actions} = require("nylas-exports")
|
||||||
SidebarDividerItem = require("./account-sidebar-divider-item")
|
SidebarDividerItem = require("./account-sidebar-divider-item")
|
||||||
SidebarTagItem = require("./account-sidebar-tag-item")
|
SidebarTagItem = require("./account-sidebar-tag-item")
|
||||||
SidebarSheetItem = require("./account-sidebar-sheet-item")
|
SidebarSheetItem = require("./account-sidebar-sheet-item")
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
React = require "react"
|
React = require "react"
|
||||||
AccountSidebar = require "./account-sidebar"
|
AccountSidebar = require "./account-sidebar"
|
||||||
{ComponentRegistry, WorkspaceStore} = require "inbox-exports"
|
{ComponentRegistry, WorkspaceStore} = require "nylas-exports"
|
||||||
|
|
||||||
module.exports =
|
module.exports =
|
||||||
item: null # The DOM item the main React component renders into
|
item: null # The DOM item the main React component renders into
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
path = require 'path'
|
path = require 'path'
|
||||||
React = require 'react'
|
React = require 'react'
|
||||||
{Actions} = require 'inbox-exports'
|
{Actions} = require 'nylas-exports'
|
||||||
|
|
||||||
# Passed in as props from MessageItem and FileDownloadStore
|
# Passed in as props from MessageItem and FileDownloadStore
|
||||||
# This is empty if the attachment isn't downloading.
|
# This is empty if the attachment isn't downloading.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ComponentRegistry} = require 'inbox-exports'
|
{ComponentRegistry} = require 'nylas-exports'
|
||||||
|
|
||||||
module.exports =
|
module.exports =
|
||||||
activate: (@state={}) ->
|
activate: (@state={}) ->
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Reflux = require 'reflux'
|
Reflux = require 'reflux'
|
||||||
_ = require 'underscore-plus'
|
_ = require 'underscore-plus'
|
||||||
{DatabaseStore, NamespaceStore, Actions, Event, Calendar} = require 'inbox-exports'
|
{DatabaseStore, NamespaceStore, Actions, Event, Calendar} = require 'nylas-exports'
|
||||||
moment = require 'moment'
|
moment = require 'moment'
|
||||||
|
|
||||||
CalendarBarEventStore = Reflux.createStore
|
CalendarBarEventStore = Reflux.createStore
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
React = require 'react'
|
React = require 'react'
|
||||||
{Actions} = require("inbox-exports")
|
{Actions} = require("nylas-exports")
|
||||||
moment = require 'moment'
|
moment = require 'moment'
|
||||||
|
|
||||||
class CalendarBarItem extends React.Component
|
class CalendarBarItem extends React.Component
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
React = require 'react'
|
React = require 'react'
|
||||||
{Actions} = require("inbox-exports")
|
{Actions} = require("nylas-exports")
|
||||||
CalendarBarItem = require("./calendar-bar-item")
|
CalendarBarItem = require("./calendar-bar-item")
|
||||||
CalendarBarEventStore = require ("./calendar-bar-event-store")
|
CalendarBarEventStore = require ("./calendar-bar-event-store")
|
||||||
|
|
||||||
|
|
|
@ -5,12 +5,12 @@ _ = require 'underscore-plus'
|
||||||
Actions,
|
Actions,
|
||||||
UndoManager,
|
UndoManager,
|
||||||
DraftStore,
|
DraftStore,
|
||||||
FileUploadStore} = require 'inbox-exports'
|
FileUploadStore} = require 'nylas-exports'
|
||||||
|
|
||||||
{ResizableRegion,
|
{ResizableRegion,
|
||||||
InjectedComponentSet,
|
InjectedComponentSet,
|
||||||
InjectedComponent,
|
InjectedComponent,
|
||||||
RetinaImg} = require 'ui-components'
|
RetinaImg} = require 'nylas-component-kit'
|
||||||
|
|
||||||
FileUploads = require './file-uploads'
|
FileUploads = require './file-uploads'
|
||||||
ContenteditableComponent = require './contenteditable-component'
|
ContenteditableComponent = require './contenteditable-component'
|
||||||
|
|
|
@ -2,7 +2,7 @@ _ = require 'underscore-plus'
|
||||||
React = require 'react'
|
React = require 'react'
|
||||||
classNames = require 'classnames'
|
classNames = require 'classnames'
|
||||||
sanitizeHtml = require 'sanitize-html'
|
sanitizeHtml = require 'sanitize-html'
|
||||||
{Utils, DraftStore} = require 'inbox-exports'
|
{Utils, DraftStore} = require 'nylas-exports'
|
||||||
FloatingToolbar = require './floating-toolbar'
|
FloatingToolbar = require './floating-toolbar'
|
||||||
|
|
||||||
linkUUID = 0
|
linkUUID = 0
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
path = require 'path'
|
path = require 'path'
|
||||||
React = require 'react'
|
React = require 'react'
|
||||||
{Actions,
|
{Actions,
|
||||||
FileUploadStore} = require 'inbox-exports'
|
FileUploadStore} = require 'nylas-exports'
|
||||||
|
|
||||||
class FileUpload extends React.Component
|
class FileUpload extends React.Component
|
||||||
render: =>
|
render: =>
|
||||||
|
|
|
@ -2,7 +2,7 @@ _ = require 'underscore-plus'
|
||||||
React = require 'react/addons'
|
React = require 'react/addons'
|
||||||
classNames = require 'classnames'
|
classNames = require 'classnames'
|
||||||
{CompositeDisposable} = require 'event-kit'
|
{CompositeDisposable} = require 'event-kit'
|
||||||
{RetinaImg} = require 'ui-components'
|
{RetinaImg} = require 'nylas-component-kit'
|
||||||
|
|
||||||
class FloatingToolbar extends React.Component
|
class FloatingToolbar extends React.Component
|
||||||
@displayName = "FloatingToolbar"
|
@displayName = "FloatingToolbar"
|
||||||
|
|
|
@ -5,7 +5,7 @@ React = require 'react'
|
||||||
DatabaseStore,
|
DatabaseStore,
|
||||||
Message,
|
Message,
|
||||||
ComponentRegistry,
|
ComponentRegistry,
|
||||||
WorkspaceStore} = require('inbox-exports')
|
WorkspaceStore} = require('nylas-exports')
|
||||||
NewComposeButton = require('./new-compose-button')
|
NewComposeButton = require('./new-compose-button')
|
||||||
ComposerView = require('./composer-view')
|
ComposerView = require('./composer-view')
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
React = require 'react'
|
React = require 'react'
|
||||||
{Message, Actions, NamespaceStore} = require 'inbox-exports'
|
{Message, Actions, NamespaceStore} = require 'nylas-exports'
|
||||||
{RetinaImg} = require 'ui-components'
|
{RetinaImg} = require 'nylas-component-kit'
|
||||||
|
|
||||||
class NewComposeButton extends React.Component
|
class NewComposeButton extends React.Component
|
||||||
@displayName: 'NewComposeButton'
|
@displayName: 'NewComposeButton'
|
||||||
|
|
|
@ -3,8 +3,8 @@ _ = require 'underscore-plus'
|
||||||
|
|
||||||
{Contact,
|
{Contact,
|
||||||
Utils,
|
Utils,
|
||||||
ContactStore} = require 'inbox-exports'
|
ContactStore} = require 'nylas-exports'
|
||||||
{TokenizingTextField, Menu} = require 'ui-components'
|
{TokenizingTextField, Menu} = require 'nylas-component-kit'
|
||||||
|
|
||||||
class ParticipantsTextField extends React.Component
|
class ParticipantsTextField extends React.Component
|
||||||
@displayName: 'ParticipantsTextField'
|
@displayName: 'ParticipantsTextField'
|
||||||
|
|
|
@ -11,13 +11,13 @@ ReactTestUtils = React.addons.TestUtils
|
||||||
DraftStore,
|
DraftStore,
|
||||||
DatabaseStore,
|
DatabaseStore,
|
||||||
InboxTestUtils,
|
InboxTestUtils,
|
||||||
NamespaceStore} = require "inbox-exports"
|
NamespaceStore} = require "nylas-exports"
|
||||||
|
|
||||||
u1 = new Contact(name: "Christine Spang", email: "spang@inboxapp.com")
|
u1 = new Contact(name: "Christine Spang", email: "spang@nylas.com")
|
||||||
u2 = new Contact(name: "Michael Grinich", email: "mg@inboxapp.com")
|
u2 = new Contact(name: "Michael Grinich", email: "mg@nylas.com")
|
||||||
u3 = new Contact(name: "Evan Morikawa", email: "evan@inboxapp.com")
|
u3 = new Contact(name: "Evan Morikawa", email: "evan@nylas.com")
|
||||||
u4 = new Contact(name: "Zoë Leiper", email: "zip@inboxapp.com")
|
u4 = new Contact(name: "Zoë Leiper", email: "zip@nylas.com")
|
||||||
u5 = new Contact(name: "Ben Gotow", email: "ben@inboxapp.com")
|
u5 = new Contact(name: "Ben Gotow", email: "ben@nylas.com")
|
||||||
users = [u1, u2, u3, u4, u5]
|
users = [u1, u2, u3, u4, u5]
|
||||||
NamespaceStore._current = new Namespace(
|
NamespaceStore._current = new Namespace(
|
||||||
{name: u1.name, provider: "inbox", emailAddress: u1.email})
|
{name: u1.name, provider: "inbox", emailAddress: u1.email})
|
||||||
|
@ -45,7 +45,7 @@ searchContactStub = (email) ->
|
||||||
ComposerView = proxyquire "../lib/composer-view",
|
ComposerView = proxyquire "../lib/composer-view",
|
||||||
"./file-uploads": reactStub("file-uploads")
|
"./file-uploads": reactStub("file-uploads")
|
||||||
"./participants-text-field": textFieldStub("")
|
"./participants-text-field": textFieldStub("")
|
||||||
"inbox-exports":
|
"nylas-exports":
|
||||||
ContactStore:
|
ContactStore:
|
||||||
searchContacts: (email) -> searchContactStub
|
searchContacts: (email) -> searchContactStub
|
||||||
ComponentRegistry:
|
ComponentRegistry:
|
||||||
|
|
|
@ -9,22 +9,22 @@ proxyquire = require 'proxyquire'
|
||||||
ContactStore,
|
ContactStore,
|
||||||
Contact,
|
Contact,
|
||||||
Utils,
|
Utils,
|
||||||
} = require 'inbox-exports'
|
} = require 'nylas-exports'
|
||||||
|
|
||||||
ParticipantsTextField = proxyquire '../lib/participants-text-field',
|
ParticipantsTextField = proxyquire '../lib/participants-text-field',
|
||||||
'inbox-exports': {Contact, ContactStore}
|
'nylas-exports': {Contact, ContactStore}
|
||||||
|
|
||||||
participant1 = new Contact
|
participant1 = new Contact
|
||||||
email: 'ben@nilas.com'
|
email: 'ben@nylas.com'
|
||||||
participant2 = new Contact
|
participant2 = new Contact
|
||||||
email: 'ben@example.com'
|
email: 'ben@example.com'
|
||||||
name: 'ben'
|
name: 'Ben Gotow'
|
||||||
participant3 = new Contact
|
participant3 = new Contact
|
||||||
email: 'ben@inboxapp.com'
|
email: 'ben@inboxapp.com'
|
||||||
name: 'Duplicate email'
|
name: 'Ben Inboxer'
|
||||||
participant4 = new Contact
|
participant4 = new Contact
|
||||||
email: 'ben@elsewhere.com',
|
email: 'ben@elsewhere.com',
|
||||||
name: 'ben again'
|
name: 'ben Again'
|
||||||
participant5 = new Contact
|
participant5 = new Contact
|
||||||
email: 'evan@elsewhere.com',
|
email: 'evan@elsewhere.com',
|
||||||
name: 'EVAN'
|
name: 'EVAN'
|
||||||
|
@ -105,14 +105,14 @@ describe 'ParticipantsTextField', ->
|
||||||
|
|
||||||
describe "when text contains Name (Email) formatted data", ->
|
describe "when text contains Name (Email) formatted data", ->
|
||||||
it "should correctly parse it into named Contact objects", ->
|
it "should correctly parse it into named Contact objects", ->
|
||||||
newContact1 = new Contact(name:'Ben Imposter', email:'imposter@nilas.com')
|
newContact1 = new Contact(name:'Ben Imposter', email:'imposter@nylas.com')
|
||||||
newContact2 = new Contact(name:'Nilas Team', email:'feedback@nilas.com')
|
newContact2 = new Contact(name:'Nylas Team', email:'feedback@nylas.com')
|
||||||
|
|
||||||
inputs = [
|
inputs = [
|
||||||
"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@nilas.com), Nilas Team (feedback@nilas.com)",
|
"\n\nbla\nBen Imposter (imposter@nylas.com), Nylas Team (feedback@nylas.com)",
|
||||||
"Hello world! I like cheese. \rBen Imposter (imposter@nilas.com)\nNilas Team (feedback@nilas.com)",
|
"Hello world! I like cheese. \rBen Imposter (imposter@nylas.com)\nNylas Team (feedback@nylas.com)",
|
||||||
"Ben Imposter<imposter@nilas.com>Nilas Team (feedback@nilas.com)"
|
"Ben Imposter<imposter@nylas.com>Nylas Team (feedback@nylas.com)"
|
||||||
]
|
]
|
||||||
|
|
||||||
for input in inputs
|
for input in inputs
|
||||||
|
@ -123,14 +123,14 @@ describe 'ParticipantsTextField', ->
|
||||||
|
|
||||||
describe "when text contains emails mixed with garbage text", ->
|
describe "when text contains emails mixed with garbage text", ->
|
||||||
it "should still parse out emails into Contact objects", ->
|
it "should still parse out emails into Contact objects", ->
|
||||||
newContact1 = new Contact(name:'garbage-man@nilas.com', email:'garbage-man@nilas.com')
|
newContact1 = new Contact(name:'garbage-man@nylas.com', email:'garbage-man@nylas.com')
|
||||||
newContact2 = new Contact(name:'recycling-guy@nilas.com', email:'recycling-guy@nilas.com')
|
newContact2 = new Contact(name:'recycling-guy@nylas.com', email:'recycling-guy@nylas.com')
|
||||||
|
|
||||||
inputs = [
|
inputs = [
|
||||||
"Hello world I real. \n asd. garbage-man@nilas.com—he's cool Also 'recycling-guy@nilas.com'!",
|
"Hello world I real. \n asd. garbage-man@nylas.com—he's cool Also 'recycling-guy@nylas.com'!",
|
||||||
"garbage-man@nilas.com|recycling-guy@nilas.com",
|
"garbage-man@nylas.com|recycling-guy@nylas.com",
|
||||||
"garbage-man@nilas.com1WHOA I REALLY HATE DATA,recycling-guy@nilas.com",
|
"garbage-man@nylas.com1WHOA I REALLY HATE DATA,recycling-guy@nylas.com",
|
||||||
"nils.com garbage-man@nilas.com @nilas.com nope@.com nope!recycling-guy@nilas.com HOLLA AT recycling-guy@nilas."
|
"nils.com garbage-man@nylas.com @nylas.com nope@.com nope!recycling-guy@nylas.com HOLLA AT recycling-guy@nylas."
|
||||||
]
|
]
|
||||||
|
|
||||||
for input in inputs
|
for input in inputs
|
||||||
|
|
|
@ -5,7 +5,7 @@ fs = require 'fs'
|
||||||
{WorkspaceStore,
|
{WorkspaceStore,
|
||||||
FocusedContentStore,
|
FocusedContentStore,
|
||||||
FileDownloadStore,
|
FileDownloadStore,
|
||||||
Actions} = require 'inbox-exports'
|
Actions} = require 'nylas-exports'
|
||||||
|
|
||||||
module.exports =
|
module.exports =
|
||||||
FileFrameStore = Reflux.createStore
|
FileFrameStore = Reflux.createStore
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
React = require 'react'
|
React = require 'react'
|
||||||
_ = require "underscore-plus"
|
_ = require "underscore-plus"
|
||||||
{Utils, FileDownloadStore, Actions} = require 'inbox-exports'
|
{Utils, FileDownloadStore, Actions} = require 'nylas-exports'
|
||||||
{Spinner, EventedIFrame} = require 'ui-components'
|
{Spinner, EventedIFrame} = require 'nylas-component-kit'
|
||||||
FileFrameStore = require './file-frame-store'
|
FileFrameStore = require './file-frame-store'
|
||||||
|
|
||||||
class FileFrame extends React.Component
|
class FileFrame extends React.Component
|
||||||
|
|
|
@ -2,7 +2,7 @@ Reflux = require 'reflux'
|
||||||
_ = require 'underscore-plus'
|
_ = require 'underscore-plus'
|
||||||
{File,
|
{File,
|
||||||
DatabaseStore,
|
DatabaseStore,
|
||||||
DatabaseView} = require 'inbox-exports'
|
DatabaseView} = require 'nylas-exports'
|
||||||
|
|
||||||
module.exports =
|
module.exports =
|
||||||
FileListStore = Reflux.createStore
|
FileListStore = Reflux.createStore
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
_ = require 'underscore-plus'
|
_ = require 'underscore-plus'
|
||||||
React = require 'react'
|
React = require 'react'
|
||||||
{ListTabular, MultiselectList} = require 'ui-components'
|
{ListTabular, MultiselectList} = require 'nylas-component-kit'
|
||||||
{Actions,
|
{Actions,
|
||||||
DatabaseStore,
|
DatabaseStore,
|
||||||
ComponentRegistry} = require 'inbox-exports'
|
ComponentRegistry} = require 'nylas-exports'
|
||||||
FileListStore = require './file-list-store'
|
FileListStore = require './file-list-store'
|
||||||
|
|
||||||
class FileList extends React.Component
|
class FileList extends React.Component
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
React = require "react/addons"
|
React = require "react/addons"
|
||||||
FileListStore = require './file-list-store'
|
FileListStore = require './file-list-store'
|
||||||
{MultiselectActionBar} = require 'ui-components'
|
{MultiselectActionBar} = require 'nylas-component-kit'
|
||||||
|
|
||||||
class FileSelectionBar extends React.Component
|
class FileSelectionBar extends React.Component
|
||||||
@displayName: 'FileSelectionBar'
|
@displayName: 'FileSelectionBar'
|
||||||
|
|
|
@ -2,7 +2,7 @@ FileFrame = require "./file-frame"
|
||||||
FileList = require './file-list'
|
FileList = require './file-list'
|
||||||
FileSelectionBar = require './file-selection-bar'
|
FileSelectionBar = require './file-selection-bar'
|
||||||
{ComponentRegistry,
|
{ComponentRegistry,
|
||||||
WorkspaceStore} = require 'inbox-exports'
|
WorkspaceStore} = require 'nylas-exports'
|
||||||
|
|
||||||
module.exports =
|
module.exports =
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
Reflux = require 'reflux'
|
Reflux = require 'reflux'
|
||||||
{Actions} = require 'inbox-exports'
|
{Actions} = require 'nylas-exports'
|
||||||
qs = require 'querystring'
|
qs = require 'querystring'
|
||||||
_ = require 'underscore-plus'
|
_ = require 'underscore-plus'
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
React = require 'react/addons'
|
React = require 'react/addons'
|
||||||
classNames = require 'classnames'
|
classNames = require 'classnames'
|
||||||
_ = require 'underscore-plus'
|
_ = require 'underscore-plus'
|
||||||
{Utils} = require 'inbox-exports'
|
{Utils} = require 'nylas-exports'
|
||||||
|
|
||||||
class ActivityBarTask extends React.Component
|
class ActivityBarTask extends React.Component
|
||||||
@displayName: 'ActivityBarTask'
|
@displayName: 'ActivityBarTask'
|
||||||
|
|
|
@ -6,8 +6,8 @@ React = require 'react/addons'
|
||||||
TaskQueue,
|
TaskQueue,
|
||||||
Actions,
|
Actions,
|
||||||
Contact,
|
Contact,
|
||||||
Message} = require 'inbox-exports'
|
Message} = require 'nylas-exports'
|
||||||
{ResizableRegion} = require 'ui-components'
|
{ResizableRegion} = require 'nylas-component-kit'
|
||||||
|
|
||||||
ActivityBarStore = require './activity-bar-store'
|
ActivityBarStore = require './activity-bar-store'
|
||||||
ActivityBarTask = require './activity-bar-task'
|
ActivityBarTask = require './activity-bar-task'
|
||||||
|
@ -169,15 +169,15 @@ class ActivityBar extends React.Component
|
||||||
from: [NamespaceStore.current().me()]
|
from: [NamespaceStore.current().me()]
|
||||||
to: [
|
to: [
|
||||||
new Contact
|
new Contact
|
||||||
name: "Nilas Team"
|
name: "Nylas Team"
|
||||||
email: "feedback@nilas.com"
|
email: "feedback@nylas.com"
|
||||||
]
|
]
|
||||||
date: (new Date)
|
date: (new Date)
|
||||||
draft: true
|
draft: true
|
||||||
subject: "Feedback"
|
subject: "Feedback"
|
||||||
namespaceId: NamespaceStore.current().id
|
namespaceId: NamespaceStore.current().id
|
||||||
body: """
|
body: """
|
||||||
Hi, Edgehill team! I have some feedback for you.<br/>
|
Hi, Nylas team! I have some feedback for you.<br/>
|
||||||
<br/>
|
<br/>
|
||||||
<b>What happened:</b><br/>
|
<b>What happened:</b><br/>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
React = require 'react'
|
React = require 'react'
|
||||||
{ComponentRegistry, WorkspaceStore} = require 'inbox-exports'
|
{ComponentRegistry, WorkspaceStore} = require 'nylas-exports'
|
||||||
ActivityBar = require './activity-bar'
|
ActivityBar = require './activity-bar'
|
||||||
|
|
||||||
module.exports =
|
module.exports =
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
React = require "react"
|
React = require "react"
|
||||||
{Actions} = require 'inbox-exports'
|
{Actions} = require 'nylas-exports'
|
||||||
crypto = require "crypto"
|
crypto = require "crypto"
|
||||||
|
|
||||||
class ContactChip extends React.Component
|
class ContactChip extends React.Component
|
||||||
|
|
|
@ -2,7 +2,7 @@ React = require "react"
|
||||||
_ = require "underscore-plus"
|
_ = require "underscore-plus"
|
||||||
ContactChip = require './ContactChip'
|
ContactChip = require './ContactChip'
|
||||||
|
|
||||||
{NamespaceStore} = require "inbox-exports"
|
{NamespaceStore} = require "nylas-exports"
|
||||||
|
|
||||||
# Parameters
|
# Parameters
|
||||||
# clickable (optional) - is this currently clickable?
|
# clickable (optional) - is this currently clickable?
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ComponentRegistry} = require 'inbox-exports'
|
{ComponentRegistry} = require 'nylas-exports'
|
||||||
Participants = require './Participants'
|
Participants = require './Participants'
|
||||||
|
|
||||||
module.exports =
|
module.exports =
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "inbox-light-ui",
|
"name": "light-ui",
|
||||||
"theme": "ui",
|
"theme": "ui",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"description": "The Inbox Mail Client Theme",
|
"description": "The Inbox Mail Client Theme",
|
|
@ -1,7 +1,7 @@
|
||||||
React = require 'react'
|
React = require 'react'
|
||||||
_ = require "underscore-plus"
|
_ = require "underscore-plus"
|
||||||
{EventedIFrame} = require 'ui-components'
|
{EventedIFrame} = require 'nylas-component-kit'
|
||||||
{Utils} = require 'inbox-exports'
|
{Utils} = require 'nylas-exports'
|
||||||
|
|
||||||
EmailFixingStyles = """
|
EmailFixingStyles = """
|
||||||
<style>
|
<style>
|
||||||
|
|
|
@ -2,7 +2,7 @@ MessageList = require "./message-list"
|
||||||
MessageToolbarItems = require "./message-toolbar-items"
|
MessageToolbarItems = require "./message-toolbar-items"
|
||||||
MessageSubjectItem = require "./message-subject-item"
|
MessageSubjectItem = require "./message-subject-item"
|
||||||
{ComponentRegistry,
|
{ComponentRegistry,
|
||||||
WorkspaceStore} = require 'inbox-exports'
|
WorkspaceStore} = require 'nylas-exports'
|
||||||
SidebarThreadParticipants = require "./sidebar-thread-participants"
|
SidebarThreadParticipants = require "./sidebar-thread-participants"
|
||||||
|
|
||||||
module.exports =
|
module.exports =
|
||||||
|
|
|
@ -8,10 +8,10 @@ MessageTimestamp = require "./message-timestamp"
|
||||||
Actions,
|
Actions,
|
||||||
MessageUtils,
|
MessageUtils,
|
||||||
ComponentRegistry,
|
ComponentRegistry,
|
||||||
FileDownloadStore} = require 'inbox-exports'
|
FileDownloadStore} = require 'nylas-exports'
|
||||||
{RetinaImg,
|
{RetinaImg,
|
||||||
InjectedComponentSet,
|
InjectedComponentSet,
|
||||||
InjectedComponent} = require 'ui-components'
|
InjectedComponent} = require 'nylas-component-kit'
|
||||||
Autolinker = require 'autolinker'
|
Autolinker = require 'autolinker'
|
||||||
remote = require 'remote'
|
remote = require 'remote'
|
||||||
|
|
||||||
|
@ -164,11 +164,11 @@ class MessageItem extends React.Component
|
||||||
Actions.composeForward(threadId: tId, messageId: mId) if (tId and mId)
|
Actions.composeForward(threadId: tId, messageId: mId) if (tId and mId)
|
||||||
|
|
||||||
_onReport: (issueType) =>
|
_onReport: (issueType) =>
|
||||||
{Contact, Message, DatabaseStore, NamespaceStore} = require 'inbox-exports'
|
{Contact, Message, DatabaseStore, NamespaceStore} = require 'nylas-exports'
|
||||||
|
|
||||||
draft = new Message
|
draft = new Message
|
||||||
from: [NamespaceStore.current().me()]
|
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)
|
date: (new Date)
|
||||||
draft: true
|
draft: true
|
||||||
subject: "Feedback - Message Display Issue (#{issueType})"
|
subject: "Feedback - Message Display Issue (#{issueType})"
|
||||||
|
|
|
@ -2,12 +2,12 @@ _ = require 'underscore-plus'
|
||||||
React = require 'react'
|
React = require 'react'
|
||||||
classNames = require 'classnames'
|
classNames = require 'classnames'
|
||||||
MessageItem = require "./message-item"
|
MessageItem = require "./message-item"
|
||||||
{Utils, Actions, MessageStore, ComponentRegistry} = require("inbox-exports")
|
{Utils, Actions, MessageStore, ComponentRegistry} = require("nylas-exports")
|
||||||
{Spinner,
|
{Spinner,
|
||||||
ResizableRegion,
|
ResizableRegion,
|
||||||
RetinaImg,
|
RetinaImg,
|
||||||
InjectedComponentSet,
|
InjectedComponentSet,
|
||||||
InjectedComponent} = require('ui-components')
|
InjectedComponent} = require('nylas-component-kit')
|
||||||
|
|
||||||
class MessageList extends React.Component
|
class MessageList extends React.Component
|
||||||
@displayName: 'MessageList'
|
@displayName: 'MessageList'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
_ = require 'underscore-plus'
|
_ = require 'underscore-plus'
|
||||||
React = require 'react'
|
React = require 'react'
|
||||||
{FocusedContentStore} = require 'inbox-exports'
|
{FocusedContentStore} = require 'nylas-exports'
|
||||||
|
|
||||||
class MessageSubjectItem extends React.Component
|
class MessageSubjectItem extends React.Component
|
||||||
@displayName: 'MessageSubjectItem'
|
@displayName: 'MessageSubjectItem'
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
_ = require 'underscore-plus'
|
_ = require 'underscore-plus'
|
||||||
moment = require 'moment-timezone'
|
moment = require 'moment-timezone'
|
||||||
React = require 'react'
|
React = require 'react'
|
||||||
{Utils} = require 'inbox-exports'
|
{Utils} = require 'nylas-exports'
|
||||||
|
|
||||||
class MessageTimestamp extends React.Component
|
class MessageTimestamp extends React.Component
|
||||||
@displayName: 'MessageTimestamp'
|
@displayName: 'MessageTimestamp'
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
_ = require 'underscore-plus'
|
_ = require 'underscore-plus'
|
||||||
React = require 'react'
|
React = require 'react'
|
||||||
classNames = require 'classnames'
|
classNames = require 'classnames'
|
||||||
{Actions, Utils, FocusedContentStore, WorkspaceStore} = require 'inbox-exports'
|
{Actions, Utils, FocusedContentStore, WorkspaceStore} = require 'nylas-exports'
|
||||||
{RetinaImg, Popover, Menu} = require 'ui-components'
|
{RetinaImg, Popover, Menu} = require 'nylas-component-kit'
|
||||||
|
|
||||||
ThreadArchiveButton = require './thread-archive-button'
|
ThreadArchiveButton = require './thread-archive-button'
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
_ = require 'underscore-plus'
|
_ = require 'underscore-plus'
|
||||||
React = require "react"
|
React = require "react"
|
||||||
|
|
||||||
{Actions, FocusedContactsStore} = require("inbox-exports")
|
{Actions, FocusedContactsStore} = require("nylas-exports")
|
||||||
|
|
||||||
class SidebarThreadParticipants extends React.Component
|
class SidebarThreadParticipants extends React.Component
|
||||||
@displayName: 'SidebarThreadParticipants'
|
@displayName: 'SidebarThreadParticipants'
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
_ = require 'underscore-plus'
|
_ = require 'underscore-plus'
|
||||||
React = require 'react'
|
React = require 'react'
|
||||||
{Actions, Utils} = require 'inbox-exports'
|
{Actions, Utils} = require 'nylas-exports'
|
||||||
{RetinaImg} = require 'ui-components'
|
{RetinaImg} = require 'nylas-component-kit'
|
||||||
|
|
||||||
class ArchiveButton extends React.Component
|
class ArchiveButton extends React.Component
|
||||||
@displayName: "ArchiveButton"
|
@displayName: "ArchiveButton"
|
||||||
|
|
|
@ -10,10 +10,10 @@ classNames = require 'classnames'
|
||||||
DatabaseStore,
|
DatabaseStore,
|
||||||
Tag,
|
Tag,
|
||||||
Thread,
|
Thread,
|
||||||
TaskQueue} = require 'inbox-exports'
|
TaskQueue} = require 'nylas-exports'
|
||||||
{RetinaImg,
|
{RetinaImg,
|
||||||
Popover,
|
Popover,
|
||||||
Menu} = require 'ui-components'
|
Menu} = require 'nylas-component-kit'
|
||||||
|
|
||||||
TagsStore = Reflux.createStore
|
TagsStore = Reflux.createStore
|
||||||
init: ->
|
init: ->
|
||||||
|
|
|
@ -8,11 +8,11 @@ ReactTestUtils = React.addons.TestUtils
|
||||||
Thread,
|
Thread,
|
||||||
Utils,
|
Utils,
|
||||||
FileDownloadStore,
|
FileDownloadStore,
|
||||||
InboxTestUtils} = require "inbox-exports"
|
InboxTestUtils} = require "nylas-exports"
|
||||||
|
|
||||||
EmailFrameStub = React.createClass({render: -> <div></div>})
|
EmailFrameStub = React.createClass({render: -> <div></div>})
|
||||||
|
|
||||||
{InjectedComponent} = require 'ui-components'
|
{InjectedComponent} = require 'nylas-component-kit'
|
||||||
file = new File
|
file = new File
|
||||||
id: 'file_1_id'
|
id: 'file_1_id'
|
||||||
filename: 'a.png'
|
filename: 'a.png'
|
||||||
|
@ -55,19 +55,19 @@ download_inline =
|
||||||
|
|
||||||
user_1 = new Contact
|
user_1 = new Contact
|
||||||
name: "User One"
|
name: "User One"
|
||||||
email: "user1@inboxapp.com"
|
email: "user1@nylas.com"
|
||||||
user_2 = new Contact
|
user_2 = new Contact
|
||||||
name: "User Two"
|
name: "User Two"
|
||||||
email: "user2@inboxapp.com"
|
email: "user2@nylas.com"
|
||||||
user_3 = new Contact
|
user_3 = new Contact
|
||||||
name: "User Three"
|
name: "User Three"
|
||||||
email: "user3@inboxapp.com"
|
email: "user3@nylas.com"
|
||||||
user_4 = new Contact
|
user_4 = new Contact
|
||||||
name: "User Four"
|
name: "User Four"
|
||||||
email: "user4@inboxapp.com"
|
email: "user4@nylas.com"
|
||||||
user_5 = new Contact
|
user_5 = new Contact
|
||||||
name: "User Five"
|
name: "User Five"
|
||||||
email: "user5@inboxapp.com"
|
email: "user5@nylas.com"
|
||||||
|
|
||||||
|
|
||||||
MessageItem = proxyquire '../lib/message-item',
|
MessageItem = proxyquire '../lib/message-item',
|
||||||
|
|
|
@ -14,9 +14,9 @@ TestUtils = React.addons.TestUtils
|
||||||
MessageStore,
|
MessageStore,
|
||||||
NamespaceStore,
|
NamespaceStore,
|
||||||
InboxTestUtils,
|
InboxTestUtils,
|
||||||
ComponentRegistry} = require "inbox-exports"
|
ComponentRegistry} = require "nylas-exports"
|
||||||
|
|
||||||
{InjectedComponent} = require 'ui-components'
|
{InjectedComponent} = require 'nylas-component-kit'
|
||||||
|
|
||||||
MessageItem = proxyquire("../lib/message-item", {
|
MessageItem = proxyquire("../lib/message-item", {
|
||||||
"./email-frame": React.createClass({render: -> <div></div>})
|
"./email-frame": React.createClass({render: -> <div></div>})
|
||||||
|
@ -30,7 +30,7 @@ MessageParticipants = require "../lib/message-participants"
|
||||||
|
|
||||||
me = new Namespace(
|
me = new Namespace(
|
||||||
"name": "User One",
|
"name": "User One",
|
||||||
"email": "user1@inboxapp.com"
|
"email": "user1@nylas.com"
|
||||||
"provider": "inbox"
|
"provider": "inbox"
|
||||||
)
|
)
|
||||||
NamespaceStore._current = me
|
NamespaceStore._current = me
|
||||||
|
@ -42,19 +42,19 @@ user_headers =
|
||||||
|
|
||||||
user_1 = _.extend _.clone(user_headers),
|
user_1 = _.extend _.clone(user_headers),
|
||||||
name: "User One"
|
name: "User One"
|
||||||
email: "user1@inboxapp.com"
|
email: "user1@nylas.com"
|
||||||
user_2 = _.extend _.clone(user_headers),
|
user_2 = _.extend _.clone(user_headers),
|
||||||
name: "User Two"
|
name: "User Two"
|
||||||
email: "user2@inboxapp.com"
|
email: "user2@nylas.com"
|
||||||
user_3 = _.extend _.clone(user_headers),
|
user_3 = _.extend _.clone(user_headers),
|
||||||
name: "User Three"
|
name: "User Three"
|
||||||
email: "user3@inboxapp.com"
|
email: "user3@nylas.com"
|
||||||
user_4 = _.extend _.clone(user_headers),
|
user_4 = _.extend _.clone(user_headers),
|
||||||
name: "User Four"
|
name: "User Four"
|
||||||
email: "user4@inboxapp.com"
|
email: "user4@nylas.com"
|
||||||
user_5 = _.extend _.clone(user_headers),
|
user_5 = _.extend _.clone(user_headers),
|
||||||
name: "User Five"
|
name: "User Five"
|
||||||
email: "user5@inboxapp.com"
|
email: "user5@nylas.com"
|
||||||
|
|
||||||
m1 = (new Message).fromJSON({
|
m1 = (new Message).fromJSON({
|
||||||
"id" : "111",
|
"id" : "111",
|
||||||
|
|
|
@ -2,24 +2,24 @@ _ = require 'underscore-plus'
|
||||||
React = require "react/addons"
|
React = require "react/addons"
|
||||||
ReactTestUtils = React.addons.TestUtils
|
ReactTestUtils = React.addons.TestUtils
|
||||||
TestUtils = React.addons.TestUtils
|
TestUtils = React.addons.TestUtils
|
||||||
{Contact, Message} = require "inbox-exports"
|
{Contact, Message} = require "nylas-exports"
|
||||||
MessageParticipants = require "../lib/message-participants"
|
MessageParticipants = require "../lib/message-participants"
|
||||||
|
|
||||||
user_1 =
|
user_1 =
|
||||||
name: "User One"
|
name: "User One"
|
||||||
email: "user1@nilas.com"
|
email: "user1@nylas.com"
|
||||||
user_2 =
|
user_2 =
|
||||||
name: "User Two"
|
name: "User Two"
|
||||||
email: "user2@nilas.com"
|
email: "user2@nylas.com"
|
||||||
user_3 =
|
user_3 =
|
||||||
name: "User Three"
|
name: "User Three"
|
||||||
email: "user3@nilas.com"
|
email: "user3@nylas.com"
|
||||||
user_4 =
|
user_4 =
|
||||||
name: "User Four"
|
name: "User Four"
|
||||||
email: "user4@nilas.com"
|
email: "user4@nylas.com"
|
||||||
user_5 =
|
user_5 =
|
||||||
name: "User Five"
|
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])
|
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", ->
|
it "uses full names", ->
|
||||||
to = ReactTestUtils.findRenderedDOMComponentWithClass(@participants, "to-contact")
|
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"
|
# TODO: We no longer display "to everyone"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{DraftStoreExtension} = require 'inbox-exports'
|
{DraftStoreExtension} = require 'nylas-exports'
|
||||||
|
|
||||||
class TemplatesDraftStoreExtension extends DraftStoreExtension
|
class TemplatesDraftStoreExtension extends DraftStoreExtension
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
React = require "react"
|
React = require "react"
|
||||||
{ComponentRegistry, DraftStore} = require 'inbox-exports'
|
{ComponentRegistry, DraftStore} = require 'nylas-exports'
|
||||||
TemplatePicker = require './template-picker'
|
TemplatePicker = require './template-picker'
|
||||||
TemplateStatusBar = require './template-status-bar'
|
TemplateStatusBar = require './template-status-bar'
|
||||||
Extension = require './draft-extension'
|
Extension = require './draft-extension'
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
_ = require 'underscore-plus'
|
_ = require 'underscore-plus'
|
||||||
React = require 'react'
|
React = require 'react'
|
||||||
TemplateStore = require './template-store'
|
TemplateStore = require './template-store'
|
||||||
{Actions, Message, DatabaseStore} = require 'inbox-exports'
|
{Actions, Message, DatabaseStore} = require 'nylas-exports'
|
||||||
{Popover, Menu, RetinaImg} = require 'ui-components'
|
{Popover, Menu, RetinaImg} = require 'nylas-component-kit'
|
||||||
|
|
||||||
class TemplatePicker extends React.Component
|
class TemplatePicker extends React.Component
|
||||||
@displayName: 'TemplatePicker'
|
@displayName: 'TemplatePicker'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
_ = require 'underscore-plus'
|
_ = require 'underscore-plus'
|
||||||
React = require 'react'
|
React = require 'react'
|
||||||
{Actions, Message, DraftStore} = require 'inbox-exports'
|
{Actions, Message, DraftStore} = require 'nylas-exports'
|
||||||
|
|
||||||
class TemplateStatusBar extends React.Component
|
class TemplateStatusBar extends React.Component
|
||||||
@displayName: 'TemplateStatusBar'
|
@displayName: 'TemplateStatusBar'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Reflux = require 'reflux'
|
Reflux = require 'reflux'
|
||||||
_ = require 'underscore-plus'
|
_ = require 'underscore-plus'
|
||||||
{DatabaseStore, DraftStore, Actions, Message} = require 'inbox-exports'
|
{DatabaseStore, DraftStore, Actions, Message} = require 'nylas-exports'
|
||||||
path = require 'path'
|
path = require 'path'
|
||||||
fs = require 'fs-plus'
|
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'
|
TemplateStore = require '../lib/template-store'
|
||||||
fs = require 'fs-plus'
|
fs = require 'fs-plus'
|
||||||
shell = require 'shell'
|
shell = require 'shell'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ComponentRegistry, WorkspaceStore} = require 'inbox-exports'
|
{ComponentRegistry, WorkspaceStore} = require 'nylas-exports'
|
||||||
ModeToggle = require './mode-toggle'
|
ModeToggle = require './mode-toggle'
|
||||||
|
|
||||||
module.exports =
|
module.exports =
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ComponentRegistry,
|
{ComponentRegistry,
|
||||||
WorkspaceStore,
|
WorkspaceStore,
|
||||||
Actions} = require "inbox-exports"
|
Actions} = require "nylas-exports"
|
||||||
{RetinaImg} = require 'ui-components'
|
{RetinaImg} = require 'nylas-component-kit'
|
||||||
React = require "react"
|
React = require "react"
|
||||||
_ = require "underscore-plus"
|
_ = require "underscore-plus"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ComponentRegistry,
|
{ComponentRegistry,
|
||||||
WorkspaceStore,
|
WorkspaceStore,
|
||||||
Actions} = require "inbox-exports"
|
Actions} = require "nylas-exports"
|
||||||
{RetinaImg} = require 'ui-components'
|
{RetinaImg} = require 'nylas-component-kit'
|
||||||
React = require "react"
|
React = require "react"
|
||||||
_ = require "underscore-plus"
|
_ = require "underscore-plus"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
exec = require('child_process').exec
|
exec = require('child_process').exec
|
||||||
fs = require('fs')
|
fs = require('fs')
|
||||||
|
|
||||||
bundleIdentifier = 'com.inbox.edgehill'
|
bundleIdentifier = 'com.nylas.nylas-mail'
|
||||||
|
|
||||||
module.exports =
|
module.exports =
|
||||||
class LaunchServices
|
class LaunchServices
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{Actions} = require 'inbox-exports'
|
{Actions} = require 'nylas-exports'
|
||||||
LaunchServices = require './launch-services'
|
LaunchServices = require './launch-services'
|
||||||
|
|
||||||
NOTIF_ACTION_YES = 'mailto:set-default-yes'
|
NOTIF_ACTION_YES = 'mailto:set-default-yes'
|
||||||
|
@ -22,7 +22,7 @@ module.exports =
|
||||||
Actions.postNotification
|
Actions.postNotification
|
||||||
type: 'info',
|
type: 'info',
|
||||||
sticky: true
|
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',
|
icon: 'fa-inbox',
|
||||||
actions: [{
|
actions: [{
|
||||||
label: 'Yes'
|
label: 'Yes'
|
||||||
|
|
|
@ -154,7 +154,7 @@ describe "LaunchServices", ->
|
||||||
"LSHandlerContentTagClass": "public.filename-extension",
|
"LSHandlerContentTagClass": "public.filename-extension",
|
||||||
"LSHandlerRoleAll": "com.sublimetext.2"
|
"LSHandlerRoleAll": "com.sublimetext.2"
|
||||||
}, {
|
}, {
|
||||||
"LSHandlerRoleAll": "com.inbox.edgehill",
|
"LSHandlerRoleAll": "com.nylas.nylas-mail",
|
||||||
"LSHandlerURLScheme": "mailto"
|
"LSHandlerURLScheme": "mailto"
|
||||||
}])
|
}])
|
||||||
@services.isRegisteredForURLScheme 'mailto', (registered) ->
|
@services.isRegisteredForURLScheme 'mailto', (registered) ->
|
||||||
|
@ -170,7 +170,7 @@ describe "LaunchServices", ->
|
||||||
LSHandlerContentTagClass: "public.filename-extension",
|
LSHandlerContentTagClass: "public.filename-extension",
|
||||||
LSHandlerRoleAll: "com.sublimetext.2"
|
LSHandlerRoleAll: "com.sublimetext.2"
|
||||||
},{
|
},{
|
||||||
LSHandlerRoleAll: "com.inbox.edgehill",
|
LSHandlerRoleAll: "com.nylas.nylas-mail",
|
||||||
LSHandlerURLScheme: "atom"
|
LSHandlerURLScheme: "atom"
|
||||||
}])
|
}])
|
||||||
@services.isRegisteredForURLScheme 'mailto', (registered) ->
|
@services.isRegisteredForURLScheme 'mailto', (registered) ->
|
||||||
|
@ -202,7 +202,7 @@ describe "LaunchServices", ->
|
||||||
@services.registerForURLScheme 'mailto', =>
|
@services.registerForURLScheme 'mailto', =>
|
||||||
@services.readDefaults (defaults) ->
|
@services.readDefaults (defaults) ->
|
||||||
match = _.find defaults, (d) ->
|
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)
|
expect(match).not.toBe(null)
|
||||||
|
|
||||||
it "should write the new defaults", ->
|
it "should write the new defaults", ->
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
remote = require 'remote'
|
remote = require 'remote'
|
||||||
{Actions} = require 'inbox-exports'
|
{Actions} = require 'nylas-exports'
|
||||||
ipc = require('ipc')
|
ipc = require('ipc')
|
||||||
|
|
||||||
module.exports =
|
module.exports =
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
_ = require 'underscore-plus'
|
_ = require 'underscore-plus'
|
||||||
proxyquire = require 'proxyquire'
|
proxyquire = require 'proxyquire'
|
||||||
Reflux = require 'reflux'
|
Reflux = require 'reflux'
|
||||||
{Actions} = require 'inbox-exports'
|
{Actions} = require 'nylas-exports'
|
||||||
|
|
||||||
stubUpdaterState = null
|
stubUpdaterState = null
|
||||||
stubUpdaterReleaseVersion = null
|
stubUpdaterReleaseVersion = null
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
React = require "react"
|
React = require "react"
|
||||||
Notifications = require "./notifications"
|
Notifications = require "./notifications"
|
||||||
NotificationsStickyBar = require "./notifications-sticky-bar"
|
NotificationsStickyBar = require "./notifications-sticky-bar"
|
||||||
{ComponentRegistry, WorkspaceStore} = require("inbox-exports")
|
{ComponentRegistry, WorkspaceStore} = require("nylas-exports")
|
||||||
|
|
||||||
module.exports =
|
module.exports =
|
||||||
item: null # The DOM item the main React component renders into
|
item: null # The DOM item the main React component renders into
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
React = require 'react'
|
React = require 'react'
|
||||||
{Actions} = require 'inbox-exports'
|
{Actions} = require 'nylas-exports'
|
||||||
NotificationStore = require './notifications-store'
|
NotificationStore = require './notifications-store'
|
||||||
|
|
||||||
class NotificationStickyItem extends React.Component
|
class NotificationStickyItem extends React.Component
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
_ = require 'underscore-plus'
|
_ = require 'underscore-plus'
|
||||||
Reflux = require 'reflux'
|
Reflux = require 'reflux'
|
||||||
{Actions} = require 'inbox-exports'
|
{Actions} = require 'nylas-exports'
|
||||||
|
|
||||||
VERBOSE = false
|
VERBOSE = false
|
||||||
DISPLAY_TIME = 3000 # in ms
|
DISPLAY_TIME = 3000 # in ms
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
NotificationsStore = require '../lib/notifications-store.coffee'
|
NotificationsStore = require '../lib/notifications-store.coffee'
|
||||||
Notification = NotificationsStore.Notification
|
Notification = NotificationsStore.Notification
|
||||||
{Actions} = require 'inbox-exports'
|
{Actions} = require 'nylas-exports'
|
||||||
|
|
||||||
describe 'Notification', ->
|
describe 'Notification', ->
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,8 @@ ReactCSSTransitionGroup = React.addons.CSSTransitionGroup
|
||||||
OnboardingActions = require './onboarding-actions'
|
OnboardingActions = require './onboarding-actions'
|
||||||
OnboardingStore = require './onboarding-store'
|
OnboardingStore = require './onboarding-store'
|
||||||
querystring = require 'querystring'
|
querystring = require 'querystring'
|
||||||
{EdgehillAPI} = require 'inbox-exports'
|
{EdgehillAPI} = require 'nylas-exports'
|
||||||
{RetinaImg} = require 'ui-components'
|
{RetinaImg} = require 'nylas-component-kit'
|
||||||
|
|
||||||
class ContainerView extends React.Component
|
class ContainerView extends React.Component
|
||||||
|
|
||||||
|
@ -65,14 +65,14 @@ class ContainerView extends React.Component
|
||||||
<RetinaImg name="onboarding-close.png"/>
|
<RetinaImg name="onboarding-close.png"/>
|
||||||
</div>
|
</div>
|
||||||
<RetinaImg name="onboarding-logo.png" className="logo"/>
|
<RetinaImg name="onboarding-logo.png" className="logo"/>
|
||||||
<h2>Welcome to Nilas</h2>
|
<h2>Welcome to Nylas</h2>
|
||||||
|
|
||||||
<RetinaImg name="onboarding-divider.png" />
|
<RetinaImg name="onboarding-divider.png" />
|
||||||
|
|
||||||
<form role="form" className="thin-container">
|
<form role="form" className="thin-container">
|
||||||
<div className="prompt">Enter your email address:</div>
|
<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" />
|
<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()}
|
{@_environmentComponent()}
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ class ContainerView extends React.Component
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
_environmentComponent: =>
|
_environmentComponent: =>
|
||||||
return [] unless atom.inDevMode()
|
return [] unless atom.inDevMode()
|
||||||
<div className="environment-selector">
|
<div className="environment-selector">
|
||||||
|
@ -162,4 +162,4 @@ class ContainerView extends React.Component
|
||||||
OnboardingActions.moveToPreviousPage()
|
OnboardingActions.moveToPreviousPage()
|
||||||
|
|
||||||
|
|
||||||
module.exports = ContainerView
|
module.exports = ContainerView
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Reflux = require 'reflux'
|
Reflux = require 'reflux'
|
||||||
Actions = require './onboarding-actions'
|
Actions = require './onboarding-actions'
|
||||||
{EdgehillAPI} = require 'inbox-exports'
|
{EdgehillAPI} = require 'nylas-exports'
|
||||||
ipc = require 'ipc'
|
ipc = require 'ipc'
|
||||||
|
|
||||||
return unless atom.getWindowType() is "onboarding"
|
return unless atom.getWindowType() is "onboarding"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
path = require 'path'
|
path = require 'path'
|
||||||
require 'coffee-react/register'
|
require 'coffee-react/register'
|
||||||
React = require 'react'
|
React = require 'react'
|
||||||
{ComponentRegistry, WorkspaceStore} = require 'inbox-exports'
|
{ComponentRegistry, WorkspaceStore} = require 'nylas-exports'
|
||||||
SearchBar = require './search-bar'
|
SearchBar = require './search-bar'
|
||||||
|
|
||||||
module.exports =
|
module.exports =
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
React = require 'react/addons'
|
React = require 'react/addons'
|
||||||
classNames = require 'classnames'
|
classNames = require 'classnames'
|
||||||
{Actions} = require 'inbox-exports'
|
{Actions} = require 'nylas-exports'
|
||||||
{Menu, RetinaImg} = require 'ui-components'
|
{Menu, RetinaImg} = require 'nylas-component-kit'
|
||||||
SearchSuggestionStore = require './search-suggestion-store'
|
SearchSuggestionStore = require './search-suggestion-store'
|
||||||
_ = require 'underscore-plus'
|
_ = require 'underscore-plus'
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
Reflux = require 'reflux'
|
Reflux = require 'reflux'
|
||||||
{Actions,
|
{Actions,
|
||||||
Contact,
|
Contact,
|
||||||
ContactStore} = require 'inbox-exports'
|
ContactStore} = require 'nylas-exports'
|
||||||
_ = require 'underscore-plus'
|
_ = require 'underscore-plus'
|
||||||
|
|
||||||
# Stores should closely match the needs of a particular part of the front end.
|
# Stores should closely match the needs of a particular part of the front end.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
React = require 'react'
|
React = require 'react'
|
||||||
ReactTestUtils = React.addons.TestUtils
|
ReactTestUtils = React.addons.TestUtils
|
||||||
|
|
||||||
{Actions} = require 'inbox-exports'
|
{Actions} = require 'nylas-exports'
|
||||||
|
|
||||||
SearchBar = require '../lib/search-bar'
|
SearchBar = require '../lib/search-bar'
|
||||||
SearchSuggestionStore = require '../lib/search-suggestion-store.coffee'
|
SearchSuggestionStore = require '../lib/search-suggestion-store.coffee'
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
_ = require 'underscore-plus'
|
_ = require 'underscore-plus'
|
||||||
Reflux = require 'reflux'
|
Reflux = require 'reflux'
|
||||||
request = require 'request'
|
request = require 'request'
|
||||||
{Contact, ContactStore, DatabaseStore, FocusedContactsStore} = require 'inbox-exports'
|
{Contact, ContactStore, DatabaseStore, FocusedContactsStore} = require 'nylas-exports'
|
||||||
|
|
||||||
module.exports =
|
module.exports =
|
||||||
FullContactStore = Reflux.createStore
|
FullContactStore = Reflux.createStore
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
_ = require 'underscore-plus'
|
_ = require 'underscore-plus'
|
||||||
React = require "react"
|
React = require "react"
|
||||||
SidebarFullContact = require "./sidebar-fullcontact"
|
SidebarFullContact = require "./sidebar-fullcontact"
|
||||||
{ComponentRegistry, WorkspaceStore} = require "inbox-exports"
|
{ComponentRegistry, WorkspaceStore} = require "nylas-exports"
|
||||||
|
|
||||||
module.exports =
|
module.exports =
|
||||||
item: null
|
item: null
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
_ = require 'underscore-plus'
|
_ = require 'underscore-plus'
|
||||||
React = require "react"
|
React = require "react"
|
||||||
|
|
||||||
{Actions} = require 'inbox-exports'
|
{Actions} = require 'nylas-exports'
|
||||||
{RetinaImg} = require 'ui-components'
|
{RetinaImg} = require 'nylas-component-kit'
|
||||||
|
|
||||||
class SidebarFullContactDetails extends React.Component
|
class SidebarFullContactDetails extends React.Component
|
||||||
@displayName: "SidebarFullContactDetails"
|
@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