Merged in chore/replace-graphql-tag/loader (pull request #3096)
Use turbopack for dev builds. Remove graphql-tag/loader, replaced by gql`` tag literals instead. Approved-by: Linus Flood
This commit is contained in:
@@ -0,0 +1,236 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
`
|
||||
Reference in New Issue
Block a user