Merged in feat/rework-contentstack (pull request #3493)
Feat(SW-3708): refactor contentstack fetching (removing all refs) and cache invalidation * Remove all REFS * Revalidate correct language * PR fixes * PR fixes * Throw when errors from contentstack api Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -1,15 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "./AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "./CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "./CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "./CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "./ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "./DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "./DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "./DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "./HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "./LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "./PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "./PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "./PageLink/CampaignPageLink.graphql"
|
||||
@@ -22,8 +12,6 @@ import { HotelPageLink } from "./PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "./PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "./PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "./PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "./PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "./StartPage/Ref.graphql"
|
||||
|
||||
export const Banner = gql`
|
||||
fragment Banner on Banner {
|
||||
@@ -67,45 +55,3 @@ export const Banner = gql`
|
||||
${StartPageLink}
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const BannerRef = gql`
|
||||
fragment BannerRef on Banner {
|
||||
link {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
visible_on
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user