mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Merge remote-tracking branch 'origin/master' into travis-ci-build
This commit is contained in:
commit
ff41f0a0bf
@ -136,7 +136,7 @@ export default {
|
|||||||
},
|
},
|
||||||
author() {
|
author() {
|
||||||
return this.hasAuthor
|
return this.hasAuthor
|
||||||
? this.post.author.User
|
? this.post.author
|
||||||
: {
|
: {
|
||||||
name: 'Anonymus'
|
name: 'Anonymus'
|
||||||
}
|
}
|
||||||
|
|||||||
@ -64,11 +64,9 @@ export default gql(`
|
|||||||
image
|
image
|
||||||
createdAt
|
createdAt
|
||||||
author {
|
author {
|
||||||
User {
|
id
|
||||||
id
|
avatar
|
||||||
avatar
|
name
|
||||||
name
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,14 +1,13 @@
|
|||||||
const pkg = require('./package')
|
const pkg = require('./package')
|
||||||
const envWhitelist = [
|
const envWhitelist = ['NODE_ENV', 'BACKEND_URL', 'MAINTENANCE']
|
||||||
'NODE_ENV',
|
const dev = process.env.NODE_ENV !== 'production'
|
||||||
'BACKEND_URL',
|
|
||||||
'MAINTENANCE'
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: 'universal',
|
mode: 'universal',
|
||||||
|
|
||||||
|
dev: dev,
|
||||||
|
debug: dev ? 'nuxt:*,app' : null,
|
||||||
|
|
||||||
transition: {
|
transition: {
|
||||||
name: 'slide-up',
|
name: 'slide-up',
|
||||||
mode: 'out-in'
|
mode: 'out-in'
|
||||||
@ -129,7 +128,7 @@ module.exports = {
|
|||||||
// },
|
// },
|
||||||
// required
|
// required
|
||||||
clientConfigs: {
|
clientConfigs: {
|
||||||
default: '~/plugins/apollo-config.js',
|
default: '~/plugins/apollo-config.js'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -86,20 +86,18 @@ export default {
|
|||||||
slug
|
slug
|
||||||
image
|
image
|
||||||
author {
|
author {
|
||||||
User {
|
id
|
||||||
|
avatar
|
||||||
|
slug
|
||||||
|
name
|
||||||
|
contributionsCount
|
||||||
|
shoutedCount
|
||||||
|
commentsCount
|
||||||
|
followedByCount
|
||||||
|
badges {
|
||||||
id
|
id
|
||||||
avatar
|
key
|
||||||
slug
|
icon
|
||||||
name
|
|
||||||
contributionsCount
|
|
||||||
shoutedCount
|
|
||||||
commentsCount
|
|
||||||
followedByCount
|
|
||||||
badges {
|
|
||||||
id
|
|
||||||
key
|
|
||||||
icon
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
commentsCount
|
commentsCount
|
||||||
|
|||||||
@ -120,20 +120,18 @@ export default {
|
|||||||
slug
|
slug
|
||||||
image
|
image
|
||||||
author {
|
author {
|
||||||
User {
|
id
|
||||||
|
slug
|
||||||
|
name
|
||||||
|
avatar
|
||||||
|
shoutedCount
|
||||||
|
contributionsCount
|
||||||
|
commentsCount
|
||||||
|
followedByCount
|
||||||
|
badges {
|
||||||
id
|
id
|
||||||
slug
|
key
|
||||||
name
|
icon
|
||||||
avatar
|
|
||||||
shoutedCount
|
|
||||||
contributionsCount
|
|
||||||
commentsCount
|
|
||||||
followedByCount
|
|
||||||
badges {
|
|
||||||
id
|
|
||||||
key
|
|
||||||
icon
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tags {
|
tags {
|
||||||
@ -146,20 +144,18 @@ export default {
|
|||||||
createdAt
|
createdAt
|
||||||
deleted
|
deleted
|
||||||
author {
|
author {
|
||||||
User {
|
id
|
||||||
|
slug
|
||||||
|
name
|
||||||
|
avatar
|
||||||
|
shoutedCount
|
||||||
|
contributionsCount
|
||||||
|
commentsCount
|
||||||
|
followedByCount
|
||||||
|
badges {
|
||||||
id
|
id
|
||||||
slug
|
key
|
||||||
name
|
icon
|
||||||
avatar
|
|
||||||
shoutedCount
|
|
||||||
contributionsCount
|
|
||||||
commentsCount
|
|
||||||
followedByCount
|
|
||||||
badges {
|
|
||||||
id
|
|
||||||
key
|
|
||||||
icon
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -79,19 +79,17 @@ export default {
|
|||||||
shoutedCount
|
shoutedCount
|
||||||
commentsCount
|
commentsCount
|
||||||
author {
|
author {
|
||||||
User {
|
id
|
||||||
|
name
|
||||||
|
slug
|
||||||
|
avatar
|
||||||
|
contributionsCount
|
||||||
|
followedByCount
|
||||||
|
commentsCount
|
||||||
|
badges {
|
||||||
id
|
id
|
||||||
name
|
key
|
||||||
slug
|
icon
|
||||||
avatar
|
|
||||||
contributionsCount
|
|
||||||
followedByCount
|
|
||||||
commentsCount
|
|
||||||
badges {
|
|
||||||
id
|
|
||||||
key
|
|
||||||
icon
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user