Merged in revert-gql (pull request #3104)

Revert gql

* Revert "Merged in fix/system-fragment (pull request #3102)"

This reverts commit 0d479eb337.

* Revert "Merged in chore/replace-graphql-tag/loader (pull request #3096)"

This reverts commit e9bd159e98.
This commit is contained in:
Linus Flood
2025-11-07 13:13:28 +00:00
parent cab85f3ffd
commit 5770dcdd9c
291 changed files with 8000 additions and 11733 deletions

View File

@@ -1,9 +1,6 @@
import { gql } from "graphql-tag"
#import "../../Fragments/Metadata.graphql"
#import "../../Fragments/System.graphql"
import { Metadata } from "../../Fragments/Metadata.graphql"
import { System } from "../../Fragments/System.graphql"
export const GetStartPageMetadata = gql`
query GetStartPageMetadata($locale: String!, $uid: String!) {
start_page(locale: $locale, uid: $uid) {
web {
@@ -20,6 +17,3 @@ query GetStartPageMetadata($locale: String!, $uid: String!) {
}
}
}
${Metadata}
${System}
`

View File

@@ -0,0 +1,90 @@
#import "../../Fragments/System.graphql"
#import "../../Fragments/Blocks/CardsGrid.graphql"
#import "../../Fragments/Blocks/FullWidthCampaign.graphql"
#import "../../Fragments/Blocks/CarouselCards.graphql"
#import "../../Fragments/Blocks/JoinScandicFriends.graphql"
query GetStartPage($locale: String!, $uid: String!) {
start_page(locale: $locale, uid: $uid) {
title
url
header {
heading
hero_image
}
blocks {
__typename
...CardsGrid_StartPage
...CarouselCards_StartPage
... on StartPageBlocksFullWidthCampaign {
__typename
full_width_campaign {
full_width_campaignConnection {
edges {
node {
...FullWidthCampaign
}
}
}
}
}
...JoinScandicFriends_StartPage
}
system {
...System
created_at
updated_at
}
}
trackingProps: start_page(locale: "en", uid: $uid) {
url
}
}
query GetStartPageRefs($locale: String!, $uid: String!) {
start_page(locale: $locale, uid: $uid) {
blocks {
__typename
...CardsGrid_StartPageRefs
...CarouselCards_StartPageRefs
... on StartPageBlocksFullWidthCampaign {
full_width_campaign {
full_width_campaignConnection {
edges {
node {
...FullWidthCampaignRefs
}
}
}
}
}
...JoinScandicFriends_StartPageRefs
}
system {
...System
}
}
}
query GetDaDeEnUrlsStartPage($uid: String!) {
de: start_page(locale: "de", uid: $uid) {
url
}
en: start_page(locale: "en", uid: $uid) {
url
}
da: start_page(locale: "da", uid: $uid) {
url
}
}
query GetFiNoSvUrlsStartPage($uid: String!) {
fi: start_page(locale: "fi", uid: $uid) {
url
}
no: start_page(locale: "no", uid: $uid) {
url
}
sv: start_page(locale: "sv", uid: $uid) {
url
}
}

View File

@@ -1,123 +0,0 @@
import { gql } from "graphql-tag"
import {
CardsGrid_StartPage,
CardsGrid_StartPageRefs,
} from "../../Fragments/Blocks/CardsGrid.graphql"
import {
CarouselCards_StartPage,
CarouselCards_StartPageRefs,
} from "../../Fragments/Blocks/CarouselCards.graphql"
import {
FullWidthCampaign,
FullWidthCampaignRefs,
} from "../../Fragments/Blocks/FullWidthCampaign.graphql"
import {
JoinScandicFriends_StartPage,
JoinScandicFriends_StartPageRefs,
} from "../../Fragments/Blocks/JoinScandicFriends.graphql"
import { System } from "../../Fragments/System.graphql"
export const GetStartPage = gql`
query GetStartPage($locale: String!, $uid: String!) {
start_page(locale: $locale, uid: $uid) {
title
url
header {
heading
hero_image
}
blocks {
__typename
...CardsGrid_StartPage
...CarouselCards_StartPage
... on StartPageBlocksFullWidthCampaign {
__typename
full_width_campaign {
full_width_campaignConnection {
edges {
node {
...FullWidthCampaign
}
}
}
}
}
...JoinScandicFriends_StartPage
}
system {
...System
created_at
updated_at
}
}
trackingProps: start_page(locale: "en", uid: $uid) {
url
}
}
${System}
${CardsGrid_StartPage}
${FullWidthCampaign}
${CarouselCards_StartPage}
${JoinScandicFriends_StartPage}
`
export const GetStartPageRefs = gql`
query GetStartPageRefs($locale: String!, $uid: String!) {
start_page(locale: $locale, uid: $uid) {
blocks {
__typename
...CardsGrid_StartPageRefs
...CarouselCards_StartPageRefs
... on StartPageBlocksFullWidthCampaign {
full_width_campaign {
full_width_campaignConnection {
edges {
node {
...FullWidthCampaignRefs
}
}
}
}
}
...JoinScandicFriends_StartPageRefs
}
system {
...System
}
}
}
${System}
${CardsGrid_StartPageRefs}
${FullWidthCampaignRefs}
${CarouselCards_StartPageRefs}
${JoinScandicFriends_StartPageRefs}
`
export const GetDaDeEnUrlsStartPage = gql`
query GetDaDeEnUrlsStartPage($uid: String!) {
de: start_page(locale: "de", uid: $uid) {
url
}
en: start_page(locale: "en", uid: $uid) {
url
}
da: start_page(locale: "da", uid: $uid) {
url
}
}
`
export const GetFiNoSvUrlsStartPage = gql`
query GetFiNoSvUrlsStartPage($uid: String!) {
fi: start_page(locale: "fi", uid: $uid) {
url
}
no: start_page(locale: "no", uid: $uid) {
url
}
sv: start_page(locale: "sv", uid: $uid) {
url
}
}
`