From 53752ab00d4d12982380193575a7385a77a63faa Mon Sep 17 00:00:00 2001 From: Yncy0 Date: Wed, 13 Aug 2025 09:47:45 +0800 Subject: [PATCH 1/9] update: supabase/config.toml --- supabase/config.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/supabase/config.toml b/supabase/config.toml index 4d24a0e..86d5743 100644 --- a/supabase/config.toml +++ b/supabase/config.toml @@ -117,9 +117,9 @@ file_size_limit = "50MiB" enabled = true # The base URL of your website. Used as an allow-list for redirects and for constructing URLs used # in emails. -site_url = "http://localhost:3000" +site_url = "https://monthsary-website.nuxt.dev" # A list of *exact* URLs that auth providers are permitted to redirect to post authentication. -additional_redirect_urls = ["http://localhost:3000/confirm"] +additional_redirect_urls = ["https://monthsary-website.nuxt.dev/confirm", "http://localhost:3000/confirm"] # How long tokens are valid for, in seconds. Defaults to 3600 (1 hour), maximum 604,800 (1 week). jwt_expiry = 3600 # Path to JWT signing key. DO NOT commit your signing keys file to git. From 038ae58dc4c7244738716ba0885bdb00652c2643 Mon Sep 17 00:00:00 2001 From: Yncy0 Date: Wed, 20 Aug 2025 07:56:26 +0800 Subject: [PATCH 2/9] quick-fix: layout of login page --- app/layouts/login.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/layouts/login.vue b/app/layouts/login.vue index efbf8ff..9566162 100644 --- a/app/layouts/login.vue +++ b/app/layouts/login.vue @@ -1,5 +1,5 @@ From 0f7ceab215bebef9607dec7fd9e8dc54d343f47c Mon Sep 17 00:00:00 2001 From: Yncy0 Date: Wed, 20 Aug 2025 12:37:58 +0800 Subject: [PATCH 3/9] changed site url on supabase/config.toml for local development --- supabase/config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supabase/config.toml b/supabase/config.toml index 86d5743..72ea8ce 100644 --- a/supabase/config.toml +++ b/supabase/config.toml @@ -117,7 +117,7 @@ file_size_limit = "50MiB" enabled = true # The base URL of your website. Used as an allow-list for redirects and for constructing URLs used # in emails. -site_url = "https://monthsary-website.nuxt.dev" +site_url = "http://localhost:3000" # A list of *exact* URLs that auth providers are permitted to redirect to post authentication. additional_redirect_urls = ["https://monthsary-website.nuxt.dev/confirm", "http://localhost:3000/confirm"] # How long tokens are valid for, in seconds. Defaults to 3600 (1 hour), maximum 604,800 (1 week). From af611b6353a904f7b76db51c8cf2d7b76b1d101d Mon Sep 17 00:00:00 2001 From: Yncy0 Date: Thu, 21 Aug 2025 05:52:03 +0800 Subject: [PATCH 4/9] update: changed table name from index_roadmap -> roadmap added: types.ts for types that are reusable update: all components and composables that are affected by these changes --- app/components/index/Roadmap/RoadmapStack.vue | 8 ++-- app/components/index/RoadmapSection.vue | 29 ++++++------ app/components/roadmap/RoadmapCard.vue | 14 +++--- app/composables/fetch/useFetchRoadmap.ts | 3 +- app/pages/roadmap.vue | 6 +-- app/utils/mock/roadmap.ts | 44 +++++++++++-------- app/utils/types.ts | 8 ++++ types/database.types.ts | 22 ++++++---- 8 files changed, 77 insertions(+), 57 deletions(-) create mode 100644 app/utils/types.ts diff --git a/app/components/index/Roadmap/RoadmapStack.vue b/app/components/index/Roadmap/RoadmapStack.vue index 2dd59eb..b6d2ebf 100644 --- a/app/components/index/Roadmap/RoadmapStack.vue +++ b/app/components/index/Roadmap/RoadmapStack.vue @@ -2,8 +2,8 @@ const props = defineProps<{ isReversed: boolean; imgSource: string; - header: string; - body: string; + title: string; + description: string; }>(); const flexDir = ref(props.isReversed ? "row-reverse" : "row"); @@ -16,8 +16,8 @@ const flexDir = ref(props.isReversed ? "row-reverse" : "row"); >
- -

{{ props.body }}

+ +

{{ props.description }}

diff --git a/app/components/index/RoadmapSection.vue b/app/components/index/RoadmapSection.vue index e32c8d1..5112242 100644 --- a/app/components/index/RoadmapSection.vue +++ b/app/components/index/RoadmapSection.vue @@ -1,7 +1,8 @@ - diff --git a/app/composables/fetch/useFetchRoadmap.ts b/app/composables/fetch/useFetchRoadmap.ts index 9f87dbb..cb04ca3 100644 --- a/app/composables/fetch/useFetchRoadmap.ts +++ b/app/composables/fetch/useFetchRoadmap.ts @@ -4,8 +4,9 @@ export async function useFetchRoadmap() { const client = useSupabaseClient(); const { data, error } = await client - .from("index_roadmap") + .from("roadmap") .select(`*, images (id, image_url, unique_id)`) + .lt("index", "3") .order("index", { ascending: true }); if (error) throw error; diff --git a/app/pages/roadmap.vue b/app/pages/roadmap.vue index a7bd7b7..4c59977 100644 --- a/app/pages/roadmap.vue +++ b/app/pages/roadmap.vue @@ -1,4 +1,4 @@ - + + diff --git a/app/pages/gallery.vue b/app/pages/gallery.vue index 834c1bd..ff1e905 100644 --- a/app/pages/gallery.vue +++ b/app/pages/gallery.vue @@ -6,6 +6,7 @@ definePageMeta({ - From da527ab0491a0528d474dbee2fb63e58c0a64af9 Mon Sep 17 00:00:00 2001 From: Yncy0 Date: Fri, 22 Aug 2025 12:58:26 +0800 Subject: [PATCH 8/9] fixed: RoadmapCard.vue layout --- app/components/ImageCard.vue | 16 ++++++++++++++-- app/components/roadmap/RoadmapCard.vue | 6 +++--- app/pages/roadmap.vue | 4 +--- app/utils/types.ts | 2 +- 4 files changed, 19 insertions(+), 9 deletions(-) diff --git a/app/components/ImageCard.vue b/app/components/ImageCard.vue index e0b7a92..0fd2f5a 100644 --- a/app/components/ImageCard.vue +++ b/app/components/ImageCard.vue @@ -3,11 +3,23 @@ const props = defineProps<{ img: string; date?: string; }>() + +const dateStamp = computed(() => { + return props.date ? props.date : "Date not found" +}) + + + diff --git a/app/components/roadmap/RoadmapCard.vue b/app/components/roadmap/RoadmapCard.vue index d953e67..2d31e2a 100644 --- a/app/components/roadmap/RoadmapCard.vue +++ b/app/components/roadmap/RoadmapCard.vue @@ -5,9 +5,9 @@ const props = defineProps();