Skip to content

Commit 54a851b

Browse files
authored
Merge pull request #4816 from topcoder-platform/feature-contentful
Feature contentful
2 parents 909d67d + 3eb6cec commit 54a851b

Some content is hidden

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

48 files changed

+1870
-14
lines changed

.circleci/config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,13 +230,14 @@ workflows:
230230
filters:
231231
branches:
232232
only:
233-
- develop
233+
- feature-contentful
234234
# This is alternate dev env for parallel testing
235235
- "build-test":
236236
context : org-global
237237
filters:
238238
branches:
239239
only:
240+
- feature-contentful
240241
- hot-fix
241242
# This is alternate dev env for parallel testing
242243
- "build-qa":
@@ -258,6 +259,7 @@ workflows:
258259
filters:
259260
branches:
260261
only:
262+
- feature-contentful
261263
- develop
262264
# Production builds are exectuted
263265
# when PR is merged to the master

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ ARG CONTENTFUL_EDU_PREVIEW_API_KEY
4343

4444
ARG FILESTACK_API_KEY
4545
ARG FILESTACK_SUBMISSION_CONTAINER
46+
ARG RECRUITCRM_API_KEY
4647

4748
# Credentials for Mailchimp service
4849
ARG MAILCHIMP_API_KEY
@@ -115,6 +116,7 @@ ENV CONTENTFUL_MANAGEMENT_TOKEN=$CONTENTFUL_MANAGEMENT_TOKEN
115116
ENV CONTENTFUL_EDU_SPACE_ID=$CONTENTFUL_EDU_SPACE_ID
116117
ENV CONTENTFUL_EDU_CDN_API_KEY=$CONTENTFUL_EDU_CDN_API_KEY
117118
ENV CONTENTFUL_EDU_PREVIEW_API_KEY=$CONTENTFUL_EDU_PREVIEW_API_KEY
119+
ENV RECRUITCRM_API_KEY=$RECRUITCRM_API_KEY
118120

119121
################################################################################
120122
# Testing and build of the application inside the container.

__tests__/shared/components/Header/__snapshots__/index.jsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ exports[`Default render 1`] = `
6262
"title": "Competitive Programming",
6363
},
6464
Object {
65-
"href": "/community/taas",
65+
"href": "/gigs",
6666
"title": "Gig Work",
6767
},
6868
Object {

build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ docker build -t $TAG \
4242
--build-arg TC_M2M_GRANT_TYPE=$TC_M2M_GRANT_TYPE \
4343
--build-arg CONTENTFUL_COMCAST_SPACE_ID=$CONTENTFUL_COMCAST_SPACE_ID \
4444
--build-arg CONTENTFUL_COMCAST_CDN_API_KEY=$CONTENTFUL_COMCAST_CDN_API_KEY \
45-
--build-arg CONTENTFUL_COMCAST_PREVIEW_API_KEY=$CONTENTFUL_COMCAST_PREVIEW_API_KEY .
45+
--build-arg CONTENTFUL_COMCAST_PREVIEW_API_KEY=$CONTENTFUL_COMCAST_PREVIEW_API_KEY \
46+
--build-arg RECRUITCRM_API_KEY=$RECRUITCRM_API_KEY .
4647

4748
# Copies "node_modules" from the created image, if necessary for caching.
4849
docker create --name app $TAG

config/custom-environment-variables.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ module.exports = {
9595
AUTH0_PROXY_SERVER_URL: 'TC_M2M_AUTH0_PROXY_SERVER_URL',
9696
TOKEN_CACHE_TIME: 'TOKEN_CACHE_TIME',
9797
},
98+
99+
RECRUITCRM_API_KEY: 'RECRUITCRM_API_KEY',
98100
},
99101
AUTH_CONFIG: {
100102
AUTH0_URL: 'TC_M2M_AUTH0_URL',

config/default.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@ module.exports = {
247247
AUTH0_URL: '',
248248
TOKEN_CACHE_TIME: '',
249249
},
250+
251+
RECRUITCRM_API_KEY: '',
250252
},
251253

252254
AUTH_CONFIG: {
@@ -312,7 +314,7 @@ module.exports = {
312314
},
313315
{
314316
title: 'Gig Work',
315-
href: '/community/taas',
317+
href: '/gigs',
316318
},
317319
{
318320
title: 'Practice',
@@ -406,4 +408,5 @@ module.exports = {
406408
TC_EDU_SEARCH_PATH: '/search',
407409
TC_EDU_SEARCH_BAR_MAX_RESULTS_EACH_GROUP: 3,
408410
POLICY_PAGES_PATH: '/policy',
411+
GIGS_PAGES_PATH: '/gigs',
409412
};

config/production.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ module.exports = {
115115
},
116116
{
117117
title: 'Gig Work',
118-
href: '/community/taas',
118+
href: '/gigs',
119119
},
120120
{
121121
title: 'Practice',

package-lock.json

Lines changed: 14 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
"react-infinite-scroller": "^1.1.4",
108108
"react-inlinesvg": "^0.8.4",
109109
"react-markdown": "^4.3.1",
110+
"react-paginate": "^6.3.2",
110111
"react-player": "^0.24.1",
111112
"react-redux": "^5.0.7",
112113
"react-redux-toastr": "^7.2.6",
Lines changed: 36 additions & 0 deletions
Loading
Lines changed: 26 additions & 0 deletions
Loading
Lines changed: 25 additions & 0 deletions
Loading
Lines changed: 26 additions & 0 deletions
Loading
Lines changed: 30 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)