summaryrefslogtreecommitdiff
path: root/src/app/_components/archiveLinkElement.tsx
diff options
context:
space:
mode:
authorFushihara <1039534+fushihara@users.noreply.github.com>2024-09-28 19:47:44 +0900
committerFushihara <1039534+fushihara@users.noreply.github.com>2024-09-28 19:47:44 +0900
commit1d52b28e394983a8346e0ccb7ec1ed6b54dd6918 (patch)
tree2fec61d82326a9b69a74b44347a7e0de40c6d2ec /src/app/_components/archiveLinkElement.tsx
parent0acca62436a3521c67b3be423b07a57f9e829def (diff)
アニメまとめのリンクを追加
Diffstat (limited to 'src/app/_components/archiveLinkElement.tsx')
-rw-r--r--src/app/_components/archiveLinkElement.tsx9
1 files changed, 8 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();
}