From 3f4cb46ebf7f58576233362329f0da0802acb94a Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Mon, 3 Mar 2025 23:13:13 +0100 Subject: [PATCH] Added timestamps for calendars --- components/calendar/PreviewCard.vue | 36 +++++++++++++++++++++++++---- components/global/user/CTA.vue | 2 +- components/ui/card/CardFooter.vue | 2 +- components/world/PreviewCard.vue | 1 + models/CalendarConfig.ts | 2 ++ pages/explore.vue | 19 ++------------- pages/my/worlds/[id].vue | 2 +- server/api/calendars/query.get.ts | 6 ++++- server/api/worlds/query.get.ts | 33 ++++++++++++++++++++++++-- supabase/migrations/202401_init.sql | 5 ++++ 10 files changed, 80 insertions(+), 28 deletions(-) diff --git a/components/calendar/PreviewCard.vue b/components/calendar/PreviewCard.vue index fd16774..5c16733 100644 --- a/components/calendar/PreviewCard.vue +++ b/components/calendar/PreviewCard.vue @@ -1,18 +1,30 @@ diff --git a/components/global/user/CTA.vue b/components/global/user/CTA.vue index 57aa34a..14d8adb 100644 --- a/components/global/user/CTA.vue +++ b/components/global/user/CTA.vue @@ -70,7 +70,7 @@ function pushRoute(to: AvailableRoutes) { {{ $t('ui.sidebarMenu.avatarFallback') }} - + diff --git a/components/ui/card/CardFooter.vue b/components/ui/card/CardFooter.vue index fad3928..faff6a3 100644 --- a/components/ui/card/CardFooter.vue +++ b/components/ui/card/CardFooter.vue @@ -8,7 +8,7 @@ const props = defineProps<{ diff --git a/components/world/PreviewCard.vue b/components/world/PreviewCard.vue index da860b2..91c2c3d 100644 --- a/components/world/PreviewCard.vue +++ b/components/world/PreviewCard.vue @@ -57,6 +57,7 @@ const updatedAt = computed(() => props.world.updatedAt ? DateTime.fromIS +