-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integrating all page templates from www-frontend
- Loading branch information
1 parent
cf8f068
commit a5e6c5c
Showing
69 changed files
with
4,431 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
packages/vue/src/components/HomepageMissionsCarousel/HomepageMissionsCarousel.stories.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 11 additions & 11 deletions
22
packages/vue/src/components/MissionDetailHero/MissionDetailHero.stories.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
packages/vue/src/components/MissionDetailHighlights/MissionDetailHighlights.stories.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { defineStore } from 'pinia' | ||
/** Stores the state of user preferences on curated gallery detail pages | ||
*/ | ||
|
||
export interface State { | ||
showGridView?: boolean | ||
} | ||
|
||
export const useCuratedGalleryStore = defineStore('curatedGallery', { | ||
state: (): State => { | ||
return { | ||
showGridView: undefined | ||
} | ||
}, | ||
actions: { | ||
updateView(value: boolean) { | ||
this.showGridView = value | ||
} | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { defineStore } from 'pinia' | ||
/** Stores the state of various user preferences on listing and search pages | ||
*/ | ||
|
||
export interface SearchState { | ||
showSidebar: boolean | undefined | ||
showGridView: boolean | undefined | ||
showSidebarForGalleries: boolean | undefined | ||
showGridViewForGalleries: boolean | undefined | ||
showGridViewForPodcasts: boolean | undefined | ||
} | ||
|
||
export const useSearchStore = defineStore('search', { | ||
state: (): SearchState => { | ||
return { | ||
showSidebar: undefined, | ||
showGridView: undefined, | ||
showSidebarForGalleries: undefined, | ||
showGridViewForGalleries: undefined, | ||
showGridViewForPodcasts: undefined | ||
} | ||
}, | ||
actions: { | ||
updateSidebar(value: boolean) { | ||
this.showSidebar = value | ||
}, | ||
updateGridView(value: boolean) { | ||
this.showGridView = value | ||
}, | ||
updateSidebarForGalleries(value: boolean) { | ||
this.showSidebarForGalleries = value | ||
}, | ||
updateGridViewForGalleries(value: boolean) { | ||
this.showGridViewForGalleries = value | ||
}, | ||
updateGridViewForPodcasts(value: boolean) { | ||
this.showGridViewForPodcasts = value | ||
} | ||
}, | ||
persist: true | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...e/src/templates/edu/PageEduNewsDetail.vue → ...u/PageEduNewsDetail/PageEduNewsDetail.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
packages/vue/src/templates/www/PageAsteroidWatchContent/PageAsteroidWatchContent.stories.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import { HeroMediaData } from './../../../components/HeroMedia/HeroMedia.stories' | ||
import { AsteroidWatchWidgetData } from './../../../components/AsteroidWatchWidget/AsteroidWatchWidget.stories' | ||
import PageAsteroidWatchContent from './PageAsteroidWatchContent.vue' | ||
|
||
export default { | ||
title: 'Templates/WWW/PageAsteroidWatchContent', | ||
component: PageAsteroidWatchContent, | ||
decorators: [ | ||
() => ({ | ||
template: `<div id="storyDecorator" class="disable-nav-offset"><story/></div>` | ||
}) | ||
], | ||
tags: ['!autodocs'], | ||
parameters: { | ||
layout: 'fullscreen', | ||
html: { | ||
root: '#storyDecorator' | ||
}, | ||
viewMode: 'canvas' | ||
}, | ||
excludeStories: /.*(Data)$/ | ||
} | ||
|
||
// data | ||
export const PageAsteroidWatchContentData = { | ||
url: '/asteroid-watch/next-five-approaches', | ||
slug: 'next-five-approaches', | ||
breadcrumb: | ||
'[{"path": "/parent/", "title": "Overview"}, {"path": "/parent/placeholder-1/", "title": "Sibling Item 1"}, {"path": "/parent/placeholder-2/", "title": "Sibling Item 2"}, {"path": "/parent/placeholder-3/", "title": "Sibling Item 3"}]', | ||
title: 'Next Five approaches', | ||
label: 'Asteroid Watch', | ||
heroImage: HeroMediaData.image, | ||
nextCloseApproaches: AsteroidWatchWidgetData.nextCloseApproaches, | ||
body: [ | ||
{ | ||
blockType: 'RichTextBlock', | ||
value: `<p>The Asteroid Watch dashboard tracks asteroids and comets that will make relatively close approaches to Earth. The dashboard displays the date of closest approach, approximate object diameter, relative size and distance from Earth for each encounter. The object's name is displayed by hovering over its encounter date. Clicking on the encounter date will display a Web page with details about that object.</p>` | ||
} | ||
] | ||
} | ||
|
||
// template | ||
const PageAsteroidWatchContentTemplate = (args) => ({ | ||
props: Object.keys(args), | ||
components: { PageAsteroidWatchContent }, | ||
template: `<PageAsteroidWatchContent :data="contentPage"/>` | ||
}) | ||
|
||
// stories | ||
export const BaseStory = { | ||
name: 'PageAsteroidWatchContent', | ||
args: { | ||
data: PageAsteroidWatchContentData | ||
} | ||
} |
Oops, something went wrong.