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
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}],
["transform-assets", {
"extensions": ["gif", "jpeg", "jpg", "png"],
"name": "[hash].[ext]"
"name": "/images/[hash].[ext]"
}]
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,41 +53,33 @@ exports[`Matches shallow shapshot 1`] = `
"avatar": "src-shared-components-Leaderboard-___avatarStyles__default___1bHTz",
}
}
url="some.fake.string"
url={null}
/>
</span>
</td>
<td
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-handle___3Sr8G"
>
<a
href="https://www.topcoder-dev.com/members/overachieving.mofo/"
>
overachieving.mofo
</a>
href="https://www.topcoder-dev.com/members/undefined/"
/>
<div
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__winnings-info___1Fiyn"
>
<span>
9999999999
points
</span>
<span>
99999
challenges
</span>
</div>
</td>
<td
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-challenges___29htm"
>
99999
</td>
/>
<td
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-points___10Lis"
>
9999999999
</td>
/>
</tr>
<tr>
<td
Expand All @@ -110,41 +102,33 @@ exports[`Matches shallow shapshot 1`] = `
"avatar": "src-shared-components-Leaderboard-___avatarStyles__default___1bHTz",
}
}
url="some.fake.string"
url={null}
/>
</span>
</td>
<td
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-handle___3Sr8G"
>
<a
href="https://www.topcoder-dev.com/members/overachieving.mofo/"
>
overachieving.mofo
</a>
href="https://www.topcoder-dev.com/members/undefined/"
/>
<div
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__winnings-info___1Fiyn"
>
<span>
9999999999
points
</span>
<span>
99999
challenges
</span>
</div>
</td>
<td
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-challenges___29htm"
>
99999
</td>
/>
<td
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-points___10Lis"
>
9999999999
</td>
/>
</tr>
<tr>
<td
Expand All @@ -167,41 +151,33 @@ exports[`Matches shallow shapshot 1`] = `
"avatar": "src-shared-components-Leaderboard-___avatarStyles__default___1bHTz",
}
}
url="some.fake.string"
url={null}
/>
</span>
</td>
<td
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-handle___3Sr8G"
>
<a
href="https://www.topcoder-dev.com/members/overachieving.mofo/"
>
overachieving.mofo
</a>
href="https://www.topcoder-dev.com/members/undefined/"
/>
<div
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__winnings-info___1Fiyn"
>
<span>
9999999999
points
</span>
<span>
99999
challenges
</span>
</div>
</td>
<td
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-challenges___29htm"
>
99999
</td>
/>
<td
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-points___10Lis"
>
9999999999
</td>
/>
</tr>
<tr>
<td
Expand All @@ -224,41 +200,33 @@ exports[`Matches shallow shapshot 1`] = `
"avatar": "src-shared-components-Leaderboard-___avatarStyles__default___1bHTz",
}
}
url="some.fake.string"
url={null}
/>
</span>
</td>
<td
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-handle___3Sr8G"
>
<a
href="https://www.topcoder-dev.com/members/overachieving.mofo/"
>
overachieving.mofo
</a>
href="https://www.topcoder-dev.com/members/undefined/"
/>
<div
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__winnings-info___1Fiyn"
>
<span>
9999999999
points
</span>
<span>
99999
challenges
</span>
</div>
</td>
<td
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-challenges___29htm"
>
99999
</td>
/>
<td
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-points___10Lis"
>
9999999999
</td>
/>
</tr>
</tbody>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ exports[`Matches shallow shapshot 1`] = `
"avatar": "src-shared-components-Leaderboard-___avatarStyles__gold___1KUGN",
}
}
url="some.fake.string"
url={null}
/>
</span>
<div
Expand All @@ -27,20 +27,16 @@ exports[`Matches shallow shapshot 1`] = `
<div>
<a
className="src-shared-components-Leaderboard-PodiumSpot-___styles__profile-link___n7nJB"
href="https://www.topcoder-dev.com/members/overachieving.mofo/"
>
overachieving.mofo
</a>
href="https://www.topcoder-dev.com/members/undefined/"
/>
</div>
<div
className="src-shared-components-Leaderboard-PodiumSpot-___styles__winnings-info___2_pZP"
>
<span>
9999999999
points
</span>
<span>
99999
challenges
</span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ exports[`Default render 1`] = `
href="https://www.topcoder-dev.com"
>
<LogoTopcoderWithName
height={54}
width={156}
height={53}
width={135}
/>
</a>
<ul
Expand Down Expand Up @@ -71,6 +71,7 @@ exports[`Default render 1`] = `
</div>
<SubMenu
closeMenu={[Function]}
currentSubMenuTitle=""
menu={null}
trigger={null}
/>
Expand Down Expand Up @@ -194,8 +195,8 @@ exports[`Render with open menu 1`] = `
href="https://www.topcoder-dev.com"
>
<LogoTopcoderWithName
height={54}
width={156}
height={53}
width={135}
/>
</a>
<ul
Expand Down Expand Up @@ -253,6 +254,7 @@ exports[`Render with open menu 1`] = `
</div>
<SubMenu
closeMenu={[Function]}
currentSubMenuTitle=""
menu={
Object {
"items": Array [
Expand Down Expand Up @@ -387,8 +389,8 @@ exports[`Render with specified profile 1`] = `
href="https://www.topcoder-dev.com"
>
<LogoTopcoderWithName
height={54}
width={156}
height={53}
width={135}
/>
</a>
<ul
Expand Down Expand Up @@ -459,6 +461,7 @@ exports[`Render with specified profile 1`] = `
</div>
<SubMenu
closeMenu={[Function]}
currentSubMenuTitle=""
menu={null}
trigger={null}
/>
Expand Down
4 changes: 4 additions & 0 deletions __tests__/shared/components/TopcoderHeader/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ test('Default render', () => {
closeMenu={_.noop}
closeMobileMenu={_.noop}
closeSearch={_.noop}
currentNav={{}}
openMenu={_.noop}
openMobileMenu={_.noop}
openSearch={_.noop}
Expand All @@ -46,6 +47,7 @@ test('Render with open menu', () => {
closeMenu={_.noop}
closeMobileMenu={_.noop}
closeSearch={_.noop}
currentNav={{}}
openMenu={_.noop}
openedMenu={{
title: 'Menu Title',
Expand All @@ -68,6 +70,7 @@ test('Render with specified profile', () => {
closeMenu={_.noop}
closeMobileMenu={_.noop}
closeSearch={_.noop}
currentNav={{}}
openMenu={_.noop}
openMobileMenu={_.noop}
openSearch={_.noop}
Expand All @@ -91,6 +94,7 @@ describe('User input handling', () => {
closeMenu={mockCloseMenu}
closeMobileMenu={_.noop}
closeSearch={mockCloseSearch}
currentNav={{}}
openMenu={mockOpenMenu}
openMobileMenu={_.noop}
openSearch={mockOpenSearch}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ exports[`renders correctly 1`] = `
<img
alt="Loading..."
className="src-shared-components-LoadingIndicator-___styles__style___3RNHL"
src="2f402d440d802a10b7672b75897c47a5.gif"
src="/images/2f402d440d802a10b7672b75897c47a5.gif"
/>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ exports[`Snapshot match 1`] = `
</header>
<SubMenu
closeMenu={undefined}
currentSubMenuTitle=""
menu={null}
trigger={null}
/>
Expand Down Expand Up @@ -233,6 +234,7 @@ exports[`Snapshot match 2`] = `
</header>
<SubMenu
closeMenu={undefined}
currentSubMenuTitle=""
menu={null}
trigger={null}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ exports[`Matches shallow snapshot 1`] = `
openedMenu={null}
profile={Object {}}
searchOpened={false}
setCurrentNav={[Function]}
store={
Object {
"dispatch": [Function],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ exports[`Matches shapshot 1`] = `
],
}
}
setCurrentNav={[Function]}
store={
Object {
"dispatch": [Function],
Expand Down
4 changes: 3 additions & 1 deletion __tests__/shared/reducers/topcoder_header.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ function testReducer(reducer, istate) {
}

describe('Default reducer', () =>
testReducer(reducers.default, {}),
testReducer(reducers.default, {
currentNav: {},
}),
);

2 changes: 1 addition & 1 deletion config/webpack/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module.exports = {
loader: 'file-loader',
options: {
outputPath: '/images/',
publicPath: '/images/../',
publicPath: '',
},
}, {
test: /\.scss$/,
Expand Down
2 changes: 1 addition & 1 deletion src/server/tc-communities/tc-prod-dev/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
"url": "leaderboard"
}
],
"leaderboardApiUrl": "https://api.topcoder.com/v4/looks/412/run/json/"
"leaderboardApiUrl": "https://api.topcoder.com/v4/looks/458/run/json/"
}
2 changes: 1 addition & 1 deletion src/server/tc-communities/wipro/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"redirect": "https://ios.topcoder.com/",
"value": "3"
}],
"leaderboardApiUrl": "https://api.topcoder.com/v4/looks/0/run/json/",
"leaderboardApiUrl": "https://api.topcoder.com/v4/looks/458/run/json/",
"logos": [
"/themes/wipro/wipro-logo.png",
"/themes/wipro/logo_topcoder_with_name.svg"
Expand Down
Loading