From 34d5e28b5f35a432c601034f852473f3ddc3b6ed Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sun, 23 Dec 2018 18:16:41 -0500 Subject: [PATCH] add input/output toggle --- .../repl/_components/InputOutputToggle.html | 77 ++++++++++++++++ site/src/routes/repl/_components/Repl.html | 88 ++++++++++--------- .../routes/repl/_components/SplitPane.html | 2 - 3 files changed, 123 insertions(+), 44 deletions(-) create mode 100644 site/src/routes/repl/_components/InputOutputToggle.html diff --git a/site/src/routes/repl/_components/InputOutputToggle.html b/site/src/routes/repl/_components/InputOutputToggle.html new file mode 100644 index 0000000000..947299d2a3 --- /dev/null +++ b/site/src/routes/repl/_components/InputOutputToggle.html @@ -0,0 +1,77 @@ + + + \ No newline at end of file diff --git a/site/src/routes/repl/_components/Repl.html b/site/src/routes/repl/_components/Repl.html index b6f2f6ca6a..c6069c3a2f 100644 --- a/site/src/routes/repl/_components/Repl.html +++ b/site/src/routes/repl/_components/Repl.html @@ -6,6 +6,7 @@ import CodeMirror from './CodeMirror.html'; import Input from './Input/index.html'; import Output from './Output/index.html'; + import InputOutputToggle from './InputOutputToggle.html'; export let version = 'alpha'; // TODO change this to latest when the time comes export let app; @@ -172,9 +173,15 @@ -
- -
- -
- -
- -
-
+
+
+ +
+ +
+ +
+ +
+
+
- \ No newline at end of file + \ No newline at end of file diff --git a/site/src/routes/repl/_components/SplitPane.html b/site/src/routes/repl/_components/SplitPane.html index 17cf3952d2..e65cdcca38 100644 --- a/site/src/routes/repl/_components/SplitPane.html +++ b/site/src/routes/repl/_components/SplitPane.html @@ -12,8 +12,6 @@ // export let min1 = min; // export let min2 = min; - console.log({ fixed, pos, fixed_pos }); - const refs = {}; const side = type === 'horizontal' ? 'left' : 'top'; const dimension = type === 'horizontal' ? 'width' : 'height';