From 133404ff729559a7bd7b42ffd6810ffe5ea521ae Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Mon, 13 May 2024 20:45:52 +0200 Subject: [PATCH 1/5] Added supabase auth to project This design is minimalist for now, it might be extended (at least with a basic profil page or command list) --- .gitignore | 4 + components/calendar/Sidebar.vue | 50 ++++---- components/calendar/state/yearly/Layout.vue | 2 +- components/global/user/CTA.vue | 77 ++++++++++++ components/ui/avatar/Avatar.vue | 21 ++++ components/ui/avatar/AvatarFallback.vue | 11 ++ components/ui/avatar/AvatarImage.vue | 9 ++ components/ui/avatar/index.ts | 24 ++++ components/ui/command/index.ts | 2 + nuxt.config.ts | 12 +- package.json | 3 +- pnpm-lock.yaml | 94 ++++++++++++++ supabase/config.toml | 128 ++++++++++++++++++++ supabase/migrations/202401_init.sql | 103 ++++++++++++++++ supabase/migrations/202402_auth_hook.sql | 58 +++++++++ supabase/seed.sql | 1 + 16 files changed, 568 insertions(+), 31 deletions(-) create mode 100644 components/global/user/CTA.vue create mode 100644 components/ui/avatar/Avatar.vue create mode 100644 components/ui/avatar/AvatarFallback.vue create mode 100644 components/ui/avatar/AvatarImage.vue create mode 100644 components/ui/avatar/index.ts create mode 100644 supabase/config.toml create mode 100644 supabase/migrations/202401_init.sql create mode 100644 supabase/migrations/202402_auth_hook.sql create mode 100644 supabase/seed.sql diff --git a/.gitignore b/.gitignore index 4a7f73a..6575dcc 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,7 @@ logs .env .env.* !.env.example + +# Supabase +.branches +.temp diff --git a/components/calendar/Sidebar.vue b/components/calendar/Sidebar.vue index df5fe1a..5320e60 100644 --- a/components/calendar/Sidebar.vue +++ b/components/calendar/Sidebar.vue @@ -2,55 +2,55 @@ import { useCalendar } from '@/stores/CalendarStore' import { PhList, PhHouse, PhMagnifyingGlass } from '@phosphor-icons/vue' -import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip' -import Button from '../ui/button/Button.vue' const { revealAdvancedSearch } = useCalendar() diff --git a/components/calendar/state/yearly/Layout.vue b/components/calendar/state/yearly/Layout.vue index 48aa230..b513570 100644 --- a/components/calendar/state/yearly/Layout.vue +++ b/components/calendar/state/yearly/Layout.vue @@ -26,7 +26,7 @@ const moveCalendarRight = useThrottleFn(() => {