fix: remove makefile + update nvmrc version

This commit is contained in:
NGPixel
2020-05-20 23:35:39 -04:00
committed by Nicolas Giard
parent e1382771cf
commit df246af3bb
4 changed files with 32 additions and 62 deletions

View File

@@ -16,6 +16,14 @@ extend type Mutation {
type CommentQuery {
providers: [CommentProvider] @auth(requires: ["manage:system"])
list(
pageId: Int!
): [CommentPost]! @auth(requires: ["read:comments", "manage:system"])
single(
id: Int!
): CommentPost @auth(requires: ["read:comments", "manage:system"])
}
# -----------------------------------------------
@@ -27,7 +35,16 @@ type CommentMutation {
providers: [CommentProviderInput]
): DefaultResponse @auth(requires: ["manage:system"])
rebuildIndex: DefaultResponse @auth(requires: ["manage:system"])
create(
pageId: Int!
replyTo: Int
content: String!
): DefaultResponse @auth(requires: ["write:comments", "manage:system"])
update(
id: Int!
content: String!
): DefaultResponse @auth(requires: ["write:comments", "manage:comments", "manage:system"])
}
# -----------------------------------------------
@@ -50,3 +67,15 @@ input CommentProviderInput {
key: String!
config: [KeyValuePairInput]
}
type CommentPost {
id: Int!
content: String!
render: String!
authorId: Int!
authorName: String!
authorEmail: String! @auth(requires: ["manage:system"])
authorIP: String! @auth(requires: ["manage:system"])
createdAt: Date!
updatedAt: Date!
}