From e02892298628c1f6d421ff1428b0f2f5f439fb63 Mon Sep 17 00:00:00 2001 From: Keith Solomon Date: Tue, 22 Jul 2025 11:00:39 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8feature:=20Add=20prompt=20import=20fro?= =?UTF-8?q?m=20json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/import-sample.json | 9 +++++ src/components/SidebarAdd.astro | 20 +++++++++- src/pages/add.astro | 65 ++++++++++++++++++++++++++++++--- 3 files changed, 87 insertions(+), 7 deletions(-) create mode 100644 public/import-sample.json diff --git a/public/import-sample.json b/public/import-sample.json new file mode 100644 index 0000000..47009d5 --- /dev/null +++ b/public/import-sample.json @@ -0,0 +1,9 @@ +[ + { + "type": "Task or System (ONLY one)", + "title": "ActiveCollab Github Action", + "description": "This is your prompt content.", + "tags": "{These,Are,Tags}", + "notes": "This is your prompt description." + } +] diff --git a/src/components/SidebarAdd.astro b/src/components/SidebarAdd.astro index beb5d8b..b06ba31 100644 --- a/src/components/SidebarAdd.astro +++ b/src/components/SidebarAdd.astro @@ -1,5 +1,18 @@ --- // Sidebar.astro + +import { Code } from 'astro:components'; + +const code = `[ + { + "type": "System or Task (ONLY one)", + "title": "Example Prompt", + "description": "This is an example prompt.", + "tags": ["example", "test"], + "notes": "The prompt description." + } +] +`; ---