Skip to content

Commit

Permalink
docs: add Edge badge for next release features
Browse files Browse the repository at this point in the history
Resolves #277
  • Loading branch information
benjamincanac committed Jun 12, 2023
1 parent f0b24ba commit d20983d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
14 changes: 10 additions & 4 deletions docs/components/docs/DocsAsideLinks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,21 @@
class="mt-1"
:ui="{
wrapper: 'border-l border-gray-200 dark:border-gray-800 space-y-2',
base: 'group block border-l -ml-px lg:leading-6',
base: 'group block border-l -ml-px lg:leading-6 flex items-center gap-2',
padding: 'pl-4',
rounded: '',
font: '',
ring: '',
active: 'text-primary-500 dark:text-primary-400 border-current font-semibold',
active: 'text-primary-500 dark:text-primary-400 border-current',
inactive: 'border-transparent hover:border-gray-400 dark:hover:border-gray-500 text-gray-700 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300'
}"
/>
>
<template #badge="{ link }">
<UBadge v-if="link.badge" size="xs" :ui="{ rounded: 'rounded-full' }">
{{ link.badge }}
</UBadge>
</template>
</UVerticalNavigation>
</div>
</div>
</template>
Expand All @@ -29,6 +35,6 @@ import type { NavItem } from '@nuxt/content/dist/runtime/types'
const { navigation } = useContent() as { navigation: NavItem[] }
function mapContentLinks (links: NavItem[]) {
return links?.map(link => ({ label: link.title, icon: link.icon, to: link._path })) || []
return links?.map(link => ({ label: link.title, icon: link.icon, to: link._path, badge: link.badge })) || []
}
</script>
2 changes: 1 addition & 1 deletion docs/content/4.data/1.table.md
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ const selected = ref([people[1]])
```
::

### `empty-state`
### `empty-state` :u-badge{label="Edge" class="ml-2 align-text-bottom"}

Use the `#empty-state` slot to customize the empty state.

Expand Down
2 changes: 2 additions & 0 deletions docs/content/5.navigation/3.pagination.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
github: true
description: Add a pagination to handle pages.
navigation:
badge: 'Edge'
---

## Usage
Expand Down

1 comment on commit d20983d

@vercel
Copy link

@vercel vercel bot commented on d20983d Jun 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui-nuxtlabs.vercel.app
ui-git-dev-nuxtlabs.vercel.app
ui.nuxtlabs.com

Please sign in to comment.