Feat/BOOK-240 hero video
Approved-by: Chuma Mcphoy (We Ahead) Approved-by: Christel Westerberg
This commit is contained in:
@@ -7,3 +7,10 @@ export const System = gql`
|
||||
uid
|
||||
}
|
||||
`
|
||||
|
||||
export const AssetSystem = gql`
|
||||
fragment AssetSystem on SysAssetSystemField {
|
||||
content_type_uid
|
||||
uid
|
||||
}
|
||||
`
|
||||
|
||||
45
packages/trpc/lib/graphql/Fragments/Video.graphql.ts
Normal file
45
packages/trpc/lib/graphql/Fragments/Video.graphql.ts
Normal file
@@ -0,0 +1,45 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AssetSystem } from "./System.graphql"
|
||||
|
||||
export const Video = gql`
|
||||
fragment Video on Video {
|
||||
sourceConnection {
|
||||
edges {
|
||||
node {
|
||||
url
|
||||
}
|
||||
}
|
||||
}
|
||||
focal_point {
|
||||
x
|
||||
y
|
||||
}
|
||||
captions {
|
||||
is_default
|
||||
language
|
||||
fileConnection {
|
||||
edges {
|
||||
node {
|
||||
url
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
export const VideoRef = gql`
|
||||
fragment VideoRef on Video {
|
||||
sourceConnection {
|
||||
edges {
|
||||
node {
|
||||
system {
|
||||
...AssetSystem
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AssetSystem}
|
||||
`
|
||||
@@ -25,11 +25,15 @@ import {
|
||||
TopPrimaryButtonRef_CollectionPage,
|
||||
} from "../../Fragments/CollectionPage/TopPrimaryButton.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
import { Video, VideoRef } from "../../Fragments/Video.graphql"
|
||||
|
||||
export const GetCollectionPage = gql`
|
||||
query GetCollectionPage($locale: String!, $uid: String!) {
|
||||
collection_page(uid: $uid, locale: $locale) {
|
||||
hero_image
|
||||
hero_video {
|
||||
...Video
|
||||
}
|
||||
title
|
||||
header {
|
||||
heading
|
||||
@@ -64,11 +68,15 @@ export const GetCollectionPage = gql`
|
||||
${Shortcuts_CollectionPage}
|
||||
${UspGrid_CollectionPage}
|
||||
${DynamicContent_CollectionPage}
|
||||
${Video}
|
||||
`
|
||||
|
||||
export const GetCollectionPageRefs = gql`
|
||||
query GetCollectionPageRefs($locale: String!, $uid: String!) {
|
||||
collection_page(locale: $locale, uid: $uid) {
|
||||
hero_video {
|
||||
...VideoRef
|
||||
}
|
||||
header {
|
||||
...TopPrimaryButtonRef_CollectionPage
|
||||
...NavigationLinksRef_CollectionPage
|
||||
@@ -92,6 +100,7 @@ export const GetCollectionPageRefs = gql`
|
||||
${Shortcuts_CollectionPageRefs}
|
||||
${UspGrid_CollectionPageRefs}
|
||||
${DynamicContent_CollectionPageRefs}
|
||||
${VideoRef}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsCollectionPage = gql`
|
||||
|
||||
@@ -60,11 +60,15 @@ import {
|
||||
TeaserCardSidebar_ContentPageRefs,
|
||||
} from "../../Fragments/Sidebar/TeaserCard.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
import { Video, VideoRef } from "../../Fragments/Video.graphql"
|
||||
|
||||
export const GetContentPage = gql`
|
||||
query GetContentPage($locale: String!, $uid: String!) {
|
||||
content_page(uid: $uid, locale: $locale) {
|
||||
hero_image
|
||||
hero_video {
|
||||
...Video
|
||||
}
|
||||
title
|
||||
header {
|
||||
heading
|
||||
@@ -110,6 +114,7 @@ export const GetContentPage = gql`
|
||||
${ScriptedCardSidebar_ContentPage}
|
||||
${TeaserCardSidebar_ContentPage}
|
||||
${QuickLinksSidebar_ContentPage}
|
||||
${Video}
|
||||
`
|
||||
|
||||
export const GetContentPageBlocksBatch1 = gql`
|
||||
@@ -153,6 +158,9 @@ export const GetContentPageBlocksBatch2 = gql`
|
||||
export const GetContentPageRefs = gql`
|
||||
query GetContentPageRefs($locale: String!, $uid: String!) {
|
||||
content_page(locale: $locale, uid: $uid) {
|
||||
hero_video {
|
||||
...VideoRef
|
||||
}
|
||||
header {
|
||||
dynamic_content {
|
||||
component
|
||||
@@ -181,6 +189,7 @@ export const GetContentPageRefs = gql`
|
||||
${ScriptedCardSidebar_ContentPageRefs}
|
||||
${TeaserCardSidebar_ContentPageRefs}
|
||||
${QuickLinksSidebar_ContentPageRefs}
|
||||
${VideoRef}
|
||||
`
|
||||
|
||||
export const GetContentPageBlocksRefs = gql`
|
||||
|
||||
Reference in New Issue
Block a user