diff --git a/packages/hoppscotch-common/src/components.d.ts b/packages/hoppscotch-common/src/components.d.ts index f46a2f99..b153ddd5 100644 --- a/packages/hoppscotch-common/src/components.d.ts +++ b/packages/hoppscotch-common/src/components.d.ts @@ -69,6 +69,8 @@ declare module 'vue' { CookiesAllModal: typeof import('./components/cookies/AllModal.vue')['default'] CookiesEditCookie: typeof import('./components/cookies/EditCookie.vue')['default'] Embeds: typeof import('./components/embeds/index.vue')['default'] + EmbedsHeader: typeof import('./components/embeds/Header.vue')['default'] + EmbedsRequest: typeof import('./components/embeds/Request.vue')['default'] Environments: typeof import('./components/environments/index.vue')['default'] EnvironmentsAdd: typeof import('./components/environments/Add.vue')['default'] EnvironmentsImportExport: typeof import('./components/environments/ImportExport.vue')['default'] diff --git a/packages/hoppscotch-common/src/components/app/PaneLayout.vue b/packages/hoppscotch-common/src/components/app/PaneLayout.vue index 2b038c03..258b7450 100644 --- a/packages/hoppscotch-common/src/components/app/PaneLayout.vue +++ b/packages/hoppscotch-common/src/components/app/PaneLayout.vue @@ -22,7 +22,7 @@ @@ -78,6 +78,10 @@ const props = defineProps({ type: String, default: null, }, + isEmbed: { + type: Boolean, + default: false, + }, }) type PaneEvent = { diff --git a/packages/hoppscotch-common/src/components/embeds/Header.vue b/packages/hoppscotch-common/src/components/embeds/Header.vue new file mode 100644 index 00000000..8cd6d2de --- /dev/null +++ b/packages/hoppscotch-common/src/components/embeds/Header.vue @@ -0,0 +1,33 @@ + + + diff --git a/packages/hoppscotch-common/src/components/embeds/Request.vue b/packages/hoppscotch-common/src/components/embeds/Request.vue new file mode 100644 index 00000000..3fb78ff0 --- /dev/null +++ b/packages/hoppscotch-common/src/components/embeds/Request.vue @@ -0,0 +1,185 @@ + + + diff --git a/packages/hoppscotch-common/src/components/embeds/index.vue b/packages/hoppscotch-common/src/components/embeds/index.vue index adbcedf7..3aed03f2 100644 --- a/packages/hoppscotch-common/src/components/embeds/index.vue +++ b/packages/hoppscotch-common/src/components/embeds/index.vue @@ -1,105 +1,34 @@ diff --git a/packages/hoppscotch-common/src/components/http/Headers.vue b/packages/hoppscotch-common/src/components/http/Headers.vue index 19e0436b..f4703a79 100644 --- a/packages/hoppscotch-common/src/components/http/Headers.vue +++ b/packages/hoppscotch-common/src/components/http/Headers.vue @@ -49,7 +49,7 @@ /> -
+
diff --git a/packages/hoppscotch-common/src/components/http/Parameters.vue b/packages/hoppscotch-common/src/components/http/Parameters.vue index 9e8463f1..7e85ef8b 100644 --- a/packages/hoppscotch-common/src/components/http/Parameters.vue +++ b/packages/hoppscotch-common/src/components/http/Parameters.vue @@ -44,7 +44,7 @@ />
-
+
diff --git a/packages/hoppscotch-common/src/components/http/RawBody.vue b/packages/hoppscotch-common/src/components/http/RawBody.vue index 8ccc5f31..07c639cb 100644 --- a/packages/hoppscotch-common/src/components/http/RawBody.vue +++ b/packages/hoppscotch-common/src/components/http/RawBody.vue @@ -59,7 +59,7 @@ />
-
+
diff --git a/packages/hoppscotch-common/src/components/http/RequestVariables.vue b/packages/hoppscotch-common/src/components/http/RequestVariables.vue index 68bc8ec3..e52da266 100644 --- a/packages/hoppscotch-common/src/components/http/RequestVariables.vue +++ b/packages/hoppscotch-common/src/components/http/RequestVariables.vue @@ -46,7 +46,7 @@ /> -
+
diff --git a/packages/hoppscotch-common/src/components/http/URLEncodedParams.vue b/packages/hoppscotch-common/src/components/http/URLEncodedParams.vue index 5c9139a7..1048b6b5 100644 --- a/packages/hoppscotch-common/src/components/http/URLEncodedParams.vue +++ b/packages/hoppscotch-common/src/components/http/URLEncodedParams.vue @@ -44,7 +44,7 @@ />
-
+
diff --git a/packages/hoppscotch-common/src/components/lenses/renderers/JSONLensRenderer.vue b/packages/hoppscotch-common/src/components/lenses/renderers/JSONLensRenderer.vue index 91f2d8db..c4882e5b 100644 --- a/packages/hoppscotch-common/src/components/lenses/renderers/JSONLensRenderer.vue +++ b/packages/hoppscotch-common/src/components/lenses/renderers/JSONLensRenderer.vue @@ -119,7 +119,7 @@ />
-
+
-
+
diff --git a/packages/hoppscotch-common/src/pages/e/_id.vue b/packages/hoppscotch-common/src/pages/e/_id.vue index a44d5464..cb329f02 100644 --- a/packages/hoppscotch-common/src/pages/e/_id.vue +++ b/packages/hoppscotch-common/src/pages/e/_id.vue @@ -1,5 +1,5 @@