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,97 +0,0 @@
import { gql } from "graphql-tag"
import {
Accordion_AccountPage,
Accordion_AccountPageRefs,
} from "../../Fragments/Blocks/Accordion.graphql"
import {
DynamicContent_AccountPage,
DynamicContent_AccountPageRefs,
} from "../../Fragments/Blocks/DynamicContent.graphql"
import {
Shortcuts_AccountPage,
Shortcuts_AccountPageRefs,
} from "../../Fragments/Blocks/Shortcuts.graphql"
import { TextContent_AccountPage } from "../../Fragments/Blocks/TextContent.graphql"
import { System } from "../../Fragments/System.graphql"
export const GetAccountPage = gql`
query GetAccountPage($locale: String!, $uid: String!) {
account_page(locale: $locale, uid: $uid) {
heading
preamble
hero_image
hero_image_active
title
url
content {
__typename
...Accordion_AccountPage
...DynamicContent_AccountPage
...Shortcuts_AccountPage
...TextContent_AccountPage
}
system {
...System
created_at
updated_at
}
}
trackingProps: account_page(locale: "en", uid: $uid) {
url
}
}
${System}
${Accordion_AccountPage}
${DynamicContent_AccountPage}
${Shortcuts_AccountPage}
${TextContent_AccountPage}
`
export const GetAccountPageRefs = gql`
query GetAccountPageRefs($locale: String!, $uid: String!) {
account_page(locale: $locale, uid: $uid) {
content {
__typename
...Accordion_AccountPageRefs
...DynamicContent_AccountPageRefs
...Shortcuts_AccountPageRefs
}
system {
...System
}
}
}
${System}
${Accordion_AccountPageRefs}
${DynamicContent_AccountPageRefs}
${Shortcuts_AccountPageRefs}
`
export const GetDaDeEnUrlsAccountPage = gql`
query GetDaDeEnUrlsAccountPage($uid: String!) {
de: account_page(locale: "de", uid: $uid) {
url
}
en: account_page(locale: "en", uid: $uid) {
url
}
da: account_page(locale: "da", uid: $uid) {
url
}
}
`
export const GetFiNoSvUrlsAccountPage = gql`
query GetFiNoSvUrlsAccountPage($uid: String!) {
fi: account_page(locale: "fi", uid: $uid) {
url
}
no: account_page(locale: "no", uid: $uid) {
url
}
sv: account_page(locale: "sv", uid: $uid) {
url
}
}
`