This commit is contained in:
2026-05-01 05:01:13 +09:00
parent fa8eb66535
commit 9b1df20ab5
5 changed files with 22 additions and 14 deletions
+3
View File
@@ -52,6 +52,9 @@ export default (({ post, onSave }: Props) => {
onSave ({ ...post,
title: data.title,
tags: data.tags,
parentPosts: data.parentPosts,
childPosts: data.childPosts,
siblingPosts: data.siblingPosts,
originalCreatedFrom: data.originalCreatedFrom,
originalCreatedBefore: data.originalCreatedBefore } as Post)
toast ({ description: '更新しました.' })
+2 -2
View File
@@ -42,8 +42,8 @@ export default (({ posts, onClick }: Props) => {
layoutId={layoutId}
className={cn ('w-full h-full overflow-hidden rounded-xl shadow',
'transform-gpu will-change-transform',
(post.childPosts ?? []).length > 0 && 'border-4 border-green-500',
(post.parentPosts ?? []).length > 0 && 'border-4 border-yellow-500')}
(post.childPosts ?? []).length > 0 && 'outline-4 border-green-500',
(post.parentPosts ?? []).length > 0 && 'outline-4 border-yellow-500')}
whileHover={{ scale: 1.02 }}
onLayoutAnimationStart={() => {
if (!(cardRef.current))
+11 -6
View File
@@ -95,8 +95,8 @@ export default (() => {
<col className="w-96"/>
{/* タグ */}
<col className="w-[48rem]"/>
{/* 親投稿 */}
<col className="w-[48rem]"/>
{/* TODO: 親投稿 */}
{/* <col className="w-[48rem]"/> */}
{/* オリジナルの投稿日時 */}
<col className="w-96"/>
{/* 更新日時 */}
@@ -112,7 +112,8 @@ export default (() => {
<th className="p-2 text-left"></th>
<th className="p-2 text-left">URL</th>
<th className="p-2 text-left"></th>
<th className="p-2 text-left">稿</th>
{/* TODO: 親投稿の履歴 */}
{/* <th className="p-2 text-left">親投稿</th> */}
<th className="p-2 text-left">稿</th>
<th className="p-2 text-left"></th>
<th className="p-2"/>
@@ -183,7 +184,8 @@ export default (() => {
{tag.name}
</span>))))}
</td>
<td className="p-2">
{/* TODO: 親投稿の履歴 */}
{/* <td className="p-2">
{change.parentPosts.map ((pp, i) => (
pp.type === 'added'
? (
@@ -204,7 +206,7 @@ export default (() => {
<span key={i} className="mr-2">
{pp.title}
</span>))))}
</td>
</td> */}
<td className="p-2">
{change.versionNo === 1
? originalCreatedAtString (change.originalCreatedFrom.current,
@@ -251,7 +253,10 @@ export default (() => {
.filter (t => t.slice (0, 5) !== 'nico:')
.join (' '),
parent_post_ids:
change.parentPosts.map (p => p.id).join (' '),
change.parentPosts
.filter (p => p.type !== 'removed')
.map (p => p.id)
.join (' '),
original_created_from:
change.originalCreatedFrom.current,
original_created_before: