From 2e312dc7cb0ec7adb7085f9ae8879ecf0de22ba7 Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Sun, 15 Jan 2023 12:09:27 +0100 Subject: [PATCH] Universal code viewer --- frontend/src/components/code-example.svelte | 8 +++++- .../{jsonviewer.svelte => codeviewer.svelte} | 25 +++++++++++++------ .../organisms/collection-detail/find.svelte | 4 +-- 3 files changed, 26 insertions(+), 11 deletions(-) rename frontend/src/components/{jsonviewer.svelte => codeviewer.svelte} (62%) diff --git a/frontend/src/components/code-example.svelte b/frontend/src/components/code-example.svelte index 06eb5ea..ddd44a9 100644 --- a/frontend/src/components/code-example.svelte +++ b/frontend/src/components/code-example.svelte @@ -1,12 +1,18 @@ -
+
modalCode = code}> CLI command {code}
+ +