Commit graph

1331 commits

Author SHA1 Message Date
Jordan Eldredge
b10335adfd Clean up constants 2019-12-06 06:23:03 -08:00
Jordan Eldredge
d4182bc862 Clean up skin stuff and some odds and ends 2019-12-06 06:23:03 -08:00
Jordan Eldredge
2ee295ec72 Remove MediaLibrary components 2019-12-06 06:23:03 -08:00
Jordan Eldredge
9b3cedafc2 Remove LibraryTable 2019-12-06 06:23:03 -08:00
Jordan Eldredge
230980bec0 Remove Sidebar 2019-12-06 06:23:03 -08:00
Jordan Eldredge
5828484983 Remove LibraryButton 2019-12-06 06:23:03 -08:00
Jordan Eldredge
c26d76f2fd Remove CSS 2019-12-06 06:23:03 -08:00
Jordan Eldredge
7650554be9 Memoize some components 2019-12-06 06:22:31 -08:00
Jordan Eldredge
8f78e54fd6 Use hooks or scrollbar 2019-12-05 23:08:48 -08:00
Jordan Eldredge
fe4101763b Refactor TrackList to use hooks 2019-12-05 22:58:32 -08:00
Jordan Eldredge
e351feb9dc Refactor ResizeTarget to use hooks 2019-12-05 22:38:29 -08:00
Jordan Eldredge
75d1420ae4 Extract useOnClickAway 2019-12-05 22:15:36 -08:00
Jordan Eldredge
e815d62f6e Extract useIsHovered hook from PlaystMenuEntry 2019-12-05 21:51:18 -08:00
Jordan Eldredge
005880a052 Add optional chaining and nullish coalescing (#953)
* Support nullish-coalescing-operator

* Support optional chaining
2019-11-30 13:42:53 -08:00
Jordan Eldredge
fb395c39c2 Upgrade prettier 2019-11-30 13:42:53 -08:00
Jordan Eldredge
1e0a9114dd Upgrade ts (#952)
* Upgrade Typescript

* Upgrade prettier

* Upgrade eslint-typescript

* Don't abide extra else

* Remove eslint plugin that we don't use any more

* Remove unused Webpack plugin

* Remove eslint rule that we don't really need

* Remove unused Jest plugin

* Remove redundant package

* Prettier fixes
2019-11-30 13:42:53 -08:00
Jordan Eldredge
2e83920ca1 Handle case where EQ images are missing 2019-11-30 13:42:53 -08:00
Jordan Eldredge
53de63160b Handle case where there are no windows and thus no sensible bounding box
Resolves Sentry issue WINAMP2-JS-PROD-GC
2019-11-30 13:42:53 -08:00
Jordan Eldredge
4a49bcfd03 Fix snapshots to work with new version of rc-slider 2019-11-30 13:42:53 -08:00
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
ffc2423629 Refactor portals to use hooks rather than deprecated lifecycle methods 2019-11-30 13:42:53 -08:00
Jordan Eldredge
646753526b Fix lints 2019-11-30 13:42:53 -08:00
Jordan Eldredge
be2ab37809 Fix typing for Desktop 2019-11-30 13:42:53 -08:00
Jordan Eldredge
60c0ad1e16 Actually use useDispatch 2019-11-30 13:42:53 -08:00
Jordan Eldredge
e79520dbdd Don't allow global access to all of window
We had a bug where `stop()` was undefined but it fell back to the function on window which was inplicitly in the global scope.

This should reduce that kind of thing.
2019-11-30 13:42:53 -08:00
Jordan Eldredge
0472033fba Make Desktop a functional component with hooks 2019-11-30 13:42:53 -08:00
Jordan Eldredge
e3b3eab63e Make AlbumsTable a functional component 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
443392dadb Memoize getting track display name 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
a98e63cbc4 Fix incorrect case of file 2019-11-30 13:42:53 -08:00
jberg
35c9167f2d don't cycle presets when media is not playing (#799) 2019-11-30 13:42:53 -08:00
Jordan Eldredge
59e41c87d6 Revert "POC: Try adding rexux-observable"
This reverts commit 58fd75c8a1.
2019-11-30 13:42:53 -08:00
Jordan Eldredge
577b5e3c17 Handle = as comment separator in .ini files 2019-11-30 13:42:53 -08:00
Jordan Eldredge
765825ab22 POC: Try adding rexux-observable
I don't know how we'll feasibly solve the multide of potential race conditons and async clean up memory leaks without something like rxjs. So, this is a trial to see the following:

1. How much does it increase bundle size?
2. How effective is typechecking?
3. Does it solve some of the difficult cancelation issues we have?
2019-11-30 13:42:53 -08:00