feat: admin comments page
This commit is contained in:
52
server/graph/schemas/comment.graphql
Normal file
52
server/graph/schemas/comment.graphql
Normal file
@@ -0,0 +1,52 @@
|
||||
# ===============================================
|
||||
# COMMENT
|
||||
# ===============================================
|
||||
|
||||
extend type Query {
|
||||
comments: CommentQuery
|
||||
}
|
||||
|
||||
extend type Mutation {
|
||||
comments: CommentMutation
|
||||
}
|
||||
|
||||
# -----------------------------------------------
|
||||
# QUERIES
|
||||
# -----------------------------------------------
|
||||
|
||||
type CommentQuery {
|
||||
providers: [CommentProvider] @auth(requires: ["manage:system"])
|
||||
}
|
||||
|
||||
# -----------------------------------------------
|
||||
# MUTATIONS
|
||||
# -----------------------------------------------
|
||||
|
||||
type CommentMutation {
|
||||
updateProviders(
|
||||
providers: [CommentProviderInput]
|
||||
): DefaultResponse @auth(requires: ["manage:system"])
|
||||
|
||||
rebuildIndex: DefaultResponse @auth(requires: ["manage:system"])
|
||||
}
|
||||
|
||||
# -----------------------------------------------
|
||||
# TYPES
|
||||
# -----------------------------------------------
|
||||
|
||||
type CommentProvider {
|
||||
isEnabled: Boolean!
|
||||
key: String!
|
||||
title: String!
|
||||
description: String
|
||||
logo: String
|
||||
website: String
|
||||
isAvailable: Boolean
|
||||
config: [KeyValuePair]
|
||||
}
|
||||
|
||||
input CommentProviderInput {
|
||||
isEnabled: Boolean!
|
||||
key: String!
|
||||
config: [KeyValuePairInput]
|
||||
}
|
Reference in New Issue
Block a user