refactor: renaming from accountPage to myPages
This commit is contained in:
@@ -1,51 +0,0 @@
|
||||
#import "./System.graphql"
|
||||
|
||||
fragment MyPagesBreadcrumbsRefs on AccountPage {
|
||||
web {
|
||||
breadcrumbs {
|
||||
title
|
||||
parentsConnection {
|
||||
edges {
|
||||
node {
|
||||
... on AccountPage {
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
|
||||
fragment LoyaltyPageBreadcrumbsRefs on LoyaltyPage {
|
||||
web {
|
||||
breadcrumbs {
|
||||
title
|
||||
parentsConnection {
|
||||
edges {
|
||||
node {
|
||||
... on AccountPage {
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
26
lib/graphql/Fragments/Refs/LoyaltyPage/Breadcrumbs.graphql
Normal file
26
lib/graphql/Fragments/Refs/LoyaltyPage/Breadcrumbs.graphql
Normal file
@@ -0,0 +1,26 @@
|
||||
#import "../System.graphql"
|
||||
|
||||
fragment LoyaltyPageBreadcrumbsRefs on LoyaltyPage {
|
||||
web {
|
||||
breadcrumbs {
|
||||
title
|
||||
parentsConnection {
|
||||
edges {
|
||||
node {
|
||||
... on AccountPage {
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
#import "./System.graphql"
|
||||
#import "../System.graphql"
|
||||
|
||||
fragment LoyaltyPageRef on LoyaltyPage {
|
||||
system {
|
||||
@@ -1,4 +1,4 @@
|
||||
#import "./System.graphql"
|
||||
#import "../System.graphql"
|
||||
|
||||
fragment AccountPageRef on AccountPage {
|
||||
system {
|
||||
26
lib/graphql/Fragments/Refs/MyPages/Breadcrumbs.graphql
Normal file
26
lib/graphql/Fragments/Refs/MyPages/Breadcrumbs.graphql
Normal file
@@ -0,0 +1,26 @@
|
||||
#import "../System.graphql"
|
||||
|
||||
fragment MyPagesBreadcrumbsRefs on AccountPage {
|
||||
web {
|
||||
breadcrumbs {
|
||||
title
|
||||
parentsConnection {
|
||||
edges {
|
||||
node {
|
||||
... on AccountPage {
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
@@ -2,9 +2,9 @@
|
||||
#import "../Fragments/MyPages/AccountPage/AccountPageContentShortcuts.graphql"
|
||||
#import "../Fragments/MyPages/AccountPage/AccountPageContentTextContent.graphql"
|
||||
|
||||
#import "../Fragments/Refs/AccountPage.graphql"
|
||||
#import "../Fragments/Refs/MyPages/AccountPage.graphql"
|
||||
#import "../Fragments/Refs/ContentPage.graphql"
|
||||
#import "../Fragments/Refs/LoyaltyPage.graphql"
|
||||
#import "../Fragments/Refs/LoyaltyPage/LoyaltyPage.graphql"
|
||||
#import "../Fragments/Refs/System.graphql"
|
||||
|
||||
query GetAccountPage($locale: String!, $uid: String!) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#import "../Fragments/LoyaltyPage/Breadcrumbs.graphql"
|
||||
#import "../Fragments/Refs/Breadcrumbs.graphql"
|
||||
#import "../Fragments/Refs/LoyaltyPage/Breadcrumbs.graphql"
|
||||
|
||||
query GetLoyaltyPageBreadcrumbs($locale: String!, $url: String!) {
|
||||
all_page: all_loyalty_page(locale: $locale, where: { url: $url }) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#import "../Fragments/MyPages/Breadcrumbs.graphql"
|
||||
#import "../Fragments/Refs/Breadcrumbs.graphql"
|
||||
#import "../Fragments/Refs/MyPages/Breadcrumbs.graphql"
|
||||
|
||||
query GetMyPagesBreadcrumbs($locale: String!, $url: String!) {
|
||||
all_page: all_account_page(locale: $locale, where: { url: $url }) {
|
||||
@@ -6,9 +6,9 @@
|
||||
#import "../Fragments/PageLink/ContentPageLink.graphql"
|
||||
#import "../Fragments/PageLink/LoyaltyPageLink.graphql"
|
||||
|
||||
#import "../Fragments/Refs/AccountPage.graphql"
|
||||
#import "../Fragments/Refs/MyPages/AccountPage.graphql"
|
||||
#import "../Fragments/Refs/ContentPage.graphql"
|
||||
#import "../Fragments/Refs/LoyaltyPage.graphql"
|
||||
#import "../Fragments/Refs/LoyaltyPage/LoyaltyPage.graphql"
|
||||
#import "../Fragments/Refs/System.graphql"
|
||||
|
||||
query GetLoyaltyPage($locale: String!, $uid: String!) {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#import "../Fragments/PageLink/AccountPageLink.graphql"
|
||||
#import "../Fragments/PageLink/ContentPageLink.graphql"
|
||||
#import "../Fragments/PageLink/LoyaltyPageLink.graphql"
|
||||
#import "../Fragments/Refs/AccountPage.graphql"
|
||||
#import "../Fragments/Refs/MyPages/AccountPage.graphql"
|
||||
#import "../Fragments/Refs/ContentPage.graphql"
|
||||
#import "../Fragments/Refs/LoyaltyPage.graphql"
|
||||
#import "../Fragments/Refs/LoyaltyPage/LoyaltyPage.graphql"
|
||||
#import "../Fragments/Refs/System.graphql"
|
||||
|
||||
query GetNavigationMyPages($locale: String!) {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import {
|
||||
GetMyPagesBreadcrumbs,
|
||||
GetMyPagesBreadcrumbsRefs,
|
||||
} from "@/lib/graphql/Query/BreadcrumbsAccountPage.graphql"
|
||||
import {
|
||||
GetLoyaltyPageBreadcrumbs,
|
||||
GetLoyaltyPageBreadcrumbsRefs,
|
||||
} from "@/lib/graphql/Query/BreadcrumbsLoyaltyPage.graphql"
|
||||
import {
|
||||
GetMyPagesBreadcrumbs,
|
||||
GetMyPagesBreadcrumbsRefs,
|
||||
} from "@/lib/graphql/Query/BreadcrumbsMyPages.graphql"
|
||||
import { request } from "@/lib/graphql/request"
|
||||
import { internalServerError, notFound } from "@/server/errors/trpc"
|
||||
import { contentstackProcedure, router } from "@/server/trpc"
|
||||
|
||||
Reference in New Issue
Block a user