mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-25 17:30:37 +01:00
Compare commits
2 Commits
v3.1.1
...
fix/inerti
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d8adf782d | ||
|
|
4b3d2a7b00 |
@@ -11,7 +11,7 @@
|
|||||||
"@nuxt/content": "^3.5.1",
|
"@nuxt/content": "^3.5.1",
|
||||||
"@nuxt/image": "^1.10.0",
|
"@nuxt/image": "^1.10.0",
|
||||||
"@nuxt/ui": "latest",
|
"@nuxt/ui": "latest",
|
||||||
"@nuxt/ui-pro": "^3.1.0",
|
"@nuxt/ui-pro": "^3.1.1",
|
||||||
"@nuxthub/core": "^0.8.25",
|
"@nuxthub/core": "^0.8.25",
|
||||||
"@nuxtjs/plausible": "^1.2.0",
|
"@nuxtjs/plausible": "^1.2.0",
|
||||||
"@octokit/rest": "^21.1.1",
|
"@octokit/rest": "^21.1.1",
|
||||||
|
|||||||
10
pnpm-lock.yaml
generated
10
pnpm-lock.yaml
generated
@@ -249,8 +249,8 @@ importers:
|
|||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:..
|
version: link:..
|
||||||
'@nuxt/ui-pro':
|
'@nuxt/ui-pro':
|
||||||
specifier: ^3.1.0
|
specifier: ^3.1.1
|
||||||
version: 3.1.0(@babel/parser@7.27.1)(joi@17.13.3)(magicast@0.3.5)(superstruct@2.0.2)(typescript@5.8.3)(valibot@1.0.0(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3))(yup@1.6.1)(zod@3.24.3)
|
version: 3.1.1(@babel/parser@7.27.1)(joi@17.13.3)(magicast@0.3.5)(superstruct@2.0.2)(typescript@5.8.3)(valibot@1.0.0(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3))(yup@1.6.1)(zod@3.24.3)
|
||||||
'@nuxthub/core':
|
'@nuxthub/core':
|
||||||
specifier: ^0.8.25
|
specifier: ^0.8.25
|
||||||
version: 0.8.25(@netlify/blobs@8.2.0)(db0@0.3.2(better-sqlite3@11.9.1))(ioredis@5.6.1)(magicast@0.3.5)(vite@6.3.4(@types/node@22.15.3)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.39.0)(yaml@2.7.1))
|
version: 0.8.25(@netlify/blobs@8.2.0)(db0@0.3.2(better-sqlite3@11.9.1))(ioredis@5.6.1)(magicast@0.3.5)(vite@6.3.4(@types/node@22.15.3)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.39.0)(yaml@2.7.1))
|
||||||
@@ -1690,8 +1690,8 @@ packages:
|
|||||||
vitest:
|
vitest:
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@nuxt/ui-pro@3.1.0':
|
'@nuxt/ui-pro@3.1.1':
|
||||||
resolution: {integrity: sha512-vuozKECzLdTO8YERczluhQnsCUeu7zVv2Imke18hC8xJgwdQlkd4hF4Emayp4sgD+nYhjMlVd1ygUxrBq33F7g==}
|
resolution: {integrity: sha512-xqX7P2IXRBEVkMH35LeD4Sn550wtinTwDb9J6hbI/lzQqTV3gBVS6Ej2xAs7yGRZDBMI/30VW7UYNVTKoTQGMw==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
joi: ^17.13.0
|
joi: ^17.13.0
|
||||||
superstruct: ^2.0.0
|
superstruct: ^2.0.0
|
||||||
@@ -9343,7 +9343,7 @@ snapshots:
|
|||||||
- typescript
|
- typescript
|
||||||
- yaml
|
- yaml
|
||||||
|
|
||||||
'@nuxt/ui-pro@3.1.0(@babel/parser@7.27.1)(joi@17.13.3)(magicast@0.3.5)(superstruct@2.0.2)(typescript@5.8.3)(valibot@1.0.0(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3))(yup@1.6.1)(zod@3.24.3)':
|
'@nuxt/ui-pro@3.1.1(@babel/parser@7.27.1)(joi@17.13.3)(magicast@0.3.5)(superstruct@2.0.2)(typescript@5.8.3)(valibot@1.0.0(typescript@5.8.3))(vue@3.5.13(typescript@5.8.3))(yup@1.6.1)(zod@3.24.3)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@ai-sdk/vue': 1.2.9(vue@3.5.13(typescript@5.8.3))(zod@3.24.3)
|
'@ai-sdk/vue': 1.2.9(vue@3.5.13(typescript@5.8.3))(zod@3.24.3)
|
||||||
'@nuxt/kit': 3.17.1(magicast@0.3.5)
|
'@nuxt/kit': 3.17.1(magicast@0.3.5)
|
||||||
|
|||||||
@@ -110,14 +110,14 @@ const linkClass = computed(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const page = usePage()
|
const page = usePage()
|
||||||
const url = computed(() => props.to ?? props.href ?? '#')
|
const url = computed(() => props.to ?? props.href ?? '')
|
||||||
|
|
||||||
const isActive = computed(() => props.active || (props.exact ? url.value === props.href : page?.url.startsWith(url.value)))
|
const isActive = computed(() => props.active || (!!url.value && (props.exact ? url.value === props.href : page?.url.startsWith(url.value))))
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<template v-if="!isExternal">
|
<template v-if="!isExternal && !!url">
|
||||||
<InertiaLink v-bind="routerLinkProps" :href="url" custom>
|
<InertiaLink v-bind="routerLinkProps" :href="url">
|
||||||
<template v-if="custom">
|
<template v-if="custom">
|
||||||
<slot
|
<slot
|
||||||
v-bind="{
|
v-bind="{
|
||||||
|
|||||||
Reference in New Issue
Block a user