46 Commits

Author SHA1 Message Date
Noa
c901bc07a4 Upgrade wasm deps + fix demo 2025-01-11 18:48:27 +09:00
Jeong, YunWon
e2f7d5b2f9 fix wasm prettier (#5055) 2023-08-30 18:25:27 +09:00
Noah
176702425d Get traceback working in wasm 2021-03-14 12:49:59 -05:00
Noah
dd14bb3516 Format wasm/ according to prettier rules 2020-12-16 09:21:07 -06:00
Joni Salmi
de7ef551c0 Document browser module availability in WASM Demo 2020-10-01 01:45:43 +02:00
Noah
b9e102a72d minifix defaultSnippet display in demo 2020-09-29 13:53:37 -05:00
Noah
b1ecca7c4c Fix issues with wasm code missing _thread 2020-07-04 18:02:25 -05:00
Noah
3530540679 Move syntax error conversion to convert.rs, add PyResultExt 2020-04-03 12:33:59 -05:00
coolreader18
049df44fe3 Fix default import from raw-loader 2020-01-19 23:08:00 -06:00
coolreader18
53be1a07b5 Improve WASM testing and CI 2020-01-12 21:55:43 -06:00
coolreader18
e01e7116ca Add the other rp.py* functions to the mini-doc 2020-01-12 21:55:43 -06:00
coolreader18
96dfaa0eae Combine index.js and main.js into one to improve UX while loading rustpython 2020-01-12 21:55:43 -06:00
coolreader18
6f43d22b56 Fix pyExec not returning errors, remove typescript hack 2020-01-08 18:50:48 -06:00
yanganto
1913f033be Support eval and exec mode in wasm
- Expose `pyEval`, `pyExec`, `pyExecSingle` in wasm module
2020-01-03 23:18:09 +08:00
coolreader18
2160f68d09 Improve the terminal's navigation 2019-09-29 12:56:06 -05:00
coolreader18
97c9b2316e Update Dockerfile.wasm 2019-07-18 10:49:05 -05:00
coolreader18
cd61248635 Merge branch 'master' into coolreader18/demo-repl-continuation 2019-06-08 13:17:05 -05:00
coolreader18
a91cfd16bf Fix WASM import error 2019-04-12 14:28:26 -04:00
coolreader18
42768b20e5 Small demo improvements 2019-03-31 17:53:53 -05:00
coolreader18
0ac1c1f19c Add line continuation for the WASM demo terminal 2019-03-24 08:42:18 -05:00
coolreader18
913bb1438a Merge branch 'master' into wasm-vm-exec_single 2019-03-13 08:20:42 -05:00
coolreader18
bde86d32b1 Use compile::Mode::Single for the demo terminal 2019-03-12 22:46:55 -05:00
coolreader18
dac75019e5 Remove builtin_print_html, move functionality to JS 2019-03-11 19:18:21 -05:00
coolreader18
29ec84ead9 Change main.js to print to the console 2019-03-10 17:22:22 -05:00
Aviv Palivoda
f27cb5b8ed Don't delete prompt 2019-03-10 18:40:03 +02:00
Aviv Palivoda
625e181fd8 Use snakeCase 2019-03-10 18:38:17 +02:00
Aviv Palivoda
264d218b70 Use seperate VM for interactive shell 2019-03-10 18:36:29 +02:00
Aviv Palivoda
669aa70aab Support ':' in interactive shell 2019-03-09 21:23:59 +02:00
Aviv Palivoda
03d431ecac Support backspace in interactive shell 2019-03-09 21:17:13 +02:00
Aviv Palivoda
ec3ace527b Change prompt to >>>>> 2019-03-09 20:57:36 +02:00
Aviv Palivoda
976c9e8b58 Add interactive shell to WASM demo 2019-03-09 18:41:02 +02:00
coolreader18
717392c3c5 Scroll to the bottom of the demo when it gets updated 2019-02-26 21:21:43 -06:00
coolreader18
3df8f1c788 Update the snippet on page load; insert spaces when tab is pressed 2019-02-26 20:55:23 -06:00
coolreader18
f2079807bd Fix snippet selector's default selection 2019-02-24 14:22:18 -06:00
coolreader18
9a7bb315e2 Merge branch 'master' into wasm-better-panic 2019-02-24 09:09:09 -06:00
coolreader18
878c131af4 Make panic errors available and display them nicely for the demo 2019-02-23 14:52:02 -06:00
coolreader18
4dde810e9c Move snippets directory 2019-02-23 10:22:36 -06:00
coolreader18
d02e8352ea Allow for multiple demo snippets to be selected 2019-02-23 09:17:00 -06:00
stratusjerry
7134885775 Spellcheck 2019-02-05 13:39:16 -05:00
Adam Johnson
32a58f8897 Update example
Improve spelling, grammar, and HTML a bit on the example page.
2019-01-10 14:07:08 +00:00
coolreader18
4cc7f5aa9c Merge #console and #code styles 2018-12-27 20:43:09 -06:00
coolreader18
c38796bb49 Add some documentation for functions on the demo site 2018-12-26 13:25:56 -06:00
coolreader18
ab23f2c940 Use str.format for the demo 2018-12-24 15:28:49 -06:00
coolreader18
840c5072fb Improve UX for demo 2018-12-24 15:28:49 -06:00
coolreader18
2ea9dca40c Add example, change some stuff in the demo to align with example 2018-12-24 15:28:49 -06:00
coolreader18
ca30ebcf5d Genericize the wasm lib to not be specifically for the demo
This included changing RustObjectKind::RustFunction.function to be
a `Box<Fn()>` instead of a `fn()` to support closures.
2018-12-24 15:28:49 -06:00