mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Change default GQL 'UserQuery' to named 'profileUserQuery'
This commit is contained in:
parent
6d8149a77c
commit
13f2451e02
@ -7,7 +7,7 @@ import {
|
|||||||
commentFragment,
|
commentFragment,
|
||||||
} from './Fragments'
|
} from './Fragments'
|
||||||
|
|
||||||
export default (i18n) => {
|
export const profileUserQuery = (i18n) => {
|
||||||
const lang = i18n.locale().toUpperCase()
|
const lang = i18n.locale().toUpperCase()
|
||||||
return gql`
|
return gql`
|
||||||
${userFragment}
|
${userFragment}
|
||||||
|
|||||||
@ -54,7 +54,7 @@ import mapboxgl from 'mapbox-gl'
|
|||||||
// import MapboxLanguage from '@mapbox/mapbox-gl-language'
|
// import MapboxLanguage from '@mapbox/mapbox-gl-language'
|
||||||
import { objectValuesToArray } from '../utils/utils'
|
import { objectValuesToArray } from '../utils/utils'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
import UserQuery from '~/graphql/User'
|
import { profileUserQuery } from '~/graphql/User'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Map',
|
name: 'Map',
|
||||||
@ -164,7 +164,7 @@ export default {
|
|||||||
const {
|
const {
|
||||||
data: { User: users },
|
data: { User: users },
|
||||||
} = await this.$apollo.query({
|
} = await this.$apollo.query({
|
||||||
query: UserQuery(this.$i18n),
|
query: profileUserQuery(this.$i18n),
|
||||||
variables: {
|
variables: {
|
||||||
id,
|
id,
|
||||||
followedByCount: 0,
|
followedByCount: 0,
|
||||||
|
|||||||
@ -184,8 +184,7 @@ import MasonryGrid from '~/components/MasonryGrid/MasonryGrid.vue'
|
|||||||
import MasonryGridItem from '~/components/MasonryGrid/MasonryGridItem.vue'
|
import MasonryGridItem from '~/components/MasonryGrid/MasonryGridItem.vue'
|
||||||
import TabNavigation from '~/components/_new/generic/TabNavigation/TabNavigation'
|
import TabNavigation from '~/components/_new/generic/TabNavigation/TabNavigation'
|
||||||
import { profilePagePosts } from '~/graphql/PostQuery'
|
import { profilePagePosts } from '~/graphql/PostQuery'
|
||||||
import UserQuery from '~/graphql/User'
|
import { profileUserQuery, updateUserMutation } from '~/graphql/User'
|
||||||
import { updateUserMutation } from '~/graphql/User.js'
|
|
||||||
import { muteUser, unmuteUser } from '~/graphql/settings/MutedUsers'
|
import { muteUser, unmuteUser } from '~/graphql/settings/MutedUsers'
|
||||||
import { blockUser, unblockUser } from '~/graphql/settings/BlockedUsers'
|
import { blockUser, unblockUser } from '~/graphql/settings/BlockedUsers'
|
||||||
import UpdateQuery from '~/components/utils/UpdateQuery'
|
import UpdateQuery from '~/components/utils/UpdateQuery'
|
||||||
@ -408,7 +407,7 @@ export default {
|
|||||||
},
|
},
|
||||||
User: {
|
User: {
|
||||||
query() {
|
query() {
|
||||||
return UserQuery(this.$i18n)
|
return profileUserQuery(this.$i18n)
|
||||||
},
|
},
|
||||||
variables() {
|
variables() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user