feature: Add prompt export

This commit is contained in:
Keith Solomon
2025-07-22 11:41:58 -05:00
parent e028922986
commit ac883ea1e9
2 changed files with 95 additions and 7 deletions

View File

@@ -23,10 +23,17 @@ const code = `[
<p class="text-sm mt-2">All fields marked with <span class="text-red-600">*</span> are required.</p>
<h2 class="text-lg font-semibold mt-6 mb-4">Import</h2>
<p class="text-sm">To import prompts from a JSON file, upload a JSON file formatted as below, or download a sample <a class="underline" download href="/import-sample.json">here</a>.</p>
<Code class="bg-gray-700 rounded text-sm p-2 mt-4" code={code} lang="json" wrap />
<h2 class="text-lg font-semibold mt-6 mb-4">Export</h2>
<p class="text-sm">To export prompts to a JSON file, select the prompts using the checkboxes, and click the button below.</p>
<p class="text-sm mt-2">To export all prompts, leave all checkboxes unchecked.</p>
<a href="/" id="home" class="block w-fit bg-green-600 text-white px-4 py-2 mt-4 rounded hover:bg-green-700 transition-colors duration-300">
Go Back
</a>