This repository has been archived by the owner on Aug 22, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First (pre-)release version, login works, only shows list of runs, no…
… export yet.
- Loading branch information
Showing
10 changed files
with
177 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Dependencies | ||
|
||
* [express](http://expressjs.com/) | ||
* [jade](http://jade-lang.com/) | ||
* [connect-memcached](https://github.com/balor/connect-memcached) | ||
* [queue-async](https://github.com/mbostock/queue) | ||
* [mysql](https://github.com/felixge/node-mysql) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,8 @@ div.logo { | |
|
||
div.nike-login { | ||
padding-top: 10px; | ||
} | ||
|
||
li.run { | ||
margin-top: .5em; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
extends layout | ||
|
||
block append main | ||
div.row | ||
div.span8 | ||
h1 Export | ||
|
||
p A list of your runs on Nike+ (only shows the 100 most recent for now): | ||
div#runs | ||
ul | ||
each run in activities | ||
li.run #{run.activity.name}, | ||
- var miles = (run.activity.metrics.totalDistance/1.609344).toFixed(2) | ||
- var kms = run.activity.metrics.totalDistance.toFixed(2) | ||
| #{miles} mi / #{kms} km in #{run.time}, #{run.activity.metrics.totalCalories} calories | ||
if run.activity.metrics.averageHeartRate > 0 | ||
i.icon-heart | ||
// p Checking for new runs ... | ||
// div#progressbar.progress.progress-striped.active | ||
// div.bar(style="width: 100%;") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,22 @@ | ||
extends layout | ||
|
||
block append content | ||
div.container | ||
div.row | ||
div.logo.span12 | ||
img(src='/img/header.png', width='820', height='110') | ||
div.row | ||
div.span8 | ||
h1 Welcome to #{title}! | ||
if (login) | ||
if (userID != 'nobody') | ||
p User #{userID} | ||
div.nike-login | ||
script(id="nikeoauth", | ||
data-clientid="54dff1e61f4ac4a56c98ad57ef3ed377", | ||
data-userid="#{userID}", | ||
src="https://www.nike.com/profile/assets/oauth/js/nikeoauth.min.js") | ||
div#runs | ||
else | ||
p This site is currently being rewritten from scratch to work with Nike's new authenticaton scheme and to make it easier to add more features later. Please | ||
a(href='http://blog.eagerfeet.org/') | ||
| check out the blog | ||
| or | ||
a(href='http://twitter.com/eagerfeet') | ||
| follow me on twitter | ||
| for updates. | ||
p The login issues are largely solved, but I am struggling with some other parts of the site's backend right now (and lack of time). I will post on the blog and on Twitter when the new site is ready for you to test. Please bear with me a few more days, the site will be back soon. | ||
block append main | ||
div.row | ||
div.logo.span12 | ||
img(src='/img/header.png', width='820', height='110') | ||
div.row | ||
div.span8 | ||
h1 Welcome to eagerfeet, Limited Preview Edition! | ||
p Please use the button below to log in using your Nike+ credentials. Once logged in, you will see a list of your most recent runs. You will not be able to actually export those runs at this point, but you will be in a few days. | ||
p For more details and updates, | ||
a(href='http://blog.eagerfeet.org/') | ||
| check out the blog | ||
| or | ||
a(href='http://twitter.com/eagerfeet') | ||
| follow me on twitter | ||
| . | ||
div.nike-login | ||
script(id="nikeoauth", | ||
data-clientid="54dff1e61f4ac4a56c98ad57ef3ed377", | ||
data-userid="nobody", | ||
src="https://www.nike.com/profile/assets/oauth/js/nikeoauth.min.js") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
extends layout | ||
|
||
block head | ||
block header | ||
meta(http-equiv='Refresh', content='0; url=#{redirectURL}') | ||
|
||
block content | ||
h1 Login successful, hooray! | ||
div.container | ||
h1 #{title} |