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

Commit 9d93893

Browse files
authored
Merge pull request #929 from appirio-tech/tom-fix-build
Tom fix build
2 parents b4ebe65 + 59ba29d commit 9d93893

File tree

5 files changed

+19
-10
lines changed

5 files changed

+19
-10
lines changed

app/directives/challenge-links/challenge-links.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.challenge-links(ng-class="view + '-view'")
2-
a.registrants(ng-href="{{challenge|challengeLinks:'registrants'}}", ng-switch="challenge.subTrack")
2+
a.registrants(ng-href="{{challenge|challengeLinks:'registrants'}}", ng-switch="challenge.subTrack", target="_self")
33
.icon.registrants-icon
44
p(ng-switch-when="MARATHON_MATCH") {{challenge.numRegistrants[0]}}
55
p(ng-switch-default) {{challenge.numRegistrants}}
66

7-
a.submissions(ng-hide="challenge.track === 'DATA_SCIENCE'", ng-href="{{challenge|challengeLinks:'submissions'}}")
7+
a.submissions(ng-hide="challenge.track === 'DATA_SCIENCE'", ng-href="{{challenge|challengeLinks:'submissions'}}", target="_self")
88
.icon.submissions-icon
99
p {{challenge.numSubmissions}}
1010

app/my-challenges/my-challenges.controller.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,14 @@ import _ from 'lodash'
146146
vm.getChallenges(currentOffset, false)
147147
}
148148

149+
window.onscroll = function() {
150+
if ((window.innerHeight + window.scrollY) >= document.body.offsetHeight) {
151+
if (vm.totalCount > vm.myChallenges.length) {
152+
vm.loadMore()
153+
}
154+
}
155+
}
156+
149157
function _checkForParticipation() {
150158
return ChallengeService.checkChallengeParticipation(vm.handle, function(participated) {
151159
vm.neverParticipated = !participated

app/my-challenges/my-challenges.jade

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.my-challenges-container
22
.my-challenges
3-
3+
44
.page-header
55
page-state-header(handle="{{vm.handle}}", page-title="My Challenges", hide-money="true", show-back-link="true", default-state="dashboard")
66

@@ -26,10 +26,7 @@
2626

2727
.hasChallenges(ng-show="vm.myChallenges.length", state="vm.loading")
2828

29-
.data(ng-class="vm.view + '-view'")
29+
.data(ng-class="vm.view + '-view'")
3030
challenge-tile(
31-
ng-repeat="challenge in vm.myChallenges | orderBy:vm.orderBy:true",
31+
ng-repeat="challenge in vm.myChallenges | orderBy:vm.orderBy:true",
3232
challenge="challenge", view="vm.view", ng-class="vm.view + '-view'")
33-
34-
tc-section.load-more-section(state="vm.loading")
35-
button.tc-btn(ng-show="vm.totalCount > vm.myChallenges.length", ng-click="vm.loadMore()") Load More

assets/css/community/members.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@
6565
color: #a3a3ae;
6666
font-size: 12px;
6767
font-weight: 400;
68+
@media only screen and (max-width: 768px) {
69+
font-size: 5vw;
70+
}
6871
}
6972
}
7073

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"auth0-js": "^6.8.0",
6262
"d3": "^3.5.14",
6363
"font-awesome": "^4.5.0",
64+
"html-webpack-plugin": "^2.26.0",
6465
"intro.js": "^1.1.1",
6566
"jstimezonedetect": "^1.0.6",
6667
"lodash": "^4.5.0",
@@ -69,10 +70,10 @@
6970
"ng-dialog": "^0.5.6",
7071
"react-select": "1.0.0-beta8",
7172
"restangular": "^1.5.2",
73+
"tc-accounts": "https://github.com/appirio-tech/accounts-app.git#0.0.7",
7274
"tc-angular-ellipsis": "^0.1.6",
7375
"topcoder-app-r": "^1.0.0",
7476
"xml2js": "^0.4.16",
75-
"zepto": "1.0.1",
76-
"tc-accounts": "https://github.com/appirio-tech/accounts-app.git#0.0.7"
77+
"zepto": "1.0.1"
7778
}
7879
}

0 commit comments

Comments
 (0)