Skip to content

Commit

Permalink
Merge pull request #165 from Rajandeep98/Hide_Products
Browse files Browse the repository at this point in the history
Hide Products BN and Connect + Sort LIst Products
  • Loading branch information
Rajandeep98 authored Dec 6, 2024
2 parents b8a66c2 + 4800197 commit 4e4e8b1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 4 additions & 2 deletions web/site/app/pages/products/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ const { data: products } = await useAsyncData(
watch: [locale]
}
)
const completedProducts = computed(() => {
return products.value?.sort((a, b) => a.name.localeCompare(b.name)) ?? []
})
// console.log(products.value)
</script>
<template>
<div class="mx-auto w-full max-w-[1360px] p-2 sm:p-4 lg:p-8">
Expand All @@ -26,7 +28,7 @@ const { data: products } = await useAsyncData(
</h1>
<ul class="mx-auto flex flex-wrap justify-center gap-8">
<SbcDocsProductCard
v-for="product in products"
v-for="product in completedProducts"
:key="product._dir"
:name="product.name"
:badge="product.badge"
Expand Down
8 changes: 6 additions & 2 deletions web/site/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export default defineNuxtConfig({
'/en-CA/sbc/dashboard',
'/en-CA/sbc/tos',
'/en-CA/sbc/auth/login',
'/en-CA/sbc/auth/logout'
'/en-CA/sbc/auth/logout',
'/en-CA/products/get-started/api-access-request'
]
}
},
Expand Down Expand Up @@ -70,7 +71,10 @@ export default defineNuxtConfig({
},
ignores: [
'web-component',
'/sbc/tos'
'/sbc/tos',
'/products/bn',
'products/connect',
'/1.get-started/3.api-access-request.md'
]
},
colorMode: {
Expand Down

0 comments on commit 4e4e8b1

Please sign in to comment.