mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Cleaning up backend, bugfix in frontend
This commit is contained in:
parent
72e4d0abbc
commit
bdbabc2d12
@ -48,7 +48,7 @@ export default {
|
|||||||
},
|
},
|
||||||
findPosts: async (object, params, context, resolveInfo) => {
|
findPosts: async (object, params, context, resolveInfo) => {
|
||||||
params = await filterForBlockedUsers(params, context)
|
params = await filterForBlockedUsers(params, context)
|
||||||
return neo4jgraphql(object, params, context, resolveInfo, true)
|
return neo4jgraphql(object, params, context, resolveInfo)
|
||||||
},
|
},
|
||||||
profilePagePosts: async (object, params, context, resolveInfo) => {
|
profilePagePosts: async (object, params, context, resolveInfo) => {
|
||||||
params = await filterForBlockedUsers(params, context)
|
params = await filterForBlockedUsers(params, context)
|
||||||
|
|||||||
@ -226,8 +226,6 @@ type Query {
|
|||||||
PostsEmotionsCountByEmotion(postId: ID!, data: _EMOTEDInput!): Int!
|
PostsEmotionsCountByEmotion(postId: ID!, data: _EMOTEDInput!): Int!
|
||||||
PostsEmotionsByCurrentUser(postId: ID!): [String]
|
PostsEmotionsByCurrentUser(postId: ID!): [String]
|
||||||
profilePagePosts(filter: _PostFilter, first: Int, offset: Int, orderBy: [_PostOrdering]): [Post]
|
profilePagePosts(filter: _PostFilter, first: Int, offset: Int, orderBy: [_PostOrdering]): [Post]
|
||||||
isLoggedIn: Boolean!
|
|
||||||
currentUser: User
|
|
||||||
findPosts(query: String!, limit: Int = 10, filter: _PostFilter): [Post]!
|
findPosts(query: String!, limit: Int = 10, filter: _PostFilter): [Post]!
|
||||||
@cypher(
|
@cypher(
|
||||||
statement: """
|
statement: """
|
||||||
|
|||||||
@ -161,6 +161,7 @@ type Query {
|
|||||||
): [User]
|
): [User]
|
||||||
|
|
||||||
blockedUsers: [User]
|
blockedUsers: [User]
|
||||||
|
isLoggedIn: Boolean!
|
||||||
currentUser: User
|
currentUser: User
|
||||||
findUsers(query: String!,limit: Int = 10, filter: _UserFilter): [User]!
|
findUsers(query: String!,limit: Int = 10, filter: _UserFilter): [User]!
|
||||||
@cypher(
|
@cypher(
|
||||||
|
|||||||
@ -44,8 +44,8 @@
|
|||||||
</ds-heading>
|
</ds-heading>
|
||||||
</ds-flex-item>
|
</ds-flex-item>
|
||||||
</ds-flex>
|
</ds-flex>
|
||||||
<ds-flex v-else-if="option.__typename === 'User'">
|
<ds-flex v-if="option.__typename === 'User'">
|
||||||
<ds-flex-item class="search-option">
|
<ds-flex-item class="search-option" :class="{'extra-space': isFirstOfType(option)}">
|
||||||
<ds-avatar class="avatar" name="option.name" image="option.avatar" />
|
<ds-avatar class="avatar" name="option.name" image="option.avatar" />
|
||||||
<div>
|
<div>
|
||||||
<ds-text class="userinfo">
|
<ds-text class="userinfo">
|
||||||
@ -57,7 +57,7 @@
|
|||||||
</ds-text>
|
</ds-text>
|
||||||
</ds-flex-item>
|
</ds-flex-item>
|
||||||
</ds-flex>
|
</ds-flex>
|
||||||
<ds-flex v-else>
|
<ds-flex v-if="option.__typename === 'Post'">
|
||||||
<ds-flex-item class="search-option-label">
|
<ds-flex-item class="search-option-label">
|
||||||
<ds-text>{{ option.title | truncate(70) }}</ds-text>
|
<ds-text>{{ option.title | truncate(70) }}</ds-text>
|
||||||
</ds-flex-item>
|
</ds-flex-item>
|
||||||
@ -211,7 +211,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.search {
|
.search {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-self: center;
|
align-self: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -311,5 +311,9 @@ export default {
|
|||||||
.username {
|
.username {
|
||||||
color: #17b53f;
|
color: #17b53f;
|
||||||
}
|
}
|
||||||
}
|
.extra-space {
|
||||||
|
margin-top: 8px;
|
||||||
|
padding-top: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user