mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-06 12:44:30 +08:00
refactor(packages): Remove Edgeforce
This commit is contained in:
parent
700ade2936
commit
a0e64bf580
7 changed files with 13 additions and 57 deletions
|
@ -4,7 +4,6 @@
|
||||||
'ui-light'
|
'ui-light'
|
||||||
]
|
]
|
||||||
'disabledPackages': [
|
'disabledPackages': [
|
||||||
"calendar-bar",
|
"calendar-bar"
|
||||||
"salesforce"
|
|
||||||
]
|
]
|
||||||
'updateLevel': 'patch'
|
'updateLevel': 'patch'
|
||||||
|
|
|
@ -19,7 +19,7 @@ class ConnectAccountPage extends Page
|
||||||
|
|
||||||
<div className="thin-container">
|
<div className="thin-container">
|
||||||
<div className="prompt">Link accounts from other services to supercharge your email.</div>
|
<div className="prompt">Link accounts from other services to supercharge your email.</div>
|
||||||
<button className="btn btn-larger btn-gradient" onClick={=> @_fireAuthAccount('salesforce')}>Salesforce</button>
|
<p>No more external accounts to link. Add additional features with plugins to Nylas Mail.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,40 +0,0 @@
|
||||||
fs = require 'fs'
|
|
||||||
path = require 'path'
|
|
||||||
React = require ('react/addons')
|
|
||||||
ReactTestUtils = React.addons.TestUtils
|
|
||||||
{FormItem,
|
|
||||||
GeneratedForm,
|
|
||||||
GeneratedFieldset} = require ('../../src/components/generated-form')
|
|
||||||
|
|
||||||
fixtureModule = path.resolve(__dirname, '..', '..', 'internal_packages', 'salesforce')
|
|
||||||
Adapter = require(path.join(fixtureModule, 'lib/salesforce-schema-adapter'))
|
|
||||||
fpath = path.join(fixtureModule, 'spec/fixtures/opportunity-layouts.json')
|
|
||||||
rawData = JSON.parse(fs.readFileSync(fpath, 'utf-8'))
|
|
||||||
testData = Adapter.convertFullEditLayout("opportunity", rawData)
|
|
||||||
|
|
||||||
describe "Form Builder", ->
|
|
||||||
beforeEach ->
|
|
||||||
for fieldset in testData.fieldsets
|
|
||||||
for formItem in fieldset.formItems
|
|
||||||
if formItem.type is "reference"
|
|
||||||
formItem.type = React.createClass(render: -> <div></div>)
|
|
||||||
|
|
||||||
@form = ReactTestUtils.renderIntoDocument(
|
|
||||||
<GeneratedForm {...testData} onSubmit={->} onChange={->}></GeneratedForm>
|
|
||||||
)
|
|
||||||
|
|
||||||
it "generates a form", ->
|
|
||||||
forms = ReactTestUtils.scryRenderedComponentsWithType(@form, GeneratedForm)
|
|
||||||
$forms = ReactTestUtils.scryRenderedDOMComponentsWithTag(@form, "form")
|
|
||||||
expect(forms.length).toBeGreaterThan 0
|
|
||||||
expect($forms.length).toBeGreaterThan 0
|
|
||||||
|
|
||||||
it "generates a fieldset", ->
|
|
||||||
fieldsets = ReactTestUtils.scryRenderedComponentsWithType(@form, GeneratedFieldset)
|
|
||||||
$fieldsets = ReactTestUtils.scryRenderedDOMComponentsWithTag(@form, "fieldset")
|
|
||||||
expect(fieldsets.length).toBeGreaterThan 0
|
|
||||||
expect($fieldsets.length).toBeGreaterThan 0
|
|
||||||
|
|
||||||
it "generates a form item", ->
|
|
||||||
items = ReactTestUtils.scryRenderedComponentsWithType(@form, FormItem)
|
|
||||||
expect(items.length).toBeGreaterThan 0
|
|
|
@ -151,11 +151,10 @@ class TokenizingTextField extends React.Component
|
||||||
@propTypes:
|
@propTypes:
|
||||||
# An array of current tokens.
|
# An array of current tokens.
|
||||||
#
|
#
|
||||||
# A token is usually an object type like a
|
# A token is usually an object type like a `Contact`. The set of
|
||||||
# `Contact` or a `SalesforceObject`. The set of tokens is stored as a
|
# tokens is stored as a prop instead of `state`. This means that when
|
||||||
# prop instead of `state`. This means that when the set of tokens
|
# the set of tokens needs to be changed, it is the parent's
|
||||||
# needs to be changed, it is the parent's responsibility to make that
|
# responsibility to make that change.
|
||||||
# change.
|
|
||||||
tokens: React.PropTypes.arrayOf(React.PropTypes.object)
|
tokens: React.PropTypes.arrayOf(React.PropTypes.object)
|
||||||
|
|
||||||
# The maximum number of tokens allowed. When null (the default) and
|
# The maximum number of tokens allowed. When null (the default) and
|
||||||
|
|
|
@ -21,9 +21,9 @@ For more information about Contacts on the Nylas Platform, read the
|
||||||
`email`: {AttributeString} The email address of the contact. Queryable.
|
`email`: {AttributeString} The email address of the contact. Queryable.
|
||||||
|
|
||||||
`thirdPartyData`: {AttributeObject} Extra data that we find out about a
|
`thirdPartyData`: {AttributeObject} Extra data that we find out about a
|
||||||
contact. The data is keyed by the service that dumped the data there e.g.
|
contact. The data is keyed by the 3rd party service that dumped the data
|
||||||
"salesforce" or "fullcontact". The value is an object of raw data in the
|
there. The value is an object of raw data in the form that the service
|
||||||
form that the service provides
|
provides
|
||||||
|
|
||||||
We also have "normalized" optional data for each contact. This list may
|
We also have "normalized" optional data for each contact. This list may
|
||||||
grow as the needs of a contact become more complex.
|
grow as the needs of a contact become more complex.
|
||||||
|
|
|
@ -13,11 +13,9 @@ AccountStore = require '../stores/account-store'
|
||||||
CreateMetadataTask = require '../tasks/create-metadata-task'
|
CreateMetadataTask = require '../tasks/create-metadata-task'
|
||||||
DestroyMetadataTask = require '../tasks/destroy-metadata-task'
|
DestroyMetadataTask = require '../tasks/destroy-metadata-task'
|
||||||
|
|
||||||
# TODO: This Store is like many other stores (like the
|
# TODO: This Store has to double cache data from the API and the DB with
|
||||||
# SalesforceObjectStore or the SalesforceThreadAssociationStore) in that it has
|
# minor variation. There's a task to refactor these stores into something
|
||||||
# to double cache data from the API and the DB with minor variation.
|
# like an `APIBackedStore` to abstract some of the complex logic out.
|
||||||
# There's a task to refactor these stores into something like an
|
|
||||||
# `APIBackedStore` to abstract some of the complex logic out.
|
|
||||||
|
|
||||||
MAX_API_RATE = 1000
|
MAX_API_RATE = 1000
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// 3. Generic font descriptor mixins (.bold, .italic, .h1, .h2)
|
// 3. Generic font descriptor mixins (.bold, .italic, .h1, .h2)
|
||||||
// --------
|
// --------
|
||||||
// 4. Generic usage descriptor (.btn-text, .p-body)
|
// 4. Generic usage descriptor (.btn-text, .p-body)
|
||||||
// 5. Application-specific usage (.message-list-h1, .salesforce-h1)
|
// 5. Application-specific usage (.message-list-h1)
|
||||||
|
|
||||||
//=============================== Colors ===============================//
|
//=============================== Colors ===============================//
|
||||||
//== Brand colors
|
//== Brand colors
|
||||||
|
|
Loading…
Add table
Reference in a new issue