From 57876a16092140d8ffb77d5f680809cecf7c0d26 Mon Sep 17 00:00:00 2001 From: Justin Gasper Date: Wed, 6 Oct 2021 22:39:17 +1100 Subject: [PATCH] Config consistency --- config/dev.js | 54 +++++++++++++++++++++++--------------------------- config/prod.js | 14 ++++++++++--- 2 files changed, 36 insertions(+), 32 deletions(-) diff --git a/config/dev.js b/config/dev.js index 10973c5..2579050 100644 --- a/config/dev.js +++ b/config/dev.js @@ -12,35 +12,51 @@ module.exports = { /** * URL of Topcoder Connect Website */ + SERVER_API_KEY: "79b2d5eb-c1fd-42c4-9391-6b2c9780d591", CONNECT_WEBSITE_URL: "https://connect.topcoder-dev.com", - SERVER_API_KEY: "79b2d5eb-c1fd-42c4-9391-6b2c9780d591", URL: { - /* Connector URL of the TC accounts App. */ - ACCOUNTS_APP_CONNECTOR: "https://accounts-auth0.topcoder-dev.com", - - /* The remote address where the app is deployed. */ + ARENA: "https://arena.topcoder-dev.com", APP: "https://community-app.topcoder-dev.com", /* This is the same value as above, but it is used by topcoder-react-lib, * as a more verbose name for the param. */ COMMUNITY_APP: "https://community-app.topcoder-dev.com", - ARENA: "https://arena.topcoder-dev.com", AUTH: "https://accounts-auth0.topcoder-dev.com", BASE: "https://www.topcoder-dev.com", HOME: "/my-dashboard", BLOG: "https://www.topcoder-dev.com/blog", BLOG_FEED: "https://www.topcoder.com/blog/feed/", + COMMUNITY: "https://community.topcoder-dev.com", FORUMS: "https://apps.topcoder-dev.com/forums", FORUMS_VANILLA: "https://vanilla.topcoder-dev.com", HELP: - "https://www.topcoder.com/thrive/tracks?track=Topcoder&tax=Help%20Articles", + "https://www.topcoder.com/thrive/tracks?track=Topcoder&tax=Help%20Articles", SUBMISSION_REVIEW: "https://submission-review.topcoder-dev.com", THRIVE: "https://www.topcoder.com/thrive", + MEMBER: "https://members.topcoder-dev.com", + ONLINE_REVIEW: "https://software.topcoder-dev.com", + PAYMENT_TOOL: "https://payment.topcoder-dev.com", + STUDIO: "https://studio.topcoder-dev.com", + IOS: "https://ios.topcoder-dev.com", + + /* Connector URL of the TC accounts App. */ + ACCOUNTS_APP_CONNECTOR: "https://accounts-auth0.topcoder-dev.com", + + TCO: "https://www.topcoder.com/tco", + TCO17: "https://tco17.topcoder.com/", + TCO19: "https://community-app.topcoder-dev.com/__community__/tco19", + WIPRO: "https://wipro.topcoder.com", + + TOPGEAR: "https://dev-topgear.wipro.com", + + COMMUNITY_API: "http://localhost:8000", + COMMUNITY_APP_GITHUB_ISSUES: + "https://github.com/topcoder-platform/community-app/issues", COMMUNITIES: { BLOCKCHAIN: "https://blockchain.topcoder-dev.com", COGNITIVE: "https://cognitive.topcoder-dev.com", @@ -49,8 +65,6 @@ module.exports = { CS: "https://community-app.topcoder-dev.com/__community__/cs", }, - /* Dedicated section to group together links to various articles in - * Topcoder help center. */ INFO: { DESIGN_CHALLENGES: "http://help.topcoder.com/hc/en-us/categories/202610437-DESIGN", @@ -76,28 +90,10 @@ module.exports = { TEMPLATES_REPO: "https://github.com/topcoder-platform-templates", }, - IOS: "https://ios.topcoder-dev.com", - MEMBER: "https://members.topcoder-dev.com", - ONLINE_REVIEW: "https://software.topcoder-dev.com", - PAYMENT_TOOL: "https://payment.topcoder-dev.com", - STUDIO: "https://studio.topcoder-dev.com", - TCO: "https://www.topcoder.com/tco", - TCO17: "https://tco17.topcoder.com/", - TCO19: "https://community-app.topcoder-dev.com/__community__/tco19", - - TOPGEAR: "https://dev-topgear.wipro.com", - USER_SETTINGS: "https://lc1-user-settings-service.herokuapp.com", - WIPRO: "https://wipro.topcoder.com", - COMMUNITY_API: "http://localhost:8000", - COMMUNITY_APP_GITHUB_ISSUES: - "https://github.com/topcoder-platform/community-app/issues", - EMAIL_VERIFY_URL: - "http://www.topcoder-dev.com/settings/account/changeEmail", + EMAIL_VERIFY_URL: "http://www.topcoder-dev.com/settings/account/changeEmail", ABANDONMENT_EMBED: "https://43d132d5dbff47c59d9d53ad448f93c2.js.ubembed.com", - // If a logged in user is a member of any of these groups, when they land on - // their profile page (members/:handle), they'll be redirected to the "userProfile" url SUBDOMAIN_PROFILE_CONFIG: [ { groupId: "20000000", @@ -119,8 +115,8 @@ module.exports = { V3: "https://api.topcoder-dev.com/v3", V2: "https://api.topcoder-dev.com/v2", }, - MOCK_TERMS_SERVICE: false, + MOCK_TERMS_SERVICE: false, AV_SCAN_SCORER_REVIEW_TYPE_ID: "55bbb17d-aac2-45a6-89c3-a8d102863d05", PROVISIONAL_SCORING_COMPLETED_REVIEW_TYPE_ID: "df51ca7d-fb0a-4147-9569-992fcf5aae48", PAGE_SIZE: 50, diff --git a/config/prod.js b/config/prod.js index c00be3c..e198be3 100644 --- a/config/prod.js +++ b/config/prod.js @@ -26,12 +26,18 @@ module.exports = { AUTH: "https://accounts-auth0.topcoder.com", BASE: "https://www.topcoder.com", HOME: "/my-dashboard", + BLOG: "https://www.topcoder.com/blog", + BLOG_FEED: "https://www.topcoder.com/blog/feed/", + COMMUNITY: "https://community.topcoder.com", FORUMS: "https://apps.topcoder.com/forums", FORUMS_VANILLA: "https://discussions.topcoder.com", HELP: "https://www.topcoder.com/thrive/tracks?track=Topcoder&tax=Help%20Articles", SUBMISSION_REVIEW: "https://submission-review.topcoder.com", + + THRIVE: "https://www.topcoder.com/thrive", + MEMBER: "https://member.topcoder.com", ONLINE_REVIEW: "https://software.topcoder.com", PAYMENT_TOOL: "https://payment.topcoder.com", @@ -40,6 +46,8 @@ module.exports = { /* Connector URL of the TC accounts App. */ ACCOUNTS_APP_CONNECTOR: "https://accounts-auth0.topcoder.com/", + + TCO: "https://www.topcoder.com/tco", TCO17: "https://tco17.topcoder.com/", TCO19: "https://tco19.topcoder.com/", WIPRO: "https://wipro.topcoder.com", @@ -47,7 +55,8 @@ module.exports = { TOPGEAR: "https://topgear-app.wipro.com", COMMUNITY_API: "http://localhost:8000", - + COMMUNITY_APP_GITHUB_ISSUES: + "https://github.com/topcoder-platform/community-app/issues", COMMUNITIES: { BLOCKCHAIN: "https://blockchain.topcoder.com", COGNITIVE: "https://cognitive.topcoder.com", @@ -81,7 +90,7 @@ module.exports = { TEMPLATES_REPO: "https://github.com/topcoder-platform-templates", }, - + USER_SETTINGS: "https://lc1-user-settings-service.herokuapp.com", EMAIL_VERIFY_URL: "http://www.topcoder.com/settings/account/changeEmail", ABANDONMENT_EMBED: "https://43d132d5dbff47c59d9d53ad448f93c2.js.ubembed.com", @@ -110,7 +119,6 @@ module.exports = { MOCK_TERMS_SERVICE: false, AV_SCAN_SCORER_REVIEW_TYPE_ID: "55bbb17d-aac2-45a6-89c3-a8d102863d05", PROVISIONAL_SCORING_COMPLETED_REVIEW_TYPE_ID: "df51ca7d-fb0a-4147-9569-992fcf5aae48", - PAGE_SIZE: 50, REVIEW_OPPORTUNITY_PAGE_SIZE: 1000, CONTENTFUL: {