From 33ecea5d7515dac82e22223fa8550f2730bb95e3 Mon Sep 17 00:00:00 2001 From: Jason Casareno Date: Wed, 3 Aug 2022 14:54:10 -0700 Subject: [PATCH] Separate query parameters and variables vue files --- .../components/http/Parameters.vue | 367 +----------------- .../components/http/QueryParams.vue | 363 +++++++++++++++++ .../components/http/Variables.vue | 24 ++ 3 files changed, 391 insertions(+), 363 deletions(-) create mode 100644 packages/hoppscotch-app/components/http/QueryParams.vue diff --git a/packages/hoppscotch-app/components/http/Parameters.vue b/packages/hoppscotch-app/components/http/Parameters.vue index 6b5911ba1..31c887c92 100644 --- a/packages/hoppscotch-app/components/http/Parameters.vue +++ b/packages/hoppscotch-app/components/http/Parameters.vue @@ -1,368 +1,9 @@ - + diff --git a/packages/hoppscotch-app/components/http/QueryParams.vue b/packages/hoppscotch-app/components/http/QueryParams.vue new file mode 100644 index 000000000..b070ce125 --- /dev/null +++ b/packages/hoppscotch-app/components/http/QueryParams.vue @@ -0,0 +1,363 @@ + + + diff --git a/packages/hoppscotch-app/components/http/Variables.vue b/packages/hoppscotch-app/components/http/Variables.vue index 6f57e62f7..16abdde22 100644 --- a/packages/hoppscotch-app/components/http/Variables.vue +++ b/packages/hoppscotch-app/components/http/Variables.vue @@ -5,6 +5,19 @@ >
+ + { O.getOrElseW(() => throwError("Working Params Deletion Out of Bounds")) ) } + +const clearContent = () => { + // set params list to the initial state + workingVars.value = [ + { + id: idTicker.value++, + key: "", + value: "", + }, + ] +}