From 1d52b28e394983a8346e0ccb7ec1ed6b54dd6918 Mon Sep 17 00:00:00 2001 From: Fushihara <1039534+fushihara@users.noreply.github.com> Date: Sat, 28 Sep 2024 19:47:44 +0900 Subject: =?UTF-8?q?=E3=82=A2=E3=83=8B=E3=83=A1=E3=81=BE=E3=81=A8=E3=82=81?= =?UTF-8?q?=E3=81=AE=E3=83=AA=E3=83=B3=E3=82=AF=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/_components/archiveLinkElement.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/app/_components/archiveLinkElement.tsx') diff --git a/src/app/_components/archiveLinkElement.tsx b/src/app/_components/archiveLinkElement.tsx index d97d904..94daed5 100644 --- a/src/app/_components/archiveLinkElement.tsx +++ b/src/app/_components/archiveLinkElement.tsx @@ -19,8 +19,12 @@ type AnimeReviewItem = { animeId: number, reviewId: number, }; +type AnimeMatome = { + type: "AnimeMatome", + matomeId: string, +}; type Common = { showLinkUnderline?: boolean } -type Option = (ArticlePage | AnimeTop | AnimeReviewList | AnimeReviewItem) & Common; +type Option = (ArticlePage | AnimeTop | AnimeReviewList | AnimeReviewItem | AnimeMatome) & Common; export function ArciveLinkElement(option: Option) { const officialLinkTitle = `公式のakiba-souken.com へのリンク。閉鎖後は繋がらなくなるはず`; const iaSearchResultLinkTitle = `InternetArchive の検索結果へのリンク`; @@ -53,6 +57,9 @@ export function ArciveLinkElement(option: Option) { } else if (option.type == "AnimeReviewItem") { originalUrl = `https://akiba-souken.com/anime/${option.animeId}/review/${option.reviewId}`; iframeSrc = `anime-${option.animeId}-review-${option.reviewId}`; + } else if (option.type == "AnimeMatome") { + originalUrl = `https://akiba-souken.com/anime/matome/${option.matomeId}/`; + iframeSrc = `anime-matome-${option.matomeId}`; } else { throw new Error(); } -- cgit v1.2.3