fix(SW-438): add ContentCard, ScriptedCard and Shortcuts to ContentPage sidebar
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
#import "../AccountPage/Ref.graphql"
|
||||
#import "../ContentPage/Ref.graphql"
|
||||
#import "../LoyaltyPage/Ref.graphql"
|
||||
|
||||
#import "../PageLink/AccountPageLink.graphql"
|
||||
#import "../PageLink/ContentPageLink.graphql"
|
||||
#import "../PageLink/LoyaltyPageLink.graphql"
|
||||
|
||||
#import "../Blocks/TeaserCard.graphql"
|
||||
#import "../Blocks/Refs/TeaserCard.graphql"
|
||||
|
||||
fragment ContentCardSidebar_ContentPage on ContentPageSidebarContentCard {
|
||||
__typename
|
||||
content_card {
|
||||
theme
|
||||
content_cardConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...TeaserCardBlock
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fragment ContentCardSidebar_ContentPageRefs on ContentPageSidebarContentCard {
|
||||
content_card {
|
||||
content_cardConnection {
|
||||
edges {
|
||||
node {
|
||||
...TeaserCardBlockRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
#import "../AccountPage/Ref.graphql"
|
||||
#import "../ContentPage/Ref.graphql"
|
||||
#import "../LoyaltyPage/Ref.graphql"
|
||||
|
||||
#import "../PageLink/AccountPageLink.graphql"
|
||||
#import "../PageLink/ContentPageLink.graphql"
|
||||
#import "../PageLink/LoyaltyPageLink.graphql"
|
||||
|
||||
#import "../Blocks/Shortcuts.graphql"
|
||||
|
||||
fragment QuickLinksSidebar_ContentPage on ContentPageSidebarShortcuts {
|
||||
__typename
|
||||
shortcuts {
|
||||
...Shortcuts
|
||||
}
|
||||
}
|
||||
|
||||
fragment QuickLinksSidebar_ContentPageRefs on ContentPageSidebarShortcuts {
|
||||
shortcuts {
|
||||
...ShortcutsRefs
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
#import "../AccountPage/Ref.graphql"
|
||||
#import "../ContentPage/Ref.graphql"
|
||||
#import "../LoyaltyPage/Ref.graphql"
|
||||
|
||||
#import "../PageLink/AccountPageLink.graphql"
|
||||
#import "../PageLink/ContentPageLink.graphql"
|
||||
#import "../PageLink/LoyaltyPageLink.graphql"
|
||||
|
||||
#import "../Blocks/Card.graphql"
|
||||
#import "../Blocks/Refs/Card.graphql"
|
||||
|
||||
fragment ScriptedCardSidebar_ContentPage on ContentPageSidebarScriptedCard {
|
||||
__typename
|
||||
scripted_card {
|
||||
theme
|
||||
scripted_cardConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...CardBlock
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fragment ScriptedCardSidebar_ContentPageRefs on ContentPageSidebarContentCard {
|
||||
scripted_card {
|
||||
scripted_cardConnection {
|
||||
edges {
|
||||
node {
|
||||
...CardBlockRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,6 +13,9 @@
|
||||
#import "../../Fragments/Sidebar/Content.graphql"
|
||||
#import "../../Fragments/Sidebar/DynamicContent.graphql"
|
||||
#import "../../Fragments/Sidebar/JoinLoyaltyContact.graphql"
|
||||
#import "../../Fragments/Sidebar/ContentCard.graphql"
|
||||
#import "../../Fragments/Sidebar/ScriptedCard.graphql"
|
||||
#import "../../Fragments/Sidebar/QuickLinks.graphql"
|
||||
|
||||
query GetContentPage($locale: String!, $uid: String!) {
|
||||
content_page(uid: $uid, locale: $locale) {
|
||||
@@ -28,6 +31,9 @@ query GetContentPage($locale: String!, $uid: String!) {
|
||||
...ContentSidebar_ContentPage
|
||||
...DynamicContentSidebar_ContentPage
|
||||
...JoinLoyaltyContactSidebar_ContentPage
|
||||
...ContentCardSidebar_ContentPage
|
||||
...ScriptedCardSidebar_ContentPage
|
||||
...QuickLinksSidebar_ContentPage
|
||||
}
|
||||
system {
|
||||
...System
|
||||
|
||||
Reference in New Issue
Block a user