Mailspring/internal_packages/ui-darkside/styles
Juan Tejada b8ed562d19 🎨(attachments): DRY and cleanup attachment components code
Summary:
The attachment components were the only React Components which used
inheritance between components, which is an anti-pattern in react. I
deleted these components in favor of new purely functional/dumb
components exposed via the component-kit: Attachment Item and
ImageAttachmentItem. These are defined in the same file to reuse some
smaller components between them, like the progress-bar, etc.

The attachments pacakage still remains, and only registers a single component to
a new are called MessageAttachments. This InjectedComponent role is
shared by the Composer and MessageItem, and is the only reason this
exists as an injected component in a separate package.
MessageAttachments renders all image and non image attachments for a
message or draft, and binds the appropriate actions for removal, downloading, etc.

The composer still used FileUpload and ImageUpload components for rendering
uploads in the Composer (i.e. when you add an attachment (these are
different from files because they aren't saved until the draft is
sent)). These 2 components were pretty much copied and pasted from the
ones in the attachments package, with subtle differences-- I got rid of
these as well in favor of the new AttachmentItem and ImageAttachmentItem

Also convert more coffee to ES6!

Test Plan: Unit tests

Reviewers: bengotow, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D3381
2016-10-31 17:26:20 -07:00
..
darkside-composer.less 🎨(attachments): DRY and cleanup attachment components code 2016-10-31 17:26:20 -07:00
darkside-drafts.less fix(darkside): script/grunt lint requires explicit LESS includes 2016-09-20 10:26:44 -07:00
darkside-inputs.less fix(darkside): script/grunt lint requires explicit LESS includes 2016-09-20 10:26:44 -07:00
darkside-labels.less fix(darkside): script/grunt lint requires explicit LESS includes 2016-09-20 10:26:44 -07:00
darkside-message-list.less fix(darkside): script/grunt lint requires explicit LESS includes 2016-09-20 10:26:44 -07:00
darkside-notifications.less feat(sidebar-notifs) Create sidebar notifications to replace old bars 2016-10-04 08:08:23 -07:00
darkside-preferences.less fix(darkside): script/grunt lint requires explicit LESS includes 2016-09-20 10:26:44 -07:00
darkside-sidebar.less fix(darkside): script/grunt lint requires explicit LESS includes 2016-09-20 10:26:44 -07:00
darkside-swiping.less fix(darkside): script/grunt lint requires explicit LESS includes 2016-09-20 10:26:44 -07:00
darkside-thread-icons.less fix(darkside): script/grunt lint requires explicit LESS includes 2016-09-20 10:26:44 -07:00
darkside-threadlist.less fix(darkside): script/grunt lint requires explicit LESS includes 2016-09-20 10:26:44 -07:00
darkside-toolbars.less fix(darkside): script/grunt lint requires explicit LESS includes 2016-09-20 10:26:44 -07:00
darkside-variables.less
darkside-window-controls.less fix(darkside): script/grunt lint requires explicit LESS includes 2016-09-20 10:26:44 -07:00
theme-colors.less