履歴画面変更(#308) (#315)

Merge branch 'main' into feature/308

#308

#308

#308

#308

Co-authored-by: miteruzo <miteruzo@naver.com>
Reviewed-on: #315
This commit was merged in pull request #315.
This commit is contained in:
2026-04-18 05:43:33 +09:00
parent bd11e37fd3
commit 48f823a7c8
13 changed files with 561 additions and 97 deletions
+18 -4
View File
@@ -117,9 +117,9 @@ export type NiconicoViewerHandle = {
export type Post = {
id: number
url: string
title: string
thumbnail: string
thumbnailBase: string
title: string | null
thumbnail: string | null
thumbnailBase: string | null
tags: Tag[]
viewed: boolean
related: Post[]
@@ -127,7 +127,7 @@ export type Post = {
originalCreatedBefore: string | null
createdAt: string
updatedAt: string
uploadedUser: { id: number; name: string } | null }
uploadedUser: { id: number; name: string | null } | null }
export type PostTagChange = {
post: Post
@@ -136,6 +136,20 @@ export type PostTagChange = {
changeType: 'add' | 'remove'
timestamp: string }
export type PostVersion = {
postId: number
versionNo: number
eventType: 'create' | 'update' | 'discard' | 'restore'
title: { current: string | null; prev: string | null }
url: { current: string; prev: string | null }
thumbnail: { current: string | null; prev: string | null }
thumbnailBase: { current: string | null; prev: string | null }
tags: { name: string; type: 'context' | 'added' | 'removed' }[]
originalCreatedFrom: { current: string | null; prev: string | null }
originalCreatedBefore: { current: string | null; prev: string | null }
createdAt: string
createdByUser: { id: number; name: string | null } | null }
export type SubMenuComponentItem = {
component: ReactNode
visible: boolean }