From 3f9bf095186618038333f3773d3395d5f20e0fba Mon Sep 17 00:00:00 2001 From: Dsaquel Date: Mon, 6 Jan 2025 21:44:05 +0100 Subject: [PATCH] feat: add and expose `resetFiles` --- src/Repl.vue | 9 ++++++++- src/store.ts | 11 +++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/Repl.vue b/src/Repl.vue index 66138ec7..f42cbee7 100644 --- a/src/Repl.vue +++ b/src/Repl.vue @@ -91,7 +91,14 @@ function reload() { outputRef.value?.reload() } -defineExpose({ reload }) +/** + * Reset playground files + */ +function resetFiles() { + props.store.resetFiles() +} + +defineExpose({ reload, resetFiles })