Commit graph

183 commits

Author SHA1 Message Date
Jordan Eldredge
10c6dfed85 Upgrade rc-slider and lift React.StrictMode
rc-slider was preventing us from enabling this more broadly. With https://github.com/react-component/slider/pull/591 merged and released, we can make more of the app strict
2019-11-30 13:42:53 -08:00
Jordan Eldredge
ab6d1ff3bb Fix the stop button
Aparently window.stop() is a thing, and ESLint/TypeScript let me do this. Sigh.

A potential fix: https://github.com/facebook/create-react-app/pull/1840
2019-11-30 13:42:53 -08:00
Jordan Eldredge
567ad29a76 Use react-redux hooks for MainWindow/index
This is the last main window component still using the HOC!
2019-11-30 13:42:53 -08:00
Jordan Eldredge
c1cfd98b21 Remove unused types 2019-11-30 13:42:53 -08:00
Jordan Eldredge
cc578845a6 Use react-redux for Position and Repeat 2019-11-30 13:42:53 -08:00
Jordan Eldredge
9b9421ae54 Use react-redux hooks in Shade 2019-11-30 13:42:53 -08:00
Jordan Eldredge
80c4e2fa10 Use react-redux hooks in Shuffle 2019-11-30 13:42:53 -08:00
Jordan Eldredge
81b5bcfdfd Use react-redux hooks in Time 2019-11-30 13:42:53 -08:00
Jordan Eldredge
f51e51eea2 Use hooks for main context window 2019-11-30 13:42:53 -08:00
Jordan Eldredge
f4230553a8 Type PlaylistTogggleButton 2019-11-30 13:42:53 -08:00
Jordan Eldredge
e7c474e7f6 Inline style 2019-11-30 13:42:53 -08:00
Jordan Eldredge
e345d07e41 Use react-redux hooks for Marquee 2019-11-30 13:42:53 -08:00
Jordan Eldredge
822391c401 Clean up unused type 2019-11-30 13:42:53 -08:00
Jordan Eldredge
f32de1e653 Use react-redux hooks in a few more places 2019-11-30 13:42:53 -08:00
Jordan Eldredge
d6454510a9 Refactor Marquee to use hooks
This actually removes a bunch of edgecases/race conditions
2019-11-30 13:42:53 -08:00
Jordan Eldredge
73b025bf12 Ensure ESLint is running on Travis
It used to run as part of Jest. When I moved it back to its own thing,
I guess I forgot to add it back to Travis.
2019-11-30 13:42:53 -08:00
Jordan Eldredge
f39449b46c Refactor to functional component, and remove unused dispatch prop 2019-11-30 13:42:53 -08:00
Jordan Eldredge
d8b33e4795 Start using react redux hooks (#845)
* Upgrade react-redux

* Upgrade react-redux types

* Start adopting react-redux hooks
2019-11-30 13:42:53 -08:00
Jordan Eldredge
404a502d86 update snapshots 2019-11-30 13:42:53 -08:00
Isaiah Odhner
05741eccfd Fix target="_blank" (#794)
It's tricky because "blank" (without an underscore) will still open a new tab, but it's actually being interpreted as a browsing context name, and so clicking it a second time will replace the previously opened tab (even if navigated away).
2019-06-06 15:03:49 -07:00
Jordan Eldredge
348c000a49 Enable StricMode for subtrees that are compatible 2019-05-09 09:31:31 -07:00
Jordan Eldredge
e5f6edf602 Add onMouseDown handlers to snapshots 2019-05-02 19:56:25 -07:00
Jordan Eldredge
f8167dd322 Autoplay tracks that are dropped on the main window 2019-05-02 16:58:05 -07:00
Jordan Eldredge
c75214dcd7 Improve reliance on selector caching 2019-05-02 07:23:41 -07:00
Jordan Eldredge
c00cb44b8d Update tests to reflect new focus management style 2019-05-01 22:29:10 -07:00
Jordan Eldredge
6132acdf2c Make focus nullable 2019-05-01 22:29:10 -07:00
Jordan Eldredge
8627b4d2c4 Use native event handling for keydown
This allows us to stopPropogation and actually prevent global hotkeys
2019-05-01 22:29:10 -07:00
Jordan Eldredge
24d446e47b Extract focus management to a component 2019-05-01 22:29:10 -07:00
Jordan Eldredge
7913048e41 Send users to the GitHub page via webamp.org
At some point in the future github may not be the canonical URL for
webamp. However, people are integrating Webamp all the time and very
likely won't ever upgrade.

It's better if the url baked into the binary we distribute is under our
control so that it can be pointed somewhere else in the future.

It's also an open question if GitHub is the best place to send users.
Non technical users may get very confused.
2019-04-12 16:50:47 -07:00
Jordan Eldredge
50267f3ac2 Clearn up unused dependencies 2019-03-19 07:49:57 -07:00
Jordan Eldredge
bd5fa82c99 Trailing commas! 2019-03-19 06:55:24 -07:00
remi.gallego@gmail.com
411669655f Extend drop target behaviour for objects 2019-03-16 22:23:19 -07:00
Jordan Eldredge
c5011ca3d2 Type Eject.js 2019-03-03 15:00:57 -08:00
Jordan Eldredge
d2f05768f0 Fix tests for marquee now that we account for separator 2019-02-17 15:07:57 -08:00
Jordan Eldredge
6c28ac5386 Fix issue with looping and separator 2019-02-17 15:03:28 -08:00
Jordan Eldredge
1fdbbb844a Don't add *** to nonlooping marquee text
Fixes #726
2019-02-17 14:58:54 -08:00
Jordan Eldredge
2df185b1a3
Upgrade React (#727)
* Upgrade React

type hooks

* Fix type for passthrough props

* Fix some react typings

* Fix type error with MouseEvent
2019-02-17 14:42:35 -08:00
Jordan Eldredge
c05099fd8f Type some more stuff 2019-02-09 23:22:44 -05:00
Jordan Eldredge
48912634b1 Add preamp to media mocks 2019-01-06 14:34:14 -08:00
Jordan Eldredge
df93ec482c Type Shade button 2018-12-30 15:56:29 -08:00
Jordan Eldredge
58dafaffa4 Type MainContextMenu 2018-12-30 15:54:16 -08:00
Jordan Eldredge
fbc0bede3e Type the main window 2018-12-29 16:06:52 -08:00
Jordan Eldredge
b16fb3a2ae Move file specific media info to the track
Fixes #712
2018-12-29 16:06:51 -08:00
Jordan Eldredge
eb296fc182 Type Shuffle 2018-12-29 16:06:51 -08:00
Jordan Eldredge
107a4cee1b Type Repeat 2018-12-29 16:06:51 -08:00
Jordan Eldredge
4b53209e0c Fix blurry marquee when doubled
Fixes #701
2018-11-10 15:18:34 -08:00
Jordan Eldredge
6f43b4b8b3 Add options context menu 2018-10-24 22:10:51 -07:00
Jordan Eldredge
af82af36da type Time 2018-10-23 22:02:32 -07:00
Jordan Eldredge
30f668b871 Type Marquee 2018-10-13 17:33:43 -07:00
Jordan Eldredge
90d5f1b3c8 Type ClutterBar 2018-10-13 14:01:40 -07:00