Skip to content

Commit feeab50

Browse files
committed
tweak for golive
1 parent f365cf0 commit feeab50

File tree

3 files changed

+2
-37
lines changed

3 files changed

+2
-37
lines changed

app.js

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -59,38 +59,6 @@ app.use(cookieParser());
5959
app.use(express.static(path.join(__dirname, 'public')));
6060
app.use(app.router);
6161

62-
function mockChallenges() {
63-
64-
function add(name, amount) {
65-
66-
var platforms = ['Salesforce'];
67-
var technologies = ['Lightning', 'Apex', 'JavaScript'];
68-
var today = new Date();
69-
70-
return {
71-
_type: 'develop',
72-
_source: {
73-
challengeId: 0,
74-
challengeName: name,
75-
platforms: platforms,
76-
technologies: technologies,
77-
totalPrize: amount,
78-
numRegistrants: Math.floor((Math.random() * 10) + 1),
79-
numSubmissions: Math.floor((Math.random() * 3) + 1),
80-
submissionEndDate: today.setDate(today.getDate() + Math.floor((Math.random() * 10) + 1))
81-
}
82-
};
83-
84-
}
85-
86-
var challenges = [];
87-
challenges.push(add('Hello Lightning!! Build Your First Lightning Component', 100));
88-
challenges.push(add('Lazy Loading Data TreeView App', 1000));
89-
challenges.push(add('Lead Conversion App', 1000));
90-
return challenges;
91-
92-
}
93-
9462
// fetches a list of challenges as json and exposes it to the ejs
9563
var challenges = function(req, res, next) {
9664
request(challengesEndpoint, function (error, response, body) {
@@ -102,7 +70,7 @@ var challenges = function(req, res, next) {
10270
challenges.push(c);
10371
}
10472
});
105-
req.challenges = mockChallenges();
73+
req.challenges = challenges;
10674
} else {
10775
req.challenges = [];
10876
}

views/partials/features.handlebars

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@
3939
<h3 class="title">Use existing web skills like JavaScript, HTML5 and CSS</h3>
4040
</div><!--//content-->
4141
</div><!--//item-->
42-
43-
4442
</div><!--//row-->
45-
4643
<div class="row">
4744

4845
<div class="item col-md-6 col-sm-6 col-xs-12 text-center">

views/partials/promo.handlebars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="row">
55
<div class="overview col-md-8 col-sm-12 col-xs-12">
66
<h2 class="title">Compete for $20,000 in prize money and build next generation UI components for Salesforce1</h2>
7-
<p style="font-size:18px;">Got a great idea for a component? Win money creating of the first open source custom components for Lightning! This challenge is wide open and we are paying extra prize money across the following categories for the coolest multi-component apps!</p>
7+
<p style="font-size:18px;">Got a great idea for a component? Win money creating of the first open source custom components for Lightning! Compete in our <a href="http://www.topcoder.com/challenge-details/30046440/?type=develop" target="_blank" class="white-link-underlined">Got Components - We want them!</a> challenge. This challenge is wide open and we are paying extra prize money across the following categories for the coolest multi-component apps!</p>
88
<ul class="summary">
99
<li>Social</li>
1010
<li>Location-based</li>

0 commit comments

Comments
 (0)