Skip to content

Commit

Permalink
fix: remove makefile + update nvmrc version
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel committed May 21, 2020
1 parent e138277 commit df246af
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 62 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
@@ -1 +1 @@
v10.16.0
v12.16.3
59 changes: 0 additions & 59 deletions Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion client/components/admin/admin-extensions.vue
Expand Up @@ -25,7 +25,7 @@
.body-2 {{ext.description}}
v-divider.my-4
.body-2
strong.mr-2 This extensions is
strong.mr-2 This extension is
v-chip.mr-2(v-if='ext.isCompatible', label, outlined, small, color='success') compatible
v-chip.mr-2(v-else, label, small, color='error') not compatible
strong with your host.
Expand Down
31 changes: 30 additions & 1 deletion server/graph/schemas/comment.graphql
Expand Up @@ -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"])
}

# -----------------------------------------------
Expand All @@ -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"])
}

# -----------------------------------------------
Expand All @@ -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!
}

0 comments on commit df246af

Please sign in to comment.