From 1600b51299d3f3d46fb3128090ba8aece797cc91 Mon Sep 17 00:00:00 2001 From: JD Solanki <47495003+jd-solanki@users.noreply.github.com> Date: Sat, 3 Sep 2022 12:56:33 +0530 Subject: [PATCH] feat(inspector): Allow including/excluding safelist in REPL (#1532) Co-authored-by: Anthony Fu --- packages/inspector/client/components/ReplPlayground.vue | 9 ++++++++- packages/inspector/client/composables/fetch.ts | 4 ++-- packages/inspector/node/index.ts | 3 ++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/packages/inspector/client/components/ReplPlayground.vue b/packages/inspector/client/components/ReplPlayground.vue index 74bf8b0f9a..e661e7ea93 100644 --- a/packages/inspector/client/components/ReplPlayground.vue +++ b/packages/inspector/client/components/ReplPlayground.vue @@ -10,7 +10,8 @@ const input = useLocalStorage( '
\nHello World\n
', ) -const { data: result } = fetchRepl(input) +const isSafelistIncluded = useStorage('unocss-inspector-safelist', false) +const { data: result } = fetchRepl(input, isSafelistIncluded)