feat: search page UI (wip)

This commit is contained in:
NGPixel
2023-07-03 07:11:06 +00:00
parent 7f4417ee62
commit a806aa3466
5 changed files with 390 additions and 24 deletions
+21 -4
View File
@@ -15,10 +15,18 @@ extend type Query {
): PageVersion
searchPages(
siteId: UUID!
query: String!
path: String
locale: String
): PageSearchResponse!
locale: [String]
tags: [String]
editor: String
publishState: PagePublishState
orderBy: PageSearchSort
orderByDirection: OrderByDirection
offset: Int
limit: Int
): PageSearchResponse
pages(
limit: Int
@@ -28,7 +36,7 @@ extend type Query {
locale: String
creatorId: Int
authorId: Int
): [PageListItem!]!
): [PageListItem]
pageById(
id: UUID!
@@ -261,10 +269,13 @@ type PageSearchResponse {
}
type PageSearchResult {
id: String
id: UUID
title: String
description: String
icon: String
path: String
tags: [String]
updatedAt: Date
locale: String
}
@@ -378,6 +389,12 @@ input PageTocDepthInput {
max: Int!
}
enum PageSearchSort {
relevancy
title
updated
}
enum PageOrderBy {
CREATED
ID