From 3e2d029ee30e3397599799b56fe9cc6217cdce47 Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Mon, 23 Oct 2023 19:01:10 +0530 Subject: [PATCH] feat: initial cookie ui implementation --- packages/hoppscotch-common/locales/en.json | 17 +- .../hoppscotch-common/src/components.d.ts | 3 + .../src/components/app/Footer.vue | 12 ++ .../src/components/cookies/AllModal.vue | 195 ++++++++++++++++++ .../src/components/cookies/EditCookie.vue | 145 +++++++++++++ 5 files changed, 371 insertions(+), 1 deletion(-) create mode 100644 packages/hoppscotch-common/src/components/cookies/AllModal.vue create mode 100644 packages/hoppscotch-common/src/components/cookies/EditCookie.vue diff --git a/packages/hoppscotch-common/locales/en.json b/packages/hoppscotch-common/locales/en.json index 35450a5fb..cc8ed13f9 100644 --- a/packages/hoppscotch-common/locales/en.json +++ b/packages/hoppscotch-common/locales/en.json @@ -1,5 +1,6 @@ { "action": { + "add": "Add", "autoscroll": "Autoscroll", "cancel": "Cancel", "choose_file": "Choose a file", @@ -54,9 +55,23 @@ "new": "Add new", "star": "Add star" }, + "cookies": { + "modal": { + "new_domain_name": "New domain name", + "set": "Set a cookie", + "cookie_string": "Cookie string", + "cookie_name": "Name", + "cookie_value": "Value", + "cookie_path": "Path", + "cookie_expires": "Expires", + "managed_tab": "Managed", + "raw_tab": "Raw" + } + }, "app": { "chat_with_us": "Chat with us", "contact_us": "Contact us", + "cookies": "Cookies", "copy": "Copy", "copy_user_id": "Copy User Auth Token", "developer_option": "Developer options", @@ -764,7 +779,7 @@ "published_error": "Something went wrong while publishing msg: {topic} to topic: {message}", "published_message": "Published message: {message} to topic: {topic}", "reconnection_error": "Failed to reconnect", - "show":"Show", + "show": "Show", "subscribed_failed": "Failed to subscribe to topic: {topic}", "subscribed_success": "Successfully subscribed to topic: {topic}", "unsubscribed_failed": "Failed to unsubscribe from topic: {topic}", diff --git a/packages/hoppscotch-common/src/components.d.ts b/packages/hoppscotch-common/src/components.d.ts index f7d8352a2..65647463a 100644 --- a/packages/hoppscotch-common/src/components.d.ts +++ b/packages/hoppscotch-common/src/components.d.ts @@ -58,6 +58,9 @@ declare module 'vue' { CollectionsRequest: typeof import('./components/collections/Request.vue')['default'] CollectionsSaveRequest: typeof import('./components/collections/SaveRequest.vue')['default'] CollectionsTeamCollections: typeof import('./components/collections/TeamCollections.vue')['default'] + CookiesAllModal: typeof import('./components/cookies/AllModal.vue')['default'] + CookiesCookieJarModal: typeof import('./components/cookies/CookieJarModal.vue')['default'] + CookiesEditCookie: typeof import('./components/cookies/EditCookie.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/Footer.vue b/packages/hoppscotch-common/src/components/app/Footer.vue index fd44e7708..5155f6181 100644 --- a/packages/hoppscotch-common/src/components/app/Footer.vue +++ b/packages/hoppscotch-common/src/components/app/Footer.vue @@ -20,6 +20,11 @@ +
+
diff --git a/packages/hoppscotch-common/src/components/cookies/EditCookie.vue b/packages/hoppscotch-common/src/components/cookies/EditCookie.vue new file mode 100644 index 000000000..1c4562601 --- /dev/null +++ b/packages/hoppscotch-common/src/components/cookies/EditCookie.vue @@ -0,0 +1,145 @@ + + +