Merged in feat/sw-2863-move-contentstack-router-to-trpc-package (pull request #2389)
feat(SW-2863): Move contentstack router to trpc package * Add exports to packages and lint rule to prevent relative imports * Add env to trpc package * Add eslint to trpc package * Apply lint rules * Use direct imports from trpc package * Add lint-staged config to trpc * Move lang enum to common * Restructure trpc package folder structure * WIP first step * update internal imports in trpc * Fix most errors in scandic-web Just 100 left... * Move Props type out of trpc * Fix CategorizedFilters types * Move more schemas in hotel router * Fix deps * fix getNonContentstackUrls * Fix import error * Fix entry error handling * Fix generateMetadata metrics * Fix alertType enum * Fix duplicated types * lint:fix * Merge branch 'master' into feat/sw-2863-move-contentstack-router-to-trpc-package * Fix broken imports * Merge branch 'master' into feat/sw-2863-move-contentstack-router-to-trpc-package Approved-by: Linus Flood
This commit is contained in:
90
packages/trpc/lib/graphql/Query/StartPage/StartPage.graphql
Normal file
90
packages/trpc/lib/graphql/Query/StartPage/StartPage.graphql
Normal file
@@ -0,0 +1,90 @@
|
||||
#import "../../Fragments/System.graphql"
|
||||
#import "../../Fragments/Blocks/CardsGrid.graphql"
|
||||
#import "../../Fragments/Blocks/FullWidthCampaign.graphql"
|
||||
#import "../../Fragments/Blocks/CarouselCards.graphql"
|
||||
#import "../../Fragments/Blocks/JoinScandicFriends.graphql"
|
||||
|
||||
query GetStartPage($locale: String!, $uid: String!) {
|
||||
start_page(locale: $locale, uid: $uid) {
|
||||
title
|
||||
url
|
||||
header {
|
||||
heading
|
||||
hero_image
|
||||
}
|
||||
blocks {
|
||||
__typename
|
||||
...CardsGrid_StartPage
|
||||
...CarouselCards_StartPage
|
||||
... on StartPageBlocksFullWidthCampaign {
|
||||
__typename
|
||||
full_width_campaign {
|
||||
full_width_campaignConnection {
|
||||
edges {
|
||||
node {
|
||||
...FullWidthCampaign
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
...JoinScandicFriends_StartPage
|
||||
}
|
||||
system {
|
||||
...System
|
||||
created_at
|
||||
updated_at
|
||||
}
|
||||
}
|
||||
trackingProps: start_page(locale: "en", uid: $uid) {
|
||||
url
|
||||
}
|
||||
}
|
||||
|
||||
query GetStartPageRefs($locale: String!, $uid: String!) {
|
||||
start_page(locale: $locale, uid: $uid) {
|
||||
blocks {
|
||||
__typename
|
||||
...CardsGrid_StartPageRefs
|
||||
...CarouselCards_StartPageRefs
|
||||
... on StartPageBlocksFullWidthCampaign {
|
||||
full_width_campaign {
|
||||
full_width_campaignConnection {
|
||||
edges {
|
||||
node {
|
||||
...FullWidthCampaignRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
...JoinScandicFriends_StartPageRefs
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query GetDaDeEnUrlsStartPage($uid: String!) {
|
||||
de: start_page(locale: "de", uid: $uid) {
|
||||
url
|
||||
}
|
||||
en: start_page(locale: "en", uid: $uid) {
|
||||
url
|
||||
}
|
||||
da: start_page(locale: "da", uid: $uid) {
|
||||
url
|
||||
}
|
||||
}
|
||||
query GetFiNoSvUrlsStartPage($uid: String!) {
|
||||
fi: start_page(locale: "fi", uid: $uid) {
|
||||
url
|
||||
}
|
||||
no: start_page(locale: "no", uid: $uid) {
|
||||
url
|
||||
}
|
||||
sv: start_page(locale: "sv", uid: $uid) {
|
||||
url
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user