@dargmuesli/nuxt-vio 13.1.21 → 13.2.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -19,7 +19,7 @@
|
|
19
19
|
:class="classesComputed"
|
20
20
|
:disabled="disabled"
|
21
21
|
:type="type"
|
22
|
-
@click="emit('click')"
|
22
|
+
@click="emit('click', $event)"
|
23
23
|
>
|
24
24
|
<slot name="prefix" />
|
25
25
|
<slot />
|
@@ -49,7 +49,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|
49
49
|
})
|
50
50
|
|
51
51
|
const emit = defineEmits<{
|
52
|
-
click: []
|
52
|
+
click: [event?: MouseEvent]
|
53
53
|
}>()
|
54
54
|
|
55
55
|
// computations
|
@@ -11,7 +11,8 @@ export const useAppLayout = () => {
|
|
11
11
|
})
|
12
12
|
|
13
13
|
// TODO: convert to `useServerHeadSafe` (https://github.com/unjs/unhead/issues/221)
|
14
|
-
|
14
|
+
// adding `Server` leads incorrect title template on hydration
|
15
|
+
useSeoMeta({
|
15
16
|
titleTemplate: (title) =>
|
16
17
|
TITLE_TEMPLATE({
|
17
18
|
siteName: siteConfig.name,
|
@@ -4,14 +4,13 @@ export const useHeadDefault = (input: UseSeoMetaInput) => {
|
|
4
4
|
const siteConfig = useSiteConfig()
|
5
5
|
|
6
6
|
const description = input.description || siteConfig.description
|
7
|
-
const title =
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
})
|
12
|
-
: siteConfig.name
|
7
|
+
const title = TITLE_TEMPLATE({
|
8
|
+
siteName: siteConfig.name,
|
9
|
+
title: input.title?.toString(),
|
10
|
+
})
|
13
11
|
|
14
|
-
|
12
|
+
// can't be server side or it won't update on the client
|
13
|
+
useSeoMeta({
|
15
14
|
...(description
|
16
15
|
? {
|
17
16
|
description,
|
package/nuxt.config.ts
CHANGED
package/package.json
CHANGED
package/utils/constants.ts
CHANGED
@@ -53,14 +53,15 @@ export const GET_CSP = (siteUrl: string) =>
|
|
53
53
|
// }
|
54
54
|
// : {}),
|
55
55
|
// },
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
56
|
+
{
|
57
|
+
// nuxt-og-image
|
58
|
+
...(process.env.NODE_ENV === 'development'
|
59
|
+
? {
|
60
|
+
// 'connect-src': [`${siteUrl}/__og-image__/`],
|
61
|
+
'frame-ancestors': ["'self'"],
|
62
|
+
}
|
63
|
+
: {}),
|
64
|
+
},
|
64
65
|
// {
|
65
66
|
// // nuxt-schema-org
|
66
67
|
// ...(process.env.NODE_ENV === 'development'
|