Improve the safety of the playground and limit the resources it may use. (#144)

* Improve the safety of the playground and limit the resources it may use.

* Don't send new code to server until 0.5s after the last keypress.
This commit is contained in:
David Himmelstrup 2020-08-28 14:49:55 +08:00 committed by GitHub
commit 917dc3693d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
44 changed files with 204 additions and 78 deletions

View file

@ -85,9 +85,9 @@ jobs:
run: |
CWD=`pwd`
stack build
cd reanimate-playground
cd playground
stack build
stack exec --cwd ../ playground snippets reanimate-playground/snippets > viewer-elm/dist/snippets.js
stack exec --cwd ../ playground snippets playground/snippets > viewer-elm/dist/snippets.js
cd viewer-elm
npm install
npm run build