Commit graph

1703 commits

Author SHA1 Message Date
Jordan Eldredge
777d482e73 Center windows correctly, even if the windows don't start at 0,0
This is particularly noticeable when state has been rehydrated from a serialized state.
2018-09-30 22:04:04 -07:00
Jordan Eldredge
87ca43ba45 Make hotkeys a function not a singleton class that has side effects when you construct it
This also sets us up for being able to unbind things
2018-09-30 22:04:04 -07:00
Jordan Eldredge
9f726899c7 Move global file input out of NPM module 2018-09-30 22:04:04 -07:00
Jordan Eldredge
245dd166a2 Don't exclude generic windows 2018-09-30 22:04:04 -07:00
Jordan Eldredge
b71e09284e Serialize window position as well 2018-09-30 22:04:04 -07:00
Jordan Eldredge
690f650e4c Persist window states (exept position) 2018-09-30 22:04:04 -07:00
Jordan Eldredge
94e105b104 Serialize media state, and apply equalizer state to on deserialize 2018-09-30 22:04:04 -07:00
Jordan Eldredge
364ddb7411 Add a flag to clear IndexDB state 2018-09-30 22:04:04 -07:00
Jordan Eldredge
60429b280a Serialize state to indexdb 2018-09-30 22:04:04 -07:00
Jakub Ďuraš
379aa70184 Fix add file button handler (#663) 2018-09-30 16:10:44 -07:00
Jordan Eldredge
37bfbf8688 Add google meta tag for verification 2018-09-29 09:56:30 -07:00
Jordan Eldredge
f1e06accf7 Type ResizeTarget 2018-09-28 07:26:28 -07:00
Jordan Eldredge
29c12c656a Type Balance 2018-09-28 07:26:24 -07:00
Jordan Eldredge
7abc3d351d Type MonoStero 2018-09-28 07:06:46 -07:00
Jordan Eldredge
5d6b2d40dc Type Minimize 2018-09-28 07:03:45 -07:00
Jordan Eldredge
839444fe86 Type Volume and MainVolume 2018-09-28 06:58:56 -07:00
Jordan Eldredge
6ace5363d4 Add null gard to media session code 2018-09-28 06:45:22 -07:00
Jordan Eldredge
289a4f8866 Stub out a destroy method with some notes 2018-09-27 07:43:53 -07:00
Jordan Eldredge
343686f745 Don't leak a file into into the global DOM
Fixes #662

This never should have been in the Webamp class. It's only used for testing/screenshots.
2018-09-27 07:24:41 -07:00
Jordan Eldredge
9cef2e606a
Convert call site back to public version 2018-09-26 01:05:11 -07:00
Jordan Eldredge
15aae9387a Type mediaSession and fix the bug that typing revealed. 2018-09-25 22:36:05 -07:00
Jordan Eldredge
3bd6e931c6 Make onTrackDidChange public again.
I realized that onTrackDidChange was already a public API, and that while I'm not sure if the new approach is 100% correct, it's surely better than the old one.
2018-09-25 22:31:05 -07:00
Jordan Eldredge
5f7948c011
Add media session integration (#646) 2018-09-25 22:13:43 -07:00
Jordan Eldredge
b1674094db Avoid awkward Typescript literal 2018-09-25 07:27:22 -07:00
Jordan Eldredge
378d858aa2 Make the hover state of the about buttons bolder
2 is better than 1
2018-09-25 07:27:16 -07:00
Jordan Eldredge
a1ca66955d Add more press links 2018-09-24 17:37:27 -07:00
Jordan Eldredge
c20557dde2 Bump version to 1.2.0 2018-09-24 16:44:59 -07:00
Jordan Eldredge
2da0d8ee53 Fix handling of manual post 2018-09-22 11:09:51 -07:00
Jordan Eldredge
ff06c96de2
Provide a way to prevent closing Webamp (#655)
* Provide a way to prevent closing Webamp

Fixes #653

* Fix typos for onWillClose in usage and types
2018-09-20 06:19:28 -07:00
Jordan Eldredge
17756eaa60 Memoize selectors and use curried functions rather than arguments 2018-09-18 08:38:25 -07:00
Jordan Eldredge
c5b71d91ae Remove unused imports 2018-09-18 07:55:19 -07:00
Jordan Eldredge
5852ce22c9 Move reduer state types into reducers 2018-09-18 07:54:34 -07:00
Jordan Eldredge
a2c28d7742 Remove debug cruft 2018-09-18 07:44:00 -07:00
Jordan Eldredge
9a7861d054 Remove error, in favor of early return/comment 2018-09-18 07:43:01 -07:00
Jordan Eldredge
76b85df82e Handle one case where we can leave a track playing after it's been removed 2018-09-18 07:42:37 -07:00
Jordan Eldredge
ff910ba97e Add mention 2018-09-17 17:05:06 -07:00
Jordan Eldredge
7198df5379 Type snapUtils test 2018-09-17 17:04:05 -07:00
Jordan Eldredge
1780b33fe5 Start typing Jest tests 2018-09-17 17:04:05 -07:00
Jordan Eldredge
614d5f0ca0 Improve typing of PlaylistTrack 2018-09-17 17:04:05 -07:00
Jordan Eldredge
83303f9e0e Type the Redux store 2018-09-17 17:04:05 -07:00
Jordan Eldredge
973ca30117 Add interface stub for winamp-eqf
(No idea why this works. We still need to actually supply the types!)
2018-09-17 17:04:05 -07:00
Jordan Eldredge
44abf69a71 Type file action creators! 2018-09-17 17:04:05 -07:00
Jordan Eldredge
77f9a7d8b7 Expand typeing of fileUtils 2018-09-17 17:04:05 -07:00
Jordan Eldredge
8249ac0907 Add more types for our constants 2018-09-17 17:04:05 -07:00
Jordan Eldredge
c2d5861c49 Types for config 2018-09-17 17:04:05 -07:00
Jordan Eldredge
2e6cf2d157 Add more types
This includes bringing the previous index.d.ts types into our Typescript code base.
2018-09-17 17:04:05 -07:00
Jordan Eldredge
cb337d6261 Fix context menu bug
I guess React does not like it when these are strings
2018-09-17 17:04:05 -07:00
Jordan Eldredge
55f063f5c5 Type snapUtils 2018-09-17 17:04:05 -07:00
Jordan Eldredge
6ef225c746 Convert parent actionCreator module to typescript 2018-09-17 17:04:05 -07:00
Jordan Eldredge
2fea702d5c Type hotkeys 2018-09-17 17:04:05 -07:00