Mailspring/static/components
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
..
attachment-items.less 🎨(attachments): DRY and cleanup attachment components code 2016-10-31 17:26:20 -07:00
button-dropdown.less fix(collapsed-participants): Resize in correct scenarios 2016-04-05 14:16:24 -07:00
contenteditable.less fix(composer): Wrap composer instead of allowing overflow-x 2016-09-28 17:39:44 -07:00
date-input.less feat(reminders): Add send reminders functionality 2016-10-27 08:49:29 -07:00
date-picker-popover.less feat(reminders): Add send reminders functionality 2016-10-27 08:49:29 -07:00
date-picker.less fix(schedule): Move z-indexes to prevent dropdown layering issue 2016-04-11 14:58:58 -07:00
disclosure-triangle.less fix(sidebar): Fix overflow of account name 2016-04-26 15:53:51 -07:00
editable-list.less refactor(ui-variables): Clean UI variables for consistency/usage 2016-03-15 11:18:50 -07:00
editable-table.less fix(build): resolve lesslint issue 2016-04-27 19:20:59 -07:00
empty-list-state.less fix(empty): Add padding to empty message 2016-04-11 18:20:28 -07:00
extra.less feat(download-all): Adds download-all button + style updates, more ES6 2016-03-21 18:23:26 -07:00
fixed-popover.less feat(reminders): Add send reminders functionality 2016-10-27 08:49:29 -07:00
generated-form.less fix(token): Fix placeholder & style issues in tokenizing text field 2016-10-27 12:02:45 -04:00
key-commands-region.less feat(keymap): add new <KeymapHandlers /> 2015-11-06 11:47:06 -08:00
list-tabular.less fix(thread-list): Invisible div extending into thread list blocks clicks 2016-02-24 20:05:21 -08:00
menu.less refactor(signatures): Removed old signature imgs and made static empty signatures page 2016-07-11 12:35:41 -07:00
modal.less feat(SFDC): Initial SFDC commit 2016-10-26 19:46:54 -04:00
multiselect-dropdown.less refactor(signatures): Removed old signature imgs and made static empty signatures page 2016-07-11 12:35:41 -07:00
nylas-calendar.less feat(calendar): can pick which calendars you want displayed 2016-10-13 11:37:19 -04:00
outline-view.less fix(sidebar): Show icons when hovering over entire section 2016-06-06 17:57:39 -07:00
scroll-region.less feat(find-in-thread): add the ability to find in a thread 2016-03-02 14:46:27 -08:00
spinner.less fix(spinner): Improve loading indicator style / tweening 2015-12-09 15:47:51 -08:00
switch.less 🎨(preferences): Updates preferences to look prettier 2016-04-01 14:01:26 -07:00
table.less perf(mail-merge): Add lazy rendering to table 2016-04-29 13:10:15 -07:00
time-picker.less feat(scheduler): better time picker 2016-04-07 15:14:33 -07:00
toast.less feat(undo-send): Add undo send 2016-10-26 20:40:10 -07:00
tokenizing-text-field.less feat(SFDC): Initial SFDC commit 2016-10-26 19:46:54 -04:00
tutorial-overlay.less fix(tutorial): Minor tweaks, finalized styling 2016-09-16 17:34:22 -07:00
undo-toast.less feat(undo-send): Add undo send 2016-10-26 20:40:10 -07:00
unsafe.less fix(lint): fix linter errors with latest land 2015-04-30 18:27:39 -07:00