@fy-/fws-vue 1.7.8 → 1.8.2

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.
Files changed (2) hide show
  1. package/composables/seo.ts +26 -6
  2. package/package.json +1 -1
@@ -75,24 +75,38 @@ export const useSeo = (seo: Ref<LazyHead>, initial: boolean = false) => {
75
75
  { property: "og:locale", content: currentLocale },
76
76
  {
77
77
  property: "og:url",
78
+ key: "og:url",
78
79
  content: seo.value.url
79
80
  ? seo.value.url
80
81
  : `${getURL().Scheme}://${getURL().Host}${route.fullPath}`,
81
82
  },
82
- { property: "og:type", content: seo.value.type || "website" },
83
+ {
84
+ property: "og:type",
85
+ content: seo.value.type || "website",
86
+ key: "og:type",
87
+ },
83
88
  {
84
89
  name: "robots",
85
90
  content:
86
91
  "index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1",
92
+ key: "robots",
87
93
  },
88
94
  );
89
95
 
90
96
  if (seo.value.isAdult) {
91
97
  metas.push(
92
- { name: "rating", content: "adult" },
93
- { name: "RATING", content: "RTA-5042-1996-1400-1577-RTA" },
94
- { property: "rating", content: "adult" },
95
- { property: "RATING", content: "RTA-5042-1996-1400-1577-RTA" },
98
+ { name: "rating", content: "adult", key: "rating" },
99
+ {
100
+ name: "RATING",
101
+ content: "RTA-5042-1996-1400-1577-RTA",
102
+ key: "RTA",
103
+ },
104
+ { property: "rating", content: "adult", key: "rating-property" },
105
+ {
106
+ property: "RATING",
107
+ content: "RTA-5042-1996-1400-1577-RTA",
108
+ key: "RTA-property",
109
+ },
96
110
  );
97
111
  }
98
112
 
@@ -122,11 +136,13 @@ export const useSeo = (seo: Ref<LazyHead>, initial: boolean = false) => {
122
136
  metas.push({
123
137
  name: property,
124
138
  content: seoValue,
139
+ key: property,
125
140
  });
126
141
  } else {
127
142
  metas.push({
128
143
  property,
129
144
  content: seoValue as string,
145
+ key: property,
130
146
  });
131
147
  }
132
148
  });
@@ -134,7 +150,11 @@ export const useSeo = (seo: Ref<LazyHead>, initial: boolean = false) => {
134
150
  });
135
151
 
136
152
  if (seo.value.description) {
137
- metas.push({ name: "description", content: seo.value.description });
153
+ metas.push({
154
+ name: "description",
155
+ content: seo.value.description,
156
+ key: "description",
157
+ });
138
158
  }
139
159
 
140
160
  return metas;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "1.7.8",
3
+ "version": "1.8.2",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "repository": {