diff --git a/front/components/Preprocessing/NotifyConfigField.vue b/front/components/Preprocessing/NotifyConfigField.vue index 8c6de63..7a48c31 100644 --- a/front/components/Preprocessing/NotifyConfigField.vue +++ b/front/components/Preprocessing/NotifyConfigField.vue @@ -8,14 +8,14 @@ import InputGroupField from '../Field/InputGroupField.vue' import InputField from '../Field/InputField.vue' import KvInputField from '../Field/KvInputGroupField.vue' import TextareaField from '../Field/TextareaField.vue' +import { parseCurl } from 'sweet-curl-parser' interface WebhookItem { id: string url: string method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' - headers: Record - bodyType: 'none' | 'form-data' | 'raw' - body: string + headers: [string, string][] + body?: string } const { t } = useI18n() @@ -67,7 +67,30 @@ const expandedAdvanced = ref>(new Set()) />
- +