Skip to content

Config consistency #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 25 additions & 29 deletions config/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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,
Expand Down
14 changes: 11 additions & 3 deletions config/prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -40,14 +46,17 @@ 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",

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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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: {
Expand Down