Commit graph

4 commits

Author SHA1 Message Date
Ben Gotow
d2e4590df0 Fix or downgrade remaining eslint warnings to make Travis CI builds succeed 2021-01-19 10:28:44 -06:00
Ben Gotow
ba2816f469 Fix auto-fixable errors identified by the new versions of Typescript + ESLint 2021-01-19 00:45:32 -06:00
Janosch Maier
e8fb6ef2aa
Colorize Accounts (#2240)
* Add configuration option to colorise accounts

* Add German translation for account color

* Fix bug when account is unset in list-tabular-item

* Add account color for "from" field in compose window

* Add color coding to the preferences account list

* Fix styling issue in compose window where account labels where unaligned if only one account had a color configured

* Add account color inside the swipeable element

* Partial Revert "Add configuration option to colorise accounts"

This partially reverts commit f8efccb0f2.

* Ensure that account color is not displayed in thread-list when it is unset

* Add colorized accounts in sidebar and contacts view

* Add new type Style to be used throughout the colorization code

* Add todo note for ensuring that the account color updates correctly

* Remove style definition and use react CSSProperties instead

* Fix crash when opening a draft that was created in GMail

* Refactor accountColor to color

* Ensure dynamic change of the account color in the sidebar

* Add AccountColorBar react component

Co-authored-by: Janosch Maier <maierjaonsch@gmail.com>
2021-01-11 11:17:12 -06:00
Ben Gotow
149b389508
Replace Babel with TypeScript compiler, switch entire app to TypeScript 🎉 (#1404)
* Switch to using Typescript instead of Babel

* Switch all es6 / jsx file extensions to ts / tsx

* Convert Utils to a TS module from module.exports style module

* Move everything from module.exports to typescript exports

* Define .d.ts files for mailspring-exports and component kit… Yes it seems this is the best option :(

* Load up on those @types

* Synthesize TS types from PropTypes for standard components

* Add types to Model classes and move constructor constants to instance vars

* 9800 => 7700 TS errors

* 7700 => 5600 TS errors

* 5600 => 5330 TS errors

* 5330 => 4866 TS errors

* 4866 => 4426 TS errors

* 4426 => 2411 TS errors

* 2411 > 1598 TS errors

* 1598 > 769 TS errors

* 769 > 129 TS errors

* 129 > 22 TS errors

* Fix runtime errors

* More runtime error fixes

* Remove support for custom .es6 file extension

* Remove a few odd remaining references to Nylas

* Don’t ship Typescript support in the compiled app for now

* Fix issues in compiled app - module resolution in TS is case sensitive?

* README updates

* Fix a few more TS errors

* Make “No Signature” option clickable + selectable

* Remove flicker when saving file and reloading keymaps

* Fix mail rule item height in preferences

* Fix missing spacing in thread sharing popover

* Fix scrollbar ticks being nested incorrectly

* Add Japanese as a manually reviewed language

* Prevent the thread list from “sticking”

* Re-use Sheet when switching root tabs, prevent sidebar from resetting

* Ensure specs run

* Update package configuration to avoid shpping types

* Turn eslint back on - we will opt-in to the TS rules one by one
2019-03-04 11:03:12 -08:00
Renamed from app/internal_packages/account-sidebar/lib/sidebar-section.es6 (Browse further)