New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate Scala.js into the XForms/Form Runner client #1600
Comments
The current thinking is to start with Form Builder, which:
Therefore, adding JavaScript code shouldn't be an issue. Candidate features to investigate:
|
I'm tempted to schedule making some progress on this for 4.8, if only because working on this is pretty exciting. (Is that a good or a bad excuse?) |
Update to the "current thinking" above: the admin console could also be a candidate. |
Some numbers as of 4.9:
|
As an update, there will be quite a lot of Scala.js in Form Builder (but not Form Runner) in the next version. We'll see what the impact on JavaScript size is, as a new data point. |
Above comment is quite outdated as the Form Builder UI for the workflow feature got written in XForms. Currently,
Things have progressed nicely since March 2014, with files about 1/2 the size (although we are not comparing exactly the same things but hopefully we are not too far off). Still, it would be good not to duplicate the JavaScript between Form Runner and Form Builder if possible, although that would only impact Form Builder. Doing this would require something like this:
Now thinking that the above only makes sense if the additional weight of Form Builder code is very small compared to the rest of the Form Runner code. So maybe something better, until some kind of code-splitting feature makes it to Scala.js, would be:
|
For 2017.1, do baby steps:
|
We crave using Scala on the client!
Vector
andList
: ~200-300 KBThe text was updated successfully, but these errors were encountered: