diff --git a/packages/hoppscotch-app/assets/icons/clipboard.svg b/packages/hoppscotch-app/assets/icons/clipboard.svg
new file mode 100644
index 000000000..1b765f960
--- /dev/null
+++ b/packages/hoppscotch-app/assets/icons/clipboard.svg
@@ -0,0 +1,14 @@
+
diff --git a/packages/hoppscotch-app/components/http/ImportCurl.vue b/packages/hoppscotch-app/components/http/ImportCurl.vue
index 78069c3a0..c2b1d1dd9 100644
--- a/packages/hoppscotch-app/components/http/ImportCurl.vue
+++ b/packages/hoppscotch-app/components/http/ImportCurl.vue
@@ -20,6 +20,14 @@
@click.native="hideModal"
/>
+
+
+
@@ -143,4 +151,20 @@ const handleImport = () => {
}
hideModal()
}
+
+const pasteIcon = ref("clipboard")
+
+const handlePaste = async () => {
+ try {
+ const text = await navigator.clipboard.readText()
+ if (text) {
+ curl.value = text
+ pasteIcon.value = "check"
+ setTimeout(() => (pasteIcon.value = "clipboard"), 1000)
+ }
+ } catch (e) {
+ console.error("Failed to copy: ", e)
+ toast.error(t("profile.no_permission").toString())
+ }
+}
diff --git a/packages/hoppscotch-app/locales/af.json b/packages/hoppscotch-app/locales/af.json
index 3d6527765..26f6e8efb 100644
--- a/packages/hoppscotch-app/locales/af.json
+++ b/packages/hoppscotch-app/locales/af.json
@@ -19,6 +19,7 @@
"more": "Meer",
"new": "Nuut",
"no": "Geen",
+ "paste": "Paste",
"prettify": "Prettify",
"remove": "Verwyder",
"restore": "Herstel",
diff --git a/packages/hoppscotch-app/locales/ar.json b/packages/hoppscotch-app/locales/ar.json
index 4df855c98..414d0286e 100644
--- a/packages/hoppscotch-app/locales/ar.json
+++ b/packages/hoppscotch-app/locales/ar.json
@@ -19,6 +19,7 @@
"more": "أكثر",
"new": "جديد",
"no": "رقم",
+ "paste": "Paste",
"prettify": "جمال",
"remove": "يزيل",
"restore": "يعيد",
diff --git a/packages/hoppscotch-app/locales/ca.json b/packages/hoppscotch-app/locales/ca.json
index a1fc6d75f..183cbdd89 100644
--- a/packages/hoppscotch-app/locales/ca.json
+++ b/packages/hoppscotch-app/locales/ca.json
@@ -19,6 +19,7 @@
"more": "Més",
"new": "Novetat",
"no": "No",
+ "paste": "Paste",
"prettify": "Prettify",
"remove": "Elimina",
"restore": "Restaura",
diff --git a/packages/hoppscotch-app/locales/cn.json b/packages/hoppscotch-app/locales/cn.json
index 97c4a7620..34ee079c7 100644
--- a/packages/hoppscotch-app/locales/cn.json
+++ b/packages/hoppscotch-app/locales/cn.json
@@ -19,6 +19,7 @@
"more": "更多",
"new": "新增",
"no": "否",
+ "paste": "Paste",
"prettify": "美化",
"remove": "移除",
"restore": "恢复",
diff --git a/packages/hoppscotch-app/locales/cs.json b/packages/hoppscotch-app/locales/cs.json
index edac0a09f..e6efd9a51 100644
--- a/packages/hoppscotch-app/locales/cs.json
+++ b/packages/hoppscotch-app/locales/cs.json
@@ -19,6 +19,7 @@
"more": "Více",
"new": "Nový",
"no": "Ne",
+ "paste": "Paste",
"prettify": "Prettify",
"remove": "Odstranit",
"restore": "Obnovit",
diff --git a/packages/hoppscotch-app/locales/da.json b/packages/hoppscotch-app/locales/da.json
index 3289ba5a3..d54c11717 100644
--- a/packages/hoppscotch-app/locales/da.json
+++ b/packages/hoppscotch-app/locales/da.json
@@ -19,6 +19,7 @@
"more": "Mere",
"new": "Ny",
"no": "Ingen",
+ "paste": "Paste",
"prettify": "Prettify",
"remove": "Fjerne",
"restore": "Gendan",
diff --git a/packages/hoppscotch-app/locales/de.json b/packages/hoppscotch-app/locales/de.json
index 8e1416656..ddfc7e860 100644
--- a/packages/hoppscotch-app/locales/de.json
+++ b/packages/hoppscotch-app/locales/de.json
@@ -19,6 +19,7 @@
"more": "Mehr",
"new": "Neu",
"no": "Nein",
+ "paste": "Paste",
"prettify": "Verschönern",
"remove": "Entfernen",
"restore": "Wiederherstellen",
diff --git a/packages/hoppscotch-app/locales/el.json b/packages/hoppscotch-app/locales/el.json
index a1782acde..60e07f33e 100644
--- a/packages/hoppscotch-app/locales/el.json
+++ b/packages/hoppscotch-app/locales/el.json
@@ -19,6 +19,7 @@
"more": "Περισσότερο",
"new": "Νέος",
"no": "Οχι",
+ "paste": "Paste",
"prettify": "Ωραιοποιώ",
"remove": "Αφαιρώ",
"restore": "Επαναφέρω",
diff --git a/packages/hoppscotch-app/locales/en.json b/packages/hoppscotch-app/locales/en.json
index 42a5cfc3f..3fcf74cd9 100644
--- a/packages/hoppscotch-app/locales/en.json
+++ b/packages/hoppscotch-app/locales/en.json
@@ -19,6 +19,7 @@
"more": "More",
"new": "New",
"no": "No",
+ "paste": "Paste",
"prettify": "Prettify",
"remove": "Remove",
"restore": "Restore",
diff --git a/packages/hoppscotch-app/locales/es.json b/packages/hoppscotch-app/locales/es.json
index 12ff7de8a..0a8d718dd 100644
--- a/packages/hoppscotch-app/locales/es.json
+++ b/packages/hoppscotch-app/locales/es.json
@@ -19,6 +19,7 @@
"more": "Más",
"new": "Nuevo",
"no": "No",
+ "paste": "Paste",
"prettify": "Prettify",
"remove": "Eliminar",
"restore": "Restaurar",
diff --git a/packages/hoppscotch-app/locales/fi.json b/packages/hoppscotch-app/locales/fi.json
index 39e20bb09..b80d37d1d 100644
--- a/packages/hoppscotch-app/locales/fi.json
+++ b/packages/hoppscotch-app/locales/fi.json
@@ -19,6 +19,7 @@
"more": "Lisää",
"new": "Uusi",
"no": "Ei",
+ "paste": "Paste",
"prettify": "Koristella",
"remove": "Poista",
"restore": "Palauttaa",
diff --git a/packages/hoppscotch-app/locales/fr.json b/packages/hoppscotch-app/locales/fr.json
index 40e155fea..40c3cf8e7 100644
--- a/packages/hoppscotch-app/locales/fr.json
+++ b/packages/hoppscotch-app/locales/fr.json
@@ -19,6 +19,7 @@
"more": "Suite",
"new": "Nouveau",
"no": "Non",
+ "paste": "Paste",
"prettify": "Formater",
"remove": "Supprimer",
"restore": "Restaurer",
diff --git a/packages/hoppscotch-app/locales/he.json b/packages/hoppscotch-app/locales/he.json
index 2cf613b81..09943a1d6 100644
--- a/packages/hoppscotch-app/locales/he.json
+++ b/packages/hoppscotch-app/locales/he.json
@@ -19,6 +19,7 @@
"more": "יותר",
"new": "חָדָשׁ",
"no": "לא",
+ "paste": "Paste",
"prettify": "לְיַפּוֹת",
"remove": "לְהַסִיר",
"restore": "לשחזר",
diff --git a/packages/hoppscotch-app/locales/hu.json b/packages/hoppscotch-app/locales/hu.json
index 9f51e90c7..55b8e4be8 100644
--- a/packages/hoppscotch-app/locales/hu.json
+++ b/packages/hoppscotch-app/locales/hu.json
@@ -19,6 +19,7 @@
"more": "Több",
"new": "Új",
"no": "Nem",
+ "paste": "Paste",
"prettify": "Csinosítás",
"remove": "Eltávolítás",
"restore": "Visszaállítás",
diff --git a/packages/hoppscotch-app/locales/it.json b/packages/hoppscotch-app/locales/it.json
index 80e944b63..2f7f90b0a 100644
--- a/packages/hoppscotch-app/locales/it.json
+++ b/packages/hoppscotch-app/locales/it.json
@@ -19,6 +19,7 @@
"more": "Di più",
"new": "Nuovo",
"no": "No",
+ "paste": "Paste",
"prettify": "Abbellisci",
"remove": "Rimuovi",
"restore": "Ripristina",
diff --git a/packages/hoppscotch-app/locales/ja.json b/packages/hoppscotch-app/locales/ja.json
index 6d2dfece3..ef6ad0a04 100644
--- a/packages/hoppscotch-app/locales/ja.json
+++ b/packages/hoppscotch-app/locales/ja.json
@@ -19,6 +19,7 @@
"more": "もっと",
"new": "新しい",
"no": "番号",
+ "paste": "Paste",
"prettify": "きれいにする",
"remove": "削除する",
"restore": "戻す",
diff --git a/packages/hoppscotch-app/locales/ko.json b/packages/hoppscotch-app/locales/ko.json
index ca5dfc69a..451dfef6c 100644
--- a/packages/hoppscotch-app/locales/ko.json
+++ b/packages/hoppscotch-app/locales/ko.json
@@ -19,6 +19,7 @@
"more": "더보기",
"new": "추가",
"no": "아니요",
+ "paste": "Paste",
"prettify": "예쁘게",
"remove": "제거",
"restore": "복원",
diff --git a/packages/hoppscotch-app/locales/nl.json b/packages/hoppscotch-app/locales/nl.json
index 6f88eb74a..931972c94 100644
--- a/packages/hoppscotch-app/locales/nl.json
+++ b/packages/hoppscotch-app/locales/nl.json
@@ -19,6 +19,7 @@
"more": "Meer",
"new": "Nieuw",
"no": "Nee",
+ "paste": "Paste",
"prettify": "Netter opmaken",
"remove": "Verwijderen",
"restore": "Herstellen",
diff --git a/packages/hoppscotch-app/locales/no.json b/packages/hoppscotch-app/locales/no.json
index 9b56ec06b..56b282e2e 100644
--- a/packages/hoppscotch-app/locales/no.json
+++ b/packages/hoppscotch-app/locales/no.json
@@ -19,6 +19,7 @@
"more": "Mer",
"new": "Ny",
"no": "Nei",
+ "paste": "Paste",
"prettify": "Forskjønn",
"remove": "Ta bort",
"restore": "Gjenopprett",
diff --git a/packages/hoppscotch-app/locales/pl.json b/packages/hoppscotch-app/locales/pl.json
index d8004542c..bacd9a33e 100644
--- a/packages/hoppscotch-app/locales/pl.json
+++ b/packages/hoppscotch-app/locales/pl.json
@@ -19,6 +19,7 @@
"more": "Więcej",
"new": "Nowa",
"no": "Nie",
+ "paste": "Paste",
"prettify": "Popraw czytelność",
"remove": "Usuń",
"restore": "Przywróć",
diff --git a/packages/hoppscotch-app/locales/pt-br.json b/packages/hoppscotch-app/locales/pt-br.json
index 20914b88d..91dc1d1f8 100644
--- a/packages/hoppscotch-app/locales/pt-br.json
+++ b/packages/hoppscotch-app/locales/pt-br.json
@@ -19,6 +19,7 @@
"more": "Mais",
"new": "Novo",
"no": "Não",
+ "paste": "Paste",
"prettify": "Embelezar",
"remove": "Remover",
"restore": "Restaurar",
diff --git a/packages/hoppscotch-app/locales/pt.json b/packages/hoppscotch-app/locales/pt.json
index 20914b88d..91dc1d1f8 100644
--- a/packages/hoppscotch-app/locales/pt.json
+++ b/packages/hoppscotch-app/locales/pt.json
@@ -19,6 +19,7 @@
"more": "Mais",
"new": "Novo",
"no": "Não",
+ "paste": "Paste",
"prettify": "Embelezar",
"remove": "Remover",
"restore": "Restaurar",
diff --git a/packages/hoppscotch-app/locales/ro.json b/packages/hoppscotch-app/locales/ro.json
index 2a662e28e..63eda9467 100644
--- a/packages/hoppscotch-app/locales/ro.json
+++ b/packages/hoppscotch-app/locales/ro.json
@@ -19,6 +19,7 @@
"more": "Mai mult",
"new": "Nou",
"no": "Nu",
+ "paste": "Paste",
"prettify": "Dăruiește",
"remove": "Elimina",
"restore": "Restabili",
diff --git a/packages/hoppscotch-app/locales/ru.json b/packages/hoppscotch-app/locales/ru.json
index c0a7e81e6..9c022c8f5 100644
--- a/packages/hoppscotch-app/locales/ru.json
+++ b/packages/hoppscotch-app/locales/ru.json
@@ -19,6 +19,7 @@
"more": "Больше",
"new": "Создать новый",
"no": "Нет",
+ "paste": "Paste",
"prettify": "Форматировать",
"remove": "Удалить",
"restore": "Восстановить",
diff --git a/packages/hoppscotch-app/locales/sr.json b/packages/hoppscotch-app/locales/sr.json
index f183a829f..8ee401fdf 100644
--- a/packages/hoppscotch-app/locales/sr.json
+++ b/packages/hoppscotch-app/locales/sr.json
@@ -19,6 +19,7 @@
"more": "Више",
"new": "Нова",
"no": "Не",
+ "paste": "Paste",
"prettify": "Преттифи",
"remove": "Уклони",
"restore": "Ресторе",
diff --git a/packages/hoppscotch-app/locales/sv.json b/packages/hoppscotch-app/locales/sv.json
index c570c88ab..5baaf98b9 100644
--- a/packages/hoppscotch-app/locales/sv.json
+++ b/packages/hoppscotch-app/locales/sv.json
@@ -19,6 +19,7 @@
"more": "Mer",
"new": "Ny",
"no": "Nej",
+ "paste": "Paste",
"prettify": "Försköna",
"remove": "Avlägsna",
"restore": "Återställ",
diff --git a/packages/hoppscotch-app/locales/tr.json b/packages/hoppscotch-app/locales/tr.json
index 34fedfccf..c355d82e8 100644
--- a/packages/hoppscotch-app/locales/tr.json
+++ b/packages/hoppscotch-app/locales/tr.json
@@ -19,6 +19,7 @@
"more": "Daha",
"new": "Yeni",
"no": "Numara",
+ "paste": "Paste",
"prettify": "Güzelleştir",
"remove": "Kaldır",
"restore": "Onar",
diff --git a/packages/hoppscotch-app/locales/tw.json b/packages/hoppscotch-app/locales/tw.json
index 218932085..c702f9d65 100644
--- a/packages/hoppscotch-app/locales/tw.json
+++ b/packages/hoppscotch-app/locales/tw.json
@@ -19,6 +19,7 @@
"more": "更多",
"new": "新增",
"no": "否",
+ "paste": "Paste",
"prettify": "美化",
"remove": "移除",
"restore": "還原",
diff --git a/packages/hoppscotch-app/locales/uk.json b/packages/hoppscotch-app/locales/uk.json
index 2e1d01e12..8d0517852 100644
--- a/packages/hoppscotch-app/locales/uk.json
+++ b/packages/hoppscotch-app/locales/uk.json
@@ -19,6 +19,7 @@
"more": "Більше",
"new": "Новий",
"no": "Немає",
+ "paste": "Paste",
"prettify": "Прикрасьте",
"remove": "Видалити",
"restore": "Відновлювати",
diff --git a/packages/hoppscotch-app/locales/vi.json b/packages/hoppscotch-app/locales/vi.json
index 95cc9aedb..09b8b4340 100644
--- a/packages/hoppscotch-app/locales/vi.json
+++ b/packages/hoppscotch-app/locales/vi.json
@@ -19,6 +19,7 @@
"more": "Hơn",
"new": "Mới mẻ",
"no": "Không",
+ "paste": "Paste",
"prettify": "Kiểm tra trước",
"remove": "Tẩy",
"restore": "Khôi phục",