Commit graph

2431 commits

Author SHA1 Message Date
Jordan Eldredge
d1dedf01c5 Add glob dependency and allow rules that only warn 2019-11-30 13:42:53 -08:00
Jordan Eldredge
9702c92b2e no-else-return 2019-11-30 13:42:53 -08:00
Jordan Eldredge
56ff4153ba eqeqeq 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
5e048bc4f0 Clean up unused variables 2019-11-30 13:42:53 -08:00
Jordan Eldredge
c1d6b64b9f Remove dupes 2019-11-30 13:42:53 -08:00
Jordan Eldredge
23a9d7e906 Turn back on linting for modern 2019-11-30 13:42:53 -08:00
Jordan Eldredge
73b025bf12 Ensure ESLint is running on Travis
It used to run as part of Jest. When I moved it back to its own thing,
I guess I forgot to add it back to Travis.
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
jberg
a762dea981 fix container after inheritance change (#859)
* fix container after inheritance change

* fix missing method test
2019-11-30 13:42:53 -08:00
jberg
13cb4e773f Dont need to render certain MAKI nodes (#864) 2019-11-30 13:42:53 -08:00
jberg
ba338543b1 handle Layout where we dont have background images or dont draw them (#862) 2019-11-30 13:42:53 -08:00
jberg
bf4e1ad043 Render text nodes (#863)
* Render text nodes

* add TODO about displaying text node info
2019-11-30 13:42:53 -08:00
Jordan Eldredge
563e9cbb64 Ensure we have no extra methods (#861) 2019-11-30 13:42:53 -08:00
Jordan Eldredge
a14276daf9 Track all missing methods 2019-11-30 13:42:53 -08:00
jberg
8eb1549983 MakiObject classname really should be Object (#860) 2019-11-30 13:42:53 -08:00
jberg
7a27248626 Handle MAKI functions that need input, implement popupmenu (#854)
* initial test for generator class functions

* return promise from functions that need async

* move null check into isPromise and fix condition

* implementing popmenu

* fix dynamic node creation in prod build

* remove unnecessary async/await

* rename function with js_ prefix

* TODO to fix styles
2019-11-30 13:42:53 -08:00
Jordan Eldredge
3b6cc77db5 Test that our runtime implementaiton matches the object definitions we got from the decompiler (#857)
Eventually it would be nice to test against std.mi
2019-11-30 13:42:53 -08:00
jberg
d77d7a92b6 Add all the remaining MAKI classes (#855) 2019-11-30 13:42:53 -08:00
Jordan Eldredge
01ab985b8c Use mage-rendering: pixelated; 2019-11-30 13:42:53 -08:00
Jordan Eldredge
b8026b9a4e Use background for showing images
This prevents images which are larger than the element from having their
image squished.
2019-11-30 13:42:53 -08:00
Jordan Eldredge
9ed01e9b89 Type Emitter 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
31ac65eb18 Use a Set for checking if a value exists in a collection 2019-11-30 13:42:53 -08:00
Jordan Eldredge
1ebfb0ada7 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-11-30 13:42:53 -08:00
Jordan Eldredge
3a63481a8f Merge modern into the main Webpack config 2019-11-30 13:42:53 -08:00
Jordan Eldredge
ac423e6aee Add bare XML state to Redux 2019-11-30 13:42:53 -08:00
Jordan Eldredge
bdd54d51ce Move volume into Redux 2019-11-30 13:42:53 -08:00
Jordan Eldredge
c1f02c9a2f Add missing import 2019-11-30 13:42:53 -08:00
Jordan Eldredge
5b78705cdd Try to convince GitHub we are not a Perl project 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
Jordan Eldredge
5c54dd72df Use defualt property to make TypeScript happy 2019-11-30 13:42:53 -08:00
Jordan Eldredge
6c39bb0be8 Remove commented out code 2019-11-30 13:42:53 -08:00
Jordan Eldredge
cb07b2a8d5 Move skin fetching to thunk 2019-11-30 13:42:53 -08:00
Jordan Eldredge
721c9eec86 Add the first redux action to the modern skin codebase 2019-11-30 13:42:53 -08:00
Jordan Eldredge
9f665b47e4 Introduce Redux into the modern skin codebase 2019-11-30 13:42:53 -08:00
Jordan Eldredge
443392dadb Memoize getting track display name 2019-11-30 13:42:53 -08:00
Jordan Eldredge
f39449b46c Refactor to functional component, and remove unused dispatch prop 2019-11-30 13:42:53 -08:00
jberg
a97f155dfc Fix errors when node is the top level container (#853)
* Fix errors when node is the top level container

* simplify by adding findParentOrCurrentNodeOfType
2019-11-30 13:42:53 -08:00
jberg
d13ff4d302 Fix event x/y by finding container node (#849)
* Fix event x/y by finding relativeParent

* use a tree search to find the container instead of event target hacks
2019-11-30 13:42:53 -08:00
jberg
a950ceb99e Fix initial stack values (#851) 2019-11-30 13:42:53 -08:00
jberg
126fade049 Fix hook eventNames to be case insensitive (#852) 2019-11-30 13:42:53 -08:00
jberg
3db63bd7c3 Setup update listeners to rerender react components (#848)
* Setup update listeners to rerender react components

* setupUpdates -> useJsUpdates
2019-11-30 13:42:53 -08:00
jberg
8ffc56f194 Always fire mouseup on element that had mousedown (#850) 2019-11-30 13:42:53 -08:00
Jordan Eldredge
46042d0748 Swap the name of the VM and the interpreter (#843) 2019-11-30 13:42:53 -08:00
Jordan Eldredge
d8b33e4795 Start using react redux hooks (#845)
* Upgrade react-redux

* Upgrade react-redux types

* Start adopting react-redux hooks
2019-11-30 13:42:53 -08:00
jberg
61c0afb165 Fix hook variable passing and initial stack setup (#844) 2019-11-30 13:42:53 -08:00
jberg
5411a444e7 Fix event x/y and add a few more methods (#842)
* Fix event x/y and add a few more methods

* ensure attributes exist and simplify

* simplify with ternary
2019-11-30 13:42:53 -08:00