@icvdeveloper/common-module 1.4.11 → 1.4.12
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
CHANGED
package/dist/module.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
export type Portal = {
|
|
2
2
|
id?: number;
|
|
3
3
|
name?: string;
|
|
4
|
+
description?: string | null;
|
|
5
|
+
favicon?: string;
|
|
4
6
|
gtm_id?: string | null;
|
|
5
7
|
ga_id?: string | null;
|
|
6
8
|
adobe_launch_url?: string | null;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
social_title?: string | null;
|
|
10
|
+
social_description?: string | null;
|
|
11
|
+
social_photo?: string | null;
|
|
9
12
|
};
|
package/dist/runtime/plugin.mjs
CHANGED
|
@@ -92,22 +92,25 @@ export default defineNuxtPlugin((nuxtApp) => {
|
|
|
92
92
|
});
|
|
93
93
|
const canonicalUrl = "https://" + portal.value.domain + to.path;
|
|
94
94
|
let metaDesc = portal.value.description;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
} else if (get(conferencesStore, "selectedConference.description.length", 0) > 0) {
|
|
95
|
+
let socialImage = "";
|
|
96
|
+
if (get(conferencesStore, "selectedConference.description.length", 0) > 0) {
|
|
98
97
|
metaDesc = stripHtml(conferencesStore.selectedConference.description);
|
|
98
|
+
} else if (get(portal.value, "social_description.length", 0) > 0) {
|
|
99
|
+
metaDesc = get(portal.value, "social_description");
|
|
100
|
+
}
|
|
101
|
+
if (get(conferencesStore, "selectedConference.photo.length", 0) > 0) {
|
|
102
|
+
socialImage = get(conferencesStore, "selectedConference.photo");
|
|
103
|
+
} else if (get(portal.value, "social_photo.length", 0) > 0) {
|
|
104
|
+
socialImage = get(portal.value, "social_photo");
|
|
99
105
|
}
|
|
100
106
|
useSeoMeta({
|
|
101
107
|
description: metaDesc,
|
|
102
108
|
ogTitle: docTitle,
|
|
109
|
+
ogDescription: metaDesc,
|
|
103
110
|
ogType: "website",
|
|
104
|
-
ogUrl: canonicalUrl
|
|
111
|
+
ogUrl: canonicalUrl,
|
|
112
|
+
ogImage: socialImage
|
|
105
113
|
});
|
|
106
|
-
if (get(conferencesStore, "selectedConference.photo.length", 0) > 0) {
|
|
107
|
-
useSeoMeta({
|
|
108
|
-
ogImage: get(conferencesStore, "selectedConference.photo")
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
114
|
});
|
|
112
115
|
router.afterEach(() => {
|
|
113
116
|
NProgress.done();
|
|
@@ -14,7 +14,7 @@ export const usePortalStore = defineStore("portal", {
|
|
|
14
14
|
return new Promise((resolve, reject) => {
|
|
15
15
|
this.loading = true;
|
|
16
16
|
request(
|
|
17
|
-
"portals/1?fields=id,name,description,domain,favicon,ga_id,gtm_id,adobe_launch_url&with=template_config,navigation_config"
|
|
17
|
+
"portals/1?fields=id,name,description,domain,favicon,ga_id,gtm_id,adobe_launch_url,social_title,social_description,social_photo&with=template_config,navigation_config"
|
|
18
18
|
).then((response) => {
|
|
19
19
|
const {
|
|
20
20
|
data: { navigation_config, template_config, ...data }
|