Skip to content

Challenge details page #28

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 13 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
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ workflows:
branches:
only:
- dev
- challenge-details-page

# Production builds are exectuted only on tagged commits to the
# master branch.
Expand Down
6 changes: 3 additions & 3 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ const config = {
}],
[
'inline-react-svg',
{
ignorePattern: '[/\/]assets[/\/]images'
}
// {
// ignorePattern: '[/\/]assets[/\/]images'
// }
],
[
"@babel/plugin-transform-runtime",
Expand Down
15 changes: 0 additions & 15 deletions config/default.js

This file was deleted.

131 changes: 131 additions & 0 deletions config/dev.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,133 @@
module.exports = {
GUIKIT: {
DEBOUNCE_ON_CHANGE_TIME: 150,
},
/**
* URL of Topcoder Community Website
*/
TOPCODER_COMMUNITY_WEBSITE_URL: "https://topcoder-dev.com",

/* Max number of recommended challenges */
CHALLENGE_DETAILS_MAX_NUMBER_RECOMMENDED_CHALLENGES: 3,
/**
* URL of Topcoder Connect Website
*/
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. */
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",
SUBMISSION_REVIEW: "https://submission-review.topcoder-dev.com",

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

COMMUNITIES: {
BLOCKCHAIN: "https://blockchain.topcoder-dev.com",
COGNITIVE: "https://cognitive.topcoder-dev.com",
ZURICH: "https://community-app.topcoder-dev.com/__community__/zurich",
COMCAST: "https://community-app.topcoder-dev.com/__community__/comcast",
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",
DESIGN_CHALLENGE_CHECKPOINTS:
"https://help.topcoder.com/hc/en-us/articles/219240807-Multi-Round-Checkpoint-Design-Challenges",
DESIGN_CHALLENGE_SUBMISSION:
"http://help.topcoder.com/hc/en-us/articles/219122667-Formatting-Your-Submission-for-Design-Challenges",
DESIGN_CHALLENGE_TYPES:
"http://help.topcoder.com/hc/en-us/articles/217481388-Choosing-a-Design-Challenge",
RELIABILITY_RATINGS_AND_BONUSES:
"https://www.topcoder.com/thrive/articles/Development%20Reliability%20Ratings%20and%20Bonuses",
STOCK_ART_POLICY:
"http://help.topcoder.com/hc/en-us/articles/217481408-Policy-for-Stock-Artwork-in-Design-Submissions",
STUDIO_FONTS_POLICY:
"http://help.topcoder.com/hc/en-us/articles/217959447-Font-Policy-for-Design-Challenges",
TOPCODER_TERMS: "https://www.topcoder.com/community/how-it-works/terms/",
HOWTOCOMPETEINMARATHON:
"https://www.topcoder.com/thrive/articles/How%20To%20Compete%20in%20a%20Marathon%20Match",
USABLECODEDEV:
"https://www.topcoder.com/thrive/articles/Usable%20Code%20in%20Dev%20Challenges",
EXTENSIONVSCODE:
"https://marketplace.visualstudio.com/items?itemName=Topcoder.topcoder-workflow&ssr=false#overview",
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",
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",
communityId: "wipro",
communityName: "topgear",
userProfile: "https://topgear-app.wipro.com/user-details",
},
],
},

// Config for TC EDU - THRIVE
TC_EDU_BASE_PATH: "/thrive",
TC_EDU_ARTICLES_PATH: "/articles",
ENABLE_RECOMMENDER: true,

API: {
V5: "https://api.topcoder-dev.com/v5", //"http://localhost:3030/api/v5"
V4: "https://api.topcoder-dev.com/v4",
V3: "https://api.topcoder-dev.com/v3",
V2: "https://api.topcoder-dev.com/v2",
},
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: {
LOCAL_MODE: false,
DEFAULT_SPACE_NAME: "default",
DEFAULT_ENVIRONMENT: "master",
},
};
15 changes: 15 additions & 0 deletions config/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

/* global process */

module.exports = (() => {
const env = process.env.APPENV || "dev";

console.log(`APPENV: "${env}"`);

// for security reason don't let to require any arbitrary file defined in process.env
if (["prod", "dev"].indexOf(env) < 0) {
return require("./dev");
}

return require("./" + env);
})();
4 changes: 2 additions & 2 deletions config/jest/setup.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const config = require("config");
// const config = require("config");

global.process.env = {...global.process.env, ...config};
// global.process.env = {...global.process.env, ...config};
84 changes: 80 additions & 4 deletions config/prod.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,86 @@
module.exports = {
API: {
V5: "https://api.topcoder.com/v5",
V3: "https://api.topcoder.com/v3",
GUIKIT: {
DEBOUNCE_ON_CHANGE_TIME: 150,
},
/**
* URL of Topcoder Community Website
*/
TOPCODER_COMMUNITY_WEBSITE_URL: "https://topcoder.com",

/* Max number of recommended challenges */
CHALLENGE_DETAILS_MAX_NUMBER_RECOMMENDED_CHALLENGES: 3,
/**
* URL of Topcoder Connect Website
*/
SERVER_API_KEY: "aa9ccf36-3936-450c-9983-097ddba51bef",
CONNECT_WEBSITE_URL: "https://connect.topcoder.com",

URL: {
BASE: "https://www.topcoder.com",
ARENA: "https://arena.topcoder.com",
APP: "https://community-app.topcoder.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.com",

AUTH: "https://accounts-auth0.topcoder.com",
BASE: "https://www.topcoder.com",
HOME: "/my-dashboard",
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",
MEMBER: "https://member.topcoder.com",
ONLINE_REVIEW: "https://software.topcoder.com",
PAYMENT_TOOL: "https://payment.topcoder.com",
STUDIO: "https://studio.topcoder.com",
IOS: "https://ios.topcoder.com",

/* Connector URL of the TC accounts App. */
ACCOUNTS_APP_CONNECTOR: "https://accounts-auth0.topcoder.com/",
TCO17: "https://tco17.topcoder.com/",
TCO19: "https://tco19.topcoder.com/",

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

COMMUNITY_API: "http://localhost:8000",

COMMUNITIES: {
BLOCKCHAIN: "https://blockchain.topcoder.com",
COGNITIVE: "https://cognitive.topcoder.com",
ZURICH: "https://zurich.topcoder.com",
COMCAST: "https://comcast.topcoder.com",
CS: "https://cs.topcoder.com",
},
EMAIL_VERIFY_URL: "http://www.topcoder.com/settings/account/changeEmail",
CAL_MODE: false,
DEFAULT_SPACE_NAME: "default",
DEFAULT_ENVIRONMENT: "master",
},

// Config for TC EDU - THRIVE
TC_EDU_BASE_PATH: "/thrive",
TC_EDU_ARTICLES_PATH: "/articles",
ENABLE_RECOMMENDER: true,

API: {
V5: "https://api.topcoder.com/v5",
V4: "https://api.topcoder-dev.com/v4",
V3: "https://api.topcoder-dev.com/v3",
V2: "https://api.topcoder-dev.com/v2",
},

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: {
LOCAL_MODE: false,
DEFAULT_SPACE_NAME: "default",
DEFAULT_ENVIRONMENT: "master",
},
};
Loading