diff --git a/frontend/src/lib/components/editor/SimpleCodeEditor.svelte b/frontend/src/lib/components/editor/SimpleCodeEditor.svelte new file mode 100644 index 0000000..38cf908 --- /dev/null +++ b/frontend/src/lib/components/editor/SimpleCodeEditor.svelte @@ -0,0 +1,117 @@ + + +
+
+ {#if placeholder} +
+ + {#if showExample} +
+
+ Example: + +
+
{placeholder}
+
+ {/if} +
+ {/if} +
diff --git a/frontend/src/routes/api-sender/+page.svelte b/frontend/src/routes/api-sender/+page.svelte index 1093325..927746f 100644 --- a/frontend/src/routes/api-sender/+page.svelte +++ b/frontend/src/routes/api-sender/+page.svelte @@ -30,6 +30,7 @@ import { showIsLoading, hideIsLoading } from '$lib/store/loading.js'; import TableDropDownEllipsis from '$lib/components/table/TableDropDownEllipsis.svelte'; import DeleteAlert from '$lib/components/modal/DeleteAlert.svelte'; + import SimpleCodeEditor from '$lib/components/editor/SimpleCodeEditor.svelte'; // services const appStateService = AppStateService.instance; @@ -402,7 +403,7 @@ -
+

Request Details

Request Headers - +
+

Request Body

+
+

optional

+
+
+ Request Body
+ "body": "{{.Content}}" +}`} + /> +