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,8 +1,5 @@
import { gql } from "graphql-tag"
#import "../../Fragments/System.graphql"
import { System } from "../../Fragments/System.graphql"
export const GetDestinationCityListData = gql`
query GetDestinationCityListData($locale: String!, $cityIdentifier: String!) {
all_destination_city_page(
where: {
@@ -46,5 +43,3 @@ query GetDestinationCityListData($locale: String!, $cityIdentifier: String!) {
}
}
}
${System}
`

View File

@@ -0,0 +1,178 @@
#import "../../Fragments/System.graphql"
#import "../../Fragments/DestinationFilter.graphql"
#import "../../Fragments/Blocks/Accordion.graphql"
#import "../../Fragments/Blocks/Content.graphql"
#import "../../Fragments/PageLink/AccountPageLink.graphql"
#import "../../Fragments/PageLink/CampaignOverviewPageLink.graphql"
#import "../../Fragments/PageLink/CampaignPageLink.graphql"
#import "../../Fragments/PageLink/CollectionPageLink.graphql"
#import "../../Fragments/PageLink/ContentPageLink.graphql"
#import "../../Fragments/PageLink/DestinationCityPageLink.graphql"
#import "../../Fragments/PageLink/DestinationCountryPageLink.graphql"
#import "../../Fragments/PageLink/DestinationOverviewPageLink.graphql"
#import "../../Fragments/PageLink/HotelPageLink.graphql"
#import "../../Fragments/PageLink/LoyaltyPageLink.graphql"
#import "../../Fragments/PageLink/StartPageLink.graphql"
#import "../../Fragments/PageLink/PromoCampaignPageLink.graphql"
#import "../../Fragments/AccountPage/Ref.graphql"
#import "../../Fragments/CampaignOverviewPage/Ref.graphql"
#import "../../Fragments/CampaignPage/Ref.graphql"
#import "../../Fragments/CollectionPage/Ref.graphql"
#import "../../Fragments/ContentPage/Ref.graphql"
#import "../../Fragments/DestinationCityPage/Ref.graphql"
#import "../../Fragments/DestinationCountryPage/Ref.graphql"
#import "../../Fragments/DestinationOverviewPage/Ref.graphql"
#import "../../Fragments/HotelPage/Ref.graphql"
#import "../../Fragments/LoyaltyPage/Ref.graphql"
#import "../../Fragments/StartPage/Ref.graphql"
#import "../../Fragments/PromoCampaignPage/Ref.graphql"
query GetDestinationCityPage($locale: String!, $uid: String!) {
destination_city_page(uid: $uid, locale: $locale) {
title
destination_settings {
city_denmark
city_finland
city_germany
city_norway
city_poland
city_sweden
location {
longitude
latitude
default_zoom
}
}
heading
preamble
experiences {
destination_experiences
}
images {
image
}
has_sidepeek
sidepeek_button_text
sidepeek_content {
heading
content {
embedded_itemsConnection {
edges {
node {
__typename
...AccountPageLink
...CampaignOverviewPageLink
...CampaignPageLink
...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink
...LoyaltyPageLink
...StartPageLink
...PromoCampaignPageLink
}
}
}
json
}
}
blocks {
__typename
...Accordion_DestinationCityPage
...Content_DestinationCityPage
}
seo_filters {
...DestinationFilter
}
system {
...System
created_at
updated_at
}
}
trackingProps: destination_city_page(locale: "en", uid: $uid) {
url
}
}
query GetDestinationCityPageRefs($locale: String!, $uid: String!) {
destination_city_page(locale: $locale, uid: $uid) {
destination_settings {
city_denmark
city_finland
city_germany
city_norway
city_poland
city_sweden
location {
longitude
latitude
default_zoom
}
}
sidepeek_content {
content {
embedded_itemsConnection {
edges {
node {
__typename
...AccountPageRef
...CampaignOverviewPageRef
...CampaignPageRef
...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef
...LoyaltyPageRef
...StartPageRef
...PromoCampaignPageRef
}
}
}
}
}
blocks {
__typename
...Accordion_DestinationCityPageRefs
...Content_DestinationCityPageRefs
}
seo_filters {
...DestinationFilterRef
}
system {
...System
}
}
}
query GetDaDeEnUrlsDestinationCityPage($uid: String!) {
de: destination_city_page(locale: "de", uid: $uid) {
url
}
en: destination_city_page(locale: "en", uid: $uid) {
url
}
da: destination_city_page(locale: "da", uid: $uid) {
url
}
}
query GetFiNoSvUrlsDestinationCityPage($uid: String!) {
fi: destination_city_page(locale: "fi", uid: $uid) {
url
}
no: destination_city_page(locale: "no", uid: $uid) {
url
}
sv: destination_city_page(locale: "sv", uid: $uid) {
url
}
}

View File

@@ -1,225 +0,0 @@
import { gql } from "graphql-tag"
import { AccountPageRef } from "../../Fragments/AccountPage/Ref.graphql"
import {
Accordion_DestinationCityPage,
Accordion_DestinationCityPageRefs,
} from "../../Fragments/Blocks/Accordion.graphql"
import {
Content_DestinationCityPage,
Content_DestinationCityPageRefs,
} from "../../Fragments/Blocks/Content.graphql"
import { CampaignOverviewPageRef } from "../../Fragments/CampaignOverviewPage/Ref.graphql"
import { CampaignPageRef } from "../../Fragments/CampaignPage/Ref.graphql"
import { CollectionPageRef } from "../../Fragments/CollectionPage/Ref.graphql"
import { ContentPageRef } from "../../Fragments/ContentPage/Ref.graphql"
import { DestinationCityPageRef } from "../../Fragments/DestinationCityPage/Ref.graphql"
import { DestinationCountryPageRef } from "../../Fragments/DestinationCountryPage/Ref.graphql"
import {
DestinationFilter,
DestinationFilterRef,
} from "../../Fragments/DestinationFilter.graphql"
import { DestinationOverviewPageRef } from "../../Fragments/DestinationOverviewPage/Ref.graphql"
import { HotelPageRef } from "../../Fragments/HotelPage/Ref.graphql"
import { LoyaltyPageRef } from "../../Fragments/LoyaltyPage/Ref.graphql"
import { AccountPageLink } from "../../Fragments/PageLink/AccountPageLink.graphql"
import { CampaignOverviewPageLink } from "../../Fragments/PageLink/CampaignOverviewPageLink.graphql"
import { CampaignPageLink } from "../../Fragments/PageLink/CampaignPageLink.graphql"
import { CollectionPageLink } from "../../Fragments/PageLink/CollectionPageLink.graphql"
import { ContentPageLink } from "../../Fragments/PageLink/ContentPageLink.graphql"
import { DestinationCityPageLink } from "../../Fragments/PageLink/DestinationCityPageLink.graphql"
import { DestinationCountryPageLink } from "../../Fragments/PageLink/DestinationCountryPageLink.graphql"
import { DestinationOverviewPageLink } from "../../Fragments/PageLink/DestinationOverviewPageLink.graphql"
import { HotelPageLink } from "../../Fragments/PageLink/HotelPageLink.graphql"
import { LoyaltyPageLink } from "../../Fragments/PageLink/LoyaltyPageLink.graphql"
import { PromoCampaignPageLink } from "../../Fragments/PageLink/PromoCampaignPageLink.graphql"
import { StartPageLink } from "../../Fragments/PageLink/StartPageLink.graphql"
import { PromoCampaignPageRef } from "../../Fragments/PromoCampaignPage/Ref.graphql"
import { StartPageRef } from "../../Fragments/StartPage/Ref.graphql"
import { System } from "../../Fragments/System.graphql"
export const GetDestinationCityPage = gql`
query GetDestinationCityPage($locale: String!, $uid: String!) {
destination_city_page(uid: $uid, locale: $locale) {
title
destination_settings {
city_denmark
city_finland
city_germany
city_norway
city_poland
city_sweden
location {
longitude
latitude
default_zoom
}
}
heading
preamble
experiences {
destination_experiences
}
images {
image
}
has_sidepeek
sidepeek_button_text
sidepeek_content {
heading
content {
embedded_itemsConnection {
edges {
node {
__typename
...AccountPageLink
...CampaignOverviewPageLink
...CampaignPageLink
...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink
...LoyaltyPageLink
...StartPageLink
...PromoCampaignPageLink
}
}
}
json
}
}
blocks {
__typename
...Accordion_DestinationCityPage
...Content_DestinationCityPage
}
seo_filters {
...DestinationFilter
}
system {
...System
created_at
updated_at
}
}
trackingProps: destination_city_page(locale: "en", uid: $uid) {
url
}
}
${System}
${Accordion_DestinationCityPage}
${Content_DestinationCityPage}
${DestinationFilter}
${AccountPageLink}
${CampaignOverviewPageLink}
${CampaignPageLink}
${CollectionPageLink}
${ContentPageLink}
${DestinationCityPageLink}
${DestinationCountryPageLink}
${DestinationOverviewPageLink}
${HotelPageLink}
${LoyaltyPageLink}
${StartPageLink}
${PromoCampaignPageLink}
`
export const GetDestinationCityPageRefs = gql`
query GetDestinationCityPageRefs($locale: String!, $uid: String!) {
destination_city_page(locale: $locale, uid: $uid) {
destination_settings {
city_denmark
city_finland
city_germany
city_norway
city_poland
city_sweden
location {
longitude
latitude
default_zoom
}
}
sidepeek_content {
content {
embedded_itemsConnection {
edges {
node {
__typename
...AccountPageRef
...CampaignOverviewPageRef
...CampaignPageRef
...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef
...LoyaltyPageRef
...StartPageRef
...PromoCampaignPageRef
}
}
}
}
}
blocks {
__typename
...Accordion_DestinationCityPageRefs
...Content_DestinationCityPageRefs
}
seo_filters {
...DestinationFilterRef
}
system {
...System
}
}
}
${System}
${Accordion_DestinationCityPageRefs}
${Content_DestinationCityPageRefs}
${DestinationFilterRef}
${AccountPageRef}
${CampaignOverviewPageRef}
${CampaignPageRef}
${CollectionPageRef}
${ContentPageRef}
${DestinationCityPageRef}
${DestinationCountryPageRef}
${DestinationOverviewPageRef}
${HotelPageRef}
${LoyaltyPageRef}
${StartPageRef}
${PromoCampaignPageRef}
`
export const GetDaDeEnUrlsDestinationCityPage = gql`
query GetDaDeEnUrlsDestinationCityPage($uid: String!) {
de: destination_city_page(locale: "de", uid: $uid) {
url
}
en: destination_city_page(locale: "en", uid: $uid) {
url
}
da: destination_city_page(locale: "da", uid: $uid) {
url
}
}
`
export const GetFiNoSvUrlsDestinationCityPage = gql`
query GetFiNoSvUrlsDestinationCityPage($uid: String!) {
fi: destination_city_page(locale: "fi", uid: $uid) {
url
}
no: destination_city_page(locale: "no", uid: $uid) {
url
}
sv: destination_city_page(locale: "sv", uid: $uid) {
url
}
}
`

View File

@@ -0,0 +1,7 @@
#import "../../Fragments/System.graphql"
query GetCityPageCount($locale: String!) {
all_destination_city_page(locale: $locale) {
total
}
}

View File

@@ -1,9 +0,0 @@
import { gql } from "graphql-tag"
export const GetCityPageCount = gql`
query GetCityPageCount($locale: String!) {
all_destination_city_page(locale: $locale) {
total
}
}
`

View File

@@ -1,8 +1,5 @@
import { gql } from "graphql-tag"
#import "../../Fragments/System.graphql"
import { System } from "../../Fragments/System.graphql"
export const GetCityPageUrls = gql`
query GetCityPageUrls($locale: String!, $skip: Int) {
all_destination_city_page(locale: $locale, limit: 100, skip: $skip) {
items {
@@ -21,5 +18,3 @@ query GetCityPageUrls($locale: String!, $skip: Int) {
}
}
}
${System}
`

View File

@@ -0,0 +1,44 @@
#import "../../Fragments/Metadata.graphql"
#import "../../Fragments/System.graphql"
#import "../../Fragments/HotelFilter.graphql"
query GetDestinationCityPageMetadata($locale: String!, $uid: String!) {
destination_city_page(locale: $locale, uid: $uid) {
web {
breadcrumbs {
title
}
seo_metadata {
...Metadata
}
}
destination_settings {
city_denmark
city_finland
city_germany
city_norway
city_poland
city_sweden
}
images {
image
}
seo_filters {
heading
preamble
seo_metadata {
...Metadata
}
filterConnection {
edges {
node {
...HotelFilter
}
}
}
}
system {
...System
}
}
}

View File

@@ -1,51 +0,0 @@
import { gql } from "graphql-tag"
import { HotelFilter } from "../../Fragments/HotelFilter.graphql"
import { Metadata } from "../../Fragments/Metadata.graphql"
import { System } from "../../Fragments/System.graphql"
export const GetDestinationCityPageMetadata = gql`
query GetDestinationCityPageMetadata($locale: String!, $uid: String!) {
destination_city_page(locale: $locale, uid: $uid) {
web {
breadcrumbs {
title
}
seo_metadata {
...Metadata
}
}
destination_settings {
city_denmark
city_finland
city_germany
city_norway
city_poland
city_sweden
}
images {
image
}
seo_filters {
heading
preamble
seo_metadata {
...Metadata
}
filterConnection {
edges {
node {
...HotelFilter
}
}
}
}
system {
...System
}
}
}
${Metadata}
${System}
${HotelFilter}
`