@icvdeveloper/common-module 0.0.118 → 0.0.119

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/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "v3plus-common-module",
3
3
  "configKey": "v3plusCommonModule",
4
- "version": "0.0.118"
4
+ "version": "0.0.119"
5
5
  }
@@ -38,8 +38,7 @@ export default defineNuxtPlugin((nuxtApp) => {
38
38
  const text = div.textContent || div.innerText || "";
39
39
  return text;
40
40
  };
41
- let docTitle = "Rubicon";
42
- let docSubtitle = "";
41
+ let docTitle = "";
43
42
  let routeArray = to.name.toLowerCase().split("-");
44
43
  if (portal.value === null) {
45
44
  Promise.all([
@@ -53,15 +52,13 @@ export default defineNuxtPlugin((nuxtApp) => {
53
52
  // wait for get conferences to complete, then get current conference data.
54
53
  await conferencesStore.getCurrentConference().then(() => NProgress.inc())
55
54
  ]);
56
- } else {
57
- docTitle = portal.value.name;
58
55
  }
59
56
  if (to.name.includes("events-id") && to.params.id) {
60
57
  await conferencesStore.getSelectedConference(to.params.id).then(() => {
61
58
  if (conferencesStore.selectedConference) {
62
- docSubtitle = `${conferencesStore.selectedConference.name}`;
59
+ docTitle = `${conferencesStore.selectedConference.name}`;
63
60
  if (to.name.includes("webcast-channelid")) {
64
- docSubtitle += ` - Live Webcast`;
61
+ docTitle += ` | Live Webcast`;
65
62
  }
66
63
  }
67
64
  NProgress.inc();
@@ -72,32 +69,33 @@ export default defineNuxtPlugin((nuxtApp) => {
72
69
  if (to.params.presid) {
73
70
  await presentationsStore.getSelectedPresentation(to.params.presid).then(() => {
74
71
  if (conferencesStore.selectedConference) {
75
- docSubtitle = `${presentationsStore.selectedPresentation.name}`;
72
+ docTitle = `${presentationsStore.selectedPresentation.name}`;
76
73
  }
77
74
  });
78
75
  } else {
79
76
  presentationsStore.selectedPresentation = null;
80
77
  }
81
- if (!docSubtitle && to.name != "index") {
82
- let navObj = find(
83
- navigation.value,
84
- function(nav) {
85
- return nav.slug == to.name || nav.url == to.path;
86
- }
87
- );
88
- if (navObj) {
89
- docSubtitle += `${navObj.label}`;
90
- } else {
91
- let routeName = routeArray.map(
92
- function(word) {
93
- return word.charAt(0).toUpperCase() + word.slice(1);
78
+ if (!docTitle && portal.value) {
79
+ docTitle = portal.value.name;
80
+ if (to.name != "index") {
81
+ let navObj = find(
82
+ navigation.value,
83
+ function(nav) {
84
+ return nav.slug == to.name || nav.url == to.path;
94
85
  }
95
- ).join(" ");
96
- docSubtitle += `${routeName}`;
86
+ );
87
+ if (navObj) {
88
+ docTitle += ` | ${navObj.label}`;
89
+ } else {
90
+ let routeName = routeArray.map(
91
+ function(word) {
92
+ return word.charAt(0).toUpperCase() + word.slice(1);
93
+ }
94
+ ).join(" ");
95
+ docTitle += ` | ${routeName}`;
96
+ }
97
97
  }
98
98
  }
99
- if (docSubtitle)
100
- docTitle += ` | ${docSubtitle}`;
101
99
  document.title = docTitle;
102
100
  let canonicalUrl = "https://" + portal.value.domain + to.path;
103
101
  if (document.querySelector("link[rel='canonical']")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icvdeveloper/common-module",
3
- "version": "0.0.118",
3
+ "version": "0.0.119",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {