Commit graph

15 commits

Author SHA1 Message Date
Simon Hausmann
bf865d4036 Further trim the dist build of the online editor
Re-use the wasm interpreter from the web site when building for the web
site. It's built & copied in the CI at the same time, and we can
convince rollup to preserve the relative link for production builds,
while aliasing to the local directory for dev builds.

This brings down the editor to ~2.3MB on my machine.
2022-01-06 09:55:34 +01:00
Simon Hausmann
0df394a389 Make it faster to develop the online editor
Switch from webpack to vite. The dev mode is practically instant.
2022-01-06 09:55:34 +01:00
Tobias Hunger
bfca0e3573 Mass update copyright messages to be more REUSE compliant 2021-12-22 10:06:12 +01:00
Tobias Hunger
aea4ecca99 Apply pre-commit hooks to all files 2021-08-17 22:38:16 +02:00
Simon Hausmann
43eea7b655 Apply the loading spinner from the plotter example to the online preview 2021-08-12 10:50:09 +02:00
Olivier Goffart
23e3c68357 Online editor: ability to select the style 2021-08-07 12:49:53 +02:00
Olivier Goffart
13bd828b96 Update license date 2021-07-02 15:55:54 +02:00
Simon Hausmann
ef1a605953 Add support for showing warning diagnostics in the online editor 2021-04-30 15:43:05 +02:00
Simon Hausmann
36cbe0b342 Fix build
Amends commit afe3df6381

These functions were removed and need to be re-added in a different way in the interpreter for async
loading/embedding later
2021-04-14 11:01:43 +02:00
Simon Hausmann
3391aa0312 Remove the import resolve callback from the compiler configuration
Re-apply commit 2dcbc45cd6 but now do the
resolution from a relative import path to either an absolute path or url
in the compiler itself.
2021-03-16 14:21:33 +01:00
Simon Hausmann
e3a33dffe0 Revert "Remove the import resolve callback from the compiler configuration"
This reverts commit 2dcbc45cd6.

It breaks loading of the printer demo in the editor because in
import_file we fail to return the absolute path and thus end up
importing common.60 too many times.
2021-03-16 11:43:33 +01:00
Simon Hausmann
2dcbc45cd6 Remove the import resolve callback from the compiler configuration
It turns out that this isn't really needed with the current
implementation.
2021-03-15 20:02:46 +01:00
Simon Hausmann
f30cb7f4d8 Add support for font_url params to the online editor and previewer 2021-02-17 15:28:18 +01:00
Olivier Goffart
ec90d0c525 wasm: Resize the canvas to make sure it fits the window constraints 2021-02-09 09:41:01 +01:00
Olivier Goffart
b155dbe601 Add a preview.html to the online code editor that only does the preview withtout the code editors 2021-02-08 11:36:49 +01:00