@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,156 @@
|
|
|
1
|
+
import AsteroidWatchWidget from './AsteroidWatchWidget.vue'
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Components/AsteroidWatchWidget',
|
|
5
|
+
component: AsteroidWatchWidget,
|
|
6
|
+
excludeStories: /.*Data$/,
|
|
7
|
+
decorators: [
|
|
8
|
+
() => ({
|
|
9
|
+
template: `<div id="storyDecorator" class="mt-20"><story/></div>`
|
|
10
|
+
})
|
|
11
|
+
],
|
|
12
|
+
parameters: {
|
|
13
|
+
html: {
|
|
14
|
+
root: '#storyDecorator' // to omit decorators from html output
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
argTypes: {
|
|
18
|
+
status: {
|
|
19
|
+
control: { type: 'text' }
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const AsteroidWatchWidgetData = {
|
|
25
|
+
nextCloseApproaches: [
|
|
26
|
+
{
|
|
27
|
+
name: '(2008 YN2)',
|
|
28
|
+
date: '2024-06-05',
|
|
29
|
+
sizeFeet: 61,
|
|
30
|
+
sizeMeters: 19,
|
|
31
|
+
distanceMiles: 2500000,
|
|
32
|
+
distanceKilometers: 4020000,
|
|
33
|
+
externalLink: 'https://ssd.jpl.nasa.gov/tools/sbdb_lookup.html#/?sstr=2008%20YN2&view=VOP',
|
|
34
|
+
comparisonImage: {
|
|
35
|
+
image: {
|
|
36
|
+
webp: {
|
|
37
|
+
url: 'https://d2pn8kiwq2w21t.cloudfront.net/images/asteroid_watchmanagem.2e16d0ba.fill-320x320.format-webp_mp07rlQ.webp',
|
|
38
|
+
__typename: 'CustomRendition'
|
|
39
|
+
},
|
|
40
|
+
src: {
|
|
41
|
+
url: 'https://d2pn8kiwq2w21t.cloudfront.net/images/asteroid_watchmanagementcommandsda.2e16d0ba.fill-320x320_5YFe2jp.png',
|
|
42
|
+
__typename: 'CustomRendition'
|
|
43
|
+
},
|
|
44
|
+
__typename: 'CustomImage'
|
|
45
|
+
},
|
|
46
|
+
text: 'HOUSE-SIZE',
|
|
47
|
+
__typename: 'AsteroidSizeComparison'
|
|
48
|
+
},
|
|
49
|
+
__typename: 'AsteroidApproach'
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: '(2024 JR17)',
|
|
53
|
+
date: '2024-06-05',
|
|
54
|
+
sizeFeet: 260,
|
|
55
|
+
sizeMeters: 80,
|
|
56
|
+
distanceMiles: 4600000,
|
|
57
|
+
distanceKilometers: 7400000,
|
|
58
|
+
externalLink: 'https://ssd.jpl.nasa.gov/tools/sbdb_lookup.html#/?sstr=2024%20JR17&view=VOP',
|
|
59
|
+
comparisonImage: {
|
|
60
|
+
image: {
|
|
61
|
+
webp: {
|
|
62
|
+
url: 'https://d2pn8kiwq2w21t.cloudfront.net/images/asteroid_watchmanagem.2e16d0ba.fill-320x320.format-webp_miCwBak.webp',
|
|
63
|
+
__typename: 'CustomRendition'
|
|
64
|
+
},
|
|
65
|
+
src: {
|
|
66
|
+
url: 'https://d2pn8kiwq2w21t.cloudfront.net/images/asteroid_watchmanagementcommandsda.2e16d0ba.fill-320x320_XtfVXBr.png',
|
|
67
|
+
__typename: 'CustomRendition'
|
|
68
|
+
},
|
|
69
|
+
__typename: 'CustomImage'
|
|
70
|
+
},
|
|
71
|
+
text: 'BUILDING-SIZE',
|
|
72
|
+
__typename: 'AsteroidSizeComparison'
|
|
73
|
+
},
|
|
74
|
+
__typename: 'AsteroidApproach'
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: '(2021 LW3)',
|
|
78
|
+
date: '2024-06-06',
|
|
79
|
+
sizeFeet: 270,
|
|
80
|
+
sizeMeters: 82,
|
|
81
|
+
distanceMiles: 2310000,
|
|
82
|
+
distanceKilometers: 3710000,
|
|
83
|
+
externalLink: 'https://ssd.jpl.nasa.gov/tools/sbdb_lookup.html#/?sstr=2021%20LW3&view=VOP',
|
|
84
|
+
comparisonImage: {
|
|
85
|
+
image: {
|
|
86
|
+
webp: {
|
|
87
|
+
url: 'https://d2pn8kiwq2w21t.cloudfront.net/images/asteroid_watchmanagem.2e16d0ba.fill-320x320.format-webp_miCwBak.webp',
|
|
88
|
+
__typename: 'CustomRendition'
|
|
89
|
+
},
|
|
90
|
+
src: {
|
|
91
|
+
url: 'https://d2pn8kiwq2w21t.cloudfront.net/images/asteroid_watchmanagementcommandsda.2e16d0ba.fill-320x320_XtfVXBr.png',
|
|
92
|
+
__typename: 'CustomRendition'
|
|
93
|
+
},
|
|
94
|
+
__typename: 'CustomImage'
|
|
95
|
+
},
|
|
96
|
+
text: 'BUILDING-SIZE',
|
|
97
|
+
__typename: 'AsteroidSizeComparison'
|
|
98
|
+
},
|
|
99
|
+
__typename: 'AsteroidApproach'
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: '(2024 LA)',
|
|
103
|
+
date: '2024-06-07',
|
|
104
|
+
sizeFeet: 77,
|
|
105
|
+
sizeMeters: 24,
|
|
106
|
+
distanceMiles: 1120000,
|
|
107
|
+
distanceKilometers: 1800000,
|
|
108
|
+
externalLink: 'https://ssd.jpl.nasa.gov/tools/sbdb_lookup.html#/?sstr=2024%20LA&view=VOP',
|
|
109
|
+
comparisonImage: {
|
|
110
|
+
image: {
|
|
111
|
+
webp: {
|
|
112
|
+
url: 'https://d2pn8kiwq2w21t.cloudfront.net/images/asteroid_watchmanagem.2e16d0ba.fill-320x320.format-webp_frsqFOl.webp',
|
|
113
|
+
__typename: 'CustomRendition'
|
|
114
|
+
},
|
|
115
|
+
src: {
|
|
116
|
+
url: 'https://d2pn8kiwq2w21t.cloudfront.net/images/asteroid_watchmanagementcommandsda.2e16d0ba.fill-320x320_QiuTjYV.png',
|
|
117
|
+
__typename: 'CustomRendition'
|
|
118
|
+
},
|
|
119
|
+
__typename: 'CustomImage'
|
|
120
|
+
},
|
|
121
|
+
text: 'AIRPLANE-SIZE',
|
|
122
|
+
__typename: 'AsteroidSizeComparison'
|
|
123
|
+
},
|
|
124
|
+
__typename: 'AsteroidApproach'
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
name: '(2024 KA1)',
|
|
128
|
+
date: '2024-06-07',
|
|
129
|
+
sizeFeet: 95,
|
|
130
|
+
sizeMeters: 29,
|
|
131
|
+
distanceMiles: 1170000,
|
|
132
|
+
distanceKilometers: 1880000,
|
|
133
|
+
externalLink: 'https://ssd.jpl.nasa.gov/tools/sbdb_lookup.html#/?sstr=2024%20KA1&view=VOP',
|
|
134
|
+
comparisonImage: {
|
|
135
|
+
image: {
|
|
136
|
+
webp: {
|
|
137
|
+
url: 'https://d2pn8kiwq2w21t.cloudfront.net/images/asteroid_watchmanagem.2e16d0ba.fill-320x320.format-webp_frsqFOl.webp',
|
|
138
|
+
__typename: 'CustomRendition'
|
|
139
|
+
},
|
|
140
|
+
src: {
|
|
141
|
+
url: 'https://d2pn8kiwq2w21t.cloudfront.net/images/asteroid_watchmanagementcommandsda.2e16d0ba.fill-320x320_QiuTjYV.png',
|
|
142
|
+
__typename: 'CustomRendition'
|
|
143
|
+
},
|
|
144
|
+
__typename: 'CustomImage'
|
|
145
|
+
},
|
|
146
|
+
text: 'AIRPLANE-SIZE',
|
|
147
|
+
__typename: 'AsteroidSizeComparison'
|
|
148
|
+
},
|
|
149
|
+
__typename: 'AsteroidApproach'
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export const Base = {
|
|
155
|
+
args: AsteroidWatchWidgetData
|
|
156
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<section
|
|
3
|
+
v-if="nextCloseApproaches?.length"
|
|
4
|
+
aria-label="Next 5 Earth Approaches within 7.5 million kilometers"
|
|
5
|
+
class="AsteroidWatchWidget overflow-hidden"
|
|
6
|
+
>
|
|
7
|
+
<div
|
|
8
|
+
v-for="(item, index) in nextCloseApproaches"
|
|
9
|
+
:key="index"
|
|
10
|
+
class="MixedBleedGrid lg:pl-0 pl-4"
|
|
11
|
+
>
|
|
12
|
+
<div
|
|
13
|
+
:class="index === 0 ? 'bg-gray-light' : 'border-b border-gray-light-mid'"
|
|
14
|
+
class="lg:block col-start-indent-col-2 col-end-indent-col-3 hidden"
|
|
15
|
+
></div>
|
|
16
|
+
<div
|
|
17
|
+
:class="index === 0 ? 'bg-gray-light' : 'border-b border-gray-light-mid'"
|
|
18
|
+
class="text-gray-dark col-start-indent-col-3 col-end-container lg:py-12 lg:px-0 text-body-lg px-8 py-10 pr-0"
|
|
19
|
+
>
|
|
20
|
+
<div class="gap-y-10 lg:col-end-9 grid grid-cols-11 col-start-1 col-end-11 gap-6">
|
|
21
|
+
<div
|
|
22
|
+
v-if="
|
|
23
|
+
item.comparisonImage && item.comparisonImage.image && item.comparisonImage.image.src
|
|
24
|
+
"
|
|
25
|
+
class="lg:col-span-3 lg:row-span-2 lg:text-left gap-y-8 col-span-11 -ml-8 text-center"
|
|
26
|
+
>
|
|
27
|
+
<picture>
|
|
28
|
+
<source
|
|
29
|
+
v-if="item.comparisonImage.image.webp"
|
|
30
|
+
:srcset="item.comparisonImage.image.webp.url"
|
|
31
|
+
type="image/webp"
|
|
32
|
+
/>
|
|
33
|
+
<img
|
|
34
|
+
loading="lazy"
|
|
35
|
+
class="mx-auto bg-white rounded-full"
|
|
36
|
+
:src="item.comparisonImage.image.src.url"
|
|
37
|
+
width="160"
|
|
38
|
+
height="160"
|
|
39
|
+
alt=""
|
|
40
|
+
/>
|
|
41
|
+
</picture>
|
|
42
|
+
<p class="text-subtitle mt-4 text-center">
|
|
43
|
+
{{ item.comparisonImage.text }}
|
|
44
|
+
</p>
|
|
45
|
+
</div>
|
|
46
|
+
<!-- size -->
|
|
47
|
+
<div class="lg:col-span-3 col-span-full">
|
|
48
|
+
<p class="label text-subtitle text-jpl-red">Approximate Size</p>
|
|
49
|
+
<BaseUnitToggle
|
|
50
|
+
v-slot="slotProps"
|
|
51
|
+
:unit-pair="'M_FT'"
|
|
52
|
+
:value="parseFloat(item.sizeFeet)"
|
|
53
|
+
:value-system="'imperial'"
|
|
54
|
+
>
|
|
55
|
+
<span class="text-stats-xl">{{ slotProps.formattedValue }}</span>
|
|
56
|
+
</BaseUnitToggle>
|
|
57
|
+
</div>
|
|
58
|
+
<!-- size -->
|
|
59
|
+
<div class="lg:col-span-5 col-span-full">
|
|
60
|
+
<p class="label text-subtitle text-jpl-red">Closest Earth Approach</p>
|
|
61
|
+
<BaseUnitToggle
|
|
62
|
+
v-slot="slotProps"
|
|
63
|
+
:unit-pair="'MI_KM'"
|
|
64
|
+
:value="parseFloat(item.distanceMiles)"
|
|
65
|
+
:second-value="parseFloat(item.distanceKilometers)"
|
|
66
|
+
:value-system="'imperial'"
|
|
67
|
+
>
|
|
68
|
+
<span class="text-stats-xl">{{ slotProps.formattedValue }}</span>
|
|
69
|
+
</BaseUnitToggle>
|
|
70
|
+
</div>
|
|
71
|
+
<div
|
|
72
|
+
v-if="item.name"
|
|
73
|
+
class="lg:col-span-3 col-span-full"
|
|
74
|
+
>
|
|
75
|
+
<p class="label text-subtitle text-jpl-red">Name</p>
|
|
76
|
+
<BaseLink
|
|
77
|
+
variant="none"
|
|
78
|
+
:href="item.externalLink"
|
|
79
|
+
external-target-blank
|
|
80
|
+
>
|
|
81
|
+
<span class="flex flex-nowrap items-center">
|
|
82
|
+
<span>{{ item.name }}</span>
|
|
83
|
+
<IconExternal class="text-jpl-red ml-3 text-lg" />
|
|
84
|
+
</span>
|
|
85
|
+
</BaseLink>
|
|
86
|
+
</div>
|
|
87
|
+
<div
|
|
88
|
+
v-if="item.date"
|
|
89
|
+
class="lg:col-span-4 col-span-full"
|
|
90
|
+
>
|
|
91
|
+
<p class="label text-subtitle text-jpl-red">Date</p>
|
|
92
|
+
{{
|
|
93
|
+
// @ts-ignore
|
|
94
|
+
$filters.displayDate(item.date)
|
|
95
|
+
}}
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
<div
|
|
100
|
+
:class="index === 0 ? 'bg-gray-light' : ''"
|
|
101
|
+
class="col-start-container-end col-end-bleed sm:block hidden"
|
|
102
|
+
></div>
|
|
103
|
+
</div>
|
|
104
|
+
</section>
|
|
105
|
+
</template>
|
|
106
|
+
<script lang="ts">
|
|
107
|
+
import { defineComponent } from 'vue'
|
|
108
|
+
import type { PropType } from 'vue'
|
|
109
|
+
import BaseLink from './../BaseLink/BaseLink.vue'
|
|
110
|
+
import BaseUnitToggle from './../BaseUnitToggle/BaseUnitToggle.vue'
|
|
111
|
+
import IconExternal from './../Icons/IconExternal.vue'
|
|
112
|
+
|
|
113
|
+
interface NextCloseApproach {
|
|
114
|
+
date: string
|
|
115
|
+
distanceMiles: string
|
|
116
|
+
distanceKilometers: string
|
|
117
|
+
comparisonImage: {
|
|
118
|
+
image: {
|
|
119
|
+
src: {
|
|
120
|
+
url: string
|
|
121
|
+
}
|
|
122
|
+
webp: {
|
|
123
|
+
url: string
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
text: string
|
|
127
|
+
}
|
|
128
|
+
sizeFeet: string
|
|
129
|
+
name: string
|
|
130
|
+
externalLink: string
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Displays asteroid widget data. API is parsed by the backend. Frontend retrieves via a graphQL query.
|
|
134
|
+
*/
|
|
135
|
+
export default defineComponent({
|
|
136
|
+
name: 'AsteroidWatchWidget',
|
|
137
|
+
components: {
|
|
138
|
+
BaseLink,
|
|
139
|
+
IconExternal,
|
|
140
|
+
BaseUnitToggle
|
|
141
|
+
},
|
|
142
|
+
props: {
|
|
143
|
+
nextCloseApproaches: {
|
|
144
|
+
type: Array as PropType<NextCloseApproach[]>,
|
|
145
|
+
required: false
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
})
|
|
149
|
+
</script>
|
|
150
|
+
<style lang="scss">
|
|
151
|
+
.AsteroidWatchWidget {
|
|
152
|
+
.label {
|
|
153
|
+
@apply font-semibold mb-4 text-jpl-red-dark;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
</style>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import BackToTop from './BackToTop.vue'
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Components/Utilities/BackToTop',
|
|
5
|
+
component: BackToTop
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
// template
|
|
9
|
+
const BackToTopTemplate = (args) => ({
|
|
10
|
+
components: { BackToTop },
|
|
11
|
+
setup() {
|
|
12
|
+
return { args }
|
|
13
|
+
},
|
|
14
|
+
template: `
|
|
15
|
+
<div style="height: 2000px;"><div class="fixed">Will appear here on scroll: <BackToTop v-show="true" v-bind="args" /></div></div>
|
|
16
|
+
`
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
export const Default = BackToTopTemplate.bind({})
|
|
20
|
+
Default.storyName = 'BackToTop'
|
|
21
|
+
Default.args = {
|
|
22
|
+
threshhold: 300,
|
|
23
|
+
scrollTo: 0
|
|
24
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<BaseButton
|
|
3
|
+
v-if="showBackToTop"
|
|
4
|
+
variant="primary"
|
|
5
|
+
class="BackToTop z-60"
|
|
6
|
+
compact
|
|
7
|
+
@click="scrollToTop"
|
|
8
|
+
>
|
|
9
|
+
<IconDropdown />
|
|
10
|
+
<span class="label-text">Back to top</span>
|
|
11
|
+
</BaseButton>
|
|
12
|
+
</template>
|
|
13
|
+
<script lang="ts">
|
|
14
|
+
import { defineComponent } from 'vue'
|
|
15
|
+
import _throttle from 'lodash/throttle'
|
|
16
|
+
import type { DebouncedFunc } from 'lodash'
|
|
17
|
+
import BaseButton from './../BaseButton/BaseButton.vue'
|
|
18
|
+
import IconDropdown from './../Icons/IconDropdown.vue'
|
|
19
|
+
|
|
20
|
+
export default defineComponent({
|
|
21
|
+
name: 'BackToTop',
|
|
22
|
+
components: {
|
|
23
|
+
BaseButton,
|
|
24
|
+
IconDropdown
|
|
25
|
+
},
|
|
26
|
+
props: {
|
|
27
|
+
threshold: {
|
|
28
|
+
type: Number,
|
|
29
|
+
required: false,
|
|
30
|
+
default: 300
|
|
31
|
+
},
|
|
32
|
+
scrollTo: {
|
|
33
|
+
type: Number,
|
|
34
|
+
required: false,
|
|
35
|
+
default: 0
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
data(): {
|
|
39
|
+
showBackToTop: Boolean
|
|
40
|
+
scrollHandler: DebouncedFunc<() => void> | null
|
|
41
|
+
} {
|
|
42
|
+
return {
|
|
43
|
+
showBackToTop: false,
|
|
44
|
+
scrollHandler: null
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
mounted() {
|
|
48
|
+
this.scrollHandler = _throttle(this.onScroll, 100)
|
|
49
|
+
window.addEventListener('scroll', this.scrollHandler, {
|
|
50
|
+
passive: true
|
|
51
|
+
})
|
|
52
|
+
},
|
|
53
|
+
beforeUnmount() {
|
|
54
|
+
if (this.scrollHandler) {
|
|
55
|
+
window.removeEventListener('scroll', this.scrollHandler)
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
methods: {
|
|
59
|
+
onScroll() {
|
|
60
|
+
this.showBackToTop = window.scrollY > this.threshold
|
|
61
|
+
// De-register the scroll event listener, so the button always shows
|
|
62
|
+
// and we don’t run scroll listeners for little value.
|
|
63
|
+
if (this.showBackToTop && this.scrollHandler) {
|
|
64
|
+
window.removeEventListener('scroll', this.scrollHandler)
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
scrollToTop() {
|
|
68
|
+
window.scrollTo({ top: this.scrollTo, behavior: 'smooth' })
|
|
69
|
+
this.$emit('click')
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
})
|
|
73
|
+
</script>
|
|
74
|
+
<style lang="scss">
|
|
75
|
+
@import '@explorer-1/common/src/scss/components/BackToTop';
|
|
76
|
+
</style>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import BaseAudio from './BaseAudio.vue'
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Components/Base/BaseAudio',
|
|
5
|
+
component: BaseAudio,
|
|
6
|
+
decorators: [
|
|
7
|
+
() => ({
|
|
8
|
+
template: `<div id="storyDecorator" class="bg-black p-4 pb-5"><story/></div>`
|
|
9
|
+
})
|
|
10
|
+
],
|
|
11
|
+
parameters: {
|
|
12
|
+
html: {
|
|
13
|
+
root: '#storyDecorator'
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
excludeStories: /.*Data$/
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// shared data
|
|
20
|
+
export const BaseAudioData = {
|
|
21
|
+
file: 'http://127.0.0.1:9000/media/media/05_Da_Funk_Call_Out_Research_Hook.mp3',
|
|
22
|
+
autoPlay: false,
|
|
23
|
+
loop: false
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const Base = {
|
|
27
|
+
name: 'BaseAudio', // single story hoisting
|
|
28
|
+
args: BaseAudioData
|
|
29
|
+
}
|