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

Added base url #68

Merged
merged 1 commit into from
Apr 21, 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
7 changes: 4 additions & 3 deletions config/default.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
module.exports = {
GUIKIT: {
GUIKIT: {
DEBOUNCE_ON_CHANGE_TIME: 150,
},
API: {
V5: "https://api.topcoder-dev.com/v5",
V3: "https://api.topcoder-dev.com/v3",
},
URL: {
BASE: "https://www.topcoder-dev.com",
COMMUNITY_APP: "https://community-app.topcoder-dev.com",
}
}
},
};
1 change: 1 addition & 0 deletions config/development.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = {
V3: "https://api.topcoder-dev.com/v3",
},
URL: {
BASE: "https://www.topcoder-dev.com",
COMMUNITY_APP: "https://community-app.topcoder-dev.com",
},
};
1 change: 1 addition & 0 deletions config/production.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = {
V3: "https://api.topcoder.com/v3",
},
URL: {
BASE: "https://www.topcoder.com",
COMMUNITY_APP: "https://community-app.topcoder.com",
},
};
6 changes: 3 additions & 3 deletions src/containers/Challenges/Listing/ChallengeItem/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const ChallengeItem = ({ challenge, onClickTag, onClickTrack }) => {
<div styleName="name-container">
<h6 styleName="name">
<a
href={`${process.env.URL.COMMUNITY_APP}/challenges/${challenge.id}`} // eslint-disable-line no-undef
href={`${process.env.URL.BASE}/challenges/${challenge.id}`} // eslint-disable-line no-undef
>
{challenge.name}
</a>
Expand All @@ -65,12 +65,12 @@ const ChallengeItem = ({ challenge, onClickTag, onClickTrack }) => {
</div>
<div styleName="nums">
<a
href={`${process.env.URL.COMMUNITY_APP}/challenges/${challenge.id}?tab=registrants`} // eslint-disable-line no-undef
href={`${process.env.URL.BASE}/challenges/${challenge.id}?tab=registrants`} // eslint-disable-line no-undef
>
<NumRegistrants numOfRegistrants={challenge.numOfRegistrants} />
</a>
<a
href={`${process.env.URL.COMMUNITY_APP}/challenges/${challenge.id}?tab=submissions`} // eslint-disable-line no-undef
href={`${process.env.URL.BASE}/challenges/${challenge.id}?tab=submissions`} // eslint-disable-line no-undef
>
<NumSubmissions numOfSubmissions={challenge.numOfSubmissions} />
</a>
Expand Down