diff options
Diffstat (limited to 'src/app/_components')
-rw-r--r-- | src/app/_components/archiveLinkElement.tsx | 9 | ||||
-rw-r--r-- | src/app/_components/navigationHeader.tsx | 3 |
2 files changed, 11 insertions, 1 deletions
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(); } diff --git a/src/app/_components/navigationHeader.tsx b/src/app/_components/navigationHeader.tsx index 20cee95..7c4f4f3 100644 --- a/src/app/_components/navigationHeader.tsx +++ b/src/app/_components/navigationHeader.tsx @@ -24,6 +24,9 @@ export function NavigationHeader() { <li> <Link href={"/anime/all"}>アニメ一覧</Link> </li> + <li> + <Link href={"/anime/matome"}>アニメまとめ</Link> + </li> </ul> </div> </div> |