@explorer-1/vue 0.0.0
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/LICENSE +21 -0
- package/README.md +9 -0
- package/components.d.ts +215 -0
- package/index.html +18 -0
- package/lib/main.ts +78 -0
- package/package.json +54 -0
- package/postcss.config.js +7 -0
- package/public/edu/.gitkeep +0 -0
- package/public/edu/explorer-1/bg-stars-edu.png +0 -0
- package/public/edu/explorer-1/bg-stars.jpg +0 -0
- package/public/explorer-1/bg-stars-edu.png +0 -0
- package/public/explorer-1/bg-stars.jpg +0 -0
- package/src/App.vue +30 -0
- package/src/assets/fonts/README.md +12 -0
- package/src/assets/fonts/archivo-narrow/ArchivoNarrow-Bold.woff2 +0 -0
- package/src/assets/fonts/archivo-narrow/ArchivoNarrow-BoldItalic.woff2 +0 -0
- package/src/assets/fonts/archivo-narrow/ArchivoNarrow-SemiBold.woff2 +0 -0
- package/src/assets/fonts/archivo-narrow/ArchivoNarrow-SemiBoldItalic.woff2 +0 -0
- package/src/assets/fonts/metropolis/Metropolis-Bold.woff2 +0 -0
- package/src/assets/fonts/metropolis/Metropolis-BoldItalic.woff2 +0 -0
- package/src/assets/fonts/metropolis/Metropolis-ExtraBold.woff2 +0 -0
- package/src/assets/fonts/metropolis/Metropolis-Medium.woff2 +0 -0
- package/src/assets/fonts/metropolis/Metropolis-MediumItalic.woff2 +0 -0
- package/src/assets/fonts/metropolis/Metropolis-Regular.woff2 +0 -0
- package/src/assets/fonts/metropolis/Metropolis-RegularItalic.woff2 +0 -0
- package/src/assets/fonts/metropolis/Metropolis-SemiBold.woff2 +0 -0
- package/src/assets/fonts/metropolis/Metropolis-SemiBoldItalic.woff2 +0 -0
- package/src/assets/scss/styles.scss +1 -0
- package/src/components/AsteroidWatchWidget/AsteroidWatchWidget.stories.js +156 -0
- package/src/components/AsteroidWatchWidget/AsteroidWatchWidget.vue +156 -0
- package/src/components/BackToTop/BackToTop.stories.js +24 -0
- package/src/components/BackToTop/BackToTop.vue +76 -0
- package/src/components/BaseAudio/BaseAudio.stories.js +29 -0
- package/src/components/BaseAudio/BaseAudio.vue +359 -0
- package/src/components/BaseButton/BaseButton.stories.ts +65 -0
- package/src/components/BaseButton/BaseButton.vue +114 -0
- package/src/components/BaseCheckboxGroup/BaseCheckboxGroup.stories.mdx +68 -0
- package/src/components/BaseCheckboxGroup/BaseCheckboxGroup.vue +101 -0
- package/src/components/BaseHeading/BaseHeading.stories.js +75 -0
- package/src/components/BaseHeading/BaseHeading.vue +58 -0
- package/src/components/BaseImage/BaseImage.stories.ts +52 -0
- package/src/components/BaseImage/BaseImage.vue +120 -0
- package/src/components/BaseImageCaption/BaseImageCaption.stories.js +27 -0
- package/src/components/BaseImageCaption/BaseImageCaption.vue +51 -0
- package/src/components/BaseImagePlaceholder/BaseImagePlaceholder.stories.js +73 -0
- package/src/components/BaseImagePlaceholder/BaseImagePlaceholder.vue +90 -0
- package/src/components/BaseLightboxCloseButton/BaseLightboxCloseButton.vue +45 -0
- package/src/components/BaseLightboxOpenButton/BaseLightboxOpenButton.vue +46 -0
- package/src/components/BaseLink/BaseLink.stories.js +47 -0
- package/src/components/BaseLink/BaseLink.vue +227 -0
- package/src/components/BaseModal/BaseModal.stories.js +90 -0
- package/src/components/BaseModal/BaseModal.vue +54 -0
- package/src/components/BaseModal/BaseModalDialog.vue +59 -0
- package/src/components/BasePlaceholder/BasePlaceholder.stories.js +29 -0
- package/src/components/BasePlaceholder/BasePlaceholder.vue +30 -0
- package/src/components/BaseRadioGroup/BaseRadioGroup.stories.mdx +68 -0
- package/src/components/BaseRadioGroup/BaseRadioGroup.vue +102 -0
- package/src/components/BaseSwimlane/BaseSwimlane.stories.mdx +64 -0
- package/src/components/BaseSwimlane/BaseSwimlane.vue +204 -0
- package/src/components/BaseTag/BaseTag.stories.js +34 -0
- package/src/components/BaseTag/BaseTag.vue +36 -0
- package/src/components/BaseTimer/BaseTimer.stories.js +78 -0
- package/src/components/BaseTimer/BaseTimer.test.js +15 -0
- package/src/components/BaseTimer/BaseTimer.vue +270 -0
- package/src/components/BaseUnitToggle/BaseUnitToggle.stories.js +86 -0
- package/src/components/BaseUnitToggle/BaseUnitToggle.test.js +26 -0
- package/src/components/BaseUnitToggle/BaseUnitToggle.vue +255 -0
- package/src/components/BaseVideo/BaseVideo.stories.js +31 -0
- package/src/components/BaseVideo/BaseVideo.vue +73 -0
- package/src/components/BlockAnchor/BlockAnchor.vue +38 -0
- package/src/components/BlockAudio/BlockAudio.stories.js +29 -0
- package/src/components/BlockAudio/BlockAudio.vue +78 -0
- package/src/components/BlockCard/BlockCard.stories.js +24 -0
- package/src/components/BlockCard/BlockCard.vue +88 -0
- package/src/components/BlockCardGroup/BlockCardGroup.stories.js +71 -0
- package/src/components/BlockCardGroup/BlockCardGroup.vue +61 -0
- package/src/components/BlockCircleImageCard/BlockCircleImageCard.stories.js +55 -0
- package/src/components/BlockCircleImageCard/BlockCircleImageCard.vue +120 -0
- package/src/components/BlockCta/BlockCta.stories.js +35 -0
- package/src/components/BlockCta/BlockCta.vue +55 -0
- package/src/components/BlockHeading/BlockHeading.stories.js +22 -0
- package/src/components/BlockHeading/BlockHeading.vue +27 -0
- package/src/components/BlockIframeEmbed/BlockIframeEmbed.stories.js +40 -0
- package/src/components/BlockIframeEmbed/BlockIframeEmbed.vue +84 -0
- package/src/components/BlockImage/BlockImage.stories.js +137 -0
- package/src/components/BlockImage/BlockImage.vue +48 -0
- package/src/components/BlockImage/BlockImageFullBleed.vue +119 -0
- package/src/components/BlockImage/BlockImageStandard.vue +106 -0
- package/src/components/BlockImageCarousel/BlockImageCarousel.stories.js +108 -0
- package/src/components/BlockImageCarousel/BlockImageCarousel.vue +201 -0
- package/src/components/BlockImageCarouselItem/BlockImageCarouselItem.stories.js +63 -0
- package/src/components/BlockImageCarouselItem/BlockImageCarouselItem.vue +120 -0
- package/src/components/BlockImageComparison/BlockImageComparison.stories.js +46 -0
- package/src/components/BlockImageComparison/BlockImageComparison.vue +59 -0
- package/src/components/BlockImageGallery/BlockImageGallery.stories.js +55 -0
- package/src/components/BlockImageGallery/BlockImageGallery.vue +128 -0
- package/src/components/BlockInlineImage/BlockInlineImage.stories.js +68 -0
- package/src/components/BlockInlineImage/BlockInlineImage.vue +124 -0
- package/src/components/BlockKeyPoints/BlockKeyPoints.stories.js +28 -0
- package/src/components/BlockKeyPoints/BlockKeyPoints.vue +48 -0
- package/src/components/BlockLinkCard/BlockLinkCard.stories.js +102 -0
- package/src/components/BlockLinkCard/BlockLinkCard.vue +197 -0
- package/src/components/BlockLinkCarousel/BlockLinkCarousel.stories.js +217 -0
- package/src/components/BlockLinkCarousel/BlockLinkCarousel.vue +68 -0
- package/src/components/BlockLinkTile/BlockLinkTile.stories.js +72 -0
- package/src/components/BlockLinkTile/BlockLinkTile.vue +193 -0
- package/src/components/BlockListCards/BlockListCards.stories.js +69 -0
- package/src/components/BlockListCards/BlockListCards.vue +129 -0
- package/src/components/BlockQuote/BlockQuote.stories.js +84 -0
- package/src/components/BlockQuote/BlockQuote.vue +87 -0
- package/src/components/BlockRelatedLinks/BlockRelatedLinks.stories.js +60 -0
- package/src/components/BlockRelatedLinks/BlockRelatedLinks.vue +77 -0
- package/src/components/BlockRelatedLinks/RelatedLink.vue +85 -0
- package/src/components/BlockStreamfield/BlockStreamfield.stories.js +88 -0
- package/src/components/BlockStreamfield/BlockStreamfield.vue +333 -0
- package/src/components/BlockTable/BlockTable.stories.js +20 -0
- package/src/components/BlockTable/BlockTable.vue +73 -0
- package/src/components/BlockTeaser/BlockTeaser.stories.js +74 -0
- package/src/components/BlockTeaser/BlockTeaser.test.js +12 -0
- package/src/components/BlockTeaser/BlockTeaser.vue +174 -0
- package/src/components/BlockText/BlockText.stories.js +21 -0
- package/src/components/BlockText/BlockText.vue +44 -0
- package/src/components/BlockTwitterEmbed/BlockTwitterEmbed.stories.js +19 -0
- package/src/components/BlockTwitterEmbed/BlockTwitterEmbed.vue +61 -0
- package/src/components/BlockVideo/BlockVideo.stories.js +23 -0
- package/src/components/BlockVideo/BlockVideo.vue +41 -0
- package/src/components/BlockVideoEmbed/BlockVideoEmbed.stories.js +20 -0
- package/src/components/BlockVideoEmbed/BlockVideoEmbed.vue +71 -0
- package/src/components/CalendarButton/CalendarButton.stories.js +36 -0
- package/src/components/CalendarButton/CalendarButton.vue +86 -0
- package/src/components/DetailHeadline/DetailHeadline.stories.js +48 -0
- package/src/components/DetailHeadline/DetailHeadline.vue +143 -0
- package/src/components/DsnWidget/DsnWidget.stories.js +29 -0
- package/src/components/DsnWidget/DsnWidget.vue +96 -0
- package/src/components/EventCard/EventCard.vue +188 -0
- package/src/components/EventDetailHero/EventDetailHero.stories.js +53 -0
- package/src/components/EventDetailHero/EventDetailHero.vue +64 -0
- package/src/components/FormContact/FormContact.stories.js +16 -0
- package/src/components/FormContact/FormContact.vue +202 -0
- package/src/components/FormNewsletterSignup/FormNewsletterSignup.stories.js +16 -0
- package/src/components/FormNewsletterSignup/FormNewsletterSignup.vue +355 -0
- package/src/components/HeroLarge/HeroLarge.stories.js +46 -0
- package/src/components/HeroLarge/HeroLarge.vue +93 -0
- package/src/components/HeroListingIndex/HeroListingIndex.stories.js +156 -0
- package/src/components/HeroListingIndex/HeroListingIndex.vue +80 -0
- package/src/components/HeroMedia/HeroMedia.stories.js +135 -0
- package/src/components/HeroMedia/HeroMedia.vue +174 -0
- package/src/components/HeroMedium/HeroMedium.stories.js +73 -0
- package/src/components/HeroMedium/HeroMedium.vue +166 -0
- package/src/components/HomepageCarousel/HomepageCarousel.stories.js +112 -0
- package/src/components/HomepageCarousel/HomepageCarousel.vue +382 -0
- package/src/components/HomepageCarouselItem/HomepageCarouselItem.stories.js +60 -0
- package/src/components/HomepageCarouselItem/HomepageCarouselItem.vue +168 -0
- package/src/components/HomepageEmbedBlock/HomepageEmbedBlock.stories.js +35 -0
- package/src/components/HomepageEmbedBlock/HomepageEmbedBlock.vue +39 -0
- package/src/components/HomepageFeaturedRobot/HomepageFeaturedRobot.stories.js +93 -0
- package/src/components/HomepageFeaturedRobot/HomepageFeaturedRobot.vue +129 -0
- package/src/components/HomepageMissionsCarousel/HomepageMissionsCarousel.stories.js +153 -0
- package/src/components/HomepageMissionsCarousel/HomepageMissionsCarousel.vue +282 -0
- package/src/components/HomepageMissionsCarousel/HomepageMissionsCarouselItem.vue +143 -0
- package/src/components/HomepageStats/HomepageStats.stories.js +155 -0
- package/src/components/HomepageStats/HomepageStats.vue +362 -0
- package/src/components/HomepageTeaserBlock/HomepageTeaserBlock.stories.js +90 -0
- package/src/components/HomepageTeaserBlock/HomepageTeaserBlock.vue +156 -0
- package/src/components/HomepageTeaserBlock/HomepageTeaserBlockCardImage.vue +58 -0
- package/src/components/Icons/Icon360.vue +29 -0
- package/src/components/Icons/IconArrow.vue +26 -0
- package/src/components/Icons/IconArrows.vue +43 -0
- package/src/components/Icons/IconAudio.vue +27 -0
- package/src/components/Icons/IconBook.vue +21 -0
- package/src/components/Icons/IconBookUser.vue +21 -0
- package/src/components/Icons/IconBriefcase.vue +21 -0
- package/src/components/Icons/IconCalendar.vue +25 -0
- package/src/components/Icons/IconCaret.vue +26 -0
- package/src/components/Icons/IconCheckbox.vue +26 -0
- package/src/components/Icons/IconCheckboxSelected.vue +35 -0
- package/src/components/Icons/IconClose.vue +27 -0
- package/src/components/Icons/IconCloseLightbox.vue +25 -0
- package/src/components/Icons/IconDownload.vue +31 -0
- package/src/components/Icons/IconDropdown.vue +25 -0
- package/src/components/Icons/IconEnvelope.vue +21 -0
- package/src/components/Icons/IconExpand.vue +28 -0
- package/src/components/Icons/IconExternal.vue +25 -0
- package/src/components/Icons/IconFilter.vue +25 -0
- package/src/components/Icons/IconForwardTen.vue +38 -0
- package/src/components/Icons/IconGrid.vue +25 -0
- package/src/components/Icons/IconHand.vue +21 -0
- package/src/components/Icons/IconInfo.vue +26 -0
- package/src/components/Icons/IconLink.vue +27 -0
- package/src/components/Icons/IconList.vue +25 -0
- package/src/components/Icons/IconLocation.vue +37 -0
- package/src/components/Icons/IconMagnifyingGlass.vue +21 -0
- package/src/components/Icons/IconMedal.vue +21 -0
- package/src/components/Icons/IconMenu.vue +27 -0
- package/src/components/Icons/IconMinus.vue +26 -0
- package/src/components/Icons/IconMute.vue +27 -0
- package/src/components/Icons/IconNext.vue +25 -0
- package/src/components/Icons/IconPause.vue +28 -0
- package/src/components/Icons/IconPlay.vue +28 -0
- package/src/components/Icons/IconPlus.vue +25 -0
- package/src/components/Icons/IconPrev.vue +25 -0
- package/src/components/Icons/IconRewindTen.vue +42 -0
- package/src/components/Icons/IconSearch.vue +25 -0
- package/src/components/Icons/IconShare.vue +30 -0
- package/src/components/Icons/IconSlideshow.vue +30 -0
- package/src/components/Icons/IconSocialEmail.vue +26 -0
- package/src/components/Icons/IconSocialFacebook.vue +26 -0
- package/src/components/Icons/IconSocialGoogleClassroom.vue +26 -0
- package/src/components/Icons/IconSocialInstagram.vue +35 -0
- package/src/components/Icons/IconSocialPinterest.vue +26 -0
- package/src/components/Icons/IconSocialReddit.vue +25 -0
- package/src/components/Icons/IconSocialTwitter.vue +25 -0
- package/src/components/Icons/IconSocialYoutube.vue +35 -0
- package/src/components/Icons/IconStop.vue +27 -0
- package/src/components/Icons/IconTime.vue +25 -0
- package/src/components/Icons/IconUniversity.vue +21 -0
- package/src/components/Icons/IconUser.vue +26 -0
- package/src/components/Icons/IconVolume.vue +27 -0
- package/src/components/Icons/Icons.stories.ts +440 -0
- package/src/components/ImageDetailContextImage/ImageDetailContextImage.vue +125 -0
- package/src/components/LayoutHelper/LayoutHelper.vue +38 -0
- package/src/components/LoadingTransition/LoadingTransition.vue +48 -0
- package/src/components/LogoCaltech/LogoCaltech.stories.js +39 -0
- package/src/components/LogoCaltech/LogoCaltech.vue +29 -0
- package/src/components/LogoTribrand/LogoTribrand.stories.js +76 -0
- package/src/components/LogoTribrand/LogoTribrand.vue +93 -0
- package/src/components/MissionDetailAbout/MissionDetailAbout.stories.js +70 -0
- package/src/components/MissionDetailAbout/MissionDetailAbout.vue +204 -0
- package/src/components/MissionDetailHero/MissionDetailHero.stories.js +303 -0
- package/src/components/MissionDetailHero/MissionDetailHero.vue +292 -0
- package/src/components/MissionDetailHighlights/MissionDetailHighlights.stories.js +278 -0
- package/src/components/MissionDetailHighlights/MissionDetailHighlights.vue +332 -0
- package/src/components/MissionDetailHighlights/MissionDetailHighlightsCarousel.vue +160 -0
- package/src/components/MissionDetailHighlights/MissionDetailHighlightsCarouselItem.vue +123 -0
- package/src/components/MissionDetailInlineImage/MissionDetailInlineImage.stories.js +43 -0
- package/src/components/MissionDetailInlineImage/MissionDetailInlineImage.vue +97 -0
- package/src/components/MissionDetailStats/DistanceStats.test.js +133 -0
- package/src/components/MissionDetailStats/DistanceStats.vue +250 -0
- package/src/components/MissionDetailStats/MissionDetailStats.stories.js +95 -0
- package/src/components/MissionDetailStats/MissionDetailStats.test.js +23 -0
- package/src/components/MissionDetailStats/MissionDetailStats.vue +187 -0
- package/src/components/MissionDetailStats/MissionDetailStatsMicro.vue +52 -0
- package/src/components/MissionDetailStats/MissionDetailStatsMini.vue +109 -0
- package/src/components/MissionDetailStreamfield/MissionDetailStreamfield.stories.js +55 -0
- package/src/components/MissionDetailStreamfield/MissionDetailStreamfield.vue +95 -0
- package/src/components/MixinAnimationCaret/MixinAnimationCaret.stories.ts +24 -0
- package/src/components/MixinAnimationCaret/MixinAnimationCaret.vue +81 -0
- package/src/components/MixinCarousel/MixinCarousel.docs.mdx +33 -0
- package/src/components/MixinCarousel/MixinCarousel.stories.js +53 -0
- package/src/components/MixinCarousel/MixinCarousel.vue +236 -0
- package/src/components/MixinDropdownToggle/MixinDropdownToggle.vue +53 -0
- package/src/components/MixinFancybox/MixinFancybox.vue +405 -0
- package/src/components/MixinFancybox/MixinFancyboxOpenButton.vue +35 -0
- package/src/components/MixinVideoBg/MixinVideoBg.stories.js +23 -0
- package/src/components/MixinVideoBg/MixinVideoBg.vue +39 -0
- package/src/components/NavDesktop/NavDesktop.stories.js +254 -0
- package/src/components/NavDesktop/NavDesktop.vue +355 -0
- package/src/components/NavDesktop/NavDesktopDropdown.vue +201 -0
- package/src/components/NavDesktop/NavDesktopDropdownContent.vue +87 -0
- package/src/components/NavDesktop/NavDesktopDropdownMore.vue +112 -0
- package/src/components/NavDesktop/NavDesktopTopHat.vue +56 -0
- package/src/components/NavHeading/NavHeading.stories.js +23 -0
- package/src/components/NavHeading/NavHeading.vue +40 -0
- package/src/components/NavHighlight/NavHighlight.stories.js +42 -0
- package/src/components/NavHighlight/NavHighlight.vue +67 -0
- package/src/components/NavLinkList/NavLinkList.stories.js +46 -0
- package/src/components/NavLinkList/NavLinkList.vue +66 -0
- package/src/components/NavLogoLinks/NavLogoLinks.stories.js +22 -0
- package/src/components/NavLogoLinks/NavLogoLinks.vue +57 -0
- package/src/components/NavMobile/NavMobile.stories.js +231 -0
- package/src/components/NavMobile/NavMobile.vue +280 -0
- package/src/components/NavMobile/NavMobileDropdown.vue +175 -0
- package/src/components/NavMobile/NavMobileLink.vue +69 -0
- package/src/components/NavMobile/NavMobileSecondaryDropdown.vue +124 -0
- package/src/components/NavSearchForm/NavSearchForm.stories.js +13 -0
- package/src/components/NavSearchForm/NavSearchForm.vue +102 -0
- package/src/components/NavSecondary/NavSecondary.stories.js +24 -0
- package/src/components/NavSecondary/NavSecondary.vue +191 -0
- package/src/components/NavSecondary/NavSecondaryDropdown.vue +181 -0
- package/src/components/NavSecondary/NavSecondaryDropdownContent.vue +140 -0
- package/src/components/NavSecondary/NavSecondaryLink.vue +62 -0
- package/src/components/NavSocial/NavSocial.stories.js +20 -0
- package/src/components/NavSocial/NavSocial.vue +97 -0
- package/src/components/NewsDetailMediaContact/NewsDetailMediaContact.stories.js +60 -0
- package/src/components/NewsDetailMediaContact/NewsDetailMediaContact.test.js +30 -0
- package/src/components/NewsDetailMediaContact/NewsDetailMediaContact.vue +73 -0
- package/src/components/ParallaxContainer/ParallaxContainer.stories.js +47 -0
- package/src/components/ParallaxContainer/ParallaxContainer.vue +76 -0
- package/src/components/ParallaxElement/ParallaxElement.vue +25 -0
- package/src/components/PastEventsCarousel/PastEventsCarousel.vue +86 -0
- package/src/components/PodcastEpisodeCard/PodcastEpisodeCard.vue +251 -0
- package/src/components/PodcastSeriesCarousel/PodcastSeriesCarousel.stories.js +235 -0
- package/src/components/PodcastSeriesCarousel/PodcastSeriesCarousel.vue +171 -0
- package/src/components/ProfileDetailSectionGroup/ProfileDetailSectionGroup.vue +84 -0
- package/src/components/RoboticsDetailStats/RoboticsDetailStats.stories.js +97 -0
- package/src/components/RoboticsDetailStats/RoboticsDetailStats.test.js +21 -0
- package/src/components/RoboticsDetailStats/RoboticsDetailStats.vue +217 -0
- package/src/components/RoboticsDetailStats/RoboticsDetailStatsMini.vue +182 -0
- package/src/components/SearchFilterGroup/SearchFilterGroup.stories.js +59 -0
- package/src/components/SearchFilterGroup/SearchFilterGroup.vue +221 -0
- package/src/components/SearchInput/SearchInput.stories.js +35 -0
- package/src/components/SearchInput/SearchInput.vue +93 -0
- package/src/components/SearchPagination/SearchPagination.stories.js +55 -0
- package/src/components/SearchPagination/SearchPagination.vue +173 -0
- package/src/components/SearchResultCard/SearchResultCard.stories.js +57 -0
- package/src/components/SearchResultCard/SearchResultCard.vue +282 -0
- package/src/components/SearchResultGridItem/SearchResultGridItem.stories.js +70 -0
- package/src/components/SearchResultGridItem/SearchResultGridItem.vue +140 -0
- package/src/components/SearchResultsList/SearchResultsList.vue +183 -0
- package/src/components/SearchSelectMenu/SearchSelectMenu.stories.js +25 -0
- package/src/components/SearchSelectMenu/SearchSelectMenu.vue +86 -0
- package/src/components/ShareButtons/ShareButtons.stories.js +16 -0
- package/src/components/ShareButtons/ShareButtons.vue +132 -0
- package/src/components/ShareButtonsEdu/ShareButtonsEdu.stories.js +14 -0
- package/src/components/ShareButtonsEdu/ShareButtonsEdu.vue +215 -0
- package/src/components/SkipLink/SkipLink.stories.js +9 -0
- package/src/components/SkipLink/SkipLink.vue +53 -0
- package/src/components/SwimlaneCTA/SwimlaneCTA.stories.mdx +77 -0
- package/src/components/SwimlaneCTA/SwimlaneCTA.vue +281 -0
- package/src/components/TheFooter/TheFooter.stories.js +602 -0
- package/src/components/TheFooter/TheFooter.vue +228 -0
- package/src/components/TheFooter/TheFooterSignUp.vue +61 -0
- package/src/components/ThumbnailCarousel/ThumbnailCarousel.stories.js +106 -0
- package/src/components/ThumbnailCarousel/ThumbnailCarousel.vue +76 -0
- package/src/components/TopicDetailMissionCarousel/TopicDetailMissionCarousel.stories.js +93 -0
- package/src/components/TopicDetailMissionCarousel/TopicDetailMissionCarousel.vue +68 -0
- package/src/components/TopicDetailMissionCarouselItem/TopicDetailMissionCarouselItem.stories.js +38 -0
- package/src/components/TopicDetailMissionCarouselItem/TopicDetailMissionCarouselItem.vue +104 -0
- package/src/components/TopicDetailMissionSpotlight/TopicDetailMissionSpotlight.stories.js +84 -0
- package/src/components/TopicDetailMissionSpotlight/TopicDetailMissionSpotlight.vue +112 -0
- package/src/components/TopicDetailMore/TopicDetailMore.stories.js +221 -0
- package/src/components/TopicDetailMore/TopicDetailMore.vue +124 -0
- package/src/components/TopicDetailMore/TopicDetailMoreVisibility.vue +51 -0
- package/src/components/TopicDetailMoreItem/TopicDetailMoreItem.stories.js +116 -0
- package/src/components/TopicDetailMoreItem/TopicDetailMoreItem.vue +130 -0
- package/src/components/TopicDetailStreamfield/TopicDetailStreamfield.stories.js +34 -0
- package/src/components/TopicDetailStreamfield/TopicDetailStreamfield.vue +98 -0
- package/src/components/YearTicker/YearTicker.stories.js +37 -0
- package/src/components/YearTicker/YearTicker.vue +132 -0
- package/src/docs/foundation/DynamicTokens.vue +106 -0
- package/src/docs/foundation/FontVariants.vue +80 -0
- package/src/docs/foundation/color.docs.mdx +112 -0
- package/src/docs/foundation/grid.docs.mdx +189 -0
- package/src/docs/foundation/grid.stories.js +263 -0
- package/src/docs/foundation/grid_layouthelpers.docs.mdx +78 -0
- package/src/docs/foundation/grid_layouthelpers.stories.js +53 -0
- package/src/docs/foundation/themes.docs.mdx +71 -0
- package/src/docs/foundation/themes.stories.js +63 -0
- package/src/docs/foundation/typography.docs.mdx +50 -0
- package/src/docs/foundation/typography.stories.js +119 -0
- package/src/interfaces.ts +129 -0
- package/src/main.ts +34 -0
- package/src/store/header.ts +40 -0
- package/src/store/theme.ts +27 -0
- package/src/templates/PageContent/PageContent.stories.js +92 -0
- package/src/templates/PageContent/PageContent.vue +140 -0
- package/src/templates/PageEventDetail/PageEventDetail.stories.js +104 -0
- package/src/templates/PageEventDetail/PageEventDetail.vue +358 -0
- package/src/templates/PageNewsDetail/PageNewsDetail.stories.js +158 -0
- package/src/templates/PageNewsDetail/PageNewsDetail.vue +242 -0
- package/src/templates/edu/PageEduNewsDetail.stories.js +64 -0
- package/src/templates/edu/PageEduNewsDetail.vue +155 -0
- package/src/templates/www/HomePage/HomePage.vue +30 -0
- package/src/utils/dayjs.js +32 -0
- package/src/utils/filters.js +33 -0
- package/src/utils/mixins.ts +353 -0
- package/src/vite-env.d.ts +1 -0
- package/tailwind.config.js +24 -0
- package/tsconfig.json +29 -0
- package/tsconfig.node.json +11 -0
- package/vite.config.ts +55 -0
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import PodcastSeriesCarousel from './PodcastSeriesCarousel.vue'
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'WWW/PodcastDetail/PodcastSeriesCarousel',
|
|
5
|
+
component: PodcastSeriesCarousel,
|
|
6
|
+
parameters: {
|
|
7
|
+
docs: {
|
|
8
|
+
description: {
|
|
9
|
+
component:
|
|
10
|
+
'A tabbed carousel of podcast seasons based on series. If a season `id` is provided, the carousel will default to showing that season. If the user is currently on an episode page within the displayed season, that episode will be the active slide in the carousel.'
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
excludeStories: /.*Data$/
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const PodcastSeriesCarouselData = {
|
|
18
|
+
parent: {
|
|
19
|
+
id: '302'
|
|
20
|
+
},
|
|
21
|
+
series: {
|
|
22
|
+
id: '300',
|
|
23
|
+
url: '/podcasts/on-a-mission',
|
|
24
|
+
|
|
25
|
+
seasons: [
|
|
26
|
+
{
|
|
27
|
+
id: '301',
|
|
28
|
+
url: '/podcasts/on-a-mission/season-1',
|
|
29
|
+
title: 'Season 1: The InSight Mission to Mars',
|
|
30
|
+
seasonNumber: 1,
|
|
31
|
+
episodes: [
|
|
32
|
+
{
|
|
33
|
+
url: '/podcasts/on-a-mission/season-1/episode-1',
|
|
34
|
+
title: 'Season 1, Episode 1: Lorem ipsum dolor',
|
|
35
|
+
publicationDate: '2021-10-01',
|
|
36
|
+
thumbnailImage: {
|
|
37
|
+
src: {
|
|
38
|
+
url: 'https://picsum.photos/430/430',
|
|
39
|
+
width: 430,
|
|
40
|
+
height: 430
|
|
41
|
+
},
|
|
42
|
+
alt: 'Alt text'
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
url: '/podcasts/on-a-mission/season-1/episode-2',
|
|
47
|
+
title: 'Season 1, Episode 2: Lorem ipsum dolor',
|
|
48
|
+
publicationDate: '2021-10-02',
|
|
49
|
+
thumbnailImage: {
|
|
50
|
+
src: {
|
|
51
|
+
url: 'https://picsum.photos/430/430',
|
|
52
|
+
width: 430,
|
|
53
|
+
height: 430
|
|
54
|
+
},
|
|
55
|
+
alt: 'Alt text'
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
url: '/podcasts/on-a-mission/season-1/episode-3',
|
|
60
|
+
title: 'Season 1, Episode 3: Lorem ipsum dolor',
|
|
61
|
+
publicationDate: '2021-10-03',
|
|
62
|
+
thumbnailImage: {
|
|
63
|
+
src: {
|
|
64
|
+
url: 'https://picsum.photos/430/430',
|
|
65
|
+
width: 430,
|
|
66
|
+
height: 430
|
|
67
|
+
},
|
|
68
|
+
alt: 'Alt text'
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
url: '/podcasts/on-a-mission/season-1/episode-4',
|
|
73
|
+
title: 'Season 1, Episode 4: Lorem ipsum dolor',
|
|
74
|
+
publicationDate: '2021-10-04',
|
|
75
|
+
thumbnailImage: {
|
|
76
|
+
src: {
|
|
77
|
+
url: 'https://picsum.photos/430/430',
|
|
78
|
+
width: 430,
|
|
79
|
+
height: 430
|
|
80
|
+
},
|
|
81
|
+
alt: 'Alt text'
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
url: '/podcasts/on-a-mission/season-1/episode-5',
|
|
86
|
+
title: 'Season 1, Episode 5: Lorem ipsum dolor',
|
|
87
|
+
publicationDate: '2021-10-05',
|
|
88
|
+
thumbnailImage: {
|
|
89
|
+
src: {
|
|
90
|
+
url: 'https://picsum.photos/430/430',
|
|
91
|
+
width: 430,
|
|
92
|
+
height: 430
|
|
93
|
+
},
|
|
94
|
+
alt: 'Alt text'
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
url: '/podcasts/on-a-mission/season-1/episode-6',
|
|
99
|
+
title: 'Season 1, Episode 6: Lorem ipsum dolor',
|
|
100
|
+
publicationDate: '2021-10-06',
|
|
101
|
+
thumbnailImage: {
|
|
102
|
+
src: {
|
|
103
|
+
url: 'https://picsum.photos/430/430',
|
|
104
|
+
width: 430,
|
|
105
|
+
height: 430
|
|
106
|
+
},
|
|
107
|
+
alt: 'Alt text'
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
url: '/podcasts/on-a-mission/season-1/episode-7',
|
|
112
|
+
title: 'Season 1, Episode 7: Lorem ipsum dolor',
|
|
113
|
+
publicationDate: '2021-10-07',
|
|
114
|
+
thumbnailImage: {
|
|
115
|
+
src: {
|
|
116
|
+
url: 'https://picsum.photos/430/430',
|
|
117
|
+
width: 430,
|
|
118
|
+
height: 430
|
|
119
|
+
},
|
|
120
|
+
alt: 'Alt text'
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
id: '302',
|
|
127
|
+
url: '/podcasts/on-a-mission/season-2',
|
|
128
|
+
title: 'Season 2: Asteroids!',
|
|
129
|
+
seasonNumber: 2,
|
|
130
|
+
episodes: [
|
|
131
|
+
{
|
|
132
|
+
url: '/podcasts/on-a-mission/season-2/episode-1',
|
|
133
|
+
title: 'Season 2, Episode 1: Sit amet consectatur',
|
|
134
|
+
publicationDate: '2021-11-01',
|
|
135
|
+
thumbnailImage: {
|
|
136
|
+
src: {
|
|
137
|
+
url: 'https://picsum.photos/430/430',
|
|
138
|
+
width: 430,
|
|
139
|
+
height: 430
|
|
140
|
+
},
|
|
141
|
+
alt: 'Alt text'
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
url: '/podcasts/on-a-mission/season-2/episode-2',
|
|
146
|
+
title: 'Season 2, Episode 2: Sit amet consectatur',
|
|
147
|
+
publicationDate: '2021-11-02',
|
|
148
|
+
thumbnailImage: {
|
|
149
|
+
src: {
|
|
150
|
+
url: 'https://picsum.photos/430/430',
|
|
151
|
+
width: 430,
|
|
152
|
+
height: 430
|
|
153
|
+
},
|
|
154
|
+
alt: 'Alt text'
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
url: '/podcasts/on-a-mission/season-2/episode-3',
|
|
159
|
+
title: 'Season 2, Episode 3: Sit amet consectatur',
|
|
160
|
+
publicationDate: '2021-11-03',
|
|
161
|
+
thumbnailImage: {
|
|
162
|
+
src: {
|
|
163
|
+
url: 'https://picsum.photos/430/430',
|
|
164
|
+
width: 430,
|
|
165
|
+
height: 430
|
|
166
|
+
},
|
|
167
|
+
alt: 'Alt text'
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
url: '/podcasts/on-a-mission/season-2/episode-4',
|
|
172
|
+
title: 'Season 2, Episode 4: Sit amet consectatur',
|
|
173
|
+
publicationDate: '2021-11-04',
|
|
174
|
+
thumbnailImage: {
|
|
175
|
+
src: {
|
|
176
|
+
url: 'https://picsum.photos/430/430',
|
|
177
|
+
width: 430,
|
|
178
|
+
height: 430
|
|
179
|
+
},
|
|
180
|
+
alt: 'Alt text'
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
url: '/podcasts/on-a-mission/season-2/episode-5',
|
|
185
|
+
title: 'Season 2, Episode 5: Sit amet consectatur',
|
|
186
|
+
publicationDate: '2021-11-05',
|
|
187
|
+
thumbnailImage: {
|
|
188
|
+
src: {
|
|
189
|
+
url: 'https://picsum.photos/430/430',
|
|
190
|
+
width: 430,
|
|
191
|
+
height: 430
|
|
192
|
+
},
|
|
193
|
+
alt: 'Alt text'
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
url: '/podcasts/on-a-mission/season-2/episode-6',
|
|
198
|
+
title: 'Season 2, Episode 6: Sit amet consectatur',
|
|
199
|
+
publicationDate: '2021-11-06',
|
|
200
|
+
thumbnailImage: {
|
|
201
|
+
src: {
|
|
202
|
+
url: 'https://picsum.photos/430/430',
|
|
203
|
+
width: 430,
|
|
204
|
+
height: 430
|
|
205
|
+
},
|
|
206
|
+
alt: 'Alt text'
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
url: '/podcasts/on-a-mission/season-2/episode-7',
|
|
211
|
+
title: 'Season 2, Episode 7: Sit amet consectatur',
|
|
212
|
+
publicationDate: '2021-11-07',
|
|
213
|
+
thumbnailImage: {
|
|
214
|
+
src: {
|
|
215
|
+
url: 'https://picsum.photos/430/430',
|
|
216
|
+
width: 430,
|
|
217
|
+
height: 430
|
|
218
|
+
},
|
|
219
|
+
alt: 'Alt text'
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
]
|
|
223
|
+
}
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export const Default = {
|
|
229
|
+
args: {
|
|
230
|
+
series: PodcastSeriesCarouselData.series,
|
|
231
|
+
initialSeasonId: PodcastSeriesCarouselData.parent?.id
|
|
232
|
+
? PodcastSeriesCarouselData.parent.id
|
|
233
|
+
: null
|
|
234
|
+
}
|
|
235
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
v-if="series && activeTabData"
|
|
4
|
+
class="PodcastSeriesCarousel"
|
|
5
|
+
>
|
|
6
|
+
<!-- tabs -->
|
|
7
|
+
<LayoutHelper indent="col-2">
|
|
8
|
+
<h2
|
|
9
|
+
class="text-gray-dark text-3xl lg:text-6xl font-semibold leading-normal tracking-normal uppercase mb-2 lg:mb-5"
|
|
10
|
+
>
|
|
11
|
+
More {{ series.title }} Episodes
|
|
12
|
+
</h2>
|
|
13
|
+
|
|
14
|
+
<ul class="flex flex-wrap mb-6 lg:mb-10">
|
|
15
|
+
<li
|
|
16
|
+
v-for="(season, index) in sortedSeasons"
|
|
17
|
+
:key="index"
|
|
18
|
+
class="last:mr-0 w-auto mr-10 lg:flex-shrink-0"
|
|
19
|
+
>
|
|
20
|
+
<button
|
|
21
|
+
class="text-subtitle block text-left lg:text-center lg:w-full py-2 border-b-2 text-gray-mid-dark can-hover:hover:text-gray-dark"
|
|
22
|
+
:class="activeSeasonId === season.id ? 'border-jpl-red text-gray-dark' : 'border-white'"
|
|
23
|
+
:aria-expanded="activeSeasonId === season.id ? 'true' : 'false'"
|
|
24
|
+
@click="updateActiveTab(season.id)"
|
|
25
|
+
>
|
|
26
|
+
Season {{ season.seasonNumber }}
|
|
27
|
+
</button>
|
|
28
|
+
</li>
|
|
29
|
+
</ul>
|
|
30
|
+
</LayoutHelper>
|
|
31
|
+
<!-- tab content -->
|
|
32
|
+
<LayoutHelper
|
|
33
|
+
indent="col-2"
|
|
34
|
+
class="mb-4"
|
|
35
|
+
>
|
|
36
|
+
<h3
|
|
37
|
+
v-if="activeTabData.title"
|
|
38
|
+
class="text-h6"
|
|
39
|
+
>
|
|
40
|
+
{{ activeTabData.title }}
|
|
41
|
+
</h3>
|
|
42
|
+
</LayoutHelper>
|
|
43
|
+
<keep-alive>
|
|
44
|
+
<ThumbnailCarousel
|
|
45
|
+
:key="activeSeasonId"
|
|
46
|
+
:initial-slide="
|
|
47
|
+
activeSeasonId === initialSeasonId && initialEpisodeIndex ? initialEpisodeIndex : 0
|
|
48
|
+
"
|
|
49
|
+
:slides="activeTabData.episodes"
|
|
50
|
+
/>
|
|
51
|
+
</keep-alive>
|
|
52
|
+
</div>
|
|
53
|
+
</template>
|
|
54
|
+
<script lang="ts">
|
|
55
|
+
import { defineComponent } from 'vue'
|
|
56
|
+
import { useRoute } from 'vue-router'
|
|
57
|
+
import type { PropType } from 'vue'
|
|
58
|
+
import type { ImageObject } from '../../interfaces'
|
|
59
|
+
import LayoutHelper from './../LayoutHelper/LayoutHelper.vue'
|
|
60
|
+
import ThumbnailCarousel from './../ThumbnailCarousel/ThumbnailCarousel.vue'
|
|
61
|
+
|
|
62
|
+
const route = useRoute()
|
|
63
|
+
|
|
64
|
+
interface ActiveTab {
|
|
65
|
+
title: string
|
|
66
|
+
episodes: Episode[]
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
interface Episode {
|
|
70
|
+
url: string
|
|
71
|
+
title: string
|
|
72
|
+
publicationDate: any
|
|
73
|
+
thumbnailImage: Partial<ImageObject>
|
|
74
|
+
}
|
|
75
|
+
interface Season {
|
|
76
|
+
id: string
|
|
77
|
+
url: string
|
|
78
|
+
title: string
|
|
79
|
+
seasonNumber: number
|
|
80
|
+
episodes: Episode[]
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
interface Series {
|
|
84
|
+
id: string
|
|
85
|
+
title: string
|
|
86
|
+
url: string
|
|
87
|
+
seasons: Season[]
|
|
88
|
+
}
|
|
89
|
+
export default defineComponent({
|
|
90
|
+
name: 'PodcastSeriesCarousel',
|
|
91
|
+
components: {
|
|
92
|
+
LayoutHelper,
|
|
93
|
+
ThumbnailCarousel
|
|
94
|
+
},
|
|
95
|
+
props: {
|
|
96
|
+
// the series data, including seasons and episode
|
|
97
|
+
// check audioDetailPageQuery.js for available data
|
|
98
|
+
series: {
|
|
99
|
+
type: Object as PropType<Series>,
|
|
100
|
+
required: false
|
|
101
|
+
},
|
|
102
|
+
// Pass the id of the season that should be active. This is the id of the parent of the current episode page
|
|
103
|
+
initialSeasonId: {
|
|
104
|
+
type: String,
|
|
105
|
+
required: false
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
data() {
|
|
109
|
+
return {
|
|
110
|
+
activeTabId: ''
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
computed: {
|
|
114
|
+
sortedSeasons(): Season[] | null {
|
|
115
|
+
let seasons = null
|
|
116
|
+
if (this.series && this.series.seasons) {
|
|
117
|
+
seasons = this.series.seasons
|
|
118
|
+
return seasons.sort((a: Season, b: Season) => a.seasonNumber - b.seasonNumber)
|
|
119
|
+
}
|
|
120
|
+
return seasons
|
|
121
|
+
},
|
|
122
|
+
activeSeasonId(): string | undefined {
|
|
123
|
+
if (this.activeTabId) {
|
|
124
|
+
return this.activeTabId
|
|
125
|
+
} else if (this.initialSeasonId) {
|
|
126
|
+
return this.initialSeasonId
|
|
127
|
+
} else if (this.series?.seasons?.length) {
|
|
128
|
+
// default to the first one
|
|
129
|
+
return this.series.seasons[0].id
|
|
130
|
+
}
|
|
131
|
+
return undefined
|
|
132
|
+
},
|
|
133
|
+
initialEpisodeIndex(): number | null {
|
|
134
|
+
let episodes: Episode[] | undefined = undefined
|
|
135
|
+
if (this.series?.seasons && this.activeSeasonId && route?.path) {
|
|
136
|
+
episodes = this.series.seasons.find((o: Season) => {
|
|
137
|
+
return o.id === this.activeSeasonId
|
|
138
|
+
})?.episodes
|
|
139
|
+
return episodes
|
|
140
|
+
? episodes.findIndex((e: Episode) => (e.url as String) === route.path)
|
|
141
|
+
: null
|
|
142
|
+
}
|
|
143
|
+
return null
|
|
144
|
+
},
|
|
145
|
+
activeTabData(): ActiveTab | undefined {
|
|
146
|
+
let season: Season | undefined = undefined
|
|
147
|
+
if (this.series?.seasons) {
|
|
148
|
+
if (this.activeSeasonId) {
|
|
149
|
+
season = this.series.seasons.find((o: Season) => {
|
|
150
|
+
return o.id === this.activeSeasonId
|
|
151
|
+
})
|
|
152
|
+
} else {
|
|
153
|
+
season = this.series.seasons[0]
|
|
154
|
+
}
|
|
155
|
+
if (season?.episodes) {
|
|
156
|
+
season.episodes.sort(
|
|
157
|
+
(a: Episode, b: Episode) =>
|
|
158
|
+
new Date(a.publicationDate).getTime() - new Date(b.publicationDate).getTime()
|
|
159
|
+
)
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
return season ? season : undefined
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
methods: {
|
|
166
|
+
updateActiveTab(id: string) {
|
|
167
|
+
this.activeTabId = id
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
})
|
|
171
|
+
</script>
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<section
|
|
3
|
+
v-if="!isEmpty"
|
|
4
|
+
class="border-gray-light-mid border-t mb-10 lg:mb-20 pt-10 lg:pt-20"
|
|
5
|
+
:aria-labelledby="`${section.id}-heading`"
|
|
6
|
+
>
|
|
7
|
+
<BaseHeading
|
|
8
|
+
:id="`${section.id}-heading`"
|
|
9
|
+
level="h2"
|
|
10
|
+
size="h3"
|
|
11
|
+
class="mb-5 lg:mb-10"
|
|
12
|
+
>{{ section.title }}</BaseHeading
|
|
13
|
+
>
|
|
14
|
+
|
|
15
|
+
<div
|
|
16
|
+
v-for="sub in section.subsections"
|
|
17
|
+
:key="sub.prop"
|
|
18
|
+
>
|
|
19
|
+
<template v-if="data[sub.prop]">
|
|
20
|
+
<BaseHeading
|
|
21
|
+
level="h3"
|
|
22
|
+
size="h4"
|
|
23
|
+
class="mb-2.5"
|
|
24
|
+
>
|
|
25
|
+
<component
|
|
26
|
+
:is="sub.icon"
|
|
27
|
+
class="inline relative -top-0.5"
|
|
28
|
+
/>
|
|
29
|
+
{{ sub.title }}
|
|
30
|
+
</BaseHeading>
|
|
31
|
+
<div class="mb-5 lg:mb-10">
|
|
32
|
+
<BlockText
|
|
33
|
+
variant="large"
|
|
34
|
+
:text="data[sub.prop]"
|
|
35
|
+
/>
|
|
36
|
+
</div>
|
|
37
|
+
</template>
|
|
38
|
+
</div>
|
|
39
|
+
</section>
|
|
40
|
+
</template>
|
|
41
|
+
|
|
42
|
+
<script lang="ts">
|
|
43
|
+
// @ts-nocheck
|
|
44
|
+
import { defineComponent } from 'vue'
|
|
45
|
+
import BaseHeading from './../BaseHeading/BaseHeading.vue'
|
|
46
|
+
import BlockText from './../BlockText/BlockText.vue'
|
|
47
|
+
import IconBookUser from './../Icons/IconBookUser.vue'
|
|
48
|
+
import IconUniversity from './../Icons/IconUniversity.vue'
|
|
49
|
+
import IconMagnifyingGlass from './../Icons/IconMagnifyingGlass.vue'
|
|
50
|
+
import IconBriefcase from './../Icons/IconBriefcase.vue'
|
|
51
|
+
import IconHand from './../Icons/IconHand.vue'
|
|
52
|
+
import IconMedal from './../Icons/IconMedal.vue'
|
|
53
|
+
import IconBook from './../Icons/IconBook.vue'
|
|
54
|
+
|
|
55
|
+
export default defineComponent({
|
|
56
|
+
name: 'ProfileDetailSectionGroup',
|
|
57
|
+
components: {
|
|
58
|
+
BaseHeading,
|
|
59
|
+
BlockText,
|
|
60
|
+
IconBookUser,
|
|
61
|
+
IconUniversity,
|
|
62
|
+
IconMagnifyingGlass,
|
|
63
|
+
IconBriefcase,
|
|
64
|
+
IconHand,
|
|
65
|
+
IconMedal,
|
|
66
|
+
IconBook
|
|
67
|
+
},
|
|
68
|
+
props: {
|
|
69
|
+
section: {
|
|
70
|
+
type: Object,
|
|
71
|
+
required: false
|
|
72
|
+
},
|
|
73
|
+
data: {
|
|
74
|
+
type: Object,
|
|
75
|
+
required: false
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
computed: {
|
|
79
|
+
isEmpty() {
|
|
80
|
+
return this.section.subsections.every((sub) => !this.data[sub.prop])
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
})
|
|
84
|
+
</script>
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import RoboticsDetailStats from './RoboticsDetailStats.vue'
|
|
2
|
+
import RoboticsDetailStatsMini from './RoboticsDetailStatsMini.vue'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'WWW/RoboticsDetail/RoboticsDetailStats',
|
|
6
|
+
component: RoboticsDetailStats,
|
|
7
|
+
subcomponents: { RoboticsDetailStatsMini },
|
|
8
|
+
decorators: [
|
|
9
|
+
() => ({
|
|
10
|
+
template: `<div id="storyDecorator" class="mt-20"><story/></div>`
|
|
11
|
+
})
|
|
12
|
+
],
|
|
13
|
+
parameters: {
|
|
14
|
+
html: {
|
|
15
|
+
root: '#storyDecorator'
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
excludeStories: /.*Data$/,
|
|
19
|
+
argTypes: {
|
|
20
|
+
status: {
|
|
21
|
+
control: { type: 'text' }
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const RoboticsDetailStatsData = {
|
|
27
|
+
mass: 123,
|
|
28
|
+
height: 0.24,
|
|
29
|
+
speed: 0.5,
|
|
30
|
+
status: 'In Development (since 2011)',
|
|
31
|
+
animalAnalogName: 'Lemur',
|
|
32
|
+
animalAnalogIcon: {
|
|
33
|
+
webp: {
|
|
34
|
+
url: 'https://images.unsplash.com/photo-1535468899888-92047ec84051?fm=webp&crop=entropy&w=320&h=320&fit=crop'
|
|
35
|
+
},
|
|
36
|
+
src: {
|
|
37
|
+
url: 'https://picsum.photos/320/320'
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
robotDestinations: [
|
|
41
|
+
{
|
|
42
|
+
destination: 'Mars'
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
destination: 'Moon'
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
destination: 'Europa'
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
alternativeStats: [
|
|
52
|
+
{
|
|
53
|
+
metricLabel: 'Legs',
|
|
54
|
+
metricUnit: 'unitless',
|
|
55
|
+
metricValue: '6'
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
metricLabel: 'Ability',
|
|
59
|
+
metricUnit: 'unitless',
|
|
60
|
+
metricValue: 'Climbing'
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
metricLabel: 'Wingspan',
|
|
64
|
+
metricUnit: 'meters',
|
|
65
|
+
metricValue: '8'
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export const Base = {
|
|
71
|
+
args: {
|
|
72
|
+
mass: RoboticsDetailStatsData.mass,
|
|
73
|
+
height: RoboticsDetailStatsData.height,
|
|
74
|
+
speed: RoboticsDetailStatsData.speed,
|
|
75
|
+
status: RoboticsDetailStatsData.status,
|
|
76
|
+
animalAnalogName: RoboticsDetailStatsData.animalAnalogName,
|
|
77
|
+
animalAnalogIcon: RoboticsDetailStatsData.animalAnalogIcon,
|
|
78
|
+
robotDestinations: RoboticsDetailStatsData.robotDestinations,
|
|
79
|
+
alternativeStats: RoboticsDetailStatsData.alternativeStats
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export const Mini = {
|
|
84
|
+
args: {
|
|
85
|
+
mass: RoboticsDetailStatsData.mass,
|
|
86
|
+
height: RoboticsDetailStatsData.height,
|
|
87
|
+
speed: RoboticsDetailStatsData.speed,
|
|
88
|
+
alternativeStats: RoboticsDetailStatsData.alternativeStats
|
|
89
|
+
},
|
|
90
|
+
render: (args) => ({
|
|
91
|
+
setup() {
|
|
92
|
+
return { args }
|
|
93
|
+
},
|
|
94
|
+
components: { RoboticsDetailStatsMini },
|
|
95
|
+
template: '<RoboticsDetailStatsMini v-bind="args" />'
|
|
96
|
+
})
|
|
97
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { mount } from '@vue/test-utils'
|
|
2
|
+
|
|
3
|
+
import RoboticsDetailStats from './RoboticsDetailStats.vue'
|
|
4
|
+
|
|
5
|
+
describe('RoboticsDetailStats', () => {
|
|
6
|
+
test('does not display anything without content', () => {
|
|
7
|
+
const wrapper = mount(RoboticsDetailStats, {
|
|
8
|
+
propsData: {
|
|
9
|
+
mass: null,
|
|
10
|
+
height: null,
|
|
11
|
+
speed: null,
|
|
12
|
+
status: '',
|
|
13
|
+
animalAnalogName: '',
|
|
14
|
+
animalAnalogIcon: null,
|
|
15
|
+
robotDestinations: [],
|
|
16
|
+
alternativeStats: []
|
|
17
|
+
}
|
|
18
|
+
})
|
|
19
|
+
expect(wrapper.find('*').exists()).toBe(false)
|
|
20
|
+
})
|
|
21
|
+
})
|