@wordup-md/nuxt-layer-shadcn-unocss 0.2.18 → 0.2.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -151,6 +151,7 @@ export default defineAppConfig({
151
151
  links: [
152
152
  {
153
153
  title: 'shadcn-vue',
154
+ alt: 'shadcn vue logo',
154
155
  icon: 'https://www.shadcn-vue.com/favicon.ico',
155
156
  to: 'https://www.shadcn-vue.com/',
156
157
  target: '_blank',
package/app.vue CHANGED
@@ -44,11 +44,16 @@ useSeoMeta({
44
44
  twitterCard: 'summary_large_image',
45
45
  })
46
46
 
47
+ const { locale } = useI18nDocs()
47
48
  useHead({
48
49
  bodyAttrs: {
49
50
  class: themeClass.value,
50
51
  style: `--radius: ${radius.value}rem;--header-height: ${config.value.header.height};--banner-height: 0px;`,
51
52
  },
53
+ htmlAttrs: {
54
+ lang: locale.value,
55
+ dir: locale.value === 'ar' ? 'rtl' : 'ltr',
56
+ },
52
57
  })
53
58
  </script>
54
59
 
@@ -4,6 +4,7 @@
4
4
  <UiButton
5
5
  variant="ghost"
6
6
  size="icon"
7
+ aria-label="Toggle theme"
7
8
  >
8
9
  <NuxtIcon
9
10
  name="lucide:paintbrush"
@@ -1,13 +1,7 @@
1
1
  <template>
2
- <span
3
- v-if="name?.endsWith('.svg')"
4
- class="svg-icon"
5
- :style="`--svg: url(${name}); width: ${size}px; height: ${size}px;`"
6
- v-bind="$attrs"
7
- />
8
2
  <!-- Iconify Icons -->
9
3
  <NuxtIcon
10
- v-else-if="isValidIcon"
4
+ v-if="isValidIcon"
11
5
  :name
12
6
  :size="+size"
13
7
  :style="`min-width: ${+size + 1}px; min-height: ${+size + 1}px;`"
@@ -23,10 +17,18 @@
23
17
  {{ name }}
24
18
  </span>
25
19
 
20
+ <span
21
+ v-else-if="!name?.startsWith('http') && name?.endsWith('.svg')"
22
+ class="svg-icon"
23
+ :style="`--svg: url(${name}); width: ${size}px; height: ${size}px;`"
24
+ v-bind="$attrs"
25
+ />
26
+
26
27
  <!-- Link -->
27
28
  <NuxtImg
28
29
  v-else
29
30
  :src="name"
31
+ :alt
30
32
  :style="`width: ${size}px; height: ${size}px;`"
31
33
  class="inline-block"
32
34
  :class="$attrs.class"
@@ -38,6 +40,7 @@ import { stringToIcon, validateIconName } from '@iconify/utils'
38
40
 
39
41
  const { name, size = 16 } = defineProps<{
40
42
  name: string
43
+ alt?: string
41
44
  size?: number | string
42
45
  }>()
43
46
 
@@ -86,6 +86,5 @@ if (count.value) {
86
86
  menuComponentName: 'aside-menu-item',
87
87
  submenuComponentName: 'aside-tree-2',
88
88
  })
89
- console.log('aime', tree)
90
89
  }
91
90
  </script>
@@ -27,6 +27,7 @@
27
27
  <Icon
28
28
  v-if="link?.icon"
29
29
  :name="link.icon"
30
+ :alt="link.alt"
30
31
  :size="20"
31
32
  />
32
33
  <span v-if="link?.title">{{ $t(link.title) }}</span>
@@ -5,6 +5,7 @@
5
5
  variant="ghost"
6
6
  size="icon"
7
7
  class="md:hidden"
8
+ aria-label="Open navigation"
8
9
  >
9
10
  <NuxtIcon
10
11
  name="lucide:menu"
package/index.d.ts CHANGED
@@ -459,6 +459,7 @@ interface DefaultConfig {
459
459
  links: ({
460
460
  icon: string
461
461
  title: string
462
+ alt?: string
462
463
  to: string
463
464
  target: string
464
465
  })[]
package/nuxt.config.ts CHANGED
@@ -14,6 +14,7 @@ export default defineNuxtConfig({
14
14
  '@nuxt/icon',
15
15
  '@nuxtjs/color-mode',
16
16
  '@nuxtjs/i18n',
17
+ '@nuxtjs/robots',
17
18
  // 'nuxt-og-image',
18
19
  ],
19
20
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wordup-md/nuxt-layer-shadcn-unocss",
3
3
  "type": "module",
4
- "version": "0.2.18",
4
+ "version": "0.2.19",
5
5
  "author": "Emmanuel Salomon <emmanuel.salomon@gmail.com>",
6
6
  "main": "./nuxt.config.ts",
7
7
  "repository": {
@@ -44,6 +44,7 @@
44
44
  "@nuxt/image": "^1.10.0",
45
45
  "@nuxtjs/color-mode": "^3.5.2",
46
46
  "@nuxtjs/i18n": "^9.5.4",
47
+ "@nuxtjs/robots": "^5.6.0",
47
48
  "@tanstack/vue-table": "^8.21.3",
48
49
  "@unpress/nuxt-module": "0.1.13-beta.7",
49
50
  "class-variance-authority": "^0.7.1",
package/vercel.json CHANGED
@@ -2,6 +2,6 @@
2
2
  "buildCommand": "pnpm build",
3
3
  "outputDirectory": ".playground/.vercel/output",
4
4
  "installCommand": "pnpm install",
5
- "ignoreCommand": "if git describe --exact-match --tags HEAD > /dev/null 2>&1; then exit 1; else exit 0; fi"
5
+ "ignoreCommand": "git describe --exact-match --tags HEAD > /dev/null 2>&1; [ $? -ne 0 ]"
6
6
  }
7
7