Skip to content
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: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -171,4 +171,3 @@ RUN npm run build

EXPOSE 3000
CMD ["npm", "start"]

Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ exports[`Default render 1`] = `
"title": "All Challenges",
},
Object {
"href": "/community/arena",
"title": "Competitive Programming",
"href": "/engagements",
"title": "Engagements",
},
Object {
"href": "/gigs",
"title": "Gig Work",
"href": "/community/arena",
"title": "Competitive Programming",
},
Object {
"href": "/community/practice",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"submissions": [{
"id": 520456,
"submittedAt": "2017-12-02T11:57Z",
"status": "Active",
"status": "ACTIVE",
"score": 100.0,
"placement": 1,
"challengeId": 30060905,
Expand Down Expand Up @@ -172,7 +172,7 @@
}, {
"id": 520452,
"submittedAt": "2017-12-02T11:11Z",
"status": "Active",
"status": "ACTIVE",
"score": 100.0,
"placement": 1,
"challengeId": 30060903,
Expand Down Expand Up @@ -370,7 +370,7 @@
}, {
"id": 246093,
"submittedAt": "2017-11-25T13:36Z",
"status": "Active",
"status": "ACTIVE",
"score": 100.0,
"placement": 1,
"challengeId": 30060687,
Expand Down Expand Up @@ -700,7 +700,7 @@
}, {
"id": 245457,
"submittedAt": "2017-11-13T22:25Z",
"status": "Active",
"status": "ACTIVE",
"score": 100.0,
"placement": 1,
"challengeId": 30060425,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ exports[`SubtrackChallengeView matches shallow snapshot 1`] = `
"id": 520456,
"placement": 1,
"score": 100,
"status": "Active",
"status": "ACTIVE",
"submissionImage": null,
"submittedAt": "2017-12-02T11:57Z",
"type": "Contest Submission",
Expand Down Expand Up @@ -343,7 +343,7 @@ exports[`SubtrackChallengeView matches shallow snapshot 1`] = `
"id": 520452,
"placement": 1,
"score": 100,
"status": "Active",
"status": "ACTIVE",
"submissionImage": null,
"submittedAt": "2017-12-02T11:11Z",
"type": "Contest Submission",
Expand Down Expand Up @@ -723,7 +723,7 @@ exports[`SubtrackChallengeView matches shallow snapshot 1`] = `
"id": 246093,
"placement": 1,
"score": 100,
"status": "Active",
"status": "ACTIVE",
"submissionImage": null,
"submittedAt": "2017-11-25T13:36Z",
"type": "Contest Submission",
Expand Down Expand Up @@ -939,7 +939,7 @@ exports[`SubtrackChallengeView matches shallow snapshot 1`] = `
"id": 245457,
"placement": 1,
"score": 100,
"status": "Active",
"status": "ACTIVE",
"submissionImage": null,
"submittedAt": "2017-11-13T22:25Z",
"type": "Contest Submission",
Expand Down
18 changes: 5 additions & 13 deletions __tests__/shared/components/__snapshots__/Content.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1036,19 +1036,11 @@ exports[`Matches shallow shapshot 1`] = `
Thrive Articles Feed
</Link>

- Demo of Thrive Articles Feed component
<Link
replace={false}
to="/examples/gigs-feed"
>
Gigs Feed
</Link>

- Demo of Gigs Feed component
<Link
replace={false}
to="/examples/tco-leaderboards"
>
- Demo of Thrive Articles Feed component
<Link
replace={false}
to="/examples/tco-leaderboards"
>
TCO Leaderboards
</Link>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ exports[`Matches shallow shapshot 1 shapshot 1 1`] = `
<ChallengeTab
activeBucket="abc"
filterState={Object {}}
history={null}
location={Object {}}
previousBucketOfActiveTab={null}
previousBucketOfPastChallengesTab={null}
Expand Down Expand Up @@ -75,6 +76,7 @@ exports[`Matches shallow shapshot 2 shapshot 2 1`] = `
<ChallengeTab
activeBucket="abc"
filterState={Object {}}
history={null}
location={Object {}}
previousBucketOfActiveTab={null}
previousBucketOfPastChallengesTab={null}
Expand Down
2 changes: 0 additions & 2 deletions automated-smoke-test/config/automation-config-dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"howItWorks": "https://community-app.topcoder-dev.com/thrive/tracks?track=Topcoder",
"allChallenges": "http://community-app.topcoder-dev.com/challenges",
"competitiveProgramming": "https://community-app.topcoder-dev.com/community/arena",
"taas": "https://community-app.topcoder-dev.com/gigs",
"practice": "https://community-app.topcoder-dev.com/community/practice",
"competitiveProgrammingThrive": "https://community-app.topcoder-dev.com/thrive/tracks?track=Competitive%20Programming",
"dataScienceThrive": "https://community-app.topcoder-dev.com/thrive/tracks?track=Data%20Science&tax=",
Expand All @@ -42,7 +41,6 @@
"footerLinks": {
"allChallenges": "https://community-app.topcoder-dev.com/challenges",
"competitiveProgramming": "https://community-app.topcoder-dev.com/community/arena",
"taas": "https://community-app.topcoder-dev.com/gigs",
"competitiveProgrammingThrive": "https://community-app.topcoder-dev.com/thrive/tracks?track=Competitive%20Programming",
"dataScienceThrive": "https://community-app.topcoder-dev.com/thrive/tracks?track=Data%20Science",
"designThrive": "https://community-app.topcoder-dev.com/thrive/tracks?track=Design",
Expand Down
2 changes: 0 additions & 2 deletions automated-smoke-test/config/automation-config-local.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"howItWorks": "http://localhost:3000/thrive/tracks?track=Topcoder",
"allChallenges": "http://localhost:3000/challenges",
"competitiveProgramming": "http://localhost:3000/community/arena",
"taas": "http://localhost:3000/gigs",
"practice": "http://localhost:3000/community/practice",
"competitiveProgrammingThrive": "http://localhost:3000/thrive/tracks?track=Competitive%20Programming",
"dataScienceThrive": "http://localhost:3000/thrive/tracks?track=Data%20Science&tax=",
Expand All @@ -41,7 +40,6 @@
"footerLinks": {
"allChallenges": "http://localhost:3000/challenges",
"competitiveProgramming": "http://localhost:3000/community/arena",
"taas": "http://localhost:3000/gigs",
"competitiveProgrammingThrive": "http://localhost:3000/thrive/tracks?track=Competitive%20Programming",
"dataScienceThrive": "http://localhost:3000/thrive/tracks?track=Data%20Science",
"designThrive": "http://localhost:3000/thrive/tracks?track=Design",
Expand Down
2 changes: 0 additions & 2 deletions automated-smoke-test/config/automation-config-prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"howItWorks": "https://www.topcoder.com/thrive/tracks?track=Topcoder",
"allChallenges": "https://www.topcoder.com/challenges",
"competitiveProgramming": "https://www.topcoder.com/community/arena",
"taas": "https://www.topcoder.com/gigs",
"practice": "https://www.topcoder.com/community/practice",
"competitiveProgrammingThrive": "https://www.topcoder.com/thrive/tracks?track=Competitive%20Programming",
"dataScienceThrive": "https://www.topcoder.com/thrive/tracks?track=Data%20Science&tax=",
Expand All @@ -41,7 +40,6 @@
"footerLinks": {
"allChallenges": "https://www.topcoder.com/challenges",
"competitiveProgramming": "https://www.topcoder.com/community/arena",
"taas": "https://www.topcoder.com/gigs",
"competitiveProgrammingThrive": "https://www.topcoder.com/thrive/tracks?track=Competitive%20Programming",
"dataScienceThrive": "https://www.topcoder.com/thrive/tracks?track=Data%20Science",
"designThrive": "https://www.topcoder.com/thrive/tracks?track=Design",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ export class FooterConstants {
text: "Competitive Programming",
url: ConfigHelper.getFooterLink("competitiveProgramming"),
},
{
text: "Gig Work",
url: ConfigHelper.getFooterLink("taas"),
},
{
text: "Practice",
url: ConfigHelper.getFooterLink("practice"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ export class HeaderConstants {
isLoggedIn
),
},
{
text: 'Gig Work',
url: ConfigHelper.getSubMenuUrl('taas', isLoggedIn),
},
{
text: 'Practice',
url: ConfigHelper.getSubMenuUrl('practice', isLoggedIn),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class SettingsPageConstants {
public static getEmailPreferences() {
return [
'Pipeline',
'Gig Work',
'Engagements',
'Monthly Newsletter',
'Marathon Match Reminders',
'Single Round Match Reminders',
Expand Down
24 changes: 24 additions & 0 deletions bin/www
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,30 @@ require('babel-register')({
],
});

/* Provide globalThis in older Node runtimes (e.g. Node 10). */
if (typeof globalThis === 'undefined') {
global.globalThis = global;
}

/* Provide crypto.sign/crypto.verify in older Node runtimes (e.g. Node 10). */
const crypto = require('crypto');
if (typeof crypto.sign !== 'function') {
crypto.sign = (algorithm, data, key) => {
const signer = crypto.createSign(algorithm);
signer.update(data);
signer.end();
return signer.sign(key);
};
}
if (typeof crypto.verify !== 'function') {
crypto.verify = (algorithm, data, key, signature) => {
const verifier = crypto.createVerify(algorithm);
verifier.update(data);
verifier.end();
return verifier.verify(key, signature);
};
}

/* Provide TextEncoder/TextDecoder in older Node runtimes (e.g. Node 10). */
const { TextDecoder, TextEncoder } = require('util');
if (typeof global.TextEncoder === 'undefined') {
Expand Down
6 changes: 0 additions & 6 deletions config/backup-default.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,10 +338,6 @@ module.exports = {
title: 'Competitive Programming',
href: '/community/arena',
},
{
title: 'Gig Work',
href: '/gigs',
},
{
title: 'Practice',
href: '/community/practice',
Expand Down Expand Up @@ -444,8 +440,6 @@ module.exports = {
TC_EDU_SEARCH_PATH: '/search',
TC_EDU_SEARCH_BAR_MAX_RESULTS_EACH_GROUP: 3,
POLICY_PAGES_PATH: '/privacy',
GIGS_PAGES_PATH: '/gigs',
GIGS_LISTING_CACHE_TIME: 300, // in seconds
START_PAGE_PATH: '/start',
TC_ACADEMY_BASE_PATH: '/learn',
GUIKIT: {
Expand Down
12 changes: 6 additions & 6 deletions config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
V4: 'https://api.topcoder-dev.com/v4',
V5: 'https://api.topcoder-dev.com/v5',
V6: 'https://api.topcoder-dev.com/v6',
ENGAGEMENTS: 'https://api.topcoder-dev.com/v6/engagements/engagements',
MM_BROKER: '/api',
},

Expand Down Expand Up @@ -106,6 +107,7 @@ module.exports = {
COMMUNITY_APP: 'https://community-app.topcoder-dev.com',
CHALLENGES_URL: 'https://www.topcoder-dev.com/challenges',
COPILOTS_URL: 'https://copilots.topcoder-dev.com',
ENGAGEMENTS_APP: 'https://engagements.topcoder-dev.com',
TCO_OPEN_URL: 'https://www.topcoder-dev.com/community/member-programs/topcoder-open',
ARENA: 'https://arena.topcoder-dev.com',
AUTH: 'https://accounts-auth0.topcoder-dev.com',
Expand Down Expand Up @@ -337,12 +339,12 @@ module.exports = {
href: '/challenges',
},
{
title: 'Competitive Programming',
href: '/community/arena',
title: 'Engagements',
href: '/engagements',
},
{
title: 'Gig Work',
href: '/gigs',
title: 'Competitive Programming',
href: '/community/arena',
},
{
title: 'Practice',
Expand Down Expand Up @@ -446,8 +448,6 @@ module.exports = {
TC_EDU_SEARCH_PATH: '/search',
TC_EDU_SEARCH_BAR_MAX_RESULTS_EACH_GROUP: 3,
POLICY_PAGES_PATH: '/privacy',
GIGS_PAGES_PATH: '/gigs',
GIGS_LISTING_CACHE_TIME: 300, // in seconds
START_PAGE_PATH: '/start',
TC_ACADEMY_BASE_PATH: '/learn',
GUIKIT: {
Expand Down
4 changes: 4 additions & 0 deletions config/development.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
module.exports = {
SEGMENT_IO_API_KEY: 'QBtLgV8vCiuRX1lDikbMjcoe9aCHkF6n',
SERVER_API_KEY: '79b2d5eb-c1fd-42c4-9391-6b2c9780d591',
API: {
ENGAGEMENTS: 'https://api.topcoder-dev.com/v6/engagements/engagements',
},
URL: {
USER_SETTINGS: '', /* No dev server is available for saved searches */
ENGAGEMENTS_APP: 'https://engagements.topcoder-dev.com',
REVIEW_API_URL: '/reviewTypes',
},
PLATFORM_SITE_URL: 'https://platform.topcoder-dev.com',
Expand Down
10 changes: 6 additions & 4 deletions config/production.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module.exports = {
V4: 'https://api.topcoder.com/v4',
V5: 'https://api.topcoder.com/v5',
V6: 'https://api.topcoder.com/v6',
ENGAGEMENTS: 'https://api.topcoder.com/v6/engagements/engagements',
},
AUTH0: {
DOMAIN: 'topcoder.auth0.com',
Expand All @@ -28,6 +29,7 @@ module.exports = {
COMMUNITY_APP: 'https://community-app.topcoder.com',
CHALLENGES_URL: 'https://www.topcoder.com/challenges',
COPILOTS_URL: 'https://copilots.topcoder.com',
ENGAGEMENTS_APP: 'https://engagements.topcoder.com',
TCO_OPEN_URL: 'https://www.topcoder.com/community/member-programs/topcoder-open',

AUTH: 'https://accounts-auth0.topcoder.com',
Expand Down Expand Up @@ -128,12 +130,12 @@ module.exports = {
href: '/challenges?ref=nav',
},
{
title: 'Competitive Programming',
href: '/community/arena?ref=nav',
title: 'Engagements',
href: '/engagements?ref=nav',
},
{
title: 'Gig Work',
href: '/gigs?ref=nav',
title: 'Competitive Programming',
href: '/community/arena?ref=nav',
},
{
title: 'Practice',
Expand Down
4 changes: 4 additions & 0 deletions config/qa.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
module.exports = {
SEGMENT_IO_API_KEY: 'QBtLgV8vCiuRX1lDikbMjcoe9aCHkF6n',
SERVER_API_KEY: '79b2d5eb-c1fd-42c4-9391-6b2c9780d591',
API: {
ENGAGEMENTS: 'https://api.topcoder-qa.com/v6/engagements/engagements',
},
URL: {
USER_SETTINGS: '', /* No qa server is available for saved searches */
ENGAGEMENTS_APP: 'https://engagements.topcoder-qa.com',
},
PLATFORM_SITE_URL: 'https://platform.topcoder-qa.com',
PLATFORMUI_SITE_URL: 'https://platform-ui.topcoder-qa.com',
Expand Down
6 changes: 6 additions & 0 deletions config/test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
module.exports = {
SERVER_API_KEY: '79b2d5eb-c1fd-42c4-9391-6b2c9780d591',
API: {
ENGAGEMENTS: 'https://api.topcoder-dev.com/v6/engagements/engagements',
},
URL: {
ENGAGEMENTS_APP: 'https://engagements.topcoder-dev.com',
},
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
"supertest": "^3.1.0",
"tc-core-library-js": "github:topcoder-platform/tc-core-library-js#master",
"tc-ui": "^1.0.12",
"topcoder-react-lib": "github:topcoder-platform/topcoder-react-lib#develop",
"topcoder-react-lib": "github:topcoder-platform/topcoder-react-lib#v6",
"topcoder-react-ui-kit": "2.0.1",
"topcoder-react-utils": "github:topcoder-platform/topcoder-react-utils#v6",
"turndown": "^4.0.2",
Expand Down
Loading
Loading