From a83bc240b1de6cb348073ebb69cb1bea7de104ed Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Mon, 3 Mar 2025 12:35:59 +0100 Subject: [PATCH] Added ui card to add worlds / calendars --- components/global/AddCard.vue | 21 +++++++++++++++++++++ components/ui/card/Card.vue | 9 ++++++++- i18n.config.ts | 2 ++ pages/my/index.vue | 22 ++++++---------------- pages/my/worlds/[id].vue | 26 ++++++++------------------ 5 files changed, 45 insertions(+), 35 deletions(-) create mode 100644 components/global/AddCard.vue diff --git a/components/global/AddCard.vue b/components/global/AddCard.vue new file mode 100644 index 0000000..d2d8955 --- /dev/null +++ b/components/global/AddCard.vue @@ -0,0 +1,21 @@ + + + diff --git a/components/ui/card/Card.vue b/components/ui/card/Card.vue index ca0812f..6a0bdf5 100644 --- a/components/ui/card/Card.vue +++ b/components/ui/card/Card.vue @@ -5,7 +5,10 @@ import { cn } from "@/lib/utils" const props = defineProps<{ class?: HTMLAttributes["class"] link?: string + hasClick?: boolean }>() + +const emit = defineEmits(["on-click"]) diff --git a/i18n.config.ts b/i18n.config.ts index b7d716e..51e6b2e 100644 --- a/i18n.config.ts +++ b/i18n.config.ts @@ -81,6 +81,7 @@ export default defineI18nConfig(() => ({ nameSingular: "World", namePlural: "Worlds", addSingle: "Add a world", + editSingle: "Edit world", notFound: "World not found", notFoundDescription: "The link is not valid or the world has been deleted / archived.", backToList: "Go back to worlds", @@ -331,6 +332,7 @@ export default defineI18nConfig(() => ({ nameSingular: "Monde", namePlural: "Mondes", addSingle: "Ajouter un monde", + editSingle: "Modifier le monde", notFound: "Aucun monde trouvé", notFoundDescription: "Le lien n'est pas valide ou le monde a été supprimé / archivé.", backToList: "Retourner aux mondes", diff --git a/pages/my/index.vue b/pages/my/index.vue index 6b619fb..dcd64ce 100644 --- a/pages/my/index.vue +++ b/pages/my/index.vue @@ -1,5 +1,5 @@