From 904d3f7bafc53295ecb832181b0f00f1009ed3b5 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 18 Mar 2019 18:44:40 -0400 Subject: [PATCH] start moving REPL widgets out of iframes (#2216) --- site/src/components/Repl/ReplWidget.svelte | 89 +++++++++++++++++++ .../Repl}/process_example.js | 0 site/src/routes/index.svelte | 28 ++---- site/src/routes/repl/embed.svelte | 2 +- site/src/routes/repl/index.svelte | 2 +- 5 files changed, 99 insertions(+), 22 deletions(-) create mode 100644 site/src/components/Repl/ReplWidget.svelte rename site/src/{routes/repl/_utils => components/Repl}/process_example.js (100%) diff --git a/site/src/components/Repl/ReplWidget.svelte b/site/src/components/Repl/ReplWidget.svelte new file mode 100644 index 0000000000..25beed2988 --- /dev/null +++ b/site/src/components/Repl/ReplWidget.svelte @@ -0,0 +1,89 @@ + + + + + + {name} • Svelte REPL + + +
+ {#if process.browser} + + {/if} +
diff --git a/site/src/routes/repl/_utils/process_example.js b/site/src/components/Repl/process_example.js similarity index 100% rename from site/src/routes/repl/_utils/process_example.js rename to site/src/components/Repl/process_example.js diff --git a/site/src/routes/index.svelte b/site/src/routes/index.svelte index 134afe859b..95b2dff8b6 100644 --- a/site/src/routes/index.svelte +++ b/site/src/routes/index.svelte @@ -1,6 +1,7 @@