From 7d1a87f4526f8c9214cf3fbbbcaca76ac2fa8666 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=BF=E3=81=A6=E3=82=8B=E3=81=9E?= Date: Tue, 24 Feb 2026 21:29:00 +0900 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E3=81=AE=E3=83=AC=E3=83=BC=E3=82=A2?= =?UTF-8?q?=E3=82=A6=E3=83=88=E7=B5=B1=E4=B8=80=EF=BC=88#194=EF=BC=89=20(#?= =?UTF-8?q?271)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #194 #194 Co-authored-by: miteruzo Reviewed-on: https://git.miteruzo.com/miteruzo/btrc-hub/pulls/271 --- frontend/src/pages/posts/PostHistoryPage.tsx | 14 +++++++++----- frontend/src/pages/tags/NicoTagListPage.tsx | 10 +++++----- frontend/src/pages/wiki/WikiHistoryPage.tsx | 10 +++++++--- frontend/src/pages/wiki/WikiSearchPage.tsx | 11 ++++++----- 4 files changed, 27 insertions(+), 18 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..ed75dcb 100644 --- a/frontend/src/pages/tags/NicoTagListPage.tsx +++ b/frontend/src/pages/tags/NicoTagListPage.tsx @@ -2,7 +2,7 @@ import { useEffect, useRef, useState } from 'react' import { Helmet } from 'react-helmet-async' import TagLink from '@/components/TagLink' -import SectionTitle from '@/components/common/SectionTitle' +import PageTitle from '@/components/common/PageTitle' import TextArea from '@/components/common/TextArea' import MainArea from '@/components/layout/MainArea' import { toast } from '@/components/ui/use-toast' @@ -92,13 +92,13 @@ 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..1ed278a 100644 --- a/frontend/src/pages/wiki/WikiHistoryPage.tsx +++ b/frontend/src/pages/wiki/WikiHistoryPage.tsx @@ -3,6 +3,7 @@ import { Helmet } from 'react-helmet-async' import { useLocation } from 'react-router-dom' import PrefetchLink from '@/components/PrefetchLink' +import PageTitle from '@/components/common/PageTitle' import MainArea from '@/components/layout/MainArea' import { SITE_TITLE } from '@/config' import { apiGet } from '@/lib/api' @@ -28,8 +29,11 @@ export default () => { {`Wiki 変更履歴 | ${ SITE_TITLE }`} + + Wiki 履歴 + - + @@ -39,8 +43,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..bc3e3e7 100644 --- a/frontend/src/pages/wiki/WikiSearchPage.tsx +++ b/frontend/src/pages/wiki/WikiSearchPage.tsx @@ -2,7 +2,7 @@ import { useEffect, useState } from 'react' import { Helmet } from 'react-helmet-async' import PrefetchLink from '@/components/PrefetchLink' -import SectionTitle from '@/components/common/SectionTitle' +import PageTitle from '@/components/common/PageTitle' import MainArea from '@/components/layout/MainArea' import { SITE_TITLE } from '@/config' import { apiGet } from '@/lib/api' @@ -35,8 +35,9 @@ export default () => { Wiki | {SITE_TITLE} +
- Wiki + Wiki
{/* タイトル */}
@@ -68,7 +69,7 @@ export default () => {
- + @@ -76,13 +77,13 @@ export default () => { {results.map (page => ( - + - ))}
タイトル 最終更新
{page.title} + {page.updatedAt}