Skip to content

Commit

Permalink
Finish 7.0.0-beta.4
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaschampagne committed Apr 16, 2022
2 parents 087441d + 7571ff7 commit 3b74091
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 14 deletions.
4 changes: 2 additions & 2 deletions appcore/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion appcore/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elevate-sports-app",
"version": "7.0.0-beta.3",
"version": "7.0.0-beta.4",
"license": "MPL-2.0",
"scripts": {
"ng": "ng",
Expand Down
4 changes: 2 additions & 2 deletions desktop/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion desktop/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "elevate-sports-app",
"description": "Elevate your training experience and goals! Track your fitness and progressions over time. Analyse deeper your activities. And more...",
"version": "7.0.0-beta.3",
"version": "7.0.0-beta.4",
"scripts": {
"assert-app-exists": "node -e \"if ((require('fs').existsSync('./dist/app/')) === false) {console.log('Please run & wait for \\'npm start\\' task before.\\n\\n\\n\\n');process.exit(1);}\";",
"build:metadata": "node -e \"require('fs').writeFileSync('build_metadata.json', JSON.stringify({commit: require('child_process').execSync('git rev-parse HEAD').toString().trim(), date: new Date().toISOString()}));\"",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elevate-sports-app",
"version": "7.0.0-beta.3",
"version": "7.0.0-beta.4",
"description": "Wrap the needed tools required to cook Elevate desktop and web extension",
"maintainers": [
{
Expand Down
4 changes: 2 additions & 2 deletions webextension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"name": "Elevate for Strava",
"short_name": "Elevate",
"description": "Elevate your strava experience and goals! Track your fitness and progressions over time. Analyse deeper your activities. And more...",
"version": "7.0.0.3",
"version_name": "7.0.0-beta.3",
"version": "7.0.0.4",
"version_name": "7.0.0-4",
"background": {
"scripts": [
"extension/installer.bundle.js",
Expand Down
4 changes: 2 additions & 2 deletions webextension/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion webextension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elevate-sports-app",
"version": "7.0.0-beta.3",
"version": "7.0.0-beta.4",
"description": "Chrome based extension adding features for Strava website with new performances data and improved ergonomics.",
"maintainers": [
{
Expand Down
18 changes: 18 additions & 0 deletions webextension/scripts/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1156,6 +1156,24 @@ class Installer {
down: legacyActivity?.extendedStats?.gradeData?.upFlatDownMoveData?.down || null,
total: legacyActivity?.extendedStats?.gradeData?.upFlatDownMoveData?.total || null
},
slopePace: {
up:
legacyActivity?.extendedStats?.gradeData?.upFlatDownMoveData?.up > 0
? Math.round(3600 / legacyActivity?.extendedStats?.gradeData?.upFlatDownMoveData?.up)
: null,
flat:
legacyActivity?.extendedStats?.gradeData?.upFlatDownMoveData?.flat > 0
? Math.round(3600 / legacyActivity?.extendedStats?.gradeData?.upFlatDownMoveData?.flat)
: null,
down:
legacyActivity?.extendedStats?.gradeData?.upFlatDownMoveData?.down > 0
? Math.round(3600 / legacyActivity?.extendedStats?.gradeData?.upFlatDownMoveData?.down)
: null,
total:
legacyActivity?.extendedStats?.gradeData?.upFlatDownMoveData?.total > 0
? Math.round(3600 / legacyActivity?.extendedStats?.gradeData?.upFlatDownMoveData?.total)
: null
},
slopeDistance: {
up: legacyActivity?.extendedStats?.gradeData?.upFlatDownDistanceData?.up || null,
flat: legacyActivity?.extendedStats?.gradeData?.upFlatDownDistanceData?.flat || null,
Expand Down

0 comments on commit 3b74091

Please sign in to comment.