From 668e9a050ea4c2ed819d4c5bcf14266e7b54c299 Mon Sep 17 00:00:00 2001 From: lqdev Date: Sun, 18 Feb 2024 12:10:02 +0100 Subject: [PATCH] even better sandbox --- content/treehouse/sandbox.tree | 21 +++++++++++ crates/treehouse/src/html/markdown.rs | 25 ++++++++++--- crates/treehouse/src/html/tree.rs | 8 ++++- static/css/main.css | 35 ++++++++++++++++++- static/js/components/literate-programming.js | 26 +++++++++++--- .../components/literate-programming/eval.js | 31 ++++++++++++++-- .../components/literate-programming/worker.js | 2 +- static/js/sandbox.js | 14 +++++++- static/js/vendor/codejar.js | 4 +-- template/sandbox.hbs | 22 ++++++++++-- 10 files changed, 169 insertions(+), 19 deletions(-) diff --git a/content/treehouse/sandbox.tree b/content/treehouse/sandbox.tree index 0293fa0..7d71ec2 100644 --- a/content/treehouse/sandbox.tree +++ b/content/treehouse/sandbox.tree @@ -111,6 +111,27 @@ scripts = ["components/literate-programming.js"] - this API wraps a lower-level message-passing API which is used to communicate with the main page, to let it set things like the sandbox `