Restyle home and common components

This commit is contained in:
Nicola Spadari
2025-02-08 14:27:49 +01:00
parent aa3fcc3960
commit 120e756b8d
13 changed files with 173 additions and 110 deletions

15
app/composables/pages.ts Normal file
View File

@@ -0,0 +1,15 @@
export const usePages = () => {
const router = useRouter();
const pages = router.getRoutes().filter((route) => route.name !== "index" && route.name !== "all").map((route) => {
return {
label: route.meta.name,
to: route.path,
icon: route.meta.icon
};
});
return {
pages
};
};