Commit graph

28 commits

Author SHA1 Message Date
Ben Gotow 7a11432b18 Use npm@7 when running our own postinstall script 2021-02-14 17:14:39 -06:00
Ben Gotow cff437e900
Upgrade to Electron 8, improve TS usage and TS errors outside calendar [requires re- npm install] (#2284)
* Shfit away from default exports and PropTypes for better TS support

* localize strings and expand use of types in WeekView, create new EventOccurence distinct from Event

* Remove calendar wrap, use TS enum for view type + consistent prop interface

* Bump Typescript to 3.8.3 and improve query / attribute / search typings

* Re-use the Autolinker for calendar event descriptions with aggressive phone detection

* Clean up WeekView and the editing popover, lots of cruft here

* Update ScrollRegion to initialize scrollbar provided by external ref

* Expose ScrollRegion’s resizeObserver to clean up tick interval tracking

* Simply tickGenerator and move it to a helper

* Bump to Electron 8.x for Chrome 75+ CSS features

* Bump Handlebars dep to fix annoying npm audit noise

* Remove electron-remote from electron-spellchecker

* Explicitly add node-gyp, why is this necessary?

* Fix lesslint issues

* Bump eslint and let it fix 133 issues

* Satisfy remaining eslint@2020 errors by hand

* Add tsc-watch npm script and fix all TS errors outside calendar

* Configure appveyor to publish all the pdb files it gets

* Log sync exit codes and signals for easier triage on Windows

* Upgrade npm, mark that the build process supports Node 11+ not just Node 11

* Resolve more errors

* Upgrade sqlite to be a context-aware native module

* Fix: Tab key no longer navigating into contenteditable because tabIndex not inferred

* Fix: Bad print styles because Chrome now adds more CSS of it’s own when doctype is missing

* Fix: before-navigate is now called after beforeunload
2021-02-14 15:58:22 -06:00
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 b13bcd5c0a Update Typescript, eslint dependencies to reflect TS 3.7+ requirement 2021-01-19 00:39:32 -06:00
Ben Gotow c0d816ab96 Explicitly add node-gyp as a dev dependency for Linux #2106 2020-08-17 08:30:44 -05:00
Ben Gotow c7bf6b19dc Expand Yandex login screen to include steps to enable IMAP #2111 2020-08-16 18:37:33 -05:00
Arunmozhi 8b57cb4c32
fixes wrong time in event header due to timezone mismatch (#2093)
Co-authored-by: Ben Gotow <ben@foundry376.com>
2020-08-16 18:08:15 -05:00
Ben Gotow 71504f2c10 Pad the new “Show Original” menu item slightly, update changelog 2020-05-20 22:17:39 -05:00
Ben Gotow d54ff73044 Update macOS notorization for Apple’s Feb 2020 “hardened runtime” requirement 2020-02-24 18:29:45 -06:00
Ben Gotow ea37c75596 Add plaintext mail display and composition via new setting / Alt key #52
Most draft features are disabled in plaintext mode because I don’t think it’s worth trying to make them work unless this gains traction. Mostly doing this so we can add GPG / PGP / Keybase in the future.
2020-02-19 23:25:02 -06:00
Ben Gotow 7c0cb4e6fc Retrieve online status from mailsync workers, remove is-online and it’s 56 (🤭) internal deps #1357, #1731, #1123 2020-02-17 00:23:52 -06:00
Ben Gotow 1991f80fcb Bump to Xcode 11.2 for macOS notorization 2019-10-22 12:27:03 -05:00
Ben Gotow 5ad85ff7cb Semver caret syntax is patch-only for 0.x.x, fork to update slate-edit-list peerDep 2019-06-11 01:48:25 -05:00
Ben Gotow f6de37f181 Rebuild package-lock to fix build errors 2019-06-11 00:05:40 -05:00
Ben Gotow 6bd51c70f6 Update package.lock and run npm audit 2019-03-18 09:14:03 -07:00
Artur Kraft 0f52f13618 Add icon to notifications (#1405)
* adds icon to the notifications

on windows and mac the default icon is used (from resources), on linux
the one set in the .desktop file is searched and used

* add budgie gnome to supported desktop environments

* converted to typescript and removed cache, icon is now loaded once at the beginning

* don't execute the gsettings command if the path is null
2019-03-12 21:16:57 -07: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
Ben Gotow 1677bd7ed0 Add explicit deep-extend dependency to workaround bug in npm dedupe 2019-02-04 22:37:14 -08:00
Ben Gotow e85d8bd8f3 Upgrade packages with the help of npm audit fix 2019-02-04 21:54:38 -08:00
Ben Gotow a9c61d135e Add a “View License” menu item similar to Atom’s 2019-01-03 01:11:20 -08:00
Ben Gotow 4d785c4166 Initial crossplatform preview support using pdfjs, mammoth, snarkdown, xlsx
PDFJS, MammothJS and SheetJS require we preserve copyright notices in the app. Need to put those somewhere!

# Conflicts:
#	app/lang/pt-BR.json
2019-01-03 01:11:11 -08:00
Ben Gotow b167b9cdcd Update to electron-packager 13.0.x 2018-12-20 12:12:40 -07:00
Ben Gotow 3f183b7f82 Honor “do not disturb” on Windows and macOS #966 2018-11-22 14:44:37 -08:00
Ben Gotow 6a24e46d9b Bump Electron to 2.0.14 2018-11-22 14:12:50 -08:00
Ben Gotow 1142b59f72 RTL interface support for Arabic, etc. Flipped UI, fine tuning via RTLCSS 2018-10-15 22:45:24 -07:00
Ben Gotow a9da75094f Bump to Electron 2.0.11 to resolve #1108 2018-10-07 23:40:19 -07:00
Ben Gotow cb311d32be Bump to Electron 2.0.2 🎉 2018-06-25 00:43:41 -05:00
Ben Gotow 3133b3f70d Replace electron-lets-move with new Electron API #821 2018-05-22 17:46:18 -07:00