refactor: OptionsSite => SiteOptions for clearer naming
This commit is contained in:
@@ -51,10 +51,10 @@
|
|||||||
],
|
],
|
||||||
"acfe_form": 0,
|
"acfe_form": 0,
|
||||||
"show_in_graphql": 1,
|
"show_in_graphql": 1,
|
||||||
"graphql_field_name": "GroupSite",
|
"graphql_field_name": "GroupSiteOptions",
|
||||||
"map_graphql_types_from_location_rules": 0,
|
"map_graphql_types_from_location_rules": 0,
|
||||||
"graphql_types": "",
|
"graphql_types": "",
|
||||||
"acfe_meta": "",
|
"acfe_meta": "",
|
||||||
"acfe_note": "",
|
"acfe_note": "",
|
||||||
"modified": 1769087407
|
"modified": 1769781294
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,6 +20,6 @@
|
|||||||
"post_id": "",
|
"post_id": "",
|
||||||
"autoload": 0,
|
"autoload": 0,
|
||||||
"show_in_graphql": 1,
|
"show_in_graphql": 1,
|
||||||
"graphql_type_name": "OptionsSite",
|
"graphql_type_name": "SiteOptions",
|
||||||
"modified": 1769086997
|
"modified": 1769693948
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const { data } = await useAsyncGraphQLQuery("GeneralSettings", undefined, { cache: { ttl: 0 } });
|
const { data: generalSettings } = await useGeneralSettings();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
© {{ new Date().getFullYear() }}
|
© {{ new Date().getFullYear() }}
|
||||||
<span v-if="data.generalSettings?.title">{{ data.generalSettings.title }}</span>
|
<span v-if="generalSettings?.title">{{ generalSettings.title }}</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
export const useGeneralSettings = () => useAsyncGraphQLQuery("GeneralSettings", {}, {
|
||||||
|
transform: ({ generalSettings }) => generalSettings,
|
||||||
|
});
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
export const useSiteOptions = () => useAsyncGraphQLQuery("SiteOptions", {}, {
|
||||||
|
transform: ({ siteOptions }) => siteOptions?.groupSiteOptions,
|
||||||
|
});
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
fragment SiteOptions on GroupSite_Fields {
|
|
||||||
email
|
|
||||||
}
|
|
||||||
|
|
||||||
query OptionsSite {
|
|
||||||
optionsSite {
|
|
||||||
groupSite {
|
|
||||||
... SiteOptions
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fragment SiteOptions on GroupSiteOptions {
|
||||||
|
email
|
||||||
|
}
|
||||||
|
|
||||||
|
query SiteOptions {
|
||||||
|
siteOptions {
|
||||||
|
groupSiteOptions {
|
||||||
|
... SiteOptions
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -3685,11 +3685,11 @@ interface GroupPostPage_Fields implements AcfFieldGroup & AcfFieldGroupFields &
|
|||||||
}
|
}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
The "GroupSite" Field Group. Added to the Schema by "WPGraphQL for ACF".
|
The "GroupSiteOptions" Field Group. Added to the Schema by "WPGraphQL for ACF".
|
||||||
"""
|
"""
|
||||||
type GroupSite implements AcfFieldGroup & AcfFieldGroupFields & GroupSite_Fields {
|
type GroupSiteOptions implements AcfFieldGroup & AcfFieldGroupFields & GroupSiteOptions_Fields {
|
||||||
"""
|
"""
|
||||||
Field of the "email" Field Type added to the schema as part of the "GroupSite" Field Group
|
Field of the "email" Field Type added to the schema as part of the "GroupSiteOptions" Field Group
|
||||||
"""
|
"""
|
||||||
email: String!
|
email: String!
|
||||||
|
|
||||||
@@ -3698,11 +3698,11 @@ type GroupSite implements AcfFieldGroup & AcfFieldGroupFields & GroupSite_Fields
|
|||||||
}
|
}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Interface representing fields of the ACF "GroupSite" Field Group
|
Interface representing fields of the ACF "GroupSiteOptions" Field Group
|
||||||
"""
|
"""
|
||||||
interface GroupSite_Fields implements AcfFieldGroup & AcfFieldGroupFields {
|
interface GroupSiteOptions_Fields implements AcfFieldGroup & AcfFieldGroupFields {
|
||||||
"""
|
"""
|
||||||
Field of the "email" Field Type added to the schema as part of the "GroupSite" Field Group
|
Field of the "email" Field Type added to the schema as part of the "GroupSiteOptions" Field Group
|
||||||
"""
|
"""
|
||||||
email: String!
|
email: String!
|
||||||
|
|
||||||
@@ -6177,23 +6177,6 @@ interface OneToOneConnection implements Edge {
|
|||||||
node: Node!
|
node: Node!
|
||||||
}
|
}
|
||||||
|
|
||||||
type OptionsSite implements AcfOptionsPage & Node & WithAcfGroupSite {
|
|
||||||
"""Fields of the GroupSite ACF Field Group"""
|
|
||||||
groupSite: GroupSite
|
|
||||||
|
|
||||||
"""The globally unique ID for the object"""
|
|
||||||
id: ID!
|
|
||||||
|
|
||||||
""""""
|
|
||||||
menuTitle: String
|
|
||||||
|
|
||||||
""""""
|
|
||||||
pageTitle: String
|
|
||||||
|
|
||||||
""""""
|
|
||||||
parentId: String
|
|
||||||
}
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Sort direction for ordered results. Determines whether items are returned in ascending or descending order.
|
Sort direction for ordered results. Determines whether items are returned in ascending or descending order.
|
||||||
"""
|
"""
|
||||||
@@ -8860,7 +8843,7 @@ interface Previewable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
"""The root entry point into the Graph"""
|
"""The root entry point into the Graph"""
|
||||||
type Query implements WithAcfOptionsPageOptionsSite {
|
type Query implements WithAcfOptionsPageSiteOptions {
|
||||||
"""Entry point to get all settings for the site"""
|
"""Entry point to get all settings for the site"""
|
||||||
allSettings: Settings
|
allSettings: Settings
|
||||||
|
|
||||||
@@ -9145,9 +9128,6 @@ type Query implements WithAcfOptionsPageOptionsSite {
|
|||||||
uri: String!
|
uri: String!
|
||||||
): UniformResourceIdentifiable
|
): UniformResourceIdentifiable
|
||||||
|
|
||||||
""""""
|
|
||||||
optionsSite: OptionsSite
|
|
||||||
|
|
||||||
"""An object of the page Type. """
|
"""An object of the page Type. """
|
||||||
page(
|
page(
|
||||||
"""
|
"""
|
||||||
@@ -9372,6 +9352,9 @@ type Query implements WithAcfOptionsPageOptionsSite {
|
|||||||
where: RootQueryToRevisionsConnectionWhereArgs
|
where: RootQueryToRevisionsConnectionWhereArgs
|
||||||
): RootQueryToRevisionsConnection
|
): RootQueryToRevisionsConnection
|
||||||
|
|
||||||
|
""""""
|
||||||
|
siteOptions: SiteOptions
|
||||||
|
|
||||||
"""A 0bject"""
|
"""A 0bject"""
|
||||||
tag(
|
tag(
|
||||||
"""The globally unique identifier of the object."""
|
"""The globally unique identifier of the object."""
|
||||||
@@ -13608,6 +13591,23 @@ type Settings {
|
|||||||
writingSettingsUseSmilies: Boolean
|
writingSettingsUseSmilies: Boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type SiteOptions implements AcfOptionsPage & Node & WithAcfGroupSiteOptions {
|
||||||
|
"""Fields of the GroupSiteOptions ACF Field Group"""
|
||||||
|
groupSiteOptions: GroupSiteOptions
|
||||||
|
|
||||||
|
"""The globally unique ID for the object"""
|
||||||
|
id: ID!
|
||||||
|
|
||||||
|
""""""
|
||||||
|
menuTitle: String
|
||||||
|
|
||||||
|
""""""
|
||||||
|
pageTitle: String
|
||||||
|
|
||||||
|
""""""
|
||||||
|
parentId: String
|
||||||
|
}
|
||||||
|
|
||||||
"""The Login client options for the siteToken provider."""
|
"""The Login client options for the siteToken provider."""
|
||||||
type SiteTokenClientOptions implements LoginClientOptions {
|
type SiteTokenClientOptions implements LoginClientOptions {
|
||||||
"""
|
"""
|
||||||
@@ -16559,17 +16559,17 @@ interface WithAcfGroupPostPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Provides access to fields of the "GroupSite" ACF Field Group via the "groupSite" field
|
Provides access to fields of the "GroupSiteOptions" ACF Field Group via the "groupSiteOptions" field
|
||||||
"""
|
"""
|
||||||
interface WithAcfGroupSite {
|
interface WithAcfGroupSiteOptions {
|
||||||
"""Fields of the GroupSite ACF Field Group"""
|
"""Fields of the GroupSiteOptions ACF Field Group"""
|
||||||
groupSite: GroupSite
|
groupSiteOptions: GroupSiteOptions
|
||||||
}
|
}
|
||||||
|
|
||||||
"""Access point for the "OptionsSite" ACF Options Page"""
|
"""Access point for the "SiteOptions" ACF Options Page"""
|
||||||
interface WithAcfOptionsPageOptionsSite {
|
interface WithAcfOptionsPageSiteOptions {
|
||||||
""""""
|
""""""
|
||||||
optionsSite: OptionsSite
|
siteOptions: SiteOptions
|
||||||
}
|
}
|
||||||
|
|
||||||
"""The writing setting type"""
|
"""The writing setting type"""
|
||||||
|
|||||||
Reference in New Issue
Block a user