From 7da6bc06ce5da71adc3d673dcbbb696dcc92a76c Mon Sep 17 00:00:00 2001 From: David King Date: Tue, 24 Feb 2026 11:52:55 +0000 Subject: [PATCH 1/4] Add showEditor and showOutput flags --- src/EditorAndOutput.vue | 31 +++++++++++++++++++++++++++++++ src/Message.vue | 3 ++- src/Repl.vue | 17 +++++++++-------- test/main.ts | 2 ++ 4 files changed, 44 insertions(+), 9 deletions(-) create mode 100644 src/EditorAndOutput.vue diff --git a/src/EditorAndOutput.vue b/src/EditorAndOutput.vue new file mode 100644 index 00000000..0d33f668 --- /dev/null +++ b/src/EditorAndOutput.vue @@ -0,0 +1,31 @@ + + + diff --git a/src/Message.vue b/src/Message.vue index 8ea236ee..b7570013 100644 --- a/src/Message.vue +++ b/src/Message.vue @@ -5,6 +5,7 @@ import type { CompilerError } from 'vue/compiler-sfc' const props = defineProps<{ err?: string | Error | false warn?: string | Error + permanent?: boolean }>() const dismissed = ref(false) @@ -38,7 +39,7 @@ function formatMessage(err: string | Error): string { :class="err ? 'err' : 'warn'" >
{{ formatMessage(err || warn!) }}
- + diff --git a/src/Repl.vue b/src/Repl.vue index a290c968..a87b7250 100644 --- a/src/Repl.vue +++ b/src/Repl.vue @@ -1,5 +1,5 @@