Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit d7de22c

Browse files
Merge pull request #68 from topcoder-platform/issue-46
Added base url
2 parents bab4208 + ab9f83d commit d7de22c

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

config/default.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
module.exports = {
2-
GUIKIT: {
2+
GUIKIT: {
33
DEBOUNCE_ON_CHANGE_TIME: 150,
44
},
55
API: {
66
V5: "https://api.topcoder-dev.com/v5",
77
V3: "https://api.topcoder-dev.com/v3",
88
},
99
URL: {
10+
BASE: "https://www.topcoder-dev.com",
1011
COMMUNITY_APP: "https://community-app.topcoder-dev.com",
11-
}
12-
}
12+
},
13+
};

config/development.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module.exports = {
77
V3: "https://api.topcoder-dev.com/v3",
88
},
99
URL: {
10+
BASE: "https://www.topcoder-dev.com",
1011
COMMUNITY_APP: "https://community-app.topcoder-dev.com",
1112
},
1213
};

config/production.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module.exports = {
77
V3: "https://api.topcoder.com/v3",
88
},
99
URL: {
10+
BASE: "https://www.topcoder.com",
1011
COMMUNITY_APP: "https://community-app.topcoder.com",
1112
},
1213
};

src/containers/Challenges/Listing/ChallengeItem/index.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const ChallengeItem = ({ challenge, onClickTag, onClickTrack }) => {
3838
<div styleName="name-container">
3939
<h6 styleName="name">
4040
<a
41-
href={`${process.env.URL.COMMUNITY_APP}/challenges/${challenge.id}`} // eslint-disable-line no-undef
41+
href={`${process.env.URL.BASE}/challenges/${challenge.id}`} // eslint-disable-line no-undef
4242
>
4343
{challenge.name}
4444
</a>
@@ -65,12 +65,12 @@ const ChallengeItem = ({ challenge, onClickTag, onClickTrack }) => {
6565
</div>
6666
<div styleName="nums">
6767
<a
68-
href={`${process.env.URL.COMMUNITY_APP}/challenges/${challenge.id}?tab=registrants`} // eslint-disable-line no-undef
68+
href={`${process.env.URL.BASE}/challenges/${challenge.id}?tab=registrants`} // eslint-disable-line no-undef
6969
>
7070
<NumRegistrants numOfRegistrants={challenge.numOfRegistrants} />
7171
</a>
7272
<a
73-
href={`${process.env.URL.COMMUNITY_APP}/challenges/${challenge.id}?tab=submissions`} // eslint-disable-line no-undef
73+
href={`${process.env.URL.BASE}/challenges/${challenge.id}?tab=submissions`} // eslint-disable-line no-undef
7474
>
7575
<NumSubmissions numOfSubmissions={challenge.numOfSubmissions} />
7676
</a>

0 commit comments

Comments
 (0)