@explorer-1/vue 1.0.6 → 1.1.1
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 +19 -0
- package/components.d.ts +10 -2
- package/dist/explorer-1-vue.css +1 -1
- package/dist/explorer-1-vue.js +43157 -41849
- package/dist/explorer-1-vue.umd.cjs +44 -44
- package/dist/src/components/AsteroidWatchWidget/AsteroidWatchWidget.vue.d.ts +44 -0
- package/dist/src/components/AttractionCard/AttractionCard.vue.d.ts +146 -0
- package/dist/src/components/BaseButton/BaseButton.stories.d.ts +2 -2
- package/dist/src/components/BaseImageCaption/BaseImageCaption.vue.d.ts +44 -0
- package/dist/src/components/BaseLink/BaseLink.stories.d.ts +8 -0
- package/dist/src/components/BaseLink/BaseLink.vue.d.ts +50 -2
- package/dist/src/components/BlockCardGrid/BlockCardGrid.vue.d.ts +88 -0
- package/dist/src/components/BlockCardGridItem/BlockCardGridItem.vue.d.ts +44 -0
- package/dist/src/components/BlockCsrTable/BlockCsrTable.stories.d.ts +1 -1
- package/dist/src/components/BlockCsrTable/{CsrTestLimits.vue.d.ts → CsrDetails.vue.d.ts} +2 -2
- package/dist/src/components/BlockIframeEmbed/BlockIframeEmbed.vue.d.ts +44 -0
- package/dist/src/components/BlockImage/BlockImage.stories.d.ts +528 -0
- package/dist/src/components/BlockImage/BlockImage.vue.d.ts +88 -0
- package/dist/src/components/BlockImage/BlockImageFullBleed.vue.d.ts +44 -0
- package/dist/src/components/BlockImage/BlockImageStandard.vue.d.ts +44 -0
- package/dist/src/components/BlockImageCarousel/BlockImageCarousel.vue.d.ts +44 -0
- package/dist/src/components/BlockImageCarouselItem/BlockImageCarouselItem.vue.d.ts +44 -0
- package/dist/src/components/BlockImageComparison/BlockImageComparison.vue.d.ts +44 -0
- package/dist/src/components/BlockImageGallery/BlockImageGallery.vue.d.ts +44 -0
- package/dist/src/components/BlockInlineImage/BlockInlineImage.vue.d.ts +44 -0
- package/dist/src/components/BlockLinkCard/BlockLinkCard.vue.d.ts +44 -0
- package/dist/src/components/BlockLinkCarousel/BlockLinkCarousel.stories.d.ts +132 -0
- package/dist/src/components/BlockLinkCarousel/BlockLinkCarousel.vue.d.ts +132 -0
- package/dist/src/components/BlockLinkTile/BlockLinkTile.vue.d.ts +44 -0
- package/dist/src/components/BlockListCards/BlockListCards.vue.d.ts +44 -0
- package/dist/src/components/BlockQuote/BlockQuote.stories.d.ts +220 -0
- package/dist/src/components/BlockQuote/BlockQuote.vue.d.ts +44 -0
- package/dist/src/components/BlockRelatedLinks/BlockRelatedLinks.vue.d.ts +44 -0
- package/dist/src/components/BlockRelatedLinks/RelatedLink.vue.d.ts +44 -0
- package/dist/src/components/BlockRichTable/BlockRichTable.vue.d.ts +44 -0
- package/dist/src/components/BlockStreamfield/BlockStreamfield.stories.d.ts +2 -2
- package/dist/src/components/BlockStreamfield/BlockStreamfield.vue.d.ts +792 -0
- package/dist/src/components/BlockVideo/BlockVideo.vue.d.ts +44 -0
- package/dist/src/components/BlockVideoEmbed/BlockVideoEmbed.vue.d.ts +44 -0
- package/dist/src/components/DetailHeadline/DetailHeadline.vue.d.ts +44 -0
- package/dist/src/components/DsnWidget/DsnWidget.vue.d.ts +44 -0
- package/dist/src/components/EventCard/EventCard.vue.d.ts +44 -0
- package/dist/src/components/HeroListingIndex/HeroListingIndex.vue.d.ts +44 -0
- package/dist/src/components/HeroMedia/HeroMedia.vue.d.ts +44 -0
- package/dist/src/components/HeroMedium/HeroMedium.vue.d.ts +44 -0
- package/dist/src/components/HomepageCarousel/HomepageCarousel.vue.d.ts +88 -0
- package/dist/src/components/HomepageCarouselItem/HomepageCarouselItem.vue.d.ts +44 -0
- package/dist/src/components/HomepageEmbedBlock/HomepageEmbedBlock.vue.d.ts +44 -0
- package/dist/src/components/HomepageMissionsCarousel/HomepageMissionsCarousel.stories.d.ts +44 -0
- package/dist/src/components/HomepageMissionsCarousel/HomepageMissionsCarousel.vue.d.ts +88 -0
- package/dist/src/components/HomepageMissionsCarousel/HomepageMissionsCarouselItem.vue.d.ts +44 -0
- package/dist/src/components/HomepageStats/HomepageStats.stories.d.ts +528 -0
- package/dist/src/components/HomepageStats/HomepageStats.vue.d.ts +88 -0
- package/dist/src/components/HomepageTeaserBlock/HomepageTeaserBlock.vue.d.ts +44 -0
- package/dist/src/components/Icons/IconBookmark.vue.d.ts +2 -0
- package/dist/src/components/Icons/IconHourglass.vue.d.ts +2 -0
- package/dist/src/components/Icons/IconLocationCrosshairs.vue.d.ts +2 -0
- package/dist/src/components/Icons/IconMap.vue.d.ts +2 -0
- package/dist/src/components/Icons/Icons.stories.d.ts +33 -0
- package/dist/src/components/MetadataStacked/MetadataStacked.stories.d.ts +18 -0
- package/dist/src/components/MetadataStacked/MetadataStacked.vue.d.ts +65 -0
- package/dist/src/components/MissionDetailHighlights/MissionDetailHighlights.vue.d.ts +44 -0
- package/dist/src/components/MissionDetailHighlights/MissionDetailHighlightsCarousel.vue.d.ts +44 -0
- package/dist/src/components/MissionDetailHighlights/MissionDetailHighlightsCarouselItem.vue.d.ts +44 -0
- package/dist/src/components/MissionDetailInlineImage/MissionDetailInlineImage.vue.d.ts +44 -0
- package/dist/src/components/MissionDetailStreamfield/MissionDetailStreamfield.vue.d.ts +132 -0
- package/dist/src/components/MixinAnimationCaret/MixinAnimationCaret.stories.d.ts +22 -0
- package/dist/src/components/MixinAnimationCaret/MixinAnimationCaret.vue.d.ts +26 -0
- package/dist/src/components/MixinCarousel/MixinCarousel.stories.d.ts +88 -0
- package/dist/src/components/MixinCarousel/MixinCarousel.vue.d.ts +44 -0
- package/dist/src/components/NavDesktop/NavDesktop.stories.d.ts +1188 -0
- package/dist/src/components/NavDesktop/NavDesktop.vue.d.ts +352 -0
- package/dist/src/components/NavDesktop/NavDesktopDropdownContent.vue.d.ts +132 -0
- package/dist/src/components/NavDesktop/NavDesktopDropdownMore.vue.d.ts +176 -0
- package/dist/src/components/NavDesktop/NavDesktopTopHat.vue.d.ts +44 -0
- package/dist/src/components/NavDesktopEdu/NavDesktopEdu.stories.d.ts +220 -0
- package/dist/src/components/NavDesktopEdu/NavDesktopEdu.vue.d.ts +220 -0
- package/dist/src/components/NavHeading/NavHeading.vue.d.ts +44 -0
- package/dist/src/components/NavHighlight/NavHighlight.vue.d.ts +44 -0
- package/dist/src/components/NavJumpMenu/NavJumpMenu.vue.d.ts +98 -0
- package/dist/src/components/NavJumpMenu/NavJumpMenuContent.vue.d.ts +44 -0
- package/dist/src/components/NavLinkList/NavLinkList.vue.d.ts +88 -0
- package/dist/src/components/NavLogoLinks/NavLogoLinks.stories.d.ts +44 -0
- package/dist/src/components/NavLogoLinks/NavLogoLinks.vue.d.ts +44 -0
- package/dist/src/components/NavMobile/NavMobile.stories.d.ts +968 -0
- package/dist/src/components/NavMobile/NavMobile.vue.d.ts +220 -0
- package/dist/src/components/NavMobile/NavMobileDropdown.vue.d.ts +88 -0
- package/dist/src/components/NavMobile/NavMobileEdu.stories.d.ts +660 -0
- package/dist/src/components/NavMobile/NavMobileLink.vue.d.ts +44 -0
- package/dist/src/components/NavMobile/NavMobileSecondaryDropdown.vue.d.ts +44 -0
- package/dist/src/components/NavSecondary/NavSecondary.vue.d.ts +105 -0
- package/dist/src/components/NavSecondary/NavSecondaryDropdown.vue.d.ts +44 -0
- package/dist/src/components/NavSecondary/NavSecondaryDropdownContent.vue.d.ts +44 -0
- package/dist/src/components/NavSecondary/NavSecondaryLink.vue.d.ts +44 -0
- package/dist/src/components/PastEventsCarousel/PastEventsCarousel.vue.d.ts +88 -0
- package/dist/src/components/PodcastEpisodeCard/PodcastEpisodeCard.vue.d.ts +44 -0
- package/dist/src/components/PodcastSeriesCarousel/PodcastSeriesCarousel.vue.d.ts +176 -0
- package/dist/src/components/SearchResultCard/SearchResultCard.stories.d.ts +11 -0
- package/dist/src/components/SearchResultCard/SearchResultCard.vue.d.ts +310 -0
- package/dist/src/components/SearchResultGridItem/SearchResultGridItem.vue.d.ts +132 -0
- package/dist/src/components/SearchResultsList/SearchResultsList.stories.d.ts +191 -0
- package/dist/src/components/SearchResultsList/SearchResultsList.vue.d.ts +451 -0
- package/dist/src/components/SwimlaneCTA/SwimlaneCTA.vue.d.ts +44 -0
- package/dist/src/components/TheFooter/TheFooter.vue.d.ts +44 -0
- package/dist/src/components/ThumbnailCarousel/ThumbnailCarousel.vue.d.ts +176 -0
- package/dist/src/components/TimelineDialog/TimelineDialog.stories.d.ts +88 -0
- package/dist/src/components/TimelineDialog/TimelineDialog.vue.d.ts +88 -0
- package/dist/src/components/TopicDetailMissionCarousel/TopicDetailMissionCarousel.vue.d.ts +88 -0
- package/dist/src/components/TopicDetailMissionCarouselItem/TopicDetailMissionCarouselItem.vue.d.ts +44 -0
- package/dist/src/components/TopicDetailMore/TopicDetailMore.stories.d.ts +44 -0
- package/dist/src/components/TopicDetailMore/TopicDetailMore.vue.d.ts +44 -0
- package/dist/src/components/TopicDetailMoreItem/TopicDetailMoreItem.vue.d.ts +44 -0
- package/dist/src/components/TopicDetailStreamfield/TopicDetailStreamfield.vue.d.ts +132 -0
- package/dist/src/interfaces.d.ts +36 -1
- package/dist/src/templates/PageAudioDetail/PageAudioDetail.vue.d.ts +440 -0
- package/dist/src/templates/PageContent/PageContent.vue.d.ts +1199 -0
- package/dist/src/templates/PageEventDetail/PageEventDetail.vue.d.ts +1012 -0
- package/dist/src/templates/PageImageDetail/PageImageDetail.vue.d.ts +1188 -0
- package/dist/src/templates/PageNewsDetail/PageNewsDetail.vue.d.ts +1056 -0
- package/dist/src/templates/PageVideoDetail/PageVideoDetail.vue.d.ts +220 -0
- package/dist/src/templates/edu/PageEduCollectionsDetail/PageEduCollectionsDetail.vue.d.ts +98 -0
- package/dist/src/templates/edu/PageEduEventDetail/PageEduEventDetail.vue.d.ts +1012 -0
- package/dist/src/templates/edu/PageEduExplainerArticle/PageEduExplainerArticle.vue.d.ts +1154 -0
- package/dist/src/templates/edu/PageEduLesson/PageEduLesson.vue.d.ts +98 -0
- package/dist/src/templates/edu/PageEduNewsDetail/PageEduNewsDetail.vue.d.ts +98 -0
- package/dist/src/templates/edu/PageEduStudentProject/PageEduStudentProject.vue.d.ts +98 -0
- package/dist/src/templates/edu/PageEduTeachableMoment/PageEduTeachableMoment.vue.d.ts +98 -0
- package/dist/src/templates/explore-jpl/BaseExploreApp/BaseExploreApp.stories.d.ts +21 -0
- package/dist/src/templates/explore-jpl/BaseExploreApp/BaseExploreApp.vue.d.ts +41 -0
- package/dist/src/templates/explore-jpl/PageContentExploreApp/PageContentExploreApp.stories.d.ts +193 -0
- package/dist/src/templates/explore-jpl/PageContentExploreApp/PageContentExploreApp.vue.d.ts +15 -0
- package/dist/src/templates/explore-jpl/PageSiteExploreApp/PageSiteExploreApp.stories.d.ts +80 -0
- package/dist/src/templates/explore-jpl/PageSiteExploreApp/PageSiteExploreApp.vue.d.ts +15 -0
- package/dist/src/templates/www/PageAsteroidWatchIndex/PageAsteroidWatchIndex.vue.d.ts +1023 -2
- package/dist/src/templates/www/PageCuratedGallery/PageCuratedGallery.vue.d.ts +968 -0
- package/dist/src/templates/www/PageGoDirectory/PageGoDirectory.vue.d.ts +354 -0
- package/dist/src/templates/www/PageHomepage/PageHomepage.vue.d.ts +572 -0
- package/dist/src/templates/www/PageInfographicDetail/PageInfographicDetail.vue.d.ts +44 -0
- package/dist/src/templates/www/PageMissionDetail/PageMissionDetail.vue.d.ts +352 -0
- package/dist/src/templates/www/PagePodcast/PagePodcast.vue.d.ts +706 -0
- package/dist/src/templates/www/PagePodcastSeason/PagePodcastSeason.vue.d.ts +530 -0
- package/dist/src/templates/www/PagePressKitIndex/PagePressKitIndex.vue.d.ts +354 -0
- package/dist/src/templates/www/PageProfileDetail/PageProfileDetail.vue.d.ts +97 -0
- package/dist/src/templates/www/PageRoboticsDetail/PageRoboticsDetail.vue.d.ts +1056 -0
- package/dist/src/templates/www/PageTimeline/PageTimeline.vue.d.ts +185 -0
- package/dist/src/templates/www/PageTopicDetail/PageTopicDetail.vue.d.ts +396 -0
- package/package.json +25 -24
- package/src/components/AttractionCard/AttractionCard.vue +113 -0
- package/src/components/BaseButton/BaseButton.stories.ts +2 -2
- package/src/components/BaseButton/BaseButton.vue +6 -6
- package/src/components/BaseCarousel/BaseCarousel.vue +2 -2
- package/src/components/BaseLink/BaseLink.stories.js +8 -0
- package/src/components/BaseLink/BaseLink.vue +21 -1
- package/src/components/BlockAccordion/BlockAccordion.vue +1 -1
- package/src/components/BlockCsrTable/BlockCsrTable.vue +1 -1
- package/src/components/BlockCsrTable/CsrTestLimitsTable.vue +1 -0
- package/src/components/BlockCta/BlockCta.vue +1 -1
- package/src/components/BlockGist/BlockGist.vue +2 -1
- package/src/components/BlockImageCarousel/BlockImageCarousel.vue +2 -2
- package/src/components/BlockLinkCard/BlockLinkCardCollectionLg.vue +1 -1
- package/src/components/CalendarChip/CalendarChip.vue +1 -1
- package/src/components/HeroInlineMedia/HeroInlineMedia.vue +1 -1
- package/src/components/HomepageMissionsCarousel/HomepageMissionsCarousel.vue +2 -2
- package/src/components/Icons/IconBookmark.vue +25 -0
- package/src/components/Icons/IconHourglass.vue +35 -0
- package/src/components/Icons/IconLocationCrosshairs.vue +26 -0
- package/src/components/Icons/IconMap.vue +26 -0
- package/src/components/Icons/Icons.stories.ts +29 -0
- package/src/components/MetaPanel/MetaPanel.vue +1 -1
- package/src/components/MetadataEduResource/MetadataEduResource.vue +1 -1
- package/src/components/MetadataEvent/MetadataEvent.vue +1 -1
- package/src/components/MetadataStacked/MetadataStacked.stories.js +21 -0
- package/src/components/MetadataStacked/MetadataStacked.vue +71 -0
- package/src/components/MissionDetailHero/MissionDetailHero.vue +1 -1
- package/src/components/MissionDetailHighlights/MissionDetailHighlights.vue +24 -19
- package/src/components/MissionDetailHighlights/MissionDetailHighlightsCarousel.vue +2 -2
- package/src/components/MixinAnimationCaret/MixinAnimationCaret.vue +34 -0
- package/src/components/MixinCarousel/MixinCarousel.vue +2 -2
- package/src/components/MixinFancybox/MixinFancybox.vue +2 -3
- package/src/components/NavDesktop/NavDesktopDropdownMore.vue +1 -1
- package/src/components/NavJumpMenu/NavJumpMenu.vue +2 -2
- package/src/components/NavJumpMenu/NavJumpMenuContent.vue +1 -1
- package/src/components/NavSearchForm/NavSearchForm.vue +1 -1
- package/src/components/NavSecondary/NavSecondary.vue +11 -2
- package/src/components/NavSocial/NavSocial.vue +1 -1
- package/src/components/RoboticsDetailStats/RoboticsDetailStats.vue +3 -3
- package/src/components/SearchFilterGroup/SearchFilterGroup.vue +10 -4
- package/src/components/SearchPagination/SearchPagination.vue +2 -2
- package/src/components/SearchResultCard/SearchResultCard.stories.js +11 -0
- package/src/components/SearchResultCard/SearchResultCard.vue +31 -1
- package/src/components/SearchResultsList/SearchResultsList.stories.js +870 -0
- package/src/components/SearchResultsList/SearchResultsList.vue +19 -2
- package/src/components/ShareButtons/ShareButtons.vue +4 -4
- package/src/components/ShareButtonsEdu/ShareButtonsEdu.vue +1 -1
- package/src/components/TextArea/TextArea.vue +2 -1
- package/src/components/TextInput/TextInput.vue +1 -1
- package/src/components/TopicDetailMore/TopicDetailMore.vue +1 -1
- package/src/interfaces.ts +40 -1
- package/src/main.ts +1 -1
- package/src/templates/PageAudioDetail/PageAudioDetail.vue +9 -8
- package/src/templates/PageContent/PageContent.vue +2 -0
- package/src/templates/edu/PageEduNewsDetail/PageEduNewsDetail.vue +1 -1
- package/src/templates/edu/PageEduStudentProject/PageEduStudentProject.vue +1 -1
- package/src/templates/explore-jpl/BaseExploreApp/BaseExploreApp.stories.js +22 -0
- package/src/templates/explore-jpl/BaseExploreApp/BaseExploreApp.vue +65 -0
- package/src/templates/explore-jpl/PageContentExploreApp/PageContentExploreApp.stories.js +102 -0
- package/src/templates/explore-jpl/PageContentExploreApp/PageContentExploreApp.vue +128 -0
- package/src/templates/explore-jpl/PageSiteExploreApp/PageSiteExploreApp.stories.js +90 -0
- package/src/templates/explore-jpl/PageSiteExploreApp/PageSiteExploreApp.vue +166 -0
- package/vite.config.ts +0 -2
- package/dist/src/components/BlockCsrTable/CsrAttachment.vue.d.ts +0 -19
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { BlockLinkCardCarouselData } from './../../../components/BlockLinkCarousel/BlockLinkCarousel.stories.js'
|
|
2
|
+
|
|
3
|
+
import PageSiteExploreApp from './PageSiteExploreApp.vue'
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Templates/ExploreJPL/PageSiteExploreApp',
|
|
7
|
+
component: PageSiteExploreApp,
|
|
8
|
+
tags: ['!autodocs'],
|
|
9
|
+
parameters: {
|
|
10
|
+
html: {
|
|
11
|
+
root: '#storyRoot'
|
|
12
|
+
},
|
|
13
|
+
layout: 'fullscreen'
|
|
14
|
+
},
|
|
15
|
+
excludeStories: /.*(Data)$/
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// data
|
|
19
|
+
export const ExploreAppSitePageData = {
|
|
20
|
+
id: '156',
|
|
21
|
+
url: '/slug',
|
|
22
|
+
title: 'Sites',
|
|
23
|
+
displayLabel: 'Explore JPL',
|
|
24
|
+
showShareLinks: false,
|
|
25
|
+
thumbnailImage: {
|
|
26
|
+
url: 'https://picsum.photos/512/288',
|
|
27
|
+
width: 512,
|
|
28
|
+
height: 288,
|
|
29
|
+
id: 12345
|
|
30
|
+
},
|
|
31
|
+
location: 'Cafe 186',
|
|
32
|
+
waitTime: '60',
|
|
33
|
+
waitTimeLabel: '60 minute wait',
|
|
34
|
+
locationIcon: '',
|
|
35
|
+
body: [
|
|
36
|
+
{
|
|
37
|
+
blockType: 'RichTextBlock',
|
|
38
|
+
value:
|
|
39
|
+
'<p>Lorem ipsum <a href="/missions/test-mission/">dolor</a> sit amet, consectetur adipiscing elit. Quisque vitae justo quis justo malesuada molestie. Cras sed tincidunt dui.</p><p>Integer imperdiet blandit neque vitae euismod. Nulla aliquet lacus nibh, vel tincidunt urna efficitur non. In et eros vitae ex posuere maximus quis eget urna. Suspendisse fringilla posuere velit sit amet posuere. Morbi malesuada bibendum vehicula. Donec faucibus ut erat ut mattis. Suspendisse ornare, quam at placerat cursus, dolor mi lacinia nunc, eget maximus augue nulla in dolor.</p>\n'
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
blockType: 'RichTextBlock',
|
|
43
|
+
value:
|
|
44
|
+
'<p>Lorem ipsum <a href="/missions/test-mission/">dolor</a> sit amet, consectetur adipiscing elit. Quisque vitae justo quis justo malesuada molestie. Cras sed tincidunt dui.</p><p>Integer imperdiet blandit neque vitae euismod. Nulla aliquet lacus nibh, vel tincidunt urna efficitur non. In et eros vitae ex posuere maximus quis eget urna. Suspendisse fringilla posuere velit sit amet posuere. Morbi malesuada bibendum vehicula. Donec faucibus ut erat ut mattis. Suspendisse ornare, quam at placerat cursus, dolor mi lacinia nunc, eget maximus augue nulla in dolor.</p>\n'
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
relatedPagesForMoreSection: [
|
|
48
|
+
{
|
|
49
|
+
title: 'Cafeteria 303',
|
|
50
|
+
url: 'https://www.nasa.gov',
|
|
51
|
+
thumbnailImage: {
|
|
52
|
+
src: {
|
|
53
|
+
url: 'https://picsum.photos/512/288?random=1',
|
|
54
|
+
width: 512,
|
|
55
|
+
height: 288
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
title: 'Highbay 1',
|
|
61
|
+
url: 'https://www.nasa.gov',
|
|
62
|
+
thumbnailImage: {
|
|
63
|
+
src: {
|
|
64
|
+
url: 'https://picsum.photos/512/288?random=2',
|
|
65
|
+
width: 512,
|
|
66
|
+
height: 288
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
title: 'Building 111',
|
|
72
|
+
url: 'https://www.nasa.gov',
|
|
73
|
+
thumbnailImage: {
|
|
74
|
+
src: {
|
|
75
|
+
url: 'https://picsum.photos/512/288?random=3',
|
|
76
|
+
width: 512,
|
|
77
|
+
height: 288
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
...BlockLinkCardCarouselData
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// stories
|
|
86
|
+
export const BaseStory = {
|
|
87
|
+
args: {
|
|
88
|
+
data: ExploreAppSitePageData
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed, reactive } from 'vue'
|
|
3
|
+
import { useRoute } from 'vue-router'
|
|
4
|
+
import type { PageObject } from '../../../interfaces'
|
|
5
|
+
import { useThemeStore } from '../../../store/theme'
|
|
6
|
+
import LayoutHelper from './../../../components/LayoutHelper/LayoutHelper.vue'
|
|
7
|
+
import DetailHeadline from './../../../components/DetailHeadline/DetailHeadline.vue'
|
|
8
|
+
import BlockImageStandard from './../../../components/BlockImage/BlockImageStandard.vue'
|
|
9
|
+
import ShareButtons from './../../../components/ShareButtons/ShareButtons.vue'
|
|
10
|
+
import BlockStreamfield from './../../../components/BlockStreamfield/BlockStreamfield.vue'
|
|
11
|
+
import BlockLinkCarousel from './../../../components/BlockLinkCarousel/BlockLinkCarousel.vue'
|
|
12
|
+
import BaseExploreApp from './../../explore-jpl/BaseExploreApp/BaseExploreApp.vue'
|
|
13
|
+
import BaseButton from '../../../components/BaseButton/BaseButton.vue'
|
|
14
|
+
import BaseLink from '../../../components/BaseLink/BaseLink.vue'
|
|
15
|
+
import MetadataStacked from '../../../components/MetadataStacked/MetadataStacked.vue'
|
|
16
|
+
import IconMap from '../../../components/Icons/IconMap.vue'
|
|
17
|
+
|
|
18
|
+
const themeStore = useThemeStore()
|
|
19
|
+
const route = useRoute()
|
|
20
|
+
|
|
21
|
+
const props = defineProps({
|
|
22
|
+
data: {
|
|
23
|
+
type: Object as () => PageObject,
|
|
24
|
+
default: undefined
|
|
25
|
+
}
|
|
26
|
+
})
|
|
27
|
+
const { data } = reactive(props)
|
|
28
|
+
|
|
29
|
+
// Convert thumbnailImage data for BlockImageStandard compatibility
|
|
30
|
+
const detailImage = computed(() => {
|
|
31
|
+
return {
|
|
32
|
+
src: {
|
|
33
|
+
url: data?.thumbnailImage?.url!,
|
|
34
|
+
width: data?.thumbnailImage?.width!,
|
|
35
|
+
height: data?.thumbnailImage?.height!
|
|
36
|
+
},
|
|
37
|
+
srcCropped: {
|
|
38
|
+
url: data?.thumbnailImage?.url!,
|
|
39
|
+
width: data?.thumbnailImage?.width!,
|
|
40
|
+
height: data?.thumbnailImage?.height!
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
})
|
|
44
|
+
|
|
45
|
+
// Handle navigating back to Sites page
|
|
46
|
+
const previousPath = computed(() => {
|
|
47
|
+
try {
|
|
48
|
+
const path = route.path
|
|
49
|
+
|
|
50
|
+
// Split URL segments and remove last item
|
|
51
|
+
const segements = path.split('/').filter(Boolean)
|
|
52
|
+
segements.pop()
|
|
53
|
+
|
|
54
|
+
// Return Sites path
|
|
55
|
+
return '/' + segements.join('/')
|
|
56
|
+
} catch (e) {
|
|
57
|
+
return '/'
|
|
58
|
+
}
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
// Handle opening map to focus on respective site
|
|
62
|
+
const mapPath = computed(() => {
|
|
63
|
+
try {
|
|
64
|
+
const path = route.path
|
|
65
|
+
|
|
66
|
+
// Split URL segments and remove last 2 items
|
|
67
|
+
const segements = path.split('/').filter(Boolean)
|
|
68
|
+
segements.pop()
|
|
69
|
+
segements.pop()
|
|
70
|
+
|
|
71
|
+
// Return map path and id query parameter
|
|
72
|
+
return '/' + segements.join('/') + '/map/?id=' + data?.id
|
|
73
|
+
} catch (e) {
|
|
74
|
+
return ''
|
|
75
|
+
}
|
|
76
|
+
})
|
|
77
|
+
</script>
|
|
78
|
+
<template>
|
|
79
|
+
<div
|
|
80
|
+
v-if="data"
|
|
81
|
+
class="ThemeVariantLight"
|
|
82
|
+
>
|
|
83
|
+
<BaseExploreApp :nav-data="data.breadcrumb">
|
|
84
|
+
<template #default>
|
|
85
|
+
<!-- back nav -->
|
|
86
|
+
<LayoutHelper
|
|
87
|
+
indent="col-2"
|
|
88
|
+
class="mb-5"
|
|
89
|
+
>
|
|
90
|
+
<BaseLink
|
|
91
|
+
class="BackToSitesBtn"
|
|
92
|
+
variant="primary"
|
|
93
|
+
:caret-left="true"
|
|
94
|
+
caret-margin-right="mr-1"
|
|
95
|
+
:to="previousPath"
|
|
96
|
+
>Back to Sites</BaseLink
|
|
97
|
+
>
|
|
98
|
+
</LayoutHelper>
|
|
99
|
+
|
|
100
|
+
<!-- page title area -->
|
|
101
|
+
<LayoutHelper indent="col-2">
|
|
102
|
+
<DetailHeadline
|
|
103
|
+
:title="data.title"
|
|
104
|
+
class="mb-5"
|
|
105
|
+
/>
|
|
106
|
+
<MetadataStacked
|
|
107
|
+
:location="data.location"
|
|
108
|
+
:location-icon="data?.mapIcon?.url"
|
|
109
|
+
:wait="data?.waitTimeLabel"
|
|
110
|
+
/>
|
|
111
|
+
</LayoutHelper>
|
|
112
|
+
|
|
113
|
+
<!-- inline hero image -->
|
|
114
|
+
<LayoutHelper
|
|
115
|
+
indent="col-2"
|
|
116
|
+
class="lg:mb-22 mt-10 mb-10"
|
|
117
|
+
>
|
|
118
|
+
<BlockImageStandard :data="detailImage" />
|
|
119
|
+
</LayoutHelper>
|
|
120
|
+
|
|
121
|
+
<!-- share buttons -->
|
|
122
|
+
<LayoutHelper
|
|
123
|
+
v-if="themeStore.theme !== 'ThemeEdu'"
|
|
124
|
+
indent="col-2"
|
|
125
|
+
class="lg:mb-0 relative mb-8"
|
|
126
|
+
>
|
|
127
|
+
<ShareButtons
|
|
128
|
+
v-if="data.showShareLinks && data.title && data.url && !themeStore.isEdu"
|
|
129
|
+
:title="data.title"
|
|
130
|
+
:url="data.url"
|
|
131
|
+
/>
|
|
132
|
+
</LayoutHelper>
|
|
133
|
+
|
|
134
|
+
<!-- Body Streamfield -->
|
|
135
|
+
<BlockStreamfield :data="data.body" />
|
|
136
|
+
|
|
137
|
+
<!-- See on Map Button -->
|
|
138
|
+
<LayoutHelper
|
|
139
|
+
indent="col-3"
|
|
140
|
+
class="lg:mb-24 mb-12"
|
|
141
|
+
>
|
|
142
|
+
<BaseButton :to="mapPath">
|
|
143
|
+
<template #iconLeft>
|
|
144
|
+
<IconMap class="mr-2 text-2xl" />
|
|
145
|
+
</template>
|
|
146
|
+
<template #default>See on Map</template>
|
|
147
|
+
</BaseButton>
|
|
148
|
+
</LayoutHelper>
|
|
149
|
+
|
|
150
|
+
<!-- related content -->
|
|
151
|
+
<BlockLinkCarousel
|
|
152
|
+
v-if="data?.relatedPagesForMoreSection"
|
|
153
|
+
item-type="cards"
|
|
154
|
+
class="lg:my-24 my-12"
|
|
155
|
+
heading="More Like This"
|
|
156
|
+
:items="data.relatedPagesForMoreSection"
|
|
157
|
+
/>
|
|
158
|
+
</template>
|
|
159
|
+
</BaseExploreApp>
|
|
160
|
+
</div>
|
|
161
|
+
</template>
|
|
162
|
+
<style lang="scss" scoped>
|
|
163
|
+
.BackToSitesBtn {
|
|
164
|
+
margin-left: -10px;
|
|
165
|
+
}
|
|
166
|
+
</style>
|
package/vite.config.ts
CHANGED
|
@@ -19,8 +19,6 @@ export default defineConfig({
|
|
|
19
19
|
preprocessorOptions: {
|
|
20
20
|
scss: {
|
|
21
21
|
silenceDeprecations: [
|
|
22
|
-
// Deprecation Warning: https://sass-lang.com/d/mixed-decls
|
|
23
|
-
'mixed-decls',
|
|
24
22
|
// Deprecation Warning: https://sass-lang.com/d/import
|
|
25
23
|
'import',
|
|
26
24
|
// Deprecation Warning: https://sass-lang.com/d/legacy-js-api
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
interface CsrAttachmentProps {
|
|
2
|
-
params: {
|
|
3
|
-
data: {
|
|
4
|
-
Attachment: string;
|
|
5
|
-
};
|
|
6
|
-
/** Example values: `https://test-api.jpl.nasa.gov/attachments?key=`, `https://test-api.jpl.nasa.gov/` */
|
|
7
|
-
attachmentPrefix: string;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
declare const _default: import('vue').DefineComponent<CsrAttachmentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CsrAttachmentProps> & Readonly<{}>, {
|
|
11
|
-
params: {
|
|
12
|
-
data: {
|
|
13
|
-
Attachment: string;
|
|
14
|
-
};
|
|
15
|
-
/** Example values: `https://test-api.jpl.nasa.gov/attachments?key=`, `https://test-api.jpl.nasa.gov/` */
|
|
16
|
-
attachmentPrefix: string;
|
|
17
|
-
};
|
|
18
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
|
-
export default _default;
|