feat: tags UI (wip) + save tags from page
This commit is contained in:
@@ -76,6 +76,9 @@ module.exports = {
|
||||
} else {
|
||||
throw new WIKI.Error.PageNotFound()
|
||||
}
|
||||
},
|
||||
async tags (obj, args, context, info) {
|
||||
return WIKI.models.tags.query().orderBy('tag', 'asc')
|
||||
}
|
||||
},
|
||||
PageMutation: {
|
||||
|
@@ -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!
|
||||
|
Reference in New Issue
Block a user