diff --git a/packages/hoppscotch-common/locales/en.json b/packages/hoppscotch-common/locales/en.json index 6f5573d38..eeaf86ade 100644 --- a/packages/hoppscotch-common/locales/en.json +++ b/packages/hoppscotch-common/locales/en.json @@ -96,6 +96,7 @@ "keyboard_shortcuts": "Keyboard shortcuts", "name": "Hoppscotch", "new_version_found": "New version found. Refresh to update.", + "open_in_hoppscotch": "Open in Hoppscotch", "options": "Options", "proxy_privacy_policy": "Proxy privacy policy", "reload": "Reload", @@ -431,8 +432,9 @@ "close_unsaved_tab": "You have unsaved changes", "collections": "Collections", "confirm": "Confirm", + "customize_request": "Customize Request", "edit_request": "Edit Request", - "share_request":"Share Request", + "share_request": "Share Request", "import_export": "Import / Export" }, "mqtt": { @@ -621,29 +623,30 @@ "additional": "Additional Settings", "verify_email": "Verify email" }, - "shared_requests":{ - "button":"Button", + "shared_requests": { + "button": "Button", "button_info": "Create a 'Run in Hoppscotch' button for your website, blog or a README.", "customize": "Customize", "creating_widget": "Creating widget", "copy_html": "Copy HTML", "copy_link": "Copy Link", "copy_markdown": "Copy Markdown", - "deleted":"Shared request deleted", + "deleted": "Shared request deleted", "description": "Select a widget, you can change and customize this later", - "embed":"Embed", + "embed": "Embed", "embed_info": "Add a mini 'Hoppscotch API Playground' to your website, blog or documentation.", - "link":"Link", + "link": "Link", "link_info": "Create a shareable link to share with anyone on the internet with view access.", - "not_found":"Shared request not found", + "modified": "Shared request modified", + "not_found": "Shared request not found", "open_new_tab": "Open in new tab", - "preview":"Preview", - "run_in_hoppscotch":"Run in Hoppscotch", - "theme":{ - "dark":"Dark", - "light":"Light", - "system" :"System", - "title":"Theme" + "preview": "Preview", + "run_in_hoppscotch": "Run in Hoppscotch", + "theme": { + "dark": "Dark", + "light": "Light", + "system": "System", + "title": "Theme" } }, "shortcut": { @@ -689,7 +692,7 @@ "save_to_collections": "Save to Collections", "send_request": "Send Request", "show_code": "Generate code snippet", - "share_request":"Share Request", + "share_request": "Share Request", "title": "Request" }, "response": { diff --git a/packages/hoppscotch-common/src/components.d.ts b/packages/hoppscotch-common/src/components.d.ts index 13dbf4d80..0a3ab3fac 100644 --- a/packages/hoppscotch-common/src/components.d.ts +++ b/packages/hoppscotch-common/src/components.d.ts @@ -61,6 +61,7 @@ declare module 'vue' { CollectionsTeamCollections: typeof import('./components/collections/TeamCollections.vue')['default'] CookiesAllModal: typeof import('./components/cookies/AllModal.vue')['default'] CookiesEditCookie: typeof import('./components/cookies/EditCookie.vue')['default'] + Embeds: typeof import('./components/embeds/index.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/embeds/index.vue b/packages/hoppscotch-common/src/components/embeds/index.vue new file mode 100644 index 000000000..ce7c8ebb6 --- /dev/null +++ b/packages/hoppscotch-common/src/components/embeds/index.vue @@ -0,0 +1,212 @@ + + + diff --git a/packages/hoppscotch-common/src/components/http/RequestOptions.vue b/packages/hoppscotch-common/src/components/http/RequestOptions.vue index 1ceda984a..2507b9bae 100644 --- a/packages/hoppscotch-common/src/components/http/RequestOptions.vue +++ b/packages/hoppscotch-common/src/components/http/RequestOptions.vue @@ -5,13 +5,18 @@ render-inactive-tabs > - + - +
- + () const emit = defineEmits<{ diff --git a/packages/hoppscotch-common/src/components/http/ResponseMeta.vue b/packages/hoppscotch-common/src/components/http/ResponseMeta.vue index ef246088e..a2501563f 100644 --- a/packages/hoppscotch-common/src/components/http/ResponseMeta.vue +++ b/packages/hoppscotch-common/src/components/http/ResponseMeta.vue @@ -2,8 +2,20 @@
- -
+ + +
+ +
+ +
() /** diff --git a/packages/hoppscotch-common/src/components/share/CreateModal.vue b/packages/hoppscotch-common/src/components/share/CreateModal.vue index f4639541f..3a1d08666 100644 --- a/packages/hoppscotch-common/src/components/share/CreateModal.vue +++ b/packages/hoppscotch-common/src/components/share/CreateModal.vue @@ -1,7 +1,7 @@