From 6ab45e038fcfe9e4a4e2c2e81e54a07b08688e81 Mon Sep 17 00:00:00 2001 From: miteruzo Date: Tue, 24 Feb 2026 02:13:42 +0900 Subject: [PATCH] #194 --- frontend/src/pages/posts/PostHistoryPage.tsx | 14 +++++++++----- frontend/src/pages/tags/NicoTagListPage.tsx | 6 +++--- frontend/src/pages/wiki/WikiHistoryPage.tsx | 6 +++--- frontend/src/pages/wiki/WikiSearchPage.tsx | 7 ++++--- 4 files changed, 19 insertions(+), 14 deletions(-) diff --git a/frontend/src/pages/posts/PostHistoryPage.tsx b/frontend/src/pages/posts/PostHistoryPage.tsx index 0b09fe7..3fd444e 100644 --- a/frontend/src/pages/posts/PostHistoryPage.tsx +++ b/frontend/src/pages/posts/PostHistoryPage.tsx @@ -10,6 +10,7 @@ import MainArea from '@/components/layout/MainArea' import { SITE_TITLE } from '@/config' import { fetchPostChanges } from '@/lib/posts' import { postsKeys } from '@/lib/queryKeys' +import { cn } from '@/lib/utils' import type { FC } from 'react' @@ -44,7 +45,7 @@ export default (() => { {loading ? 'Loading...' : ( <> - + @@ -64,9 +65,12 @@ export default (() => { ++rowsCnt } return ( - + {withPost && ( - )} - -
投稿 変更
+ {change.post.title { className="w-40"/> + {`を${ change.changeType === 'add' ? '記載' : '消除' }`} + {change.user ? ( {change.user.name} diff --git a/frontend/src/pages/tags/NicoTagListPage.tsx b/frontend/src/pages/tags/NicoTagListPage.tsx index 08e485b..711842c 100644 --- a/frontend/src/pages/tags/NicoTagListPage.tsx +++ b/frontend/src/pages/tags/NicoTagListPage.tsx @@ -98,7 +98,7 @@ export default ({ user }: Props) => {
{nicoTags.length > 0 && ( - + @@ -107,7 +107,7 @@ export default ({ user }: Props) => { {nicoTags.map ((tag, i) => ( - + @@ -125,7 +125,7 @@ export default ({ user }: Props) => { ))} {memberFlg && ( -
ニコニコタグ 連携タグ
+ { ev.preventDefault () handleEdit (tag.id) diff --git a/frontend/src/pages/wiki/WikiHistoryPage.tsx b/frontend/src/pages/wiki/WikiHistoryPage.tsx index 427217c..9f143b5 100644 --- a/frontend/src/pages/wiki/WikiHistoryPage.tsx +++ b/frontend/src/pages/wiki/WikiHistoryPage.tsx @@ -29,7 +29,7 @@ export default () => { {`Wiki 変更履歴 | ${ SITE_TITLE }`} - + @@ -39,8 +39,8 @@ export default () => { {changes.map (change => ( - - +
タイトル
+
{change.pred != null && ( diff --git a/frontend/src/pages/wiki/WikiSearchPage.tsx b/frontend/src/pages/wiki/WikiSearchPage.tsx index 03c9d5b..6a46bcc 100644 --- a/frontend/src/pages/wiki/WikiSearchPage.tsx +++ b/frontend/src/pages/wiki/WikiSearchPage.tsx @@ -35,6 +35,7 @@ export default () => { Wiki | {SITE_TITLE} +
Wiki
@@ -68,7 +69,7 @@ export default () => {
- + @@ -76,13 +77,13 @@ export default () => { {results.map (page => ( - + - ))}
タイトル 最終更新
{page.title} + {page.updatedAt}