feat(webui): add NLE comments export and migrate export API to POST (#401)

This commit is contained in:
Yiling-J
2026-09-13 16:29:58 +08:00
committed by GitHub
parent 3420d848cb
commit c5b57ca862
7 changed files with 468 additions and 22 deletions
+7 -2
View File
@@ -348,7 +348,7 @@ export const commentExportFormatSchema = z.enum([
])
export type CommentExportFormat = z.infer<typeof commentExportFormatSchema>
export const exportCommentsQuerySchema = z.object({
export const exportCommentsRequestSchema = z.object({
format: commentExportFormatSchema,
timeZone: z
.string()
@@ -365,4 +365,9 @@ export const exportCommentsQuerySchema = z.object({
)
.optional(),
})
export type ExportCommentsQuery = z.infer<typeof exportCommentsQuerySchema>
export type ExportCommentsRequest = z.infer<typeof exportCommentsRequestSchema>
/** @deprecated Use exportCommentsRequestSchema */
export const exportCommentsQuerySchema = exportCommentsRequestSchema
/** @deprecated Use ExportCommentsRequest */
export type ExportCommentsQuery = ExportCommentsRequest