Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
e1ec21d
Merge branch 'master' into checkpoint2
chandermani Nov 4, 2015
4e4fd77
Fixed path to rest image.
chandermani Nov 6, 2015
1ddd0ac
Fixed 2.1 checkpoint code.
chandermani Nov 19, 2015
ebe7bc2
Fixed 2.1 checkpoint code.
chandermani Nov 19, 2015
02c1d3f
Fixed checkpoint2.2 code.
chandermani Nov 19, 2015
dc49f37
Removed platform directive as refence in component.
chandermani Dec 5, 2015
f59a303
Added nav bar and fixed container style
chandermani Dec 8, 2015
4394205
Remove NgStyle import.
chandermani Dec 10, 2015
a6d6f7d
Added audio reference to exercise data.
chandermani Dec 13, 2015
b4a975e
Fixed readme and package urls
chandermani Dec 14, 2015
28f1ec4
Bumped Angular package.
chandermani Dec 15, 2015
8ad38c7
Upgraded to angular beta.
chandermani Dec 17, 2015
a2c08a9
Moved the index template to app component. Index now only has trainer…
chandermani Dec 23, 2015
9e9a3b5
Update to Angular 2.0.0-beta.14
kevinhennessy Apr 12, 2016
934ae95
Upgraded to Angular 2.0.0 beta 15
chandermani Apr 17, 2016
6febc35
Fixed SPA HTML5 mode. C'hanged gulp to use gulp-connect.
chandermani Apr 17, 2016
0d376c4
Adding back the missing reference to system.js
chandermani Apr 21, 2016
cea28f4
Upgraded to Angular 2 rc1
chandermani May 9, 2016
cd08a3e
Refactoring according to style guide.
chandermani May 10, 2016
ca76a70
Removed reference for deprecated router
chandermani May 17, 2016
5bfa4eb
Upgraded to angular rc2
chandermani Jun 18, 2016
1d9b7d8
Upgraded to angular rc4
chandermani Jul 1, 2016
d1e048f
Updated systemjs to support bundled umd files
chandermani Jul 9, 2016
7c4d139
Updated ES6 typing definition to use core-js
chandermani Jul 30, 2016
e8237a7
Update GuessTheNumber to RC4
kevinhennessy Aug 24, 2016
0f73b17
Removed extra router reference from systemjs.config.js
chandermani Aug 28, 2016
9e6379a
Update README.md
chandermani Aug 28, 2016
8d90476
Update README.md
chandermani Aug 28, 2016
aa968ca
Update README.md
chandermani Aug 31, 2016
91c67df
Upgrade GTN to final release
kevinhennessy Sep 16, 2016
2d14f2e
Upgraded to Angular 2.0.0. Added module for workout-runner
chandermani Aug 15, 2016
014d161
Replace npmcdn.com with unpkg.com
kevinhennessy Sep 19, 2016
b11a1f9
Removed the workout-runner.module, from current branch. Will be intro…
chandermani Sep 25, 2016
3c69241
Removed typings tool. Typings will come as npm package. Upgraded gulp…
chandermani Mar 9, 2017
6112b1a
Updated readme describing the new way to instal typings
chandermani Mar 15, 2017
35dae0f
lock dependency on types core js to 0 9 36
kevinhennessy Mar 27, 2017
75f5955
Merge remote-tracking branch 'origin/checkpoint2.2' into checkpoint2.2
kevinhennessy Mar 27, 2017
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
Prev Previous commit
Next Next commit
Fixed checkpoint2.2 code.
  • Loading branch information
chandermani committed Nov 22, 2015
commit 02c1d3f637a6e5502eab29d98dd29dbf4817e9b3
4 changes: 2 additions & 2 deletions trainer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"del": "^1.2.0",
"gulp": "^3.9.0",
"gulp-typescript": "^2.8.0",
"gulp-sourcemaps": "^1.6.0"
"gulp-sourcemaps": "^1.6.0",
"open": "0.0.5",
"serve-static": "^1.10.0",
"serve-static": "^1.10.0"
},
"dependencies": {
"angular2": "2.0.0-alpha.44",
Expand Down
8 changes: 1 addition & 7 deletions trainer/src/components/workout-runner/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,5 @@ export class Exercise {
public image: string,
public nameSound?: string,
public procedure?: string,
public related?: ExerciseRelated) {
}
}

export class ExerciseRelated {
constructor(public videos: string[]) {
}
public videos?: Array<string>) { }
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
<h1>{{currentExercise.exercise.title}}</h1>
<img class="img-responsive" [src]="'/static/images/' + currentExercise.exercise.image" />
<div class="progress time-progress">
<div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" [ng-style]="{'width':(exerciseRunningDuration/currentExercise.duration) * 100 + '%'}">
<div class="progress-bar" role="progressbar"
[attr.aria-valuenow]="exerciseRunningDuration" aria-valuemin="0" [attr.aria-valuemax]="currentExercise.duration"
[ng-style]="{'width':(exerciseRunningDuration/currentExercise.duration) * 100 + '%'}">
</div>
</div>
<h1>Time Remaining: {{currentExercise.duration-exerciseRunningDuration}}</h1>
Expand Down
26 changes: 13 additions & 13 deletions trainer/src/components/workout-runner/workout-runner.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Component, NgStyle} from 'angular2/angular2';
import {WorkoutPlan, ExercisePlan, Exercise, ExerciseRelated} from './model'
import {WorkoutPlan, ExercisePlan, Exercise} from './model'

@Component({
selector: 'workout-runner',
Expand Down Expand Up @@ -78,7 +78,7 @@ export class WorkoutRunner {
While in air, bring your legs out to the side about shoulder width or slightly wider.
As you are moving your legs outward, you should raise your arms up over your head; arms should be slightly bent throughout the entire in-air movement.
Your feet should land shoulder width or wider as your hands meet above your head with arms slightly bent`,
new ExerciseRelated(["//www.youtube.com/embed/dmYwZH_BNd0", "//www.youtube.com/embed/BABOdJ-2Z6o", "//www.youtube.com/embed/c4DAnQ6DtF8"])),
["dmYwZH_BNd0", "BABOdJ-2Z6o", "c4DAnQ6DtF8"]),
30));

workout.exercises.push(
Expand All @@ -91,7 +91,7 @@ export class WorkoutRunner {
"",
`Place your back against a wall with your feet shoulder width apart and a little ways out from the wall.
Then, keeping your back against the wall, lower your hips until your knees form right angles.`,
new ExerciseRelated(["//www.youtube.com/embed/y-wV4Venusw", "//www.youtube.com/embed/MMV3v4ap4ro"])),
["y-wV4Venusw", "MMV3v4ap4ro"]),
30));

workout.exercises.push(
Expand All @@ -105,7 +105,7 @@ export class WorkoutRunner {
`Lie prone on the ground with hands placed as wide or slightly wider than shoulder width.
Keeping the body straight, lower body to the ground by bending arms at the elbows.
Raise body up off the ground by extending the arms.`,
new ExerciseRelated(["//www.youtube.com/embed/Eh00_rniF8E", "//www.youtube.com/embed/ZWdBqFLNljc", "//www.youtube.com/embed/UwRLWMcOdwI", "//www.youtube.com/embed/ynPwl6qyUNM", "//www.youtube.com/embed/OicNTT2xzMI"])),
["Eh00_rniF8E", "ZWdBqFLNljc", "UwRLWMcOdwI", "ynPwl6qyUNM", "OicNTT2xzMI"]),
30));

workout.exercises.push(
Expand All @@ -122,7 +122,7 @@ export class WorkoutRunner {
Gently pull your abdominals inward.
Curl up and forward so that your head, neck, and shoulder blades lift off the floor.
Hold for a moment at the top of the movement and then lower slowly back down.`,
new ExerciseRelated(["//www.youtube.com/embed/Xyd_fa5zoEU", "//www.youtube.com/embed/MKmrqcoCZ-M"])),
["Xyd_fa5zoEU", "MKmrqcoCZ-M"]),
30));

workout.exercises.push(
Expand All @@ -137,7 +137,7 @@ export class WorkoutRunner {
Stand with your feet about hip width apart, arms at your sides.
Step up onto the seat with one foot, pressing down while bringing your other foot up next to it.
Step back with the leading foot and bring the trailing foot down to finish one step-up.`,
new ExerciseRelated(["//www.youtube.com/embed/aajhW7DD1EA"])),
["aajhW7DD1EA"]),
30));

workout.exercises.push(
Expand All @@ -153,7 +153,7 @@ export class WorkoutRunner {
Sit back and down like you're sitting into a chair. Keep your head facing straight as your upper body bends forward a bit. Rather than allowing your back to round, let your lower back arch slightly as you go down.
Lower down so your thighs are parallel to the floor, with your knees over your ankles. Press your weight back into your heels.
Keep your body tight, and push through your heels to bring yourself back to the starting position.`,
new ExerciseRelated(["//www.youtube.com/embed/QKKZ9AGYTi4", "//www.youtube.com/embed/UXJrBgI2RxA"])),
["QKKZ9AGYTi4", "UXJrBgI2RxA"]),
30));

workout.exercises.push(
Expand All @@ -168,7 +168,7 @@ export class WorkoutRunner {
Place your hands edges of the chair. Your palms should be down, fingertips pointing towards the floor.
Without moving your legs, bring your glutes forward off the chair.
Steadily lower yourself. When your elbows form 90 degrees angles, push yourself back up to starting position.`,
new ExerciseRelated(["//www.youtube.com/embed/tKjcgfu44sI", "//www.youtube.com/embed/jox1rb5krQI"])),
["tKjcgfu44sI", "jox1rb5krQI"]),
30));

workout.exercises.push(
Expand All @@ -183,7 +183,7 @@ export class WorkoutRunner {
Bend your elbows 90 degrees and rest your weight on your forearms.
Your elbows should be directly beneath your shoulders, and your body should form a straight line from head to feet.
Hold this position.`,
new ExerciseRelated(["//www.youtube.com/embed/pSHjTRCQxIw", "//www.youtube.com/embed/TvxNkmjdhMM"])),
["pSHjTRCQxIw", "TvxNkmjdhMM"]),
30));

workout.exercises.push(
Expand All @@ -196,7 +196,7 @@ export class WorkoutRunner {
"",
`Start standing with feet hip-width apart.
Do inplace jog with your knees lifting as much as possible towards your chest.`,
new ExerciseRelated(["//www.youtube.com/embed/OAJ_J3EZkdY", "//www.youtube.com/embed/8opcQdC-V-U"])),
["OAJ_J3EZkdY", "8opcQdC-V-U"]),
30));

workout.exercises.push(
Expand All @@ -209,7 +209,7 @@ export class WorkoutRunner {
"",
`Start standing with feet hip-width apart.
Do inplace jog with your knees lifting as much as possible towards your chest.`,
new ExerciseRelated(["//www.youtube.com/embed/Z2n58m2i4jg"])),
["Z2n58m2i4jg"]),
30));

workout.exercises.push(
Expand All @@ -222,7 +222,7 @@ export class WorkoutRunner {
"",
`Assume the classic pushup position, but as you come up, rotate your body so your right arm lifts up and extends overhead.
Return to the starting position, lower yourself, then push up and rotate till your left hand points toward the ceiling.`,
new ExerciseRelated(["//www.youtube.com/embed/qHQ_E-f5278"])),
["qHQ_E-f5278"]),
30));

workout.exercises.push(
Expand All @@ -237,7 +237,7 @@ export class WorkoutRunner {
Your elbow should be directly under your shoulder.
With your abdominals gently contracted, lift your hips off the floor, maintaining the line.
Keep your hips square and your neck in line with your spine. Hold the position.`,
new ExerciseRelated(["//www.youtube.com/embed/wqzrb67Dwf8", "//www.youtube.com/embed/_rdfjFSFKMY"])),
["wqzrb67Dwf8", "_rdfjFSFKMY"]),
30));

return workout;
Expand Down