Skip to content

Commit 92f6567

Browse files
authored
Merge pull request #29 from topcoder-platform/challenge-details-page
Challenge details page
2 parents 180610c + 6c05114 commit 92f6567

File tree

226 files changed

+34836
-492
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

226 files changed

+34836
-492
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ workflows:
7777
branches:
7878
only:
7979
- dev
80+
- challenge-details-page
8081

8182
# Production builds are exectuted only on tagged commits to the
8283
# master branch.

babel.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ const config = {
1919
}],
2020
[
2121
'inline-react-svg',
22-
{
23-
ignorePattern: '[/\/]assets[/\/]images'
24-
}
22+
// {
23+
// ignorePattern: '[/\/]assets[/\/]images'
24+
// }
2525
],
2626
[
2727
"@babel/plugin-transform-runtime",

config/default.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

config/dev.js

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,133 @@
11
module.exports = {
2+
GUIKIT: {
3+
DEBOUNCE_ON_CHANGE_TIME: 150,
4+
},
5+
/**
6+
* URL of Topcoder Community Website
7+
*/
8+
TOPCODER_COMMUNITY_WEBSITE_URL: "https://topcoder-dev.com",
9+
10+
/* Max number of recommended challenges */
11+
CHALLENGE_DETAILS_MAX_NUMBER_RECOMMENDED_CHALLENGES: 3,
12+
/**
13+
* URL of Topcoder Connect Website
14+
*/
15+
CONNECT_WEBSITE_URL: "https://connect.topcoder-dev.com",
16+
17+
SERVER_API_KEY: "79b2d5eb-c1fd-42c4-9391-6b2c9780d591",
18+
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. */
23+
APP: "https://community-app.topcoder-dev.com",
24+
25+
/* This is the same value as above, but it is used by topcoder-react-lib,
26+
* as a more verbose name for the param. */
27+
COMMUNITY_APP: "https://community-app.topcoder-dev.com",
28+
29+
ARENA: "https://arena.topcoder-dev.com",
30+
AUTH: "https://accounts-auth0.topcoder-dev.com",
31+
BASE: "https://www.topcoder-dev.com",
32+
HOME: "/my-dashboard",
33+
BLOG: "https://www.topcoder-dev.com/blog",
34+
BLOG_FEED: "https://www.topcoder.com/blog/feed/",
35+
COMMUNITY: "https://community.topcoder-dev.com",
36+
FORUMS: "https://apps.topcoder-dev.com/forums",
37+
FORUMS_VANILLA: "https://vanilla.topcoder-dev.com",
38+
HELP:
39+
"https://www.topcoder.com/thrive/tracks?track=Topcoder&tax=Help%20Articles",
40+
SUBMISSION_REVIEW: "https://submission-review.topcoder-dev.com",
41+
42+
THRIVE: "https://www.topcoder.com/thrive",
43+
44+
COMMUNITIES: {
45+
BLOCKCHAIN: "https://blockchain.topcoder-dev.com",
46+
COGNITIVE: "https://cognitive.topcoder-dev.com",
47+
ZURICH: "https://community-app.topcoder-dev.com/__community__/zurich",
48+
COMCAST: "https://community-app.topcoder-dev.com/__community__/comcast",
49+
CS: "https://community-app.topcoder-dev.com/__community__/cs",
50+
},
51+
52+
/* Dedicated section to group together links to various articles in
53+
* Topcoder help center. */
54+
INFO: {
55+
DESIGN_CHALLENGES:
56+
"http://help.topcoder.com/hc/en-us/categories/202610437-DESIGN",
57+
DESIGN_CHALLENGE_CHECKPOINTS:
58+
"https://help.topcoder.com/hc/en-us/articles/219240807-Multi-Round-Checkpoint-Design-Challenges",
59+
DESIGN_CHALLENGE_SUBMISSION:
60+
"http://help.topcoder.com/hc/en-us/articles/219122667-Formatting-Your-Submission-for-Design-Challenges",
61+
DESIGN_CHALLENGE_TYPES:
62+
"http://help.topcoder.com/hc/en-us/articles/217481388-Choosing-a-Design-Challenge",
63+
RELIABILITY_RATINGS_AND_BONUSES:
64+
"https://www.topcoder.com/thrive/articles/Development%20Reliability%20Ratings%20and%20Bonuses",
65+
STOCK_ART_POLICY:
66+
"http://help.topcoder.com/hc/en-us/articles/217481408-Policy-for-Stock-Artwork-in-Design-Submissions",
67+
STUDIO_FONTS_POLICY:
68+
"http://help.topcoder.com/hc/en-us/articles/217959447-Font-Policy-for-Design-Challenges",
69+
TOPCODER_TERMS: "https://www.topcoder.com/community/how-it-works/terms/",
70+
HOWTOCOMPETEINMARATHON:
71+
"https://www.topcoder.com/thrive/articles/How%20To%20Compete%20in%20a%20Marathon%20Match",
72+
USABLECODEDEV:
73+
"https://www.topcoder.com/thrive/articles/Usable%20Code%20in%20Dev%20Challenges",
74+
EXTENSIONVSCODE:
75+
"https://marketplace.visualstudio.com/items?itemName=Topcoder.topcoder-workflow&ssr=false#overview",
76+
TEMPLATES_REPO: "https://github.com/topcoder-platform-templates",
77+
},
78+
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+
90+
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",
97+
ABANDONMENT_EMBED:
98+
"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
101+
SUBDOMAIN_PROFILE_CONFIG: [
102+
{
103+
groupId: "20000000",
104+
communityId: "wipro",
105+
communityName: "topgear",
106+
userProfile: "https://topgear-app.wipro.com/user-details",
107+
},
108+
],
109+
},
110+
111+
// Config for TC EDU - THRIVE
112+
TC_EDU_BASE_PATH: "/thrive",
113+
TC_EDU_ARTICLES_PATH: "/articles",
114+
ENABLE_RECOMMENDER: true,
115+
116+
API: {
117+
V5: "https://api.topcoder-dev.com/v5", //"http://localhost:3030/api/v5"
118+
V4: "https://api.topcoder-dev.com/v4",
119+
V3: "https://api.topcoder-dev.com/v3",
120+
V2: "https://api.topcoder-dev.com/v2",
121+
},
122+
MOCK_TERMS_SERVICE: false,
123+
124+
AV_SCAN_SCORER_REVIEW_TYPE_ID: "55bbb17d-aac2-45a6-89c3-a8d102863d05",
125+
PROVISIONAL_SCORING_COMPLETED_REVIEW_TYPE_ID: "df51ca7d-fb0a-4147-9569-992fcf5aae48",
126+
PAGE_SIZE: 50,
127+
REVIEW_OPPORTUNITY_PAGE_SIZE: 1000,
128+
CONTENTFUL: {
129+
LOCAL_MODE: false,
130+
DEFAULT_SPACE_NAME: "default",
131+
DEFAULT_ENVIRONMENT: "master",
132+
},
2133
};

config/index.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
/* global process */
3+
4+
module.exports = (() => {
5+
const env = process.env.APPENV || "dev";
6+
7+
console.log(`APPENV: "${env}"`);
8+
9+
// for security reason don't let to require any arbitrary file defined in process.env
10+
if (["prod", "dev"].indexOf(env) < 0) {
11+
return require("./dev");
12+
}
13+
14+
return require("./" + env);
15+
})();

config/jest/setup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
const config = require("config");
1+
// const config = require("config");
22

3-
global.process.env = {...global.process.env, ...config};
3+
// global.process.env = {...global.process.env, ...config};

config/prod.js

Lines changed: 80 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,86 @@
11
module.exports = {
2-
API: {
3-
V5: "https://api.topcoder.com/v5",
4-
V3: "https://api.topcoder.com/v3",
2+
GUIKIT: {
3+
DEBOUNCE_ON_CHANGE_TIME: 150,
54
},
5+
/**
6+
* URL of Topcoder Community Website
7+
*/
8+
TOPCODER_COMMUNITY_WEBSITE_URL: "https://topcoder.com",
9+
10+
/* Max number of recommended challenges */
11+
CHALLENGE_DETAILS_MAX_NUMBER_RECOMMENDED_CHALLENGES: 3,
12+
/**
13+
* URL of Topcoder Connect Website
14+
*/
15+
SERVER_API_KEY: "aa9ccf36-3936-450c-9983-097ddba51bef",
16+
CONNECT_WEBSITE_URL: "https://connect.topcoder.com",
17+
618
URL: {
7-
BASE: "https://www.topcoder.com",
19+
ARENA: "https://arena.topcoder.com",
20+
APP: "https://community-app.topcoder.com",
21+
22+
/* This is the same value as above, but it is used by topcoder-react-lib,
23+
* as a more verbose name for the param. */
824
COMMUNITY_APP: "https://community-app.topcoder.com",
25+
26+
AUTH: "https://accounts-auth0.topcoder.com",
27+
BASE: "https://www.topcoder.com",
28+
HOME: "/my-dashboard",
29+
COMMUNITY: "https://community.topcoder.com",
30+
FORUMS: "https://apps.topcoder.com/forums",
31+
FORUMS_VANILLA: "https://discussions.topcoder.com",
32+
HELP:
33+
"https://www.topcoder.com/thrive/tracks?track=Topcoder&tax=Help%20Articles",
34+
SUBMISSION_REVIEW: "https://submission-review.topcoder.com",
35+
MEMBER: "https://member.topcoder.com",
36+
ONLINE_REVIEW: "https://software.topcoder.com",
37+
PAYMENT_TOOL: "https://payment.topcoder.com",
38+
STUDIO: "https://studio.topcoder.com",
39+
IOS: "https://ios.topcoder.com",
40+
41+
/* Connector URL of the TC accounts App. */
42+
ACCOUNTS_APP_CONNECTOR: "https://accounts-auth0.topcoder.com/",
43+
TCO17: "https://tco17.topcoder.com/",
44+
TCO19: "https://tco19.topcoder.com/",
45+
46+
TOPGEAR: "https://topgear-app.wipro.com",
47+
48+
COMMUNITY_API: "http://localhost:8000",
49+
50+
COMMUNITIES: {
51+
BLOCKCHAIN: "https://blockchain.topcoder.com",
52+
COGNITIVE: "https://cognitive.topcoder.com",
53+
ZURICH: "https://zurich.topcoder.com",
54+
COMCAST: "https://comcast.topcoder.com",
55+
CS: "https://cs.topcoder.com",
56+
},
57+
EMAIL_VERIFY_URL: "http://www.topcoder.com/settings/account/changeEmail",
58+
CAL_MODE: false,
59+
DEFAULT_SPACE_NAME: "default",
60+
DEFAULT_ENVIRONMENT: "master",
61+
},
62+
63+
// Config for TC EDU - THRIVE
64+
TC_EDU_BASE_PATH: "/thrive",
65+
TC_EDU_ARTICLES_PATH: "/articles",
66+
ENABLE_RECOMMENDER: true,
67+
68+
API: {
69+
V5: "https://api.topcoder.com/v5",
70+
V4: "https://api.topcoder-dev.com/v4",
71+
V3: "https://api.topcoder-dev.com/v3",
72+
V2: "https://api.topcoder-dev.com/v2",
73+
},
74+
75+
MOCK_TERMS_SERVICE: false,
76+
AV_SCAN_SCORER_REVIEW_TYPE_ID: "55bbb17d-aac2-45a6-89c3-a8d102863d05",
77+
PROVISIONAL_SCORING_COMPLETED_REVIEW_TYPE_ID: "df51ca7d-fb0a-4147-9569-992fcf5aae48",
78+
79+
PAGE_SIZE: 50,
80+
REVIEW_OPPORTUNITY_PAGE_SIZE: 1000,
81+
CONTENTFUL: {
82+
LOCAL_MODE: false,
83+
DEFAULT_SPACE_NAME: "default",
84+
DEFAULT_ENVIRONMENT: "master",
985
},
1086
};

0 commit comments

Comments
 (0)