From 08516e6c43338ee5d91f3f19b376a98b7e7689f4 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Thu, 13 Jun 2024 13:01:05 +0530 Subject: [PATCH] feat: Enable gmail channel (#9622) Co-authored-by: Muhsin Keloth --- .../dashboard/i18n/locale/en/inboxMgmt.json | 2 - .../settings/inbox/channels/Email.vue | 91 ++++++++++--------- .../inbox/channels/emailChannels/Google.vue | 63 +++---------- .../channels/emailChannels/Microsoft.vue | 84 ++++------------- .../channels/emailChannels/OAuthChannel.vue | 89 ++++++++++++++++++ 5 files changed, 164 insertions(+), 165 deletions(-) create mode 100644 app/javascript/dashboard/routes/dashboard/settings/inbox/channels/emailChannels/OAuthChannel.vue diff --git a/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json b/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json index 38ebfb122..82e6e7c2b 100644 --- a/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json +++ b/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json @@ -367,7 +367,6 @@ "DESCRIPTION": "Click on the Sign in with Microsoft button to get started. You will redirected to the email sign in page. Once you accept the requested permissions, you would be redirected back to the inbox creation step.", "EMAIL_PLACEHOLDER": "Enter email address", "SIGN_IN": "Sign in with Microsoft", - "HELP": "To add your Microsoft account as a channel, you need to authenticate your Microsoft account by clicking on 'Sign in with Microsoft' ", "ERROR_MESSAGE": "There was an error connecting to Microsoft, please try again" }, "GOOGLE": { @@ -375,7 +374,6 @@ "DESCRIPTION": "Click on the Sign in with Google button to get started. You will redirected to the email sign in page. Once you accept the requested permissions, you would be redirected back to the inbox creation step.", "SIGN_IN": "Sign in with Google", "EMAIL_PLACEHOLDER": "Enter email address", - "HELP": "To add your Google account as a channel, you need to authenticate your Google account by clicking on 'Sign in with Google' ", "ERROR_MESSAGE": "There was an error connecting to Google, please try again" } }, diff --git a/app/javascript/dashboard/routes/dashboard/settings/inbox/channels/Email.vue b/app/javascript/dashboard/routes/dashboard/settings/inbox/channels/Email.vue index 34a5d2070..375e5aefb 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/inbox/channels/Email.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/inbox/channels/Email.vue @@ -20,58 +20,59 @@ + - diff --git a/app/javascript/dashboard/routes/dashboard/settings/inbox/channels/emailChannels/Google.vue b/app/javascript/dashboard/routes/dashboard/settings/inbox/channels/emailChannels/Google.vue index 9fb3fe978..b0588bdd6 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/inbox/channels/emailChannels/Google.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/inbox/channels/emailChannels/Google.vue @@ -1,55 +1,18 @@ - diff --git a/app/javascript/dashboard/routes/dashboard/settings/inbox/channels/emailChannels/Microsoft.vue b/app/javascript/dashboard/routes/dashboard/settings/inbox/channels/emailChannels/Microsoft.vue index e3b1f032e..ee0b29360 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/inbox/channels/emailChannels/Microsoft.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/inbox/channels/emailChannels/Microsoft.vue @@ -1,71 +1,19 @@ - - - + diff --git a/app/javascript/dashboard/routes/dashboard/settings/inbox/channels/emailChannels/OAuthChannel.vue b/app/javascript/dashboard/routes/dashboard/settings/inbox/channels/emailChannels/OAuthChannel.vue new file mode 100644 index 000000000..b6ccef365 --- /dev/null +++ b/app/javascript/dashboard/routes/dashboard/settings/inbox/channels/emailChannels/OAuthChannel.vue @@ -0,0 +1,89 @@ + +