Commit graph

18 commits

Author SHA1 Message Date
Jordan Eldredge
33cd6a5c27 Use hooks in App.tsx 2019-12-23 18:13:08 -08:00
Jordan Eldredge
1fce48befb Rewrite WindowManager to use hooks 2019-12-23 00:55:56 -08:00
Jordan Eldredge
77823a07fe Make App a functional component
This also fixes a bug where after resizing the browser and closing Webamp the icon would be unclickable.

Clearing style.right by setting it to "none" was wrong. "auto" is the right value to unset it.
2019-12-06 21:22:25 -08:00
Jordan Eldredge
d24b86e189
Rm media library (#957)
* Remove CSS

* Remove LibraryButton

* Remove Sidebar

* Remove LibraryTable

* Remove MediaLibrary components

* Clean up skin stuff and some odds and ends

* Clean up constants

* Remove Media Library from compiled CSS
2019-12-06 06:24:21 -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
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
c56bf0a964 Use React's blur event to detect with Webamp itself loses focus 2019-05-07 17:08:08 -07:00
Jordan Eldredge
bd3f986ade Only clear focus is the focus is leaving the app 2019-05-06 22:22:32 -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
80f34157dd Notate some places where we have known bugs 2019-04-07 12:37:03 -07:00
Jordan Eldredge
cce7928f4e Accept the reality of event emitter 2019-04-05 07:34:14 -07:00
Jordan Eldredge
5713052415 Type ref callback 2019-04-05 07:34:14 -07:00
Jordan Eldredge
646b38319e Remove unused property 2019-04-05 07:34:14 -07:00
Jordan Eldredge
12139fb190 Type bindings 2019-04-05 07:34:14 -07:00
Jordan Eldredge
071c54b870 Initial typing of App.tsx 2019-04-05 07:34:14 -07:00
Renamed from js/components/App.js (Browse further)