Use turbopack for dev builds. Remove graphql-tag/loader, replaced by gql`` tag literals instead. Approved-by: Linus Flood
52 lines
1.0 KiB
TypeScript
52 lines
1.0 KiB
TypeScript
import { gql } from "graphql-tag"
|
|
|
|
import { Alert, AlertRef } from "../Fragments/Alert.graphql"
|
|
import { System } from "../Fragments/System.graphql"
|
|
|
|
export const GetSiteConfig = gql`
|
|
query GetSiteConfig($locale: String!) {
|
|
all_site_config(limit: 1, locale: $locale) {
|
|
items {
|
|
sitewide_alert {
|
|
alerts {
|
|
booking_widget_disabled
|
|
alertConnection {
|
|
edges {
|
|
node {
|
|
...Alert
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
${Alert}
|
|
`
|
|
|
|
export const GetSiteConfigRef = gql`
|
|
query GetSiteConfigRef($locale: String!) {
|
|
all_site_config(limit: 1, locale: $locale) {
|
|
items {
|
|
sitewide_alert {
|
|
alerts {
|
|
alertConnection {
|
|
edges {
|
|
node {
|
|
...AlertRef
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
system {
|
|
...System
|
|
}
|
|
}
|
|
}
|
|
}
|
|
${System}
|
|
${AlertRef}
|
|
`
|