From 122235504654881b6dd78807ded1387f4ea17c16 Mon Sep 17 00:00:00 2001 From: NGPixel Date: Tue, 26 May 2020 22:56:11 -0400 Subject: [PATCH] feat: comments - default provider create (wip) + permissions --- .../admin/admin-groups-edit-permissions.vue | 2 +- client/components/comments.vue | 148 ++++++++++++++++-- client/store/page.js | 6 +- client/themes/default/components/page.vue | 9 +- package.json | 1 + server/controllers/common.js | 14 +- server/db/migrations-sqlite/2.4.61.js | 8 + server/db/migrations/2.4.61.js | 8 + server/graph/resolvers/comment.js | 25 +++ server/graph/schemas/comment.graphql | 6 + server/models/comments.js | 55 +++++++ server/modules/comments/default/comment.js | 106 ++++++++++++- server/views/page.pug | 2 +- yarn.lock | 46 +++++- 14 files changed, 412 insertions(+), 24 deletions(-) create mode 100644 server/db/migrations-sqlite/2.4.61.js create mode 100644 server/db/migrations/2.4.61.js create mode 100644 server/models/comments.js diff --git a/client/components/admin/admin-groups-edit-permissions.vue b/client/components/admin/admin-groups-edit-permissions.vue index b7933fbe..15eed86a 100644 --- a/client/components/admin/admin-groups-edit-permissions.vue +++ b/client/components/admin/admin-groups-edit-permissions.vue @@ -126,7 +126,7 @@ export default { permission: 'write:comments', hint: 'Can post new comments, as specified in the Page Rules', warning: false, - restrictedForSystem: true, + restrictedForSystem: false, disabled: false }, { diff --git a/client/components/comments.vue b/client/components/comments.vue index 330b1b26..a27cd41f 100644 --- a/client/components/comments.vue +++ b/client/components/comments.vue @@ -1,5 +1,5 @@