From f82dcbcd90a284bfdddcc18a86ebdfd69936910f Mon Sep 17 00:00:00 2001 From: Da Kong Date: Fri, 21 Jun 2024 10:10:49 +0800 Subject: [PATCH] quick updates --- package.json | 2 +- public/manifest.json | 2 +- src/config-legacy.json | 200 ----------------------------------------- src/content.js | 5 +- src/manifest.json | 2 +- 5 files changed, 7 insertions(+), 204 deletions(-) delete mode 100644 src/config-legacy.json diff --git a/package.json b/package.json index d80951f..11635f9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rc-unified-crm-extension-client", - "version": "0.8.13", + "version": "1.0.0", "description": "![image](https://user-images.githubusercontent.com/7036536/190325756-35ef367d-1557-4833-84aa-b09f5d6717ab.png)", "main": "background.js", "scripts": { diff --git a/public/manifest.json b/public/manifest.json index 48d1150..e79dde5 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,7 +1,7 @@ { "name": "RingCentral CRM Extension", "description": "A RingCentral extension for CRM platforms", - "version": "0.8.13", + "version": "1.0.0", "permissions": [ "storage", "alarms", diff --git a/src/config-legacy.json b/src/config-legacy.json deleted file mode 100644 index 4e7d8d6..0000000 --- a/src/config-legacy.json +++ /dev/null @@ -1,200 +0,0 @@ -{ - "serverUrl": "https://lite-http-tunnel-s52m.onrender.com", - "platforms": { - "pipedrive": { - "name": "pipedrive", - "authType": "oauth", - "authUrl": "https://oauth.pipedrive.com/oauth/authorize", - "clientId": "5d4736e322561f57", - "redirectUri": "https://unified-crm-extension.labs.ringcentral.com/pipedrive-redirect", - "canOpenLogPage": false, - "page": { - "callLog": { - "additionalFields": [ - { - "const": "deals", - "title": "Deal", - "type": "selection", - "contactDependent": true - } - ] - }, - "messageLog": { - "additionalFields": [ - { - "const": "deals", - "title": "Deal", - "type": "selection", - "contactDependent": true - } - ] - } - } - }, - "insightly": { - "name": "insightly", - "authType": "apiKey", - "canOpenLogPage": true, - "page": { - "callLog": { - "additionalFields": [ - { - "const": "organization", - "title": "Organisation", - "type": "selection", - "contactDependent": true - }, - { - "const": "opportunity", - "title": "Opportunity", - "type": "selection", - "contactDependent": true - }, - { - "const": "project", - "title": "Project", - "type": "selection", - "contactDependent": true - } - ] - }, - "messageLog": { - "additionalFields": [ - { - "const": "organization", - "title": "Organisation", - "type": "selection", - "contactDependent": true - }, - { - "const": "opportunity", - "title": "Opportunity", - "type": "selection", - "contactDependent": true - }, - { - "const": "project", - "title": "Project", - "type": "selection", - "contactDependent": true - } - ] - } - } - }, - "clio": { - "name": "clio", - "authType": "oauth", - "authUrl": "https://app.clio.com/oauth/authorize", - "clientId": "JxK4GglGRoZnWoKA4sSLoXa5PHA2E6Mjisv3iIMY", - "canOpenLogPage": false, - "page": { - "callLog": { - "additionalFields": [ - { - "const": "matters", - "title": "Matter", - "type": "selection", - "contactDependent": true - }, - { - "const": "logTimeEntry", - "title": "Log time entry", - "type": "checkbox", - "contactDependent": false, - "defaultValue": true - } - ] - }, - "messageLog": { - "additionalFields": [ - { - "const": "matters", - "title": "Matter", - "type": "selection", - "contactDependent": true - } - ] - } - } - }, - "redtail": { - "name": "redtail", - "authType": "apiKey", - "canOpenLogPage": true - }, - "bullhorn": { - "name": "bullhorn", - "authType": "oauth", - "clientId": "5a1ff851-6b1c-454d-8501-826502e6fc76", - "canOpenLogPage": false, - "page": { - "callLog": { - "additionalFields": [ - { - "const": "noteActions", - "title": "Note action", - "type": "selection", - "contactDependent": false - } - ] - }, - "messageLog": { - "additionalFields": [ - { - "const": "noteActions", - "title": "Note action", - "type": "selection", - "contactDependent": false - } - ] - } - } - } - }, - "mixpanelToken": "04acd7cb2e1867dcf98b6e8cf5ee1e1c", - "clientId": "3rJq9BxcTCm-I7CFcY19ew", - "rcServer": "https://platform.ringcentral.com", - "redirectUri": "https://ringcentral.github.io/ringcentral-embeddable/redirect.html", - "version": "0.8.13", - "releaseNote": { - "all": "", - "pipedrive": "", - "insightly": "", - "clio": "", - "redtail": "", - "bullhorn": "" - }, - "welcomeMessage": { - "pipedrive": { - "docLink": "https://ringcentral.github.io/rc-unified-crm-extension/pipedrive/", - "VideoLink": "https://youtu.be/Hu0qC13HDkQ" - }, - "insightly": { - "docLink": "https://ringcentral.github.io/rc-unified-crm-extension/insightly/", - "VideoLink": "https://youtu.be/5hWvVI12UAc" - }, - "clio": { - "docLink": "https://ringcentral.github.io/rc-unified-crm-extension/clio/", - "VideoLink": "https://youtu.be/pQgdsAR1UCI" - }, - "redtail": { - "docLink": "https://ringcentral.github.io/rc-unified-crm-extension/redtail/", - "VideoLink": "https://youtu.be/1pbpbEvp5uQ" - }, - "bullhorn": { - "docLink": "https://ringcentral.github.io/rc-unified-crm-extension/bullhorn/", - "VideoLink": "https://youtu.be/afbdQD0y4Yo" - } - }, - "platformsWithDifferentContactType": { - "insightly": [ - "Lead", - "Contact" - ], - "bullhorn": [ - "Candidate", - "Contact" - ] - } -} \ No newline at end of file diff --git a/src/content.js b/src/content.js index e9a1654..0b919c7 100644 --- a/src/content.js +++ b/src/content.js @@ -142,7 +142,10 @@ async function Initialize() { if (window.self === window.top && renderQuickAccessButton) { await RenderQuickAccessButton(); } - await initializeC2D(); + // Case: C2D renders extra elements inside Bullhorn note section + if (!window.location.href.startsWith('https://app.bullhornstaffing.com/content')) { + await initializeC2D(); + } } Initialize(); diff --git a/src/manifest.json b/src/manifest.json index 68568a3..8486bdc 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,5 +1,5 @@ { "defaultCrmManifestUrl": "https://unified-crm-extension-test.labs.ringcentral.com/crmManifest", "mixpanelToken": "0c3618bcd33665a15a979a972bac380f", - "version": "0.8.14" + "version": "1.0.0" } \ No newline at end of file