add definitions
Gitea Actions Demo / build_and_push (push) Failing after 50s
Details
Gitea Actions Demo / build_and_push (push) Failing after 50s
Details
This commit is contained in:
parent
d12a39a243
commit
59aa7311c6
|
|
@ -0,0 +1,37 @@
|
|||
<script setup lang="ts">
|
||||
export type Attachment = {
|
||||
url: string;
|
||||
}
|
||||
export type WorkoutItem = {
|
||||
id: string;
|
||||
name: string;
|
||||
created_by: string;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
description: string;
|
||||
cadence: number;
|
||||
heart_rate: number;
|
||||
temperature: number;
|
||||
speed: number;
|
||||
power: number;
|
||||
duraion_sec: number;
|
||||
distantion: number;
|
||||
attachment: Attachment;
|
||||
latitude: number;
|
||||
longitude: number;
|
||||
}
|
||||
export const secondsToDuration = (seconds: number) => {
|
||||
var hours = Math.floor(seconds / 3600);
|
||||
var minutes = Math.floor((seconds % 3600) / 60);
|
||||
return `${hours} ч. ${minutes} мин.`;
|
||||
}
|
||||
|
||||
export const distConvert = (speed: number) => {
|
||||
return Math.round(speed/1000)
|
||||
}
|
||||
|
||||
export const speedConvert = (speed: number) => {
|
||||
return Math.round(speed*3.6)
|
||||
}
|
||||
|
||||
</script>
|
||||
Loading…
Reference in New Issue