loading indicator I like better and github redirect

This commit is contained in:
Zoe
2024-10-25 01:30:51 -05:00
parent d0fb293c76
commit b3768887b7
19 changed files with 122 additions and 139 deletions

17
app.vue Normal file
View File

@@ -0,0 +1,17 @@
<script setup>
const nuxtApp = useNuxtApp();
const isRouteLoading = ref(false);
nuxtApp.hook("page:start", () => {
isRouteLoading.value = true;
});
nuxtApp.hook("page:finish", () => {
isRouteLoading.value = false;
});
</script>
<template>
<ProgressBar :isLoading="isRouteLoading" />
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</template>