Commit graph

66 commits

Author SHA1 Message Date
Olivier Goffart
69b07eee53 Revert the changes to the hello world in the code editor
These were not meant to be commited
2020-10-10 15:46:38 +02:00
Olivier Goffart
e57554a71d Missing license header 2020-10-10 13:20:13 +02:00
Olivier Goffart
8ec820cb9f Online editor syntax highliting 2020-10-10 13:00:14 +02:00
Olivier Goffart
29f4910cbd Some changes to the online editor
- Set a small hello world by default
 - add a permalink
 - allow to load an URL
2020-10-09 13:14:30 +02:00
Olivier Goffart
18881cfcad Online editor don't ship with support for other languages 2020-10-09 12:48:56 +02:00
Simon Hausmann
67f387e628 Prepare for relative resource loading from the web
Pass the base url as path to the interpreter
2020-10-08 20:42:46 +02:00
Olivier Goffart
47ee896b57 Online editor: Ability to open any snippet passed in the query 2020-10-07 15:33:04 +02:00
Olivier Goffart
117e1d3389 Online-editor: Add a compilation button
Fixes #76
2020-10-07 15:12:38 +02:00
Olivier Goffart
f592a04f3d Online code editor: load the demo from github 2020-10-06 13:03:51 +02:00
Olivier Goffart
c9d60d3575 Online editor: clear errors 2020-10-06 11:50:49 +02:00
Olivier Goffart
1f50e8c85e Highlight the error in the online editor 2020-10-06 11:33:44 +02:00
Simon Hausmann
2041144f45 Fix a warning on start-up about freezing the UI
The console log would show

  "Could not create web worker(s). Falling back to loading web worker code
  in main thread, which might cause UI freezes. Please see
  https://github.com/Microsoft/monaco-editor#faq"

and

  "VM3793 simpleWorker.js:29 You must define a function
  MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker"

when loading. This is fixed by using the monaco editor webpack plugin, which
ensures that the workers are loaded via async script tags.
2020-10-06 10:21:15 +02:00
Simon Hausmann
94fcb725b4 Separate release and dev builds of the online editor
Let `npm run build` do a release build and `npm run start` be used for
development.
2020-10-05 16:45:29 +02:00
Simon Hausmann
79150a9b20 Apply the same license (check) as for .js files 2020-10-05 16:06:14 +02:00
Simon Hausmann
5d392db2cf Use the local wasm interpreter for the online editor 2020-10-05 15:38:07 +02:00
Simon Hausmann
f74ae174b6 Ported the online editor across into this repo
This now uses npm and webpack to pull in Monaco as external dependency.
2020-10-05 15:05:55 +02:00