From 637a5cd7e3246e394cf7076b0469b5dc7046c7dc Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Fri, 28 Mar 2025 20:54:12 +0100 Subject: [PATCH] Added sample behaviour for category modal --- assets/main.css | 2 +- components/calendar/Calendar.vue | 1 + components/calendar/CalendarMenu.vue | 8 +- components/calendar/CategoriesCTA.vue | 23 ++ .../{CalendarOptions.vue => OptionsCTA.vue} | 27 +- components/calendar/dialog/Categories.vue | 36 +++ .../ui/alert-dialog/AlertDialogContent.vue | 2 +- components/ui/button/index.ts | 2 +- components/ui/dialog/DialogContent.vue | 2 +- components/ui/dialog/DialogScrollContent.vue | 2 +- .../ui/dropdown-menu/DropdownMenuArrow.vue | 13 + components/ui/dropdown-menu/index.ts | 1 + i18n.config.ts | 4 +- stores/CalendarStore.ts | 15 +- stores/EventStore.ts | 306 ------------------ 15 files changed, 104 insertions(+), 340 deletions(-) create mode 100644 components/calendar/CategoriesCTA.vue rename components/calendar/{CalendarOptions.vue => OptionsCTA.vue} (74%) create mode 100644 components/calendar/dialog/Categories.vue create mode 100644 components/ui/dropdown-menu/DropdownMenuArrow.vue delete mode 100644 stores/EventStore.ts diff --git a/assets/main.css b/assets/main.css index a480816..579d8b4 100644 --- a/assets/main.css +++ b/assets/main.css @@ -22,7 +22,7 @@ --primary: 245 58% 51%; --primary-foreground: 0 0% 100%; - --secondary: 210 40% 96.1%; + --secondary: 210 50% 95%; --secondary-foreground: 222.2 47.4% 11.2%; --accent: 210 40% 96.1%; diff --git a/components/calendar/Calendar.vue b/components/calendar/Calendar.vue index 07234d7..49c6411 100644 --- a/components/calendar/Calendar.vue +++ b/components/calendar/Calendar.vue @@ -52,6 +52,7 @@ onMounted(() => { + diff --git a/components/calendar/CalendarMenu.vue b/components/calendar/CalendarMenu.vue index 3c29a07..b8dce29 100644 --- a/components/calendar/CalendarMenu.vue +++ b/components/calendar/CalendarMenu.vue @@ -2,7 +2,6 @@ import { useCalendar } from "@/stores/CalendarStore" import { PhMagnifyingGlass } from "@phosphor-icons/vue" -import CalendarOptions from "./CalendarOptions.vue" const { revealAdvancedSearch } = useCalendar() const { isReadOnly } = storeToRefs(useCalendar()) @@ -13,7 +12,7 @@ const { isReadOnly } = storeToRefs(useCalendar())
  • - +
  • @@ -33,7 +32,10 @@ const { isReadOnly } = storeToRefs(useCalendar())
  • - + +
  • +
  • +
  • diff --git a/components/calendar/CategoriesCTA.vue b/components/calendar/CategoriesCTA.vue new file mode 100644 index 0000000..17f1066 --- /dev/null +++ b/components/calendar/CategoriesCTA.vue @@ -0,0 +1,23 @@ + + + diff --git a/components/calendar/CalendarOptions.vue b/components/calendar/OptionsCTA.vue similarity index 74% rename from components/calendar/CalendarOptions.vue rename to components/calendar/OptionsCTA.vue index 8628365..7a61982 100644 --- a/components/calendar/CalendarOptions.vue +++ b/components/calendar/OptionsCTA.vue @@ -1,32 +1,23 @@ diff --git a/components/calendar/dialog/Categories.vue b/components/calendar/dialog/Categories.vue new file mode 100644 index 0000000..d63b49e --- /dev/null +++ b/components/calendar/dialog/Categories.vue @@ -0,0 +1,36 @@ + + + diff --git a/components/ui/alert-dialog/AlertDialogContent.vue b/components/ui/alert-dialog/AlertDialogContent.vue index 776974c..ef4d8ec 100644 --- a/components/ui/alert-dialog/AlertDialogContent.vue +++ b/components/ui/alert-dialog/AlertDialogContent.vue @@ -25,7 +25,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)