fix export
Gitea Actions Demo / build_and_push (push) Successful in 1m21s Details

This commit is contained in:
artem 2024-11-06 18:11:23 +03:00
parent 59aa7311c6
commit d0695a1c91
1 changed files with 13 additions and 12 deletions

View File

@ -1,4 +1,5 @@
<script setup lang="ts">
<script lang="ts">
export type Attachment = {
url: string;
}
@ -21,17 +22,17 @@
longitude: number;
}
export const secondsToDuration = (seconds: number) => {
var hours = Math.floor(seconds / 3600);
var minutes = Math.floor((seconds % 3600) / 60);
return `${hours} ч. ${minutes} мин.`;
}
let hours = Math.floor(seconds / 3600);
let minutes = Math.floor((seconds % 3600) / 60);
return `${hours} ч. ${minutes} мин.`;
}
export const distConvert = (speed: number) => {
return Math.round(speed/1000)
}
export const distConvert = (speed: number) => {
return Math.round(speed/1000)
}
export const speedConvert = (speed: number) => {
return Math.round(speed*3.6)
}
export const speedConvert = (speed: number) => {
return Math.round(speed*3.6)
}
export default {}
</script>