Skip to content

Commit fa6a19a

Browse files
authored
Merge pull request #33 from topcoder-platform/challenge-details-page
Config consistency
2 parents 486d759 + 57876a1 commit fa6a19a

File tree

2 files changed

+36
-32
lines changed

2 files changed

+36
-32
lines changed

config/dev.js

Lines changed: 25 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,51 @@ module.exports = {
1212
/**
1313
* URL of Topcoder Connect Website
1414
*/
15+
SERVER_API_KEY: "79b2d5eb-c1fd-42c4-9391-6b2c9780d591",
1516
CONNECT_WEBSITE_URL: "https://connect.topcoder-dev.com",
1617

17-
SERVER_API_KEY: "79b2d5eb-c1fd-42c4-9391-6b2c9780d591",
1818
URL: {
19-
/* Connector URL of the TC accounts App. */
20-
ACCOUNTS_APP_CONNECTOR: "https://accounts-auth0.topcoder-dev.com",
21-
22-
/* The remote address where the app is deployed. */
19+
ARENA: "https://arena.topcoder-dev.com",
2320
APP: "https://community-app.topcoder-dev.com",
2421

2522
/* This is the same value as above, but it is used by topcoder-react-lib,
2623
* as a more verbose name for the param. */
2724
COMMUNITY_APP: "https://community-app.topcoder-dev.com",
2825

29-
ARENA: "https://arena.topcoder-dev.com",
3026
AUTH: "https://accounts-auth0.topcoder-dev.com",
3127
BASE: "https://www.topcoder-dev.com",
3228
HOME: "/my-dashboard",
3329
BLOG: "https://www.topcoder-dev.com/blog",
3430
BLOG_FEED: "https://www.topcoder.com/blog/feed/",
31+
3532
COMMUNITY: "https://community.topcoder-dev.com",
3633
FORUMS: "https://apps.topcoder-dev.com/forums",
3734
FORUMS_VANILLA: "https://vanilla.topcoder-dev.com",
3835
HELP:
39-
"https://www.topcoder.com/thrive/tracks?track=Topcoder&tax=Help%20Articles",
36+
"https://www.topcoder.com/thrive/tracks?track=Topcoder&tax=Help%20Articles",
4037
SUBMISSION_REVIEW: "https://submission-review.topcoder-dev.com",
4138

4239
THRIVE: "https://www.topcoder.com/thrive",
4340

41+
MEMBER: "https://members.topcoder-dev.com",
42+
ONLINE_REVIEW: "https://software.topcoder-dev.com",
43+
PAYMENT_TOOL: "https://payment.topcoder-dev.com",
44+
STUDIO: "https://studio.topcoder-dev.com",
45+
IOS: "https://ios.topcoder-dev.com",
46+
47+
/* Connector URL of the TC accounts App. */
48+
ACCOUNTS_APP_CONNECTOR: "https://accounts-auth0.topcoder-dev.com",
49+
50+
TCO: "https://www.topcoder.com/tco",
51+
TCO17: "https://tco17.topcoder.com/",
52+
TCO19: "https://community-app.topcoder-dev.com/__community__/tco19",
53+
WIPRO: "https://wipro.topcoder.com",
54+
55+
TOPGEAR: "https://dev-topgear.wipro.com",
56+
57+
COMMUNITY_API: "http://localhost:8000",
58+
COMMUNITY_APP_GITHUB_ISSUES:
59+
"https://github.com/topcoder-platform/community-app/issues",
4460
COMMUNITIES: {
4561
BLOCKCHAIN: "https://blockchain.topcoder-dev.com",
4662
COGNITIVE: "https://cognitive.topcoder-dev.com",
@@ -49,8 +65,6 @@ module.exports = {
4965
CS: "https://community-app.topcoder-dev.com/__community__/cs",
5066
},
5167

52-
/* Dedicated section to group together links to various articles in
53-
* Topcoder help center. */
5468
INFO: {
5569
DESIGN_CHALLENGES:
5670
"http://help.topcoder.com/hc/en-us/categories/202610437-DESIGN",
@@ -76,28 +90,10 @@ module.exports = {
7690
TEMPLATES_REPO: "https://github.com/topcoder-platform-templates",
7791
},
7892

79-
IOS: "https://ios.topcoder-dev.com",
80-
MEMBER: "https://members.topcoder-dev.com",
81-
ONLINE_REVIEW: "https://software.topcoder-dev.com",
82-
PAYMENT_TOOL: "https://payment.topcoder-dev.com",
83-
STUDIO: "https://studio.topcoder-dev.com",
84-
TCO: "https://www.topcoder.com/tco",
85-
TCO17: "https://tco17.topcoder.com/",
86-
TCO19: "https://community-app.topcoder-dev.com/__community__/tco19",
87-
88-
TOPGEAR: "https://dev-topgear.wipro.com",
89-
9093
USER_SETTINGS: "https://lc1-user-settings-service.herokuapp.com",
91-
WIPRO: "https://wipro.topcoder.com",
92-
COMMUNITY_API: "http://localhost:8000",
93-
COMMUNITY_APP_GITHUB_ISSUES:
94-
"https://github.com/topcoder-platform/community-app/issues",
95-
EMAIL_VERIFY_URL:
96-
"http://www.topcoder-dev.com/settings/account/changeEmail",
94+
EMAIL_VERIFY_URL: "http://www.topcoder-dev.com/settings/account/changeEmail",
9795
ABANDONMENT_EMBED:
9896
"https://43d132d5dbff47c59d9d53ad448f93c2.js.ubembed.com",
99-
// If a logged in user is a member of any of these groups, when they land on
100-
// their profile page (members/:handle), they'll be redirected to the "userProfile" url
10197
SUBDOMAIN_PROFILE_CONFIG: [
10298
{
10399
groupId: "20000000",
@@ -119,8 +115,8 @@ module.exports = {
119115
V3: "https://api.topcoder-dev.com/v3",
120116
V2: "https://api.topcoder-dev.com/v2",
121117
},
122-
MOCK_TERMS_SERVICE: false,
123118

119+
MOCK_TERMS_SERVICE: false,
124120
AV_SCAN_SCORER_REVIEW_TYPE_ID: "55bbb17d-aac2-45a6-89c3-a8d102863d05",
125121
PROVISIONAL_SCORING_COMPLETED_REVIEW_TYPE_ID: "df51ca7d-fb0a-4147-9569-992fcf5aae48",
126122
PAGE_SIZE: 50,

config/prod.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,18 @@ module.exports = {
2626
AUTH: "https://accounts-auth0.topcoder.com",
2727
BASE: "https://www.topcoder.com",
2828
HOME: "/my-dashboard",
29+
BLOG: "https://www.topcoder.com/blog",
30+
BLOG_FEED: "https://www.topcoder.com/blog/feed/",
31+
2932
COMMUNITY: "https://community.topcoder.com",
3033
FORUMS: "https://apps.topcoder.com/forums",
3134
FORUMS_VANILLA: "https://discussions.topcoder.com",
3235
HELP:
3336
"https://www.topcoder.com/thrive/tracks?track=Topcoder&tax=Help%20Articles",
3437
SUBMISSION_REVIEW: "https://submission-review.topcoder.com",
38+
39+
THRIVE: "https://www.topcoder.com/thrive",
40+
3541
MEMBER: "https://member.topcoder.com",
3642
ONLINE_REVIEW: "https://software.topcoder.com",
3743
PAYMENT_TOOL: "https://payment.topcoder.com",
@@ -40,14 +46,17 @@ module.exports = {
4046

4147
/* Connector URL of the TC accounts App. */
4248
ACCOUNTS_APP_CONNECTOR: "https://accounts-auth0.topcoder.com/",
49+
50+
TCO: "https://www.topcoder.com/tco",
4351
TCO17: "https://tco17.topcoder.com/",
4452
TCO19: "https://tco19.topcoder.com/",
4553
WIPRO: "https://wipro.topcoder.com",
4654

4755
TOPGEAR: "https://topgear-app.wipro.com",
4856

4957
COMMUNITY_API: "http://localhost:8000",
50-
58+
COMMUNITY_APP_GITHUB_ISSUES:
59+
"https://github.com/topcoder-platform/community-app/issues",
5160
COMMUNITIES: {
5261
BLOCKCHAIN: "https://blockchain.topcoder.com",
5362
COGNITIVE: "https://cognitive.topcoder.com",
@@ -81,7 +90,7 @@ module.exports = {
8190
TEMPLATES_REPO: "https://github.com/topcoder-platform-templates",
8291
},
8392

84-
93+
USER_SETTINGS: "https://lc1-user-settings-service.herokuapp.com",
8594
EMAIL_VERIFY_URL: "http://www.topcoder.com/settings/account/changeEmail",
8695
ABANDONMENT_EMBED:
8796
"https://43d132d5dbff47c59d9d53ad448f93c2.js.ubembed.com",
@@ -110,7 +119,6 @@ module.exports = {
110119
MOCK_TERMS_SERVICE: false,
111120
AV_SCAN_SCORER_REVIEW_TYPE_ID: "55bbb17d-aac2-45a6-89c3-a8d102863d05",
112121
PROVISIONAL_SCORING_COMPLETED_REVIEW_TYPE_ID: "df51ca7d-fb0a-4147-9569-992fcf5aae48",
113-
114122
PAGE_SIZE: 50,
115123
REVIEW_OPPORTUNITY_PAGE_SIZE: 1000,
116124
CONTENTFUL: {

0 commit comments

Comments
 (0)