From 922bcdc64bed5190d4c78b42c7e678691343aff8 Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Mon, 3 Mar 2025 22:27:42 +0100 Subject: [PATCH] Added a bunch of mini features Sorted worlds, add preview and add cards, added timestamps... --- components/calendar/PreviewCard.vue | 37 ++++++++++ components/global/AddCard.vue | 2 +- .../ui/alert-dialog/AlertDialogContent.vue | 2 +- components/ui/dialog/DialogContent.vue | 2 +- components/ui/select/SelectTrigger.vue | 2 +- components/world/PreviewCard.vue | 73 +++++++++++++++++++ i18n.config.ts | 20 +++-- models/World.ts | 6 +- package.json | 2 + pages/explore.vue | 6 +- pages/my/index.vue | 66 ++++------------- pages/my/worlds/[id].vue | 41 ++++------- pnpm-lock.yaml | 17 +++++ server/api/worlds/query.get.ts | 14 ++-- supabase/migrations/202401_init.sql | 16 +++- 15 files changed, 204 insertions(+), 102 deletions(-) create mode 100644 components/calendar/PreviewCard.vue create mode 100644 components/world/PreviewCard.vue diff --git a/components/calendar/PreviewCard.vue b/components/calendar/PreviewCard.vue new file mode 100644 index 0000000..fd16774 --- /dev/null +++ b/components/calendar/PreviewCard.vue @@ -0,0 +1,37 @@ + + + diff --git a/components/global/AddCard.vue b/components/global/AddCard.vue index d2d8955..7b716c0 100644 --- a/components/global/AddCard.vue +++ b/components/global/AddCard.vue @@ -6,7 +6,7 @@ const emit = defineEmits(["on-click"])