Commit graph

2592 commits

Author SHA1 Message Date
Jordan Eldredge
4e52a67d39 Add a few missing classes.
These still need to be added to runtime/index.ts I'm working on how to derive the IDs.

https://github.com/captbaritone/webamp/pull/855
2019-11-30 13:42:53 -08:00
Jordan Eldredge
75ce830ee5 Try to upgrade browserslist 2019-11-30 13:42:53 -08:00
Jordan Eldredge
dc4170fd38 Remove duplicate method 2019-11-30 13:42:53 -08:00
Jordan Eldredge
c7d3f0f947 Add pldir to objects 2019-11-30 13:42:53 -08:00
Jordan Eldredge
7f25ab2fb9 Fix OOM when parsing skins 2019-11-30 13:42:53 -08:00
Jordan Eldredge
d4a16239ed Clean up PopupMenu a tiny bit 2019-11-30 13:42:53 -08:00
Jordan Eldredge
39a6663960 Clean up System a tiny bit 2019-11-30 13:42:53 -08:00
Jordan Eldredge
b555cc720a Get script group via public method, not direct property access 2019-11-30 13:42:53 -08:00
Jordan Eldredge
6cabec22a9 Try to avoid OOM when parsing large numbers of skins (Untested) 2019-11-30 13:42:53 -08:00
Jordan Eldredge
1dff08f2d3 Clean up docs 2019-11-30 13:42:53 -08:00
Jordan Eldredge
1560df52ae Don't shadow global Map 2019-11-30 13:42:53 -08:00
Jordan Eldredge
86c3883af6 logger.warn only takes two arguments, unlike console.warn 2019-11-30 13:42:53 -08:00
jberg
55451ae5ac Fix for popupmenu commands (#931)
* Fix for popupmenu commands

* add return type
2019-11-30 13:42:53 -08:00
Jordan Eldredge
09bf9a73dc Fix some type errors in System 2019-11-30 13:42:53 -08:00
Jordan Eldredge
4d55557f7f Continue improving Maki types 2019-11-30 13:42:53 -08:00
Jordan Eldredge
09c4d7aaea Fix types for more Maki objects 2019-11-30 13:42:53 -08:00
Jordan Eldredge
a033d98f91 Remove accidental debug log 2019-11-30 13:42:53 -08:00
Jordan Eldredge
571b65ad8c Fix more types for maki standard library 2019-11-30 13:42:53 -08:00
Jordan Eldredge
5775dadae8 Improve a few more types in Maki objects 2019-11-30 13:42:53 -08:00
Jordan Eldredge
ef856bb617 Fix types for Config 2019-11-30 13:42:53 -08:00
Jordan Eldredge
9860da6570 Remove unused arguments 2019-11-30 13:42:53 -08:00
Jordan Eldredge
ab30417a24 Improve, but don't fix fully, types in Popmenu 2019-11-30 13:42:53 -08:00
Jordan Eldredge
bff2f94fc5 Implement list (#924)
* Add eslint support for Maki any

* Implement all of List
2019-11-30 13:42:53 -08:00
Jordan Eldredge
a3e2f76832 Fix types for Timer 2019-11-30 13:42:53 -08:00
Jordan Eldredge
d400d39841 Remove the Redux store from Maki objects 2019-11-30 13:42:53 -08:00
Jordan Eldredge
2d7db715c2 Start typechecking more runtime objects 2019-11-30 13:42:53 -08:00
Jordan Eldredge
7652381d46 Improive typing in modern 2019-11-30 13:42:53 -08:00
Jordan Eldredge
5f870c870b Expose children via js_getChildren 2019-11-30 13:42:53 -08:00
Jordan Eldredge
1546a9b057 Don't spread attributes into components
Eventually we want `.attributes` to be private and require going through methodso on the maki object to access.
2019-11-30 13:42:53 -08:00
Jordan Eldredge
eb619e3a5b Rename components to clarify that nodes are actually maki objects 2019-11-30 13:42:53 -08:00
Jordan Eldredge
cf2c88b1c0 Add parent references to XML tree 2019-11-30 13:42:53 -08:00
Jordan Eldredge
2e230ac3e0 Remove console.log 2019-11-30 13:42:53 -08:00
Jordan Eldredge
c90c2a573a Trigger js_update on self 2019-11-30 13:42:53 -08:00
Jordan Eldredge
29e4d5040f Avoid rerender cascade
Previously a `js_trigger` event in MMD3's resting state would take about
40ms to render. Now it takes about 4ms.
2019-11-30 13:42:53 -08:00
Jordan Eldredge
7666047927 Return a string so other methods don't crash 2019-11-30 13:42:53 -08:00
Jordan Eldredge
60d4f686c9 Add font support (#902) 2019-11-30 13:42:53 -08:00
jberg
baa83eed61 Fix image lookups for animated layers (#928) 2019-11-30 13:42:53 -08:00
jberg
59281e056f Move all image lookups to XML tree and support directly specifying image file (#886)
* handle image lookup in initialize for zip files

* remove unused params

* get image paths from node separately

* do image lookups in initialize

* fix lint errors

* handle case insensitivity and small tweaks

* handle nodes without name before we call toLowerCase

* fix isString

* move image lookups to xml tree

* update function comment

* spell out lowercase

* add additional comment about why we return node itself

* remove extra variable

* rename imagePaths to imageAttributes

* early returns

* move all resolved images to js_assets attribute instead of overwriting attr

* missed on previous renaming path->attribute

* fix lint errors

* need node back after rebase

* dont need children param anymore
2019-11-30 13:42:53 -08:00
jberg
8e51d92222 Fix store namespacing in tests (#927) 2019-11-30 13:42:53 -08:00
jberg
a1e0b78444 Implement goToTarget animations and setTargetX/Y/W/H/Alpha (#923)
* Implement goToTarget animations and setTargetX/Y/W/H/Alpha

* add defaults to simplify logic
2019-11-30 13:42:53 -08:00
Jordan Eldredge
0f25e490e3 Remove empty dir 2019-11-30 13:42:53 -08:00
Jordan Eldredge
b829e67b02 Clean up types a bit 2019-11-30 13:42:53 -08:00
Jordan Eldredge
ca3d68024f Namespace modern app state 2019-11-30 13:42:53 -08:00
Jordan Eldredge
19c2fed35b Derive pos inside parseComand 2019-11-30 13:42:53 -08:00
Jordan Eldredge
d7aefd1110 Add disabled regression test for https://github.com/captbaritone/webamp/issues/898 2019-11-30 13:42:53 -08:00
Jordan Eldredge
a536114903 Improve error reporting in function extraction script 2019-11-30 13:42:53 -08:00
Jordan Eldredge
a89db34ccb Throw usefull error instead of just logging it 2019-11-30 13:42:53 -08:00
Jordan Eldredge
cb4ab12128 Improve error message for missing opcode 2019-11-30 13:42:53 -08:00
Jordan Eldredge
999b7d6fa1 Check both types of call opcodes 2019-11-30 13:42:53 -08:00
Jordan Eldredge
af879b31c7 Try adding a progress dashboard (#925)
* First stab at dashboard

Show the % of classes that are complete

Use a table for the dashboard

Enable dashboard via `modern/ready`

* Add a box splitting out methods that are actually used
2019-11-30 13:42:53 -08:00