Change loading indicator color

This commit is contained in:
2024-06-22 22:59:00 +02:00
parent 18e46f7b3a
commit 5305d07805
2 changed files with 2 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
<template>
<NuxtLoadingIndicator color="#14b8a6" />
<NuxtLoadingIndicator color="#808080" />
<AppBackground />
<UContainer class="z-50 relative">
<AppHeader />

View File

@@ -2,13 +2,12 @@
import { type Activity, IDEs } from '~~/types'
const { data: activity, refresh } = await useAsyncData<Activity>('activity', () => $fetch('/api/activity'))
useIntervalFn(async () => await refresh(), 5000)
const codingActivity = computed(() => activity.value!.data.activities.filter(activity => IDEs.some(ide => ide.name === activity.name))[0])
function formatDate(date: number) {
return `${useDateFormat(date, 'DD MMM YYYY').value} at ${useDateFormat(date, 'HH:mm:ss').value}`
}
useIntervalFn(async () => await refresh(), 5000)
</script>
<template>