Skip to content

Commit 6faecd2

Browse files
authored
Merge pull request #105 from topcoder-platform/develop
misc improvements, content updates
2 parents fe3790a + ae11378 commit 6faecd2

File tree

98 files changed

+1651
-1014
lines changed

Some content is hidden

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

98 files changed

+1651
-1014
lines changed

.babelrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
}],
1818
["react-css-modules", {
1919
"filetypes": {
20-
".scss": "postcss-scss"
20+
".scss": {
21+
"syntax": "postcss-scss"
22+
}
2123
}
2224
}],
2325
["transform-assets", {

__tests__/client/index.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ document.getElementById = id =>
1212
(id === 'react-view' ? 'REACT-VIEW' : undefined);
1313

1414
window.CONFIG = {
15-
ACCOUNTS_APP_CONNECT_URL: 'https://dummy.url',
15+
URL: {
16+
ACCOUNTS_APP_CONNECT_URL: 'https://dummy.url',
17+
},
1618
COOKIES: {
1719
MAXAGE: 7,
1820
SECURE: false,

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ exports[`Default render 1`] = `
9797
},
9898
Object {
9999
"icon": <IconNavCP />,
100-
"link": "https://arena.topcoder-dev.com/",
100+
"link": "https://arena.topcoder-dev.com",
101101
"title": "Competitive Programming",
102102
},
103103
],
@@ -291,7 +291,7 @@ exports[`Render with open menu 1`] = `
291291
},
292292
Object {
293293
"icon": <IconNavCP />,
294-
"link": "https://arena.topcoder-dev.com/",
294+
"link": "https://arena.topcoder-dev.com",
295295
"title": "Competitive Programming",
296296
},
297297
],
@@ -487,7 +487,7 @@ exports[`Render with specified profile 1`] = `
487487
},
488488
Object {
489489
"icon": <IconNavCP />,
490-
"link": "https://arena.topcoder-dev.com/",
490+
"link": "https://arena.topcoder-dev.com",
491491
"title": "Competitive Programming",
492492
},
493493
],

__tests__/shared/components/examples/__snapshots__/Content.jsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ exports[`Matches shallow shapshot 1`] = `
106106
<ul>
107107
<li>
108108
<a
109-
href="/challenge/30050696/my-submissions"
109+
href="/challenges/30050696/my-submissions"
110110
>
111111
Submission Management Page
112112
</a>

__tests__/shared/components/tc-communities/__snapshots__/Banner.jsx.snap

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ exports[`Snapshot match 1`] = `
1111
"content": "src-shared-components-tc-communities-Banner-___style__content___21lXO",
1212
"contentBg": "src-shared-components-tc-communities-Banner-___style__contentBg___145Ln",
1313
"contentInner": "src-shared-components-tc-communities-Banner-___style__contentInner___3w8VH",
14-
"link": "src-shared-components-tc-communities-Banner-___style__link___2xUKc",
15-
"linkWrap": "src-shared-components-tc-communities-Banner-___style__linkWrap___3Lp77",
1614
"text": "src-shared-components-tc-communities-Banner-___style__text___-lkXi",
1715
"title": "src-shared-components-tc-communities-Banner-___style__title___GMY8V",
1816
}
@@ -37,8 +35,8 @@ exports[`Snapshot match 2`] = `
3735
"content": "src-shared-components-tc-communities-Banner-___style__content___21lXO content",
3836
"contentBg": "src-shared-components-tc-communities-Banner-___style__contentBg___145Ln contentBg",
3937
"contentInner": "src-shared-components-tc-communities-Banner-___style__contentInner___3w8VH contentInner",
40-
"link": "src-shared-components-tc-communities-Banner-___style__link___2xUKc link",
41-
"linkWrap": "src-shared-components-tc-communities-Banner-___style__linkWrap___3Lp77 linkWrap",
38+
"link": "link",
39+
"linkWrap": "linkWrap",
4240
"text": "src-shared-components-tc-communities-Banner-___style__text___-lkXi text",
4341
"title": "src-shared-components-tc-communities-Banner-___style__title___GMY8V title",
4442
}

__tests__/shared/components/tc-communities/__snapshots__/Header.jsx.snap

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,15 @@ exports[`Snapshot match 2`] = `
126126
<div
127127
className="tc-communities__header__logos src-shared-components-tc-communities-Header-___style__logos___38nqG"
128128
>
129-
<Link
129+
<Connect(RRLinkWrapper)
130130
className="tc-communities__header__logo src-shared-components-tc-communities-Header-___style__logo___z2xG6"
131-
replace={false}
132131
to="pageId1"
133132
>
134133
<img
135134
alt="Community logo"
136135
src="some/logo/url"
137136
/>
138-
</Link>
137+
</Connect(RRLinkWrapper)>
139138
</div>
140139
<div
141140
className="src-shared-components-tc-communities-Header-___style__challenge-dropdown___3fQW9"
@@ -171,38 +170,38 @@ exports[`Snapshot match 2`] = `
171170
<li
172171
className="tc-communities__header__menu-item src-shared-components-tc-communities-Header-___style__menu-item___2Ead6"
173172
>
174-
<NavLink
173+
<Connect(RRNavLinkWrapper)
175174
activeClassName="menu-link_active tc-communities__header__menu-link_active"
176175
className="tc-communities__header__menu-link src-shared-components-tc-communities-Header-___style__menu-link___1pPZf"
177176
isActive={[Function]}
178177
to="pageId1"
179178
>
180179
Menu Item 1
181-
</NavLink>
180+
</Connect(RRNavLinkWrapper)>
182181
</li>
183182
<li
184183
className="tc-communities__header__menu-item src-shared-components-tc-communities-Header-___style__menu-item___2Ead6"
185184
>
186-
<NavLink
185+
<Connect(RRNavLinkWrapper)
187186
activeClassName="menu-link_active tc-communities__header__menu-link_active"
188187
className="tc-communities__header__menu-link src-shared-components-tc-communities-Header-___style__menu-link___1pPZf"
189188
isActive={[Function]}
190189
to="pageId2"
191190
>
192191
Menu Item 2
193-
</NavLink>
192+
</Connect(RRNavLinkWrapper)>
194193
</li>
195194
<li
196195
className="tc-communities__header__menu-item src-shared-components-tc-communities-Header-___style__menu-item___2Ead6"
197196
>
198-
<NavLink
197+
<Connect(RRNavLinkWrapper)
199198
activeClassName="menu-link_active tc-communities__header__menu-link_active"
200199
className="tc-communities__header__menu-link src-shared-components-tc-communities-Header-___style__menu-link___1pPZf"
201200
isActive={[Function]}
202201
to="pageId3"
203202
>
204203
Menu Item 3
205-
</NavLink>
204+
</Connect(RRNavLinkWrapper)>
206205
</li>
207206
</ul>
208207
</div>

__tests__/shared/components/tc-communities/__snapshots__/Section.jsx.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
exports[`Snapshot match 1`] = `
44
<Section
5+
anchor={null}
56
link={null}
67
theme={
78
Object {
@@ -22,6 +23,7 @@ exports[`Snapshot match 1`] = `
2223

2324
exports[`Snapshot match 2`] = `
2425
<Section
26+
anchor={null}
2527
link={
2628
Object {
2729
"title": "link",

__tests__/shared/components/tc-communities/communities/demo-expert/__snapshots__/Home.jsx.snap

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ exports[`Snapshot match 1`] = `
1616
theme={Object {}}
1717
title="ACME Crowd"
1818
/>
19-
<Connect(GroupStatsContainer) />
19+
<Connect(CommunityStatsContainer) />
2020
<Connect(JoinCommunity) />
2121
<ThemedSection
22+
anchor={null}
2223
composeTheme="deeply"
2324
link={null}
2425
mapThemrProps={[Function]}
@@ -61,6 +62,7 @@ exports[`Snapshot match 1`] = `
6162
</div>
6263
</ThemedSection>
6364
<ThemedSection
65+
anchor={null}
6466
composeTheme="deeply"
6567
link={null}
6668
mapThemrProps={[Function]}

__tests__/shared/components/tc-communities/communities/demo-expert/__snapshots__/Learn.jsx.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ exports[`Snapshot match 1`] = `
1818
title="Learning & Certification"
1919
/>
2020
<ThemedSection
21+
anchor={null}
2122
composeTheme="deeply"
2223
link={null}
2324
mapThemrProps={[Function]}
@@ -205,6 +206,7 @@ exports[`Snapshot match 1`] = `
205206
</ThemedAccordion>
206207
</ThemedSection>
207208
<ThemedSection
209+
anchor={null}
208210
composeTheme="deeply"
209211
link={
210212
Object {
@@ -264,6 +266,7 @@ exports[`Snapshot match 1`] = `
264266
/>
265267
</ThemedSection>
266268
<ThemedSection
269+
anchor={null}
267270
composeTheme="deeply"
268271
link={null}
269272
mapThemrProps={[Function]}

__tests__/shared/components/tc-communities/communities/tc-prod-dev/__snapshots__/Home.jsx.snap

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ exports[`Snapshot match 1`] = `
1616
theme={Object {}}
1717
title="Topcoder Product Development Community"
1818
/>
19-
<Connect(GroupStatsContainer) />
19+
<Connect(CommunityStatsContainer) />
2020
<Connect(JoinCommunity) />
2121
<ThemedSection
22+
anchor={null}
2223
composeTheme="deeply"
2324
link={null}
2425
mapThemrProps={[Function]}
@@ -61,6 +62,7 @@ exports[`Snapshot match 1`] = `
6162
</div>
6263
</ThemedSection>
6364
<ThemedSection
65+
anchor={null}
6466
composeTheme="deeply"
6567
link={null}
6668
mapThemrProps={[Function]}

0 commit comments

Comments
 (0)