diff --git a/nginx/vue/src/views/home/Gym2.vue b/nginx/vue/src/views/home/Gym2.vue new file mode 100644 index 0000000..df9a0a2 --- /dev/null +++ b/nginx/vue/src/views/home/Gym2.vue @@ -0,0 +1,267 @@ + + + + + Rowing + + + Loading... + + + {{ error }} + + + + + + {{ m.label }} + + + + + + + + + + + + + + + + + + + + {{ yl.label }} + + + {{ xl.label }} + + + + + + + + + {{ points[hovered].date.toLocaleDateString("en-GB", { day: "numeric", month: "short", year: "2-digit" }) }} + {{ formatValue(metric, points[hovered].value) }} + + + + + + + + {{ rows.length }} + sessions + + + {{ rows.reduce((s, r) => s + r.distance, 0).toLocaleString() }}m + total dist + + + {{ formatTime(rows.reduce((s, r) => s + r.timePer500m, 0) / (rows.length || 1)) }} + avg pace + + + + + + + diff --git a/nginx/vue/src/views/home/Home.vue b/nginx/vue/src/views/home/Home.vue index 0e7bebb..2ada004 100644 --- a/nginx/vue/src/views/home/Home.vue +++ b/nginx/vue/src/views/home/Home.vue @@ -17,7 +17,8 @@ import Links from "./Links.vue"; import Feed from "./Feed.vue"; import Collage from "./Collage.vue"; import Favorites from "./Favorites.vue"; -import Gym from "./Gym.vue"; +// import Gym from "./Gym.vue"; +import Gym2 from "./Gym2.vue"; import Consumption from "./Consumption.vue"; @@ -47,7 +48,8 @@ import Consumption from "./Consumption.vue"; - + +
Loading...
{{ error }}