@explorer-1/vue 0.1.6 → 0.1.8
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/package.json +1 -1
- package/src/components/BlockLinkCard/BlockLinkCard.vue +1 -1
- package/src/components/BlockLinkTile/BlockLinkTile.vue +1 -1
- package/src/components/BlockVideoEmbed/BlockVideoEmbed.stories.js +1 -0
- package/src/components/NavSecondary/NavSecondary.vue +2 -2
- package/src/components/ShareButtonsEdu/ShareButtonsEdu.vue +6 -1
- package/src/templates/PageNewsDetail/PageNewsDetail.vue +2 -1
- package/src/templates/edu/PageEduResourceArticle/PageEduResourceArticle.vue +3 -2
- package/src/utils/mixins.ts +5 -1
package/package.json
CHANGED
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
|
|
59
59
|
<component
|
|
60
60
|
:is="headingLevel || 'p'"
|
|
61
|
-
class="text-gray-dark text-xl font-medium leading-tight tracking-tight"
|
|
61
|
+
class="text-gray-dark text-xl font-medium leading-tight tracking-tight edu:font-extrabold"
|
|
62
62
|
:class="{ 'lg:text-3xl': !compact }"
|
|
63
63
|
>
|
|
64
64
|
{{ theItem.title }}
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
</p>
|
|
60
60
|
<component
|
|
61
61
|
:is="headingLevel || 'p'"
|
|
62
|
-
class="text-xl leading-tight tracking-tight transition-all duration-200 ease-in delay-200"
|
|
62
|
+
class="text-xl leading-tight tracking-tight transition-all duration-200 ease-in delay-200 edu:font-extrabold"
|
|
63
63
|
:class="
|
|
64
64
|
compact
|
|
65
65
|
? 'font-semibold mb-0 lg:group-hover:mb-1'
|
|
@@ -9,6 +9,7 @@ export default {
|
|
|
9
9
|
// shared data
|
|
10
10
|
export const BlockVideoEmbedData = {
|
|
11
11
|
data: {
|
|
12
|
+
blockType: 'VideoEmbedBlock',
|
|
12
13
|
embed: {
|
|
13
14
|
embed: `<iframe title="Meet NASA's Diana Trujillo" width="480" height="270" src="https://www.youtube.com/embed/vUuUyYqI83Q?feature=oembed" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>`
|
|
14
15
|
},
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
>
|
|
9
9
|
<div class="max-w-screen-3xl mx-auto">
|
|
10
10
|
<div
|
|
11
|
-
class="nav-secondary-container lg:container lg:px-0 lg:whitespace-normal border-gray-mid text-gray-mid-dark lg:overflow-visible relative px-4 pb-0 mx-auto overflow-x-auto text-sm font-medium whitespace-nowrap border-t border-opacity-50"
|
|
11
|
+
class="nav-secondary-container lg:container lg:px-0 lg:whitespace-normal border-gray-mid text-gray-mid-dark lg:overflow-visible relative px-4 pb-0 mx-auto overflow-x-auto text-sm font-medium whitespace-nowrap border-t border-opacity-50 edu:border-0"
|
|
12
12
|
>
|
|
13
13
|
<div class="lg:ml-0 2xl:-mr-3 lg:justify-end flex -ml-3">
|
|
14
14
|
<template v-for="(item, index) in theBreadcrumb">
|
|
@@ -184,7 +184,7 @@ export default defineComponent({
|
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
@screen lg {
|
|
187
|
-
@apply top-28;
|
|
187
|
+
@apply top-28 edu:top-18;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
}
|
|
@@ -68,6 +68,11 @@ const twitterLink = computed((): string => {
|
|
|
68
68
|
const pinterestLink = computed(() => {
|
|
69
69
|
return `http://pinterest.com/pin/create/button/?url=${encodedURL.value}&media=${props.image}&description=${encodedTitle.value}`
|
|
70
70
|
})
|
|
71
|
+
|
|
72
|
+
const googleClassroomLink = computed(() => {
|
|
73
|
+
return `https://classroom.google.com/share?url=${encodedURL.value}`
|
|
74
|
+
})
|
|
75
|
+
|
|
71
76
|
const mailLink = computed((): string => {
|
|
72
77
|
return `mailto:?body=${encodedTitle.value}:%20${encodedURL.value}&subject=${encodedTitle.value}`
|
|
73
78
|
})
|
|
@@ -178,7 +183,7 @@ const buttonClass = computed(() => {
|
|
|
178
183
|
|
|
179
184
|
<BaseButton
|
|
180
185
|
variant="social"
|
|
181
|
-
href="
|
|
186
|
+
:href="googleClassroomLink"
|
|
182
187
|
aria-label="Google Classroom"
|
|
183
188
|
target="_blank"
|
|
184
189
|
rel="noopener"
|
|
@@ -207,7 +207,8 @@ export default defineComponent({
|
|
|
207
207
|
return false
|
|
208
208
|
} else if (
|
|
209
209
|
this.data?.heroPosition === 'inline' ||
|
|
210
|
-
this.data?.hero[0].blockType === 'CarouselBlock'
|
|
210
|
+
this.data?.hero[0].blockType === 'CarouselBlock' ||
|
|
211
|
+
this.data?.hero[0].blockType === 'VideoEmbedBlock'
|
|
211
212
|
) {
|
|
212
213
|
return true
|
|
213
214
|
}
|
|
@@ -46,7 +46,8 @@ export default defineComponent({
|
|
|
46
46
|
return false
|
|
47
47
|
} else if (
|
|
48
48
|
this.data?.heroPosition === 'inline' ||
|
|
49
|
-
this.data?.hero[0].blockType === 'CarouselBlock'
|
|
49
|
+
this.data?.hero[0].blockType === 'CarouselBlock' ||
|
|
50
|
+
this.data?.hero[0].blockType === 'VideoEmbedBlock'
|
|
50
51
|
) {
|
|
51
52
|
return true
|
|
52
53
|
}
|
|
@@ -108,7 +109,7 @@ export default defineComponent({
|
|
|
108
109
|
:label="data.displayLabel"
|
|
109
110
|
schema
|
|
110
111
|
/>
|
|
111
|
-
<
|
|
112
|
+
<ShareButtonsEdu
|
|
112
113
|
v-if="data?.url"
|
|
113
114
|
class="mt-4"
|
|
114
115
|
:url="data.url"
|
package/src/utils/mixins.ts
CHANGED
|
@@ -213,7 +213,11 @@ export const mixinGetExternalLink = (link: RelatedLinkObject): string | undefine
|
|
|
213
213
|
// Gets the fully qualified canonical URL of the current page if passed $route.path string
|
|
214
214
|
export const mixinCanonicalUrl = (path: string): string => {
|
|
215
215
|
const domain = 'https://www.jpl.nasa.gov'
|
|
216
|
-
|
|
216
|
+
if (path.startsWith('http')) {
|
|
217
|
+
return path
|
|
218
|
+
} else {
|
|
219
|
+
return domain + path
|
|
220
|
+
}
|
|
217
221
|
}
|
|
218
222
|
// Used to construct an array of image objects to use with BaseLightbox
|
|
219
223
|
// TODO: currently only assembles an array of 1 item (single image lightbox).
|