feat: tags UI (wip) + save tags from page

This commit is contained in:
Nick
2019-09-01 18:33:36 -04:00
parent 8e80b7471d
commit 5a7fd2d73e
22 changed files with 326 additions and 4 deletions

View File

@@ -36,6 +36,8 @@ type PageQuery {
single(
id: Int!
): Page @auth(requires: ["manage:pages", "delete:pages", "manage:system"])
tags: [PageTag]! @auth(requires: ["manage:system", "read:pages"])
}
# -----------------------------------------------
@@ -109,6 +111,7 @@ type Page {
privateNS: String
publishStartDate: Date!
publishEndDate: String!
tags: [PageTag]!
content: String!
render: String
toc: String
@@ -125,6 +128,14 @@ type Page {
creatorEmail: String!
}
type PageTag {
id: Int!
tag: String!
title: String
createdAt: Date!
updatedAt: Date!
}
type PageHistory {
versionId: Int!
authorId: Int!