mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-28 19:00:35 +01:00
docs(slug): add purchase and affilitate in community links
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { kebabCase } from 'scule'
|
import { kebabCase } from 'scule'
|
||||||
import type { ContentNavigationItem } from '@nuxt/content'
|
import type { ContentNavigationItem } from '@nuxt/content'
|
||||||
import { findPageBreadcrumb, mapContentNavigation } from '#ui-pro/utils/content'
|
import type { PageLink } from '@nuxt/ui-pro'
|
||||||
|
import { findPageBreadcrumb, mapContentNavigation } from '@nuxt/ui-pro/utils/content'
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const { framework, module } = useSharedData()
|
const { framework, module } = useSharedData()
|
||||||
@@ -100,6 +101,16 @@ const communityLinks = computed(() => [{
|
|||||||
label: 'Star on GitHub',
|
label: 'Star on GitHub',
|
||||||
to: `https://github.com/nuxt/${page.value?.module === 'ui-pro' ? 'ui-pro' : 'ui'}`,
|
to: `https://github.com/nuxt/${page.value?.module === 'ui-pro' ? 'ui-pro' : 'ui'}`,
|
||||||
target: '_blank'
|
target: '_blank'
|
||||||
|
}, module.value === 'ui-pro' && {
|
||||||
|
icon: 'i-lucide-credit-card',
|
||||||
|
label: 'Purchase a license',
|
||||||
|
to: 'https://nuxt.lemonsqueezy.com/checkout/buy/057dacb2-87ba-4dc1-9256-59ee5b3bd394',
|
||||||
|
target: '_blank'
|
||||||
|
}, module.value === 'ui-pro' && {
|
||||||
|
icon: 'i-lucide-ticket-percent',
|
||||||
|
label: 'Become an affiliate',
|
||||||
|
to: 'https://nuxt.lemonsqueezy.com/affiliates',
|
||||||
|
target: '_blank'
|
||||||
}, {
|
}, {
|
||||||
icon: 'i-lucide-life-buoy',
|
icon: 'i-lucide-life-buoy',
|
||||||
label: 'Contribution',
|
label: 'Contribution',
|
||||||
@@ -108,7 +119,7 @@ const communityLinks = computed(() => [{
|
|||||||
label: 'Roadmap',
|
label: 'Roadmap',
|
||||||
icon: 'i-lucide-map',
|
icon: 'i-lucide-map',
|
||||||
to: '/roadmap'
|
to: '/roadmap'
|
||||||
}])
|
}].filter(Boolean) as PageLink[])
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
Reference in New Issue
Block a user