fix export
Gitea Actions Demo / build_and_push (push) Successful in 1m21s
Details
Gitea Actions Demo / build_and_push (push) Successful in 1m21s
Details
This commit is contained in:
parent
59aa7311c6
commit
d0695a1c91
|
|
@ -1,4 +1,5 @@
|
||||||
<script setup lang="ts">
|
<script lang="ts">
|
||||||
|
|
||||||
export type Attachment = {
|
export type Attachment = {
|
||||||
url: string;
|
url: string;
|
||||||
}
|
}
|
||||||
|
|
@ -21,17 +22,17 @@
|
||||||
longitude: number;
|
longitude: number;
|
||||||
}
|
}
|
||||||
export const secondsToDuration = (seconds: number) => {
|
export const secondsToDuration = (seconds: number) => {
|
||||||
var hours = Math.floor(seconds / 3600);
|
let hours = Math.floor(seconds / 3600);
|
||||||
var minutes = Math.floor((seconds % 3600) / 60);
|
let minutes = Math.floor((seconds % 3600) / 60);
|
||||||
return `${hours} ч. ${minutes} мин.`;
|
return `${hours} ч. ${minutes} мин.`;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const distConvert = (speed: number) => {
|
export const distConvert = (speed: number) => {
|
||||||
return Math.round(speed/1000)
|
return Math.round(speed/1000)
|
||||||
}
|
}
|
||||||
|
|
||||||
export const speedConvert = (speed: number) => {
|
export const speedConvert = (speed: number) => {
|
||||||
return Math.round(speed*3.6)
|
return Math.round(speed*3.6)
|
||||||
}
|
}
|
||||||
|
export default {}
|
||||||
</script>
|
</script>
|
||||||
Loading…
Reference in New Issue