@studio-fes/layer-strapi 0.4.9 → 0.5.0
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/CHANGELOG.md +16 -0
- package/app/composables/useStrapiSEO.ts +4 -3
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @studio-fes/layer-strapi
|
|
2
2
|
|
|
3
|
+
## 0.5.0
|
|
4
|
+
|
|
5
|
+
No changes in this release.
|
|
6
|
+
|
|
7
|
+
## 0.4.11
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 0.4.10 minor fix
|
|
12
|
+
|
|
13
|
+
## 0.4.10
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- fix: useCraftEntry ts fix
|
|
18
|
+
|
|
3
19
|
## 0.4.9
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -4,7 +4,7 @@ function getFallbackImage(): string | null {
|
|
|
4
4
|
const runtimeConfig = useRuntimeConfig()
|
|
5
5
|
const nuxtImage = useImage()
|
|
6
6
|
const baseUrl = (runtimeConfig.public.baseUrl as string).replace(/\/$/, '')
|
|
7
|
-
return nuxtImage(`${baseUrl}/${runtimeConfig.public.ogImageFallback}`, { width: 1200, height: 630, quality: 80 })
|
|
7
|
+
return nuxtImage(`${baseUrl}/${runtimeConfig.public.ogImageFallback}`, { width: 1200, height: 630, fit: 'cover', quality: 80 })
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export function useStrapiSEO(seoData?: MaybeRefOrGetter<SeoMetaFragment>) {
|
|
@@ -19,7 +19,7 @@ export function useStrapiSEO(seoData?: MaybeRefOrGetter<SeoMetaFragment>) {
|
|
|
19
19
|
|
|
20
20
|
const ogImageData = openGraph?.ogImage || metaImage
|
|
21
21
|
const ogImage = ogImageData?.url
|
|
22
|
-
? nuxtImage(runtimeConfig.public.backendUrl + ogImageData.url, { width: 1200, height: 630, quality: 80 })
|
|
22
|
+
? nuxtImage(runtimeConfig.public.backendUrl + ogImageData.url, { width: 1200, height: 630, fit: 'cover', quality: 80 })
|
|
23
23
|
: getFallbackImage()
|
|
24
24
|
|
|
25
25
|
useSeoMeta({
|
|
@@ -29,7 +29,8 @@ export function useStrapiSEO(seoData?: MaybeRefOrGetter<SeoMetaFragment>) {
|
|
|
29
29
|
ogTitle: openGraph?.ogTitle || metaTitle,
|
|
30
30
|
ogDescription: openGraph?.ogDescription || metaDescription,
|
|
31
31
|
ogImageAlt: ogImageData?.alternativeText || metaTitle,
|
|
32
|
-
|
|
32
|
+
ogImageWidth: ogImage ? 1200 : undefined,
|
|
33
|
+
ogImageHeight: ogImage ? 630 : undefined,
|
|
33
34
|
robots: metaRobots,
|
|
34
35
|
})
|
|
35
36
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@studio-fes/layer-strapi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.0",
|
|
5
5
|
"main": "./nuxt.config.ts",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "nuxi dev",
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@studio-fes/layer-base": "workspace:*",
|
|
25
|
-
"@types/node": "^26.6.
|
|
26
|
-
"eslint": "^10.
|
|
27
|
-
"nuxt": "^4.
|
|
28
|
-
"typescript": "^
|
|
25
|
+
"@types/node": "^26.6.4",
|
|
26
|
+
"eslint": "^10.12.0",
|
|
27
|
+
"nuxt": "^4.6.0",
|
|
28
|
+
"typescript": "^7.0.2",
|
|
29
29
|
"vue": "latest",
|
|
30
|
-
"vue-tsc": "^3.
|
|
30
|
+
"vue-tsc": "^3.3.12"
|
|
31
31
|
},
|
|
32
32
|
"description": "Create Nuxt extendable layer with this GitHub template.",
|
|
33
33
|
"repository": {
|