React = require 'react' path = require 'path' {RetinaImg, ConfigPropContainer} = require 'nylas-component-kit' {EdgehillAPI} = require 'nylas-exports' OnboardingActions = require './onboarding-actions' InitialPackages = [{ 'label': 'Templates', 'packageName': 'templates', 'description': 'Templates let you fill an email with a pre-set body of text and a snumber of fields you can fill quickly to save time.' 'icon': 'setup-icon-templates.png' }, { 'label': 'Signatures', 'packageName': 'signatures', 'description': 'Select from and edit mutiple signatures that N1 will automatically append to your sent messages.' 'icon': 'setup-icon-signatures.png' },{ 'label': 'Github', 'packageName': 'N1-Github-Contact-Card-Section' 'description': 'Adds Github quick actions to many emails, and allows you to see the Github profiles of the people you email.' 'icon': 'setup-icon-github.png' }] class InstallButton extends React.Component constructor: (@props) -> @state = installed: atom.packages.resolvePackagePath(@props.packageName)? installing: false render: => classname = "btn btn-install" classname += " installing" if @state.installing classname += " installed" if @state.installed
_onInstall: => return false unless @props.packageName {resourcePath} = atom.getLoadSettings() packagePath = path.join(resourcePath, "examples", @props.packageName) @setState(installing: true) atom.packages.installPackageFromPath packagePath, (err) => @setState({ installing: false installed: atom.packages.resolvePackagePath(@props.packageName)? }) componentWillUnmount: => @listener?.dispose() class InitialPackagesPage extends React.Component @displayName: "InitialPackagesPage" render: =>

Explore packages

Packages lie at the heart of N1 and give it it's powerful features.
Want to enable a few example packages now? They'll be installed to ~/.nylas

{InitialPackages.map (item) =>
{item.label}
{item.description}
}
_onPrevPage: => OnboardingActions.moveToPage('initial-preferences') _onGetStarted: => ipc = require 'ipc' ipc.send('account-setup-successful') module.exports = InitialPackagesPage