generated from pascalmartineau/wp-skeleton
refactor: membership => profile
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 1m6s
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 1m6s
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
fragment TheListing on Listing {
|
||||
title
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import type { TheMembershipFragment } from "#graphql-operations";
|
||||
import type { TheListingFragment } from "#graphql-operations";
|
||||
|
||||
const props = defineProps<TheMembershipFragment>();
|
||||
const props = defineProps<TheListingFragment>();
|
||||
useSeoMeta({ title: props.title });
|
||||
</script>
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
fragment TheMembership on Membership {
|
||||
title
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fragment TheProfile on Profile {
|
||||
title
|
||||
}
|
||||
12
wp-content/themes/ccat/app/components/nodes/TheProfile.vue
Normal file
12
wp-content/themes/ccat/app/components/nodes/TheProfile.vue
Normal file
@@ -0,0 +1,12 @@
|
||||
<script setup lang="ts">
|
||||
import type { TheProfileFragment } from "#graphql-operations";
|
||||
|
||||
const props = defineProps<TheProfileFragment>();
|
||||
useSeoMeta({ title: props.title });
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UPage>
|
||||
<UPageSection v-if="title" :title="title" />
|
||||
</UPage>
|
||||
</template>
|
||||
@@ -1,9 +1,10 @@
|
||||
import { ThePage, TheArticle, TheEvent, TheLocation, TheMembership, TheProject, TheResource } from "#components";
|
||||
import { ThePage, TheArticle, TheEvent, TheListing, TheLocation, TheProfile, TheProject, TheResource } from "#components";
|
||||
|
||||
const nodes = {
|
||||
Event: TheEvent,
|
||||
Location: TheLocation,
|
||||
Membership: TheMembership,
|
||||
Listing: TheListing,
|
||||
Profile: TheProfile,
|
||||
Page: ThePage,
|
||||
Post: TheArticle,
|
||||
Project: TheProject,
|
||||
|
||||
@@ -18,8 +18,8 @@ query nodeByUri($uri: String!) {
|
||||
... on Location {
|
||||
...TheLocation
|
||||
}
|
||||
... on Membership {
|
||||
...TheMembership
|
||||
... on Profile {
|
||||
...TheProfile
|
||||
}
|
||||
... on Project {
|
||||
...TheProject
|
||||
|
||||
Reference in New Issue
Block a user