@explorer-1/vue 0.2.98 → 0.2.99
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/package.json
CHANGED
|
@@ -41,6 +41,7 @@ export const BaseStory = {
|
|
|
41
41
|
url: 'http://localhost:3000/topics/mars'
|
|
42
42
|
}
|
|
43
43
|
],
|
|
44
|
+
hideShareLinks: false,
|
|
44
45
|
topper: '',
|
|
45
46
|
readTime: '2 min read',
|
|
46
47
|
summary:
|
|
@@ -115,7 +116,8 @@ export const HeroVideo = {
|
|
|
115
116
|
blockType: 'VideoBlock',
|
|
116
117
|
video: BaseVideoData,
|
|
117
118
|
caption: 'Lorem ipsum dolor sit amet',
|
|
118
|
-
credit: 'NASA/JPL'
|
|
119
|
+
credit: 'NASA/JPL',
|
|
120
|
+
autoplay: true
|
|
119
121
|
}
|
|
120
122
|
]
|
|
121
123
|
}
|
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
|
|
84
84
|
<!-- share buttons -->
|
|
85
85
|
<LayoutHelper
|
|
86
|
+
v-if="!data.hideShareLinks"
|
|
86
87
|
indent="col-2"
|
|
87
88
|
class="lg:mb-0 relative mb-8"
|
|
88
89
|
>
|
|
@@ -175,7 +176,7 @@ import BlockImageStandard from './../../components/BlockImage/BlockImageStandard
|
|
|
175
176
|
import BlockLinkCarousel from './../../components/BlockLinkCarousel/BlockLinkCarousel.vue'
|
|
176
177
|
import ShareButtons from './../../components/ShareButtons/ShareButtons.vue'
|
|
177
178
|
import BlockText from './../../components/BlockText/BlockText.vue'
|
|
178
|
-
import BlockVideo from './../../components/
|
|
179
|
+
import BlockVideo from './../../components/BlockVideo/BlockVideo.vue'
|
|
179
180
|
|
|
180
181
|
export default defineComponent({
|
|
181
182
|
name: 'PageNewsDetail',
|
|
@@ -206,16 +207,13 @@ export default defineComponent({
|
|
|
206
207
|
return (this.data?.hero || []).length === 0
|
|
207
208
|
},
|
|
208
209
|
heroInline(): boolean {
|
|
209
|
-
if (
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
} else if (
|
|
213
|
-
this.data?.heroPosition === 'inline' ||
|
|
210
|
+
if (
|
|
211
|
+
!this.heroEmpty &&
|
|
212
|
+
(this.data?.heroPosition === 'inline' ||
|
|
214
213
|
this.data?.hero[0].blockType === 'CarouselBlock' ||
|
|
215
|
-
this.data?.hero[0].blockType === 'VideoEmbedBlock'
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
}
|
|
214
|
+
this.data?.hero[0].blockType === 'VideoEmbedBlock')
|
|
215
|
+
) {
|
|
216
|
+
return true
|
|
219
217
|
}
|
|
220
218
|
return false
|
|
221
219
|
},
|