mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
35 lines
568 B
Vue
35 lines
568 B
Vue
<template>
|
|
<nuxt-child />
|
|
</template>
|
|
|
|
<script>
|
|
import gql from 'graphql-tag'
|
|
import PersistentLinks from '~/mixins/persistentLinks.js'
|
|
|
|
const options = {
|
|
queryId: gql`
|
|
query ($idOrSlug: ID) {
|
|
User(id: $idOrSlug) {
|
|
id
|
|
slug
|
|
}
|
|
}
|
|
`,
|
|
querySlug: gql`
|
|
query ($idOrSlug: String) {
|
|
User(slug: $idOrSlug) {
|
|
id
|
|
slug
|
|
}
|
|
}
|
|
`,
|
|
message: 'error-pages.profile-not-found',
|
|
path: 'profile',
|
|
}
|
|
const persistentLinks = PersistentLinks(options)
|
|
|
|
export default {
|
|
mixins: [persistentLinks],
|
|
}
|
|
</script>
|