generated from pascalmartineau/wp-skeleton
refactor: better project structure
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 6m3s
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 6m3s
This commit is contained in:
19
wp-content/themes/ccat/app/graphql/menuItems.gql
Normal file
19
wp-content/themes/ccat/app/graphql/menuItems.gql
Normal file
@@ -0,0 +1,19 @@
|
||||
fragment MenuItem on MenuItem {
|
||||
id
|
||||
label
|
||||
to: path
|
||||
target
|
||||
}
|
||||
|
||||
query menuItems($location: MenuLocationEnum!) {
|
||||
menuItems(where: {location: $location, parentDatabaseId: 0}) {
|
||||
nodes {
|
||||
...MenuItem
|
||||
childItems {
|
||||
nodes {
|
||||
...MenuItem
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
31
wp-content/themes/ccat/app/graphql/nodeByUri.gql
Normal file
31
wp-content/themes/ccat/app/graphql/nodeByUri.gql
Normal file
@@ -0,0 +1,31 @@
|
||||
query nodeByUri($uri: String!) {
|
||||
nodeByUri(uri: $uri) {
|
||||
__typename
|
||||
id
|
||||
breadcrumbs {
|
||||
label
|
||||
to
|
||||
}
|
||||
... on Page {
|
||||
...ThePage
|
||||
}
|
||||
... on Post {
|
||||
...TheArticle
|
||||
}
|
||||
... on Event {
|
||||
...TheEvent
|
||||
}
|
||||
... on Location {
|
||||
...TheLocation
|
||||
}
|
||||
... on Membership {
|
||||
...TheMembership
|
||||
}
|
||||
... on Project {
|
||||
...TheProject
|
||||
}
|
||||
... on Resource {
|
||||
...TheResource
|
||||
}
|
||||
}
|
||||
}
|
||||
13
wp-content/themes/ccat/app/graphql/siteOptions.gql
Normal file
13
wp-content/themes/ccat/app/graphql/siteOptions.gql
Normal file
@@ -0,0 +1,13 @@
|
||||
fragment SiteOptions on GroupCcat {
|
||||
profiles {
|
||||
url
|
||||
}
|
||||
}
|
||||
|
||||
query siteOptions {
|
||||
siteOptions {
|
||||
groupCcat {
|
||||
...SiteOptions
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user