Commit Graph

35 Commits

Author SHA1 Message Date
Brian Carroll
aa19a0d525 repl_www: refactor setup for wasm_bindgen globals 2022-03-17 10:40:02 +00:00
Brian Carroll
0cae9a0e14 repl_www: get rid of separate build directory, it's too annoying when editing JS/CSS. 2022-03-17 09:52:50 +00:00
Brian Carroll
5b97823ba8 repl_wasm: prevent console_error_panic_hook slowing down non-wasm builds 2022-03-15 19:01:05 +00:00
Brian Carroll
52050cac0b repl_www: Commit JavaScript crimes to display console errors on the page. 2022-03-12 22:12:42 +00:00
Brian Carroll
45fd3d79a7 repl_www: include debug info in repl .wasm file, for useful stack traces 2022-03-12 15:28:50 +00:00
Brian Carroll
4252f093ad Instructions about Shift+Enter 2022-03-04 13:26:49 +00:00
Brian Carroll
f8e23d93cc repl_www: nicer line spacing 2022-03-04 08:14:50 +00:00
Brian Carroll
79b65347fa repl_www: Improved UI for multiline input 2022-03-04 07:45:49 +00:00
Philippe Vinchon
8937356b0e Use textarea instead of input 2022-03-03 21:36:00 +00:00
Brian Carroll
49be6da565 repl_www: fix DOCTYPE and CSS layout
Today I learned that you need to explicitly set height: 100% on the <html> and <body> tags,
unless you're in quirks mode! And the <DOCTYPE html> takes you out of quirks mode.
Firefox complains if we don't have the DOCTYPE
2022-03-03 08:44:04 +00:00
Brian Carroll
22f571ef3c Simplify www build scripts by putting the REPL HTML where it needs to end up 2022-03-03 08:30:35 +00:00
Richard Feldman
54a070893e
Revert "Add DOCTYPE html tag to roc repl page"
This breaks the page layout, somehow

This reverts commit 37d175b086.
2022-03-03 00:26:33 -05:00
Richard Feldman
37d175b086
Add DOCTYPE html tag to roc repl page 2022-03-03 00:23:47 -05:00
Richard Feldman
5b4615764c
Don't use <base> in repl_www
It seems to work inconsistently across browsers.
2022-03-02 20:26:16 -05:00
Richard Feldman
87f5c04c6c
Add autofocus to web repl <input> 2022-03-02 18:42:23 -05:00
Richard Feldman
7b489e81b9
Have web repl use /repl as its URL root 2022-03-02 18:34:47 -05:00
Brian Carroll
a3a3543b7d repl_www: move CSS into a separate file to keep Netlify happy 2022-03-02 22:51:35 +00:00
Brian Carroll
861117fb64 www: use relative path in script tag for repl.js 2022-03-02 22:42:02 +00:00
Brian Carroll
223a9edfd2 Add a REPL page to the website at /repl/index.html 2022-02-28 19:29:09 +00:00
Brian Carroll
36bb59d9f8 repl_www: use up and down arrows to navigate input history 2022-02-27 22:39:52 +00:00
Brian Carroll
cb1bbec5de Changes from PR self-review 2022-02-26 14:32:37 +00:00
Brian Carroll
8a45311693 Tweak repl_www build script to use set -u 2022-02-26 13:13:57 +00:00
Brian Carroll
09c3f1591b repl_www: add instructions to README 2022-02-26 13:13:57 +00:00
Brian Carroll
0ba3c9293f repl_www: add a README with diagram 2022-02-26 13:12:52 +00:00
Brian Carroll
3433e01411 repl_www: Change page title. It's not a mock anymore! 2022-02-18 17:58:20 +00:00
Brian Carroll
d4dc683cbb repl_www: rename the wrapper function around main on the JS side to match Wasm 2022-02-18 17:42:49 +00:00
Brian Carroll
7286f81091 repl_www: faster build script, without wasm-opt 2022-02-18 17:42:49 +00:00
Brian Carroll
26ce34e4e8 repl_www: add WASI imports for app 2022-02-18 17:42:49 +00:00
Brian Carroll
23e498ca3b repl_www: faster build script, without wasm-opt 2022-02-14 23:05:33 +00:00
Brian Carroll
e95d32e821 DEBUG HACKS, DO NOT MERGE 2022-02-14 22:24:51 +00:00
Brian Carroll
6e307d2c12 repl: build script updates 2022-02-08 11:03:48 +00:00
Brian Carroll
f8ad09f6ab repl: rename entrypoint from JS and remove unnecessary pub in Rust 2022-02-08 11:03:48 +00:00
Brian Carroll
9bfd0e44d6 repl: comments 2022-02-08 11:03:48 +00:00
Brian Carroll
9a7ac6429b repl: Fix invalid JS import from wasm_bindgen caused by parking_lot 2022-02-08 11:03:48 +00:00
Brian Carroll
2c8b957763 repl: Split repl_www from repl_wasm 2022-02-08 11:03:48 +00:00