feat(SW-1818): Refactored sysAsset handling to support PDF links

Approved-by: Matilda Landström
This commit is contained in:
Erik Tiekstra
2025-06-09 09:28:17 +00:00
parent bff34b034e
commit ac953ccd97
23 changed files with 86 additions and 84 deletions

View File

@@ -1,4 +1,4 @@
#import "../Image.graphql"
#import "../SysAsset.graphql"
#import "../PageLink/AccountPageLink.graphql"
#import "../PageLink/CollectionPageLink.graphql"
@@ -33,7 +33,7 @@ fragment AccordionBlock on Accordion {
edges {
node {
__typename
...Image
...SysAsset
...AccountPageLink
...CollectionPageLink
...ContentPageLink
@@ -60,7 +60,7 @@ fragment GlobalAccordionBlock on GlobalAccordion {
edges {
node {
__typename
...Image
...SysAsset
...AccountPageLink
...CollectionPageLink
...ContentPageLink
@@ -113,7 +113,7 @@ fragment SpecificAccordion_ContentPage on ContentPageBlocksAccordionBlockAccordi
edges {
node {
__typename
...Image
...SysAsset
...AccountPageLink
...CollectionPageLink
...ContentPageLink
@@ -214,7 +214,7 @@ fragment SpecificAccordion_DestinationCityPage on DestinationCityPageBlocksAccor
edges {
node {
__typename
...Image
...SysAsset
...AccountPageLink
...CollectionPageLink
...ContentPageLink
@@ -315,7 +315,7 @@ fragment SpecificAccordion_DestinationCountryPage on DestinationCountryPageBlock
edges {
node {
__typename
...Image
...SysAsset
...AccountPageLink
...CollectionPageLink
...ContentPageLink

View File

@@ -1,4 +1,4 @@
#import "../Image.graphql"
#import "../SysAsset.graphql"
#import "../ImageContainer.graphql"
#import "../PageLink/AccountPageLink.graphql"
@@ -28,7 +28,7 @@ fragment Content_ContentPage on ContentPageBlocksContent {
edges {
node {
__typename
...Image
...SysAsset
...ImageContainer
...AccountPageLink
...CollectionPageLink
@@ -78,7 +78,7 @@ fragment Content_LoyaltyPage on LoyaltyPageBlocksContent {
edges {
node {
__typename
...Image
...SysAsset
...ImageContainer
...AccountPageLink
...CollectionPageLink

View File

@@ -1,4 +1,4 @@
#import "../Image.graphql"
#import "../SysAsset.graphql"
fragment TextBlock on CurrentBlocksPageBlocksText {
text {
@@ -8,7 +8,7 @@ fragment TextBlock on CurrentBlocksPageBlocksText {
edges {
node {
__typename
...Image
...SysAsset
}
}
}

View File

@@ -1,4 +1,4 @@
#import "../Image.graphql"
#import "../SysAsset.graphql"
fragment TextContent_AccountPage on AccountPageContentTextContent {
text_content {
@@ -9,7 +9,7 @@ fragment TextContent_AccountPage on AccountPageContentTextContent {
edges {
node {
__typename
...Image
...SysAsset
}
}
}

View File

@@ -1,4 +1,4 @@
#import "../Image.graphql"
#import "../SysAsset.graphql"
fragment CurrentFooterAppDownloads on CurrentFooter {
app_downloads {
@@ -8,7 +8,7 @@ fragment CurrentFooterAppDownloads on CurrentFooter {
imageConnection {
edges {
node {
...Image
...SysAsset
}
}
}
@@ -18,7 +18,7 @@ fragment CurrentFooterAppDownloads on CurrentFooter {
imageConnection {
edges {
node {
...Image
...SysAsset
}
}
}

View File

@@ -1,10 +1,10 @@
#import "../Image.graphql"
#import "../SysAsset.graphql"
fragment Logo on CurrentFooter {
logoConnection {
edges {
node {
...Image
...SysAsset
}
}
}

View File

@@ -1,11 +1,11 @@
#import "../Image.graphql"
#import "../SysAsset.graphql"
fragment TripAdvisor on CurrentFooter {
trip_advisor {
logoConnection {
edges {
node {
...Image
...SysAsset
}
}
}

View File

@@ -1,11 +1,11 @@
#import "./Image.graphql"
#import "./SysAsset.graphql"
fragment Hero on Hero {
imagesConnection {
totalCount
edges {
node {
...Image
...SysAsset
}
}
}

View File

@@ -1,4 +1,4 @@
#import "./Image.graphql"
#import "./SysAsset.graphql"
fragment Preamble on CurrentBlocksPage {
preamble {
@@ -8,7 +8,7 @@ fragment Preamble on CurrentBlocksPage {
edges {
node {
__typename
...Image
...SysAsset
}
}
}

View File

@@ -1,10 +1,10 @@
#import "./Image.graphql"
#import "./SysAsset.graphql"
fragment Puff on Puff {
imageConnection {
edges {
node {
...Image
...SysAsset
}
}
}

View File

@@ -1,4 +1,4 @@
#import "../Image.graphql"
#import "../SysAsset.graphql"
#import "../ImageContainer.graphql"
#import "../PageLink/AccountPageLink.graphql"
@@ -29,7 +29,7 @@ fragment ContentSidebar_ContentPage on ContentPageSidebarContent {
edges {
node {
__typename
...Image
...SysAsset
...ImageContainer
...AccountPageLink
...CollectionPageLink
@@ -79,7 +79,7 @@ fragment ContentSidebar_LoyaltyPage on LoyaltyPageSidebarContent {
edges {
node {
__typename
...Image
...SysAsset
...ImageContainer
...AccountPageLink
...CollectionPageLink

View File

@@ -1,4 +1,4 @@
fragment Image on SysAsset {
fragment SysAsset on SysAsset {
content_type
description
dimension {

View File

@@ -1,4 +1,4 @@
#import "../../Fragments/Image.graphql"
#import "../../Fragments/SysAsset.graphql"
#import "../../Fragments/System.graphql"
query GetCurrentHeader($locale: String!) {
@@ -8,7 +8,7 @@ query GetCurrentHeader($locale: String!) {
logoConnection {
edges {
node {
...Image
...SysAsset
}
}
}