From 9f0956556fee110a100e22f1282c12512e929c7c Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Sat, 16 Oct 2021 15:01:32 +0530 Subject: [PATCH] feat: support updating user's display name --- .../components/teams/Invite.vue | 56 ++++--------------- packages/hoppscotch-app/helpers/fb/auth.ts | 23 ++++++++ packages/hoppscotch-app/locales/en.json | 5 +- packages/hoppscotch-app/pages/profile.vue | 52 +++++++++++++++-- packages/hoppscotch-app/pages/settings.vue | 10 ++-- .../hoppscotch-app/static/images/cover.svg | 1 + 6 files changed, 92 insertions(+), 55 deletions(-) create mode 100644 packages/hoppscotch-app/static/images/cover.svg diff --git a/packages/hoppscotch-app/components/teams/Invite.vue b/packages/hoppscotch-app/components/teams/Invite.vue index ec6d982be..966aa5ee3 100644 --- a/packages/hoppscotch-app/components/teams/Invite.vue +++ b/packages/hoppscotch-app/components/teams/Invite.vue @@ -14,55 +14,23 @@ class="divide-x divide-dividerLight flex" > - - - - - - - - +
+ console.error("error updating", us, e) + ) + } catch (e) { + console.error("error updating", e) + throw e + } +} + export function getGithubCredentialFromResult(result: UserCredential) { return GithubAuthProvider.credentialFromResult(result) } diff --git a/packages/hoppscotch-app/locales/en.json b/packages/hoppscotch-app/locales/en.json index dee9eceb1..08b0a7325 100644 --- a/packages/hoppscotch-app/locales/en.json +++ b/packages/hoppscotch-app/locales/en.json @@ -334,6 +334,9 @@ "light_mode": "Light", "navigation_sidebar": "Navigation sidebar", "official_proxy_hosting": "Official Proxy is hosted by Hoppscotch.", + "profile": "Profile", + "profile_description": "Update you profile details", + "profile_name": "Profile name", "proxy": "Proxy", "proxy_url": "Proxy URL", "proxy_use_toggle": "Use the proxy middleware to send requests", @@ -474,7 +477,6 @@ "invalid_email_format": "Email format is invalid", "invalid_member_permission": "Please provide a valid permission to the team member", "invite": "Invite", - "select_a_team": "Select a team", "invite_tooltip": "Invite people to this workspace", "invited_to_team": "{owner} invited you to join {team}", "join_beta": "Join the beta program to access teams.", @@ -491,6 +493,7 @@ "pending_invites": "Pending invites", "permissions": "Permissions", "saved": "Team saved", + "select_a_team": "Select a team", "title": "Teams" }, "test": { diff --git a/packages/hoppscotch-app/pages/profile.vue b/packages/hoppscotch-app/pages/profile.vue index 8d817aa47..8f8ab1440 100644 --- a/packages/hoppscotch-app/pages/profile.vue +++ b/packages/hoppscotch-app/pages/profile.vue @@ -1,19 +1,23 @@