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

@@ -0,0 +1,147 @@
#import "../../Fragments/System.graphql"
#import "../../Fragments/Blocks/Accordion.graphql"
#import "../../Fragments/Blocks/CardsGrid.graphql"
#import "../../Fragments/Blocks/Content.graphql"
#import "../../Fragments/Blocks/DynamicContent.graphql"
#import "../../Fragments/Blocks/HotelListing.graphql"
#import "../../Fragments/Blocks/Shortcuts.graphql"
#import "../../Fragments/Blocks/Table.graphql"
#import "../../Fragments/Blocks/TextCols.graphql"
#import "../../Fragments/Blocks/UspGrid.graphql"
#import "../../Fragments/ContentPage/NavigationLinks.graphql"
#import "../../Fragments/ContentPage/TopPrimaryButton.graphql"
#import "../../Fragments/Sidebar/Content.graphql"
#import "../../Fragments/Sidebar/DynamicContent.graphql"
#import "../../Fragments/Sidebar/JoinLoyaltyContact.graphql"
#import "../../Fragments/Sidebar/TeaserCard.graphql"
#import "../../Fragments/Sidebar/ScriptedCard.graphql"
#import "../../Fragments/Sidebar/QuickLinks.graphql"
query GetContentPage($locale: String!, $uid: String!) {
content_page(uid: $uid, locale: $locale) {
hero_image
title
header {
heading
preamble
dynamic_content {
component
}
...TopPrimaryButton_ContentPage
...NavigationLinks_ContentPage
}
meeting_package {
show_widget
location
}
blocks {
__typename
}
sidebar {
__typename
...ContentSidebar_ContentPage
...DynamicContentSidebar_ContentPage
...JoinLoyaltyContactSidebar_ContentPage
...ScriptedCardSidebar_ContentPage
...TeaserCardSidebar_ContentPage
...QuickLinksSidebar_ContentPage
}
system {
...System
created_at
updated_at
}
}
trackingProps: content_page(locale: "en", uid: $uid) {
url
}
}
query GetContentPageBlocksBatch1($locale: String!, $uid: String!) {
content_page(uid: $uid, locale: $locale) {
blocks {
__typename
...Accordion_ContentPage
...CardsGrid_ContentPage
...Content_ContentPage
...DynamicContent_ContentPage
}
}
}
query GetContentPageBlocksBatch2($locale: String!, $uid: String!) {
content_page(uid: $uid, locale: $locale) {
blocks {
__typename
...HotelListing_ContentPage
...Shortcuts_ContentPage
...Table_ContentPage
...TextCols_ContentPage
...UspGrid_ContentPage
}
}
}
query GetContentPageRefs($locale: String!, $uid: String!) {
content_page(locale: $locale, uid: $uid) {
header {
dynamic_content {
component
}
...NavigationLinksRef_ContentPage
...TopPrimaryButtonRef_ContentPage
}
sidebar {
__typename
...ContentSidebar_ContentPageRefs
...JoinLoyaltyContactSidebar_ContentPageRefs
...ScriptedCardSidebar_ContentPageRefs
...TeaserCardSidebar_ContentPageRefs
...QuickLinksSidebar_ContentPageRefs
}
system {
...System
}
}
}
query GetContentPageBlocksRefs($locale: String!, $uid: String!) {
content_page(locale: $locale, uid: $uid) {
blocks {
__typename
...Accordion_ContentPageRefs
...CardsGrid_ContentPageRefs
...Content_ContentPageRefs
...DynamicContent_ContentPageRefs
...Shortcuts_ContentPageRefs
...TextCols_ContentPageRef
...UspGrid_ContentPageRefs
}
}
}
query GetDaDeEnUrlsContentPage($uid: String!) {
de: content_page(locale: "de", uid: $uid) {
url
}
en: content_page(locale: "en", uid: $uid) {
url
}
da: content_page(locale: "da", uid: $uid) {
url
}
}
query GetFiNoSvUrlsContentPage($uid: String!) {
fi: content_page(locale: "fi", uid: $uid) {
url
}
no: content_page(locale: "no", uid: $uid) {
url
}
sv: content_page(locale: "sv", uid: $uid) {
url
}
}

View File

@@ -1,236 +0,0 @@
import { gql } from "graphql-tag"
import {
Accordion_ContentPage,
Accordion_ContentPageRefs,
} from "../../Fragments/Blocks/Accordion.graphql"
import {
CardsGrid_ContentPage,
CardsGrid_ContentPageRefs,
} from "../../Fragments/Blocks/CardsGrid.graphql"
import {
Content_ContentPage,
Content_ContentPageRefs,
} from "../../Fragments/Blocks/Content.graphql"
import {
DynamicContent_ContentPage,
DynamicContent_ContentPageRefs,
} from "../../Fragments/Blocks/DynamicContent.graphql"
import { HotelListing_ContentPage } from "../../Fragments/Blocks/HotelListing.graphql"
import {
Shortcuts_ContentPage,
Shortcuts_ContentPageRefs,
} from "../../Fragments/Blocks/Shortcuts.graphql"
import { Table_ContentPage } from "../../Fragments/Blocks/Table.graphql"
import {
TextCols_ContentPage,
TextCols_ContentPageRef,
} from "../../Fragments/Blocks/TextCols.graphql"
import {
UspGrid_ContentPage,
UspGrid_ContentPageRefs,
} from "../../Fragments/Blocks/UspGrid.graphql"
import {
NavigationLinks_ContentPage,
NavigationLinksRef_ContentPage,
} from "../../Fragments/ContentPage/NavigationLinks.graphql"
import {
TopPrimaryButton_ContentPage,
TopPrimaryButtonRef_ContentPage,
} from "../../Fragments/ContentPage/TopPrimaryButton.graphql"
import {
ContentSidebar_ContentPage,
ContentSidebar_ContentPageRefs,
} from "../../Fragments/Sidebar/Content.graphql"
import { DynamicContentSidebar_ContentPage } from "../../Fragments/Sidebar/DynamicContent.graphql"
import {
JoinLoyaltyContactSidebar_ContentPage,
JoinLoyaltyContactSidebar_ContentPageRefs,
} from "../../Fragments/Sidebar/JoinLoyaltyContact.graphql"
import {
QuickLinksSidebar_ContentPage,
QuickLinksSidebar_ContentPageRefs,
} from "../../Fragments/Sidebar/QuickLinks.graphql"
import {
ScriptedCardSidebar_ContentPage,
ScriptedCardSidebar_ContentPageRefs,
} from "../../Fragments/Sidebar/ScriptedCard.graphql"
import {
TeaserCardSidebar_ContentPage,
TeaserCardSidebar_ContentPageRefs,
} from "../../Fragments/Sidebar/TeaserCard.graphql"
import { System } from "../../Fragments/System.graphql"
export const GetContentPage = gql`
query GetContentPage($locale: String!, $uid: String!) {
content_page(uid: $uid, locale: $locale) {
hero_image
title
header {
heading
preamble
dynamic_content {
component
}
...TopPrimaryButton_ContentPage
...NavigationLinks_ContentPage
}
meeting_package {
show_widget
location
}
blocks {
__typename
}
sidebar {
__typename
...ContentSidebar_ContentPage
...DynamicContentSidebar_ContentPage
...JoinLoyaltyContactSidebar_ContentPage
...ScriptedCardSidebar_ContentPage
...TeaserCardSidebar_ContentPage
...QuickLinksSidebar_ContentPage
}
system {
...System
created_at
updated_at
}
}
trackingProps: content_page(locale: "en", uid: $uid) {
url
}
}
${System}
${TopPrimaryButton_ContentPage}
${NavigationLinks_ContentPage}
${ContentSidebar_ContentPage}
${DynamicContentSidebar_ContentPage}
${JoinLoyaltyContactSidebar_ContentPage}
${ScriptedCardSidebar_ContentPage}
${TeaserCardSidebar_ContentPage}
${QuickLinksSidebar_ContentPage}
`
export const GetContentPageBlocksBatch1 = gql`
query GetContentPageBlocksBatch1($locale: String!, $uid: String!) {
content_page(uid: $uid, locale: $locale) {
blocks {
__typename
...Accordion_ContentPage
...CardsGrid_ContentPage
...Content_ContentPage
...DynamicContent_ContentPage
}
}
}
${Accordion_ContentPage}
${CardsGrid_ContentPage}
${Content_ContentPage}
${DynamicContent_ContentPage}
`
export const GetContentPageBlocksBatch2 = gql`
query GetContentPageBlocksBatch2($locale: String!, $uid: String!) {
content_page(uid: $uid, locale: $locale) {
blocks {
__typename
...HotelListing_ContentPage
...Shortcuts_ContentPage
...Table_ContentPage
...TextCols_ContentPage
...UspGrid_ContentPage
}
}
}
${HotelListing_ContentPage}
${Shortcuts_ContentPage}
${Table_ContentPage}
${TextCols_ContentPage}
${UspGrid_ContentPage}
`
export const GetContentPageRefs = gql`
query GetContentPageRefs($locale: String!, $uid: String!) {
content_page(locale: $locale, uid: $uid) {
header {
dynamic_content {
component
}
...NavigationLinksRef_ContentPage
...TopPrimaryButtonRef_ContentPage
}
sidebar {
__typename
...ContentSidebar_ContentPageRefs
...JoinLoyaltyContactSidebar_ContentPageRefs
...ScriptedCardSidebar_ContentPageRefs
...TeaserCardSidebar_ContentPageRefs
...QuickLinksSidebar_ContentPageRefs
}
system {
...System
}
}
}
${System}
${NavigationLinksRef_ContentPage}
${TopPrimaryButtonRef_ContentPage}
${ContentSidebar_ContentPageRefs}
${JoinLoyaltyContactSidebar_ContentPageRefs}
${ScriptedCardSidebar_ContentPageRefs}
${TeaserCardSidebar_ContentPageRefs}
${QuickLinksSidebar_ContentPageRefs}
`
export const GetContentPageBlocksRefs = gql`
query GetContentPageBlocksRefs($locale: String!, $uid: String!) {
content_page(locale: $locale, uid: $uid) {
blocks {
__typename
...Accordion_ContentPageRefs
...CardsGrid_ContentPageRefs
...Content_ContentPageRefs
...DynamicContent_ContentPageRefs
...Shortcuts_ContentPageRefs
...TextCols_ContentPageRef
...UspGrid_ContentPageRefs
}
}
}
${Accordion_ContentPageRefs}
${CardsGrid_ContentPageRefs}
${Content_ContentPageRefs}
${DynamicContent_ContentPageRefs}
${Shortcuts_ContentPageRefs}
${TextCols_ContentPageRef}
${UspGrid_ContentPageRefs}
`
export const GetDaDeEnUrlsContentPage = gql`
query GetDaDeEnUrlsContentPage($uid: String!) {
de: content_page(locale: "de", uid: $uid) {
url
}
en: content_page(locale: "en", uid: $uid) {
url
}
da: content_page(locale: "da", uid: $uid) {
url
}
}
`
export const GetFiNoSvUrlsContentPage = gql`
query GetFiNoSvUrlsContentPage($uid: String!) {
fi: content_page(locale: "fi", uid: $uid) {
url
}
no: content_page(locale: "no", uid: $uid) {
url
}
sv: content_page(locale: "sv", uid: $uid) {
url
}
}
`

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 GetContentPageMetadata = gql`
query GetContentPageMetadata($locale: String!, $uid: String!) {
content_page(locale: $locale, uid: $uid) {
web {
@@ -33,6 +30,3 @@ query GetContentPageMetadata($locale: String!, $uid: String!) {
}
}
}
${Metadata}
${System}
`