From 0cc6e20d6588a3b216de9166ec0194161542117e Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sun, 10 Nov 2024 18:20:46 -0800 Subject: [PATCH] refac: prompt editor --- .../workspace/Prompts/PromptEditor.svelte | 186 ++++++++++++++ .../workspace/prompts/create/+page.svelte | 232 ++---------------- .../(app)/workspace/prompts/edit/+page.svelte | 225 ++--------------- 3 files changed, 235 insertions(+), 408 deletions(-) create mode 100644 src/lib/components/workspace/Prompts/PromptEditor.svelte diff --git a/src/lib/components/workspace/Prompts/PromptEditor.svelte b/src/lib/components/workspace/Prompts/PromptEditor.svelte new file mode 100644 index 000000000..a4a18745b --- /dev/null +++ b/src/lib/components/workspace/Prompts/PromptEditor.svelte @@ -0,0 +1,186 @@ + + +
{ + submitHandler(); + }} +> +
+
{$i18n.t('Title')}*
+ +
+ +
+
+ +
+
{$i18n.t('Command')}*
+ +
+
+ / +
+ +
+ +
+ {$i18n.t('Only')} + {$i18n.t('alphanumeric characters and hyphens')} + {$i18n.t('are allowed - Activate this command by typing')} " + /{command} + "   + {$i18n.t('to chat input.')} +
+
+ +
+
+
{$i18n.t('Prompt Content')}*
+
+ +
+
+