From d2e56739af7f0d1e8dd9363d6e2c057d163c83ae Mon Sep 17 00:00:00 2001 From: Pontus Dreij Date: Wed, 28 Aug 2024 08:30:45 +0200 Subject: [PATCH] feat(SW-187): Footer data from contentstack --- .../Fragments/Footer/AppDownloads.graphql | 12 +++++++++++ .../Fragments/Footer/Refs/MainLinks.graphql | 18 +++++++++++++++++ .../Footer/Refs/SecondaryLinks.graphql | 20 +++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 lib/graphql/Fragments/Footer/AppDownloads.graphql create mode 100644 lib/graphql/Fragments/Footer/Refs/MainLinks.graphql create mode 100644 lib/graphql/Fragments/Footer/Refs/SecondaryLinks.graphql diff --git a/lib/graphql/Fragments/Footer/AppDownloads.graphql b/lib/graphql/Fragments/Footer/AppDownloads.graphql new file mode 100644 index 000000000..f9e2f7d40 --- /dev/null +++ b/lib/graphql/Fragments/Footer/AppDownloads.graphql @@ -0,0 +1,12 @@ +fragment AppDownloads on Footer { + app_downloads { + title + links { + type + href { + href + title + } + } + } +} diff --git a/lib/graphql/Fragments/Footer/Refs/MainLinks.graphql b/lib/graphql/Fragments/Footer/Refs/MainLinks.graphql new file mode 100644 index 000000000..cea5340f4 --- /dev/null +++ b/lib/graphql/Fragments/Footer/Refs/MainLinks.graphql @@ -0,0 +1,18 @@ +fragment MainLinksRef on Footer { + __typename + main_links { + pageConnection { + edges { + node { + __typename + ...LoyaltyPageRef + ...ContentPageRef + ...AccountPageRef + } + } + } + } + system { + ...System + } +} diff --git a/lib/graphql/Fragments/Footer/Refs/SecondaryLinks.graphql b/lib/graphql/Fragments/Footer/Refs/SecondaryLinks.graphql new file mode 100644 index 000000000..d324e40b1 --- /dev/null +++ b/lib/graphql/Fragments/Footer/Refs/SecondaryLinks.graphql @@ -0,0 +1,20 @@ +fragment SecondaryLinksRef on Footer { + __typename + secondary_links { + links { + pageConnection { + edges { + node { + __typename + ...LoyaltyPageRef + ...ContentPageRef + ...AccountPageRef + } + } + } + } + } + system { + ...System + } +}