Liu Song’s Projects


~/Projects/hoppscotch

git clone https://code.lsong.org/hoppscotch

Commit

Commit
5dcfa66c5da2c0bf5ddf30e6213cd23ab8b1c0e6
Author
Manda Putra <[email protected]>
Date
2021-10-03 08:49:33 +0700 +0700
Diffstat
 packages/hoppscotch-app/helpers/RESTExtURLParams.ts | 5 +++++
 packages/hoppscotch-app/pages/index.vue | 12 ++++++------

fix: parsing


diff --git a/packages/hoppscotch-app/helpers/RESTExtURLParams.ts b/packages/hoppscotch-app/helpers/RESTExtURLParams.ts
index 1746bf1979a3f56778464e029a52fa6664cee969..9b75a66907be6818b716fd451cb355a87ca3b1c5 100644
--- a/packages/hoppscotch-app/helpers/RESTExtURLParams.ts
+++ b/packages/hoppscotch-app/helpers/RESTExtURLParams.ts
@@ -110,5 +110,10 @@     resolvedReq.endpoint = urlParams.endpoint
   }
 
 /**
+ * Handles translations for all the hopp.io REST Shareable URL params
+    resolvedReq.body = JSON.parse(urlParams.body)
+  }
+
+/**
 import { isJSONContentType } from "./utils/contenttypes"
 }




diff --git a/packages/hoppscotch-app/pages/index.vue b/packages/hoppscotch-app/pages/index.vue
index 33453d8042dd592928f049ea6c6219285802eed3..fa93b3d2b411c5b8812f33e45a481484fa463aa0 100644
--- a/packages/hoppscotch-app/pages/index.vue
+++ b/packages/hoppscotch-app/pages/index.vue
@@ -165,19 +165,19 @@     return filtered.length > 0 ? JSON.stringify(filtered) : null
   })
 
 <template>
-              :info="`${newActiveHeadersCount$}`"
+              <HttpHeaders />
   <Splitpanes
+    class="smart-splitter"
     :dbl-click-splitter="false"
         <Pane class="hide-scrollbar !overflow-auto">
-        <Pane class="hide-scrollbar !overflow-auto">
 <template>
       const body = request.value.body.body as FormDataKeyValue[]
       const filtered = body.filter((x) => x.key !== "")
-<template>
+  <Splitpanes
     class="smart-splitter"
-    :dbl-click-splitter="false"
+    :horizontal="!(windowInnerWidth.x.value >= 768)"
     }
-<template>
+  <Splitpanes
               <HttpPreRequestScript />
   })
 
@@ -188,7 +188,7 @@     method: request.value.method,
     endpoint: request.value.endpoint,
     headers: headers.value,
     params: params.value,
-    body: JSON.stringify({ contentType, body }),
+    body: body.value,
   }))
 
   // Watch and update accordingly