Commit graph

21 commits

Author SHA1 Message Date
Jordan Eldredge
3f6dfd91dd
Improve typing of .ts files in /modern (#950)
* Improve typing of Actions

* Make typing of MakiObjects more explicit

* Make parent optional

* Allow group to be initialized with all nulls

* Whitelist all runtime ts files for type checking

* Typecheck the entire modern codebase!

* Ignore typescript
2019-10-18 06:34:10 -07:00
Jordan Eldredge
c953300366 Fix some types in Actions 2019-10-10 06:49:33 -07:00
jberg
db517f2948 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-10-05 15:35:01 -07:00
Jordan Eldredge
b317c74468 Add parent references to XML tree 2019-09-17 21:09:05 -07:00
Jordan Eldredge
6a73015276 Clean up types a bit 2019-09-13 07:28:05 -07:00
Jordan Eldredge
f48731865c Type action 2019-09-05 06:16:31 -07:00
Jordan Eldredge
6c7afd2c3d Don't return undefined in asyncTreeFlatMap
Subsequent calls will try to access `node.children`, so we have to return some kind of object.

Prevents a failure in http://localhost:8080/modern?skinUrl=https%3A%2F%2Farchive.org%2Fcors%2Fwinampskin_EMP%2FEMP.wal

Now it fails due to opcode 255
2019-09-05 06:12:55 -07:00
jberg
34a68ae64f Remove script loading from initialize (#889) 2019-08-26 09:13:35 -07:00
Jordan Eldredge
cee3c14bd5 Improve types 2019-08-26 09:11:19 -07:00
Jordan Eldredge
b67ebc2ca2
[WIP] Give Maki objects access to Redux state (#882)
* Share uids between maki objects and state tree

* Start to add xml tree
2019-08-24 21:10:00 -07:00
Jordan Eldredge
dac6585675
Add modern integration tests (#881)
* add 2 test skins

* Add simple integration tests

* Simplify test skins
2019-08-21 21:42:07 -07:00
jberg
0fc4aacbbc Fix script group finding (#877) 2019-08-21 14:35:59 -07:00
Jordan Eldredge
52dfa6801a
Custom ESLint rule to validate Maki classes (#868) 2019-08-19 06:27:47 -07:00
Jordan Eldredge
0deca6f156 Add unique ID to each node in the state tree 2019-08-19 06:26:26 -07:00
Jordan Eldredge
7a283c9e65 Use a Set for checking if a value exists in a collection 2019-08-14 19:55:47 -07:00
Jordan Eldredge
de8c147f6a Allow dragging files into Modern demo and allow Debugger to live on the same page
Note that the debugger is not yet actually connected to the maki code running in the skin
2019-08-14 19:55:47 -07:00
Jordan Eldredge
82b685f08b Add bare XML state to Redux 2019-08-13 07:14:07 -07:00
Jordan Eldredge
123df6cc23 Move volume into Redux 2019-08-13 06:57:06 -07:00
Jordan Eldredge
9db1d38b7c Remove commented out code 2019-08-13 06:39:15 -07:00
Jordan Eldredge
41dc17fea9 Move skin fetching to thunk 2019-08-13 06:39:15 -07:00
Jordan Eldredge
1bb5195e4b Add the first redux action to the modern skin codebase 2019-08-13 06:36:51 -07:00