Commit graph

25 commits

Author SHA1 Message Date
jberg
8d8dc19a3c Handle not finding font file (#942) 2019-11-30 13:42:53 -08:00
jberg
9ec4b8d882 Handle font loading breaking (#941) 2019-11-30 13:42:53 -08:00
jberg
861945977f Unload scripts on skin change (#937)
* Unload scripts on skin change

* remove duplicate method, use onscriptloaded

* Add JsScript, unloadSkin in redux

* await unload call

* naming tweak
2019-11-30 13:42:53 -08:00
Jordan Eldredge
4bcb0e0575 Upgrade to std.mi from Winamp 5.66 (#936)
* Upgrade to std.mi from Winamp 5.66

* Add missing type annotation

* Update usage data
2019-11-30 13:42:53 -08:00
Jordan Eldredge
9860da6570 Remove unused arguments 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
5f870c870b Expose children via js_getChildren 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
eb2b318af8 Remove script loading from initialize (#889) 2019-11-30 13:42:53 -08:00
Jordan Eldredge
82c6308b16 [WIP] Give Maki objects access to Redux state (#882)
* Share uids between maki objects and state tree

* Start to add xml tree
2019-11-30 13:42:53 -08:00
Jordan Eldredge
ec67b40fc4 Extract browser-only functions into Utils
This will make it easier to mock out these methods in tests to use Node apporaches to these problems
2019-11-30 13:42:53 -08:00
jberg
2ffc3ee237 Add more nodes to initialize (#873) 2019-11-30 13:42:53 -08:00
Jordan Eldredge
a85baef757 Custom ESLint rule to validate Maki classes (#868) 2019-11-30 13:42:53 -08:00
Jordan Eldredge
c1162dd74b Don't return await from async func 2019-11-30 13:42:53 -08:00
Jordan Eldredge
dfe7797c7f Don't ignore undefined variables 2019-11-30 13:42:53 -08:00
Jordan Eldredge
cc0aa9682f Prefer const in modern 2019-11-30 13:42:53 -08:00
Jordan Eldredge
c1d6b64b9f Remove dupes 2019-11-30 13:42:53 -08:00
jberg
d8e3383d2b Remove xml schema and warn instead of error for missing parsers (#865) 2019-11-30 13:42:53 -08:00
Jordan Eldredge
c99fd098ef Add more nodes to the initialization schema 2019-11-30 13:42:53 -08:00
Jordan Eldredge
eb18a195e3 Handle img load errors by rejecting the promise 2019-11-30 13:42:53 -08:00
jberg
0ac85b422e Remove xmlNode from MAKI objects (#829)
* Remove xmlNode from MAKI objects

* fix missed in rebase
2019-11-30 13:42:53 -08:00
Jordan Eldredge
d9a911f46b Fix auto-fixable lint errors in modern (#840) 2019-11-30 13:42:53 -08:00
Jordan Eldredge
79ac60f1f1 Modern integration (#833)
* Make modern part of the code base

`yarn modern` will now start a dev server with the modern app running.

The debugger is not yet setup

`yarn test` will run all the tests, both Webamp and "modern".

* Let debug work

* Prettier

* Ignore lint errors for now

* Point test at the now skin location
2019-11-30 13:42:53 -08:00
Renamed from experiments/modern/src/initialize.js (Browse further)