Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Promoting to Prod (Members Subdomain and TCO17) #878

Merged
merged 35 commits into from
Sep 6, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
18f77e4
Made changes to preserve members subdomain
tladendo Aug 4, 2016
94fe90c
Fixed conditional check
tladendo Aug 5, 2016
0e8a525
Merge pull request #874 from appirio-tech/tom-membersub-fix-links
tladendo Aug 5, 2016
aa02868
Merge commit '0e8a525d6419a40bc098e5f4941cbb3dc73d78f0' into HEAD
Aug 5, 2016
c1447e2
Merge branch 'hotfix/use_released_version_accounts_app' into dev
Aug 12, 2016
a169aac
Merge commit 'c1447e23a25ced576c5e7a7ae619e5503b08bcba' into HEAD
Aug 12, 2016
8ae0207
Fix for link that won't load
tladendo Aug 15, 2016
3f4a765
deleted typo
tladendo Aug 15, 2016
8ed3459
fixed linting error
tladendo Aug 16, 2016
2810281
Merge pull request #875 from appirio-tech/tom-card-links
ajefts Aug 17, 2016
1d58e3d
Merge commit '2810281caaaddb4bed582337a4139f04e1df3952' into HEAD
Aug 17, 2016
69ac88c
generic tco icon for nav
ajefts Aug 31, 2016
3a67e21
Merge commit '69ac88c1587f5842aff49faa9f80d975350c5e11' into HEAD
Aug 31, 2016
f3a95f1
updating nav for tco17
Sep 1, 2016
44dab03
updating nav for tco17
Sep 1, 2016
2b9e4f6
just triggering another build
ajefts Sep 1, 2016
ee346b5
just triggering another build
ajefts Sep 1, 2016
ff2ca6c
bracket icon
ajefts Sep 1, 2016
3cf3f5b
changing link to generic tco page
ajefts Sep 1, 2016
bcca6f4
updated tco icon
ajefts Sep 1, 2016
b2beadc
just triggering another build
ajefts Sep 1, 2016
4bf51c1
updating yet another constant file for the TCO URL...
ajefts Sep 1, 2016
931981e
updating yet another constant file for the TCO URL...
ajefts Sep 1, 2016
4885859
updating yet another constant file for the TCO URL...
ajefts Sep 1, 2016
eae0ecd
submit 1 sep
mohhasbias Sep 1, 2016
7abac76
minor tweaks
tladendo Sep 1, 2016
2b5b300
Merge pull request #876 from appirio-tech/tom-tco17-banner
tladendo Sep 1, 2016
d02e650
Merge commit '2b5b3009a8538ec717fda4a2f780100d72a5f3f7' into HEAD
Sep 1, 2016
0a28a79
just triggering another build
ajefts Sep 2, 2016
a03f446
current favicon
ajefts Sep 2, 2016
5df5dab
updating with latest nav icons from Vic
ajefts Sep 2, 2016
e056f42
updated readme with test user account
ajefts Sep 2, 2016
676539c
Merge pull request #877 from appirio-tech/readme-update
ajefts Sep 2, 2016
263e0d3
adding more test users to readme
ajefts Sep 2, 2016
4c37b79
Merge commit '263e0d31be29812aabb3f5c6fb7e297e3e7ef663' into HEAD
Sep 2, 2016
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
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ In order to test a logged in user, you must make an entry in your `/etc/hosts` f
- To create the build: `npm run build`
- To run code linting: `npm run lint`
- To run the tests: `npm test`


## Test Users
- general member user accounts:
- ksmith/Topcoder123$
- dan_developer/dantopcoder123
- Create your own:
- You may register your own account at https://local.topcoder-dev.com/register

## Recommended Developer Tools

Syntax highlighting for ES6 and React JSX
Expand Down
5 changes: 5 additions & 0 deletions app/directives/challenge-links/challenge-links.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ import angular from 'angular'
scope: {
challenge: '=',
view: '='
},
link: function(scope, element, attrs) {
element.on('click', function() {
window.location.href = $(this).attr('href')
})
}
}
})
Expand Down
1 change: 1 addition & 0 deletions app/directives/ios-card/ios-card.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import angular from 'angular'
},
controller: ['$scope', 'CONSTANTS', function($scope, CONSTANTS) {
$scope.DOMAIN = CONSTANTS.domain
$scope.SUBDOMAIN = location.href.search('//members') >= 0 ? 'members' : 'www'
}]
}
})
Expand Down
6 changes: 3 additions & 3 deletions app/directives/ios-card/ios-card.jade
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@

header
.top
a.name(ng-href="https://www.{{DOMAIN}}/challenge-details/{{challenge.id}}/?type={{challenge.track}}") #[span {{challenge.name}}]
a.name(ng-href="https://{{SUBDOMAIN}}.{{DOMAIN}}/challenge-details/{{challenge.id}}/?type={{challenge.track}}") #[span {{challenge.name}}]

p.subtrack-color {{challenge.subTrack | underscoreStrip}}

.challenge-links
.stats
a.registrants(ng-href="https://www.{{DOMAIN}}/challenge-details/{{challenge.id}}/?type={{challenge.track}}#viewRegistrant")
a.registrants(ng-href="https://{{SUBDOMAIN}}.{{DOMAIN}}/challenge-details/{{challenge.id}}/?type={{challenge.track}}#viewRegistrant")
.registrants-icon

p {{challenge.numRegistrants}}

a.submissions(ng-href="https://www.{{DOMAIN}}/challenge-details/{{challenge.id}}/?type={{challenge.track}}#submissions")
a.submissions(ng-href="https://{{SUBDOMAIN}}.{{DOMAIN}}/challenge-details/{{challenge.id}}/?type={{challenge.track}}#submissions")
.submissions-icon

p {{challenge.numSubmissions}}
Expand Down
9 changes: 5 additions & 4 deletions app/filters/challengeLinks.filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ import _ from 'lodash'
} else {
data = {
domain: CONSTANTS.domain,
subdomain: location.href.search('//members') >= 0 ? 'members' : 'www',
track: challenge.track.toLowerCase(),
forumId: challenge.forumId,
id: challenge.id
Expand All @@ -61,13 +62,13 @@ import _ from 'lodash'
}
/*eslint no-fallthrough:0*/
case 'submissions':
return String.supplant('https://www.{domain}/challenge-details/{id}/?type={track}#submissions', data)
return String.supplant('https://{subdomain}.{domain}/challenge-details/{id}/?type={track}#submissions', data)
case 'registrants':
return String.supplant('https://www.{domain}/challenge-details/{id}/?type={track}#viewRegistrant', data)
return String.supplant('https://{subdomain}.{domain}/challenge-details/{id}/?type={track}#viewRegistrant', data)
case 'submit':// TODO use details link for submit, we can replace it with new submission page url
return String.supplant('https://www.{domain}/challenge-details/{id}/?type={track}', data)
return String.supplant('https://{subdomain}.{domain}/challenge-details/{id}/?type={track}', data)
case 'detail':
return String.supplant('https://www.{domain}/challenge-details/{id}/?type={track}', data)
return String.supplant('https://{subdomain}.{domain}/challenge-details/{id}/?type={track}', data)
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions app/my-dashboard/my-dashboard.jade
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@

//- .ttl
//- tc-banner(theme="black", banner-name="ttl")
.tco.tco17
.tc-banner-placeholder.black.bg-image
.title 2017 Topcoder Open
.subtitle The Ultimate Programming & Design tournament
.description Earn your way to the USA!
a(href="http://tco17.topcoder.com/").cta.tc-btn-white.tc-btn-radius Learn More

.tco
tc-banner(theme="black", banner-name="tco16")
Expand Down
2 changes: 1 addition & 1 deletion app/services/nav.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import angular from 'angular'
],
'community': [
{ 'sref': 'community.members', 'text': 'OVERVIEW', 'icon': require('../../assets/images/nav/members.svg') },
{ 'href': CONSTANTS.TCO16_URL, 'text': 'TCO16', 'icon': require('../../assets/images/nav/ico-tco16.svg'), 'target': '_blank' },
{ 'href': CONSTANTS.TCO_HOME_URL, 'text': 'TCO', 'icon': require('../../assets/images/nav/tco-generic.svg'), 'target': '_blank' },
{ 'href': '/community/member-programs/', 'text': 'PROGRAMS', 'icon': require('../../assets/images/nav/programs.svg') },
{ 'href': CONSTANTS.FORUMS_APP_URL, 'text': 'FORUMS', 'icon': require('../../assets/images/nav/forums.svg') },
{ 'sref': 'community.statistics', 'text': 'STATISTICS', 'icon': require('../../assets/images/nav/statistics.svg') },
Expand Down
2 changes: 2 additions & 0 deletions app/topcoder.constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ angular.module('CONSTANTS', []).constant('CONSTANTS', {
'PHOTO_LINK_LOCATION' : process.env.PHOTO_LINK_LOCATION,
'SWIFT_PROGRAM_URL' : process.env.SWIFT_PROGRAM_URL,
'TCO16_URL' : process.env.TCO16_URL,
'TCO17_URL' : process.env.TCO17_URL,
'TCO_HOME_URL' : process.env.TCO_HOME_URL,
'ACCOUNTS_APP_URL' : process.env.ACCOUNTS_APP_URL,
'FILE_PICKER_API_KEY' : process.env.FILE_PICKER_API_KEY,
'FILE_PICKER_SUBMISSION_CONTAINER_NAME': process.env.FILE_PICKER_SUBMISSION_CONTAINER_NAME,
Expand Down
46 changes: 46 additions & 0 deletions assets/css/directives/tc-banner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
$tco-color: #F47A20;
$tco-color-dark: #ea690b;

.tco17 {
margin-bottom: 10px;
}

.tc-banner-placeholder {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -113,6 +117,11 @@ $tco-color-dark: #ea690b;
color: $white;
}

.subtitle {
@extend .title;
@include sofia-pro-regular;
}

.description {
color: $white;
}
Expand All @@ -124,4 +133,41 @@ $tco-color-dark: #ea690b;
}
}
}

.tc-btn-white {
background-color: white;
color: #0096FF;
padding: 10px 20px;
margin-top: 5px;
}

.tc-btn-radius {
border-radius: 26px;
}
}
.tc-banner-placeholder.bg-image {
background-image: url(../../images/home-hero.jpg);
background-size: 100%;
height: 352px;
background-position: center 40%;
background-repeat: no-repeat;

padding-top: 50px;
padding-right: 350px;

.title {
font-size: 36px;
margin-bottom: 5px;
margin-top: 10px;
}

.subtitle {
margin-top: 20px;
width: 450px;
}

.cta {
margin-top: 20px;
}
}

1 change: 1 addition & 0 deletions assets/css/my-dashboard/my-dashboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
}
}


.challenges, .srms, .programs, .tco, .ttl, .community-updates {
padding-top: 0px;
}
Expand Down
Binary file added assets/images/home-hero.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 1 addition & 17 deletions assets/images/nav/blog.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 1 addition & 14 deletions assets/images/nav/book-cp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 1 addition & 21 deletions assets/images/nav/book-data.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 1 addition & 14 deletions assets/images/nav/book-design.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 1 addition & 17 deletions assets/images/nav/book-develop.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading