Commit graph

480 commits

Author SHA1 Message Date
Jordan Eldredge
2b91e8a0df Type playlist shade 2018-10-10 20:59:20 -07:00
Jordan Eldredge
d799218a0b Type Playlist Action Area 2018-10-10 20:59:20 -07:00
Jordan Eldredge
7e7f7e6877 Move tracks into their own reducer 2018-10-10 20:59:16 -07:00
Jordan Eldredge
1f7a448b0b Store selected tracks as a Set rather than a property on the track
This will allow us to move tracks into their  own reducer which we'll need for the Media Library
2018-10-10 00:53:40 -07:00
Jordan Eldredge
6d9b30aeb2 Type GenWindow 2018-10-09 23:31:33 -07:00
Jordan Eldredge
033c957ef0 Add id prop to ResizeTarget 2018-10-09 23:30:18 -07:00
Jordan Eldredge
bd923e4b8b Refactor preset loading 2018-10-08 06:54:09 -07:00
Jordan Eldredge
587db7a19d Use the existing CSS when going back to the default skin
Rather than load/parse the default skin, just go back to the css that's
already in the DOM.
2018-10-06 23:12:21 -07:00
jberg
93892c91e7 handle specific error types when fetching presets 2018-10-06 14:33:48 -07:00
jberg
2421770eea handle URLs shaped differently than we expect 2018-10-06 14:33:48 -07:00
jberg
2a5747b84c Allow passing in normal milkdrop preset url 2018-10-06 14:33:48 -07:00
jberg
9eedbe6609 Add MilkDrop title text animation 2018-10-06 14:33:11 -07:00
Jordan Eldredge
f94cb4a7ab Revert "Revert "Serialize to indexdb" (#664)"
This reverts commit a053818c5e.
2018-10-05 21:31:05 -07:00
Jordan Eldredge
a053818c5e
Revert "Serialize to indexdb" (#664)
* Revert "Don't re-center windows when loading from serialized state"

This reverts commit d778c03f61.

* Revert "Clean up comment"

This reverts commit 8253093a2b.

* Revert "Fix spelling of IndexedDB"

This reverts commit b34d90e998.

* Revert "Add a few more generic assertions about serialized state"

This reverts commit a8267581d0.

* Revert "Refactor debounce and throttle"

This reverts commit 6ecc5142b5.

* Revert "Double check that the serialized state we generated equals the one we have saved"

This reverts commit 82a81bf584.

* Revert "Add many tests for serialization"

This reverts commit 55603346c2.

* Revert "Split serialized state types into their own file"

This reverts commit 4c9c5b99d3.

* Revert "Refactor how we manage window positions"

This reverts commit d6a1baece3.

* Revert "Fix export"

This reverts commit 462cf4b42d.

* Revert "Clean up selectors file"

This reverts commit cdfa99383a.

* Revert "Mark serialization methods priviate for now"

This reverts commit fc79c77451.

* Revert "Add types for WindowManager"

This reverts commit 0a7f258b64.

* Revert "Export Box"

This reverts commit e94cdef100.

* Revert "Use browserSize from state. Make it non-optional"

This reverts commit 53481ba892.

* Revert "Add back resetWindowLayout"

This reverts commit 35f4004caa.

* Revert "Begin tracking window size"

This reverts commit 96ed2b353c.

* Revert "Use namespaced Utils for webamplazy"

This reverts commit 949a2bc771.

* Revert "Use namespaced Utils"

This reverts commit 3049350701.

* Revert "Add initial approach of recovering from bad window positions"

This reverts commit 1791babf1a.

* Revert "Move centerWindowsIfNeeded to an action creatorThis forces us to type it, as a nice side benefit"

This reverts commit 40e31f0577.

* Revert "Make state serialization opt-in (for now)"

This reverts commit bef421ebed.

* Revert "Persist focus, and handle bad focus"

This reverts commit 3f1861d4f8.

* Revert "Handle the case where `positions` might be an empty object to begin with"

This reverts commit f8544ed126.

* Revert "Don't center windows when restoring from serialized state"

This reverts commit ca1cfe3dc6.

* Revert "Center windows correctly, even if the windows don't start at 0,0"

This reverts commit 777d482e73.

* Revert "Make hotkeys a function not a singleton class that has side effects when you construct it"

This reverts commit 87ca43ba45.

* Revert "Move global file input out of NPM module"

This reverts commit 9f726899c7.

* Revert "Don't exclude generic windows"

This reverts commit 245dd166a2.

* Revert "Serialize window position as well"

This reverts commit b71e09284e.

* Revert "Persist window states (exept position)"

This reverts commit 690f650e4c.

* Revert "Serialize media state, and apply equalizer state to on deserialize"

This reverts commit 94e105b104.

* Revert "Add a flag to clear IndexDB state"

This reverts commit 364ddb7411.

* Revert "Serialize state to indexdb"

This reverts commit 60429b280a.
2018-10-01 12:50:43 -07:00
Jordan Eldredge
d6a1baece3 Refactor how we manage window positions 2018-09-30 22:04:04 -07:00
Jordan Eldredge
0a7f258b64 Add types for WindowManager 2018-09-30 22:04:04 -07:00
Jordan Eldredge
53481ba892 Use browserSize from state. Make it non-optional 2018-09-30 22:04:04 -07:00
Jordan Eldredge
1791babf1a Add initial approach of recovering from bad window positions 2018-09-30 22:04:04 -07:00
Jordan Eldredge
40e31f0577 Move centerWindowsIfNeeded to an action creatorThis forces us to type it, as a nice side benefit 2018-09-30 22:04:04 -07:00
Jordan Eldredge
3f1861d4f8 Persist focus, and handle bad focus 2018-09-30 22:04:04 -07:00
Jordan Eldredge
f8544ed126 Handle the case where positions might be an empty object to begin with 2018-09-30 22:04:04 -07:00
Jordan Eldredge
ca1cfe3dc6 Don't center windows when restoring from serialized state 2018-09-30 22:04:04 -07:00
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
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
b1674094db Avoid awkward Typescript literal 2018-09-25 07:27:22 -07:00
Jordan Eldredge
17756eaa60 Memoize selectors and use curried functions rather than arguments 2018-09-18 08:38:25 -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
3279033196 Convert ContextMenu and ContextMenuTarget to typescriptThis is the first component to use a connected component 2018-09-17 17:04:05 -07:00
Jordan Eldredge
d85d689539 Type MiniTime.js 2018-09-17 17:04:05 -07:00
Jordan Eldredge
082db5f3e2 Type passthrough props 2018-09-17 17:04:05 -07:00
Jordan Eldredge
49c50887d8 Convert some non-connected components to Typescript 2018-09-17 17:04:05 -07:00
Jordan Eldredge
71b0ed79b1 Convert Character component to Typescript 2018-09-17 17:04:05 -07:00
Jordan Eldredge
4f8a9a7065 Pass dummy data object in SET_SKIN_DATA in test to reset skin 2018-09-17 17:04:05 -07:00
Jordan Eldredge
2c2ee5faab
Refactor PresetOverlay to be easier to understand (#652)
* Refactor PresetOverlay to be easier to understand

* Clean up stray semi
2018-09-11 06:45:50 -07:00
jberg
bc7c5bffaf Load local MilkDrop preset directory (#637) 2018-09-07 22:13:48 -07:00
Isaiah Odhner
6591c98b40 Fix typos 2018-08-30 15:51:11 -07:00
Jakub Ďuraš
fa50df7f6b Remove window wrappers (#636)
* Remove parent wrapper, add filtering out closed windows

* Add the rest of window manager changes (vscode ignores whitespace)

* Make prettier happy
2018-08-23 06:54:15 -07:00
jberg
988e902f65 update to latest preset converter and pass in lambda URL (#641) 2018-08-22 18:40:03 -07:00
Jordan Eldredge
f93c08ec1a Log Milkdrop preset conversion errors to console 2018-08-19 12:26:44 -07:00
jberg
0c4fa55c83 Convert milkdrop presets (#630)
* Convert milkdrop presets

* refactor preset conversion into own class

* save converted preset to preset list

* allow adding multiple presets and convert presets on demand

* remove unused presetConverter prop

* some review tweaks

* switch to package version of preset converter

* remove now unneeded webpack change

* handle preset conversion errors
2018-08-19 12:25:29 -07:00
Jordan Eldredge
593109e8c5 Improve centering within given node 2018-08-18 10:02:40 -07:00
Jordan Eldredge
f799f727b2 Add and enforce class properties 2018-08-17 21:43:26 -07:00
Jakub Ďuraš
1b055b0b1f Optimize painting (#631)
* Optimize marquee and window positioning

* Move transform on marquee out from new object

* Fix typo
2018-08-17 07:18:42 -07:00
Jordan Eldredge
32098e3b62 Fix context menus in Firefox
This is a huge mess of timing.
2018-08-14 19:25:32 -07:00
jberg
24a618bf0b fix oscilloscope amplitude and direction (#629) 2018-08-14 18:46:03 -07:00
Jordan Eldredge
de95b33642 Use constants for media status 2018-08-10 19:25:48 -07:00