@wordup-md/nuxt-layer-shadcn-unocss 0.2.18 → 0.2.20
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.
- package/.playground/app.config.ts +2 -0
- package/app.vue +5 -0
- package/components/ThemePopover.vue +1 -0
- package/components/content/Icon.vue +10 -7
- package/components/layout/Aside.vue +0 -1
- package/components/layout/Footer.vue +1 -0
- package/components/layout/MobileNav.vue +1 -0
- package/index.d.ts +1 -0
- package/nuxt.config.ts +1 -0
- package/package.json +2 -1
- package/vercel.json +1 -1
|
@@ -151,11 +151,13 @@ 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',
|
|
157
158
|
},
|
|
158
159
|
{
|
|
160
|
+
alt: 'GitHub logo',
|
|
159
161
|
icon: 'lucide:github',
|
|
160
162
|
to: 'https://github.com/wordup-md/nuxt-layer-shadcn-unocss',
|
|
161
163
|
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
|
|
|
@@ -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-
|
|
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
|
|
package/index.d.ts
CHANGED
package/nuxt.config.ts
CHANGED
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.
|
|
4
|
+
"version": "0.2.20",
|
|
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": "
|
|
5
|
+
"ignoreCommand": "git describe --exact-match --tags HEAD > /dev/null 2>&1; [ $? -ne 0 ]"
|
|
6
6
|
}
|
|
7
7
|
|