Skip to content

Commit 0f4ad63

Browse files
Merge pull request #6014 from topcoder-platform/jan-updates-2
Jan updates 2
2 parents 35ac4a0 + e1bdc27 commit 0f4ad63

File tree

9 files changed

+144
-18
lines changed

9 files changed

+144
-18
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ workflows:
363363
filters:
364364
branches:
365365
only:
366-
- jan-fixes-2
366+
- jan-updates-2
367367
# This is stage env for production QA releases
368368
- "build-prod-staging":
369369
context : org-global

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ exports[`Default render 1`] = `
130130
],
131131
"title": "Explore",
132132
},
133+
Object {
134+
"href": "https://discord.gg/topcoder",
135+
"openNewTab": true,
136+
"title": "Discord",
137+
},
133138
],
134139
"title": "COMMUNITY",
135140
},

__tests__/shared/components/__snapshots__/TopcoderFooter.jsx.snap

Lines changed: 93 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ exports[`Matches shallow shapshot 1`] = `
4646
>
4747
<a
4848
href="https://www.topcoder-dev.com/challenges"
49+
target="_self"
4950
>
5051
All Challenges
5152
</a>
@@ -55,6 +56,7 @@ exports[`Matches shallow shapshot 1`] = `
5556
>
5657
<a
5758
href="https://www.topcoder-dev.com/community/arena"
59+
target="_self"
5860
>
5961
Competitive Programming
6062
</a>
@@ -64,6 +66,7 @@ exports[`Matches shallow shapshot 1`] = `
6466
>
6567
<a
6668
href="https://www.topcoder-dev.com/gigs"
69+
target="_self"
6770
>
6871
Gig Work
6972
</a>
@@ -73,6 +76,7 @@ exports[`Matches shallow shapshot 1`] = `
7376
>
7477
<a
7578
href="https://www.topcoder-dev.com/community/practice"
79+
target="_self"
7680
>
7781
Practice
7882
</a>
@@ -98,6 +102,7 @@ exports[`Matches shallow shapshot 1`] = `
98102
>
99103
<a
100104
href="https://www.topcoder-dev.com/thrive/tracks?track=Competitive%20Programming"
105+
target="_self"
101106
>
102107
Competitive Programming
103108
</a>
@@ -107,6 +112,7 @@ exports[`Matches shallow shapshot 1`] = `
107112
>
108113
<a
109114
href="https://www.topcoder-dev.com/thrive/tracks?track=Data%20Science&tax="
115+
target="_self"
110116
>
111117
Data Science
112118
</a>
@@ -116,6 +122,7 @@ exports[`Matches shallow shapshot 1`] = `
116122
>
117123
<a
118124
href="https://www.topcoder-dev.com/thrive/tracks?track=Design&tax="
125+
target="_self"
119126
>
120127
Design
121128
</a>
@@ -125,6 +132,7 @@ exports[`Matches shallow shapshot 1`] = `
125132
>
126133
<a
127134
href="https://www.topcoder-dev.com/thrive/tracks?track=Development&tax="
135+
target="_self"
128136
>
129137
Development
130138
</a>
@@ -134,6 +142,7 @@ exports[`Matches shallow shapshot 1`] = `
134142
>
135143
<a
136144
href="https://www.topcoder-dev.com/thrive/tracks?track=QA&tax="
145+
target="_self"
137146
>
138147
QA
139148
</a>
@@ -159,6 +168,7 @@ exports[`Matches shallow shapshot 1`] = `
159168
>
160169
<a
161170
href="https://www.topcoder-dev.com/blog"
171+
target="_self"
162172
>
163173
Blog
164174
</a>
@@ -168,6 +178,7 @@ exports[`Matches shallow shapshot 1`] = `
168178
>
169179
<a
170180
href="https://www.topcoder-dev.com/community/events"
181+
target="_self"
171182
>
172183
Events Calendar
173184
</a>
@@ -177,6 +188,7 @@ exports[`Matches shallow shapshot 1`] = `
177188
>
178189
<a
179190
href="https://vanilla.topcoder-dev.com"
191+
target="_self"
180192
>
181193
Forums
182194
</a>
@@ -186,6 +198,7 @@ exports[`Matches shallow shapshot 1`] = `
186198
>
187199
<a
188200
href="https://www.topcoder-dev.com/community/member-programs"
201+
target="_self"
189202
>
190203
Programs
191204
</a>
@@ -195,6 +208,7 @@ exports[`Matches shallow shapshot 1`] = `
195208
>
196209
<a
197210
href="https://www.topcoder-dev.com/community/statistics"
211+
target="_self"
198212
>
199213
Statistics
200214
</a>
@@ -204,6 +218,7 @@ exports[`Matches shallow shapshot 1`] = `
204218
>
205219
<a
206220
href="https://www.topcoder-dev.com/community/member-programs/topcoder-open"
221+
target="_self"
207222
>
208223
TCO
209224
</a>
@@ -213,10 +228,21 @@ exports[`Matches shallow shapshot 1`] = `
213228
>
214229
<a
215230
href="https://www.topcoder-dev.com/thrive"
231+
target="_self"
216232
>
217233
Thrive
218234
</a>
219235
</li>
236+
<li
237+
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
238+
>
239+
<a
240+
href="https://discord.gg/topcoder"
241+
target="_blank"
242+
>
243+
Discord
244+
</a>
245+
</li>
220246
</ul>
221247
</div>
222248
<div
@@ -238,6 +264,7 @@ exports[`Matches shallow shapshot 1`] = `
238264
>
239265
<a
240266
href="https://www.topcoder-dev.com/thrive/tracks?track=Topcoder&tax=Getting%20Paid"
267+
target="_self"
241268
>
242269
Getting Paid
243270
</a>
@@ -247,6 +274,7 @@ exports[`Matches shallow shapshot 1`] = `
247274
>
248275
<a
249276
href="https://www.topcoder-dev.com/thrive/tracks?track=Topcoder&tax=FAQ"
277+
target="_self"
250278
>
251279
FAQ
252280
</a>
@@ -256,6 +284,7 @@ exports[`Matches shallow shapshot 1`] = `
256284
>
257285
<a
258286
href="https://www.topcoder-dev.com/thrive/tracks?track=Topcoder"
287+
target="_self"
259288
>
260289
General Info
261290
</a>
@@ -265,6 +294,7 @@ exports[`Matches shallow shapshot 1`] = `
265294
>
266295
<a
267296
href="mailto:[email protected]"
297+
target="_self"
268298
>
269299
Website Help
270300
</a>
@@ -285,20 +315,12 @@ exports[`Matches shallow shapshot 1`] = `
285315
<ul
286316
className="src-shared-components-TopcoderFooter-___style__navi-col-links___CFs95"
287317
>
288-
<li
289-
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
290-
>
291-
<a
292-
href="https://www.topcoder-dev.com/community/admins"
293-
>
294-
Admins
295-
</a>
296-
</li>
297318
<li
298319
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
299320
>
300321
<a
301322
href="https://www.topcoder-dev.com/community/contact"
323+
target="_self"
302324
>
303325
Contact Us
304326
</a>
@@ -308,6 +330,7 @@ exports[`Matches shallow shapshot 1`] = `
308330
>
309331
<a
310332
href="https://accounts-auth0.topcoder-dev.com?utm_source=community&utm_campaign=tc-footer&utm_medium=promotion&retUrl="
333+
target="_self"
311334
>
312335
Join Community
313336
</a>
@@ -317,6 +340,7 @@ exports[`Matches shallow shapshot 1`] = `
317340
>
318341
<a
319342
href="https://www.topcoder-dev.com/community/learn"
343+
target="_self"
320344
>
321345
About Community
322346
</a>
@@ -326,6 +350,7 @@ exports[`Matches shallow shapshot 1`] = `
326350
>
327351
<a
328352
href="https://www.topcoder-dev.com/community/changelog"
353+
target="_self"
329354
>
330355
Changelog
331356
</a>
@@ -335,6 +360,7 @@ exports[`Matches shallow shapshot 1`] = `
335360
>
336361
<a
337362
href="https://www.topcoder-dev.com/contact-us/"
363+
target="_self"
338364
>
339365
Talk to Sales
340366
</a>
@@ -445,6 +471,34 @@ exports[`Matches shallow shapshot 1`] = `
445471
/>
446472
</svg>
447473
</a>
474+
<a
475+
href="https://discord.gg/topcoder"
476+
rel="noopener noreferrer"
477+
target="_blank"
478+
>
479+
<svg
480+
height="24"
481+
viewBox="0 0 24 24"
482+
width="24"
483+
xmlns="http://www.w3.org/2000/svg"
484+
>
485+
<title>
486+
Join Topcoder Discord
487+
</title>
488+
<g
489+
fill="#AAA"
490+
fillRule="evenodd"
491+
>
492+
<path
493+
d="M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10S2 17.514 2 12 6.486 2 12 2zm0-2C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0z"
494+
/>
495+
<path
496+
d="M17.005 7.829A10.65 10.65 0 0 0 14.359 7a.04.04 0 0 0-.043.02c-.114.205-.24.473-.33.683a9.808 9.808 0 0 0-2.971 0 6.938 6.938 0 0 0-.335-.683.042.042 0 0 0-.042-.02 10.62 10.62 0 0 0-2.646.828.038.038 0 0 0-.018.015c-1.685 2.541-2.147 5.02-1.92 7.467a.045.045 0 0 0 .017.031 10.742 10.742 0 0 0 3.246 1.656.042.042 0 0 0 .045-.015c.25-.345.473-.708.664-1.09a.042.042 0 0 0-.022-.058 7.07 7.07 0 0 1-1.014-.488.042.042 0 0 1-.004-.07c.068-.05.136-.105.201-.159a.04.04 0 0 1 .042-.005c2.128.98 4.431.98 6.533 0a.04.04 0 0 1 .043.005c.065.054.133.108.202.16a.042.042 0 0 1-.004.07c-.324.19-.66.352-1.014.487a.042.042 0 0 0-.022.058c.195.382.418.745.663 1.09.01.014.029.02.046.015a10.707 10.707 0 0 0 3.251-1.656.042.042 0 0 0 .017-.03c.271-2.83-.454-5.288-1.922-7.467a.033.033 0 0 0-.017-.016zm-6.483 5.642c-.62 0-1.13-.528-1.13-1.177 0-.648.5-1.176 1.13-1.176.634 0 1.14.532 1.13 1.176 0 .649-.5 1.177-1.13 1.177zm3.956 0c-.62 0-1.13-.528-1.13-1.177 0-.648.5-1.176 1.13-1.176.635 0 1.14.532 1.13 1.176 0 .649-.495 1.177-1.13 1.177z"
497+
fillRule="nonzero"
498+
/>
499+
</g>
500+
</svg>
501+
</a>
448502
</div>
449503
</div>
450504
</div>
@@ -486,9 +540,9 @@ exports[`Matches shallow shapshot 1`] = `
486540
className="src-shared-components-TopcoderFooter-___style__mobile-navi-col___3BcW4"
487541
>
488542
<a
489-
href="https://www.topcoder-dev.com/community/admins"
543+
href="https://www.topcoder-dev.com/community/contact"
490544
>
491-
ABOUT
545+
Contact Us
492546
</a>
493547
</div>
494548
</div>
@@ -585,6 +639,34 @@ exports[`Matches shallow shapshot 1`] = `
585639
/>
586640
</svg>
587641
</a>
642+
<a
643+
href="https://discord.gg/topcoder"
644+
rel="noopener noreferrer"
645+
target="_blank"
646+
>
647+
<svg
648+
height="24"
649+
viewBox="0 0 24 24"
650+
width="24"
651+
xmlns="http://www.w3.org/2000/svg"
652+
>
653+
<title>
654+
Join Topcoder Discord
655+
</title>
656+
<g
657+
fill="#AAA"
658+
fillRule="evenodd"
659+
>
660+
<path
661+
d="M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10S2 17.514 2 12 6.486 2 12 2zm0-2C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0z"
662+
/>
663+
<path
664+
d="M17.005 7.829A10.65 10.65 0 0 0 14.359 7a.04.04 0 0 0-.043.02c-.114.205-.24.473-.33.683a9.808 9.808 0 0 0-2.971 0 6.938 6.938 0 0 0-.335-.683.042.042 0 0 0-.042-.02 10.62 10.62 0 0 0-2.646.828.038.038 0 0 0-.018.015c-1.685 2.541-2.147 5.02-1.92 7.467a.045.045 0 0 0 .017.031 10.742 10.742 0 0 0 3.246 1.656.042.042 0 0 0 .045-.015c.25-.345.473-.708.664-1.09a.042.042 0 0 0-.022-.058 7.07 7.07 0 0 1-1.014-.488.042.042 0 0 1-.004-.07c.068-.05.136-.105.201-.159a.04.04 0 0 1 .042-.005c2.128.98 4.431.98 6.533 0a.04.04 0 0 1 .043.005c.065.054.133.108.202.16a.042.042 0 0 1-.004.07c-.324.19-.66.352-1.014.487a.042.042 0 0 0-.022.058c.195.382.418.745.663 1.09.01.014.029.02.046.015a10.707 10.707 0 0 0 3.251-1.656.042.042 0 0 0 .017-.03c.271-2.83-.454-5.288-1.922-7.467a.033.033 0 0 0-.017-.016zm-6.483 5.642c-.62 0-1.13-.528-1.13-1.177 0-.648.5-1.176 1.13-1.176.634 0 1.14.532 1.13 1.176 0 .649-.5 1.177-1.13 1.177zm3.956 0c-.62 0-1.13-.528-1.13-1.177 0-.648.5-1.176 1.13-1.176.635 0 1.14.532 1.13 1.176 0 .649-.495 1.177-1.13 1.177z"
665+
fillRule="nonzero"
666+
/>
667+
</g>
668+
</svg>
669+
</a>
588670
</div>
589671
<div
590672
className="src-shared-components-TopcoderFooter-___style__bottom___JLB31"

config/default.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,11 @@ module.exports = {
405405
},
406406
],
407407
},
408+
{
409+
title: 'Discord',
410+
href: 'https://discord.gg/topcoder',
411+
openNewTab: true,
412+
},
408413
],
409414
},
410415
],

config/production.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,11 @@ module.exports = {
186186
},
187187
],
188188
},
189+
{
190+
title: 'Discord',
191+
href: 'https://discord.gg/topcoder',
192+
openNewTab: true,
193+
},
189194
],
190195
},
191196
],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"money": "^0.2.0",
9191
"morgan": "^1.9.0",
9292
"multer": "^1.4.2",
93-
"navigation-component": "github:topcoder-platform/navigation-component#develop",
93+
"navigation-component": "github:topcoder-platform/navigation-component#level2-new-tab",
9494
"navigation-component-tco": "github:topcoder-platform/navigation-component-tco#new-dev",
9595
"node-cache": "^5.1.2",
9696
"node-forge": "^0.7.5",

src/shared/components/Contentful/ContentSlider/ContentSlider.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class ContentSlider extends Component {
4949
className={theme.controlLeft}
5050
>
5151
{arrowRightImage && <img src={arrowRightImage.fields.file.url} alt="Slider left arrow" />}
52-
{!arrowRightImage && (arrowTheme === 'Gray' ? <GrayArrowNext /> : <WhiteArrowNext />)}
52+
{!arrowRightImage && (arrowTheme === 'Gray' ? <GrayArrowPrev /> : <WhiteArrowPrev />)}
5353
</a>
5454
),
5555
renderCenterRightControls: ({ nextSlide }) => (
@@ -61,7 +61,7 @@ class ContentSlider extends Component {
6161
className={theme.controlRight}
6262
>
6363
{arrowLeftImage && <img src={arrowLeftImage.fields.file.url} alt="Slider right arrow" />}
64-
{!arrowLeftImage && (arrowTheme === 'Gray' ? <GrayArrowPrev /> : <WhiteArrowPrev />)}
64+
{!arrowLeftImage && (arrowTheme === 'Gray' ? <GrayArrowNext /> : <WhiteArrowNext />)}
6565
</a>
6666
),
6767
};

0 commit comments

Comments
 (0)